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

_ZN5Exiv28AsfVideo7GUIDTagC2EjttNSt3__15arrayIhLm8EEE:
   83|    124|        data1_(data1), data2_(data2), data3_(data3), data4_(data4) {
   84|    124|    }
_ZNK5Exiv28AsfVideo12HeaderReader7getSizeEv:
  106|  1.18k|    [[nodiscard]] uint64_t getSize() const {
  107|  1.18k|      return size_;
  108|  1.18k|    }
_ZNK5Exiv28AsfVideo12HeaderReader16getRemainingSizeEv:
  110|    222|    [[nodiscard]] uint64_t getRemainingSize() const {
  111|    222|      return remaining_size_;
  112|    222|    }
_ZN5Exiv28AsfVideo12HeaderReader5getIdEv:
  114|  1.09k|    [[nodiscard]] DataBuf& getId() {
  115|  1.09k|      return IdBuf_;
  116|  1.09k|    }

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

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

_ZN5Exiv25ErrorC2INSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_9ErrorCodeERKT_:
  243|  2.62k|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|  2.62k|    setMsg(1);
  245|  2.62k|  }
_ZN5Exiv213toBasicStringIcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS2_IT_NS3_IS8_EENS5_IS8_EEEERKT0_:
  153|  2.62k|std::basic_string<charT> toBasicString(const T& arg) {
  154|  2.62k|  std::basic_ostringstream<charT> os;
  155|  2.62k|  os << arg;
  156|  2.62k|  return os.str();
  157|  2.62k|}
_ZN5Exiv213toBasicStringIcA4_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     75|std::basic_string<charT> toBasicString(const T& arg) {
  154|     75|  std::basic_ostringstream<charT> os;
  155|     75|  os << arg;
  156|     75|  return os.str();
  157|     75|}
_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.93k|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|  4.93k|    setMsg(1);
  245|  4.93k|  }
_ZN5Exiv213toBasicStringIcA5_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|  4.93k|std::basic_string<charT> toBasicString(const T& arg) {
  154|  4.93k|  std::basic_ostringstream<charT> os;
  155|  4.93k|  os << arg;
  156|  4.93k|  return os.str();
  157|  4.93k|}
_ZN5Exiv25ErrorC2IA4_cEENS_9ErrorCodeERKT_:
  243|     75|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     75|    setMsg(1);
  245|     75|  }
_ZN5Exiv25ErrorC2IA13_cEENS_9ErrorCodeERKT_:
  243|      1|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|      1|    setMsg(1);
  245|      1|  }
_ZN5Exiv213toBasicStringIcA13_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|      1|std::basic_string<charT> toBasicString(const T& arg) {
  154|      1|  std::basic_ostringstream<charT> os;
  155|      1|  os << arg;
  156|      1|  return os.str();
  157|      1|}
_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|     39|std::basic_string<charT> toBasicString(const T& arg) {
  154|     39|  std::basic_ostringstream<charT> os;
  155|     39|  os << arg;
  156|     39|  return os.str();
  157|     39|}
_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|     21|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     21|    setMsg(1);
  245|     21|  }
_ZN5Exiv25ErrorC2IA61_cEENS_9ErrorCodeERKT_:
  243|     16|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     16|    setMsg(1);
  245|     16|  }
_ZN5Exiv213toBasicStringIcA61_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     16|std::basic_string<charT> toBasicString(const T& arg) {
  154|     16|  std::basic_ostringstream<charT> os;
  155|     16|  os << arg;
  156|     16|  return os.str();
  157|     16|}

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

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

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

_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|  3.45M|  bool operator==(uint64_t id) const {
   80|  3.45M|    return id == _id;
   81|  3.45M|  }
_ZNK5Exiv28Internal11MatroskaTag9isSkippedEv:
   83|   109k|  [[nodiscard]] bool isSkipped() const {
   84|   109k|    return _process == Skip;
   85|   109k|  }
_ZNK5Exiv28Internal11MatroskaTag11isCompositeEv:
   86|  79.0k|  [[nodiscard]] bool isComposite() const {
   87|  79.0k|    return _process == Composite;
   88|  79.0k|  }

_ZN5Exiv29MetadatumC2Ev:
  261|  39.7M|  Metadatum() = default;
_ZN5Exiv23KeyC2Ev:
   79|  59.1M|  Key() = default;
_ZN5Exiv23KeyC2ERKS0_:
   80|   483k|  Key(const Key&) = default;

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

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

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

_ZN5Exiv28Internal9SliceBaseC2Emm:
   20|  59.2M|  SliceBase(size_t begin, size_t end) : begin_(begin), end_(end) {
   21|  59.2M|    if (begin >= end) {
  ------------------
  |  Branch (21:9): [True: 42, False: 59.2M]
  ------------------
   22|     42|      throw std::out_of_range("Begin must be smaller than end");
   23|     42|    }
   24|  59.2M|  }
_ZNK5Exiv28Internal9SliceBase4sizeEv:
   29|   120M|  [[nodiscard]] size_t size() const noexcept {
   30|       |    // cannot underflow, as we know that begin < end
   31|   120M|    return end_ - begin_;
   32|   120M|  }
_ZNK5Exiv28Internal9SliceBase10rangeCheckEm:
   41|   119M|  void rangeCheck(size_t index) const {
   42|   119M|    if (index >= size()) {
  ------------------
  |  Branch (42:9): [True: 0, False: 119M]
  ------------------
   43|      0|      throw std::out_of_range("Index outside of the slice");
   44|      0|    }
   45|   119M|  }
_ZNK5Exiv28Internal16MutableSliceBaseINS0_15PtrSliceStorageEPhE2atEm:
  174|   982k|  [[nodiscard]] const auto& at(size_t index) const {
  175|   982k|    return base_type::at(index);
  176|   982k|  }
_ZNK5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEPhE2atEm:
   99|   982k|  [[nodiscard]] const auto& at(size_t index) const {
  100|   982k|    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|   982k|    return storage_.unsafeAt(begin_ + index);
  106|   982k|  }
_ZNK5Exiv28Internal15PtrSliceStorageIPhE8unsafeAtEm:
  335|   982k|  [[nodiscard]] const auto& unsafeAt(size_t index) const noexcept {
  336|   982k|    return data_[index];
  337|   982k|  }
_ZN5Exiv214makeSliceUntilIhEENS_5SliceIPT_EES3_m:
  527|    787|[[nodiscard]] Slice<T*> makeSliceUntil(T* ptr, size_t end) {
  528|    787|  return {ptr, 0, end};
  529|    787|}
_ZN5Exiv25SliceIPhEC2ES1_mm:
  466|  43.0k|  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|  43.0k|  }
_ZN5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEPhEC2ERS3_mm:
   90|  43.0k|  ConstSliceBase(data_type& data, size_t begin, size_t end) : SliceBase(begin, end), storage_(data, begin, end) {
   91|  43.0k|  }
_ZN5Exiv28Internal15PtrSliceStorageIPhEC2ES2_mm:
  319|  43.0k|  PtrSliceStorage(storage_type ptr, size_t /*begin*/, size_t /*end*/) : data_(ptr) {
  320|  43.0k|    if (!ptr) {
  ------------------
  |  Branch (320:9): [True: 0, False: 43.0k]
  ------------------
  321|      0|      throw std::invalid_argument("Null pointer passed to slice constructor");
  322|      0|    }
  323|  43.0k|  }
_ZNK5Exiv25SliceIPhE8subSliceEmm:
  474|  1.13k|  [[nodiscard]] Slice<const T*> subSlice(size_t begin, size_t end) const {
  475|  1.13k|    return this->to_const_base().template subSlice<Slice<const T*>>(begin, end);
  476|  1.13k|  }
_ZNK5Exiv28Internal16MutableSliceBaseINS0_15PtrSliceStorageEPhE13to_const_baseEv:
  210|  1.13k|  [[nodiscard]] ConstSliceBase<storage_type, const data_type> to_const_base() const noexcept {
  211|  1.13k|    return {this->storage_.data_, this->begin_, this->end_};
  212|  1.13k|  }
_ZN5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEKPhEC2ERS4_mm:
   90|  1.13k|  ConstSliceBase(data_type& data, size_t begin, size_t end) : SliceBase(begin, end), storage_(data, begin, end) {
   91|  1.13k|  }
_ZN5Exiv28Internal15PtrSliceStorageIKPhEC2ES2_mm:
  319|  1.13k|  PtrSliceStorage(storage_type ptr, size_t /*begin*/, size_t /*end*/) : data_(ptr) {
  320|  1.13k|    if (!ptr) {
  ------------------
  |  Branch (320:9): [True: 0, False: 1.13k]
  ------------------
  321|      0|      throw std::invalid_argument("Null pointer passed to slice constructor");
  322|      0|    }
  323|  1.13k|  }
_ZNK5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEKPhE8subSliceINS_5SliceIPKhEEEET_mm:
  131|  1.13k|  [[nodiscard]] slice_type subSlice(size_t begin, size_t end) const {
  132|  1.13k|    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.13k|    this->rangeCheck(end - 1);
  138|       |    // additions are safe, begin and end are smaller than size()
  139|  1.13k|    const size_t new_begin = begin + this->begin_;
  140|  1.13k|    const size_t new_end = this->begin_ + end;
  141|  1.13k|    if (new_end > this->end_) {
  ------------------
  |  Branch (141:9): [True: 0, False: 1.13k]
  ------------------
  142|      0|      throw std::out_of_range("Invalid input parameters to slice");
  143|      0|    }
  144|  1.13k|    return {storage_.data_, new_begin, new_end};
  145|  1.13k|  }
_ZN5Exiv25SliceIPKhEC2ES2_mm:
  451|  59.1M|      Internal::ConstSliceBase<Internal::PtrSliceStorage, const T*>(ptr, begin, end) {
  452|       |    // TODO: use using in C++11
  453|  59.1M|  }
_ZN5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEPKhEC2ERS4_mm:
   90|  59.1M|  ConstSliceBase(data_type& data, size_t begin, size_t end) : SliceBase(begin, end), storage_(data, begin, end) {
   91|  59.1M|  }
_ZN5Exiv28Internal15PtrSliceStorageIPKhEC2ES3_mm:
  319|  59.1M|  PtrSliceStorage(storage_type ptr, size_t /*begin*/, size_t /*end*/) : data_(ptr) {
  320|  59.1M|    if (!ptr) {
  ------------------
  |  Branch (320:9): [True: 0, False: 59.1M]
  ------------------
  321|      0|      throw std::invalid_argument("Null pointer passed to slice constructor");
  322|      0|    }
  323|  59.1M|  }
_ZNK5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEPKhE2atEm:
   99|   118M|  [[nodiscard]] const auto& at(size_t index) const {
  100|   118M|    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|   118M|    return storage_.unsafeAt(begin_ + index);
  106|   118M|  }
_ZNK5Exiv28Internal15PtrSliceStorageIPKhE8unsafeAtEm:
  335|   118M|  [[nodiscard]] const auto& unsafeAt(size_t index) const noexcept {
  336|   118M|    return data_[index];
  337|   118M|  }
_ZN5Exiv29makeSliceIKNS_5SliceIPhEEEENS1_IT_EERS5_mm:
  486|  1.12k|[[nodiscard]] Slice<T> makeSlice(T& cont, size_t begin, size_t end) {
  487|  1.12k|  return {cont, begin, end};
  488|  1.12k|}
_ZN5Exiv28Internal14ConstSliceBaseINS0_16ContainerStorageEKNS_5SliceIPhEEEC2ERS6_mm:
   90|  1.12k|  ConstSliceBase(data_type& data, size_t begin, size_t end) : SliceBase(begin, end), storage_(data, begin, end) {
   91|  1.12k|  }
_ZN5Exiv28Internal16ContainerStorageIKNS_5SliceIPhEEEC2ERS5_mm:
  256|  1.11k|  ContainerStorage(container& data, size_t /* begin*/, size_t end) : data_(data) {
  257|  1.11k|    if (end > data.size()) {
  ------------------
  |  Branch (257:9): [True: 0, False: 1.11k]
  ------------------
  258|      0|      throw std::out_of_range("Invalid input parameters to slice");
  259|      0|    }
  260|  1.11k|  }
_ZNK5Exiv28Internal14ConstSliceBaseINS0_16ContainerStorageEKNS_5SliceIPhEEE2atEm:
   99|  6.60k|  [[nodiscard]] const auto& at(size_t index) const {
  100|  6.60k|    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.60k|    return storage_.unsafeAt(begin_ + index);
  106|  6.60k|  }
_ZNK5Exiv28Internal16ContainerStorageIKNS_5SliceIPhEEE8unsafeAtEm:
  268|  6.60k|  [[nodiscard]] const auto& unsafeAt(size_t index) const {
  269|  6.60k|    return data_.at(index);
  270|  6.60k|  }
_ZN5Exiv214makeSliceUntilIKhEENS_5SliceIPT_EES4_m:
  527|  59.1M|[[nodiscard]] Slice<T*> makeSliceUntil(T* ptr, size_t end) {
  528|  59.1M|  return {ptr, 0, end};
  529|  59.1M|}

_ZN5Exiv27DataBuf5beginEv:
  150|  2.14M|  [[nodiscard]] auto begin() noexcept {
  151|  2.14M|    return pData_.begin();
  152|  2.14M|  }
_ZN5Exiv27DataBuf3endEv:
  154|  20.7k|  [[nodiscard]] auto end() noexcept {
  155|  20.7k|    return pData_.end();
  156|  20.7k|  }
_ZNK5Exiv27DataBuf5beginEv:
  158|  3.00k|  [[nodiscard]] auto begin() const noexcept {
  159|  3.00k|    return pData_.begin();
  160|  3.00k|  }
_ZNK5Exiv27DataBuf3endEv:
  162|  2.90k|  [[nodiscard]] auto end() const noexcept {
  163|  2.90k|    return pData_.end();
  164|  2.90k|  }
_ZNK5Exiv27DataBuf4sizeEv:
  166|  2.78M|  [[nodiscard]] size_t size() const {
  167|  2.78M|    return pData_.size();
  168|  2.78M|  }
_ZNK5Exiv27DataBuf5emptyEv:
  194|  20.8k|  [[nodiscard]] bool empty() const {
  195|  20.8k|    return pData_.empty();
  196|  20.8k|  }
_ZN5Exiv27DataBufC2Ev:
  126|  2.99M|  DataBuf() = default;
image.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_18RegistryENS_9ImageTypeELm30EEEPKT_RAT1__S5_RKT0_:
  447|  33.4k|const T* find(T (&src)[N], const K& key) {
  448|  33.4k|  static_assert(N > 0, "Passed zero length find");
  449|  33.4k|  auto rc = std::find(src, src + N, key);
  450|  33.4k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 33.4k]
  ------------------
  451|  33.4k|}
_ZN5Exiv28toStringItEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   145k|std::string toString(const T& arg) {
  467|   145k|  return toStringHelper(arg, std::is_integral<T>());
  468|   145k|}
_ZN5Exiv214toStringHelperItEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|   145k|std::string toStringHelper(const T& arg, std::true_type) {
  456|   145k|  return std::to_string(arg);
  457|   145k|}
_ZN5Exiv29getUShortIPKhEEtRKNS_5SliceIT_EENS_9ByteOrderE:
  227|  59.1M|uint16_t getUShort(const Slice<T>& buf, ByteOrder byteOrder) {
  228|  59.1M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (228:7): [True: 2.30M, False: 56.8M]
  ------------------
  229|  2.30M|    return static_cast<byte>(buf.at(1)) << 8 | static_cast<byte>(buf.at(0));
  230|  2.30M|  }
  231|  56.8M|  return static_cast<byte>(buf.at(0)) << 8 | static_cast<byte>(buf.at(1));
  232|  59.1M|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEhLm13EEEPKT_RAT1__S4_RKT0_:
  447|  68.1k|const T* find(T (&src)[N], const K& key) {
  448|  68.1k|  static_assert(N > 0, "Passed zero length find");
  449|  68.1k|  auto rc = std::find(src, src + N, key);
  450|  68.1k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 65.4k, False: 2.71k]
  ------------------
  451|  68.1k|}
types.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_113TypeInfoTableENS_6TypeIdELm24EEEPKT_RAT1__S5_RKT0_:
  447|  52.9M|const T* find(T (&src)[N], const K& key) {
  448|  52.9M|  static_assert(N > 0, "Passed zero length find");
  449|  52.9M|  auto rc = std::find(src, src + N, key);
  450|  52.9M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5.65M, False: 47.3M]
  ------------------
  451|  52.9M|}
_ZN5Exiv28toStringIjEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  7.07k|std::string toString(const T& arg) {
  467|  7.07k|  return toStringHelper(arg, std::is_integral<T>());
  468|  7.07k|}
_ZN5Exiv214toStringHelperIjEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  7.07k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  7.07k|  return std::to_string(arg);
  457|  7.07k|}
_ZN5Exiv28toStringINSt3__14pairIjjEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    190|std::string toString(const T& arg) {
  467|    190|  return toStringHelper(arg, std::is_integral<T>());
  468|    190|}
_ZN5Exiv214toStringHelperINSt3__14pairIjjEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|    190|std::string toStringHelper(const T& arg, std::false_type) {
  461|    190|  std::ostringstream os;
  462|    190|  os << arg;
  463|    190|  return os.str();
  464|    190|}
_ZN5Exiv28toStringIsEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  1.30k|std::string toString(const T& arg) {
  467|  1.30k|  return toStringHelper(arg, std::is_integral<T>());
  468|  1.30k|}
_ZN5Exiv214toStringHelperIsEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  1.30k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  1.30k|  return std::to_string(arg);
  457|  1.30k|}
_ZN5Exiv28toStringIiEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   241k|std::string toString(const T& arg) {
  467|   241k|  return toStringHelper(arg, std::is_integral<T>());
  468|   241k|}
_ZN5Exiv214toStringHelperIiEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|   241k|std::string toStringHelper(const T& arg, std::true_type) {
  456|   241k|  return std::to_string(arg);
  457|   241k|}
_ZN5Exiv28toStringINSt3__14pairIiiEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    338|std::string toString(const T& arg) {
  467|    338|  return toStringHelper(arg, std::is_integral<T>());
  468|    338|}
_ZN5Exiv214toStringHelperINSt3__14pairIiiEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|    338|std::string toStringHelper(const T& arg, std::false_type) {
  461|    338|  std::ostringstream os;
  462|    338|  os << arg;
  463|    338|  return os.str();
  464|    338|}
_ZN5Exiv28toStringIfEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  1.29k|std::string toString(const T& arg) {
  467|  1.29k|  return toStringHelper(arg, std::is_integral<T>());
  468|  1.29k|}
_ZN5Exiv214toStringHelperIfEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|  1.29k|std::string toStringHelper(const T& arg, std::false_type) {
  461|  1.29k|  std::ostringstream os;
  462|  1.29k|  os << arg;
  463|  1.29k|  return os.str();
  464|  1.29k|}
_ZN5Exiv28toStringIdEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   225k|std::string toString(const T& arg) {
  467|   225k|  return toStringHelper(arg, std::is_integral<T>());
  468|   225k|}
_ZN5Exiv214toStringHelperIdEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|   225k|std::string toStringHelper(const T& arg, std::false_type) {
  461|   225k|  std::ostringstream os;
  462|   225k|  os << arg;
  463|   225k|  return os.str();
  464|   225k|}
_ZN5Exiv28toStringImEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  6.99k|std::string toString(const T& arg) {
  467|  6.99k|  return toStringHelper(arg, std::is_integral<T>());
  468|  6.99k|}
_ZN5Exiv214toStringHelperImEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  6.99k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  6.99k|  return std::to_string(arg);
  457|  6.99k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm4EEEPKT_RAT1__S4_RKT0_:
  447|    927|const T* find(T (&src)[N], const K& key) {
  448|    927|  static_assert(N > 0, "Passed zero length find");
  449|    927|  auto rc = std::find(src, src + N, key);
  450|    927|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 351, False: 576]
  ------------------
  451|    927|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm6EEEPKT_RAT1__S4_RKT0_:
  447|    233|const T* find(T (&src)[N], const K& key) {
  448|    233|  static_assert(N > 0, "Passed zero length find");
  449|    233|  auto rc = std::find(src, src + N, key);
  450|    233|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 107, False: 126]
  ------------------
  451|    233|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm5EEEPKT_RAT1__S4_RKT0_:
  447|    450|const T* find(T (&src)[N], const K& key) {
  448|    450|  static_assert(N > 0, "Passed zero length find");
  449|    450|  auto rc = std::find(src, src + N, key);
  450|    450|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 317, False: 133]
  ------------------
  451|    450|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm198EEEPKT_RAT1__S4_RKT0_:
  447|  79.7k|const T* find(T (&src)[N], const K& key) {
  448|  79.7k|  static_assert(N > 0, "Passed zero length find");
  449|  79.7k|  auto rc = std::find(src, src + N, key);
  450|  79.7k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 653, False: 79.1k]
  ------------------
  451|  79.7k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm2EEEPKT_RAT1__S4_RKT0_:
  447|  2.25k|const T* find(T (&src)[N], const K& key) {
  448|  2.25k|  static_assert(N > 0, "Passed zero length find");
  449|  2.25k|  auto rc = std::find(src, src + N, key);
  450|  2.25k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.83k, False: 414]
  ------------------
  451|  2.25k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm3EEEPKT_RAT1__S4_RKT0_:
  447|  5.84k|const T* find(T (&src)[N], const K& key) {
  448|  5.84k|  static_assert(N > 0, "Passed zero length find");
  449|  5.84k|  auto rc = std::find(src, src + N, key);
  450|  5.84k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3.77k, False: 2.06k]
  ------------------
  451|  5.84k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm7EEEPKT_RAT1__S4_RKT0_:
  447|  4.71k|const T* find(T (&src)[N], const K& key) {
  448|  4.71k|  static_assert(N > 0, "Passed zero length find");
  449|  4.71k|  auto rc = std::find(src, src + N, key);
  450|  4.71k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3.80k, False: 906]
  ------------------
  451|  4.71k|}
_ZN5Exiv28toStringIPKhEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_:
  466|  2.41k|std::string toString(const T& arg) {
  467|  2.41k|  return toStringHelper(arg, std::is_integral<T>());
  468|  2.41k|}
_ZN5Exiv214toStringHelperIPKhEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_NS3_17integral_constantIbLb0EEE:
  460|  2.41k|std::string toStringHelper(const T& arg, std::false_type) {
  461|  2.41k|  std::ostringstream os;
  462|  2.41k|  os << arg;
  463|  2.41k|  return os.str();
  464|  2.41k|}
_ZN5Exiv28toStringIlEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    740|std::string toString(const T& arg) {
  467|    740|  return toStringHelper(arg, std::is_integral<T>());
  468|    740|}
_ZN5Exiv214toStringHelperIlEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|    740|std::string toStringHelper(const T& arg, std::true_type) {
  456|    740|  return std::to_string(arg);
  457|    740|}
_ZN5Exiv28toStringIPhEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKT_:
  466|   659k|std::string toString(const T& arg) {
  467|   659k|  return toStringHelper(arg, std::is_integral<T>());
  468|   659k|}
_ZN5Exiv214toStringHelperIPhEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKT_NS2_17integral_constantIbLb0EEE:
  460|   659k|std::string toStringHelper(const T& arg, std::false_type) {
  461|   659k|  std::ostringstream os;
  462|   659k|  os << arg;
  463|   659k|  return os.str();
  464|   659k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm6EEEPKT_RAT1__S4_RKT0_:
  447|    124|const T* find(T (&src)[N], const K& key) {
  448|    124|  static_assert(N > 0, "Passed zero length find");
  449|    124|  auto rc = std::find(src, src + N, key);
  450|    124|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 76, False: 48]
  ------------------
  451|    124|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm32EEEPKT_RAT1__SB_RKT0_:
  447|  2.45k|const T* find(T (&src)[N], const K& key) {
  448|  2.45k|  static_assert(N > 0, "Passed zero length find");
  449|  2.45k|  auto rc = std::find(src, src + N, key);
  450|  2.45k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.19k, False: 259]
  ------------------
  451|  2.45k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm61EEEPKT_RAT1__SB_RKT0_:
  447|  2.45k|const T* find(T (&src)[N], const K& key) {
  448|  2.45k|  static_assert(N > 0, "Passed zero length find");
  449|  2.45k|  auto rc = std::find(src, src + N, key);
  450|  2.45k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.29k, False: 161]
  ------------------
  451|  2.45k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm2EEEPKT_RAT1__SB_RKT0_:
  447|    569|const T* find(T (&src)[N], const K& key) {
  448|    569|  static_assert(N > 0, "Passed zero length find");
  449|    569|  auto rc = std::find(src, src + N, key);
  450|    569|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 492, False: 77]
  ------------------
  451|    569|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm41EEEPKT_RAT1__S4_RKT0_:
  447|   143k|const T* find(T (&src)[N], const K& key) {
  448|   143k|  static_assert(N > 0, "Passed zero length find");
  449|   143k|  auto rc = std::find(src, src + N, key);
  450|   143k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 133k, False: 9.74k]
  ------------------
  451|   143k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm3EEEPKT_RAT1__S4_RKT0_:
  447|  22.0k|const T* find(T (&src)[N], const K& key) {
  448|  22.0k|  static_assert(N > 0, "Passed zero length find");
  449|  22.0k|  auto rc = std::find(src, src + N, key);
  450|  22.0k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 10.8k, False: 11.2k]
  ------------------
  451|  22.0k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm6EEEPKT_RAT1__S4_RKT0_:
  447|  3.50k|const T* find(T (&src)[N], const K& key) {
  448|  3.50k|  static_assert(N > 0, "Passed zero length find");
  449|  3.50k|  auto rc = std::find(src, src + N, key);
  450|  3.50k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.66k, False: 839]
  ------------------
  451|  3.50k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm11EEEPKT_RAT1__S4_RKT0_:
  447|  3.49k|const T* find(T (&src)[N], const K& key) {
  448|  3.49k|  static_assert(N > 0, "Passed zero length find");
  449|  3.49k|  auto rc = std::find(src, src + N, key);
  450|  3.49k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.46k, False: 1.03k]
  ------------------
  451|  3.49k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm2EEEPKT_RAT1__S4_RKT0_:
  447|    862|const T* find(T (&src)[N], const K& key) {
  448|    862|  static_assert(N > 0, "Passed zero length find");
  449|    862|  auto rc = std::find(src, src + N, key);
  450|    862|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 261, False: 601]
  ------------------
  451|    862|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm86EEEPKT_RAT1__SB_RKT0_:
  447|   208k|const T* find(T (&src)[N], const K& key) {
  448|   208k|  static_assert(N > 0, "Passed zero length find");
  449|   208k|  auto rc = std::find(src, src + N, key);
  450|   208k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 197k, False: 10.3k]
  ------------------
  451|   208k|}
_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: 142k, False: 1.24k]
  ------------------
  451|   144k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEtLm31EEEPKT_RAT1__S4_RKT0_:
  447|    853|const T* find(T (&src)[N], const K& key) {
  448|    853|  static_assert(N > 0, "Passed zero length find");
  449|    853|  auto rc = std::find(src, src + N, key);
  450|    853|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 189, False: 664]
  ------------------
  451|    853|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm16EEEPKT_RAT1__SB_RKT0_:
  447|    523|const T* find(T (&src)[N], const K& key) {
  448|    523|  static_assert(N > 0, "Passed zero length find");
  449|    523|  auto rc = std::find(src, src + N, key);
  450|    523|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 156, False: 367]
  ------------------
  451|    523|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm6EEEPKT_RAT1__S4_RKT0_:
  447|  21.0k|const T* find(T (&src)[N], const K& key) {
  448|  21.0k|  static_assert(N > 0, "Passed zero length find");
  449|  21.0k|  auto rc = std::find(src, src + N, key);
  450|  21.0k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 9.92k, False: 11.1k]
  ------------------
  451|  21.0k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm2EEEPKT_RAT1__S4_RKT0_:
  447|  32.6k|const T* find(T (&src)[N], const K& key) {
  448|  32.6k|  static_assert(N > 0, "Passed zero length find");
  449|  32.6k|  auto rc = std::find(src, src + N, key);
  450|  32.6k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 24.7k, False: 7.91k]
  ------------------
  451|  32.6k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm5EEEPKT_RAT1__S4_RKT0_:
  447|  19.4k|const T* find(T (&src)[N], const K& key) {
  448|  19.4k|  static_assert(N > 0, "Passed zero length find");
  449|  19.4k|  auto rc = std::find(src, src + N, key);
  450|  19.4k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 10.5k, False: 8.97k]
  ------------------
  451|  19.4k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm4EEEPKT_RAT1__S4_RKT0_:
  447|  20.5k|const T* find(T (&src)[N], const K& key) {
  448|  20.5k|  static_assert(N > 0, "Passed zero length find");
  449|  20.5k|  auto rc = std::find(src, src + N, key);
  450|  20.5k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 8.36k, False: 12.2k]
  ------------------
  451|  20.5k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm7EEEPKT_RAT1__S4_RKT0_:
  447|  10.9k|const T* find(T (&src)[N], const K& key) {
  448|  10.9k|  static_assert(N > 0, "Passed zero length find");
  449|  10.9k|  auto rc = std::find(src, src + N, key);
  450|  10.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.85k, False: 6.14k]
  ------------------
  451|  10.9k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm17EEEPKT_RAT1__S4_RKT0_:
  447|  3.01k|const T* find(T (&src)[N], const K& key) {
  448|  3.01k|  static_assert(N > 0, "Passed zero length find");
  449|  3.01k|  auto rc = std::find(src, src + N, key);
  450|  3.01k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.05k, False: 1.95k]
  ------------------
  451|  3.01k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm8EEEPKT_RAT1__S4_RKT0_:
  447|  20.2k|const T* find(T (&src)[N], const K& key) {
  448|  20.2k|  static_assert(N > 0, "Passed zero length find");
  449|  20.2k|  auto rc = std::find(src, src + N, key);
  450|  20.2k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 11.3k, False: 8.95k]
  ------------------
  451|  20.2k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm3EEEPKT_RAT1__S4_RKT0_:
  447|  69.9k|const T* find(T (&src)[N], const K& key) {
  448|  69.9k|  static_assert(N > 0, "Passed zero length find");
  449|  69.9k|  auto rc = std::find(src, src + N, key);
  450|  69.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 45.0k, False: 24.9k]
  ------------------
  451|  69.9k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm11EEEPKT_RAT1__S4_RKT0_:
  447|  12.1k|const T* find(T (&src)[N], const K& key) {
  448|  12.1k|  static_assert(N > 0, "Passed zero length find");
  449|  12.1k|  auto rc = std::find(src, src + N, key);
  450|  12.1k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.27k, False: 7.89k]
  ------------------
  451|  12.1k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm25EEEPKT_RAT1__S4_RKT0_:
  447|  2.84k|const T* find(T (&src)[N], const K& key) {
  448|  2.84k|  static_assert(N > 0, "Passed zero length find");
  449|  2.84k|  auto rc = std::find(src, src + N, key);
  450|  2.84k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 666, False: 2.17k]
  ------------------
  451|  2.84k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm19EEEPKT_RAT1__S4_RKT0_:
  447|    598|const T* find(T (&src)[N], const K& key) {
  448|    598|  static_assert(N > 0, "Passed zero length find");
  449|    598|  auto rc = std::find(src, src + N, key);
  450|    598|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 330, False: 268]
  ------------------
  451|    598|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm81EEEPKT_RAT1__S4_RKT0_:
  447|    118|const T* find(T (&src)[N], const K& key) {
  448|    118|  static_assert(N > 0, "Passed zero length find");
  449|    118|  auto rc = std::find(src, src + N, key);
  450|    118|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 66, False: 52]
  ------------------
  451|    118|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm10EEEPKT_RAT1__S4_RKT0_:
  447|  18.3k|const T* find(T (&src)[N], const K& key) {
  448|  18.3k|  static_assert(N > 0, "Passed zero length find");
  449|  18.3k|  auto rc = std::find(src, src + N, key);
  450|  18.3k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 11.6k, False: 6.66k]
  ------------------
  451|  18.3k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm52EEEPKT_RAT1__S4_RKT0_:
  447|    134|const T* find(T (&src)[N], const K& key) {
  448|    134|  static_assert(N > 0, "Passed zero length find");
  449|    134|  auto rc = std::find(src, src + N, key);
  450|    134|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 34, False: 100]
  ------------------
  451|    134|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm18EEEPKT_RAT1__S4_RKT0_:
  447|  6.43k|const T* find(T (&src)[N], const K& key) {
  448|  6.43k|  static_assert(N > 0, "Passed zero length find");
  449|  6.43k|  auto rc = std::find(src, src + N, key);
  450|  6.43k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3.00k, False: 3.42k]
  ------------------
  451|  6.43k|}
nikonmn_int.cpp:_ZN5Exiv24findIKZNS_8Internal15Nikon3MakerNote11printLensIdERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataERKNS3_12basic_stringIcS6_NS3_9allocatorIcEEEEE8FMntLenshLm579EEEPKT_RAT1__SN_RKT0_:
  447|     76|const T* find(T (&src)[N], const K& key) {
  448|     76|  static_assert(N > 0, "Passed zero length find");
  449|     76|  auto rc = std::find(src, src + N, key);
  450|     76|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3, False: 73]
  ------------------
  451|     76|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm12EEEPKT_RAT1__S4_RKT0_:
  447|  6.93k|const T* find(T (&src)[N], const K& key) {
  448|  6.93k|  static_assert(N > 0, "Passed zero length find");
  449|  6.93k|  auto rc = std::find(src, src + N, key);
  450|  6.93k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.21k, False: 2.72k]
  ------------------
  451|  6.93k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm13EEEPKT_RAT1__S4_RKT0_:
  447|  8.93k|const T* find(T (&src)[N], const K& key) {
  448|  8.93k|  static_assert(N > 0, "Passed zero length find");
  449|  8.93k|  auto rc = std::find(src, src + N, key);
  450|  8.93k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.07k, False: 6.86k]
  ------------------
  451|  8.93k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm34EEEPKT_RAT1__S4_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: 502, False: 1.73k]
  ------------------
  451|  2.23k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm16EEEPKT_RAT1__S4_RKT0_:
  447|  2.60k|const T* find(T (&src)[N], const K& key) {
  448|  2.60k|  static_assert(N > 0, "Passed zero length find");
  449|  2.60k|  auto rc = std::find(src, src + N, key);
  450|  2.60k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 632, False: 1.97k]
  ------------------
  451|  2.60k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm27EEEPKT_RAT1__S4_RKT0_:
  447|  4.79k|const T* find(T (&src)[N], const K& key) {
  448|  4.79k|  static_assert(N > 0, "Passed zero length find");
  449|  4.79k|  auto rc = std::find(src, src + N, key);
  450|  4.79k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 632, False: 4.15k]
  ------------------
  451|  4.79k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm9EEEPKT_RAT1__S4_RKT0_:
  447|  12.3k|const T* find(T (&src)[N], const K& key) {
  448|  12.3k|  static_assert(N > 0, "Passed zero length find");
  449|  12.3k|  auto rc = std::find(src, src + N, key);
  450|  12.3k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5.18k, False: 7.20k]
  ------------------
  451|  12.3k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm32EEEPKT_RAT1__S4_RKT0_:
  447|  2.54k|const T* find(T (&src)[N], const K& key) {
  448|  2.54k|  static_assert(N > 0, "Passed zero length find");
  449|  2.54k|  auto rc = std::find(src, src + N, key);
  450|  2.54k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 380, False: 2.16k]
  ------------------
  451|  2.54k|}
_ZN5Exiv24findIKNS_9GroupInfoENS_5IfdIdELm126EEEPKT_RAT1__S4_RKT0_:
  447|  55.0M|const T* find(T (&src)[N], const K& key) {
  448|  55.0M|  static_assert(N > 0, "Passed zero length find");
  449|  55.0M|  auto rc = std::find(src, src + N, key);
  450|  55.0M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 55.0M]
  ------------------
  451|  55.0M|}
_ZN5Exiv24findIKNS_9GroupInfoENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEELm126EEEPKT_RAT1__SA_RKT0_:
  447|  21.4M|const T* find(T (&src)[N], const K& key) {
  448|  21.4M|  static_assert(N > 0, "Passed zero length find");
  449|  21.4M|  auto rc = std::find(src, src + N, key);
  450|  21.4M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 21.4M]
  ------------------
  451|  21.4M|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm1EEEPKT_RAT1__S4_RKT0_:
  447|     94|const T* find(T (&src)[N], const K& key) {
  448|     94|  static_assert(N > 0, "Passed zero length find");
  449|     94|  auto rc = std::find(src, src + N, key);
  450|     94|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 78, False: 16]
  ------------------
  451|     94|}
_ZN5Exiv24findIKNS_8Internal15TiffMappingInfoENS2_3KeyELm5EEEPKT_RAT1__S5_RKT0_:
  447|  20.8M|const T* find(T (&src)[N], const K& key) {
  448|  20.8M|  static_assert(N > 0, "Passed zero length find");
  449|  20.8M|  auto rc = std::find(src, src + N, key);
  450|  20.8M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 20.8M, False: 6.72k]
  ------------------
  451|  20.8M|}
_ZN5Exiv24findIKNS_9XmpNsInfoENS1_2NsELm47EEEPKT_RAT1__S4_RKT0_:
  447|  14.9k|const T* find(T (&src)[N], const K& key) {
  448|  14.9k|  static_assert(N > 0, "Passed zero length find");
  449|  14.9k|  auto rc = std::find(src, src + N, key);
  450|  14.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 13.5k, False: 1.45k]
  ------------------
  451|  14.9k|}
_ZN5Exiv24findIKNS_9XmpNsInfoENS1_6PrefixELm47EEEPKT_RAT1__S4_RKT0_:
  447|  1.01M|const T* find(T (&src)[N], const K& key) {
  448|  1.01M|  static_assert(N > 0, "Passed zero length find");
  449|  1.01M|  auto rc = std::find(src, src + N, key);
  450|  1.01M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5, False: 1.01M]
  ------------------
  451|  1.01M|}
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|     37|const T* find(T (&src)[N], const K& key) {
  448|     37|  static_assert(N > 0, "Passed zero length find");
  449|     37|  auto rc = std::find(src, src + N, key);
  450|     37|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 37]
  ------------------
  451|     37|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm357EEEPKT_RAT1__S4_RKT0_:
  447|    256|const T* find(T (&src)[N], const K& key) {
  448|    256|  static_assert(N > 0, "Passed zero length find");
  449|    256|  auto rc = std::find(src, src + N, key);
  450|    256|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 128, False: 128]
  ------------------
  451|    256|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm14EEEPKT_RAT1__S4_RKT0_:
  447|  8.76k|const T* find(T (&src)[N], const K& key) {
  448|  8.76k|  static_assert(N > 0, "Passed zero length find");
  449|  8.76k|  auto rc = std::find(src, src + N, key);
  450|  8.76k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5.33k, False: 3.42k]
  ------------------
  451|  8.76k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm22EEEPKT_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: 1.09k, False: 1.94k]
  ------------------
  451|  3.03k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm71EEEPKT_RAT1__S4_RKT0_:
  447|  4.21k|const T* find(T (&src)[N], const K& key) {
  448|  4.21k|  static_assert(N > 0, "Passed zero length find");
  449|  4.21k|  auto rc = std::find(src, src + N, key);
  450|  4.21k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 584, False: 3.63k]
  ------------------
  451|  4.21k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm38EEEPKT_RAT1__S4_RKT0_:
  447|  5.11k|const T* find(T (&src)[N], const K& key) {
  448|  5.11k|  static_assert(N > 0, "Passed zero length find");
  449|  5.11k|  auto rc = std::find(src, src + N, key);
  450|  5.11k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3.41k, False: 1.69k]
  ------------------
  451|  5.11k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm75EEEPKT_RAT1__S4_RKT0_:
  447|  2.90k|const T* find(T (&src)[N], const K& key) {
  448|  2.90k|  static_assert(N > 0, "Passed zero length find");
  449|  2.90k|  auto rc = std::find(src, src + N, key);
  450|  2.90k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 846, False: 2.05k]
  ------------------
  451|  2.90k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm35EEEPKT_RAT1__S4_RKT0_:
  447|    294|const T* find(T (&src)[N], const K& key) {
  448|    294|  static_assert(N > 0, "Passed zero length find");
  449|    294|  auto rc = std::find(src, src + N, key);
  450|    294|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 204, False: 90]
  ------------------
  451|    294|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEhLm3EEEPKT_RAT1__S4_RKT0_:
  447|    136|const T* find(T (&src)[N], const K& key) {
  448|    136|  static_assert(N > 0, "Passed zero length find");
  449|    136|  auto rc = std::find(src, src + N, key);
  450|    136|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 56, False: 80]
  ------------------
  451|    136|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm20EEEPKT_RAT1__S4_RKT0_:
  447|  1.31k|const T* find(T (&src)[N], const K& key) {
  448|  1.31k|  static_assert(N > 0, "Passed zero length find");
  449|  1.31k|  auto rc = std::find(src, src + N, key);
  450|  1.31k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 429, False: 882]
  ------------------
  451|  1.31k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm33EEEPKT_RAT1__S4_RKT0_:
  447|  1.87k|const T* find(T (&src)[N], const K& key) {
  448|  1.87k|  static_assert(N > 0, "Passed zero length find");
  449|  1.87k|  auto rc = std::find(src, src + N, key);
  450|  1.87k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 342, False: 1.52k]
  ------------------
  451|  1.87k|}
_ZN5Exiv24findIKNS_8Internal14TiffMnRegistryENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEELm26EEEPKT_RAT1__S9_RKT0_:
  447|  38.7k|const T* find(T (&src)[N], const K& key) {
  448|  38.7k|  static_assert(N > 0, "Passed zero length find");
  449|  38.7k|  auto rc = std::find(src, src + N, key);
  450|  38.7k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.68k, False: 37.0k]
  ------------------
  451|  38.7k|}
_ZN5Exiv24findIKNS_8Internal14TiffMnRegistryENS_5IfdIdELm26EEEPKT_RAT1__S5_RKT0_:
  447|  6.73k|const T* find(T (&src)[N], const K& key) {
  448|  6.73k|  static_assert(N > 0, "Passed zero length find");
  449|  6.73k|  auto rc = std::find(src, src + N, key);
  450|  6.73k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 6.73k]
  ------------------
  451|  6.73k|}
_ZN5Exiv24findIKNS_8Internal13NikonArrayIdxENS2_3KeyELm34EEEPKT_RAT1__S5_RKT0_:
  447|    661|const T* find(T (&src)[N], const K& key) {
  448|    661|  static_assert(N > 0, "Passed zero length find");
  449|    661|  auto rc = std::find(src, src + N, key);
  450|    661|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 53, False: 608]
  ------------------
  451|    661|}
_ZN5Exiv28stringToIjEET_RKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERb:
  482|     32|T stringTo(const std::string& s, bool& ok) {
  483|     32|  std::istringstream is(s);
  484|     32|  T tmp = T();
  485|     32|  ok = static_cast<bool>(is >> tmp);
  486|     32|  std::string rest;
  487|     32|  is >> std::skipws >> rest;
  488|     32|  if (!rest.empty())
  ------------------
  |  Branch (488:7): [True: 17, False: 15]
  ------------------
  489|     17|    ok = false;
  490|     32|  return tmp;
  491|     32|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm19EEEPKT_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: 65, False: 7]
  ------------------
  451|     72|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm205EEEPKT_RAT1__S4_RKT0_:
  447|  3.57k|const T* find(T (&src)[N], const K& key) {
  448|  3.57k|  static_assert(N > 0, "Passed zero length find");
  449|  3.57k|  auto rc = std::find(src, src + N, key);
  450|  3.57k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 458, False: 3.11k]
  ------------------
  451|  3.57k|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm5EEEPKT_RAT1__SB_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: 145, False: 17]
  ------------------
  451|    162|}
minoltamn_int.cpp:_ZN5Exiv24findIKZNS_8Internal22printMinoltaSonyLensIDERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEE9LensIdFctjLm6EEEPKT_RAT1__SG_RKT0_:
  447|  1.78k|const T* find(T (&src)[N], const K& key) {
  448|  1.78k|  static_assert(N > 0, "Passed zero length find");
  449|  1.78k|  auto rc = std::find(src, src + N, key);
  450|  1.78k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 570, False: 1.21k]
  ------------------
  451|  1.78k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm15EEEPKT_RAT1__S4_RKT0_:
  447|  3.28k|const T* find(T (&src)[N], const K& key) {
  448|  3.28k|  static_assert(N > 0, "Passed zero length find");
  449|  3.28k|  auto rc = std::find(src, src + N, key);
  450|  3.28k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 890, False: 2.39k]
  ------------------
  451|  3.28k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm45EEEPKT_RAT1__S4_RKT0_:
  447|  2.85k|const T* find(T (&src)[N], const K& key) {
  448|  2.85k|  static_assert(N > 0, "Passed zero length find");
  449|  2.85k|  auto rc = std::find(src, src + N, key);
  450|  2.85k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 346, False: 2.50k]
  ------------------
  451|  2.85k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm23EEEPKT_RAT1__S4_RKT0_:
  447|  1.38k|const T* find(T (&src)[N], const K& key) {
  448|  1.38k|  static_assert(N > 0, "Passed zero length find");
  449|  1.38k|  auto rc = std::find(src, src + N, key);
  450|  1.38k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 660, False: 724]
  ------------------
  451|  1.38k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm77EEEPKT_RAT1__S4_RKT0_:
  447|    456|const T* find(T (&src)[N], const K& key) {
  448|    456|  static_assert(N > 0, "Passed zero length find");
  449|    456|  auto rc = std::find(src, src + N, key);
  450|    456|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 142, False: 314]
  ------------------
  451|    456|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEmLm298EEEPKT_RAT1__S4_RKT0_:
  447|     67|const T* find(T (&src)[N], const K& key) {
  448|     67|  static_assert(N > 0, "Passed zero length find");
  449|     67|  auto rc = std::find(src, src + N, key);
  450|     67|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 67]
  ------------------
  451|     67|}
pentaxmn_int.cpp:_ZN5Exiv24findIKZNS_8InternalL13printLensTypeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEE9LensIdFctjLm14EEEPKT_RAT1__SG_RKT0_:
  447|  2.12k|const T* find(T (&src)[N], const K& key) {
  448|  2.12k|  static_assert(N > 0, "Passed zero length find");
  449|  2.12k|  auto rc = std::find(src, src + N, key);
  450|  2.12k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 778, False: 1.34k]
  ------------------
  451|  2.12k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm298EEEPKT_RAT1__S4_RKT0_:
  447|    651|const T* find(T (&src)[N], const K& key) {
  448|    651|  static_assert(N > 0, "Passed zero length find");
  449|    651|  auto rc = std::find(src, src + N, key);
  450|    651|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 122, False: 529]
  ------------------
  451|    651|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm147EEEPKT_RAT1__S4_RKT0_:
  447|    248|const T* find(T (&src)[N], const K& key) {
  448|    248|  static_assert(N > 0, "Passed zero length find");
  449|    248|  auto rc = std::find(src, src + N, key);
  450|    248|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 230, False: 18]
  ------------------
  451|    248|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm79EEEPKT_RAT1__S4_RKT0_:
  447|    728|const T* find(T (&src)[N], const K& key) {
  448|    728|  static_assert(N > 0, "Passed zero length find");
  449|    728|  auto rc = std::find(src, src + N, key);
  450|    728|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 386, False: 342]
  ------------------
  451|    728|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm7EEEPKT_RAT1__S4_RKT0_:
  447|  1.06k|const T* find(T (&src)[N], const K& key) {
  448|  1.06k|  static_assert(N > 0, "Passed zero length find");
  449|  1.06k|  auto rc = std::find(src, src + N, key);
  450|  1.06k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 242, False: 820]
  ------------------
  451|  1.06k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm71EEEPKT_RAT1__S4_RKT0_:
  447|  4.34k|const T* find(T (&src)[N], const K& key) {
  448|  4.34k|  static_assert(N > 0, "Passed zero length find");
  449|  4.34k|  auto rc = std::find(src, src + N, key);
  450|  4.34k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 532, False: 3.80k]
  ------------------
  451|  4.34k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm20EEEPKT_RAT1__S4_RKT0_:
  447|  2.60k|const T* find(T (&src)[N], const K& key) {
  448|  2.60k|  static_assert(N > 0, "Passed zero length find");
  449|  2.60k|  auto rc = std::find(src, src + N, key);
  450|  2.60k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 520, False: 2.08k]
  ------------------
  451|  2.60k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm2EEEPKT_RAT1__S4_RKT0_:
  447|    352|const T* find(T (&src)[N], const K& key) {
  448|    352|  static_assert(N > 0, "Passed zero length find");
  449|    352|  auto rc = std::find(src, src + N, key);
  450|    352|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 264, False: 88]
  ------------------
  451|    352|}
_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: 496, False: 580]
  ------------------
  451|  1.07k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm36EEEPKT_RAT1__S4_RKT0_:
  447|  1.32k|const T* find(T (&src)[N], const K& key) {
  448|  1.32k|  static_assert(N > 0, "Passed zero length find");
  449|  1.32k|  auto rc = std::find(src, src + N, key);
  450|  1.32k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 158, False: 1.16k]
  ------------------
  451|  1.32k|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm5EEEPKT_RAT1__SB_RKT0_:
  447|  1.00k|const T* find(T (&src)[N], const K& key) {
  448|  1.00k|  static_assert(N > 0, "Passed zero length find");
  449|  1.00k|  auto rc = std::find(src, src + N, key);
  450|  1.00k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 558, False: 442]
  ------------------
  451|  1.00k|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm30EEEPKT_RAT1__SB_RKT0_:
  447|    524|const T* find(T (&src)[N], const K& key) {
  448|    524|  static_assert(N > 0, "Passed zero length find");
  449|    524|  auto rc = std::find(src, src + N, key);
  450|    524|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 428, False: 96]
  ------------------
  451|    524|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm16EEEPKT_RAT1__SB_RKT0_:
  447|    494|const T* find(T (&src)[N], const K& key) {
  448|    494|  static_assert(N > 0, "Passed zero length find");
  449|    494|  auto rc = std::find(src, src + N, key);
  450|    494|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 294, False: 200]
  ------------------
  451|    494|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm113EEEPKT_RAT1__S4_RKT0_:
  447|  9.10k|const T* find(T (&src)[N], const K& key) {
  448|  9.10k|  static_assert(N > 0, "Passed zero length find");
  449|  9.10k|  auto rc = std::find(src, src + N, key);
  450|  9.10k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 905, False: 8.20k]
  ------------------
  451|  9.10k|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm19EEEPKT_RAT1__SB_RKT0_:
  447|    428|const T* find(T (&src)[N], const K& key) {
  448|    428|  static_assert(N > 0, "Passed zero length find");
  449|    428|  auto rc = std::find(src, src + N, key);
  450|    428|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 388, False: 40]
  ------------------
  451|    428|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm26EEEPKT_RAT1__S4_RKT0_:
  447|  3.25k|const T* find(T (&src)[N], const K& key) {
  448|  3.25k|  static_assert(N > 0, "Passed zero length find");
  449|  3.25k|  auto rc = std::find(src, src + N, key);
  450|  3.25k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 594, False: 2.65k]
  ------------------
  451|  3.25k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm31EEEPKT_RAT1__S4_RKT0_:
  447|  4.69k|const T* find(T (&src)[N], const K& key) {
  448|  4.69k|  static_assert(N > 0, "Passed zero length find");
  449|  4.69k|  auto rc = std::find(src, src + N, key);
  450|  4.69k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.06k, False: 3.62k]
  ------------------
  451|  4.69k|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm34EEEPKT_RAT1__SB_RKT0_:
  447|     52|const T* find(T (&src)[N], const K& key) {
  448|     52|  static_assert(N > 0, "Passed zero length find");
  449|     52|  auto rc = std::find(src, src + N, key);
  450|     52|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 45, False: 7]
  ------------------
  451|     52|}

_ZNK5Exiv25Value6typeIdEv:
   85|  64.7M|  TypeId typeId() const {
   86|  64.7M|    return type_;
   87|  64.7M|  }
_ZNK5Exiv25Value5cloneEv:
   93|  42.5M|  UniquePtr clone() const {
   94|  42.5M|    return UniquePtr(clone_());
   95|  42.5M|  }
_ZNK5Exiv25Value2okEv:
  181|  1.15k|  bool ok() const {
  182|  1.15k|    return ok_;
  183|  1.15k|  }
_ZNK5Exiv222LangAltValueComparatorclERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  795|    260|  bool operator()(const std::string& str1, const std::string& str2) const {
  796|    260|    if (str1.size() != str2.size())
  ------------------
  |  Branch (796:9): [True: 116, False: 144]
  ------------------
  797|    116|      return str1.size() > str2.size();
  798|       |
  799|    144|    auto f = [](unsigned char a, unsigned char b) { return std::tolower(a) > std::tolower(b); };
  800|    144|    return std::lexicographical_compare(str1.begin(), str1.end(), str2.begin(), str2.end(), f);
  801|    260|  }
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_5ValueE:
  242|   324k|inline std::ostream& operator<<(std::ostream& os, const Value& value) {
  243|   324k|  return value.write(os);
  244|   324k|}
_ZN5Exiv27getTypeItEENS_6TypeIdEv:
 1083|  12.3M|inline TypeId getType<uint16_t>() {
 1084|  12.3M|  return unsignedShort;
 1085|  12.3M|}
_ZN5Exiv27getTypeIjEENS_6TypeIdEv:
 1088|  30.2k|inline TypeId getType<uint32_t>() {
 1089|  30.2k|  return unsignedLong;
 1090|  30.2k|}
_ZN5Exiv27getTypeINSt3__14pairIjjEEEENS_6TypeIdEv:
 1093|  48.4k|inline TypeId getType<URational>() {
 1094|  48.4k|  return unsignedRational;
 1095|  48.4k|}
_ZN5Exiv27getTypeIsEENS_6TypeIdEv:
 1098|  1.37M|inline TypeId getType<int16_t>() {
 1099|  1.37M|  return signedShort;
 1100|  1.37M|}
_ZN5Exiv27getTypeIiEENS_6TypeIdEv:
 1103|   149k|inline TypeId getType<int32_t>() {
 1104|   149k|  return signedLong;
 1105|   149k|}
_ZN5Exiv27getTypeINSt3__14pairIiiEEEENS_6TypeIdEv:
 1108|  36.2k|inline TypeId getType<Rational>() {
 1109|  36.2k|  return signedRational;
 1110|  36.2k|}
_ZN5Exiv27getTypeIfEENS_6TypeIdEv:
 1113|  10.5k|inline TypeId getType<float>() {
 1114|  10.5k|  return tiffFloat;
 1115|  10.5k|}
_ZN5Exiv27getTypeIdEENS_6TypeIdEv:
 1118|  9.42k|inline TypeId getType<double>() {
 1119|  9.42k|  return tiffDouble;
 1120|  9.42k|}
_ZN5Exiv28getValueItEET_PKhNS_9ByteOrderE:
 1314|  13.9M|inline uint16_t getValue(const byte* buf, ByteOrder byteOrder) {
 1315|  13.9M|  return getUShort(buf, byteOrder);
 1316|  13.9M|}
_ZN5Exiv28getValueIjEET_PKhNS_9ByteOrderE:
 1319|  3.23M|inline uint32_t getValue(const byte* buf, ByteOrder byteOrder) {
 1320|  3.23M|  return getULong(buf, byteOrder);
 1321|  3.23M|}
_ZN5Exiv28getValueINSt3__14pairIjjEEEET_PKhNS_9ByteOrderE:
 1324|   351k|inline URational getValue(const byte* buf, ByteOrder byteOrder) {
 1325|   351k|  return getURational(buf, byteOrder);
 1326|   351k|}
_ZN5Exiv28getValueIsEET_PKhNS_9ByteOrderE:
 1329|  5.59M|inline int16_t getValue(const byte* buf, ByteOrder byteOrder) {
 1330|  5.59M|  return getShort(buf, byteOrder);
 1331|  5.59M|}
_ZN5Exiv28getValueIiEET_PKhNS_9ByteOrderE:
 1334|   341k|inline int32_t getValue(const byte* buf, ByteOrder byteOrder) {
 1335|   341k|  return getLong(buf, byteOrder);
 1336|   341k|}
_ZN5Exiv28getValueINSt3__14pairIiiEEEET_PKhNS_9ByteOrderE:
 1339|   424k|inline Rational getValue(const byte* buf, ByteOrder byteOrder) {
 1340|   424k|  return getRational(buf, byteOrder);
 1341|   424k|}
_ZN5Exiv28getValueIfEET_PKhNS_9ByteOrderE:
 1344|   143k|inline float getValue(const byte* buf, ByteOrder byteOrder) {
 1345|   143k|  return getFloat(buf, byteOrder);
 1346|   143k|}
_ZN5Exiv28getValueIdEET_PKhNS_9ByteOrderE:
 1349|  1.86M|inline double getValue(const byte* buf, ByteOrder byteOrder) {
 1350|  1.86M|  return getDouble(buf, byteOrder);
 1351|  1.86M|}
_ZN5Exiv26toDataItEEmPhT_NS_9ByteOrderE:
 1372|   693k|inline size_t toData(byte* buf, uint16_t t, ByteOrder byteOrder) {
 1373|   693k|  return us2Data(buf, t, byteOrder);
 1374|   693k|}
_ZN5Exiv26toDataIjEEmPhT_NS_9ByteOrderE:
 1380|   201k|inline size_t toData(byte* buf, uint32_t t, ByteOrder byteOrder) {
 1381|   201k|  return ul2Data(buf, t, byteOrder);
 1382|   201k|}
_ZN5Exiv26toDataINSt3__14pairIjjEEEEmPhT_NS_9ByteOrderE:
 1388|   267k|inline size_t toData(byte* buf, URational t, ByteOrder byteOrder) {
 1389|   267k|  return ur2Data(buf, t, byteOrder);
 1390|   267k|}
_ZN5Exiv26toDataIsEEmPhT_NS_9ByteOrderE:
 1396|   174k|inline size_t toData(byte* buf, int16_t t, ByteOrder byteOrder) {
 1397|   174k|  return s2Data(buf, t, byteOrder);
 1398|   174k|}
_ZN5Exiv26toDataIiEEmPhT_NS_9ByteOrderE:
 1404|  22.8k|inline size_t toData(byte* buf, int32_t t, ByteOrder byteOrder) {
 1405|  22.8k|  return l2Data(buf, t, byteOrder);
 1406|  22.8k|}
_ZN5Exiv26toDataINSt3__14pairIiiEEEEmPhT_NS_9ByteOrderE:
 1412|  47.7k|inline size_t toData(byte* buf, Rational t, ByteOrder byteOrder) {
 1413|  47.7k|  return r2Data(buf, t, byteOrder);
 1414|  47.7k|}
_ZN5Exiv26toDataIfEEmPhT_NS_9ByteOrderE:
 1420|  43.6k|inline size_t toData(byte* buf, float t, ByteOrder byteOrder) {
 1421|  43.6k|  return f2Data(buf, t, byteOrder);
 1422|  43.6k|}
_ZN5Exiv26toDataIdEEmPhT_NS_9ByteOrderE:
 1428|  70.2k|inline size_t toData(byte* buf, double t, ByteOrder byteOrder) {
 1429|  70.2k|  return d2Data(buf, t, byteOrder);
 1430|  70.2k|}
_ZNK5Exiv29ValueTypeIdE7toInt64Em:
 1548|  3.69k|inline int64_t ValueType<double>::toInt64(size_t n) const {
 1549|  3.69k|  return float_to_integer_helper<int64_t>(n);
 1550|  3.69k|}
_ZNK5Exiv29ValueTypeIdE8toUint32Em:
 1553|  2.39k|inline uint32_t ValueType<double>::toUint32(size_t n) const {
 1554|  2.39k|  return float_to_integer_helper<uint32_t>(n);
 1555|  2.39k|}
_ZNK5Exiv29ValueTypeIfE7toInt64Em:
 1558|  7.14k|inline int64_t ValueType<float>::toInt64(size_t n) const {
 1559|  7.14k|  return float_to_integer_helper<int64_t>(n);
 1560|  7.14k|}
_ZNK5Exiv29ValueTypeIfE8toUint32Em:
 1562|  6.71k|inline uint32_t ValueType<float>::toUint32(size_t n) const {
 1563|  6.71k|  return float_to_integer_helper<uint32_t>(n);
 1564|  6.71k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE7toInt64Em:
 1567|  73.5k|inline int64_t ValueType<Rational>::toInt64(size_t n) const {
 1568|  73.5k|  return rational_to_integer_helper<int64_t>(n);
 1569|  73.5k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8toUint32Em:
 1571|  34.8k|inline uint32_t ValueType<Rational>::toUint32(size_t n) const {
 1572|  34.8k|  return rational_to_integer_helper<uint32_t>(n);
 1573|  34.8k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE7toInt64Em:
 1576|  20.3k|inline int64_t ValueType<URational>::toInt64(size_t n) const {
 1577|  20.3k|  return rational_to_integer_helper<int64_t>(n);
 1578|  20.3k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8toUint32Em:
 1580|  3.01k|inline uint32_t ValueType<URational>::toUint32(size_t n) const {
 1581|  3.01k|  return rational_to_integer_helper<uint32_t>(n);
 1582|  3.01k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE7toFloatEm:
 1591|    580|inline float ValueType<Rational>::toFloat(size_t n) const {
 1592|    580|  ok_ = (value_.at(n).second != 0);
 1593|    580|  if (!ok_)
  ------------------
  |  Branch (1593:7): [True: 10, False: 570]
  ------------------
 1594|     10|    return 0.0f;
 1595|    570|  return static_cast<float>(value_.at(n).first) / value_.at(n).second;
 1596|    580|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE7toFloatEm:
 1599|  3.76k|inline float ValueType<URational>::toFloat(size_t n) const {
 1600|  3.76k|  ok_ = (value_.at(n).second != 0);
 1601|  3.76k|  if (!ok_)
  ------------------
  |  Branch (1601:7): [True: 66, False: 3.70k]
  ------------------
 1602|     66|    return 0.0f;
 1603|  3.70k|  return static_cast<float>(value_.at(n).first) / value_.at(n).second;
 1604|  3.76k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE10toRationalEm:
 1613|  2.93k|inline Rational ValueType<Rational>::toRational(size_t n) const {
 1614|  2.93k|  ok_ = true;
 1615|  2.93k|  return {value_.at(n).first, value_.at(n).second};
 1616|  2.93k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE10toRationalEm:
 1619|  15.4k|inline Rational ValueType<URational>::toRational(size_t n) const {
 1620|  15.4k|  ok_ = true;
 1621|  15.4k|  return {value_.at(n).first, value_.at(n).second};
 1622|  15.4k|}
_ZNK5Exiv29ValueTypeIfE10toRationalEm:
 1625|  3.27k|inline Rational ValueType<float>::toRational(size_t n) const {
 1626|  3.27k|  ok_ = true;
 1627|       |  // Warning: This is a very simple conversion, see floatToRationalCast()
 1628|  3.27k|  return floatToRationalCast(value_.at(n));
 1629|  3.27k|}
_ZNK5Exiv29ValueTypeIdE10toRationalEm:
 1632|  1.72k|inline Rational ValueType<double>::toRational(size_t n) const {
 1633|  1.72k|  ok_ = true;
 1634|       |  // Warning: This is a very simple conversion, see floatToRationalCast()
 1635|  1.72k|  return floatToRationalCast(static_cast<float>(value_.at(n)));
 1636|  1.72k|}
_ZNK5Exiv29ValueTypeIdE23float_to_integer_helperIlEET_m:
 1212|  3.69k|  I float_to_integer_helper(size_t n) const {
 1213|  3.69k|    const auto v = value_.at(n);
 1214|  3.69k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 3.15k, False: 539]
  ------------------
 1215|  3.15k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 1.99k, False: 1.16k]
  ------------------
 1216|  1.99k|      return static_cast<I>(std::lround(v));
 1217|  1.99k|    }
 1218|  1.70k|    return 0;
 1219|  3.69k|  }
_ZNK5Exiv29ValueTypeIdE23float_to_integer_helperIjEET_m:
 1212|  2.39k|  I float_to_integer_helper(size_t n) const {
 1213|  2.39k|    const auto v = value_.at(n);
 1214|  2.39k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 1.41k, False: 984]
  ------------------
 1215|  1.41k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 763, False: 651]
  ------------------
 1216|    763|      return static_cast<I>(std::lround(v));
 1217|    763|    }
 1218|  1.63k|    return 0;
 1219|  2.39k|  }
_ZNK5Exiv29ValueTypeIfE23float_to_integer_helperIlEET_m:
 1212|  7.14k|  I float_to_integer_helper(size_t n) const {
 1213|  7.14k|    const auto v = value_.at(n);
 1214|  7.14k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 5.79k, False: 1.34k]
  ------------------
 1215|  5.79k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 5.07k, False: 725]
  ------------------
 1216|  5.07k|      return static_cast<I>(std::lround(v));
 1217|  5.07k|    }
 1218|  2.07k|    return 0;
 1219|  7.14k|  }
_ZNK5Exiv29ValueTypeIfE23float_to_integer_helperIjEET_m:
 1212|  6.71k|  I float_to_integer_helper(size_t n) const {
 1213|  6.71k|    const auto v = value_.at(n);
 1214|  6.71k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 4.09k, False: 2.61k]
  ------------------
 1215|  4.09k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 3.34k, False: 746]
  ------------------
 1216|  3.34k|      return static_cast<I>(std::lround(v));
 1217|  3.34k|    }
 1218|  3.36k|    return 0;
 1219|  6.71k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE26rational_to_integer_helperIlEET_m:
 1223|  73.5k|  I rational_to_integer_helper(size_t n) const {
 1224|  73.5k|    auto a = value_.at(n).first;
 1225|  73.5k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  73.5k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 14.0k, False: 59.4k]
  ------------------
 1229|  14.0k|      return 0;
 1230|  14.0k|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  59.4k|#ifdef __cpp_if_constexpr
 1234|  59.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|  59.4k|      const auto imin = std::numeric_limits<I>::min();
 1240|  59.4k|      const auto imax = std::numeric_limits<I>::max();
 1241|  59.4k|      if (imax < b || a < imin || imax < a) {
  ------------------
  |  Branch (1241:11): [True: 39, False: 59.4k]
  |  Branch (1241:23): [True: 0, False: 59.4k]
  |  Branch (1241:35): [True: 0, False: 59.4k]
  ------------------
 1242|      0|        return 0;
 1243|      0|      }
 1244|  59.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|  59.4k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  73.5k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE26rational_to_integer_helperIjEET_m:
 1223|  34.8k|  I rational_to_integer_helper(size_t n) const {
 1224|  34.8k|    auto a = value_.at(n).first;
 1225|  34.8k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  34.8k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 7.04k, False: 27.8k]
  ------------------
 1229|  7.04k|      return 0;
 1230|  7.04k|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  27.8k|#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|  27.8k|    } else {
 1255|       |      // conversion is from signed to unsigned
 1256|  27.8k|      const auto imax = std::numeric_limits<I>::max();
 1257|  27.8k|      if (a < 0) {
  ------------------
  |  Branch (1257:11): [True: 2.48k, False: 25.3k]
  ------------------
 1258|  2.48k|        return 0;
 1259|  2.48k|      }
 1260|       |      // Inputs are not negative so convert them to unsigned.
 1261|  25.3k|      const auto a_u = static_cast<std::make_unsigned_t<decltype(a)>>(a);
 1262|  25.3k|      const auto b_u = static_cast<std::make_unsigned_t<decltype(b)>>(b);
 1263|  25.3k|      if (imax < b_u || imax < a_u) {
  ------------------
  |  Branch (1263:11): [True: 54, False: 25.2k]
  |  Branch (1263:25): [True: 0, False: 25.2k]
  ------------------
 1264|      0|        return 0;
 1265|      0|      }
 1266|  25.3k|    }
 1267|       |
 1268|  25.3k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  34.8k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE26rational_to_integer_helperIlEET_m:
 1223|  20.3k|  I rational_to_integer_helper(size_t n) const {
 1224|  20.3k|    auto a = value_.at(n).first;
 1225|  20.3k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  20.3k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 804, False: 19.5k]
  ------------------
 1229|    804|      return 0;
 1230|    804|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  19.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|  19.5k|    } 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|  19.5k|      const auto imax = static_cast<std::make_unsigned_t<I>>(std::numeric_limits<I>::max());
 1251|  19.5k|      if (imax < b || imax < a) {
  ------------------
  |  Branch (1251:11): [True: 30, False: 19.5k]
  |  Branch (1251:23): [True: 0, False: 19.5k]
  ------------------
 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|  19.5k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  20.3k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE26rational_to_integer_helperIjEET_m:
 1223|  3.01k|  I rational_to_integer_helper(size_t n) const {
 1224|  3.01k|    auto a = value_.at(n).first;
 1225|  3.01k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  3.01k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 274, False: 2.74k]
  ------------------
 1229|    274|      return 0;
 1230|    274|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  2.74k|#ifdef __cpp_if_constexpr
 1234|  2.74k|    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.74k|      const auto imin = std::numeric_limits<I>::min();
 1240|  2.74k|      const auto imax = std::numeric_limits<I>::max();
 1241|  2.74k|      if (imax < b || a < imin || imax < a) {
  ------------------
  |  Branch (1241:11): [True: 32, False: 2.71k]
  |  Branch (1241:23): [True: 0, False: 2.71k]
  |  Branch (1241:35): [True: 0, False: 2.71k]
  ------------------
 1242|      0|        return 0;
 1243|      0|      }
 1244|  2.74k|#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.74k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  3.01k|  }
_ZN5Exiv29ValueTypeItEC2Ev:
 1433|  12.3M|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  12.3M|}
_ZN5Exiv25ValueD2Ev:
   43|  60.9M|  virtual ~Value() = default;
_ZN5Exiv29ValueTypeItE4readEPKhmNS_9ByteOrderE:
 1467|  12.3M|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  12.3M|  value_.clear();
 1469|  12.3M|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  12.3M|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 12.3M, False: 0]
  |  Branch (1470:17): [True: 1.24k, False: 12.3M]
  ------------------
 1471|  1.24k|    len = (len / ts) * ts;
 1472|  26.2M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 13.9M, False: 12.3M]
  ------------------
 1473|  13.9M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  13.9M|  }
 1475|  12.3M|  return 0;
 1476|  12.3M|}
_ZN5Exiv29ValueTypeItE4readERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 1479|    941|int ValueType<T>::read(const std::string& buf) {
 1480|    941|  std::istringstream is(buf);
 1481|    941|  T tmp;
 1482|    941|  ValueList val;
 1483|  1.50k|  while (is >> tmp)
  ------------------
  |  Branch (1483:10): [True: 559, False: 941]
  ------------------
 1484|    559|    val.push_back(tmp);
 1485|    941|  if (!is.eof())
  ------------------
  |  Branch (1485:7): [True: 10, False: 931]
  ------------------
 1486|     10|    return 1;
 1487|    931|  value_ = std::move(val);
 1488|    931|  return 0;
 1489|    941|}
_ZN5Exiv29ValueTypeItE11setDataAreaEPKhm:
 1649|    309|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    309|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 213, False: 96]
  ------------------
 1651|    213|    pDataArea_ = Blob(buf, buf + len);
 1652|     96|  else
 1653|     96|    pDataArea_.clear();
 1654|    309|  return 0;
 1655|    309|}
_ZNK5Exiv29ValueTypeItE4copyEPhNS_9ByteOrderE:
 1492|  32.5k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  32.5k|  size_t offset = 0;
 1494|   693k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 693k, False: 32.5k]
  ------------------
 1495|   693k|    offset += toData(buf + offset, val, byteOrder);
 1496|   693k|  }
 1497|  32.5k|  return offset;
 1498|  32.5k|}
_ZNK5Exiv29ValueTypeItE5countEv:
 1501|  12.6M|size_t ValueType<T>::count() const {
 1502|  12.6M|  return value_.size();
 1503|  12.6M|}
_ZNK5Exiv29ValueTypeItE4sizeEv:
 1506|   205k|size_t ValueType<T>::size() const {
 1507|   205k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|   205k|}
_ZNK5Exiv29ValueTypeItE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  51.6k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  51.6k|  auto end = value_.end();
 1518|  51.6k|  auto i = value_.begin();
 1519|   357k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 305k, False: 51.6k]
  ------------------
 1520|   305k|    os << std::setprecision(15) << *i;
 1521|   305k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 253k, False: 51.5k]
  ------------------
 1522|   253k|      os << " ";
 1523|   305k|  }
 1524|  51.6k|  return os;
 1525|  51.6k|}
_ZNK5Exiv29ValueTypeItE8toStringEm:
 1528|  1.23k|std::string ValueType<T>::toString(size_t n) const {
 1529|  1.23k|  ok_ = true;
 1530|  1.23k|  return Exiv2::toString<T>(value_.at(n));
 1531|  1.23k|}
_ZNK5Exiv29ValueTypeItE7toInt64Em:
 1535|   244k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|   244k|  ok_ = true;
 1537|   244k|  return static_cast<int64_t>(value_.at(n));
 1538|   244k|}
_ZNK5Exiv29ValueTypeItE8toUint32Em:
 1540|  48.2k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  48.2k|  ok_ = true;
 1542|  48.2k|  return static_cast<uint32_t>(value_.at(n));
 1543|  48.2k|}
_ZNK5Exiv29ValueTypeItE7toFloatEm:
 1585|  9.77k|float ValueType<T>::toFloat(size_t n) const {
 1586|  9.77k|  ok_ = true;
 1587|  9.77k|  return static_cast<float>(value_.at(n));
 1588|  9.77k|}
_ZNK5Exiv29ValueTypeItE10toRationalEm:
 1607|    116|Rational ValueType<T>::toRational(size_t n) const {
 1608|    116|  ok_ = true;
 1609|    116|  return {value_.at(n), 1};
 1610|    116|}
_ZNK5Exiv29ValueTypeItE12sizeDataAreaEv:
 1639|  2.12k|size_t ValueType<T>::sizeDataArea() const {
 1640|  2.12k|  return pDataArea_.size();
 1641|  2.12k|}
_ZNK5Exiv29ValueTypeItE8dataAreaEv:
 1644|    185|DataBuf ValueType<T>::dataArea() const {
 1645|    185|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    185|}
_ZNK5Exiv29ValueTypeItE6clone_Ev:
 1511|  24.6M|ValueType<T>* ValueType<T>::clone_() const {
 1512|  24.6M|  return new ValueType<T>(*this);
 1513|  24.6M|}
_ZN5Exiv29ValueTypeItEC2ERKS1_:
 1447|  24.6M|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  24.6M|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 200, False: 24.6M]
  ------------------
 1449|    200|    pDataArea_ = rhs.pDataArea_;
 1450|  24.6M|}
_ZN5Exiv25ValueC2ERKS0_:
  225|  13.9M|  Value(const Value&) = default;
_ZN5Exiv29ValueTypeIjE4readEPKhmNS_9ByteOrderE:
 1467|   256k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|   256k|  value_.clear();
 1469|   256k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|   256k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 256k, False: 0]
  |  Branch (1470:17): [True: 151, False: 256k]
  ------------------
 1471|    151|    len = (len / ts) * ts;
 1472|  3.49M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 3.23M, False: 256k]
  ------------------
 1473|  3.23M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  3.23M|  }
 1475|   256k|  return 0;
 1476|   256k|}
_ZN5Exiv29ValueTypeIjE11setDataAreaEPKhm:
 1649|    306|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    306|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 209, False: 97]
  ------------------
 1651|    209|    pDataArea_ = Blob(buf, buf + len);
 1652|     97|  else
 1653|     97|    pDataArea_.clear();
 1654|    306|  return 0;
 1655|    306|}
_ZNK5Exiv29ValueTypeIjE4copyEPhNS_9ByteOrderE:
 1492|  68.9k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  68.9k|  size_t offset = 0;
 1494|   201k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 201k, False: 68.9k]
  ------------------
 1495|   201k|    offset += toData(buf + offset, val, byteOrder);
 1496|   201k|  }
 1497|  68.9k|  return offset;
 1498|  68.9k|}
_ZNK5Exiv29ValueTypeIjE5countEv:
 1501|   432k|size_t ValueType<T>::count() const {
 1502|   432k|  return value_.size();
 1503|   432k|}
_ZNK5Exiv29ValueTypeIjE4sizeEv:
 1506|   470k|size_t ValueType<T>::size() const {
 1507|   470k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|   470k|}
_ZNK5Exiv29ValueTypeIjE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  63.7k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  63.7k|  auto end = value_.end();
 1518|  63.7k|  auto i = value_.begin();
 1519|   540k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 476k, False: 63.7k]
  ------------------
 1520|   476k|    os << std::setprecision(15) << *i;
 1521|   476k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 412k, False: 63.4k]
  ------------------
 1522|   412k|      os << " ";
 1523|   476k|  }
 1524|  63.7k|  return os;
 1525|  63.7k|}
_ZNK5Exiv29ValueTypeIjE8toStringEm:
 1528|    410|std::string ValueType<T>::toString(size_t n) const {
 1529|    410|  ok_ = true;
 1530|    410|  return Exiv2::toString<T>(value_.at(n));
 1531|    410|}
_ZNK5Exiv29ValueTypeIjE7toInt64Em:
 1535|  36.8k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  36.8k|  ok_ = true;
 1537|  36.8k|  return static_cast<int64_t>(value_.at(n));
 1538|  36.8k|}
_ZNK5Exiv29ValueTypeIjE8toUint32Em:
 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|}
_ZNK5Exiv29ValueTypeIjE7toFloatEm:
 1585|    148|float ValueType<T>::toFloat(size_t n) const {
 1586|    148|  ok_ = true;
 1587|    148|  return static_cast<float>(value_.at(n));
 1588|    148|}
_ZNK5Exiv29ValueTypeIjE10toRationalEm:
 1607|    258|Rational ValueType<T>::toRational(size_t n) const {
 1608|    258|  ok_ = true;
 1609|    258|  return {value_.at(n), 1};
 1610|    258|}
_ZNK5Exiv29ValueTypeIjE12sizeDataAreaEv:
 1639|  4.76k|size_t ValueType<T>::sizeDataArea() const {
 1640|  4.76k|  return pDataArea_.size();
 1641|  4.76k|}
_ZNK5Exiv29ValueTypeIjE8dataAreaEv:
 1644|    552|DataBuf ValueType<T>::dataArea() const {
 1645|    552|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    552|}
_ZNK5Exiv29ValueTypeIjE6clone_Ev:
 1511|   622k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   622k|  return new ValueType<T>(*this);
 1513|   622k|}
_ZN5Exiv29ValueTypeIjEC2ERKS1_:
 1447|   622k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   622k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 240, False: 622k]
  ------------------
 1449|    240|    pDataArea_ = rhs.pDataArea_;
 1450|   622k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEEC2Ev:
 1433|  48.4k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  48.4k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEE4readEPKhmNS_9ByteOrderE:
 1467|  48.4k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  48.4k|  value_.clear();
 1469|  48.4k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  48.4k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 48.4k, False: 0]
  |  Branch (1470:17): [True: 0, False: 48.4k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   399k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 351k, False: 48.4k]
  ------------------
 1473|   351k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   351k|  }
 1475|  48.4k|  return 0;
 1476|  48.4k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEE11setDataAreaEPKhm:
 1649|    203|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    203|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 128, False: 75]
  ------------------
 1651|    128|    pDataArea_ = Blob(buf, buf + len);
 1652|     75|  else
 1653|     75|    pDataArea_.clear();
 1654|    203|  return 0;
 1655|    203|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE4copyEPhNS_9ByteOrderE:
 1492|  18.7k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  18.7k|  size_t offset = 0;
 1494|   267k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 267k, False: 18.7k]
  ------------------
 1495|   267k|    offset += toData(buf + offset, val, byteOrder);
 1496|   267k|  }
 1497|  18.7k|  return offset;
 1498|  18.7k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE5countEv:
 1501|   100k|size_t ValueType<T>::count() const {
 1502|   100k|  return value_.size();
 1503|   100k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE4sizeEv:
 1506|  58.3k|size_t ValueType<T>::size() const {
 1507|  58.3k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  58.3k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE5writeERNS1_13basic_ostreamIcNS1_11char_traitsIcEEEE:
 1516|  4.36k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  4.36k|  auto end = value_.end();
 1518|  4.36k|  auto i = value_.begin();
 1519|  27.0k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 22.6k, False: 4.36k]
  ------------------
 1520|  22.6k|    os << std::setprecision(15) << *i;
 1521|  22.6k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 18.4k, False: 4.13k]
  ------------------
 1522|  18.4k|      os << " ";
 1523|  22.6k|  }
 1524|  4.36k|  return os;
 1525|  4.36k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8toStringEm:
 1528|    190|std::string ValueType<T>::toString(size_t n) const {
 1529|    190|  ok_ = true;
 1530|    190|  return Exiv2::toString<T>(value_.at(n));
 1531|    190|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE12sizeDataAreaEv:
 1639|  1.28k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.28k|  return pDataArea_.size();
 1641|  1.28k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8dataAreaEv:
 1644|    133|DataBuf ValueType<T>::dataArea() const {
 1645|    133|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    133|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE6clone_Ev:
 1511|   124k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   124k|  return new ValueType<T>(*this);
 1513|   124k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEEC2ERKS4_:
 1447|   124k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   124k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 108, False: 124k]
  ------------------
 1449|    108|    pDataArea_ = rhs.pDataArea_;
 1450|   124k|}
_ZN5Exiv29ValueTypeIsEC2Ev:
 1433|  1.37M|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  1.37M|}
_ZN5Exiv29ValueTypeIsE4readEPKhmNS_9ByteOrderE:
 1467|  1.36M|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  1.36M|  value_.clear();
 1469|  1.36M|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  1.36M|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 1.36M, False: 0]
  |  Branch (1470:17): [True: 592, False: 1.36M]
  ------------------
 1471|    592|    len = (len / ts) * ts;
 1472|  6.96M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 5.59M, False: 1.36M]
  ------------------
 1473|  5.59M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  5.59M|  }
 1475|  1.36M|  return 0;
 1476|  1.36M|}
_ZN5Exiv29ValueTypeIsE4readERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 1479|  3.72k|int ValueType<T>::read(const std::string& buf) {
 1480|  3.72k|  std::istringstream is(buf);
 1481|  3.72k|  T tmp;
 1482|  3.72k|  ValueList val;
 1483|  9.11k|  while (is >> tmp)
  ------------------
  |  Branch (1483:10): [True: 5.39k, False: 3.72k]
  ------------------
 1484|  5.39k|    val.push_back(tmp);
 1485|  3.72k|  if (!is.eof())
  ------------------
  |  Branch (1485:7): [True: 0, False: 3.72k]
  ------------------
 1486|      0|    return 1;
 1487|  3.72k|  value_ = std::move(val);
 1488|  3.72k|  return 0;
 1489|  3.72k|}
_ZN5Exiv29ValueTypeIsE11setDataAreaEPKhm:
 1649|    298|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    298|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 133, False: 165]
  ------------------
 1651|    133|    pDataArea_ = Blob(buf, buf + len);
 1652|    165|  else
 1653|    165|    pDataArea_.clear();
 1654|    298|  return 0;
 1655|    298|}
_ZNK5Exiv29ValueTypeIsE4copyEPhNS_9ByteOrderE:
 1492|  7.81k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  7.81k|  size_t offset = 0;
 1494|   174k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 174k, False: 7.81k]
  ------------------
 1495|   174k|    offset += toData(buf + offset, val, byteOrder);
 1496|   174k|  }
 1497|  7.81k|  return offset;
 1498|  7.81k|}
_ZNK5Exiv29ValueTypeIsE5countEv:
 1501|  8.78M|size_t ValueType<T>::count() const {
 1502|  8.78M|  return value_.size();
 1503|  8.78M|}
_ZNK5Exiv29ValueTypeIsE4sizeEv:
 1506|  27.8k|size_t ValueType<T>::size() const {
 1507|  27.8k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  27.8k|}
_ZNK5Exiv29ValueTypeIsE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  11.4k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  11.4k|  auto end = value_.end();
 1518|  11.4k|  auto i = value_.begin();
 1519|   120k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 109k, False: 11.4k]
  ------------------
 1520|   109k|    os << std::setprecision(15) << *i;
 1521|   109k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 97.9k, False: 11.3k]
  ------------------
 1522|  97.9k|      os << " ";
 1523|   109k|  }
 1524|  11.4k|  return os;
 1525|  11.4k|}
_ZNK5Exiv29ValueTypeIsE8toStringEm:
 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|}
_ZNK5Exiv29ValueTypeIsE7toInt64Em:
 1535|  7.38M|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  7.38M|  ok_ = true;
 1537|  7.38M|  return static_cast<int64_t>(value_.at(n));
 1538|  7.38M|}
_ZNK5Exiv29ValueTypeIsE8toUint32Em:
 1540|  12.0k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  12.0k|  ok_ = true;
 1542|  12.0k|  return static_cast<uint32_t>(value_.at(n));
 1543|  12.0k|}
_ZNK5Exiv29ValueTypeIsE7toFloatEm:
 1585|    219|float ValueType<T>::toFloat(size_t n) const {
 1586|    219|  ok_ = true;
 1587|    219|  return static_cast<float>(value_.at(n));
 1588|    219|}
_ZNK5Exiv29ValueTypeIsE10toRationalEm:
 1607|    224|Rational ValueType<T>::toRational(size_t n) const {
 1608|    224|  ok_ = true;
 1609|    224|  return {value_.at(n), 1};
 1610|    224|}
_ZNK5Exiv29ValueTypeIsE12sizeDataAreaEv:
 1639|  3.40k|size_t ValueType<T>::sizeDataArea() const {
 1640|  3.40k|  return pDataArea_.size();
 1641|  3.40k|}
_ZNK5Exiv29ValueTypeIsE8dataAreaEv:
 1644|     49|DataBuf ValueType<T>::dataArea() const {
 1645|     49|  return {pDataArea_.data(), pDataArea_.size()};
 1646|     49|}
_ZNK5Exiv29ValueTypeIsE6clone_Ev:
 1511|  2.75M|ValueType<T>* ValueType<T>::clone_() const {
 1512|  2.75M|  return new ValueType<T>(*this);
 1513|  2.75M|}
_ZN5Exiv29ValueTypeIsEC2ERKS1_:
 1447|  2.75M|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  2.75M|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 174, False: 2.75M]
  ------------------
 1449|    174|    pDataArea_ = rhs.pDataArea_;
 1450|  2.75M|}
_ZN5Exiv29ValueTypeIiEC2Ev:
 1433|   149k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|   149k|}
_ZN5Exiv29ValueTypeIiE4readEPKhmNS_9ByteOrderE:
 1467|   149k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|   149k|  value_.clear();
 1469|   149k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|   149k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 149k, False: 0]
  |  Branch (1470:17): [True: 1.09k, False: 148k]
  ------------------
 1471|  1.09k|    len = (len / ts) * ts;
 1472|   491k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 341k, False: 149k]
  ------------------
 1473|   341k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   341k|  }
 1475|   149k|  return 0;
 1476|   149k|}
_ZN5Exiv29ValueTypeIiE11setDataAreaEPKhm:
 1649|    276|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    276|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 137, False: 139]
  ------------------
 1651|    137|    pDataArea_ = Blob(buf, buf + len);
 1652|    139|  else
 1653|    139|    pDataArea_.clear();
 1654|    276|  return 0;
 1655|    276|}
_ZNK5Exiv29ValueTypeIiE4copyEPhNS_9ByteOrderE:
 1492|  5.18k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  5.18k|  size_t offset = 0;
 1494|  22.8k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 22.8k, False: 5.18k]
  ------------------
 1495|  22.8k|    offset += toData(buf + offset, val, byteOrder);
 1496|  22.8k|  }
 1497|  5.18k|  return offset;
 1498|  5.18k|}
_ZNK5Exiv29ValueTypeIiE5countEv:
 1501|   191k|size_t ValueType<T>::count() const {
 1502|   191k|  return value_.size();
 1503|   191k|}
_ZNK5Exiv29ValueTypeIiE4sizeEv:
 1506|  20.7k|size_t ValueType<T>::size() const {
 1507|  20.7k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  20.7k|}
_ZNK5Exiv29ValueTypeIiE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  4.85k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  4.85k|  auto end = value_.end();
 1518|  4.85k|  auto i = value_.begin();
 1519|   179k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 174k, False: 4.85k]
  ------------------
 1520|   174k|    os << std::setprecision(15) << *i;
 1521|   174k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 170k, False: 4.56k]
  ------------------
 1522|   170k|      os << " ";
 1523|   174k|  }
 1524|  4.85k|  return os;
 1525|  4.85k|}
_ZNK5Exiv29ValueTypeIiE8toStringEm:
 1528|    230|std::string ValueType<T>::toString(size_t n) const {
 1529|    230|  ok_ = true;
 1530|    230|  return Exiv2::toString<T>(value_.at(n));
 1531|    230|}
_ZNK5Exiv29ValueTypeIiE7toInt64Em:
 1535|  23.9k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  23.9k|  ok_ = true;
 1537|  23.9k|  return static_cast<int64_t>(value_.at(n));
 1538|  23.9k|}
_ZNK5Exiv29ValueTypeIiE8toUint32Em:
 1540|  3.08k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  3.08k|  ok_ = true;
 1542|  3.08k|  return static_cast<uint32_t>(value_.at(n));
 1543|  3.08k|}
_ZNK5Exiv29ValueTypeIiE7toFloatEm:
 1585|    108|float ValueType<T>::toFloat(size_t n) const {
 1586|    108|  ok_ = true;
 1587|    108|  return static_cast<float>(value_.at(n));
 1588|    108|}
_ZNK5Exiv29ValueTypeIiE10toRationalEm:
 1607|    264|Rational ValueType<T>::toRational(size_t n) const {
 1608|    264|  ok_ = true;
 1609|    264|  return {value_.at(n), 1};
 1610|    264|}
_ZNK5Exiv29ValueTypeIiE12sizeDataAreaEv:
 1639|  1.93k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.93k|  return pDataArea_.size();
 1641|  1.93k|}
_ZNK5Exiv29ValueTypeIiE8dataAreaEv:
 1644|    227|DataBuf ValueType<T>::dataArea() const {
 1645|    227|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    227|}
_ZNK5Exiv29ValueTypeIiE6clone_Ev:
 1511|   310k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   310k|  return new ValueType<T>(*this);
 1513|   310k|}
_ZN5Exiv29ValueTypeIiEC2ERKS1_:
 1447|   310k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   310k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 115, False: 310k]
  ------------------
 1449|    115|    pDataArea_ = rhs.pDataArea_;
 1450|   310k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEEC2Ev:
 1433|  36.2k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  36.2k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEE4readEPKhmNS_9ByteOrderE:
 1467|  36.2k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  36.2k|  value_.clear();
 1469|  36.2k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  36.2k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 36.2k, False: 0]
  |  Branch (1470:17): [True: 0, False: 36.2k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   460k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 424k, False: 36.2k]
  ------------------
 1473|   424k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   424k|  }
 1475|  36.2k|  return 0;
 1476|  36.2k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEE11setDataAreaEPKhm:
 1649|  1.76k|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|  1.76k|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 1.29k, False: 463]
  ------------------
 1651|  1.29k|    pDataArea_ = Blob(buf, buf + len);
 1652|    463|  else
 1653|    463|    pDataArea_.clear();
 1654|  1.76k|  return 0;
 1655|  1.76k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE4copyEPhNS_9ByteOrderE:
 1492|  14.7k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  14.7k|  size_t offset = 0;
 1494|  47.7k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 47.7k, False: 14.7k]
  ------------------
 1495|  47.7k|    offset += toData(buf + offset, val, byteOrder);
 1496|  47.7k|  }
 1497|  14.7k|  return offset;
 1498|  14.7k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE5countEv:
 1501|   108k|size_t ValueType<T>::count() const {
 1502|   108k|  return value_.size();
 1503|   108k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE4sizeEv:
 1506|  43.9k|size_t ValueType<T>::size() const {
 1507|  43.9k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  43.9k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE5writeERNS1_13basic_ostreamIcNS1_11char_traitsIcEEEE:
 1516|  8.30k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  8.30k|  auto end = value_.end();
 1518|  8.30k|  auto i = value_.begin();
 1519|  48.8k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 40.5k, False: 8.30k]
  ------------------
 1520|  40.5k|    os << std::setprecision(15) << *i;
 1521|  40.5k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 32.3k, False: 8.20k]
  ------------------
 1522|  32.3k|      os << " ";
 1523|  40.5k|  }
 1524|  8.30k|  return os;
 1525|  8.30k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8toStringEm:
 1528|    338|std::string ValueType<T>::toString(size_t n) const {
 1529|    338|  ok_ = true;
 1530|    338|  return Exiv2::toString<T>(value_.at(n));
 1531|    338|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE12sizeDataAreaEv:
 1639|  3.55k|size_t ValueType<T>::sizeDataArea() const {
 1640|  3.55k|  return pDataArea_.size();
 1641|  3.55k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8dataAreaEv:
 1644|    170|DataBuf ValueType<T>::dataArea() const {
 1645|    170|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    170|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE6clone_Ev:
 1511|  93.2k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  93.2k|  return new ValueType<T>(*this);
 1513|  93.2k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEEC2ERKS4_:
 1447|  93.2k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  93.2k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 2.28k, False: 90.9k]
  ------------------
 1449|  2.28k|    pDataArea_ = rhs.pDataArea_;
 1450|  93.2k|}
_ZN5Exiv29ValueTypeIfEC2Ev:
 1433|  10.5k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  10.5k|}
_ZN5Exiv29ValueTypeIfE4readEPKhmNS_9ByteOrderE:
 1467|  10.5k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  10.5k|  value_.clear();
 1469|  10.5k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  10.5k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 10.5k, False: 0]
  |  Branch (1470:17): [True: 0, False: 10.5k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   154k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 143k, False: 10.5k]
  ------------------
 1473|   143k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   143k|  }
 1475|  10.5k|  return 0;
 1476|  10.5k|}
_ZN5Exiv29ValueTypeIfE11setDataAreaEPKhm:
 1649|    705|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    705|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 354, False: 351]
  ------------------
 1651|    354|    pDataArea_ = Blob(buf, buf + len);
 1652|    351|  else
 1653|    351|    pDataArea_.clear();
 1654|    705|  return 0;
 1655|    705|}
_ZNK5Exiv29ValueTypeIfE4copyEPhNS_9ByteOrderE:
 1492|  6.18k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  6.18k|  size_t offset = 0;
 1494|  43.6k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 43.6k, False: 6.18k]
  ------------------
 1495|  43.6k|    offset += toData(buf + offset, val, byteOrder);
 1496|  43.6k|  }
 1497|  6.18k|  return offset;
 1498|  6.18k|}
_ZNK5Exiv29ValueTypeIfE5countEv:
 1501|  35.6k|size_t ValueType<T>::count() const {
 1502|  35.6k|  return value_.size();
 1503|  35.6k|}
_ZNK5Exiv29ValueTypeIfE4sizeEv:
 1506|  21.9k|size_t ValueType<T>::size() const {
 1507|  21.9k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  21.9k|}
_ZNK5Exiv29ValueTypeIfE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  2.94k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  2.94k|  auto end = value_.end();
 1518|  2.94k|  auto i = value_.begin();
 1519|  89.0k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 86.0k, False: 2.94k]
  ------------------
 1520|  86.0k|    os << std::setprecision(15) << *i;
 1521|  86.0k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 83.2k, False: 2.86k]
  ------------------
 1522|  83.2k|      os << " ";
 1523|  86.0k|  }
 1524|  2.94k|  return os;
 1525|  2.94k|}
_ZNK5Exiv29ValueTypeIfE8toStringEm:
 1528|    490|std::string ValueType<T>::toString(size_t n) const {
 1529|    490|  ok_ = true;
 1530|    490|  return Exiv2::toString<T>(value_.at(n));
 1531|    490|}
_ZNK5Exiv29ValueTypeIfE7toFloatEm:
 1585|    126|float ValueType<T>::toFloat(size_t n) const {
 1586|    126|  ok_ = true;
 1587|    126|  return static_cast<float>(value_.at(n));
 1588|    126|}
_ZNK5Exiv29ValueTypeIfE12sizeDataAreaEv:
 1639|  3.45k|size_t ValueType<T>::sizeDataArea() const {
 1640|  3.45k|  return pDataArea_.size();
 1641|  3.45k|}
_ZNK5Exiv29ValueTypeIfE8dataAreaEv:
 1644|    346|DataBuf ValueType<T>::dataArea() const {
 1645|    346|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    346|}
_ZNK5Exiv29ValueTypeIfE6clone_Ev:
 1511|  32.9k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  32.9k|  return new ValueType<T>(*this);
 1513|  32.9k|}
_ZN5Exiv29ValueTypeIfEC2ERKS1_:
 1447|  32.9k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  32.9k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 278, False: 32.6k]
  ------------------
 1449|    278|    pDataArea_ = rhs.pDataArea_;
 1450|  32.9k|}
_ZN5Exiv29ValueTypeIdEC2Ev:
 1433|  9.42k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  9.42k|}
_ZN5Exiv29ValueTypeIdE4readEPKhmNS_9ByteOrderE:
 1467|  9.42k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  9.42k|  value_.clear();
 1469|  9.42k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  9.42k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 9.42k, False: 0]
  |  Branch (1470:17): [True: 0, False: 9.42k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|  1.87M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 1.86M, False: 9.42k]
  ------------------
 1473|  1.86M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  1.86M|  }
 1475|  9.42k|  return 0;
 1476|  9.42k|}
_ZN5Exiv29ValueTypeIdE11setDataAreaEPKhm:
 1649|    393|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    393|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 183, False: 210]
  ------------------
 1651|    183|    pDataArea_ = Blob(buf, buf + len);
 1652|    210|  else
 1653|    210|    pDataArea_.clear();
 1654|    393|  return 0;
 1655|    393|}
_ZNK5Exiv29ValueTypeIdE4copyEPhNS_9ByteOrderE:
 1492|  7.28k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  7.28k|  size_t offset = 0;
 1494|  70.2k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 70.2k, False: 7.28k]
  ------------------
 1495|  70.2k|    offset += toData(buf + offset, val, byteOrder);
 1496|  70.2k|  }
 1497|  7.28k|  return offset;
 1498|  7.28k|}
_ZNK5Exiv29ValueTypeIdE5countEv:
 1501|  23.1k|size_t ValueType<T>::count() const {
 1502|  23.1k|  return value_.size();
 1503|  23.1k|}
_ZNK5Exiv29ValueTypeIdE4sizeEv:
 1506|  24.1k|size_t ValueType<T>::size() const {
 1507|  24.1k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  24.1k|}
_ZNK5Exiv29ValueTypeIdE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  1.47k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  1.47k|  auto end = value_.end();
 1518|  1.47k|  auto i = value_.begin();
 1519|  7.69k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 6.21k, False: 1.47k]
  ------------------
 1520|  6.21k|    os << std::setprecision(15) << *i;
 1521|  6.21k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 4.82k, False: 1.39k]
  ------------------
 1522|  4.82k|      os << " ";
 1523|  6.21k|  }
 1524|  1.47k|  return os;
 1525|  1.47k|}
_ZNK5Exiv29ValueTypeIdE8toStringEm:
 1528|     38|std::string ValueType<T>::toString(size_t n) const {
 1529|     38|  ok_ = true;
 1530|     38|  return Exiv2::toString<T>(value_.at(n));
 1531|     38|}
_ZNK5Exiv29ValueTypeIdE7toFloatEm:
 1585|    198|float ValueType<T>::toFloat(size_t n) const {
 1586|    198|  ok_ = true;
 1587|    198|  return static_cast<float>(value_.at(n));
 1588|    198|}
_ZNK5Exiv29ValueTypeIdE12sizeDataAreaEv:
 1639|  3.06k|size_t ValueType<T>::sizeDataArea() const {
 1640|  3.06k|  return pDataArea_.size();
 1641|  3.06k|}
_ZNK5Exiv29ValueTypeIdE8dataAreaEv:
 1644|    348|DataBuf ValueType<T>::dataArea() const {
 1645|    348|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    348|}
_ZNK5Exiv29ValueTypeIdE6clone_Ev:
 1511|  30.4k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  30.4k|  return new ValueType<T>(*this);
 1513|  30.4k|}
_ZN5Exiv29ValueTypeIdEC2ERKS1_:
 1447|  30.4k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  30.4k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 154, False: 30.3k]
  ------------------
 1449|    154|    pDataArea_ = rhs.pDataArea_;
 1450|  30.4k|}
_ZZNK5Exiv222LangAltValueComparatorclERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_ENKUlhhE_clEhh:
  799|  1.91k|    auto f = [](unsigned char a, unsigned char b) { return std::tolower(a) > std::tolower(b); };
_ZN5Exiv29ValueTypeIjEC2Ev:
 1433|  30.2k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  30.2k|}

_ZNK5Exiv27XmpData9usePacketEv:
  216|  9.61k|  [[nodiscard]] bool usePacket() const {
  217|  9.61k|    return usePacket_;
  218|  9.61k|  }
_ZN5Exiv27XmpData9usePacketEb:
  221|  38.5k|  bool usePacket(bool b) {
  222|  38.5k|    bool r = usePacket_;
  223|  38.5k|    usePacket_ = b;
  224|  38.5k|    return r;
  225|  38.5k|  }
_ZN5Exiv27XmpData9setPacketENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  227|  37.4k|  void setPacket(std::string xmpPacket) {
  228|  37.4k|    xmpPacket_ = std::move(xmpPacket);
  229|  37.4k|    usePacket(false);
  230|  37.4k|  }
_ZNK5Exiv27XmpData10nsBindingsEv:
  260|  3.32k|  [[nodiscard]] const std::map<std::string, std::string>& nsBindings() const {
  261|  3.32k|    return nsBindings_;
  262|  3.32k|  }
_ZN5Exiv27XmpDataC2Ev:
  140|  40.9k|  XmpData() = default;
_ZN5Exiv28XmpdatumaSINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEERS0_RKT_:
  395|  11.0k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|  11.0k|    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|       |    setValue(Exiv2::toString(value));
  404|  11.0k|  return *this;
  405|  11.0k|}
_ZN5Exiv28XmpdatumaSIdEERS0_RKT_:
  395|   225k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|   225k|    setValue(Exiv2::toString(value));
  404|   225k|  return *this;
  405|   225k|}
_ZN5Exiv28XmpdatumaSImEERS0_RKT_:
  395|  6.34k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|  6.34k|    setValue(Exiv2::toString(value));
  404|  6.34k|  return *this;
  405|  6.34k|}
_ZN5Exiv28XmpdatumaSIjEERS0_RKT_:
  395|  6.66k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|  6.66k|    setValue(Exiv2::toString(value));
  404|  6.66k|  return *this;
  405|  6.66k|}
_ZN5Exiv28XmpdatumaSIPKhEERS0_RKT_:
  395|  2.41k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|  2.41k|    setValue(Exiv2::toString(value));
  404|  2.41k|  return *this;
  405|  2.41k|}
_ZN5Exiv28XmpdatumaSIA4_cEERS0_RKT_:
  395|  1.74k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|  1.74k|    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|       |    setValue(Exiv2::toString(value));
  404|  1.74k|  return *this;
  405|  1.74k|}
_ZN5Exiv28XmpdatumaSIlEERS0_RKT_:
  395|    740|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|    740|    setValue(Exiv2::toString(value));
  404|    740|  return *this;
  405|    740|}
_ZN5Exiv28XmpdatumaSIfEERS0_RKT_:
  395|    808|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|    808|    setValue(Exiv2::toString(value));
  404|    808|  return *this;
  405|    808|}
_ZN5Exiv28XmpdatumaSIA18_cEERS0_RKT_:
  395|    253|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|    253|    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|       |    setValue(Exiv2::toString(value));
  404|    253|  return *this;
  405|    253|}
_ZN5Exiv28XmpdatumaSItEERS0_RKT_:
  395|   144k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|   144k|    setValue(Exiv2::toString(value));
  404|   144k|  return *this;
  405|   144k|}
_ZN5Exiv28XmpdatumaSIsEERS0_RKT_:
  395|  1.18k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|  1.18k|    setValue(Exiv2::toString(value));
  404|  1.18k|  return *this;
  405|  1.18k|}
_ZN5Exiv28XmpdatumaSIPhEERS0_RKT_:
  395|   231k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|   231k|    setValue(Exiv2::toString(value));
  404|   231k|  return *this;
  405|   231k|}
_ZN5Exiv28XmpdatumaSIPKcEERS0_RKT_:
  395|  19.1k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|  19.1k|    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|       |    setValue(Exiv2::toString(value));
  404|  19.1k|  return *this;
  405|  19.1k|}
_ZN5Exiv28XmpdatumaSIiEERS0_RKT_:
  395|   241k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|   241k|    setValue(Exiv2::toString(value));
  404|   241k|  return *this;
  405|   241k|}
_ZN5Exiv28XmpdatumaSIA12_cEERS0_RKT_:
  395|     10|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|     10|    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|       |    setValue(Exiv2::toString(value));
  404|     10|  return *this;
  405|     10|}

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

_ZN5Exiv27BasicIoD2Ev:
   54|  63.1k|BasicIo::~BasicIo() = default;
_ZN5Exiv27BasicIo11readOrThrowEPhmNS_9ErrorCodeE:
   56|  4.12M|void BasicIo::readOrThrow(byte* buf, size_t rcount, ErrorCode err) {
   57|  4.12M|  const size_t nread = read(buf, rcount);
   58|  4.12M|  Internal::enforce(nread == rcount, err);
   59|  4.12M|  Internal::enforce(!error(), err);
   60|  4.12M|}
_ZN5Exiv27BasicIo11seekOrThrowElNS0_8PositionENS_9ErrorCodeE:
   62|  64.1k|void BasicIo::seekOrThrow(int64_t offset, Position pos, ErrorCode err) {
   63|  64.1k|  const int r = seek(offset, pos);
   64|  64.1k|  Internal::enforce(r == 0, err);
   65|  64.1k|}
_ZN5Exiv25MemIo4ImplC2EPKhm:
  618|  36.8k|MemIo::Impl::Impl(const byte* data, size_t size) : data_(const_cast<byte*>(data)), size_(size) {
  619|  36.8k|}
_ZN5Exiv25MemIo4Impl7reserveEm:
  672|  4.19M|void MemIo::Impl::reserve(size_t wcount) {
  673|  4.19M|  const size_t need = wcount + idx_;
  674|  4.19M|  size_t blockSize = 32 * 1024;  // 32768
  675|  4.19M|  const size_t maxBlockSize = 4 * 1024 * 1024;
  676|       |
  677|  4.19M|  if (!isMalloced_) {
  ------------------
  |  Branch (677:7): [True: 17.0k, False: 4.17M]
  ------------------
  678|       |    // Minimum size for 1st block
  679|  17.0k|    auto size = std::max<size_t>(blockSize * (1 + need / blockSize), size_);
  680|  17.0k|    auto data = static_cast<byte*>(std::malloc(size));
  681|  17.0k|    if (!data) {
  ------------------
  |  Branch (681:9): [True: 0, False: 17.0k]
  ------------------
  682|      0|      throw Error(ErrorCode::kerMallocFailed);
  683|      0|    }
  684|  17.0k|    if (data_) {
  ------------------
  |  Branch (684:9): [True: 0, False: 17.0k]
  ------------------
  685|      0|      std::memcpy(data, data_, size_);
  686|      0|    }
  687|  17.0k|    data_ = data;
  688|  17.0k|    sizeAlloced_ = size;
  689|  17.0k|    isMalloced_ = true;
  690|  17.0k|  }
  691|       |
  692|  4.19M|  if (need > size_) {
  ------------------
  |  Branch (692:7): [True: 4.18M, False: 11.7k]
  ------------------
  693|  4.18M|    if (need > sizeAlloced_) {
  ------------------
  |  Branch (693:9): [True: 14.9k, False: 4.16M]
  ------------------
  694|  14.9k|      blockSize = std::min(2 * sizeAlloced_, maxBlockSize);
  695|       |      // Allocate in blocks
  696|  14.9k|      size_t want = blockSize * (1 + need / blockSize);
  697|  14.9k|      data_ = static_cast<byte*>(std::realloc(data_, want));
  698|  14.9k|      if (!data_) {
  ------------------
  |  Branch (698:11): [True: 0, False: 14.9k]
  ------------------
  699|      0|        throw Error(ErrorCode::kerMallocFailed);
  700|      0|      }
  701|  14.9k|      sizeAlloced_ = want;
  702|  14.9k|    }
  703|  4.18M|    size_ = need;
  704|  4.18M|  }
  705|  4.19M|}
_ZN5Exiv25MemIoC2Ev:
  707|  26.3k|MemIo::MemIo() : p_(std::make_unique<Impl>()) {
  708|  26.3k|}
_ZN5Exiv25MemIoC2EPKhm:
  710|  36.8k|MemIo::MemIo(const byte* data, size_t size) : p_(std::make_unique<Impl>(data, size)) {
  711|  36.8k|}
_ZN5Exiv25MemIoD2Ev:
  713|  63.1k|MemIo::~MemIo() {
  714|  63.1k|  if (p_->isMalloced_) {
  ------------------
  |  Branch (714:7): [True: 16.4k, False: 46.6k]
  ------------------
  715|  16.4k|    std::free(p_->data_);
  716|  16.4k|  }
  717|  63.1k|}
_ZN5Exiv25MemIo5writeEPKhm:
  719|  4.17M|size_t MemIo::write(const byte* data, size_t wcount) {
  720|  4.17M|  p_->reserve(wcount);
  721|  4.17M|  if (data) {
  ------------------
  |  Branch (721:7): [True: 4.16M, False: 11.6k]
  ------------------
  722|  4.16M|    std::memcpy(&p_->data_[p_->idx_], data, wcount);
  723|  4.16M|  }
  724|  4.17M|  p_->idx_ += wcount;
  725|  4.17M|  return wcount;
  726|  4.17M|}
_ZN5Exiv25MemIo8transferERNS_7BasicIoE:
  728|  11.3k|void MemIo::transfer(BasicIo& src) {
  729|  11.3k|  if (auto memIo = dynamic_cast<MemIo*>(&src)) {
  ------------------
  |  Branch (729:12): [True: 11.3k, False: 0]
  ------------------
  730|       |    // Optimization if src is another instance of MemIo
  731|  11.3k|    if (p_->isMalloced_) {
  ------------------
  |  Branch (731:9): [True: 560, False: 10.7k]
  ------------------
  732|    560|      std::free(p_->data_);
  733|    560|    }
  734|  11.3k|    p_->idx_ = 0;
  735|  11.3k|    p_->data_ = memIo->p_->data_;
  736|  11.3k|    p_->size_ = memIo->p_->size_;
  737|  11.3k|    p_->isMalloced_ = memIo->p_->isMalloced_;
  738|  11.3k|    memIo->p_->idx_ = 0;
  739|  11.3k|    memIo->p_->data_ = nullptr;
  740|  11.3k|    memIo->p_->size_ = 0;
  741|  11.3k|    memIo->p_->isMalloced_ = false;
  742|  11.3k|  } else {
  743|       |    // Generic reopen to reset position to start
  744|      0|    if (src.open() != 0) {
  ------------------
  |  Branch (744:9): [True: 0, False: 0]
  ------------------
  745|      0|      throw Error(ErrorCode::kerDataSourceOpenFailed, src.path(), strError());
  746|      0|    }
  747|      0|    p_->idx_ = 0;
  748|      0|    write(src);
  749|      0|    src.close();
  750|      0|  }
  751|  11.3k|  if (error() || src.error())
  ------------------
  |  Branch (751:7): [True: 0, False: 11.3k]
  |  Branch (751:18): [True: 0, False: 11.3k]
  ------------------
  752|      0|    throw Error(ErrorCode::kerMemoryTransferFailed, strError());
  753|  11.3k|}
_ZN5Exiv25MemIo4putbEh:
  773|  21.1k|int MemIo::putb(byte data) {
  774|  21.1k|  p_->reserve(1);
  775|  21.1k|  p_->data_[p_->idx_++] = data;
  776|  21.1k|  return data;
  777|  21.1k|}
_ZN5Exiv25MemIo4seekElNS_7BasicIo8PositionE:
  779|  1.15M|int MemIo::seek(int64_t offset, Position pos) {
  780|  1.15M|  int64_t newIdx = 0;
  781|       |
  782|  1.15M|  switch (pos) {
  ------------------
  |  Branch (782:11): [True: 1.15M, False: 0]
  ------------------
  783|   674k|    case BasicIo::cur:
  ------------------
  |  Branch (783:5): [True: 674k, False: 482k]
  ------------------
  784|   674k|      newIdx = p_->idx_ + offset;
  785|   674k|      break;
  786|   482k|    case BasicIo::beg:
  ------------------
  |  Branch (786:5): [True: 482k, False: 674k]
  ------------------
  787|   482k|      newIdx = offset;
  788|   482k|      break;
  789|     64|    case BasicIo::end:
  ------------------
  |  Branch (789:5): [True: 64, False: 1.15M]
  ------------------
  790|     64|      newIdx = p_->size_ + offset;
  791|     64|      break;
  792|  1.15M|  }
  793|       |
  794|  1.15M|  if (newIdx < 0)
  ------------------
  |  Branch (794:7): [True: 0, False: 1.15M]
  ------------------
  795|      0|    return 1;
  796|       |
  797|  1.15M|  if (newIdx > static_cast<int64_t>(p_->size_)) {
  ------------------
  |  Branch (797:7): [True: 4.73k, False: 1.15M]
  ------------------
  798|  4.73k|    p_->eof_ = true;
  799|  4.73k|    return 1;
  800|  4.73k|  }
  801|       |
  802|  1.15M|  p_->idx_ = static_cast<size_t>(newIdx);
  803|  1.15M|  p_->eof_ = false;
  804|  1.15M|  return 0;
  805|  1.15M|}
_ZN5Exiv25MemIo4mmapEb:
  807|  37.7k|byte* MemIo::mmap(bool /*isWriteable*/) {
  808|  37.7k|  return p_->data_;
  809|  37.7k|}
_ZNK5Exiv25MemIo4tellEv:
  815|   927k|size_t MemIo::tell() const {
  816|   927k|  return p_->idx_;
  817|   927k|}
_ZNK5Exiv25MemIo4sizeEv:
  819|   469k|size_t MemIo::size() const {
  820|   469k|  return p_->size_;
  821|   469k|}
_ZN5Exiv25MemIo4openEv:
  823|   166k|int MemIo::open() {
  824|   166k|  p_->idx_ = 0;
  825|   166k|  p_->eof_ = false;
  826|   166k|  return 0;
  827|   166k|}
_ZNK5Exiv25MemIo6isopenEv:
  829|  89.9k|bool MemIo::isopen() const {
  830|  89.9k|  return true;
  831|  89.9k|}
_ZN5Exiv25MemIo5closeEv:
  833|  87.4k|int MemIo::close() {
  834|  87.4k|  return 0;
  835|  87.4k|}
_ZN5Exiv25MemIo4readEm:
  837|  88.7k|DataBuf MemIo::read(size_t rcount) {
  838|  88.7k|  DataBuf buf(rcount);
  839|  88.7k|  size_t readCount = read(buf.data(), buf.size());
  840|  88.7k|  buf.resize(readCount);
  841|  88.7k|  return buf;
  842|  88.7k|}
_ZN5Exiv25MemIo4readEPhm:
  844|  5.31M|size_t MemIo::read(byte* buf, size_t rcount) {
  845|  5.31M|  const auto avail = std::max<size_t>(p_->size_ - p_->idx_, 0);
  846|  5.31M|  const auto allow = std::min<size_t>(rcount, avail);
  847|  5.31M|  if (allow > 0) {
  ------------------
  |  Branch (847:7): [True: 5.15M, False: 159k]
  ------------------
  848|  5.15M|    std::memcpy(buf, &p_->data_[p_->idx_], allow);
  849|  5.15M|  }
  850|  5.31M|  p_->idx_ += allow;
  851|  5.31M|  if (rcount > avail) {
  ------------------
  |  Branch (851:7): [True: 9.59k, False: 5.30M]
  ------------------
  852|  9.59k|    p_->eof_ = true;
  853|  9.59k|  }
  854|  5.31M|  return allow;
  855|  5.31M|}
_ZN5Exiv25MemIo4getbEv:
  857|  12.9M|int MemIo::getb() {
  858|  12.9M|  if (p_->idx_ >= p_->size_) {
  ------------------
  |  Branch (858:7): [True: 525, False: 12.9M]
  ------------------
  859|    525|    p_->eof_ = true;
  860|    525|    return EOF;
  861|    525|  }
  862|  12.9M|  return p_->data_[p_->idx_++];
  863|  12.9M|}
_ZNK5Exiv25MemIo5errorEv:
  865|  5.05M|int MemIo::error() const {
  866|  5.05M|  return 0;
  867|  5.05M|}
_ZNK5Exiv25MemIo3eofEv:
  869|   940k|bool MemIo::eof() const {
  870|   940k|  return p_->eof_;
  871|   940k|}
_ZNK5Exiv25MemIo4pathEv:
  873|  39.9k|const std::string& MemIo::path() const noexcept {
  874|  39.9k|  static std::string _path{"MemIo"};
  875|  39.9k|  return _path;
  876|  39.9k|}
_ZN5Exiv25MemIo16populateFakeDataEv:
  878|    850|void MemIo::populateFakeData() {
  879|    850|}
_ZN5Exiv25MemIo4ImplC2Ev:
  598|  26.3k|  Impl() = default;                     //!< Default constructor

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

_ZN5Exiv28BmpImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
   26|     65|BmpImage::BmpImage(BasicIo::UniquePtr io) : Image(ImageType::bmp, mdNone, std::move(io)) {
   27|     65|}
_ZN5Exiv28BmpImage12readMetadataEv:
   46|     65|void BmpImage::readMetadata() {
   47|       |#ifdef EXIV2_DEBUG_MESSAGES
   48|       |  std::cerr << "Exiv2::BmpImage::readMetadata: Reading Windows bitmap file " << io_->path() << "\n";
   49|       |#endif
   50|     65|  if (io_->open() != 0) {
  ------------------
  |  Branch (50:7): [True: 0, False: 65]
  ------------------
   51|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   52|      0|  }
   53|     65|  IoCloser closer(*io_);
   54|       |
   55|       |  // Ensure that this is the correct image type
   56|     65|  if (!isBmpType(*io_, false)) {
  ------------------
  |  Branch (56:7): [True: 0, False: 65]
  ------------------
   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|     65|  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|     65|  byte buf[26];
   83|     65|  if (io_->read(buf, sizeof(buf)) == sizeof(buf)) {
  ------------------
  |  Branch (83:7): [True: 65, False: 0]
  ------------------
   84|     65|    pixelWidth_ = getULong(buf + 18, littleEndian);
   85|     65|    pixelHeight_ = getULong(buf + 22, littleEndian);
   86|     65|  }
   87|     65|}
_ZN5Exiv214newBmpInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
   96|     65|Image::UniquePtr newBmpInstance(BasicIo::UniquePtr io, bool /*create*/) {
   97|     65|  auto image = std::make_unique<BmpImage>(std::move(io));
   98|     65|  if (!image->good()) {
  ------------------
  |  Branch (98:7): [True: 0, False: 65]
  ------------------
   99|      0|    return nullptr;
  100|      0|  }
  101|     65|  return image;
  102|     65|}
_ZN5Exiv29isBmpTypeERNS_7BasicIoEb:
  104|  10.7k|bool isBmpType(BasicIo& iIo, bool advance) {
  105|  10.7k|  const int32_t len = 2;
  106|  10.7k|  const std::array<byte, len> BmpImageId{'B', 'M'};
  107|  10.7k|  std::array<byte, len> buf;
  108|  10.7k|  iIo.read(buf.data(), len);
  109|  10.7k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (109:7): [True: 0, False: 10.7k]
  |  Branch (109:22): [True: 104, False: 10.6k]
  ------------------
  110|    104|    return false;
  111|    104|  }
  112|  10.6k|  bool matched = buf == BmpImageId;
  113|  10.6k|  if (!advance || !matched) {
  ------------------
  |  Branch (113:7): [True: 10.6k, False: 0]
  |  Branch (113:19): [True: 0, False: 0]
  ------------------
  114|  10.6k|    iIo.seek(-len, BasicIo::cur);
  115|  10.6k|  }
  116|  10.6k|  return matched;
  117|  10.7k|}

_ZN5Exiv28Internal14CanonMakerNote17printFiFileNumberERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2664|    532|std::ostream& CanonMakerNote::printFiFileNumber(std::ostream& os, const Value& value, const ExifData* metadata) {
 2665|    532|  if (!metadata || value.typeId() != unsignedLong || value.count() == 0) {
  ------------------
  |  Branch (2665:7): [True: 266, False: 266]
  |  Branch (2665:20): [True: 20, False: 246]
  |  Branch (2665:54): [True: 0, False: 246]
  ------------------
 2666|    286|    return os << "(" << value << ")";
 2667|    286|  }
 2668|       |
 2669|    246|  auto pos = metadata->findKey(ExifKey("Exif.Image.Model"));
 2670|    246|  if (pos == metadata->end())
  ------------------
  |  Branch (2670:7): [True: 215, False: 31]
  ------------------
 2671|    215|    return os << "(" << value << ")";
 2672|       |
 2673|       |  // Ported from Exiftool
 2674|     31|  std::string model = pos->toString();
 2675|     31|  if (Internal::contains(model, "20D") || Internal::contains(model, "350D") ||
  ------------------
  |  Branch (2675:7): [True: 1, False: 30]
  |  Branch (2675:7): [True: 4, False: 27]
  |  Branch (2675:43): [True: 1, False: 29]
  ------------------
 2676|     29|      model.substr(model.size() - 8, 8) == "REBEL XT" || Internal::contains(model, "Kiss Digital N")) {
  ------------------
  |  Branch (2676:7): [True: 6, False: 23]
  |  Branch (2676:58): [True: 0, False: 23]
  ------------------
 2677|      4|    uint32_t val = value.toUint32();
 2678|      4|    return os << stringFormat("{}-{:04}", (val & 0xffc0) >> 6, ((val >> 16) & 0xff) + ((val & 0x3f) << 8));
  ------------------
  |  |   18|      4|#define stringFormat std::format
  ------------------
 2679|      4|  }
 2680|     27|  if (Internal::contains(model, "30D") || Internal::contains(model, "400D") || Internal::contains(model, "REBEL XTi") ||
  ------------------
  |  Branch (2680:7): [True: 6, False: 21]
  |  Branch (2680:43): [True: 0, False: 21]
  |  Branch (2680:80): [True: 1, False: 20]
  ------------------
 2681|     20|      Internal::contains(model, "Kiss Digital X") || Internal::contains(model, "K236")) {
  ------------------
  |  Branch (2681:7): [True: 1, False: 19]
  |  Branch (2681:54): [True: 1, False: 18]
  ------------------
 2682|      5|    uint32_t val = value.toUint32();
 2683|      5|    uint32_t dn = (val & 0xffc00) >> 10;
 2684|     11|    while (dn < 100)
  ------------------
  |  Branch (2684:12): [True: 6, False: 5]
  ------------------
 2685|      6|      dn += 0x40;
 2686|      5|    return os << stringFormat("{}-{:04}", dn, ((val & 0x3ff) << 4) + ((val >> 20) & 0x0f));
  ------------------
  |  |   18|      5|#define stringFormat std::format
  ------------------
 2687|      5|  }
 2688|       |
 2689|     22|  return os << "(" << value << ")";
 2690|     27|}
_ZN5Exiv28Internal14CanonMakerNote16printFocalLengthERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2692|  1.05k|std::ostream& CanonMakerNote::printFocalLength(std::ostream& os, const Value& value, const ExifData* metadata) {
 2693|  1.05k|  if (!metadata || value.count() < 4 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (2693:7): [True: 527, False: 527]
  |  Branch (2693:20): [True: 274, False: 253]
  |  Branch (2693:41): [True: 146, False: 107]
  ------------------
 2694|    947|    return os << value;
 2695|    947|  }
 2696|       |
 2697|    107|  ExifKey key("Exif.CanonCs.Lens");
 2698|    107|  auto pos = metadata->findKey(key);
 2699|    107|  if (pos != metadata->end() && pos->value().count() >= 3 && pos->value().typeId() == unsignedShort) {
  ------------------
  |  Branch (2699:7): [True: 73, False: 34]
  |  Branch (2699:7): [True: 69, False: 38]
  |  Branch (2699:33): [True: 69, False: 4]
  |  Branch (2699:62): [True: 69, False: 0]
  ------------------
 2700|     69|    float fu = pos->value().toFloat(2);
 2701|     69|    if (fu != 0.0F) {
  ------------------
  |  Branch (2701:9): [True: 39, False: 30]
  ------------------
 2702|     39|      return os << stringFormat("{:.1f} mm", value.toFloat(1) / fu);
  ------------------
  |  |   18|     39|#define stringFormat std::format
  ------------------
 2703|     39|    }
 2704|     69|  }
 2705|       |
 2706|     68|  return os << value;
 2707|    107|}
_ZN5Exiv28Internal14CanonMakerNote11print0x0008ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2709|    672|std::ostream& CanonMakerNote::print0x0008(std::ostream& os, const Value& value, const ExifData*) {
 2710|    672|  std::string n = value.toString();
 2711|    672|  if (n.length() < 4)
  ------------------
  |  Branch (2711:7): [True: 64, False: 608]
  ------------------
 2712|     64|    return os << "(" << n << ")";
 2713|    608|  return os << n.substr(0, n.length() - 4) << "-" << n.substr(n.length() - 4);
 2714|    672|}
_ZN5Exiv28Internal14CanonMakerNote11print0x000cERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2725|    612|std::ostream& CanonMakerNote::print0x000c(std::ostream& os, const Value& value, const ExifData* exifData) {
 2726|    612|  if (!exifData) {
  ------------------
  |  Branch (2726:7): [True: 306, False: 306]
  ------------------
 2727|    306|    return os << value;
 2728|    306|  }
 2729|       |
 2730|    306|  ExifKey key("Exif.Canon.ModelID");
 2731|    306|  auto pos = exifData->findKey(key);
 2732|       |  // if model is EOS D30
 2733|    306|  if (pos != exifData->end() && pos->value().count() == 1 && pos->value().toInt64() == 0x01140000) {
  ------------------
  |  Branch (2733:7): [True: 172, False: 134]
  |  Branch (2733:7): [True: 0, False: 306]
  |  Branch (2733:33): [True: 91, False: 81]
  |  Branch (2733:62): [True: 0, False: 91]
  ------------------
 2734|      0|    try {
 2735|      0|      uint32_t l = std::stoul(value.toString());
 2736|      0|      return os << stringFormat("{:04x}{:05}", (l >> 16) & 0xFFFF, l & 0xFFFF);
  ------------------
  |  |   18|      0|#define stringFormat std::format
  ------------------
 2737|      0|    } catch (const std::logic_error&) {
 2738|      0|      return os << value;
 2739|      0|    }
 2740|      0|  }
 2741|    306|  return os << value;
 2742|    306|}
_ZN5Exiv28Internal14CanonMakerNote13printCs0x0002ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2744|  4.23k|std::ostream& CanonMakerNote::printCs0x0002(std::ostream& os, const Value& value, const ExifData*) {
 2745|  4.23k|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2745:7): [True: 0, False: 4.23k]
  |  Branch (2745:42): [True: 0, False: 4.23k]
  ------------------
 2746|      0|    return os << value;
 2747|       |
 2748|  4.23k|  if (auto l = value.toInt64(); l == 0) {
  ------------------
  |  Branch (2748:33): [True: 3.44k, False: 790]
  ------------------
 2749|  3.44k|    os << "Off";
 2750|  3.44k|  } else {
 2751|    790|    os << l / 10.0 << " s";
 2752|    790|  }
 2753|  4.23k|  return os;
 2754|  4.23k|}
_ZN5Exiv28Internal14CanonMakerNote15printCsLensTypeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2896|  4.10k|std::ostream& CanonMakerNote::printCsLensType(std::ostream& os, const Value& value, const ExifData* metadata) {
 2897|  4.10k|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2897:7): [True: 0, False: 4.10k]
  |  Branch (2897:42): [True: 0, False: 4.10k]
  ------------------
 2898|      0|    return os << "(" << value << ")";
 2899|       |
 2900|       |  // #1034
 2901|  4.10k|  const std::string undefined("undefined");
 2902|  4.10k|  const std::string section("canon");
 2903|  4.10k|  if (Internal::readExiv2Config(section, value.toString(), undefined) != undefined) {
  ------------------
  |  Branch (2903:7): [True: 0, False: 4.10k]
  ------------------
 2904|      0|    return os << Internal::readExiv2Config(section, value.toString(), undefined);
 2905|      0|  }
 2906|       |
 2907|       |  // try our best to determine the lens based on metadata
 2908|       |  // sometimes the result will be a set of multiple choices
 2909|  4.10k|  return printCsLensTypeByMetadata(os, value, metadata);
 2910|  4.10k|}
_ZN5Exiv28Internal14CanonMakerNote11printCsLensERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2912|  4.09k|std::ostream& CanonMakerNote::printCsLens(std::ostream& os, const Value& value, const ExifData*) {
 2913|  4.09k|  if (value.count() < 3 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (2913:7): [True: 196, False: 3.89k]
  |  Branch (2913:28): [True: 0, False: 3.89k]
  ------------------
 2914|    196|    return os << "(" << value << ")";
 2915|    196|  }
 2916|       |
 2917|  3.89k|  float fu = value.toFloat(2);
 2918|  3.89k|  if (fu == 0.0F)
  ------------------
  |  Branch (2918:7): [True: 488, False: 3.41k]
  ------------------
 2919|    488|    return os << value;
 2920|  3.41k|  float len1 = value.toInt64(0) / fu;
 2921|  3.41k|  float len2 = value.toInt64(1) / fu;
 2922|  3.41k|  if (len1 == len2) {
  ------------------
  |  Branch (2922:7): [True: 136, False: 3.27k]
  ------------------
 2923|    136|    return os << stringFormat("{:.1f} mm", len1);
  ------------------
  |  |   18|    136|#define stringFormat std::format
  ------------------
 2924|    136|  }
 2925|  3.27k|  return os << stringFormat("{:.1f} - {:.1f} mm", len2, len1);
  ------------------
  |  |   18|  3.27k|#define stringFormat std::format
  ------------------
 2926|  3.41k|}
_ZN5Exiv28Internal14CanonMakerNote13printLe0x0000ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2928|     20|std::ostream& CanonMakerNote::printLe0x0000(std::ostream& os, const Value& value, const ExifData*) {
 2929|     20|  if (value.typeId() != unsignedByte || value.size() != 5)
  ------------------
  |  Branch (2929:7): [True: 0, False: 20]
  |  Branch (2929:41): [True: 4, False: 16]
  ------------------
 2930|      4|    return os << "(" << value << ")";
 2931|     96|  for (size_t i = 0; i < value.size(); ++i) {
  ------------------
  |  Branch (2931:22): [True: 80, False: 16]
  ------------------
 2932|     80|    os << stringFormat("{:02x}", value.toInt64(i));
  ------------------
  |  |   18|     80|#define stringFormat std::format
  ------------------
 2933|     80|  }
 2934|     16|  return os;
 2935|     20|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0001ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2937|    404|std::ostream& CanonMakerNote::printSi0x0001(std::ostream& os, const Value& value, const ExifData*) {
 2938|    404|  if (value.typeId() == unsignedShort && value.count() > 0) {
  ------------------
  |  Branch (2938:7): [True: 404, False: 0]
  |  Branch (2938:42): [True: 404, False: 0]
  ------------------
 2939|    404|    os << std::exp2(canonEv(value.toInt64()) / 32) * 100.0F;
 2940|    404|  }
 2941|    404|  return os;
 2942|    404|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0002ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2944|    404|std::ostream& CanonMakerNote::printSi0x0002(std::ostream& os, const Value& value, const ExifData*) {
 2945|    404|  if (value.typeId() == unsignedShort && value.count() > 0) {
  ------------------
  |  Branch (2945:7): [True: 404, False: 0]
  |  Branch (2945:42): [True: 404, False: 0]
  ------------------
 2946|       |    // Ported from Exiftool by Will Stokes
 2947|    404|    os << std::exp2(canonEv(value.toInt64())) * (100.0F / 32.0F);
 2948|    404|  }
 2949|    404|  return os;
 2950|    404|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0003ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2952|    402|std::ostream& CanonMakerNote::printSi0x0003(std::ostream& os, const Value& value, const ExifData*) {
 2953|    402|  if (value.typeId() == unsignedShort && value.count() > 0) {
  ------------------
  |  Branch (2953:7): [True: 402, False: 0]
  |  Branch (2953:42): [True: 402, False: 0]
  ------------------
 2954|       |    // The offset of '5' seems to be ok for most Canons (see Exiftool)
 2955|       |    // It might be explained by the fact, that most Canons have a longest
 2956|       |    // exposure of 30s which is 5 EV below 1s
 2957|       |    // see also printSi0x0017
 2958|    402|    auto res = std::lround(100.0 * (static_cast<short>(value.toInt64()) / 32.0 + 5.0));
 2959|    402|    os << stringFormat("{:.2f}", res / 100.0);
  ------------------
  |  |   18|    402|#define stringFormat std::format
  ------------------
 2960|    402|  }
 2961|    402|  return os;
 2962|    402|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0009ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2964|    392|std::ostream& CanonMakerNote::printSi0x0009(std::ostream& os, const Value& value, const ExifData*) {
 2965|    392|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2965:7): [True: 0, False: 392]
  |  Branch (2965:42): [True: 0, False: 392]
  ------------------
 2966|      0|    return os << value;
 2967|       |
 2968|    392|  const auto l = value.toInt64();
 2969|    392|  os << l << "";
 2970|       |  // Todo: determine unit
 2971|    392|  return os;
 2972|    392|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x000cERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2974|    390|std::ostream& CanonMakerNote::printSi0x000c(std::ostream& os, const Value& value, const ExifData*) {
 2975|    390|  if (value.toInt64() == 0)
  ------------------
  |  Branch (2975:7): [True: 60, False: 330]
  ------------------
 2976|     60|    return os << "--";
 2977|       |
 2978|    330|  return os << value.toInt64() - 128 << " °C";
 2979|    390|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x000dERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2981|    390|std::ostream& CanonMakerNote::printSi0x000d(std::ostream& os, const Value& value, const ExifData*) {
 2982|    390|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (2982:7): [True: 28, False: 362]
  ------------------
 2983|     28|    return os << "--";
 2984|       |
 2985|    362|  return os << value.toInt64() / 32;
 2986|    390|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x000eERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2988|    390|std::ostream& CanonMakerNote::printSi0x000e(std::ostream& os, const Value& value, const ExifData* pExifData) {
 2989|    390|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2989:7): [True: 0, False: 390]
  |  Branch (2989:42): [True: 0, False: 390]
  ------------------
 2990|      0|    return os << value;
 2991|       |
 2992|    390|  const auto l = value.toUint32();
 2993|    390|  const auto num = (l & 0xf000U) >> 12;
 2994|    390|  os << num << " focus points; ";
 2995|    390|  if (auto used = l & 0x0fffU; used == 0) {
  ------------------
  |  Branch (2995:32): [True: 60, False: 330]
  ------------------
 2996|     60|    os << "none";
 2997|    330|  } else {
 2998|    330|    EXV_PRINT_TAG_BITMASK(canonSiAFPointUsed)(os, value, pExifData);
  ------------------
  |  |  229|    330|#define EXV_PRINT_TAG_BITMASK(array) printTagBitmask<std::size(array), array>
  ------------------
 2999|    330|  }
 3000|    390|  os << " used";
 3001|    390|  return os;
 3002|    390|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0013ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3004|    338|std::ostream& CanonMakerNote::printSi0x0013(std::ostream& os, const Value& value, const ExifData*) {
 3005|    338|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (3005:7): [True: 0, False: 338]
  |  Branch (3005:42): [True: 0, False: 338]
  ------------------
 3006|      0|    return os << value;
 3007|       |
 3008|    338|  if (auto l = value.toInt64(); l == 0xffff) {
  ------------------
  |  Branch (3008:33): [True: 24, False: 314]
  ------------------
 3009|     24|    return os << "Infinite";
 3010|     24|  }
 3011|    314|  return os << value.toInt64() / 100.0 << " m";
 3012|    338|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0015ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3014|  8.80k|std::ostream& CanonMakerNote::printSi0x0015(std::ostream& os, const Value& value, const ExifData*) {
 3015|  8.80k|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (3015:7): [True: 0, False: 8.80k]
  |  Branch (3015:42): [True: 0, False: 8.80k]
  ------------------
 3016|      0|    return os << value;
 3017|       |
 3018|  8.80k|  const auto val = static_cast<int16_t>(value.toInt64());
 3019|  8.80k|  if (val < 0)
  ------------------
  |  Branch (3019:7): [True: 796, False: 8.01k]
  ------------------
 3020|    796|    return os << value;
 3021|  8.01k|  return os << stringFormat("F{:.2g}", fnumber(canonEv(val)));
  ------------------
  |  |   18|  8.01k|#define stringFormat std::format
  ------------------
 3022|  8.80k|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0016ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3024|    722|std::ostream& CanonMakerNote::printSi0x0016(std::ostream& os, const Value& value, const ExifData*) {
 3025|    722|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (3025:7): [True: 0, False: 722]
  |  Branch (3025:42): [True: 0, False: 722]
  ------------------
 3026|      0|    return os << value;
 3027|       |
 3028|    722|  auto [u, r] = exposureTime(canonEv(value.toInt64()));
 3029|    722|  os << u;
 3030|    722|  if (r > 1) {
  ------------------
  |  Branch (3030:7): [True: 150, False: 572]
  ------------------
 3031|    150|    os << "/" << r;
 3032|    150|  }
 3033|    722|  return os << " s";
 3034|    722|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0017ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3036|    330|std::ostream& CanonMakerNote::printSi0x0017(std::ostream& os, const Value& value, const ExifData*) {
 3037|    330|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (3037:7): [True: 0, False: 330]
  |  Branch (3037:42): [True: 0, False: 330]
  ------------------
 3038|      0|    return os << value;
 3039|    330|  return os << stringFormat("{:.2f}", (value.toInt64() / 8.0) - 6.0);
  ------------------
  |  |   18|    330|#define stringFormat std::format
  ------------------
 3040|    330|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0018ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3042|    328|std::ostream& CanonMakerNote::printSi0x0018(std::ostream& os, const Value& value, const ExifData*) {
 3043|    328|  return os << value.toInt64() / 10;
 3044|    328|}
_ZN5Exiv28Internal14CanonMakerNote20printFiFocusDistanceERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3046|    632|std::ostream& CanonMakerNote::printFiFocusDistance(std::ostream& os, const Value& value, const ExifData*) {
 3047|    632|  if (value.typeId() != signedShort || value.count() == 0)
  ------------------
  |  Branch (3047:7): [True: 0, False: 632]
  |  Branch (3047:40): [True: 0, False: 632]
  ------------------
 3048|      0|    return os << value;
 3049|       |
 3050|    632|  auto l = value.toInt64();
 3051|    632|  if (l == -1) {
  ------------------
  |  Branch (3051:7): [True: 62, False: 570]
  ------------------
 3052|     62|    return os << "Infinite";
 3053|     62|  }
 3054|    570|  return os << stringFormat("{:.2f} m", l / 100.0);
  ------------------
  |  |   18|    570|#define stringFormat std::format
  ------------------
 3055|    632|}
_ZN5Exiv28Internal7canonEvEl:
 3060|  11.4k|float canonEv(int64_t val) {
 3061|       |  // temporarily remove sign
 3062|  11.4k|  int sign = 1;
 3063|  11.4k|  if (val < 0) {
  ------------------
  |  Branch (3063:7): [True: 840, False: 10.5k]
  ------------------
 3064|    840|    sign = -1;
 3065|    840|    val = -val;
 3066|    840|  }
 3067|       |  // remove fraction
 3068|  11.4k|  const auto remainder = val & 0x1f;
 3069|  11.4k|  val -= remainder;
 3070|  11.4k|  auto frac = static_cast<float>(remainder);
 3071|       |  // convert 1/3 (0x0c) and 2/3 (0x14) codes
 3072|  11.4k|  if (frac == 0x0c) {
  ------------------
  |  Branch (3072:7): [True: 559, False: 10.8k]
  ------------------
 3073|    559|    frac = 32.0F / 3;
 3074|  10.8k|  } else if (frac == 0x14) {
  ------------------
  |  Branch (3074:14): [True: 373, False: 10.4k]
  ------------------
 3075|    373|    frac = 64.0F / 3;
 3076|  10.4k|  } else if ((val == 160) && (frac == 0x08)) {  // for Sigma f/6.3 lenses that report f/6.2 to camera
  ------------------
  |  Branch (3076:14): [True: 53, False: 10.4k]
  |  Branch (3076:30): [True: 20, False: 33]
  ------------------
 3077|     20|    frac = 30.0F / 3;
 3078|     20|  }
 3079|  11.4k|  return sign * (val + frac) / 32.0F;
 3080|  11.4k|}
canonmn_int.cpp:_ZN5Exiv28InternalL25printCsLensTypeByMetadataERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2802|  4.10k|std::ostream& printCsLensTypeByMetadata(std::ostream& os, const Value& value, const ExifData* metadata) {
 2803|  4.10k|  if (!metadata || value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2803:7): [True: 2.05k, False: 2.05k]
  |  Branch (2803:20): [True: 0, False: 2.05k]
  |  Branch (2803:55): [True: 0, False: 2.05k]
  ------------------
 2804|  2.05k|    return os << value;
 2805|       |
 2806|  2.05k|  auto const lensType = value.toInt64();
 2807|       |
 2808|  2.05k|  if (lensType == 0xffff) {
  ------------------
  |  Branch (2808:7): [True: 37, False: 2.01k]
  ------------------
 2809|     37|    return printCsLensFFFF(os, value, metadata);
 2810|     37|  }
 2811|       |
 2812|       |  // get the values we need from the metadata container
 2813|  2.01k|  ExifKey lensKey("Exif.CanonCs.Lens");
 2814|  2.01k|  auto pos = metadata->findKey(lensKey);
 2815|       |  // catch possible error cases
 2816|  2.01k|  if (pos == metadata->end() || pos->value().count() < 3 || pos->value().typeId() != unsignedShort ||
  ------------------
  |  Branch (2816:7): [True: 1, False: 2.01k]
  |  Branch (2816:7): [True: 139, False: 1.87k]
  |  Branch (2816:33): [True: 15, False: 1.99k]
  |  Branch (2816:61): [True: 0, False: 1.99k]
  ------------------
 2817|  1.99k|      pos->value().toFloat(2) == 0.0F) {
  ------------------
  |  Branch (2817:7): [True: 123, False: 1.87k]
  ------------------
 2818|    139|    os << "Unknown Lens (" << lensType << ")";
 2819|    139|    return os;
 2820|    139|  }
 2821|       |
 2822|  1.87k|  auto const exifFlMin = static_cast<int>(static_cast<float>(pos->value().toInt64(1)) / pos->value().toFloat(2));
 2823|  1.87k|  auto const exifFlMax = static_cast<int>(static_cast<float>(pos->value().toInt64(0)) / pos->value().toFloat(2));
 2824|       |
 2825|  1.87k|  ExifKey aperKey("Exif.CanonCs.MaxAperture");
 2826|  1.87k|  pos = metadata->findKey(aperKey);
 2827|  1.87k|  if (pos == metadata->end() || pos->value().count() != 1 || pos->value().typeId() != unsignedShort) {
  ------------------
  |  Branch (2827:7): [True: 2, False: 1.87k]
  |  Branch (2827:7): [True: 7, False: 1.86k]
  |  Branch (2827:33): [True: 5, False: 1.86k]
  |  Branch (2827:62): [True: 0, False: 1.86k]
  ------------------
 2828|      7|    os << "Unknown Lens (" << lensType << ")";
 2829|      7|    return os;
 2830|      7|  }
 2831|       |
 2832|  1.86k|  auto exifAperMax = fnumber(canonEv(static_cast<int16_t>(pos->value().toInt64(0))));
 2833|       |
 2834|       |  // regex to extract short and tele focal length, max aperture at short and tele position
 2835|       |  // and the teleconverter factor from the lens label
 2836|  1.86k|  std::regex const lens_regex(
 2837|       |      // anything at the start
 2838|  1.86k|      ".*?"
 2839|       |      // maybe min focal length and hyphen, surely max focal length e.g.: 24-70mm
 2840|  1.86k|      R"((?:(\d+)-)?(\d+)mm)"
 2841|       |      // anything in-between
 2842|  1.86k|      ".*?"
 2843|       |      // maybe short focal length max aperture and hyphen, surely at least single max aperture e.g.: f/4.5-5.6
 2844|       |      // short and tele indicate apertures at the short (focal_length_min) and tele (focal_length_max)
 2845|       |      // position of the lens
 2846|  1.86k|      R"((?:(?:f/)|T|F)(?:(\d+(?:\.\d+)?)-)?(\d+(?:\.\d)?))"
 2847|       |      // check if there is a teleconverter pattern e.g. + 1.4x
 2848|  1.86k|      R"((?:.*?\+.*?(\d+(?:\.\d+)?)x)?)");
 2849|       |
 2850|  1.86k|  bool unmatched = true;
 2851|       |  // we loop over all our lenses to print out all matching lenses
 2852|       |  // if we have multiple possibilities, they are concatenated by "*OR*"
 2853|   995k|  for (auto&& [val, label] : canonCsLensType) {
  ------------------
  |  Branch (2853:28): [True: 995k, False: 1.86k]
  ------------------
 2854|   995k|    if (val != lensType) {
  ------------------
  |  Branch (2854:9): [True: 991k, False: 3.52k]
  ------------------
 2855|   991k|      continue;
 2856|   991k|    }
 2857|       |
 2858|  3.52k|    std::cmatch base_match;
 2859|  3.52k|    if (!std::regex_search(label, base_match, lens_regex)) {
  ------------------
  |  Branch (2859:9): [True: 0, False: 3.52k]
  ------------------
 2860|       |      // this should never happen, as it would indicate the lens is specified incorrectly
 2861|       |      // in the CanonCsLensType array
 2862|      0|      throw Error(ErrorCode::kerErrorMessage, "Lens regex didn't match for: ", label);
 2863|      0|    }
 2864|       |
 2865|  3.52k|    auto tc = base_match[5].length() > 0 ? string_to_float(base_match[5].str()) : 1.f;
  ------------------
  |  Branch (2865:15): [True: 44, False: 3.48k]
  ------------------
 2866|       |
 2867|  3.52k|    auto flMax = static_cast<int>(string_to_float(base_match[2].str()) * tc);
 2868|  3.52k|    int flMin = base_match[1].length() > 0 ? static_cast<int>(string_to_float(base_match[1].str()) * tc) : flMax;
  ------------------
  |  Branch (2868:17): [True: 3.08k, False: 438]
  ------------------
 2869|       |
 2870|  3.52k|    auto aperMaxTele = string_to_float(base_match[4].str()) * tc;
 2871|  3.52k|    auto aperMaxShort = base_match[3].length() > 0 ? string_to_float(base_match[3].str()) * tc : aperMaxTele;
  ------------------
  |  Branch (2871:25): [True: 1.77k, False: 1.75k]
  ------------------
 2872|       |
 2873|  3.52k|    if (flMin != exifFlMin || flMax != exifFlMax || exifAperMax < (aperMaxShort - (.1 * tc)) ||
  ------------------
  |  Branch (2873:9): [True: 3.50k, False: 19]
  |  Branch (2873:31): [True: 3, False: 16]
  |  Branch (2873:53): [True: 6, False: 10]
  ------------------
 2874|  3.52k|        exifAperMax > (aperMaxTele + (.1 * tc))) {
  ------------------
  |  Branch (2874:9): [True: 7, False: 3]
  ------------------
 2875|  3.52k|      continue;
 2876|  3.52k|    }
 2877|       |
 2878|      3|    if (unmatched) {
  ------------------
  |  Branch (2878:9): [True: 2, False: 1]
  ------------------
 2879|      2|      unmatched = false;
 2880|      2|      os << label;
 2881|      2|      continue;
 2882|      2|    }
 2883|       |
 2884|      1|    os << " *OR* " << label;
 2885|      1|  }
 2886|       |
 2887|       |  // if the entire for loop left us with unmatched==false
 2888|       |  // we weren't able to find a single matching lens :(
 2889|  1.86k|  if (unmatched) {
  ------------------
  |  Branch (2889:7): [True: 1.86k, False: 2]
  ------------------
 2890|  1.86k|    os << "Unknown Lens (" << lensType << ")";
 2891|  1.86k|  }
 2892|  1.86k|  return os;
 2893|  1.86k|}
canonmn_int.cpp:_ZN5Exiv28InternalL15printCsLensFFFFERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2756|     37|std::ostream& printCsLensFFFF(std::ostream& os, const Value& value, const ExifData* metadata) {
 2757|     37|  try {
 2758|       |    // 1140
 2759|     37|    const auto itModel = metadata->findKey(ExifKey("Exif.Image.Model"));
 2760|     37|    const auto itLens = metadata->findKey(ExifKey("Exif.CanonCs.Lens"));
 2761|     37|    const auto itApert = metadata->findKey(ExifKey("Exif.CanonCs.MaxAperture"));
 2762|       |
 2763|     37|    if (itModel != metadata->end() && itModel->value().toString() == "Canon EOS 30D" && itLens != metadata->end() &&
  ------------------
  |  Branch (2763:9): [True: 16, False: 21]
  |  Branch (2763:9): [True: 0, False: 37]
  |  Branch (2763:39): [True: 1, False: 15]
  |  Branch (2763:89): [True: 1, False: 0]
  ------------------
 2764|      1|        itLens->value().toString() == "24 24 1" && itApert != metadata->end() &&
  ------------------
  |  Branch (2764:9): [True: 0, False: 1]
  |  Branch (2764:52): [True: 0, False: 0]
  ------------------
 2765|      0|        itApert->value().toString() == "95"  // F2.8
  ------------------
  |  Branch (2765:9): [True: 0, False: 0]
  ------------------
 2766|     37|    ) {
 2767|      0|      return os << "Canon EF-S 24mm f/2.8 STM";
 2768|      0|    }
 2769|     37|  } catch (const std::exception&) {
 2770|      0|  }
 2771|       |
 2772|     37|  return EXV_PRINT_TAG(canonCsLensType)(os, value, metadata);
  ------------------
  |  |  199|     37|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2773|     37|}
canonmn_int.cpp:_ZN5Exiv28InternalL15string_to_floatENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
 2787|  11.9k|float string_to_float(std::string_view str) {
 2788|  11.9k|  float val{};
 2789|  11.9k|  std::stringstream ss;
 2790|  11.9k|  std::locale c_locale("C");
 2791|  11.9k|  ss.imbue(c_locale);
 2792|  11.9k|  ss << str;
 2793|  11.9k|  ss >> val;
 2794|       |
 2795|  11.9k|  if (ss.fail()) {
  ------------------
  |  Branch (2795:7): [True: 0, False: 11.9k]
  ------------------
 2796|      0|    throw Error(ErrorCode::kerErrorMessage, "canonmn_int.cpp:string_to_float failed for: ", str);
 2797|      0|  }
 2798|       |
 2799|  11.9k|  return val;
 2800|  11.9k|}

_ZN5Exiv28Internal14CanonMakerNote7tagListEv:
   38|   309k|  static constexpr auto tagList() {
   39|   309k|    return tagInfo_;
   40|   309k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListCsEv:
   42|  5.87M|  static constexpr auto tagListCs() {
   43|  5.87M|    return tagInfoCs_;
   44|  5.87M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListSiEv:
   46|  2.09M|  static constexpr auto tagListSi() {
   47|  2.09M|    return tagInfoSi_;
   48|  2.09M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListCfEv:
   54|    620|  static constexpr auto tagListCf() {
   55|    620|    return tagInfoCf_;
   56|    620|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPiEv:
   58|  2.52M|  static constexpr auto tagListPi() {
   59|  2.52M|    return tagInfoPi_;
   60|  2.52M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListTiEv:
   62|   101k|  static constexpr auto tagListTi() {
   63|   101k|    return tagInfoTi_;
   64|   101k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListFiEv:
   66|  1.34M|  static constexpr auto tagListFi() {
   67|  1.34M|    return tagInfoFi_;
   68|  1.34M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPaEv:
   50|   132k|  static constexpr auto tagListPa() {
   51|   132k|    return tagInfoPa_;
   52|   132k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPrEv:
   70|  2.94k|  static constexpr auto tagListPr() {
   71|  2.94k|    return tagInfoPr_;
   72|  2.94k|  }
_ZN5Exiv28Internal14CanonMakerNote14tagListVigCor2Ev:
  134|    229|  static constexpr auto tagListVigCor2() {
  135|    229|    return tagInfoVigCor2_;
  136|    229|  }
_ZN5Exiv28Internal14CanonMakerNote11tagListLiOpEv:
  138|  3.77k|  static constexpr auto tagListLiOp() {
  139|  3.77k|    return tagInfoLiOp_;
  140|  3.77k|  }
_ZN5Exiv28Internal14CanonMakerNote14tagListAfMiAdjEv:
  126|    279|  static constexpr auto tagListAfMiAdj() {
  127|    279|    return tagInfoAfMiAdj_;
  128|    279|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListLeEv:
  142|  1.13k|  static constexpr auto tagListLe() {
  143|  1.13k|    return tagInfoLe_;
  144|  1.13k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListAmEv:
  146|  1.20k|  static constexpr auto tagListAm() {
  147|  1.20k|    return tagInfoAm_;
  148|  1.20k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListFilEv:
  154|  6.31k|  static constexpr auto tagListFil() {
  155|  6.31k|    return tagInfoFil_;
  156|  6.31k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListMeEv:
  150|  1.32k|  static constexpr auto tagListMe() {
  151|  1.32k|    return tagInfoMe_;
  152|  1.32k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListHdrEv:
  158|  1.09k|  static constexpr auto tagListHdr() {
  159|  1.09k|    return tagInfoHdr_;
  160|  1.09k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListAfCEv:
  162|  19.9k|  static constexpr auto tagListAfC() {
  163|  19.9k|    return tagInfoAfC_;
  164|  19.9k|  }
_ZN5Exiv28Internal14CanonMakerNote11tagListRawBEv:
  166|    244|  static constexpr auto tagListRawB() {
  167|    244|    return tagInfoRawB_;
  168|    244|  }

_ZN5Exiv28Internal14CasioMakerNote11print0x0006ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  147|    518|std::ostream& CasioMakerNote::print0x0006(std::ostream& os, const Value& value, const ExifData*) {
  148|    518|  return os << stringFormat("{:.2f} m", value.toInt64() / 1000.0);
  ------------------
  |  |   18|    518|#define stringFormat std::format
  ------------------
  149|    518|}
_ZN5Exiv28Internal14CasioMakerNote11print0x0015ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  151|    312|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|    312|  std::vector<char> numbers;
  154|  10.4k|  for (size_t i = 0; i < value.size(); i++) {
  ------------------
  |  Branch (154:22): [True: 10.0k, False: 312]
  ------------------
  155|  10.0k|    const auto l = value.toInt64(i);
  156|  10.0k|    if (l != 0) {
  ------------------
  |  Branch (156:9): [True: 4.43k, False: 5.66k]
  ------------------
  157|  4.43k|      numbers.push_back(l);
  158|  4.43k|    }
  159|  10.0k|  }
  160|       |
  161|    312|  if (numbers.size() >= 10) {
  ------------------
  |  Branch (161:7): [True: 178, False: 134]
  ------------------
  162|       |    // year
  163|    178|    long l = ((numbers[0] - 48) * 10) + (numbers[1] - 48);
  164|    178|    if (l < 70)
  ------------------
  |  Branch (164:9): [True: 62, False: 116]
  ------------------
  165|     62|      l += 2000;
  166|    116|    else
  167|    116|      l += 1900;
  168|    178|    os << l << ":";
  169|       |    // month, day, hour, minutes
  170|    178|    os << numbers[2] << numbers[3] << ":" << numbers[4] << numbers[5] << " " << numbers[6] << numbers[7] << ":"
  171|    178|       << numbers[8] << numbers[9];
  172|       |    // optional seconds
  173|    178|    if (numbers.size() == 12) {
  ------------------
  |  Branch (173:9): [True: 80, False: 98]
  ------------------
  174|     80|      os << ":" << numbers[10] << numbers[11];
  175|     80|    }
  176|    178|  } else
  177|    134|    os << value;
  178|    312|  return os;
  179|    312|}
_ZN5Exiv28Internal15Casio2MakerNote11print0x2001ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  448|     94|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|     94|  std::vector<char> numbers;
  451|  3.00k|  for (size_t i = 0; i < value.size(); i++) {
  ------------------
  |  Branch (451:22): [True: 2.90k, False: 94]
  ------------------
  452|  2.90k|    const auto l = value.toInt64(i);
  453|  2.90k|    if (l != 0) {
  ------------------
  |  Branch (453:9): [True: 1.32k, False: 1.58k]
  ------------------
  454|  1.32k|      numbers.push_back(l);
  455|  1.32k|    }
  456|  2.90k|  }
  457|       |
  458|     94|  if (numbers.size() >= 10) {
  ------------------
  |  Branch (458:7): [True: 26, False: 68]
  ------------------
  459|       |    // year
  460|     26|    long l = ((numbers[0] - 48) * 10) + (numbers[1] - 48);
  461|     26|    if (l < 70)
  ------------------
  |  Branch (461:9): [True: 4, False: 22]
  ------------------
  462|      4|      l += 2000;
  463|     22|    else
  464|     22|      l += 1900;
  465|     26|    os << l << ":";
  466|       |    // month, day, hour, minutes
  467|     26|    os << numbers[2] << numbers[3] << ":" << numbers[4] << numbers[5] << " " << numbers[6] << numbers[7] << ":"
  468|     26|       << numbers[8] << numbers[9];
  469|     26|  } else
  470|     68|    os << value;
  471|     94|  return os;
  472|     94|}
_ZN5Exiv28Internal15Casio2MakerNote11print0x2022ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  474|     90|std::ostream& Casio2MakerNote::print0x2022(std::ostream& os, const Value& value, const ExifData*) {
  475|     90|  if (value.toInt64() >= 0x20000000) {
  ------------------
  |  Branch (475:7): [True: 14, False: 76]
  ------------------
  476|     14|    return os << N_("Inf");
  ------------------
  |  |   41|     14|#define N_(String) String
  ------------------
  477|     14|  }
  478|     76|  return os << stringFormat("{:.2f} m", value.toInt64() / 1000.0);
  ------------------
  |  |   18|     76|#define stringFormat std::format
  ------------------
  479|     90|}

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

_ZN5Exiv29ConverterC2ERNS_8ExifDataERNS_7XmpDataE:
  495|    652|    exifData_(&exifData), iptcData_(nullptr), xmpData_(&xmpData), iptcCharset_(nullptr) {
  496|    652|}
_ZN5Exiv29ConverterC2ERNS_8IptcDataERNS_7XmpDataEPKc:
  499|    652|    exifData_(nullptr), iptcData_(&iptcData), xmpData_(&xmpData), iptcCharset_(iptcCharset) {
  500|    652|}
_ZN5Exiv29Converter10cnvFromXmpEv:
  510|  1.30k|void Converter::cnvFromXmp() {
  511|   164k|  for (auto&& c : conversion_) {
  ------------------
  |  Branch (511:17): [True: 164k, False: 1.30k]
  ------------------
  512|   164k|    if ((c.metadataId_ == mdExif && exifData_) || (c.metadataId_ == mdIptc && iptcData_)) {
  ------------------
  |  Branch (512:10): [True: 135k, False: 28.6k]
  |  Branch (512:37): [True: 67.8k, False: 67.8k]
  |  Branch (512:52): [True: 28.6k, False: 67.8k]
  |  Branch (512:79): [True: 14.3k, False: 14.3k]
  ------------------
  513|  82.1k|      std::invoke(c.key2ToKey1_, *this, c.key2_, c.key1_);
  514|  82.1k|    }
  515|   164k|  }
  516|  1.30k|}
_ZN5Exiv29Converter17prepareExifTargetEPKcb:
  521|  1.47k|bool Converter::prepareExifTarget(const char* to, bool force) {
  522|  1.47k|  auto pos = exifData_->findKey(ExifKey(to));
  523|  1.47k|  if (pos == exifData_->end())
  ------------------
  |  Branch (523:7): [True: 1.47k, False: 0]
  ------------------
  524|  1.47k|    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|    154|bool Converter::prepareIptcTarget(const char* to, bool force) {
  532|    154|  auto pos = iptcData_->findKey(IptcKey(to));
  533|    154|  if (pos == iptcData_->end())
  ------------------
  |  Branch (533:7): [True: 154, False: 0]
  ------------------
  534|    154|    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|  58.6k|void Converter::cnvXmpValue(const char* from, const char* to) {
  845|  58.6k|  auto pos = xmpData_->findKey(XmpKey(from));
  846|  58.6k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (846:7): [True: 58.6k, False: 11]
  ------------------
  847|  58.6k|    return;
  848|     11|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (848:7): [True: 0, False: 11]
  ------------------
  849|      0|    return;
  850|     11|  std::string value;
  851|     11|  if (!getTextValue(value, pos)) {
  ------------------
  |  Branch (851:7): [True: 0, False: 11]
  ------------------
  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|     11|  ExifKey key(to);
  859|     11|  if (auto ed = Exifdatum(key); ed.setValue(value) == 0) {
  ------------------
  |  Branch (859:33): [True: 1, False: 10]
  ------------------
  860|      1|    exifData_->add(ed);
  861|      1|  }
  862|     11|  if (erase_)
  ------------------
  |  Branch (862:7): [True: 0, False: 11]
  ------------------
  863|      0|    xmpData_->erase(pos);
  864|     11|}
_ZN5Exiv29Converter13cnvXmpCommentEPKcS2_:
  866|    652|void Converter::cnvXmpComment(const char* from, const char* to) {
  867|    652|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (867:7): [True: 0, False: 652]
  ------------------
  868|      0|    return;
  869|    652|  auto pos = xmpData_->findKey(XmpKey(from));
  870|    652|  if (pos == xmpData_->end())
  ------------------
  |  Branch (870:7): [True: 652, False: 0]
  ------------------
  871|    652|    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|    652|void Converter::cnvXmpArray(const char* from, const char* to) {
  886|    652|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (886:7): [True: 0, False: 652]
  ------------------
  887|      0|    return;
  888|    652|  auto pos = xmpData_->findKey(XmpKey(from));
  889|    652|  if (pos == xmpData_->end())
  ------------------
  |  Branch (889:7): [True: 652, False: 0]
  ------------------
  890|    652|    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.60k|void Converter::cnvXmpDate(const char* from, const char* to) {
  910|  2.60k|  auto pos = xmpData_->findKey(XmpKey(from));
  911|  2.60k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (911:7): [True: 2.45k, False: 154]
  ------------------
  912|  2.45k|    return;
  913|    154|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (913:7): [True: 0, False: 154]
  ------------------
  914|      0|    return;
  915|    154|#ifdef EXV_HAVE_XMP_TOOLKIT
  916|    154|  std::string value = pos->toString();
  917|    154|  if (!pos->value().ok()) {
  ------------------
  |  Branch (917:7): [True: 0, False: 154]
  ------------------
  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|    154|  XMP_DateTime datetime;
  924|    154|  try {
  925|    154|    SXMPUtils::ConvertToDate(value, &datetime);
  926|    154|    if (std::string(to) != "Exif.GPSInfo.GPSTimeStamp") {
  ------------------
  |  Branch (926:9): [True: 62, False: 92]
  ------------------
  927|     62|      SXMPUtils::ConvertToLocalTime(&datetime);
  928|       |
  929|     62|      (*exifData_)[to] = stringFormat("{:4}:{:02}:{:02} {:02}:{:02}:{:02}", datetime.year, datetime.month, datetime.day,
  ------------------
  |  |   18|     62|#define stringFormat std::format
  ------------------
  930|     62|                                      datetime.hour, datetime.minute, datetime.second);
  931|       |
  932|     62|      if (datetime.nanoSecond) {
  ------------------
  |  Branch (932:11): [True: 5, False: 57]
  ------------------
  933|      5|        const char* subsecTag = nullptr;
  934|      5|        if (std::string(to) == "Exif.Image.DateTime") {
  ------------------
  |  Branch (934:13): [True: 0, False: 5]
  ------------------
  935|      0|          subsecTag = "Exif.Photo.SubSecTime";
  936|      5|        } else if (std::string(to) == "Exif.Photo.DateTimeOriginal") {
  ------------------
  |  Branch (936:20): [True: 0, False: 5]
  ------------------
  937|      0|          subsecTag = "Exif.Photo.SubSecTimeOriginal";
  938|      5|        } else if (std::string(to) == "Exif.Photo.DateTimeDigitized") {
  ------------------
  |  Branch (938:20): [True: 5, False: 0]
  ------------------
  939|      5|          subsecTag = "Exif.Photo.SubSecTimeDigitized";
  940|      5|        }
  941|      5|        if (subsecTag) {
  ------------------
  |  Branch (941:13): [True: 5, False: 0]
  ------------------
  942|      5|          prepareExifTarget(subsecTag, true);
  943|      5|          (*exifData_)[subsecTag] = std::to_string(datetime.nanoSecond);
  944|      5|        }
  945|      5|      }
  946|     92|    } else {  // "Exif.GPSInfo.GPSTimeStamp"
  947|       |      // Ignore the time zone, assuming the time is in UTC as it should be
  948|       |
  949|     92|      URational rhour(datetime.hour, 1);
  950|     92|      URational rmin(datetime.minute, 1);
  951|     92|      URational rsec(datetime.second, 1);
  952|     92|      if (datetime.nanoSecond != 0) {
  ------------------
  |  Branch (952:11): [True: 0, False: 92]
  ------------------
  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|     92|      std::ostringstream array;
  964|     92|      array << rhour << " " << rmin << " " << rsec;
  965|     92|      (*exifData_)[to] = array.str();
  966|       |
  967|     92|      prepareExifTarget("Exif.GPSInfo.GPSDateStamp", true);
  968|     92|      (*exifData_)["Exif.GPSInfo.GPSDateStamp"] =
  969|     92|          stringFormat("{:4}:{:02}:{:02}", datetime.year, datetime.month, datetime.day);
  ------------------
  |  |   18|     92|#define stringFormat std::format
  ------------------
  970|     92|    }
  971|    154|  }
  972|    154|#ifndef SUPPRESS_WARNINGS
  973|    154|  catch (const XMP_Error& e) {
  974|     92|    EXV_WARNING << "Failed to convert " << from << " to " << to << " (" << e.GetErrMsg() << ")\n";
  ------------------
  |  |  138|     92|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 92]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     92|  LogMsg(LogMsg::warn).os()
  ------------------
  975|     92|    return;
  976|     92|  }
  977|       |#else
  978|       |  catch (const XMP_Error&) {
  979|       |    return;
  980|       |  }
  981|       |#endif  // SUPPRESS_WARNINGS
  982|       |
  983|     62|  if (erase_)
  ------------------
  |  Branch (983:7): [True: 0, False: 62]
  ------------------
  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|     62|}
_ZN5Exiv29Converter13cnvXmpVersionEPKcS2_:
  992|  1.30k|void Converter::cnvXmpVersion(const char* from, const char* to) {
  993|  1.30k|  auto pos = xmpData_->findKey(XmpKey(from));
  994|  1.30k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (994:7): [True: 1.30k, False: 0]
  ------------------
  995|  1.30k|    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|    652|void Converter::cnvXmpGPSVersion(const char* from, const char* to) {
 1013|    652|  auto pos = xmpData_->findKey(XmpKey(from));
 1014|    652|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1014:7): [True: 652, False: 0]
  ------------------
 1015|    652|    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|    652|void Converter::cnvXmpFlash(const char* from, const char* to) {
 1033|    652|  auto pos = xmpData_->findKey(XmpKey(std::string(from) + "/exif:Fired"));
 1034|    652|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1034:7): [True: 652, False: 0]
  ------------------
 1035|    652|    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.60k|void Converter::cnvXmpGPSCoord(const char* from, const char* to) {
 1103|  2.60k|  auto pos = xmpData_->findKey(XmpKey(from));
 1104|  2.60k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1104:7): [True: 2.60k, False: 0]
  ------------------
 1105|  2.60k|    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|  14.3k|void Converter::cnvXmpValueToIptc(const char* from, const char* to) {
 1194|  14.3k|  auto pos = xmpData_->findKey(XmpKey(from));
 1195|  14.3k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1195:7): [True: 14.1k, False: 154]
  ------------------
 1196|  14.1k|    return;
 1197|    154|  if (!prepareIptcTarget(to))
  ------------------
  |  Branch (1197:7): [True: 0, False: 154]
  ------------------
 1198|      0|    return;
 1199|       |
 1200|    154|  if (pos->typeId() == langAlt || pos->typeId() == xmpText) {
  ------------------
  |  Branch (1200:7): [True: 0, False: 154]
  |  Branch (1200:35): [True: 154, False: 0]
  ------------------
 1201|    154|    std::string value;
 1202|    154|    if (!getTextValue(value, pos)) {
  ------------------
  |  Branch (1202:9): [True: 0, False: 154]
  ------------------
 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|    154|    (*iptcData_)[to] = value;
 1209|    154|    (*iptcData_)["Iptc.Envelope.CharacterSet"] = "\033%G";  // indicate UTF-8 encoding
 1210|    154|    if (erase_)
  ------------------
  |  Branch (1210:9): [True: 0, False: 154]
  ------------------
 1211|      0|      xmpData_->erase(pos);
 1212|    154|    return;
 1213|    154|  }
 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|    652|void copyXmpToExif(const XmpData& xmpData, ExifData& exifData) {
 1331|    652|  Converter converter(exifData, const_cast<XmpData&>(xmpData));
 1332|    652|  converter.cnvFromXmp();
 1333|    652|}
_ZN5Exiv213copyXmpToIptcERKNS_7XmpDataERNS_8IptcDataE:
 1368|    652|void copyXmpToIptc(const XmpData& xmpData, IptcData& iptcData) {
 1369|    652|  Converter converter(iptcData, const_cast<XmpData&>(xmpData));
 1370|    652|  converter.cnvFromXmp();
 1371|    652|}
_ZN5Exiv220convertStringCharsetERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKcS9_:
 1380|  4.19k|bool convertStringCharset([[maybe_unused]] std::string& str, const char* from, const char* to) {
 1381|  4.19k|  if (0 == strcmp(from, to))
  ------------------
  |  Branch (1381:7): [True: 66, False: 4.13k]
  ------------------
 1382|     66|    return true;  // nothing to do
 1383|  4.13k|#ifdef EXV_HAVE_ICONV
 1384|  4.13k|  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|  4.19k|}
convert.cpp:_ZN12_GLOBAL__N_125convertStringCharsetIconvERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS0_17basic_string_viewIcS3_EES9_:
 1402|  4.13k|bool convertStringCharsetIconv(std::string& str, std::string_view from, std::string_view to) {
 1403|  4.13k|  if (from == to)
  ------------------
  |  Branch (1403:7): [True: 0, False: 4.13k]
  ------------------
 1404|      0|    return true;  // nothing to do
 1405|       |
 1406|  4.13k|  bool ret = true;
 1407|  4.13k|  auto cd = iconv_open(to.data(), from.data());
 1408|  4.13k|  if (cd == iconv_t(-1)) {
  ------------------
  |  Branch (1408:7): [True: 0, False: 4.13k]
  ------------------
 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|  4.13k|  std::string outstr;
 1415|       |#ifdef WINICONV_CONST
 1416|       |  auto inptr = (WINICONV_CONST char*)(str.c_str());
 1417|       |#else
 1418|  4.13k|  auto inptr = (EXV_ICONV_CONST char*)(str.c_str());
 1419|  4.13k|#endif
 1420|  4.13k|  size_t inbytesleft = str.length();
 1421|  17.2k|  while (inbytesleft) {
  ------------------
  |  Branch (1421:10): [True: 15.2k, False: 2.03k]
  ------------------
 1422|  15.2k|    char outbuf[256];
 1423|  15.2k|    char* outptr = outbuf;
 1424|  15.2k|    size_t outbytesleft = sizeof(outbuf);
 1425|  15.2k|    size_t rc = iconv(cd, &inptr, &inbytesleft, &outptr, &outbytesleft);
 1426|  15.2k|    const size_t outbytesProduced = sizeof(outbuf) - outbytesleft;
 1427|  15.2k|    if (rc == std::numeric_limits<size_t>::max() && errno != E2BIG) {
  ------------------
  |  Branch (1427:9): [True: 13.8k, False: 1.38k]
  |  Branch (1427:53): [True: 2.10k, False: 11.7k]
  ------------------
 1428|  2.10k|#ifndef SUPPRESS_WARNINGS
 1429|  2.10k|      EXV_WARNING << "iconv: " << strError() << " inbytesleft = " << inbytesleft << "\n";
  ------------------
  |  |  138|  2.10k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 2.10k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  2.10k|  LogMsg(LogMsg::warn).os()
  ------------------
 1430|  2.10k|#endif
 1431|  2.10k|      ret = false;
 1432|  2.10k|      break;
 1433|  2.10k|    }
 1434|  13.1k|    outstr.append(std::string(outbuf, outbytesProduced));
 1435|  13.1k|  }
 1436|       |
 1437|  4.13k|  if (cd)
  ------------------
  |  Branch (1437:7): [True: 4.13k, False: 0]
  ------------------
 1438|  4.13k|    iconv_close(cd);
 1439|       |
 1440|  4.13k|  if (ret)
  ------------------
  |  Branch (1440:7): [True: 2.03k, False: 2.10k]
  ------------------
 1441|  2.03k|    str = std::move(outstr);
 1442|  4.13k|  return ret;
 1443|  4.13k|}
convert.cpp:_ZN12_GLOBAL__N_112getTextValueERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS0_11__wrap_iterIPN5Exiv28XmpdatumEEE:
 1592|    165|bool getTextValue(std::string& value, XmpData::iterator pos) {
 1593|    165|  if (pos->typeId() == langAlt) {
  ------------------
  |  Branch (1593:7): [True: 0, False: 165]
  ------------------
 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|    165|  } else {
 1610|    165|    value = pos->toString();
 1611|    165|  }
 1612|    165|  return pos->value().ok();
 1613|    165|}

_ZN5Exiv28Internal9Cr2HeaderC2ENS_9ByteOrderE:
   14|  34.4k|Cr2Header::Cr2Header(ByteOrder byteOrder) : TiffHeaderBase(42, 16, byteOrder, 0x00000010) {
   15|  34.4k|}
_ZN5Exiv28Internal9Cr2Header4readEPKhm:
   17|  34.4k|bool Cr2Header::read(const byte* pData, size_t size) {
   18|  34.4k|  if (!pData || size < 16) {
  ------------------
  |  Branch (18:7): [True: 0, False: 34.4k]
  |  Branch (18:17): [True: 0, False: 34.4k]
  ------------------
   19|      0|    return false;
   20|      0|  }
   21|       |
   22|  34.4k|  if (pData[0] == 'I' && pData[0] == pData[1]) {
  ------------------
  |  Branch (22:7): [True: 1.81k, False: 32.6k]
  |  Branch (22:26): [True: 1.79k, False: 17]
  ------------------
   23|  1.79k|    setByteOrder(littleEndian);
   24|  32.6k|  } else if (pData[0] == 'M' && pData[0] == pData[1]) {
  ------------------
  |  Branch (24:14): [True: 18.4k, False: 14.2k]
  |  Branch (24:33): [True: 18.4k, False: 15]
  ------------------
   25|  18.4k|    setByteOrder(bigEndian);
   26|  18.4k|  } else {
   27|  14.2k|    return false;
   28|  14.2k|  }
   29|  20.2k|  if (tag() != getUShort(pData + 2, byteOrder()))
  ------------------
  |  Branch (29:7): [True: 2.81k, False: 17.3k]
  ------------------
   30|  2.81k|    return false;
   31|  17.3k|  setOffset(getULong(pData + 4, byteOrder()));
   32|  17.3k|  if (!std::equal(cr2sig_, cr2sig_ + 4, pData + 8))
  ------------------
  |  Branch (32:7): [True: 14.2k, False: 3.10k]
  ------------------
   33|  14.2k|    return false;
   34|  3.10k|  offset2_ = getULong(pData + 12, byteOrder());
   35|       |
   36|  3.10k|  return true;
   37|  17.3k|}

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

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

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

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

_ZN5Exiv212IptcDataSets10dataSetIdxEtt:
  377|   121k|int IptcDataSets::dataSetIdx(uint16_t number, uint16_t recordId) {
  378|   121k|  if (recordId != envelope && recordId != application2)
  ------------------
  |  Branch (378:7): [True: 101k, False: 20.0k]
  |  Branch (378:31): [True: 84.2k, False: 17.3k]
  ------------------
  379|  84.2k|    return -1;
  380|  37.3k|  const DataSet* dataSet = records_[recordId];
  381|  37.3k|  int idx;
  382|   710k|  for (idx = 0; dataSet[idx].number_ != number; ++idx) {
  ------------------
  |  Branch (382:17): [True: 690k, False: 20.1k]
  ------------------
  383|   690k|    if (dataSet[idx].number_ == 0xffff)
  ------------------
  |  Branch (383:9): [True: 17.1k, False: 673k]
  ------------------
  384|  17.1k|      return -1;
  385|   690k|  }
  386|  20.1k|  return idx;
  387|  37.3k|}
_ZN5Exiv212IptcDataSets10dataSetIdxERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEt:
  389|    462|int IptcDataSets::dataSetIdx(const std::string& dataSetName, uint16_t recordId) {
  390|    462|  if (recordId != envelope && recordId != application2)
  ------------------
  |  Branch (390:7): [True: 308, False: 154]
  |  Branch (390:31): [True: 0, False: 308]
  ------------------
  391|      0|    return -1;
  392|    462|  const DataSet* dataSet = records_[recordId];
  393|    462|  int idx;
  394|  9.70k|  for (idx = 0; dataSet[idx].name_ != dataSetName; ++idx) {
  ------------------
  |  Branch (394:17): [True: 9.24k, False: 462]
  ------------------
  395|  9.24k|    if (dataSet[idx].number_ == 0xffff)
  ------------------
  |  Branch (395:9): [True: 0, False: 9.24k]
  ------------------
  396|      0|      return -1;
  397|  9.24k|  }
  398|    462|  return idx;
  399|    462|}
_ZN5Exiv212IptcDataSets11dataSetTypeEtt:
  401|  39.2k|TypeId IptcDataSets::dataSetType(uint16_t number, uint16_t recordId) {
  402|  39.2k|  int idx = dataSetIdx(number, recordId);
  403|  39.2k|  if (idx == -1)
  ------------------
  |  Branch (403:7): [True: 33.1k, False: 6.04k]
  ------------------
  404|  33.1k|    return unknownDataSet.type_;
  405|  6.04k|  return records_[recordId][idx].type_;
  406|  39.2k|}
_ZN5Exiv212IptcDataSets11dataSetNameEtt:
  408|  43.4k|std::string IptcDataSets::dataSetName(uint16_t number, uint16_t recordId) {
  409|  43.4k|  if (int idx = dataSetIdx(number, recordId); idx != -1)
  ------------------
  |  Branch (409:47): [True: 8.39k, False: 35.0k]
  ------------------
  410|  8.39k|    return records_[recordId][idx].name_;
  411|       |
  412|  35.0k|  return stringFormat("0x{:04x}", number);
  ------------------
  |  |   18|  35.0k|#define stringFormat std::format
  ------------------
  413|  43.4k|}
_ZN5Exiv212IptcDataSets17dataSetRepeatableEtt:
  436|  38.9k|bool IptcDataSets::dataSetRepeatable(uint16_t number, uint16_t recordId) {
  437|  38.9k|  int idx = dataSetIdx(number, recordId);
  438|  38.9k|  if (idx == -1)
  ------------------
  |  Branch (438:7): [True: 33.1k, False: 5.74k]
  ------------------
  439|  33.1k|    return unknownDataSet.repeatable_;
  440|  5.74k|  return records_[recordId][idx].repeatable_;
  441|  38.9k|}
_ZN5Exiv212IptcDataSets7dataSetERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEt:
  443|    462|uint16_t IptcDataSets::dataSet(const std::string& dataSetName, uint16_t recordId) {
  444|    462|  if (int idx = dataSetIdx(dataSetName, recordId); idx != -1) {
  ------------------
  |  Branch (444:52): [True: 462, False: 0]
  ------------------
  445|       |    // dataSetIdx checks the range of recordId
  446|    462|    return records_[recordId][idx].number_;
  447|    462|  }
  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|  39.3k|std::string IptcDataSets::recordName(uint16_t recordId) {
  454|  39.3k|  if (recordId == envelope || recordId == application2) {
  ------------------
  |  Branch (454:7): [True: 6.60k, False: 32.7k]
  |  Branch (454:31): [True: 5.23k, False: 27.5k]
  ------------------
  455|  11.8k|    return recordInfo_[recordId].name_;
  456|  11.8k|  }
  457|       |
  458|  27.5k|  return stringFormat("0x{:04x}", recordId);
  ------------------
  |  |   18|  27.5k|#define stringFormat std::format
  ------------------
  459|  39.3k|}
_ZN5Exiv212IptcDataSets8recordIdERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  468|    462|uint16_t IptcDataSets::recordId(const std::string& recordName) {
  469|    462|  uint16_t i;
  470|    616|  for (i = IptcDataSets::application2; i > 0; --i) {
  ------------------
  |  Branch (470:40): [True: 616, False: 0]
  ------------------
  471|    616|    if (recordInfo_[i].name_ == recordName)
  ------------------
  |  Branch (471:9): [True: 462, False: 154]
  ------------------
  472|    462|      break;
  473|    616|  }
  474|    462|  if (i == 0) {
  ------------------
  |  Branch (474:7): [True: 0, False: 462]
  ------------------
  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|    462|  return i;
  480|    462|}
_ZN5Exiv27IptcKeyC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  490|    462|IptcKey::IptcKey(std::string key) : tag_(0), record_(0), key_(std::move(key)) {
  491|    462|  decomposeKey();
  492|    462|}
_ZN5Exiv27IptcKeyC2Ett:
  494|  38.9k|IptcKey::IptcKey(uint16_t tag, uint16_t record) : tag_(tag), record_(record) {
  495|  38.9k|  makeKey();
  496|  38.9k|}
_ZNK5Exiv27IptcKey7tagNameEv:
  510|  2.89k|std::string IptcKey::tagName() const {
  511|  2.89k|  return IptcDataSets::dataSetName(tag_, record_);
  512|  2.89k|}
_ZNK5Exiv27IptcKey3tagEv:
  522|  88.1k|uint16_t IptcKey::tag() const {
  523|  88.1k|  return tag_;
  524|  88.1k|}
_ZNK5Exiv27IptcKey6recordEv:
  530|   643k|uint16_t IptcKey::record() const {
  531|   643k|  return record_;
  532|   643k|}
_ZNK5Exiv27IptcKey5cloneEv:
  534|   483k|IptcKey::UniquePtr IptcKey::clone() const {
  535|   483k|  return UniquePtr(clone_());
  536|   483k|}
_ZNK5Exiv27IptcKey6clone_Ev:
  538|   483k|IptcKey* IptcKey::clone_() const {
  539|   483k|  return new IptcKey(*this);
  540|   483k|}
_ZN5Exiv27IptcKey12decomposeKeyEv:
  542|    462|void IptcKey::decomposeKey() {
  543|       |  // Check that the key has the expected format with RE
  544|    462|  auto posDot1 = key_.find('.');
  545|    462|  auto posDot2 = key_.find('.', posDot1 + 1);
  546|       |
  547|    462|  if (posDot1 == std::string::npos || posDot2 == std::string::npos) {
  ------------------
  |  Branch (547:7): [True: 0, False: 462]
  |  Branch (547:39): [True: 0, False: 462]
  ------------------
  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|    462|  const std::string familyName = key_.substr(0, posDot1);
  553|    462|  if (familyName != familyName_)
  ------------------
  |  Branch (553:7): [True: 0, False: 462]
  ------------------
  554|      0|    throw Error(ErrorCode::kerInvalidKey, key_);
  555|       |
  556|    462|  std::string recordName = key_.substr(posDot1 + 1, posDot2 - posDot1 - 1);
  557|    462|  std::string dataSetName = key_.substr(posDot2 + 1);
  558|       |
  559|       |  // Use the parts of the key to find dataSet and recordId
  560|    462|  uint16_t recId = IptcDataSets::recordId(recordName);
  561|    462|  uint16_t dataSet = IptcDataSets::dataSet(dataSetName, recId);
  562|       |
  563|       |  // Possibly translate hex name parts (0xabcd) to real names
  564|    462|  recordName = IptcDataSets::recordName(recId);
  565|    462|  dataSetName = IptcDataSets::dataSetName(dataSet, recId);
  566|       |
  567|    462|  tag_ = dataSet;
  568|    462|  record_ = recId;
  569|    462|  key_ = familyName + "." + recordName + "." + dataSetName;
  570|    462|}
_ZN5Exiv27IptcKey7makeKeyEv:
  572|  38.9k|void IptcKey::makeKey() {
  573|  38.9k|  key_ = std::string(familyName_) + "." + IptcDataSets::recordName(record_) + "." +
  574|  38.9k|         IptcDataSets::dataSetName(tag_, record_);
  575|  38.9k|}

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

_ZN5Exiv28EpsImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
 1026|  1.35k|EpsImage::EpsImage(BasicIo::UniquePtr io, bool create) : Image(ImageType::eps, mdXmp, std::move(io)) {
 1027|       |  // LogMsg::setLevel(LogMsg::debug);
 1028|  1.35k|  if (create && io_->open() == 0) {
  ------------------
  |  Branch (1028:7): [True: 0, False: 1.35k]
  |  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.35k|}
_ZN5Exiv28EpsImage12readMetadataEv:
 1050|  1.35k|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.35k|  readWriteEpsMetadata(*io_, xmpPacket_, nativePreviews_, /* write = */ false);
 1057|       |
 1058|       |  // decode XMP metadata
 1059|  1.35k|  if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_) > 1) {
  ------------------
  |  Branch (1059:7): [True: 17, False: 1.34k]
  |  Branch (1059:30): [True: 16, False: 1]
  ------------------
 1060|     16|#ifndef SUPPRESS_WARNINGS
 1061|     16|    EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|     16|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 16]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     16|  LogMsg(LogMsg::warn).os()
  ------------------
 1062|     16|#endif
 1063|     16|    throw Error(ErrorCode::kerFailedToReadImageData);
 1064|     16|  }
 1065|       |
 1066|       |#ifdef DEBUG
 1067|       |  EXV_DEBUG << "Exiv2::EpsImage::readMetadata: Finished reading EPS file " << io_->path() << "\n";
 1068|       |#endif
 1069|  1.35k|}
_ZN5Exiv214newEpsInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
 1094|  1.35k|Image::UniquePtr newEpsInstance(BasicIo::UniquePtr io, bool create) {
 1095|  1.35k|  auto image = std::make_unique<EpsImage>(std::move(io), create);
 1096|  1.35k|  if (!image->good()) {
  ------------------
  |  Branch (1096:7): [True: 0, False: 1.35k]
  ------------------
 1097|      0|    return nullptr;
 1098|      0|  }
 1099|  1.35k|  return image;
 1100|  1.35k|}
_ZN5Exiv29isEpsTypeERNS_7BasicIoEb:
 1102|  14.1k|bool isEpsType(BasicIo& iIo, bool advance) {
 1103|       |  // read as many bytes as needed for the longest (DOS) EPS signature
 1104|  14.1k|  constexpr auto bufSize = [] {
 1105|  14.1k|    auto f = [](const auto& a, const auto& b) { return a.size() < b.size(); };
 1106|  14.1k|    return std::max_element(epsFirstLine.begin(), epsFirstLine.end(), f)->size();
 1107|  14.1k|  }();
 1108|  14.1k|  const size_t restore = iIo.tell();  // save
 1109|  14.1k|  DataBuf buf = iIo.read(bufSize);
 1110|  14.1k|  if (iIo.error() || buf.size() != bufSize) {
  ------------------
  |  Branch (1110:7): [True: 0, False: 14.1k]
  |  Branch (1110:22): [True: 0, False: 14.1k]
  ------------------
 1111|      0|    iIo.seek(restore, BasicIo::beg);
 1112|      0|    return false;
 1113|      0|  }
 1114|       |  // check for all possible (DOS) EPS signatures
 1115|  14.1k|  bool matched = (buf.cmpBytes(0, dosEpsSignature.data(), dosEpsSignature.size()) == 0);
 1116|  14.1k|  if (!matched) {
  ------------------
  |  Branch (1116:7): [True: 13.6k, False: 494]
  ------------------
 1117|  39.4k|    for (auto&& eps : epsFirstLine) {
  ------------------
  |  Branch (1117:21): [True: 39.4k, False: 11.4k]
  ------------------
 1118|  39.4k|      if (buf.cmpBytes(0, eps.data(), eps.size()) == 0) {
  ------------------
  |  Branch (1118:11): [True: 2.22k, False: 37.2k]
  ------------------
 1119|  2.22k|        matched = true;
 1120|  2.22k|        break;
 1121|  2.22k|      }
 1122|  39.4k|    }
 1123|  13.6k|  }
 1124|       |  // seek back if possible and requested
 1125|  14.1k|  if (!advance || !matched) {
  ------------------
  |  Branch (1125:7): [True: 14.1k, False: 0]
  |  Branch (1125:19): [True: 0, False: 0]
  ------------------
 1126|  14.1k|    iIo.seek(restore, BasicIo::beg);
 1127|  14.1k|  }
 1128|  14.1k|  return matched;
 1129|  14.1k|}
epsimage.cpp:_ZN12_GLOBAL__N_120readWriteEpsMetadataERN5Exiv27BasicIoERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS3_6vectorINS0_13NativePreviewENS7_ISC_EEEEb:
  224|  1.35k|void readWriteEpsMetadata(BasicIo& io, std::string& xmpPacket, NativePreviewList& nativePreviews, bool write) {
  225|       |  // open input file
  226|  1.35k|  if (io.open() != 0) {
  ------------------
  |  Branch (226:7): [True: 0, False: 1.35k]
  ------------------
  227|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  228|      0|  }
  229|  1.35k|  IoCloser closer(io);
  230|       |
  231|       |  // read from input file via memory map
  232|  1.35k|  const byte* data = io.mmap();
  233|       |
  234|       |  // default positions and sizes
  235|  1.35k|  const size_t size = io.size();
  236|  1.35k|  size_t posEps = 0;
  237|  1.35k|  size_t posEndEps = size;
  238|  1.35k|  uint32_t posWmf = 0;
  239|  1.35k|  uint32_t sizeWmf = 0;
  240|  1.35k|  uint32_t posTiff = 0;
  241|  1.35k|  uint32_t sizeTiff = 0;
  242|       |
  243|  1.35k|  ErrorCode errcode = write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData;
  ------------------
  |  Branch (243:23): [True: 0, False: 1.35k]
  ------------------
  244|       |
  245|       |  // check for DOS EPS
  246|  1.35k|  const bool dosEps =
  247|  1.35k|      (size >= dosEpsSignature.size() && memcmp(data, dosEpsSignature.data(), dosEpsSignature.size()) == 0);
  ------------------
  |  Branch (247:8): [True: 1.35k, False: 0]
  |  Branch (247:42): [True: 247, False: 1.11k]
  ------------------
  248|  1.35k|  if (dosEps) {
  ------------------
  |  Branch (248:7): [True: 247, False: 1.11k]
  ------------------
  249|       |#ifdef DEBUG
  250|       |    EXV_DEBUG << "readWriteEpsMetadata: Found DOS EPS signature\n";
  251|       |#endif
  252|       |
  253|    247|    enforce(size >= 30, errcode);
  254|    247|    posEps = getULong(data + 4, littleEndian);
  255|    247|    posEndEps = getULong(data + 8, littleEndian) + posEps;
  256|    247|    posWmf = getULong(data + 12, littleEndian);
  257|    247|    sizeWmf = getULong(data + 16, littleEndian);
  258|    247|    posTiff = getULong(data + 20, littleEndian);
  259|    247|    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|    247|    if (uint16_t checksum = getUShort(data + 28, littleEndian); checksum != 0xFFFF) {
  ------------------
  |  Branch (266:65): [True: 224, False: 23]
  ------------------
  267|       |#ifdef DEBUG
  268|       |      EXV_DEBUG << "readWriteEpsMetadata: DOS EPS checksum is not FFFF\n";
  269|       |#endif
  270|    224|    }
  271|    247|    if ((posWmf != 0 || sizeWmf != 0) && (posTiff != 0 || sizeTiff != 0)) {
  ------------------
  |  Branch (271:10): [True: 186, False: 61]
  |  Branch (271:25): [True: 26, False: 35]
  |  Branch (271:43): [True: 138, False: 73]
  |  Branch (271:59): [True: 44, False: 29]
  ------------------
  272|    182|#ifndef SUPPRESS_WARNINGS
  273|    182|      EXV_WARNING << "DOS EPS file has both WMF and TIFF section. Only one of those is allowed.\n";
  ------------------
  |  |  138|    182|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 182]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    182|  LogMsg(LogMsg::warn).os()
  ------------------
  274|    182|#endif
  275|    182|      if (write)
  ------------------
  |  Branch (275:11): [True: 0, False: 182]
  ------------------
  276|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  277|    182|    }
  278|    247|    if (sizeWmf == 0 && sizeTiff == 0) {
  ------------------
  |  Branch (278:9): [True: 105, False: 142]
  |  Branch (278:25): [True: 47, False: 58]
  ------------------
  279|     47|#ifndef SUPPRESS_WARNINGS
  280|     47|      EXV_WARNING << "DOS EPS file has neither WMF nor TIFF section. Exactly one of those is required.\n";
  ------------------
  |  |  138|     47|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 47]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     47|  LogMsg(LogMsg::warn).os()
  ------------------
  281|     47|#endif
  282|     47|      if (write)
  ------------------
  |  Branch (282:11): [True: 0, False: 47]
  ------------------
  283|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  284|     47|    }
  285|    247|    enforce(30 <= posEps, errcode);
  286|    247|    enforce(sizeWmf == 0 || 30 <= posWmf, errcode);
  ------------------
  |  Branch (286:13): [True: 112, False: 135]
  |  Branch (286:29): [True: 112, False: 23]
  ------------------
  287|    247|    enforce(sizeTiff == 0 || 30 <= posTiff, errcode);
  ------------------
  |  Branch (287:13): [True: 93, False: 154]
  |  Branch (287:30): [True: 116, False: 38]
  ------------------
  288|       |
  289|    247|    enforce(posEps <= posEndEps && posEndEps <= size, errcode);
  ------------------
  |  Branch (289:13): [True: 168, False: 79]
  |  Branch (289:36): [True: 66, False: 102]
  ------------------
  290|    247|    enforce(posWmf <= size && sizeWmf <= size - posWmf, errcode);
  ------------------
  |  Branch (290:13): [True: 50, False: 197]
  |  Branch (290:31): [True: 37, False: 13]
  ------------------
  291|    247|    enforce(posTiff <= size && sizeTiff <= size - posTiff, errcode);
  ------------------
  |  Branch (291:13): [True: 26, False: 221]
  |  Branch (291:32): [True: 19, False: 7]
  ------------------
  292|    247|  }
  293|       |
  294|       |  // check first line
  295|  1.35k|  std::string firstLine;
  296|  1.35k|  const size_t posSecondLine = readLine(firstLine, data, posEps, posEndEps);
  297|       |#ifdef DEBUG
  298|       |  EXV_DEBUG << "readWriteEpsMetadata: First line: " << firstLine << "\n";
  299|       |#endif
  300|  1.35k|  auto it = std::find(epsFirstLine.begin(), epsFirstLine.end(), firstLine);
  301|  1.35k|  if (it == epsFirstLine.end()) {
  ------------------
  |  Branch (301:7): [True: 42, False: 1.31k]
  ------------------
  302|     42|    throw Error(ErrorCode::kerNotAnImage, "EPS");
  303|     42|  }
  304|       |
  305|       |  // determine line ending style of the first line
  306|  1.31k|  if (posSecondLine >= posEndEps) {
  ------------------
  |  Branch (306:7): [True: 3, False: 1.31k]
  ------------------
  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.31k|  const std::string lineEnding(reinterpret_cast<const char*>(data + posEps + firstLine.size()),
  313|  1.31k|                               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.31k|  size_t posLanguageLevel = posEndEps;
  328|  1.31k|  size_t posContainsXmp = posEndEps;
  329|  1.31k|  size_t posPages = posEndEps;
  330|  1.31k|  size_t posExiv2Version = posEndEps;
  331|  1.31k|  size_t posExiv2Website = posEndEps;
  332|  1.31k|  size_t posEndComments = posEndEps;
  333|  1.31k|  size_t posAi7Thumbnail = posEndEps;
  334|  1.31k|  size_t posAi7ThumbnailEndData = posEndEps;
  335|  1.31k|  size_t posBeginPhotoshop = posEndEps;
  336|  1.31k|  size_t posEndPhotoshop = posEndEps;
  337|  1.31k|  size_t posPage = posEndEps;
  338|  1.31k|  size_t posBeginPageSetup = posEndEps;
  339|  1.31k|  size_t posEndPageSetup = posEndEps;
  340|  1.31k|  size_t posPageTrailer = posEndEps;
  341|  1.31k|  size_t posEof = posEndEps;
  342|  1.31k|  std::vector<std::pair<size_t, size_t>> removableEmbeddings;
  343|  1.31k|  size_t depth = 0;
  344|  1.31k|  const size_t maxDepth = std::numeric_limits<size_t>::max();
  345|  1.31k|  bool illustrator8 = false;
  346|  1.31k|  bool corelDraw = false;
  347|  1.31k|  bool implicitPage = false;
  348|  1.31k|  bool implicitPageSetup = false;
  349|  1.31k|  bool implicitPageTrailer = false;
  350|  1.31k|  bool inDefaultsPreviewPrologSetup = false;
  351|  1.31k|  bool inRemovableEmbedding = false;
  352|  1.31k|  std::string removableEmbeddingEndLine;
  353|  1.31k|  size_t removableEmbeddingsWithUnmarkedTrailer = 0;
  354|   227k|  for (size_t pos = posEps; pos < posEof;) {
  ------------------
  |  Branch (354:29): [True: 226k, False: 1.26k]
  ------------------
  355|   226k|    const size_t startPos = pos;
  356|   226k|    std::string line;
  357|   226k|    pos = readLine(line, data, startPos, posEndEps);
  358|       |#ifdef DEBUG
  359|       |    bool significantLine = true;
  360|       |#endif
  361|       |    // nested documents
  362|   226k|    if (posPage == posEndEps && (line.starts_with("%%IncludeDocument:") || line.starts_with("%%BeginDocument:"))) {
  ------------------
  |  Branch (362:9): [True: 149k, False: 76.4k]
  |  Branch (362:34): [True: 10, False: 149k]
  |  Branch (362:76): [True: 10, False: 149k]
  ------------------
  363|     20|#ifndef SUPPRESS_WARNINGS
  364|     20|      EXV_WARNING << "Nested document at invalid position: " << startPos << "\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()
  ------------------
  365|     20|#endif
  366|     20|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (366:19): [True: 0, False: 20]
  ------------------
  367|     20|    }
  368|   226k|    if (line.starts_with("%%BeginDocument:")) {
  ------------------
  |  Branch (368:9): [True: 307, False: 225k]
  ------------------
  369|    307|      if (depth == maxDepth) {
  ------------------
  |  Branch (369:11): [True: 0, False: 307]
  ------------------
  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|    307|      depth++;
  376|   225k|    } else if (line.starts_with("%%EndDocument")) {
  ------------------
  |  Branch (376:16): [True: 60, False: 225k]
  ------------------
  377|     60|      if (depth == 0) {
  ------------------
  |  Branch (377:11): [True: 6, False: 54]
  ------------------
  378|      6|#ifndef SUPPRESS_WARNINGS
  379|      6|        EXV_WARNING << "Unmatched EndDocument at position: " << startPos << "\n";
  ------------------
  |  |  138|      6|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 6]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      6|  LogMsg(LogMsg::warn).os()
  ------------------
  380|      6|#endif
  381|      6|        throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (381:21): [True: 0, False: 6]
  ------------------
  382|      6|      }
  383|     54|      depth--;
  384|   225k|    } else {
  385|       |#ifdef DEBUG
  386|       |      significantLine = false;
  387|       |#endif
  388|   225k|    }
  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|   225k|    if (depth != 0)
  ------------------
  |  Branch (395:9): [True: 2.03k, False: 223k]
  ------------------
  396|  2.03k|      continue;
  397|       |    // explicit "Begin" comments
  398|   223k|    if (line.starts_with("%%BeginPreview:")) {
  ------------------
  |  Branch (398:9): [True: 1.06k, False: 222k]
  ------------------
  399|  1.06k|      inDefaultsPreviewPrologSetup = true;
  400|   222k|    } else if (line == "%%BeginDefaults") {
  ------------------
  |  Branch (400:16): [True: 448, False: 222k]
  ------------------
  401|    448|      inDefaultsPreviewPrologSetup = true;
  402|   222k|    } else if (line == "%%BeginProlog") {
  ------------------
  |  Branch (402:16): [True: 69, False: 222k]
  ------------------
  403|     69|      inDefaultsPreviewPrologSetup = true;
  404|   222k|    } else if (line == "%%BeginSetup") {
  ------------------
  |  Branch (404:16): [True: 289, False: 222k]
  ------------------
  405|    289|      inDefaultsPreviewPrologSetup = true;
  406|   222k|    } else if (posPage == posEndEps && line.starts_with("%%Page:")) {
  ------------------
  |  Branch (406:16): [True: 148k, False: 74.0k]
  |  Branch (406:40): [True: 67, False: 147k]
  ------------------
  407|     67|      posPage = startPos;
  408|   222k|    } else if (posPage != posEndEps && line.starts_with("%%Page:")) {
  ------------------
  |  Branch (408:16): [True: 74.0k, False: 147k]
  |  Branch (408:40): [True: 21, False: 74.0k]
  ------------------
  409|     21|      if (implicitPage) {
  ------------------
  |  Branch (409:11): [True: 13, False: 8]
  ------------------
  410|     13|#ifndef SUPPRESS_WARNINGS
  411|     13|        EXV_WARNING << "Page at position " << startPos << " conflicts with implicit page at position: " << posPage
  ------------------
  |  |  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()
  ------------------
  412|      0|                    << "\n";
  413|     13|#endif
  414|     13|        throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (414:21): [True: 0, False: 13]
  ------------------
  415|     13|      }
  416|      8|#ifndef SUPPRESS_WARNINGS
  417|      8|      EXV_WARNING << "Unable to handle multiple PostScript pages. Found second page at position: " << startPos << "\n";
  ------------------
  |  |  138|      8|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 8]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      8|  LogMsg(LogMsg::warn).os()
  ------------------
  418|      8|#endif
  419|      8|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (419:19): [True: 0, False: 8]
  ------------------
  420|   222k|    } else if (line == "%%BeginPageSetup") {
  ------------------
  |  Branch (420:16): [True: 347, False: 221k]
  ------------------
  421|    347|      posBeginPageSetup = startPos;
  422|   221k|    } else if (!inRemovableEmbedding && line == "%Exiv2BeginXMP: Before %%EndPageSetup") {
  ------------------
  |  Branch (422:16): [True: 91.8k, False: 129k]
  |  Branch (422:41): [True: 637, False: 91.1k]
  ------------------
  423|    637|      inRemovableEmbedding = true;
  424|    637|      removableEmbeddings.emplace_back(startPos, startPos);
  425|    637|      removableEmbeddingEndLine = "%Exiv2EndXMP";
  426|   221k|    } else if (!inRemovableEmbedding && line == "%Exiv2BeginXMP: After %%PageTrailer") {
  ------------------
  |  Branch (426:16): [True: 91.1k, False: 129k]
  |  Branch (426:41): [True: 654, False: 90.5k]
  ------------------
  427|    654|      inRemovableEmbedding = true;
  428|    654|      removableEmbeddings.emplace_back(startPos, startPos);
  429|    654|      removableEmbeddingEndLine = "%Exiv2EndXMP";
  430|   220k|    } else if (!inRemovableEmbedding && line == "%ADOBeginClientInjection: PageSetup End \"AI11EPS\"") {
  ------------------
  |  Branch (430:16): [True: 90.5k, False: 129k]
  |  Branch (430:41): [True: 474, False: 90.0k]
  ------------------
  431|    474|      inRemovableEmbedding = true;
  432|    474|      removableEmbeddings.emplace_back(startPos, startPos);
  433|    474|      removableEmbeddingEndLine = "%ADOEndClientInjection: PageSetup End \"AI11EPS\"";
  434|   219k|    } else if (!inRemovableEmbedding && line == "%ADOBeginClientInjection: PageTrailer Start \"AI11EPS\"") {
  ------------------
  |  Branch (434:16): [True: 90.0k, False: 129k]
  |  Branch (434:41): [True: 230, False: 89.8k]
  ------------------
  435|    230|      inRemovableEmbedding = true;
  436|    230|      removableEmbeddings.emplace_back(startPos, startPos);
  437|    230|      removableEmbeddingEndLine = "%ADOEndClientInjection: PageTrailer Start \"AI11EPS\"";
  438|   219k|    } else if (!inRemovableEmbedding && line == "%begin_xml_code") {
  ------------------
  |  Branch (438:16): [True: 89.8k, False: 129k]
  |  Branch (438:41): [True: 653, False: 89.1k]
  ------------------
  439|    653|      inRemovableEmbedding = true;
  440|    653|      removableEmbeddings.emplace_back(startPos, startPos);
  441|    653|      removableEmbeddingEndLine = "%end_xml_code";
  442|    653|      removableEmbeddingsWithUnmarkedTrailer++;
  443|   219k|    } else {
  444|       |#ifdef DEBUG
  445|       |      significantLine = false;
  446|       |#endif
  447|   219k|    }
  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|   223k|    if (line == "%%EOF" || line == "%begin_xml_code" || line.size() < 2 || line.front() != '%' || '\x21' > line[1] ||
  ------------------
  |  Branch (455:9): [True: 8, False: 223k]
  |  Branch (455:28): [True: 1.01k, False: 222k]
  |  Branch (455:57): [True: 103k, False: 119k]
  |  Branch (455:76): [True: 44.6k, False: 74.6k]
  |  Branch (455:99): [True: 3.10k, False: 71.5k]
  ------------------
  456|   152k|        line[1] > '\x7e') {
  ------------------
  |  Branch (456:9): [True: 276, False: 71.2k]
  ------------------
  457|   152k|      if (posEndComments == posEndEps) {
  ------------------
  |  Branch (457:11): [True: 779, False: 151k]
  ------------------
  458|    779|        posEndComments = startPos;
  459|       |#ifdef DEBUG
  460|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndComments at position: " << startPos << "\n";
  461|       |#endif
  462|    779|      }
  463|   152k|    }
  464|   223k|    if (posPage == posEndEps && posEndComments != posEndEps && !inDefaultsPreviewPrologSetup && !inRemovableEmbedding &&
  ------------------
  |  Branch (464:9): [True: 149k, False: 74.5k]
  |  Branch (464:33): [True: 135k, False: 14.1k]
  |  Branch (464:64): [True: 3.76k, False: 131k]
  |  Branch (464:97): [True: 1.79k, False: 1.96k]
  ------------------
  465|  1.79k|        !onlyWhitespaces(line)) {
  ------------------
  |  Branch (465:9): [True: 559, False: 1.23k]
  ------------------
  466|    559|      posPage = startPos;
  467|    559|      implicitPage = true;
  468|       |#ifdef DEBUG
  469|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit Page at position: " << startPos << "\n";
  470|       |#endif
  471|    559|    }
  472|   223k|    if (posBeginPageSetup == posEndEps &&
  ------------------
  |  Branch (472:9): [True: 145k, False: 78.0k]
  ------------------
  473|   145k|        (implicitPage || (posPage != posEndEps && !inRemovableEmbedding && !line.empty() && line.front() != '%'))) {
  ------------------
  |  Branch (473:10): [True: 550, False: 145k]
  |  Branch (473:27): [True: 1.48k, False: 143k]
  |  Branch (473:51): [True: 1.02k, False: 461]
  |  Branch (473:76): [True: 844, False: 182]
  |  Branch (473:93): [True: 20, False: 824]
  ------------------
  474|    570|      posBeginPageSetup = startPos;
  475|    570|      implicitPageSetup = true;
  476|       |#ifdef DEBUG
  477|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit BeginPageSetup at position: " << startPos << "\n";
  478|       |#endif
  479|    570|    }
  480|   223k|    if (posEndPageSetup == posEndEps && implicitPageSetup && !inRemovableEmbedding && !line.empty() &&
  ------------------
  |  Branch (480:9): [True: 152k, False: 71.8k]
  |  Branch (480:41): [True: 6.77k, False: 145k]
  |  Branch (480:62): [True: 5.99k, False: 778]
  |  Branch (480:87): [True: 5.68k, False: 310]
  ------------------
  481|  5.68k|        line.front() != '%') {
  ------------------
  |  Branch (481:9): [True: 449, False: 5.23k]
  ------------------
  482|    449|      posEndPageSetup = startPos;
  483|       |#ifdef DEBUG
  484|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndPageSetup at position: " << startPos << "\n";
  485|       |#endif
  486|    449|    }
  487|   223k|    if (!line.empty() && line.front() != '%')
  ------------------
  |  Branch (487:9): [True: 136k, False: 87.6k]
  |  Branch (487:26): [True: 60.4k, False: 75.9k]
  ------------------
  488|  60.4k|      continue;  // performance optimization
  489|   163k|    if (line == "%%EOF" || line == "%%Trailer" || line == "%%PageTrailer") {
  ------------------
  |  Branch (489:9): [True: 8, False: 163k]
  |  Branch (489:28): [True: 210, False: 163k]
  |  Branch (489:51): [True: 232, False: 163k]
  ------------------
  490|    450|      if (posBeginPageSetup == posEndEps) {
  ------------------
  |  Branch (490:11): [True: 19, False: 431]
  ------------------
  491|     19|        posBeginPageSetup = startPos;
  492|     19|        implicitPageSetup = true;
  493|       |#ifdef DEBUG
  494|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit BeginPageSetup at position: " << startPos << "\n";
  495|       |#endif
  496|     19|      }
  497|    450|      if (posEndPageSetup == posEndEps) {
  ------------------
  |  Branch (497:11): [True: 33, False: 417]
  ------------------
  498|     33|        posEndPageSetup = startPos;
  499|     33|        implicitPageSetup = true;
  500|       |#ifdef DEBUG
  501|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndPageSetup at position: " << startPos << "\n";
  502|       |#endif
  503|     33|      }
  504|    450|    }
  505|   163k|    if ((line == "%%EOF" || line == "%%Trailer") && posPageTrailer == posEndEps) {
  ------------------
  |  Branch (505:10): [True: 8, False: 163k]
  |  Branch (505:29): [True: 210, False: 163k]
  |  Branch (505:53): [True: 37, False: 181]
  ------------------
  506|     37|      posPageTrailer = startPos;
  507|     37|      implicitPageTrailer = true;
  508|       |#ifdef DEBUG
  509|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit PageTrailer at position: " << startPos << "\n";
  510|       |#endif
  511|     37|    }
  512|       |    // remaining explicit comments
  513|   163k|    if (posEndComments == posEndEps && posLanguageLevel == posEndEps && line.starts_with("%%LanguageLevel:")) {
  ------------------
  |  Branch (513:9): [True: 14.7k, False: 148k]
  |  Branch (513:40): [True: 14.3k, False: 341]
  |  Branch (513:73): [True: 19, False: 14.3k]
  ------------------
  514|     19|      posLanguageLevel = startPos;
  515|   163k|    } else if (posEndComments == posEndEps && posContainsXmp == posEndEps && line.starts_with("%ADO_ContainsXMP:")) {
  ------------------
  |  Branch (515:16): [True: 14.7k, False: 148k]
  |  Branch (515:47): [True: 14.0k, False: 650]
  |  Branch (515:78): [True: 86, False: 13.9k]
  ------------------
  516|     86|      posContainsXmp = startPos;
  517|   163k|    } else if (posEndComments == posEndEps && posPages == posEndEps && line.starts_with("%%Pages:")) {
  ------------------
  |  Branch (517:16): [True: 14.6k, False: 148k]
  |  Branch (517:47): [True: 13.8k, False: 796]
  |  Branch (517:72): [True: 36, False: 13.8k]
  ------------------
  518|     36|      posPages = startPos;
  519|   163k|    } else if (posEndComments == posEndEps && posExiv2Version == posEndEps && line.starts_with("%Exiv2Version:")) {
  ------------------
  |  Branch (519:16): [True: 14.5k, False: 148k]
  |  Branch (519:47): [True: 9.81k, False: 4.78k]
  |  Branch (519:79): [True: 24, False: 9.79k]
  ------------------
  520|     24|      posExiv2Version = startPos;
  521|   163k|    } else if (posEndComments == posEndEps && posExiv2Website == posEndEps && line.starts_with("%Exiv2Website:")) {
  ------------------
  |  Branch (521:16): [True: 14.5k, False: 148k]
  |  Branch (521:47): [True: 13.9k, False: 588]
  |  Branch (521:79): [True: 26, False: 13.9k]
  ------------------
  522|     26|      posExiv2Website = startPos;
  523|   163k|    } else if (posEndComments == posEndEps && line.starts_with("%%Creator: Adobe Illustrator") &&
  ------------------
  |  Branch (523:16): [True: 14.5k, False: 148k]
  |  Branch (523:47): [True: 179, False: 14.3k]
  ------------------
  524|    179|               firstLine == "%!PS-Adobe-3.0 EPSF-3.0") {
  ------------------
  |  Branch (524:16): [True: 110, False: 69]
  ------------------
  525|    110|      illustrator8 = true;
  526|   163k|    } else if (posEndComments == posEndEps && line.starts_with("%AI7_Thumbnail:")) {
  ------------------
  |  Branch (526:16): [True: 14.4k, False: 148k]
  |  Branch (526:47): [True: 508, False: 13.9k]
  ------------------
  527|    508|      posAi7Thumbnail = startPos;
  528|   162k|    } else if (posEndComments == posEndEps && posAi7Thumbnail != posEndEps && posAi7ThumbnailEndData == posEndEps &&
  ------------------
  |  Branch (528:16): [True: 13.9k, False: 148k]
  |  Branch (528:47): [True: 3.34k, False: 10.5k]
  |  Branch (528:79): [True: 1.95k, False: 1.39k]
  ------------------
  529|  1.95k|               line == "%%EndData") {
  ------------------
  |  Branch (529:16): [True: 83, False: 1.87k]
  ------------------
  530|     83|      posAi7ThumbnailEndData = startPos;
  531|   162k|    } else if (posEndComments == posEndEps && line == "%%EndComments") {
  ------------------
  |  Branch (531:16): [True: 13.8k, False: 148k]
  |  Branch (531:47): [True: 1, False: 13.8k]
  ------------------
  532|      1|      posEndComments = startPos;
  533|   162k|    } else if (inDefaultsPreviewPrologSetup && line.starts_with("%%BeginResource: procset wCorel")) {
  ------------------
  |  Branch (533:16): [True: 104k, False: 57.9k]
  |  Branch (533:48): [True: 70, False: 104k]
  ------------------
  534|     70|      corelDraw = true;
  535|   162k|    } else if (line == "%%EndPreview") {
  ------------------
  |  Branch (535:16): [True: 121, False: 162k]
  ------------------
  536|    121|      inDefaultsPreviewPrologSetup = false;
  537|   162k|    } else if (line == "%%EndDefaults") {
  ------------------
  |  Branch (537:16): [True: 148, False: 162k]
  ------------------
  538|    148|      inDefaultsPreviewPrologSetup = false;
  539|   162k|    } else if (line == "%%EndProlog") {
  ------------------
  |  Branch (539:16): [True: 325, False: 161k]
  ------------------
  540|    325|      inDefaultsPreviewPrologSetup = false;
  541|   161k|    } else if (line == "%%EndSetup") {
  ------------------
  |  Branch (541:16): [True: 488, False: 161k]
  ------------------
  542|    488|      inDefaultsPreviewPrologSetup = false;
  543|   161k|    } else if (posEndPageSetup == posEndEps && line == "%%EndPageSetup") {
  ------------------
  |  Branch (543:16): [True: 106k, False: 54.7k]
  |  Branch (543:48): [True: 9, False: 106k]
  ------------------
  544|      9|      posEndPageSetup = startPos;
  545|   161k|    } else if (posPageTrailer == posEndEps && line == "%%PageTrailer") {
  ------------------
  |  Branch (545:16): [True: 143k, False: 18.3k]
  |  Branch (545:47): [True: 28, False: 143k]
  ------------------
  546|     28|      posPageTrailer = startPos;
  547|   161k|    } else if (posBeginPhotoshop == posEndEps && line.starts_with("%BeginPhotoshop:")) {
  ------------------
  |  Branch (547:16): [True: 158k, False: 3.01k]
  |  Branch (547:50): [True: 53, False: 158k]
  ------------------
  548|     53|      posBeginPhotoshop = pos;
  549|   161k|    } else if (posBeginPhotoshop != posEndEps && posEndPhotoshop == posEndEps && line == "%EndPhotoshop") {
  ------------------
  |  Branch (549:16): [True: 3.01k, False: 158k]
  |  Branch (549:50): [True: 2.88k, False: 132]
  |  Branch (549:82): [True: 18, False: 2.86k]
  ------------------
  550|     18|      posEndPhotoshop = startPos;
  551|   161k|    } else if (inRemovableEmbedding && line == removableEmbeddingEndLine) {
  ------------------
  |  Branch (551:16): [True: 89.9k, False: 71.4k]
  |  Branch (551:40): [True: 2.41k, False: 87.5k]
  ------------------
  552|  2.41k|      inRemovableEmbedding = false;
  553|  2.41k|      removableEmbeddings.back().second = pos;
  554|   158k|    } else if (line == "%%EOF") {
  ------------------
  |  Branch (554:16): [True: 8, False: 158k]
  ------------------
  555|      8|      posEof = startPos;
  556|   158k|    } else {
  557|       |#ifdef DEBUG
  558|       |      significantLine = false;
  559|       |#endif
  560|   158k|    }
  561|       |#ifdef DEBUG
  562|       |    if (significantLine) {
  563|       |      EXV_DEBUG << "readWriteEpsMetadata: Found significant line \"" << line << "\" at position: " << startPos << "\n";
  564|       |    }
  565|       |#endif
  566|   163k|  }
  567|       |
  568|       |  // check for unfinished nested documents
  569|  1.26k|  if (depth != 0) {
  ------------------
  |  Branch (569:7): [True: 21, False: 1.24k]
  ------------------
  570|     21|#ifndef SUPPRESS_WARNINGS
  571|     21|    EXV_WARNING << "Unmatched BeginDocument (" << depth << "x)\n";
  ------------------
  |  |  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()
  ------------------
  572|     21|#endif
  573|     21|    throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (573:17): [True: 0, False: 21]
  ------------------
  574|     21|  }
  575|       |
  576|       |  // look for the unmarked trailers of some removable XMP embeddings
  577|  1.24k|  size_t posXmpTrailerEnd = posEof;
  578|  1.24k|  for (size_t i = 0; i < removableEmbeddingsWithUnmarkedTrailer; i++) {
  ------------------
  |  Branch (578:22): [True: 163, False: 1.08k]
  ------------------
  579|    163|    std::string line1;
  580|    163|    const size_t posLine1 = readPrevLine(line1, data, posXmpTrailerEnd, posEndEps);
  581|    163|    std::string line2;
  582|    163|    const size_t posLine2 = readPrevLine(line2, data, posLine1, posEndEps);
  583|    163|    size_t posXmpTrailer;
  584|    163|    if (line1 == "[/EMC pdfmark") {  // Exiftool style
  ------------------
  |  Branch (584:9): [True: 4, False: 159]
  ------------------
  585|      4|      posXmpTrailer = posLine1;
  586|    159|    } else if (line1 == "[/NamespacePop pdfmark" &&
  ------------------
  |  Branch (586:16): [True: 14, False: 145]
  ------------------
  587|     14|               line2 ==
  ------------------
  |  Branch (587:16): [True: 0, False: 14]
  ------------------
  588|     14|                   "[{nextImage} 1 dict begin /Metadata {photoshop_metadata_stream} def currentdict end /PUT "
  589|     14|                   "pdfmark") {  // Photoshop style
  590|      0|      posXmpTrailer = posLine2;
  591|    159|    } else {
  592|    159|#ifndef SUPPRESS_WARNINGS
  593|    159|      EXV_WARNING << "Unable to find XMP embedding trailer ending at position: " << posXmpTrailerEnd << "\n";
  ------------------
  |  |  138|    159|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 159]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    159|  LogMsg(LogMsg::warn).os()
  ------------------
  594|    159|#endif
  595|    159|      if (write)
  ------------------
  |  Branch (595:11): [True: 0, False: 159]
  ------------------
  596|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  597|    159|      break;
  598|    159|    }
  599|      4|    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|      4|    posXmpTrailerEnd = posXmpTrailer;
  606|      4|  }
  607|       |
  608|       |  // interpret comment "%ADO_ContainsXMP:"
  609|  1.24k|  std::string line;
  610|  1.24k|  readLine(line, data, posContainsXmp, posEndEps);
  611|  1.24k|  bool containsXmp;
  612|  1.24k|  if (line == "%ADO_ContainsXMP: MainFirst" || line == "%ADO_ContainsXMP:MainFirst") {
  ------------------
  |  Branch (612:7): [True: 230, False: 1.01k]
  |  Branch (612:48): [True: 32, False: 982]
  ------------------
  613|     34|    containsXmp = true;
  614|  1.21k|  } else if (line.empty() || line == "%ADO_ContainsXMP: NoMain" || line == "%ADO_ContainsXMP:NoMain") {
  ------------------
  |  Branch (614:14): [True: 1.15k, False: 52]
  |  Branch (614:30): [True: 1, False: 51]
  |  Branch (614:68): [True: 1, False: 50]
  ------------------
  615|    932|    containsXmp = false;
  616|    932|  } else {
  617|    278|#ifndef SUPPRESS_WARNINGS
  618|    278|    EXV_WARNING << "Invalid line \"" << line << "\" at position: " << posContainsXmp << "\n";
  ------------------
  |  |  138|    278|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 278]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    278|  LogMsg(LogMsg::warn).os()
  ------------------
  619|    278|#endif
  620|    278|    throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (620:17): [True: 0, False: 278]
  ------------------
  621|    278|  }
  622|       |
  623|    966|  const bool deleteXmp = (write && xmpPacket.empty());
  ------------------
  |  Branch (623:27): [True: 0, False: 966]
  |  Branch (623:36): [True: 0, False: 0]
  ------------------
  624|    966|  bool fixBeginXmlPacket = false;
  625|    966|  bool useFlexibleEmbedding = false;
  626|    966|  size_t xmpPos = posEndEps;
  627|    966|  size_t xmpSize = 0;
  628|    966|  if (containsXmp) {
  ------------------
  |  Branch (628:7): [True: 34, False: 932]
  ------------------
  629|       |    // search for XMP metadata
  630|     34|    findXmp(xmpPos, xmpSize, data, posEps, posEndEps, write);
  631|     34|    if (xmpPos == posEndEps) {
  ------------------
  |  Branch (631:9): [True: 12, False: 22]
  ------------------
  632|     12|#ifndef SUPPRESS_WARNINGS
  633|     12|      EXV_WARNING << "Unable to find XMP metadata as announced at position: " << posContainsXmp << "\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()
  ------------------
  634|     12|#endif
  635|     12|    }
  636|       |    // check embedding of XMP metadata
  637|     34|    const size_t posLineAfterXmp = readLine(line, data, xmpPos + xmpSize, posEndEps);
  638|     34|    if (!line.empty()) {
  ------------------
  |  Branch (638:9): [True: 8, False: 26]
  ------------------
  639|      8|#ifndef SUPPRESS_WARNINGS
  640|      8|      EXV_WARNING << "Unexpected " << line.size() << " bytes of data after XMP at position: " << (xmpPos + xmpSize)
  ------------------
  |  |  138|      8|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 8]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      8|  LogMsg(LogMsg::warn).os()
  ------------------
  641|      0|                  << "\n";
  642|      8|#endif
  643|     26|    } else if (!deleteXmp) {
  ------------------
  |  Branch (643:16): [True: 22, False: 4]
  ------------------
  644|     22|      readLine(line, data, posLineAfterXmp, posEndEps);
  645|     22|      if (line == "% &&end XMP packet marker&&" || line == "%  &&end XMP packet marker&&") {
  ------------------
  |  Branch (645:11): [True: 4, False: 18]
  |  Branch (645:52): [True: 0, False: 18]
  ------------------
  646|      4|        useFlexibleEmbedding = true;
  647|      4|      }
  648|     22|    }
  649|     34|  }
  650|    966|  if (useFlexibleEmbedding) {
  ------------------
  |  Branch (650:7): [True: 4, False: 962]
  ------------------
  651|       |#ifdef DEBUG
  652|       |    EXV_DEBUG << "readWriteEpsMetadata: Using flexible XMP embedding\n";
  653|       |#endif
  654|      4|    const size_t posBeginXmlPacket = readPrevLine(line, data, xmpPos, posEndEps);
  655|      4|    if (line.starts_with("%begin_xml_packet:")) {
  ------------------
  |  Branch (655:9): [True: 0, False: 4]
  ------------------
  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|      4|    } else if (posBeginPhotoshop != posEndEps) {
  ------------------
  |  Branch (664:16): [True: 1, False: 3]
  ------------------
  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|      4|  }
  672|    966|  if (!useFlexibleEmbedding) {
  ------------------
  |  Branch (672:7): [True: 958, False: 8]
  ------------------
  673|       |    // check if there are irremovable XMP metadata blocks before EndPageSetup
  674|    958|    size_t posOtherXmp = containsXmp ? xmpPos : posEps;
  ------------------
  |  Branch (674:26): [True: 26, False: 932]
  ------------------
  675|    958|    size_t sizeOtherXmp = 0;
  676|  2.80k|    for (;;) {
  677|  2.80k|      findXmp(posOtherXmp, sizeOtherXmp, data, posOtherXmp + sizeOtherXmp, posEndPageSetup, write);
  678|  2.80k|      if (posOtherXmp >= posEndPageSetup)
  ------------------
  |  Branch (678:11): [True: 840, False: 1.96k]
  ------------------
  679|    840|        break;
  680|  1.96k|      bool isRemovableEmbedding = false;
  681|  22.1k|      for (const auto& [r, s] : removableEmbeddings) {
  ------------------
  |  Branch (681:31): [True: 22.1k, False: 118]
  ------------------
  682|  22.1k|        if (r <= posOtherXmp && posOtherXmp < s) {
  ------------------
  |  Branch (682:13): [True: 22.1k, False: 38]
  |  Branch (682:33): [True: 1.84k, False: 20.3k]
  ------------------
  683|  1.84k|          isRemovableEmbedding = true;
  684|  1.84k|          break;
  685|  1.84k|        }
  686|  22.1k|      }
  687|  1.96k|      if (!isRemovableEmbedding) {
  ------------------
  |  Branch (687:11): [True: 29, False: 1.93k]
  ------------------
  688|     29|#ifndef SUPPRESS_WARNINGS
  689|     29|        EXV_WARNING << "XMP metadata block is not removable at position: " << posOtherXmp << "\n";
  ------------------
  |  |  138|     29|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 29]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     29|  LogMsg(LogMsg::warn).os()
  ------------------
  690|     29|#endif
  691|     29|        if (write)
  ------------------
  |  Branch (691:13): [True: 0, False: 29]
  ------------------
  692|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  693|     29|        break;
  694|     29|      }
  695|  1.96k|    }
  696|    958|  }
  697|       |
  698|    966|  if (!write) {
  ------------------
  |  Branch (698:7): [True: 873, False: 93]
  ------------------
  699|       |    // copy XMP metadata
  700|    873|    xmpPacket.assign(reinterpret_cast<const char*>(data + xmpPos), xmpSize);
  701|       |
  702|       |    // native previews
  703|    873|    nativePreviews.clear();
  704|    873|    if (posAi7ThumbnailEndData != posEndEps) {
  ------------------
  |  Branch (704:9): [True: 77, False: 796]
  ------------------
  705|     77|      NativePreview nativePreview;
  706|     77|      std::string dummy;
  707|     77|      std::string lineAi7Thumbnail;
  708|     77|      const size_t posBeginData = readLine(lineAi7Thumbnail, data, posAi7Thumbnail, posEndEps);
  709|     77|      std::istringstream lineStreamAi7Thumbnail(lineAi7Thumbnail);
  710|     77|      lineStreamAi7Thumbnail >> dummy;
  711|     77|      lineStreamAi7Thumbnail >> nativePreview.width_;
  712|     77|      lineStreamAi7Thumbnail >> nativePreview.height_;
  713|     77|      std::string depthStr;
  714|     77|      lineStreamAi7Thumbnail >> depthStr;
  715|     77|      std::string lineBeginData;
  716|     77|      const size_t posAfterBeginData = readLine(lineBeginData, data, posBeginData, posEndEps);
  717|     77|      std::istringstream lineStreamBeginData(lineBeginData);
  718|     77|      std::string beginData;
  719|     77|      lineStreamBeginData >> beginData;
  720|     77|      lineStreamBeginData >> dummy;
  721|     77|      std::string type;
  722|     77|      lineStreamBeginData >> type;
  723|     77|      nativePreview.position_ = static_cast<long>(posAfterBeginData);
  724|     77|      nativePreview.size_ = static_cast<uint32_t>(posAi7ThumbnailEndData - posAfterBeginData);
  725|     77|      nativePreview.filter_ = "hex-ai7thumbnail-pnm";
  726|     77|      nativePreview.mimeType_ = "image/x-portable-anymap";
  727|     77|      if (depthStr != "8") {
  ------------------
  |  Branch (727:11): [True: 77, False: 0]
  ------------------
  728|     77|#ifndef SUPPRESS_WARNINGS
  729|     77|        EXV_WARNING << "Unable to handle Illustrator thumbnail depth: " << depthStr << "\n";
  ------------------
  |  |  138|     77|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 77]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     77|  LogMsg(LogMsg::warn).os()
  ------------------
  730|     77|#endif
  731|     77|      } 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|     77|    }
  743|    873|    if (posEndPhotoshop != posEndEps) {
  ------------------
  |  Branch (743:9): [True: 18, False: 855]
  ------------------
  744|     18|      auto sizePhotoshop = posEndPhotoshop - posBeginPhotoshop;
  745|     18|      NativePreview nativePreview{posBeginPhotoshop, sizePhotoshop, 0, 0, "hex-irb", "image/jpeg"};
  746|     18|      nativePreviews.push_back(std::move(nativePreview));
  747|     18|    }
  748|    873|    if (sizeWmf != 0) {
  ------------------
  |  Branch (748:9): [True: 0, False: 873]
  ------------------
  749|      0|      NativePreview nativePreview{posWmf, sizeWmf, 0, 0, "", "image/x-wmf"};
  750|      0|      nativePreviews.push_back(std::move(nativePreview));
  751|      0|    }
  752|    873|    if (sizeTiff != 0) {
  ------------------
  |  Branch (752:9): [True: 0, False: 873]
  ------------------
  753|      0|      NativePreview nativePreview{posTiff, sizeTiff, 0, 0, "", "image/tiff"};
  754|      0|      nativePreviews.push_back(std::move(nativePreview));
  755|      0|    }
  756|    873|  } else {
  757|       |    // check for Adobe Illustrator 8.0 or older
  758|     93|    if (illustrator8) {
  ------------------
  |  Branch (758:9): [True: 0, False: 93]
  ------------------
  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|     93|    MemIo tempIo;
  767|     93|    if (!tempIo.isopen()) {
  ------------------
  |  Branch (767:9): [True: 0, False: 93]
  ------------------
  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|     93|    std::vector<size_t> positions;
  779|     93|    positions.push_back(posLanguageLevel);
  780|     93|    positions.push_back(posContainsXmp);
  781|     93|    positions.push_back(posPages);
  782|     93|    positions.push_back(posExiv2Version);
  783|     93|    positions.push_back(posExiv2Website);
  784|     93|    positions.push_back(posEndComments);
  785|     93|    positions.push_back(posPage);
  786|     93|    positions.push_back(posBeginPageSetup);
  787|     93|    positions.push_back(posEndPageSetup);
  788|     93|    positions.push_back(posPageTrailer);
  789|     93|    positions.push_back(posEof);
  790|     93|    positions.push_back(posEndEps);
  791|     93|    if (useFlexibleEmbedding) {
  ------------------
  |  Branch (791:9): [True: 0, False: 93]
  ------------------
  792|      0|      positions.push_back(xmpPos);
  793|      0|    }
  794|     93|    for (const auto& [r, s] : removableEmbeddings) {
  ------------------
  |  Branch (794:29): [True: 0, False: 93]
  ------------------
  795|      0|      positions.push_back(r);
  796|      0|    }
  797|     93|    std::sort(positions.begin(), positions.end());
  798|       |
  799|       |    // assemble result EPS document
  800|     93|    if (dosEps) {
  ------------------
  |  Branch (800:9): [True: 0, False: 93]
  ------------------
  801|       |      // DOS EPS header will be written afterwards
  802|      0|      writeTemp(tempIo, std::string(30, '\x00'));
  803|      0|    }
  804|     93|    const std::string containsXmpLine = deleteXmp ? "%ADO_ContainsXMP: NoMain" : "%ADO_ContainsXMP: MainFirst";
  ------------------
  |  Branch (804:41): [True: 0, False: 93]
  ------------------
  805|     93|    const uint32_t posEpsNew = posTemp(tempIo);
  806|     93|    size_t prevPos = posEps;
  807|     93|    size_t prevSkipPos = prevPos;
  808|     93|    for (const auto& pos : positions) {
  ------------------
  |  Branch (808:26): [True: 0, False: 93]
  ------------------
  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|     93|    const uint32_t posEndEpsNew = posTemp(tempIo);
  986|       |#ifdef DEBUG
  987|       |    EXV_DEBUG << "readWriteEpsMetadata: New EPS size: " << (posEndEpsNew - posEpsNew) << "\n";
  988|       |#endif
  989|     93|    if (dosEps) {
  ------------------
  |  Branch (989:9): [True: 0, False: 93]
  ------------------
  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|     93|    io.close();
 1017|     93|    io.transfer(tempIo);
 1018|     93|  }
 1019|    966|}
epsimage.cpp:_ZN12_GLOBAL__N_18readLineERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKhmm:
  117|   228k|size_t readLine(std::string& line, const byte* data, size_t startPos, size_t size) {
  118|   228k|  line.clear();
  119|   228k|  size_t pos = startPos;
  120|       |  // step through line
  121|  9.88M|  while (pos < size && data[pos] != '\r' && data[pos] != '\n') {
  ------------------
  |  Branch (121:10): [True: 9.88M, False: 1.96k]
  |  Branch (121:24): [True: 9.82M, False: 60.5k]
  |  Branch (121:45): [True: 9.65M, False: 165k]
  ------------------
  122|  9.65M|    line += data[pos];
  123|  9.65M|    pos++;
  124|  9.65M|  }
  125|       |  // skip line ending, if present
  126|   228k|  if (pos >= size)
  ------------------
  |  Branch (126:7): [True: 1.96k, False: 226k]
  ------------------
  127|  1.96k|    return pos;
  128|   226k|  pos++;
  129|   226k|  if (pos >= size)
  ------------------
  |  Branch (129:7): [True: 97, False: 226k]
  ------------------
  130|     97|    return pos;
  131|   226k|  if (data[pos - 1] == '\r' && data[pos] == '\n')
  ------------------
  |  Branch (131:7): [True: 60.5k, False: 165k]
  |  Branch (131:32): [True: 2.00k, False: 58.5k]
  ------------------
  132|  2.00k|    pos++;
  133|   226k|  return pos;
  134|   226k|}
epsimage.cpp:_ZN12_GLOBAL__N_115onlyWhitespacesERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  110|  1.79k|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|  1.79k|  return s.find_first_not_of(" \t") == std::string::npos;
  114|  1.79k|}
epsimage.cpp:_ZN12_GLOBAL__N_112readPrevLineERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKhmm:
  137|    330|size_t readPrevLine(std::string& line, const byte* data, size_t startPos, size_t size) {
  138|    330|  line.clear();
  139|    330|  size_t pos = startPos;
  140|    330|  if (pos > size)
  ------------------
  |  Branch (140:7): [True: 0, False: 330]
  ------------------
  141|      0|    return pos;
  142|       |  // skip line ending of previous line, if present
  143|    330|  if (pos <= 0)
  ------------------
  |  Branch (143:7): [True: 0, False: 330]
  ------------------
  144|      0|    return pos;
  145|    330|  if (data[pos - 1] == '\r' || data[pos - 1] == '\n') {
  ------------------
  |  Branch (145:7): [True: 70, False: 260]
  |  Branch (145:32): [True: 136, False: 124]
  ------------------
  146|    206|    pos--;
  147|    206|    if (pos <= 0)
  ------------------
  |  Branch (147:9): [True: 0, False: 206]
  ------------------
  148|      0|      return pos;
  149|    206|    if (data[pos - 1] == '\r' && data[pos] == '\n') {
  ------------------
  |  Branch (149:9): [True: 32, False: 174]
  |  Branch (149:34): [True: 17, False: 15]
  ------------------
  150|     17|      pos--;
  151|     17|      if (pos <= 0)
  ------------------
  |  Branch (151:11): [True: 0, False: 17]
  ------------------
  152|      0|        return pos;
  153|     17|    }
  154|    206|  }
  155|       |  // step through previous line
  156|  3.96M|  while (pos >= 1 && data[pos - 1] != '\r' && data[pos - 1] != '\n') {
  ------------------
  |  Branch (156:10): [True: 3.96M, False: 1]
  |  Branch (156:22): [True: 3.96M, False: 103]
  |  Branch (156:47): [True: 3.96M, False: 226]
  ------------------
  157|  3.96M|    pos--;
  158|  3.96M|    line += data[pos];
  159|  3.96M|  }
  160|    330|  std::reverse(line.begin(), line.end());
  161|    330|  return pos;
  162|    330|}
epsimage.cpp:_ZN12_GLOBAL__N_17findXmpERmS0_PKhmmb:
  165|  2.84k|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|  2.84k|  xmpSize = 0;
  168|  2.21M|  for (xmpPos = startPos; xmpPos < size; xmpPos++) {
  ------------------
  |  Branch (168:27): [True: 2.20M, False: 852]
  ------------------
  169|  2.20M|    if (data[xmpPos] != '\x00' && data[xmpPos] != '<')
  ------------------
  |  Branch (169:9): [True: 1.89M, False: 319k]
  |  Branch (169:35): [True: 1.87M, False: 16.5k]
  ------------------
  170|  1.87M|      continue;
  171|  2.68M|    for (auto&& header : xmpHeaders) {
  ------------------
  |  Branch (171:24): [True: 2.68M, False: 334k]
  ------------------
  172|  2.68M|      if (xmpPos + header.size() > size)
  ------------------
  |  Branch (172:11): [True: 28.6k, False: 2.65M]
  ------------------
  173|  28.6k|        continue;
  174|  2.65M|      if (memcmp(data + xmpPos, header.data(), header.size()) != 0)
  ------------------
  |  Branch (174:11): [True: 2.65M, False: 1.98k]
  ------------------
  175|  2.65M|        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|  1.39M|      for (size_t trailerPos = xmpPos + header.size(); trailerPos < size; trailerPos++) {
  ------------------
  |  Branch (181:56): [True: 1.39M, False: 51]
  ------------------
  182|  1.39M|        if (data[trailerPos] != '\x00' && data[trailerPos] != '<')
  ------------------
  |  Branch (182:13): [True: 1.16M, False: 226k]
  |  Branch (182:43): [True: 1.15M, False: 15.5k]
  ------------------
  183|  1.15M|          continue;
  184|   966k|        for (const auto& [trailer, readOnly] : xmpTrailers) {
  ------------------
  |  Branch (184:46): [True: 966k, False: 240k]
  ------------------
  185|   966k|          if (trailerPos + trailer.size() > size)
  ------------------
  |  Branch (185:15): [True: 540, False: 966k]
  ------------------
  186|    540|            continue;
  187|   966k|          if (memcmp(data + trailerPos, trailer.data(), trailer.size()) != 0)
  ------------------
  |  Branch (187:15): [True: 964k, False: 1.93k]
  ------------------
  188|   964k|            continue;
  189|       |#ifdef DEBUG
  190|       |          EXV_DEBUG << "findXmp: Found XMP trailer at position: " << trailerPos << "\n";
  191|       |#endif
  192|       |
  193|  1.93k|          if (readOnly) {
  ------------------
  |  Branch (193:15): [True: 12, False: 1.92k]
  ------------------
  194|     12|#ifndef SUPPRESS_WARNINGS
  195|     12|            EXV_WARNING << "Unable to handle read-only XMP metadata yet. Please provide your "
  ------------------
  |  |  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()
  ------------------
  196|      0|                           "sample EPS file to the Exiv2 project: http://dev.exiv2.org/projects/exiv2\n";
  197|     12|#endif
  198|     12|            throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (198:25): [True: 0, False: 12]
  ------------------
  199|     12|          }
  200|       |
  201|       |          // search for end of XMP trailer
  202|   839k|          for (size_t trailerEndPos = trailerPos + trailer.size(); trailerEndPos + xmpTrailerEnd.size() <= size;
  ------------------
  |  Branch (202:68): [True: 839k, False: 30]
  ------------------
  203|   839k|               trailerEndPos++) {
  204|   839k|            if (memcmp(data + trailerEndPos, xmpTrailerEnd.data(), xmpTrailerEnd.size()) == 0) {
  ------------------
  |  Branch (204:17): [True: 1.89k, False: 837k]
  ------------------
  205|  1.89k|              xmpSize = (trailerEndPos + xmpTrailerEnd.size()) - xmpPos;
  206|  1.89k|              return;
  207|  1.89k|            }
  208|   839k|          }
  209|     30|#ifndef SUPPRESS_WARNINGS
  210|     30|          EXV_WARNING << "Found XMP header but incomplete XMP trailer.\n";
  ------------------
  |  |  138|     30|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 30]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     30|  LogMsg(LogMsg::warn).os()
  ------------------
  211|     30|#endif
  212|     30|          throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (212:23): [True: 0, False: 30]
  ------------------
  213|  1.92k|        }
  214|   242k|      }
  215|     51|#ifndef SUPPRESS_WARNINGS
  216|     51|      EXV_WARNING << "Found XMP header but no XMP trailer.\n";
  ------------------
  |  |  138|     51|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 51]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     51|  LogMsg(LogMsg::warn).os()
  ------------------
  217|     51|#endif
  218|     51|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (218:19): [True: 0, False: 51]
  ------------------
  219|  1.98k|    }
  220|   336k|  }
  221|  2.84k|}

_ZN5Exiv26LogMsg8setLevelENS0_5LevelE:
  119|  30.7k|void LogMsg::setLevel(LogMsg::Level level) {
  120|  30.7k|  level_ = level;
  121|  30.7k|}
_ZN5Exiv26LogMsg5levelEv:
  127|  11.4M|LogMsg::Level LogMsg::level() {
  128|  11.4M|  return level_;
  129|  11.4M|}
_ZN5Exiv25ErrorC2ENS_9ErrorCodeE:
  155|  23.2k|Error::Error(ErrorCode code) : code_(code) {
  156|  23.2k|  setMsg(0);
  157|  23.2k|}
_ZNK5Exiv25Error4codeEv:
  159|     10|ErrorCode Error::code() const noexcept {
  160|     10|  return code_;
  161|     10|}
_ZN5Exiv25Error6setMsgEi:
  167|  30.9k|void Error::setMsg(int count) {
  168|  30.9k|  std::string msg{_(errList.at(static_cast<size_t>(code_)))};
  ------------------
  |  |   40|  30.9k|#define _(String) (String)
  ------------------
  169|  30.9k|  auto pos = msg.find("%0");
  170|  30.9k|  if (pos != std::string::npos) {
  ------------------
  |  Branch (170:7): [True: 0, False: 30.9k]
  ------------------
  171|      0|    msg.replace(pos, 2, std::to_string(static_cast<int>(code_)));
  172|      0|  }
  173|  30.9k|  if (count > 0) {
  ------------------
  |  Branch (173:7): [True: 7.70k, False: 23.2k]
  ------------------
  174|  7.70k|    pos = msg.find("%1");
  175|  7.70k|    if (pos != std::string::npos) {
  ------------------
  |  Branch (175:9): [True: 7.70k, False: 0]
  ------------------
  176|  7.70k|      msg.replace(pos, 2, arg1_);
  177|  7.70k|    }
  178|  7.70k|  }
  179|  30.9k|  if (count > 1) {
  ------------------
  |  Branch (179:7): [True: 18, False: 30.9k]
  ------------------
  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|  30.9k|  if (count > 2) {
  ------------------
  |  Branch (185:7): [True: 0, False: 30.9k]
  ------------------
  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|  30.9k|  msg_ = std::move(msg);
  192|  30.9k|}

_ZN5Exiv29ExifdatumC2ERKNS_7ExifKeyEPKNS_5ValueE:
  157|  18.2M|Exifdatum::Exifdatum(const ExifKey& key, const Value* pValue) : key_(key.clone()) {
  158|  18.2M|  if (pValue)
  ------------------
  |  Branch (158:7): [True: 18.1M, False: 29.6k]
  ------------------
  159|  18.1M|    value_ = pValue->clone();
  160|  18.2M|}
_ZN5Exiv29ExifdatumC2ERKS0_:
  162|  21.1M|Exifdatum::Exifdatum(const Exifdatum& rhs) {
  163|  21.1M|  if (rhs.key_)
  ------------------
  |  Branch (163:7): [True: 21.1M, False: 0]
  ------------------
  164|  21.1M|    key_ = rhs.key_->clone();  // deep copy
  165|  21.1M|  if (rhs.value_)
  ------------------
  |  Branch (165:7): [True: 21.1M, False: 0]
  ------------------
  166|  21.1M|    value_ = rhs.value_->clone();  // deep copy
  167|  21.1M|}
_ZN5Exiv29ExifdatumD2Ev:
  169|  39.3M|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: 554k, False: 712k]
  ------------------
  173|   554k|    return os;
  174|       |
  175|   712k|  PrintFct fct = printValue;
  176|       |  // be careful with comments (User.Photo.UserComment, GPSAreaInfo etc).
  177|   712k|  if (auto ti = Internal::tagInfo(tag(), ifdId())) {
  ------------------
  |  Branch (177:12): [True: 712k, False: 0]
  ------------------
  178|   712k|    fct = ti->printFct_;
  179|   712k|    if (ti->typeId_ == comment) {
  ------------------
  |  Branch (179:9): [True: 1.41k, False: 711k]
  ------------------
  180|  1.41k|      os << value().toString();
  181|  1.41k|      fct = nullptr;
  182|  1.41k|    }
  183|   712k|  }
  184|   712k|  if (fct) {
  ------------------
  |  Branch (184:7): [True: 711k, False: 1.41k]
  ------------------
  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|   711k|    try {
  192|   711k|      fct(os, value(), pMetadata);
  193|   711k|    } catch (const std::out_of_range&) {
  194|    603|      os << "Bad value";
  195|       |#ifdef EXIV2_DEBUG_MESSAGES
  196|       |      std::cerr << "Caught std::out_of_range exception in Exifdatum::write().\n";
  197|       |#endif
  198|    603|    }
  199|   711k|  }
  200|   712k|  return os;
  201|   712k|}
_ZNK5Exiv29Exifdatum5valueEv:
  203|  2.09M|const Value& Exifdatum::value() const {
  204|  2.09M|  if (!value_)
  ------------------
  |  Branch (204:7): [True: 0, False: 2.09M]
  ------------------
  205|      0|    throw Error(ErrorCode::kerValueNotSet, key());
  206|  2.09M|  return *value_;
  207|  2.09M|}
_ZN5Exiv29ExifdatumaSERKS0_:
  209|  8.13k|Exifdatum& Exifdatum::operator=(const Exifdatum& rhs) {
  210|  8.13k|  if (this == &rhs)
  ------------------
  |  Branch (210:7): [True: 0, False: 8.13k]
  ------------------
  211|      0|    return *this;
  212|       |
  213|  8.13k|  key_.reset();
  214|  8.13k|  if (rhs.key_)
  ------------------
  |  Branch (214:7): [True: 8.13k, False: 0]
  ------------------
  215|  8.13k|    key_ = rhs.key_->clone();  // deep copy
  216|       |
  217|  8.13k|  value_.reset();
  218|  8.13k|  if (rhs.value_)
  ------------------
  |  Branch (218:7): [True: 8.13k, False: 0]
  ------------------
  219|  8.13k|    value_ = rhs.value_->clone();  // deep copy
  220|       |
  221|  8.13k|  return *this;
  222|  8.13k|}  // Exifdatum::operator=
_ZN5Exiv29ExifdatumaSERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  224|  30.0k|Exifdatum& Exifdatum::operator=(const std::string& value) {
  225|  30.0k|  setValue(value);
  226|  30.0k|  return *this;
  227|  30.0k|}
_ZN5Exiv29ExifdatumaSERKt:
  229|     10|Exifdatum& Exifdatum::operator=(const uint16_t& value) {
  230|     10|  return Exiv2::setValue(*this, value);
  231|     10|}
_ZN5Exiv29ExifdatumaSERKj:
  233|  30.2k|Exifdatum& Exifdatum::operator=(const uint32_t& value) {
  234|  30.2k|  return Exiv2::setValue(*this, value);
  235|  30.2k|}
_ZN5Exiv29ExifdatumaSERKNS_5ValueE:
  253|  4.65k|Exifdatum& Exifdatum::operator=(const Value& value) {
  254|  4.65k|  setValue(&value);
  255|  4.65k|  return *this;
  256|  4.65k|}
_ZN5Exiv29Exifdatum8setValueEPKNS_5ValueE:
  258|  4.65k|void Exifdatum::setValue(const Value* pValue) {
  259|  4.65k|  value_.reset();
  260|  4.65k|  if (pValue)
  ------------------
  |  Branch (260:7): [True: 4.65k, False: 0]
  ------------------
  261|  4.65k|    value_ = pValue->clone();
  262|  4.65k|}
_ZN5Exiv29Exifdatum8setValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  264|  30.0k|int Exifdatum::setValue(const std::string& value) {
  265|  30.0k|  if (!value_) {
  ------------------
  |  Branch (265:7): [True: 14.4k, False: 15.5k]
  ------------------
  266|  14.4k|    TypeId type = key_->defaultTypeId();
  267|  14.4k|    value_ = Value::create(type);
  268|  14.4k|  }
  269|  30.0k|  return value_->read(value);
  270|  30.0k|}
_ZNK5Exiv29Exifdatum11setDataAreaEPKhm:
  272|     10|int Exifdatum::setDataArea(const byte* buf, size_t len) const {
  273|     10|  return value_ ? value_->setDataArea(buf, len) : -1;
  ------------------
  |  Branch (273:10): [True: 10, False: 0]
  ------------------
  274|     10|}
_ZNK5Exiv29Exifdatum3keyEv:
  276|   154M|std::string Exifdatum::key() const {
  277|   154M|  return key_ ? key_->key() : "";
  ------------------
  |  Branch (277:10): [True: 154M, False: 0]
  ------------------
  278|   154M|}
_ZNK5Exiv29Exifdatum9groupNameEv:
  284|  3.45M|std::string Exifdatum::groupName() const {
  285|  3.45M|  return key_ ? key_->groupName() : "";
  ------------------
  |  Branch (285:10): [True: 3.45M, False: 0]
  ------------------
  286|  3.45M|}
_ZNK5Exiv29Exifdatum7tagNameEv:
  288|  16.8M|std::string Exifdatum::tagName() const {
  289|  16.8M|  return key_ ? key_->tagName() : "";
  ------------------
  |  Branch (289:10): [True: 16.8M, False: 0]
  ------------------
  290|  16.8M|}
_ZNK5Exiv29Exifdatum3tagEv:
  300|  9.14M|uint16_t Exifdatum::tag() const {
  301|  9.14M|  return key_ ? key_->tag() : 0xffff;
  ------------------
  |  Branch (301:10): [True: 9.14M, False: 0]
  ------------------
  302|  9.14M|}
_ZNK5Exiv29Exifdatum5ifdIdEv:
  304|  19.8M|IfdId Exifdatum::ifdId() const {
  305|  19.8M|  return key_ ? key_->ifdId() : IfdId::ifdIdNotSet;
  ------------------
  |  Branch (305:10): [True: 19.8M, False: 0]
  ------------------
  306|  19.8M|}
_ZNK5Exiv29Exifdatum3idxEv:
  312|  2.86M|int Exifdatum::idx() const {
  313|  2.86M|  return key_ ? key_->idx() : 0;
  ------------------
  |  Branch (313:10): [True: 2.86M, False: 0]
  ------------------
  314|  2.86M|}
_ZNK5Exiv29Exifdatum4copyEPhNS_9ByteOrderE:
  316|     44|size_t Exifdatum::copy(byte* buf, ByteOrder byteOrder) const {
  317|     44|  return value_ ? value_->copy(buf, byteOrder) : 0;
  ------------------
  |  Branch (317:10): [True: 44, False: 0]
  ------------------
  318|     44|}
_ZNK5Exiv29Exifdatum6typeIdEv:
  320|  18.0k|TypeId Exifdatum::typeId() const {
  321|  18.0k|  return value_ ? value_->typeId() : invalidTypeId;
  ------------------
  |  Branch (321:10): [True: 18.0k, False: 0]
  ------------------
  322|  18.0k|}
_ZNK5Exiv29Exifdatum8typeSizeEv:
  328|     44|size_t Exifdatum::typeSize() const {
  329|     44|  return TypeInfo::typeSize(typeId());
  330|     44|}
_ZNK5Exiv29Exifdatum5countEv:
  332|  34.2k|size_t Exifdatum::count() const {
  333|  34.2k|  return value_ ? value_->count() : 0;
  ------------------
  |  Branch (333:10): [True: 34.2k, False: 0]
  ------------------
  334|  34.2k|}
_ZNK5Exiv29Exifdatum4sizeEv:
  336|  5.19M|size_t Exifdatum::size() const {
  337|  5.19M|  return value_ ? value_->size() : 0;
  ------------------
  |  Branch (337:10): [True: 5.19M, False: 0]
  ------------------
  338|  5.19M|}
_ZNK5Exiv29Exifdatum8toStringEv:
  340|  22.0k|std::string Exifdatum::toString() const {
  341|  22.0k|  return value_ ? value_->toString() : "";
  ------------------
  |  Branch (341:10): [True: 22.0k, False: 0]
  ------------------
  342|  22.0k|}
_ZNK5Exiv29Exifdatum8toStringEm:
  344|  5.54k|std::string Exifdatum::toString(size_t n) const {
  345|  5.54k|  return value_ ? value_->toString(n) : "";
  ------------------
  |  Branch (345:10): [True: 5.54k, False: 0]
  ------------------
  346|  5.54k|}
_ZNK5Exiv29Exifdatum7toInt64Em:
  348|  35.9k|int64_t Exifdatum::toInt64(size_t n) const {
  349|  35.9k|  return value_ ? value_->toInt64(n) : -1;
  ------------------
  |  Branch (349:10): [True: 35.9k, False: 0]
  ------------------
  350|  35.9k|}
_ZNK5Exiv29Exifdatum7toFloatEm:
  352|    398|float Exifdatum::toFloat(size_t n) const {
  353|    398|  return value_ ? value_->toFloat(n) : -1;
  ------------------
  |  Branch (353:10): [True: 398, False: 0]
  ------------------
  354|    398|}
_ZNK5Exiv29Exifdatum8getValueEv:
  360|  2.73M|Value::UniquePtr Exifdatum::getValue() const {
  361|  2.73M|  return value_ ? value_->clone() : nullptr;
  ------------------
  |  Branch (361:10): [True: 2.73M, False: 0]
  ------------------
  362|  2.73M|}
_ZNK5Exiv29Exifdatum12sizeDataAreaEv:
  364|     37|size_t Exifdatum::sizeDataArea() const {
  365|     37|  return value_ ? value_->sizeDataArea() : 0;
  ------------------
  |  Branch (365:10): [True: 37, False: 0]
  ------------------
  366|     37|}
_ZNK5Exiv29Exifdatum8dataAreaEv:
  368|     20|DataBuf Exifdatum::dataArea() const {
  369|     20|  return value_ ? value_->dataArea() : DataBuf(nullptr, 0);
  ------------------
  |  Branch (369:10): [True: 20, False: 0]
  ------------------
  370|     20|}
_ZN5Exiv210ExifThumbCC2ERKNS_8ExifDataE:
  372|     10|ExifThumbC::ExifThumbC(const ExifData& exifData) : exifData_(exifData) {
  373|     10|}
_ZN5Exiv29ExifThumbC2ERNS_8ExifDataE:
  411|     10|ExifThumb::ExifThumb(ExifData& exifData) : ExifThumbC(exifData), exifData_(exifData) {
  412|     10|}
_ZN5Exiv29ExifThumb16setJpegThumbnailEPKhm:
  435|     10|void ExifThumb::setJpegThumbnail(const byte* buf, size_t size) {
  436|     10|  exifData_["Exif.Thumbnail.Compression"] = std::uint16_t{6};
  437|     10|  Exifdatum& format = exifData_["Exif.Thumbnail.JPEGInterchangeFormat"];
  438|     10|  format = 0U;
  439|     10|  format.setDataArea(buf, size);
  440|     10|  exifData_["Exif.Thumbnail.JPEGInterchangeFormatLength"] = static_cast<uint32_t>(size);
  441|     10|}
_ZN5Exiv28ExifDataixERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  447|  70.0k|Exifdatum& ExifData::operator[](const std::string& key) {
  448|  70.0k|  ExifKey exifKey(key);
  449|  70.0k|  auto pos = findKey(exifKey);
  450|  70.0k|  if (pos == end()) {
  ------------------
  |  Branch (450:7): [True: 29.6k, False: 40.3k]
  ------------------
  451|  29.6k|    return exifMetadata_.emplace_back(exifKey);
  452|  29.6k|  }
  453|  40.3k|  return *pos;
  454|  70.0k|}
_ZN5Exiv28ExifData3addERKNS_7ExifKeyEPKNS_5ValueE:
  456|  18.1M|void ExifData::add(const ExifKey& key, const Value* pValue) {
  457|  18.1M|  add(Exifdatum(key, pValue));
  458|  18.1M|}
_ZN5Exiv28ExifData3addERKNS_9ExifdatumE:
  460|  18.2M|void ExifData::add(const Exifdatum& exifdatum) {
  461|       |  // allow duplicates
  462|  18.2M|  exifMetadata_.push_back(exifdatum);
  463|  18.2M|}
_ZNK5Exiv28ExifData7findKeyERKNS_7ExifKeyE:
  465|   153k|ExifData::const_iterator ExifData::findKey(const ExifKey& key) const {
  466|   153k|  return std::find_if(exifMetadata_.begin(), exifMetadata_.end(), FindExifdatumByKey(key.key()));
  467|   153k|}
_ZN5Exiv28ExifData7findKeyERKNS_7ExifKeyE:
  469|   378k|ExifData::iterator ExifData::findKey(const ExifKey& key) {
  470|   378k|  return std::find_if(exifMetadata_.begin(), exifMetadata_.end(), FindExifdatumByKey(key.key()));
  471|   378k|}
_ZN5Exiv28ExifData5clearEv:
  473|  32.0k|void ExifData::clear() {
  474|  32.0k|  exifMetadata_.clear();
  475|  32.0k|}
_ZN5Exiv28ExifData5eraseENSt3__115__list_iteratorINS_9ExifdatumEPvEES5_:
  485|  58.4k|ExifData::iterator ExifData::erase(ExifData::iterator beg, ExifData::iterator end) {
  486|  58.4k|  return exifMetadata_.erase(beg, end);
  487|  58.4k|}
_ZN5Exiv28ExifData5eraseENSt3__115__list_iteratorINS_9ExifdatumEPvEE:
  489|  14.0k|ExifData::iterator ExifData::erase(ExifData::iterator pos) {
  490|  14.0k|  return exifMetadata_.erase(pos);
  491|  14.0k|}
_ZN5Exiv210ExifParser6decodeERNS_8ExifDataEPKhm:
  493|    744|ByteOrder ExifParser::decode(ExifData& exifData, const byte* pData, size_t size) {
  494|    744|  IptcData iptcData;
  495|    744|  XmpData xmpData;
  496|    744|  ByteOrder bo = TiffParser::decode(exifData, iptcData, xmpData, pData, size);
  497|    744|#ifndef SUPPRESS_WARNINGS
  498|    744|  if (!iptcData.empty()) {
  ------------------
  |  Branch (498:7): [True: 6, False: 738]
  ------------------
  499|      6|    EXV_WARNING << "Ignoring IPTC information encoded in the Exif data.\n";
  ------------------
  |  |  138|      6|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 6]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      6|  LogMsg(LogMsg::warn).os()
  ------------------
  500|      6|  }
  501|    744|  if (!xmpData.empty()) {
  ------------------
  |  Branch (501:7): [True: 0, False: 744]
  ------------------
  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|    744|#endif
  505|    744|  return bo;
  506|    744|}
_ZN5Exiv210ExifParser6encodeERNSt3__16vectorIhNS1_9allocatorIhEEEEPKhmNS_9ByteOrderERNS_8ExifDataE:
  512|  4.12k|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|  4.12k|  static constexpr auto filteredIfd0Tags = std::array{
  516|  4.12k|      "Exif.Image.PhotometricInterpretation",
  517|  4.12k|      "Exif.Image.StripOffsets",
  518|  4.12k|      "Exif.Image.RowsPerStrip",
  519|  4.12k|      "Exif.Image.StripByteCounts",
  520|  4.12k|      "Exif.Image.JPEGInterchangeFormat",
  521|  4.12k|      "Exif.Image.JPEGInterchangeFormatLength",
  522|  4.12k|      "Exif.Image.SubIFDs",
  523|       |      // Issue 981.  Never allow manufactured data to be written
  524|  4.12k|      "Exif.Canon.AFInfoSize",
  525|  4.12k|      "Exif.Canon.AFAreaMode",
  526|  4.12k|      "Exif.Canon.AFNumPoints",
  527|  4.12k|      "Exif.Canon.AFValidPoints",
  528|  4.12k|      "Exif.Canon.AFCanonImageWidth",
  529|  4.12k|      "Exif.Canon.AFCanonImageHeight",
  530|  4.12k|      "Exif.Canon.AFImageWidth",
  531|  4.12k|      "Exif.Canon.AFImageHeight",
  532|  4.12k|      "Exif.Canon.AFAreaWidths",
  533|  4.12k|      "Exif.Canon.AFAreaHeights",
  534|  4.12k|      "Exif.Canon.AFXPositions",
  535|  4.12k|      "Exif.Canon.AFYPositions",
  536|  4.12k|      "Exif.Canon.AFPointsInFocus",
  537|  4.12k|      "Exif.Canon.AFPointsSelected",
  538|  4.12k|      "Exif.Canon.AFPointsUnusable",
  539|  4.12k|      "Exif.Canon.AFFineRotation",
  540|  4.12k|  };
  541|  94.8k|  for (auto&& filteredIfd0Tag : filteredIfd0Tags) {
  ------------------
  |  Branch (541:31): [True: 94.8k, False: 4.12k]
  ------------------
  542|  94.8k|    auto pos = exifData.findKey(ExifKey(filteredIfd0Tag));
  543|  94.8k|    if (pos != exifData.end()) {
  ------------------
  |  Branch (543:9): [True: 1.15k, False: 93.7k]
  ------------------
  544|       |#ifdef EXIV2_DEBUG_MESSAGES
  545|       |      std::cerr << "Warning: Exif tag " << pos->key() << " not encoded\n";
  546|       |#endif
  547|  1.15k|      exifData.erase(pos);
  548|  1.15k|    }
  549|  94.8k|  }
  550|       |
  551|       |  // Delete IFDs which do not occur in JPEGs
  552|  4.12k|  static constexpr auto filteredIfds = std::array{
  553|  4.12k|      IfdId::subImage1Id, IfdId::subImage2Id, IfdId::subImage3Id, IfdId::subImage4Id, IfdId::subImage5Id,
  554|  4.12k|      IfdId::subImage6Id, IfdId::subImage7Id, IfdId::subImage8Id, IfdId::subImage9Id, IfdId::subThumb1Id,
  555|  4.12k|      IfdId::panaRawId,   IfdId::ifd2Id,      IfdId::ifd3Id,
  556|  4.12k|  };
  557|  53.6k|  for (auto&& filteredIfd : filteredIfds) {
  ------------------
  |  Branch (557:27): [True: 53.6k, False: 4.12k]
  ------------------
  558|       |#ifdef EXIV2_DEBUG_MESSAGES
  559|       |    std::cerr << "Warning: Exif IFD " << filteredIfd << " not encoded\n";
  560|       |#endif
  561|  53.6k|    eraseIfd(exifData, filteredIfd);
  562|  53.6k|  }
  563|       |
  564|       |  // IPTC and XMP are stored elsewhere, not in the Exif APP1 segment.
  565|  4.12k|  IptcData emptyIptc;
  566|  4.12k|  XmpData emptyXmp;
  567|       |
  568|       |  // Encode and check if the result fits into a JPEG Exif APP1 segment
  569|  4.12k|  MemIo mio1;
  570|  4.12k|  TiffHeader header(byteOrder, 0x00000008, false);
  571|  4.12k|  WriteMethod wm = TiffParserWorker::encode(mio1, pData, size, exifData, emptyIptc, emptyXmp, Tag::root,
  572|  4.12k|                                            TiffMapping::findEncoder, &header, nullptr);
  573|  4.12k|  if (mio1.size() <= 65527) {
  ------------------
  |  Branch (573:7): [True: 1.73k, False: 2.38k]
  ------------------
  574|  1.73k|    append(blob, mio1.mmap(), mio1.size());
  575|  1.73k|    return wm;
  576|  1.73k|  }
  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.38k|  static constexpr auto filteredPvTags = std::array{
  584|  2.38k|      std::pair(pttLen, "Exif.Minolta.ThumbnailLength"),
  585|  2.38k|      std::pair(pttTag, "Exif.Minolta.ThumbnailOffset"),
  586|  2.38k|      std::pair(pttLen, "Exif.Minolta.Thumbnail"),
  587|  2.38k|      std::pair(pttLen, "Exif.NikonPreview.JPEGInterchangeFormatLength"),
  588|  2.38k|      std::pair(pttIfd, "NikonPreview"),
  589|  2.38k|      std::pair(pttLen, "Exif.Olympus.ThumbnailLength"),
  590|  2.38k|      std::pair(pttTag, "Exif.Olympus.ThumbnailOffset"),
  591|  2.38k|      std::pair(pttLen, "Exif.Olympus.ThumbnailImage"),
  592|  2.38k|      std::pair(pttLen, "Exif.Olympus.Thumbnail"),
  593|  2.38k|      std::pair(pttLen, "Exif.Olympus2.ThumbnailLength"),
  594|  2.38k|      std::pair(pttTag, "Exif.Olympus2.ThumbnailOffset"),
  595|  2.38k|      std::pair(pttLen, "Exif.Olympus2.ThumbnailImage"),
  596|  2.38k|      std::pair(pttLen, "Exif.Olympus2.Thumbnail"),
  597|  2.38k|      std::pair(pttLen, "Exif.OlympusCs.PreviewImageLength"),
  598|  2.38k|      std::pair(pttTag, "Exif.OlympusCs.PreviewImageStart"),
  599|  2.38k|      std::pair(pttTag, "Exif.OlympusCs.PreviewImageValid"),
  600|  2.38k|      std::pair(pttLen, "Exif.Pentax.PreviewLength"),
  601|  2.38k|      std::pair(pttTag, "Exif.Pentax.PreviewOffset"),
  602|  2.38k|      std::pair(pttTag, "Exif.Pentax.PreviewResolution"),
  603|  2.38k|      std::pair(pttLen, "Exif.PentaxDng.PreviewLength"),
  604|  2.38k|      std::pair(pttTag, "Exif.PentaxDng.PreviewOffset"),
  605|  2.38k|      std::pair(pttTag, "Exif.PentaxDng.PreviewResolution"),
  606|  2.38k|      std::pair(pttLen, "Exif.SamsungPreview.JPEGInterchangeFormatLength"),
  607|  2.38k|      std::pair(pttIfd, "SamsungPreview"),
  608|  2.38k|      std::pair(pttLen, "Exif.Thumbnail.StripByteCounts"),
  609|  2.38k|      std::pair(pttIfd, "Thumbnail"),
  610|  2.38k|      std::pair(pttLen, "Exif.Thumbnail.JPEGInterchangeFormatLength"),
  611|  2.38k|      std::pair(pttIfd, "Thumbnail"),
  612|  2.38k|  };
  613|  2.38k|  bool delTags = false;
  614|  64.8k|  for (auto&& [ptt, key] : filteredPvTags) {
  ------------------
  |  Branch (614:26): [True: 64.8k, False: 2.38k]
  ------------------
  615|  64.8k|    switch (ptt) {
  ------------------
  |  Branch (615:13): [True: 64.8k, False: 0]
  ------------------
  616|  34.7k|      case pttLen: {
  ------------------
  |  Branch (616:7): [True: 34.7k, False: 30.1k]
  ------------------
  617|  34.7k|        delTags = false;
  618|  34.7k|        if (auto pos = exifData.findKey(ExifKey(key)); pos != exifData.end() && sumToLong(*pos) > 32768) {
  ------------------
  |  Branch (618:56): [True: 1.93k, False: 32.8k]
  |  Branch (618:56): [True: 15, False: 34.7k]
  |  Branch (618:81): [True: 15, False: 1.91k]
  ------------------
  619|     15|          delTags = true;
  620|     15|#ifndef SUPPRESS_WARNINGS
  621|     15|          EXV_WARNING << "Exif tag " << pos->key() << " not encoded\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()
  ------------------
  622|     15|#endif
  623|     15|          exifData.erase(pos);
  624|     15|        }
  625|  34.7k|        break;
  626|      0|      }
  627|  20.8k|      case pttTag: {
  ------------------
  |  Branch (627:7): [True: 20.8k, False: 44.0k]
  ------------------
  628|  20.8k|        if (delTags) {
  ------------------
  |  Branch (628:13): [True: 24, False: 20.8k]
  ------------------
  629|     24|          if (auto pos = exifData.findKey(ExifKey(key)); pos != exifData.end()) {
  ------------------
  |  Branch (629:58): [True: 10, False: 14]
  ------------------
  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|     24|        }
  636|  20.8k|        break;
  637|      0|      }
  638|  9.26k|      case pttIfd:
  ------------------
  |  Branch (638:7): [True: 9.26k, False: 55.6k]
  ------------------
  639|  9.26k|        if (delTags) {
  ------------------
  |  Branch (639:13): [True: 2, False: 9.26k]
  ------------------
  640|      2|#ifndef SUPPRESS_WARNINGS
  641|      2|          EXV_WARNING << "Exif IFD " << key << " not encoded\n";
  ------------------
  |  |  138|      2|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 2]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      2|  LogMsg(LogMsg::warn).os()
  ------------------
  642|      2|#endif
  643|      2|          eraseIfd(exifData, Internal::groupId(key));
  644|      2|        }
  645|  9.26k|        break;
  646|  64.8k|    }
  647|  64.8k|  }
  648|       |
  649|       |  // Delete unknown tags larger than 4kB and known tags larger than 20kB.
  650|  2.38k|  auto f = [](const auto& tag) { return (tag.size() > 4096 && tag.tagName().starts_with("0x")) || tag.size() > 20480; };
  651|  2.38k|  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.38k|  MemIo mio2;
  655|  2.38k|  wm = TiffParserWorker::encode(mio2, pData, size, exifData, emptyIptc, emptyXmp, Tag::root, TiffMapping::findEncoder,
  656|  2.38k|                                &header, nullptr);
  657|  2.38k|  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.38k|  return wm;
  666|       |
  667|  2.38k|}  // ExifParser::encode
exif.cpp:_ZNK12_GLOBAL__N_118FindExifdatumByKeyclERKN5Exiv29ExifdatumE:
   45|   154M|  bool operator()(const Exiv2::Exifdatum& exifdatum) const {
   46|   154M|    return key_ == exifdatum.key();
   47|   154M|  }
exif.cpp:_ZN12_GLOBAL__N_118FindExifdatumByKeyC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   39|   532k|  explicit FindExifdatumByKey(std::string key) : key_(std::move(key)) {
   40|   532k|  }
exif.cpp:_ZZN5Exiv210ExifParser6encodeERNSt3__16vectorIhNS1_9allocatorIhEEEEPKhmNS_9ByteOrderERNS_8ExifDataEENK3$_0clINS_9ExifdatumEEEDaRKT_:
  650|  1.21M|  auto f = [](const auto& tag) { return (tag.size() > 4096 && tag.tagName().starts_with("0x")) || tag.size() > 20480; };
  ------------------
  |  Branch (650:42): [True: 226, False: 1.21M]
  |  Branch (650:63): [True: 117, False: 109]
  |  Branch (650:99): [True: 17, False: 1.21M]
  ------------------
exif.cpp:_ZN12_GLOBAL__N_19sumToLongERKN5Exiv29ExifdatumE:
  734|  1.93k|int64_t sumToLong(const Exiv2::Exifdatum& md) {
  735|  1.93k|  int64_t sum = 0;
  736|  14.6k|  for (size_t i = 0; i < md.count(); ++i) {
  ------------------
  |  Branch (736:22): [True: 12.7k, False: 1.93k]
  ------------------
  737|  12.7k|    sum = Safe::add(sum, md.toInt64(i));
  738|  12.7k|  }
  739|  1.93k|  return sum;
  740|  1.93k|}
exif.cpp:_ZN12_GLOBAL__N_18eraseIfdERN5Exiv28ExifDataENS0_5IfdIdE:
  742|  53.6k|void eraseIfd(Exiv2::ExifData& ed, Exiv2::IfdId ifdId) {
  743|  53.6k|  ed.erase(std::remove_if(ed.begin(), ed.end(), Exiv2::FindExifdatum(ifdId)), ed.end());
  744|  53.6k|}
_ZN5Exiv28setValueItEERNS_9ExifdatumES2_RKT_:
  150|     10|Exiv2::Exifdatum& setValue(Exiv2::Exifdatum& exifDatum, const T& value) {
  151|     10|  auto v = std::make_unique<Exiv2::ValueType<T>>();
  152|     10|  v->value_.push_back(value);
  153|     10|  exifDatum.value_ = std::move(v);
  154|     10|  return exifDatum;
  155|     10|}
_ZN5Exiv28setValueIjEERNS_9ExifdatumES2_RKT_:
  150|  30.2k|Exiv2::Exifdatum& setValue(Exiv2::Exifdatum& exifDatum, const T& value) {
  151|  30.2k|  auto v = std::make_unique<Exiv2::ValueType<T>>();
  152|  30.2k|  v->value_.push_back(value);
  153|  30.2k|  exifDatum.value_ = std::move(v);
  154|  30.2k|  return exifDatum;
  155|  30.2k|}

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

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

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

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

_ZN5Exiv25ImageC2ENS_9ImageTypeEtNSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEE:
  140|  33.5k|    io_(std::move(io)), imageType_(type), supportedMetadata_(supportedMetadata) {
  141|  33.5k|}
_ZN5Exiv25ImageD2Ev:
  143|  33.5k|Image::~Image() = default;
_ZN5Exiv25Image14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  145|  2.42k|void Image::printStructure(std::ostream&, PrintStructureOption, size_t /*depth*/) {
  146|  2.42k|  throw Error(ErrorCode::kerUnsupportedImageType, io_->path());
  147|  2.42k|}
_ZN5Exiv25Image12isStringTypeEt:
  149|  25.2k|bool Image::isStringType(uint16_t type) {
  150|  25.2k|  return type == Exiv2::asciiString || type == Exiv2::unsignedByte || type == Exiv2::signedByte ||
  ------------------
  |  Branch (150:10): [True: 934, False: 24.3k]
  |  Branch (150:40): [True: 216, False: 24.1k]
  |  Branch (150:71): [True: 2.01k, False: 22.0k]
  ------------------
  151|  22.0k|         type == Exiv2::undefined;
  ------------------
  |  Branch (151:10): [True: 3.21k, False: 18.8k]
  ------------------
  152|  25.2k|}
_ZN5Exiv25Image11isShortTypeEt:
  153|  13.5k|bool Image::isShortType(uint16_t type) {
  154|  13.5k|  return type == Exiv2::unsignedShort || type == Exiv2::signedShort;
  ------------------
  |  Branch (154:10): [True: 1.09k, False: 12.4k]
  |  Branch (154:42): [True: 1.97k, False: 10.4k]
  ------------------
  155|  13.5k|}
_ZN5Exiv25Image10isLongTypeEt:
  156|  10.4k|bool Image::isLongType(uint16_t type) {
  157|  10.4k|  return type == Exiv2::unsignedLong || type == Exiv2::signedLong;
  ------------------
  |  Branch (157:10): [True: 4.05k, False: 6.38k]
  |  Branch (157:41): [True: 869, False: 5.51k]
  ------------------
  158|  10.4k|}
_ZN5Exiv25Image14isLongLongTypeEt:
  159|     61|bool Image::isLongLongType(uint16_t type) {
  160|     61|  return type == Exiv2::unsignedLongLong || type == Exiv2::signedLongLong;
  ------------------
  |  Branch (160:10): [True: 0, False: 61]
  |  Branch (160:45): [True: 0, False: 61]
  ------------------
  161|     61|}
_ZN5Exiv25Image14isRationalTypeEt:
  162|  4.67k|bool Image::isRationalType(uint16_t type) {
  163|  4.67k|  return type == Exiv2::unsignedRational || type == Exiv2::signedRational;
  ------------------
  |  Branch (163:10): [True: 1.51k, False: 3.15k]
  |  Branch (163:45): [True: 640, False: 2.51k]
  ------------------
  164|  4.67k|}
_ZN5Exiv25Image11is2ByteTypeEt:
  165|  5.99k|bool Image::is2ByteType(uint16_t type) {
  166|  5.99k|  return isShortType(type);
  167|  5.99k|}
_ZN5Exiv25Image11is4ByteTypeEt:
  168|  4.45k|bool Image::is4ByteType(uint16_t type) {
  169|  4.45k|  return isLongType(type) || type == Exiv2::tiffFloat || type == Exiv2::tiffIfd;
  ------------------
  |  Branch (169:10): [True: 2.46k, False: 1.98k]
  |  Branch (169:30): [True: 96, False: 1.89k]
  |  Branch (169:58): [True: 746, False: 1.14k]
  ------------------
  170|  4.45k|}
_ZN5Exiv25Image11is8ByteTypeEt:
  171|  1.14k|bool Image::is8ByteType(uint16_t type) {
  172|  1.14k|  return isRationalType(type) || isLongLongType(type) || type == Exiv2::tiffIfd8 || type == Exiv2::tiffDouble;
  ------------------
  |  Branch (172:10): [True: 1.08k, False: 61]
  |  Branch (172:34): [True: 0, False: 61]
  |  Branch (172:58): [True: 0, False: 61]
  |  Branch (172:85): [True: 61, False: 0]
  ------------------
  173|  1.14k|}
_ZN5Exiv25Image10isPrintXMPEtNS_20PrintStructureOptionE:
  174|  15.1k|bool Image::isPrintXMP(uint16_t type, Exiv2::PrintStructureOption option) {
  175|  15.1k|  return type == 700 && option == kpsXMP;
  ------------------
  |  Branch (175:10): [True: 0, False: 15.1k]
  |  Branch (175:25): [True: 0, False: 0]
  ------------------
  176|  15.1k|}
_ZN5Exiv25Image10isPrintICCEtNS_20PrintStructureOptionE:
  177|  15.1k|bool Image::isPrintICC(uint16_t type, Exiv2::PrintStructureOption option) {
  178|  15.1k|  return type == 0x8773 && option == kpsIccProfile;
  ------------------
  |  Branch (178:10): [True: 1, False: 15.1k]
  |  Branch (178:28): [True: 0, False: 1]
  ------------------
  179|  15.1k|}
_ZN5Exiv25Image19isBigEndianPlatformEv:
  181|  3.24k|bool Image::isBigEndianPlatform() {
  182|  3.24k|  return std::endian::native == std::endian::big;
  183|  3.24k|}
_ZN5Exiv25Image22isLittleEndianPlatformEv:
  184|  16.1k|bool Image::isLittleEndianPlatform() {
  185|  16.1k|  return std::endian::native == std::endian::little;
  186|  16.1k|}
_ZN5Exiv25Image8byteSwapEjb:
  205|  46.6k|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|  46.6k|  uint32_t result = 0;
  212|  46.6k|  result |= (value & 0x000000FFU) << 24;
  213|  46.6k|  result |= (value & 0x0000FF00U) << 8;
  214|  46.6k|  result |= (value & 0x00FF0000U) >> 8;
  215|  46.6k|  result |= (value & 0xFF000000U) >> 24;
  216|  46.6k|  return bSwap ? result : value;
  ------------------
  |  Branch (216:10): [True: 32.4k, False: 14.2k]
  ------------------
  217|  46.6k|#endif
  218|  46.6k|}
_ZN5Exiv25Image8byteSwapEtb:
  220|  37.2k|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|  37.2k|  uint16_t result = 0;
  227|  37.2k|  result |= (value & 0x00FFU) << 8;
  228|  37.2k|  result |= (value & 0xFF00U) >> 8;
  229|  37.2k|  return bSwap ? result : value;
  ------------------
  |  Branch (229:10): [True: 26.8k, False: 10.4k]
  ------------------
  230|  37.2k|#endif
  231|  37.2k|}
_ZN5Exiv25Image9byteSwap2ERKNS_7DataBufEmb:
  233|  37.2k|uint16_t Image::byteSwap2(const DataBuf& buf, size_t offset, bool bSwap) {
  234|  37.2k|  uint16_t v = 0;
  235|  37.2k|  auto p = reinterpret_cast<char*>(&v);
  236|  37.2k|  p[0] = buf.read_uint8(offset);
  237|  37.2k|  p[1] = buf.read_uint8(offset + 1);
  238|  37.2k|  return Image::byteSwap(v, bSwap);
  239|  37.2k|}
_ZN5Exiv25Image9byteSwap4ERKNS_7DataBufEmb:
  241|  46.2k|uint32_t Image::byteSwap4(const DataBuf& buf, size_t offset, bool bSwap) {
  242|  46.2k|  uint32_t v = 0;
  243|  46.2k|  auto p = reinterpret_cast<char*>(&v);
  244|  46.2k|  p[0] = buf.read_uint8(offset);
  245|  46.2k|  p[1] = buf.read_uint8(offset + 1);
  246|  46.2k|  p[2] = buf.read_uint8(offset + 2);
  247|  46.2k|  p[3] = buf.read_uint8(offset + 3);
  248|  46.2k|  return Image::byteSwap(v, bSwap);
  249|  46.2k|}
_ZN5Exiv25Image8typeNameEt:
  262|  7.52k|const char* Image::typeName(uint16_t tag) {
  263|       |  //! List of TIFF image tags
  264|  7.52k|  const char* result = nullptr;
  265|  7.52k|  switch (tag) {
  266|     51|    case Exiv2::unsignedByte:
  ------------------
  |  Branch (266:5): [True: 51, False: 7.47k]
  ------------------
  267|     51|      result = "BYTE";
  268|     51|      break;
  269|    208|    case Exiv2::asciiString:
  ------------------
  |  Branch (269:5): [True: 208, False: 7.31k]
  ------------------
  270|    208|      result = "ASCII";
  271|    208|      break;
  272|    547|    case Exiv2::unsignedShort:
  ------------------
  |  Branch (272:5): [True: 547, False: 6.97k]
  ------------------
  273|    547|      result = "SHORT";
  274|    547|      break;
  275|  2.02k|    case Exiv2::unsignedLong:
  ------------------
  |  Branch (275:5): [True: 2.02k, False: 5.49k]
  ------------------
  276|  2.02k|      result = "LONG";
  277|  2.02k|      break;
  278|    756|    case Exiv2::unsignedRational:
  ------------------
  |  Branch (278:5): [True: 756, False: 6.76k]
  ------------------
  279|    756|      result = "RATIONAL";
  280|    756|      break;
  281|    502|    case Exiv2::signedByte:
  ------------------
  |  Branch (281:5): [True: 502, False: 7.02k]
  ------------------
  282|    502|      result = "SBYTE";
  283|    502|      break;
  284|    801|    case Exiv2::undefined:
  ------------------
  |  Branch (284:5): [True: 801, False: 6.72k]
  ------------------
  285|    801|      result = "UNDEFINED";
  286|    801|      break;
  287|    986|    case Exiv2::signedShort:
  ------------------
  |  Branch (287:5): [True: 986, False: 6.53k]
  ------------------
  288|    986|      result = "SSHORT";
  289|    986|      break;
  290|    432|    case Exiv2::signedLong:
  ------------------
  |  Branch (290:5): [True: 432, False: 7.09k]
  ------------------
  291|    432|      result = "SLONG";
  292|    432|      break;
  293|    319|    case Exiv2::signedRational:
  ------------------
  |  Branch (293:5): [True: 319, False: 7.20k]
  ------------------
  294|    319|      result = "SRATIONAL";
  295|    319|      break;
  296|     95|    case Exiv2::tiffFloat:
  ------------------
  |  Branch (296:5): [True: 95, False: 7.43k]
  ------------------
  297|     95|      result = "FLOAT";
  298|     95|      break;
  299|     58|    case Exiv2::tiffDouble:
  ------------------
  |  Branch (299:5): [True: 58, False: 7.46k]
  ------------------
  300|     58|      result = "DOUBLE";
  301|     58|      break;
  302|    742|    case Exiv2::tiffIfd:
  ------------------
  |  Branch (302:5): [True: 742, False: 6.78k]
  ------------------
  303|    742|      result = "IFD";
  304|    742|      break;
  305|      0|    default:
  ------------------
  |  Branch (305:5): [True: 0, False: 7.52k]
  ------------------
  306|      0|      result = "unknown";
  307|      0|      break;
  308|  7.52k|  }
  309|  7.52k|  return result;
  310|  7.52k|}
_ZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcm:
  319|  19.2k|                              bool bSwap, char c, size_t depth) {
  320|  19.2k|  if (depth == 1)
  ------------------
  |  Branch (320:7): [True: 2.83k, False: 16.4k]
  ------------------
  321|  2.83k|    visits.clear();
  322|  19.2k|  bool bFirst = true;
  323|       |
  324|       |  // buffer
  325|  19.2k|  const size_t dirSize = 32;
  326|  19.2k|  DataBuf dir(dirSize);
  327|  19.2k|  const bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (327:23): [True: 16.4k, False: 2.85k]
  |  Branch (327:45): [True: 2.85k, False: 2]
  ------------------
  328|       |
  329|  19.2k|  do {
  330|       |    // Read top of directory
  331|  19.2k|    io.seekOrThrow(start, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  332|  19.2k|    io.readOrThrow(dir.data(), 2, ErrorCode::kerCorruptedMetadata);
  333|  19.2k|    const uint16_t dirLength = byteSwap2(dir, 0, bSwap);
  334|       |    // Prevent infinite loops. (GHSA-m479-7frc-gqqg)
  335|  19.2k|    Internal::enforce(dirLength > 0, ErrorCode::kerCorruptedMetadata);
  336|       |
  337|  19.2k|    if (dirLength > 500)  // tooBig
  ------------------
  |  Branch (337:9): [True: 14, False: 19.2k]
  ------------------
  338|     14|      throw Error(ErrorCode::kerTiffDirectoryTooLarge);
  339|       |
  340|  19.2k|    if (bFirst && bPrint) {
  ------------------
  |  Branch (340:9): [True: 19.1k, False: 179]
  |  Branch (340:19): [True: 19.0k, False: 2]
  ------------------
  341|  19.0k|      out << Internal::indent(depth) << stringFormat("STRUCTURE OF TIFF FILE ({}{}): {}\n", c, c, io.path());
  ------------------
  |  |   18|  19.0k|#define stringFormat std::format
  ------------------
  342|  19.0k|    }
  343|       |
  344|       |    // Read the dictionary
  345|  26.8k|    for (int i = 0; i < dirLength; i++) {
  ------------------
  |  Branch (345:21): [True: 23.8k, False: 3.00k]
  ------------------
  346|  23.8k|      if (visits.contains(io.tell())) {  // #547
  ------------------
  |  Branch (346:11): [True: 15.9k, False: 7.88k]
  ------------------
  347|  15.9k|        throw Error(ErrorCode::kerCorruptedMetadata);
  348|  15.9k|      }
  349|  7.88k|      visits.insert(io.tell());
  350|       |
  351|  7.88k|      if (bFirst && bPrint) {
  ------------------
  |  Branch (351:11): [True: 3.14k, False: 4.73k]
  |  Branch (351:21): [True: 3.14k, False: 0]
  ------------------
  352|  3.14k|        out << Internal::indent(depth) << " address |    tag                              |     "
  353|  3.14k|            << " type |    count |    offset | value\n";
  354|  3.14k|      }
  355|  7.88k|      bFirst = false;
  356|       |
  357|  7.88k|      io.readOrThrow(dir.data(), 12, ErrorCode::kerCorruptedMetadata);
  358|  7.88k|      const uint16_t tag = byteSwap2(dir, 0, bSwap);
  359|  7.88k|      const uint16_t type = byteSwap2(dir, 2, bSwap);
  360|  7.88k|      const uint32_t count = byteSwap4(dir, 4, bSwap);
  361|  7.88k|      const uint32_t offset = byteSwap4(dir, 8, bSwap);
  362|       |
  363|       |      // Break for unknown tag types else we may segfault.
  364|  7.88k|      if (!typeValid(type)) {
  ------------------
  |  Branch (364:11): [True: 255, False: 7.62k]
  ------------------
  365|    255|        EXV_ERROR << "invalid type in tiff structure" << type << '\n';
  ------------------
  |  |  142|    255|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 255]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    255|  LogMsg(LogMsg::error).os()
  ------------------
  366|    255|        throw Error(ErrorCode::kerInvalidTypeValue);
  367|    255|      }
  368|       |
  369|       |      // prepare to print the value
  370|  7.62k|      const uint32_t kount = [=] {
  371|       |        // haul in all the data
  372|  7.62k|        if (isPrintXMP(tag, option))
  373|  7.62k|          return count;
  374|       |        // ditto
  375|  7.62k|        if (isPrintICC(tag, option))
  376|  7.62k|          return count;
  377|       |        // restrict long arrays
  378|  7.62k|        if (isStringType(type)) {
  379|  7.62k|          return std::min(count, 32u);
  380|  7.62k|        }
  381|  7.62k|        return std::min(count, 5u);
  382|  7.62k|      }();
  383|  7.62k|      const uint32_t pad = isStringType(type) ? 1 : 0;
  ------------------
  |  Branch (383:28): [True: 1.60k, False: 6.02k]
  ------------------
  384|  7.62k|      const uint32_t size = [=] {
  385|  7.62k|        if (isStringType(type))
  386|  7.62k|          return 1;
  387|  7.62k|        if (is2ByteType(type))
  388|  7.62k|          return 2;
  389|  7.62k|        if (is4ByteType(type))
  390|  7.62k|          return 4;
  391|  7.62k|        if (is8ByteType(type))
  392|  7.62k|          return 8;
  393|  7.62k|        return 1;
  394|  7.62k|      }();
  395|       |
  396|       |      // if ( offset > io.size() ) offset = 0; // Denial of service?
  397|       |
  398|       |      // #55 and #56 memory allocation crash test/data/POC8
  399|  7.62k|      const uint64_t allocate64 = (size * static_cast<uint64_t>(count)) + pad + 20;
  400|  7.62k|      if (allocate64 > io.size()) {
  ------------------
  |  Branch (400:11): [True: 65, False: 7.56k]
  ------------------
  401|     65|        throw Error(ErrorCode::kerInvalidMalloc);
  402|     65|      }
  403|  7.56k|      DataBuf buf(allocate64);                       // allocate a buffer
  404|  7.56k|      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.56k|      const size_t count_x_size = static_cast<size_t>(count) * size;
  408|  7.56k|      const bool bOffsetIsPointer = count_x_size > 4;
  409|       |
  410|  7.56k|      if (bOffsetIsPointer) {                                                       // read into buffer
  ------------------
  |  Branch (410:11): [True: 3.37k, False: 4.18k]
  ------------------
  411|  3.37k|        const size_t restore = io.tell();                                           // save
  412|  3.37k|        io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);      // position
  413|  3.37k|        io.readOrThrow(buf.data(), count_x_size, ErrorCode::kerCorruptedMetadata);  // read
  414|  3.37k|        io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);     // restore
  415|  3.37k|      }
  416|       |
  417|  7.56k|      if (bPrint) {
  ------------------
  |  Branch (417:11): [True: 7.52k, False: 38]
  ------------------
  418|  7.52k|        const size_t address = start + 2 + (i * 12);
  419|  7.52k|        const std::string offsetString = bOffsetIsPointer ? stringFormat("{:9}", offset) : "";
  ------------------
  |  |   18|  3.36k|#define stringFormat std::format
  ------------------
  |  Branch (419:42): [True: 3.36k, False: 4.16k]
  ------------------
  420|  7.52k|        std::string sp;  // output spacer
  421|       |
  422|  7.52k|        out << Internal::indent(depth)
  423|  7.52k|            << stringFormat("{:8} | {:#06x} {:<28} | {:>9} | {:>8} | {:9} | ", address, tag, tagName(tag),
  ------------------
  |  |   18|  7.52k|#define stringFormat std::format
  ------------------
  424|  7.52k|                            typeName(type), count, offsetString);
  425|  7.52k|        if (isShortType(type)) {
  ------------------
  |  Branch (425:13): [True: 1.53k, False: 5.99k]
  ------------------
  426|  3.76k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (426:30): [True: 2.23k, False: 1.53k]
  ------------------
  427|  2.23k|            out << sp << byteSwap2(buf, k * size, bSwap);
  428|  2.23k|            sp = " ";
  429|  2.23k|          }
  430|  5.99k|        } else if (isLongType(type)) {
  ------------------
  |  Branch (430:20): [True: 2.46k, False: 3.53k]
  ------------------
  431|  8.14k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (431:30): [True: 5.68k, False: 2.46k]
  ------------------
  432|  5.68k|            out << sp << byteSwap4(buf, k * size, bSwap);
  433|  5.68k|            sp = " ";
  434|  5.68k|          }
  435|       |
  436|  3.53k|        } else if (isRationalType(type)) {
  ------------------
  |  Branch (436:20): [True: 1.07k, False: 2.45k]
  ------------------
  437|  2.48k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (437:30): [True: 1.41k, False: 1.07k]
  ------------------
  438|  1.41k|            const uint32_t a = byteSwap4(buf, (k * size) + 0, bSwap);
  439|  1.41k|            const uint32_t b = byteSwap4(buf, (k * size) + 4, bSwap);
  440|  1.41k|            out << sp << a << "/" << b;
  441|  1.41k|            sp = " ";
  442|  1.41k|          }
  443|  2.45k|        } else if (isStringType(type)) {
  ------------------
  |  Branch (443:20): [True: 1.56k, False: 895]
  ------------------
  444|  1.56k|          out << sp << Internal::binaryToString(makeSlice(buf, 0, kount));
  445|  1.56k|        }
  446|       |
  447|  7.52k|        sp = kount == count ? "" : " ...";
  ------------------
  |  Branch (447:14): [True: 5.82k, False: 1.69k]
  ------------------
  448|  7.52k|        out << sp << '\n';
  449|       |
  450|  7.52k|        if (option == kpsRecursive && (tag == 0x8769 /* ExifTag */ || tag == 0x014a /*SubIFDs*/ || type == tiffIfd)) {
  ------------------
  |  Branch (450:13): [True: 7.11k, False: 409]
  |  Branch (450:40): [True: 27, False: 7.08k]
  |  Branch (450:71): [True: 243, False: 6.84k]
  |  Branch (450:100): [True: 728, False: 6.11k]
  ------------------
  451|  1.01k|          for (size_t k = 0; k < count; k++) {
  ------------------
  |  Branch (451:30): [True: 19, False: 998]
  ------------------
  452|     19|            const size_t restore = io.tell();
  453|     19|            const uint32_t offset_inner = byteSwap4(buf, k * size, bSwap);
  454|     19|            printIFDStructure(io, out, option, offset_inner, bSwap, c, depth + 1);
  455|     19|            io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  456|     19|          }
  457|  6.52k|        } else if (option == kpsRecursive && tag == 0x83bb /* IPTCNAA */) {
  ------------------
  |  Branch (457:20): [True: 6.11k, False: 409]
  |  Branch (457:46): [True: 1.62k, False: 4.49k]
  ------------------
  458|  1.62k|          if (count > 0) {
  ------------------
  |  Branch (458:15): [True: 789, False: 838]
  ------------------
  459|    789|            if (static_cast<size_t>(Safe::add(count, offset)) > io.size()) {
  ------------------
  |  Branch (459:17): [True: 1, False: 788]
  ------------------
  460|      1|              throw Error(ErrorCode::kerCorruptedMetadata);
  461|      1|            }
  462|       |
  463|    788|            const size_t restore = io.tell();
  464|    788|            io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  465|    788|            auto bytes = std::make_unique<byte[]>(count);                           // allocate memory
  466|    788|            io.readOrThrow(bytes.get(), count, ErrorCode::kerCorruptedMetadata);
  467|    788|            io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  468|    788|            IptcData::printStructure(out, makeSliceUntil(bytes.get(), count), depth);
  469|    788|          }
  470|  4.90k|        } else if (option == kpsRecursive && tag == 0x927c /* MakerNote */ && count > 10) {
  ------------------
  |  Branch (470:20): [True: 4.49k, False: 409]
  |  Branch (470:46): [True: 720, False: 3.77k]
  |  Branch (470:79): [True: 2, False: 718]
  ------------------
  471|      2|          const size_t restore = io.tell();  // save
  472|       |
  473|      2|          const uint32_t jump = 10;
  474|      2|          byte bytes[20];
  475|      2|          const auto chars = reinterpret_cast<const char*>(&bytes[0]);
  476|      2|          io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  477|      2|          io.readOrThrow(bytes, jump, ErrorCode::kerCorruptedMetadata);           // read
  478|      2|          bytes[jump] = 0;
  479|       |
  480|      2|          bool bNikon = ::strcmp("Nikon", chars) == 0;
  481|      2|          bool bSony = ::strcmp("SONY DSC ", chars) == 0;
  482|       |
  483|      2|          if (bNikon) {
  ------------------
  |  Branch (483:15): [True: 0, False: 2]
  ------------------
  484|       |            // tag is an embedded tiff
  485|      0|            const uint32_t 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|      2|          } else {
  491|       |            // tag is an IFD
  492|      2|            const uint32_t punt = bSony ? 12 : 0;
  ------------------
  |  Branch (492:35): [True: 1, False: 1]
  ------------------
  493|      2|            io.seekOrThrow(0, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  494|      2|            printIFDStructure(io, out, option, offset + punt, bSwap, c, depth + 1);
  495|      2|          }
  496|       |
  497|      2|          io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // restore
  498|      2|        }
  499|  7.52k|      }
  500|       |
  501|  7.56k|      if (isPrintXMP(tag, option)) {
  ------------------
  |  Branch (501:11): [True: 0, False: 7.56k]
  ------------------
  502|      0|        buf.write_uint8(count, 0);
  503|      0|        out << buf.c_str();
  504|      0|      }
  505|  7.56k|      if (isPrintICC(tag, option)) {
  ------------------
  |  Branch (505:11): [True: 0, False: 7.56k]
  ------------------
  506|      0|        out.write(buf.c_str(), count);
  507|      0|      }
  508|  7.56k|    }
  509|  3.00k|    if (start) {
  ------------------
  |  Branch (509:9): [True: 2.79k, False: 212]
  ------------------
  510|  2.79k|      io.readOrThrow(dir.data(), 4, ErrorCode::kerCorruptedMetadata);
  511|  2.79k|      start = byteSwap4(dir, 0, bSwap);
  512|  2.79k|    }
  513|  3.00k|  } while (start);
  ------------------
  |  Branch (513:12): [True: 27, False: 2.97k]
  ------------------
  514|       |
  515|  2.97k|  if (bPrint) {
  ------------------
  |  Branch (515:7): [True: 2.76k, False: 213]
  ------------------
  516|  2.76k|    out << Internal::indent(depth) << "END " << io.path() << '\n';
  517|  2.76k|  }
  518|  2.97k|  out.flush();
  519|  2.97k|}
_ZN5Exiv25Image18printTiffStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmm:
  522|  35.6k|                               size_t offset /*=0*/) {
  523|  35.6k|  if (option == kpsBasic || option == kpsXMP || option == kpsRecursive || option == kpsIccProfile) {
  ------------------
  |  Branch (523:7): [True: 16.4k, False: 19.2k]
  |  Branch (523:29): [True: 2, False: 19.2k]
  |  Branch (523:49): [True: 2.85k, False: 16.4k]
  |  Branch (523:75): [True: 0, False: 16.4k]
  ------------------
  524|       |    // buffer
  525|  19.2k|    const size_t dirSize = 32;
  526|  19.2k|    DataBuf dir(dirSize);
  527|       |
  528|       |    // read header (we already know for certain that we have a Tiff file)
  529|  19.2k|    io.readOrThrow(dir.data(), 8, ErrorCode::kerCorruptedMetadata);
  530|  19.2k|    auto c = dir.read_uint8(0);
  531|  19.2k|    bool bSwap = (c == 'M' && isLittleEndianPlatform()) || (c == 'I' && isBigEndianPlatform());
  ------------------
  |  Branch (531:19): [True: 16.1k, False: 3.14k]
  |  Branch (531:31): [True: 16.1k, False: 0]
  |  Branch (531:61): [True: 3.10k, False: 17]
  |  Branch (531:73): [True: 0, False: 3.10k]
  ------------------
  532|  19.2k|    size_t start = byteSwap4(dir, 4, bSwap);
  533|  19.2k|    printIFDStructure(io, out, option, start + offset, bSwap, c, depth);
  534|  19.2k|  }
  535|  35.6k|}
_ZN5Exiv25Image13clearMetadataEv:
  537|  32.0k|void Image::clearMetadata() {
  538|  32.0k|  clearExifData();
  539|  32.0k|  clearIptcData();
  540|  32.0k|  clearXmpPacket();
  541|  32.0k|  clearXmpData();
  542|  32.0k|  clearComment();
  543|  32.0k|  clearIccProfile();
  544|  32.0k|}
_ZN5Exiv25Image8exifDataEv:
  546|   690k|ExifData& Image::exifData() {
  547|   690k|  return exifData_;
  548|   690k|}
_ZN5Exiv25Image8iptcDataEv:
  550|  49.9k|IptcData& Image::iptcData() {
  551|  49.9k|  return iptcData_;
  552|  49.9k|}
_ZN5Exiv25Image7xmpDataEv:
  554|  59.6k|XmpData& Image::xmpData() {
  555|  59.6k|  return xmpData_;
  556|  59.6k|}
_ZN5Exiv25Image9xmpPacketEv:
  558|    158|std::string& Image::xmpPacket() {
  559|       |  // Serialize the current XMP
  560|    158|  if (!xmpData_.empty() && !writeXmpFromPacket()) {
  ------------------
  |  Branch (560:7): [True: 0, False: 158]
  |  Branch (560:28): [True: 0, False: 0]
  ------------------
  561|      0|    XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting);
  562|      0|  }
  563|    158|  return xmpPacket_;
  564|    158|}
_ZN5Exiv25Image13clearExifDataEv:
  586|  32.0k|void Image::clearExifData() {
  587|  32.0k|  exifData_.clear();
  588|  32.0k|}
_ZN5Exiv25Image13clearIptcDataEv:
  594|  32.0k|void Image::clearIptcData() {
  595|  32.0k|  iptcData_.clear();
  596|  32.0k|}
_ZN5Exiv25Image14clearXmpPacketEv:
  602|  32.0k|void Image::clearXmpPacket() {
  603|  32.0k|  xmpPacket_.clear();
  604|       |  // Also clear the packet cached inside xmpData_. Some formats (e.g. TIFF, where
  605|       |  // XMP is stored in the Exif.Image.XMLPacket tag) write XMP from xmpData_'s
  606|       |  // packet when writeXmpFromPacket() is set. Without this, a stale packet would
  607|       |  // survive and the XMP would not be erased (e.g. "exiv2 -dx" on a TIFF).
  608|  32.0k|  xmpData_.setPacket(std::string());
  609|  32.0k|  writeXmpFromPacket(true);
  610|  32.0k|}
_ZN5Exiv25Image12clearXmpDataEv:
  619|  32.0k|void Image::clearXmpData() {
  620|  32.0k|  xmpData_.clear();
  621|  32.0k|  writeXmpFromPacket(false);
  622|  32.0k|}
_ZN5Exiv25Image18writeXmpFromPacketEb:
  630|  64.0k|void Image::writeXmpFromPacket(bool flag) {
  631|  64.0k|  writeXmpFromPacket_ = flag;
  632|  64.0k|}
_ZN5Exiv25Image12clearCommentEv:
  638|  32.0k|void Image::clearComment() {
  639|  32.0k|  comment_.erase();
  640|  32.0k|}
_ZN5Exiv25Image10setCommentERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  642|     65|void Image::setComment(const std::string& comment) {
  643|     65|  comment_ = comment;
  644|     65|}
_ZN5Exiv25Image13setIccProfileEONS_7DataBufEb:
  646|    175|void Image::setIccProfile(Exiv2::DataBuf&& iccProfile, bool bTestValid) {
  647|    175|  iccProfile_ = std::move(iccProfile);
  648|    175|  if (bTestValid) {
  ------------------
  |  Branch (648:7): [True: 175, False: 0]
  ------------------
  649|    175|    checkIccProfile();
  650|    175|  }
  651|    175|}
_ZN5Exiv25Image16appendIccProfileEPKhmb:
  653|  1.88k|void Image::appendIccProfile(const uint8_t* bytes, size_t size, bool bTestValid) {
  654|  1.88k|  if (size == 0) {
  ------------------
  |  Branch (654:7): [True: 110, False: 1.77k]
  ------------------
  655|    110|    return;
  656|    110|  }
  657|  1.77k|  const size_t start = iccProfile_.size();
  658|  1.77k|  iccProfile_.resize(Safe::add(start, size));
  659|  1.77k|  memcpy(iccProfile_.data(start), bytes, size);
  660|  1.77k|  if (bTestValid) {
  ------------------
  |  Branch (660:7): [True: 19, False: 1.75k]
  ------------------
  661|     19|    checkIccProfile();
  662|     19|  }
  663|  1.77k|}
_ZNK5Exiv25Image15checkIccProfileEv:
  665|    194|void Image::checkIccProfile() const {
  666|    194|  if (iccProfile_.size() < sizeof(long)) {
  ------------------
  |  Branch (666:7): [True: 3, False: 191]
  ------------------
  667|      3|    throw Error(ErrorCode::kerInvalidIccProfile);
  668|      3|  }
  669|    191|  const size_t size = iccProfile_.read_uint32(0, bigEndian);
  670|    191|  if (size != iccProfile_.size()) {
  ------------------
  |  Branch (670:7): [True: 10, False: 181]
  ------------------
  671|     10|    throw Error(ErrorCode::kerInvalidIccProfile);
  672|     10|  }
  673|    191|}
_ZN5Exiv25Image15clearIccProfileEv:
  675|  32.0k|void Image::clearIccProfile() {
  676|  32.0k|  iccProfile_.reset();
  677|  32.0k|}
_ZN5Exiv25Image12setByteOrderENS_9ByteOrderE:
  679|  18.8k|void Image::setByteOrder(ByteOrder byteOrder) {
  680|  18.8k|  byteOrder_ = byteOrder;
  681|  18.8k|}
_ZNK5Exiv25Image9byteOrderEv:
  683|  1.29k|ByteOrder Image::byteOrder() const {
  684|  1.29k|  return byteOrder_;
  685|  1.29k|}
_ZNK5Exiv25Image10pixelWidthEv:
  687|    420|uint32_t Image::pixelWidth() const {
  688|    420|  return pixelWidth_;
  689|    420|}
_ZNK5Exiv25Image11pixelHeightEv:
  691|    420|uint32_t Image::pixelHeight() const {
  692|    420|  return pixelHeight_;
  693|    420|}
_ZNK5Exiv25Image8exifDataEv:
  695|  96.6k|const ExifData& Image::exifData() const {
  696|  96.6k|  return exifData_;
  697|  96.6k|}
_ZNK5Exiv25Image7xmpDataEv:
  703|  2.34k|const XmpData& Image::xmpData() const {
  704|  2.34k|  return xmpData_;
  705|  2.34k|}
_ZNK5Exiv25Image7commentEv:
  707|    234|std::string Image::comment() const {
  708|    234|  return comment_;
  709|    234|}
_ZNK5Exiv25Image2ioEv:
  715|  42.7k|BasicIo& Image::io() const {
  716|  42.7k|  return *io_;
  717|  42.7k|}
_ZNK5Exiv25Image18writeXmpFromPacketEv:
  719|  8.13k|bool Image::writeXmpFromPacket() const {
  720|  8.13k|  return writeXmpFromPacket_;
  721|  8.13k|}
_ZNK5Exiv25Image14nativePreviewsEv:
  723|  9.67k|const NativePreviewList& Image::nativePreviews() const {
  724|  9.67k|  return nativePreviews_;
  725|  9.67k|}
_ZNK5Exiv25Image4goodEv:
  727|  33.4k|bool Image::good() const {
  728|  33.4k|  if (io_->open() != 0)
  ------------------
  |  Branch (728:7): [True: 0, False: 33.4k]
  ------------------
  729|      0|    return false;
  730|  33.4k|  IoCloser closer(*io_);
  731|  33.4k|  return ImageFactory::checkType(imageType_, *io_, false);
  732|  33.4k|}
_ZN5Exiv25Image7tagNameEt:
  743|  7.52k|const std::string& Image::tagName(uint16_t tag) {
  744|  7.52k|  if (init_) {
  ------------------
  |  Branch (744:7): [True: 242, False: 7.28k]
  ------------------
  745|    242|    int idx;
  746|    242|    const TagInfo* ti;
  747|    726|    for (ti = Internal::mnTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (747:47): [True: 484, False: 242]
  ------------------
  748|    484|      tags_[ti[idx].tag_] = ti[idx].name_;
  749|  1.45k|    for (ti = Internal::iopTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (749:48): [True: 1.21k, False: 242]
  ------------------
  750|  1.21k|      tags_[ti[idx].tag_] = ti[idx].name_;
  751|  7.98k|    for (ti = Internal::gpsTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (751:48): [True: 7.74k, False: 242]
  ------------------
  752|  7.74k|      tags_[ti[idx].tag_] = ti[idx].name_;
  753|  62.1k|    for (ti = Internal::ifdTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (753:48): [True: 61.9k, False: 242]
  ------------------
  754|  61.9k|      tags_[ti[idx].tag_] = ti[idx].name_;
  755|  23.4k|    for (ti = Internal::exifTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (755:49): [True: 23.2k, False: 242]
  ------------------
  756|  23.2k|      tags_[ti[idx].tag_] = ti[idx].name_;
  757|  4.84k|    for (ti = Internal::mpfTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (757:48): [True: 4.59k, False: 242]
  ------------------
  758|  4.59k|      tags_[ti[idx].tag_] = ti[idx].name_;
  759|  4.11k|    for (ti = Internal::Nikon1MakerNote::tagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (759:62): [True: 3.87k, False: 242]
  ------------------
  760|  3.87k|      tags_[ti[idx].tag_] = ti[idx].name_;
  761|    242|  }
  762|  7.52k|  init_ = false;
  763|       |
  764|  7.52k|  return tags_[tag];
  765|  7.52k|}
_ZN5Exiv212ImageFactory9checkTypeENS_9ImageTypeERNS_7BasicIoEb:
  782|  33.4k|bool ImageFactory::checkType(ImageType type, BasicIo& io, bool advance) {
  783|  33.4k|  if (auto r = Exiv2::find(registry, type))
  ------------------
  |  Branch (783:12): [True: 33.4k, False: 0]
  ------------------
  784|  33.4k|    return r->isThisType_(io, advance);
  785|      0|  return false;
  786|  33.4k|}
_ZN5Exiv212ImageFactory4openEPKhm:
  868|  33.8k|Image::UniquePtr ImageFactory::open(const byte* data, size_t size) {
  869|  33.8k|  auto image = open(std::make_unique<MemIo>(data, size));  // may throw
  870|  33.8k|  if (!image)
  ------------------
  |  Branch (870:7): [True: 331, False: 33.5k]
  ------------------
  871|    331|    throw Error(ErrorCode::kerMemoryContainsUnknownImageType);
  872|  33.5k|  return image;
  873|  33.8k|}
_ZN5Exiv212ImageFactory4openENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  875|  33.8k|Image::UniquePtr ImageFactory::open(BasicIo::UniquePtr io) {
  876|  33.8k|  if (io->open() != 0) {
  ------------------
  |  Branch (876:7): [True: 0, False: 33.8k]
  ------------------
  877|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io->path(), strError());
  878|      0|  }
  879|   489k|  for (const auto& r : registry) {
  ------------------
  |  Branch (879:22): [True: 489k, False: 425]
  ------------------
  880|   489k|    if (r.isThisType_(*io, false)) {
  ------------------
  |  Branch (880:9): [True: 33.4k, False: 455k]
  ------------------
  881|  33.4k|      return r.newInstance_(std::move(io), false);
  882|  33.4k|    }
  883|   489k|  }
  884|    425|  return nullptr;
  885|  33.8k|}
_ZN5Exiv26appendERNSt3__16vectorIhNS0_9allocatorIhEEEEPKhm:
  923|  66.7k|void append(Blob& blob, const byte* buf, size_t len) {
  924|  66.7k|  if (len != 0) {
  ------------------
  |  Branch (924:7): [True: 65.8k, False: 895]
  ------------------
  925|  65.8k|    Blob::size_type size = blob.size();
  926|  65.8k|    if (blob.capacity() - size < len) {
  ------------------
  |  Branch (926:9): [True: 4.91k, False: 60.9k]
  ------------------
  927|  4.91k|      blob.reserve(size + 65536);
  928|  4.91k|    }
  929|  65.8k|    blob.resize(size + len);
  930|  65.8k|    std::copy_n(buf, len, blob.begin() + size);
  931|  65.8k|  }
  932|  66.7k|}  // append
image.cpp:_ZN5Exiv2L9typeValidEt:
  312|  7.85k|static bool typeValid(uint16_t type) {
  313|  7.85k|  return type >= 1 && type <= 13;
  ------------------
  |  Branch (313:10): [True: 7.79k, False: 62]
  |  Branch (313:23): [True: 7.60k, False: 193]
  ------------------
  314|  7.85k|}
image.cpp:_ZZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcmENK3$_0clEv:
  370|  7.60k|      const uint32_t kount = [=] {
  371|       |        // haul in all the data
  372|  7.60k|        if (isPrintXMP(tag, option))
  ------------------
  |  Branch (372:13): [True: 0, False: 7.60k]
  ------------------
  373|      0|          return count;
  374|       |        // ditto
  375|  7.60k|        if (isPrintICC(tag, option))
  ------------------
  |  Branch (375:13): [True: 0, False: 7.60k]
  ------------------
  376|      0|          return count;
  377|       |        // restrict long arrays
  378|  7.60k|        if (isStringType(type)) {
  ------------------
  |  Branch (378:13): [True: 1.60k, False: 5.99k]
  ------------------
  379|  1.60k|          return std::min(count, 32u);
  380|  1.60k|        }
  381|  5.99k|        return std::min(count, 5u);
  382|  7.60k|      }();
image.cpp:_ZZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcmENK3$_1clEv:
  384|  7.60k|      const uint32_t size = [=] {
  385|  7.60k|        if (isStringType(type))
  ------------------
  |  Branch (385:13): [True: 1.60k, False: 5.99k]
  ------------------
  386|  1.60k|          return 1;
  387|  5.99k|        if (is2ByteType(type))
  ------------------
  |  Branch (387:13): [True: 1.54k, False: 4.45k]
  ------------------
  388|  1.54k|          return 2;
  389|  4.45k|        if (is4ByteType(type))
  ------------------
  |  Branch (389:13): [True: 3.31k, False: 1.14k]
  ------------------
  390|  3.31k|          return 4;
  391|  1.14k|        if (is8ByteType(type))
  ------------------
  |  Branch (391:13): [True: 1.14k, False: 0]
  ------------------
  392|  1.14k|          return 8;
  393|      0|        return 1;
  394|  1.14k|      }();
image.cpp:_ZNK12_GLOBAL__N_18RegistryeqERKN5Exiv29ImageTypeE:
   66|   477k|  bool operator==(const ImageType& imageType) const {
   67|   477k|    return imageType == imageType_;
   68|   477k|  }

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

_ZN5Exiv28Internal14binaryToStringIPhEEDaONS_5SliceIT_EE:
   95|  39.6k|constexpr auto binaryToString(Slice<T>&& sl) noexcept {
   96|  39.6k|  return binaryToStringHelper<T>(std::move(sl));
   97|  39.6k|}
_ZN5Exiv28Internal20binaryToStringHelperIPhEC2EONS_5SliceIS2_EE:
   64|  39.6k|  explicit constexpr binaryToStringHelper(Slice<T>&& myBuf) noexcept : buf_(std::move(myBuf)) {
   65|  39.6k|  }
_ZN5Exiv28InternallsIPhEERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEES8_RKNS0_20binaryToStringHelperIT_EE:
   49|  39.6k|std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper<T>& binToStr) noexcept {
   50|   951k|  for (size_t i = 0; i < binToStr.buf_.size(); ++i) {
  ------------------
  |  Branch (50:22): [True: 911k, False: 39.6k]
  ------------------
   51|   911k|    auto c = static_cast<unsigned char>(binToStr.buf_.at(i));
   52|   911k|    if (c != 0 || i != binToStr.buf_.size() - 1) {
  ------------------
  |  Branch (52:9): [True: 686k, False: 225k]
  |  Branch (52:19): [True: 206k, False: 18.7k]
  ------------------
   53|   892k|      if (c < 32 || c > 126)
  ------------------
  |  Branch (53:11): [True: 284k, False: 608k]
  |  Branch (53:21): [True: 102k, False: 506k]
  ------------------
   54|   386k|        stream.put('.');
   55|   506k|      else
   56|   506k|        stream.put(static_cast<char>(c));
   57|   892k|    }
   58|   911k|  }
   59|  39.6k|  return stream;
   60|  39.6k|}
_ZN5Exiv28Internal14binaryToStringIKNS_5SliceIPhEEEEDaONS2_IT_EE:
   95|  1.11k|constexpr auto binaryToString(Slice<T>&& sl) noexcept {
   96|  1.11k|  return binaryToStringHelper<T>(std::move(sl));
   97|  1.11k|}
_ZN5Exiv28Internal20binaryToStringHelperIKNS_5SliceIPhEEEC2EONS2_IS5_EE:
   64|  1.11k|  explicit constexpr binaryToStringHelper(Slice<T>&& myBuf) noexcept : buf_(std::move(myBuf)) {
   65|  1.11k|  }
_ZN5Exiv28InternallsIKNS_5SliceIPhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS0_20binaryToStringHelperIT_EE:
   49|  1.11k|std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper<T>& binToStr) noexcept {
   50|  7.71k|  for (size_t i = 0; i < binToStr.buf_.size(); ++i) {
  ------------------
  |  Branch (50:22): [True: 6.60k, False: 1.11k]
  ------------------
   51|  6.60k|    auto c = static_cast<unsigned char>(binToStr.buf_.at(i));
   52|  6.60k|    if (c != 0 || i != binToStr.buf_.size() - 1) {
  ------------------
  |  Branch (52:9): [True: 4.54k, False: 2.05k]
  |  Branch (52:19): [True: 1.55k, False: 495]
  ------------------
   53|  6.10k|      if (c < 32 || c > 126)
  ------------------
  |  Branch (53:11): [True: 2.34k, False: 3.76k]
  |  Branch (53:21): [True: 834, False: 2.93k]
  ------------------
   54|  3.17k|        stream.put('.');
   55|  2.93k|      else
   56|  2.93k|        stream.put(static_cast<char>(c));
   57|  6.10k|    }
   58|  6.60k|  }
   59|  1.11k|  return stream;
   60|  1.11k|}

_ZN5Exiv29IptcdatumC2ERKNS_7IptcKeyEPKNS_5ValueE:
   56|  39.2k|Iptcdatum::Iptcdatum(const IptcKey& key, const Value* pValue) : key_(key.clone()) {
   57|  39.2k|  if (pValue)
  ------------------
  |  Branch (57:7): [True: 38.9k, False: 308]
  ------------------
   58|  38.9k|    value_ = pValue->clone();
   59|  39.2k|}
_ZN5Exiv29IptcdatumC2ERKS0_:
   61|   275k|Iptcdatum::Iptcdatum(const Iptcdatum& rhs) {
   62|   275k|  if (rhs.key_)
  ------------------
  |  Branch (62:7): [True: 275k, False: 0]
  ------------------
   63|   275k|    key_ = rhs.key_->clone();  // deep copy
   64|   275k|  if (rhs.value_)
  ------------------
  |  Branch (64:7): [True: 275k, False: 0]
  ------------------
   65|   275k|    value_ = rhs.value_->clone();  // deep copy
   66|   275k|}
_ZN5Exiv29IptcdatumD2Ev:
   68|   314k|Iptcdatum::~Iptcdatum() = default;
_ZNK5Exiv29Iptcdatum5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKNS_8ExifDataE:
   74|  3.96k|std::ostream& Iptcdatum::write(std::ostream& os, const ExifData*) const {
   75|  3.96k|  return os << value();
   76|  3.96k|}
_ZNK5Exiv29Iptcdatum6recordEv:
   86|   642k|uint16_t Iptcdatum::record() const {
   87|   642k|  return key_ ? key_->record() : 0;
  ------------------
  |  Branch (87:10): [True: 642k, False: 0]
  ------------------
   88|   642k|}
_ZNK5Exiv29Iptcdatum7tagNameEv:
   98|  2.89k|std::string Iptcdatum::tagName() const {
   99|  2.89k|  return key_ ? key_->tagName() : "";
  ------------------
  |  Branch (99:10): [True: 2.89k, False: 0]
  ------------------
  100|  2.89k|}
_ZNK5Exiv29Iptcdatum3tagEv:
  110|  87.7k|uint16_t Iptcdatum::tag() const {
  111|  87.7k|  return key_ ? key_->tag() : 0;
  ------------------
  |  Branch (111:10): [True: 87.7k, False: 0]
  ------------------
  112|  87.7k|}
_ZNK5Exiv29Iptcdatum4sizeEv:
  130|  63.0k|size_t Iptcdatum::size() const {
  131|  63.0k|  return value_ ? value_->size() : 0;
  ------------------
  |  Branch (131:10): [True: 63.0k, False: 0]
  ------------------
  132|  63.0k|}
_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|   168k|Iptcdatum& Iptcdatum::operator=(const Iptcdatum& rhs) {
  165|   168k|  if (this == &rhs)
  ------------------
  |  Branch (165:7): [True: 0, False: 168k]
  ------------------
  166|      0|    return *this;
  167|       |
  168|   168k|  key_.reset();
  169|   168k|  if (rhs.key_)
  ------------------
  |  Branch (169:7): [True: 168k, False: 0]
  ------------------
  170|   168k|    key_ = rhs.key_->clone();  // deep copy
  171|       |
  172|   168k|  value_.reset();
  173|   168k|  if (rhs.value_)
  ------------------
  |  Branch (173:7): [True: 168k, False: 0]
  ------------------
  174|   168k|    value_ = rhs.value_->clone();  // deep copy
  175|       |
  176|   168k|  return *this;
  177|   168k|}  // Iptcdatum::operator=
_ZN5Exiv29IptcdatumaSERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  186|    308|Iptcdatum& Iptcdatum::operator=(const std::string& value) {
  187|    308|  setValue(value);
  188|    308|  return *this;
  189|    308|}
_ZN5Exiv29Iptcdatum8setValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  202|    308|int Iptcdatum::setValue(const std::string& value) {
  203|    308|  if (!value_) {
  ------------------
  |  Branch (203:7): [True: 308, False: 0]
  ------------------
  204|    308|    TypeId type = IptcDataSets::dataSetType(tag(), record());
  205|    308|    value_ = Value::create(type);
  206|    308|  }
  207|    308|  return value_->read(value);
  208|    308|}
_ZN5Exiv28IptcDataixERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  210|    308|Iptcdatum& IptcData::operator[](const std::string& key) {
  211|    308|  IptcKey iptcKey(key);
  212|    308|  auto pos = findKey(iptcKey);
  213|    308|  if (pos == end()) {
  ------------------
  |  Branch (213:7): [True: 308, False: 0]
  ------------------
  214|    308|    return iptcMetadata_.emplace_back(iptcKey);
  215|    308|  }
  216|      0|  return *pos;
  217|    308|}
_ZNK5Exiv28IptcData4sizeEv:
  219|    338|size_t IptcData::size() const {
  220|    338|  size_t newSize = 0;
  221|  31.5k|  for (auto&& iptc : iptcMetadata_) {
  ------------------
  |  Branch (221:20): [True: 31.5k, False: 338]
  ------------------
  222|       |    // marker, record Id, dataset num, first 2 bytes of size
  223|  31.5k|    newSize += 5;
  224|  31.5k|    size_t dataSize = iptc.size();
  225|  31.5k|    newSize += dataSize;
  226|  31.5k|    if (dataSize > 32767) {
  ------------------
  |  Branch (226:9): [True: 0, False: 31.5k]
  ------------------
  227|       |      // extended dataset (we always use 4 bytes)
  228|      0|      newSize += 4;
  229|      0|    }
  230|  31.5k|  }
  231|    338|  return newSize;
  232|    338|}
_ZN5Exiv28IptcData3addERKNS_7IptcKeyEPKNS_5ValueE:
  234|  38.9k|int IptcData::add(const IptcKey& key, const Value* value) {
  235|  38.9k|  return add(Iptcdatum(key, value));
  236|  38.9k|}
_ZN5Exiv28IptcData3addERKNS_9IptcdatumE:
  238|  38.9k|int IptcData::add(const Iptcdatum& iptcDatum) {
  239|  38.9k|  if (!IptcDataSets::dataSetRepeatable(iptcDatum.tag(), iptcDatum.record()) &&
  ------------------
  |  Branch (239:7): [True: 3.77k, False: 35.1k]
  |  Branch (239:7): [True: 2.80k, False: 36.1k]
  ------------------
  240|  3.77k|      findId(iptcDatum.tag(), iptcDatum.record()) != end()) {
  ------------------
  |  Branch (240:7): [True: 2.80k, False: 971]
  ------------------
  241|  2.80k|    return 6;
  242|  2.80k|  }
  243|       |  // allow duplicates
  244|  36.1k|  iptcMetadata_.push_back(iptcDatum);
  245|  36.1k|  return 0;
  246|  38.9k|}
_ZN5Exiv28IptcData7findKeyERKNS_7IptcKeyE:
  252|    462|IptcData::iterator IptcData::findKey(const IptcKey& key) {
  253|    462|  return std::find_if(iptcMetadata_.begin(), iptcMetadata_.end(), FindIptcdatum(key.tag(), key.record()));
  254|    462|}
_ZN5Exiv28IptcData6findIdEtt:
  260|  3.77k|IptcData::iterator IptcData::findId(uint16_t dataset, uint16_t record) {
  261|  3.77k|  return std::find_if(iptcMetadata_.begin(), iptcMetadata_.end(), FindIptcdatum(dataset, record));
  262|  3.77k|}
_ZN5Exiv28IptcData14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5SliceIPhEEm:
  278|  3.35k|void IptcData::printStructure(std::ostream& out, const Slice<byte*>& bytes, size_t depth) {
  279|  3.35k|  if (bytes.size() < 3) {
  ------------------
  |  Branch (279:7): [True: 50, False: 3.30k]
  ------------------
  280|     50|    return;
  281|     50|  }
  282|  3.30k|  size_t i = 0;
  283|  63.0k|  while (i < bytes.size() - 3 && bytes.at(i) != 0x1c)
  ------------------
  |  Branch (283:10): [True: 60.8k, False: 2.23k]
  |  Branch (283:34): [True: 59.7k, False: 1.07k]
  ------------------
  284|  59.7k|    i++;
  285|  3.30k|  out << Internal::indent(++depth) << "Record | DataSet | Name                     | Length | Data" << '\n';
  286|  4.44k|  while (i < bytes.size() - 3) {
  ------------------
  |  Branch (286:10): [True: 1.78k, False: 2.66k]
  ------------------
  287|  1.78k|    if (bytes.at(i) != 0x1c) {
  ------------------
  |  Branch (287:9): [True: 647, False: 1.13k]
  ------------------
  288|    647|      break;
  289|    647|    }
  290|  1.13k|    uint16_t record = bytes.at(i + 1);
  291|  1.13k|    uint16_t dataset = bytes.at(i + 2);
  292|  1.13k|    Internal::enforce(bytes.size() - i >= 5, ErrorCode::kerCorruptedMetadata);
  293|  1.13k|    uint16_t len = getUShort(bytes.subSlice(i + 3, bytes.size()), bigEndian);
  294|       |
  295|  1.13k|    Internal::enforce(bytes.size() - i >= 5 + static_cast<size_t>(len), ErrorCode::kerCorruptedMetadata);
  296|  1.13k|    out << stringFormat("  {:6} | {:7} | {:<24} | {:6} | ", record, dataset,
  ------------------
  |  |   18|  1.13k|#define stringFormat std::format
  ------------------
  297|  1.13k|                        Exiv2::IptcDataSets::dataSetName(dataset, record), len);
  298|  1.13k|    out << Internal::binaryToString(makeSlice(bytes, i + 5, i + 5 + std::min<uint16_t>(40, len)))
  299|  1.13k|        << (len > 40 ? "...\n" : "\n");
  ------------------
  |  Branch (299:13): [True: 33, False: 1.10k]
  ------------------
  300|  1.13k|    i += 5 + len;
  301|  1.13k|  }
  302|  3.30k|}
_ZN5Exiv210IptcParser6decodeERNS_8IptcDataEPKhm:
  362|    997|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|    997|  auto pRead = pData;
  367|    997|  const auto pEnd = pData + size;
  368|    997|  iptcData.clear();
  369|       |
  370|    997|  uint16_t record = 0;
  371|    997|  uint16_t dataSet = 0;
  372|    997|  uint32_t sizeData = 0;
  373|    997|  byte extTest = 0;
  374|       |
  375|   789k|  while (6 <= static_cast<size_t>(pEnd - pRead)) {
  ------------------
  |  Branch (375:10): [True: 788k, False: 777]
  ------------------
  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|   788k|    if (*pRead++ != marker_)
  ------------------
  |  Branch (379:9): [True: 749k, False: 39.1k]
  ------------------
  380|   749k|      continue;
  381|  39.1k|    record = *pRead++;
  382|  39.1k|    dataSet = *pRead++;
  383|       |
  384|  39.1k|    extTest = *pRead;
  385|  39.1k|    if (extTest & 0x80) {
  ------------------
  |  Branch (385:9): [True: 337, False: 38.7k]
  ------------------
  386|       |      // extended dataset
  387|    337|      uint16_t sizeOfSize = (getUShort(pRead, bigEndian) & 0x7FFF);
  388|    337|      if (sizeOfSize > 4)
  ------------------
  |  Branch (388:11): [True: 49, False: 288]
  ------------------
  389|     49|        return 5;
  390|    288|      pRead += 2;
  391|    288|      if (sizeOfSize > pEnd - pRead)
  ------------------
  |  Branch (391:11): [True: 4, False: 284]
  ------------------
  392|      4|        return 6;
  393|    284|      sizeData = 0;
  394|    910|      for (; sizeOfSize > 0; --sizeOfSize) {
  ------------------
  |  Branch (394:14): [True: 626, False: 284]
  ------------------
  395|    626|        sizeData |= *pRead++ << (8 * (sizeOfSize - 1));
  396|    626|      }
  397|  38.7k|    } else {
  398|       |      // standard dataset
  399|  38.7k|      sizeData = getUShort(pRead, bigEndian);
  400|  38.7k|      pRead += 2;
  401|  38.7k|    }
  402|  39.0k|    if (sizeData <= static_cast<size_t>(pEnd - pRead)) {
  ------------------
  |  Branch (402:9): [True: 38.9k, False: 167]
  ------------------
  403|  38.9k|      int rc = readData(iptcData, dataSet, record, pRead, sizeData);
  404|  38.9k|      if (rc != 0) {
  ------------------
  |  Branch (404:11): [True: 0, False: 38.9k]
  ------------------
  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.9k|    } else {
  410|    167|#ifndef SUPPRESS_WARNINGS
  411|    167|      EXV_WARNING << "IPTC dataset " << IptcKey(dataSet, record) << " has invalid size " << sizeData << "; skipped.\n";
  ------------------
  |  |  138|    167|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 167]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    167|  LogMsg(LogMsg::warn).os()
  ------------------
  412|    167|#endif
  413|    167|      return 7;
  414|    167|    }
  415|  38.9k|    pRead += sizeData;
  416|  38.9k|  }
  417|       |
  418|    777|  return 0;
  419|    997|}  // IptcParser::decode
_ZN5Exiv210IptcParser6encodeERKNS_8IptcDataE:
  421|  10.1k|DataBuf IptcParser::encode(const IptcData& iptcData) {
  422|  10.1k|  DataBuf buf;
  423|  10.1k|  if (iptcData.empty())
  ------------------
  |  Branch (423:7): [True: 9.86k, False: 338]
  ------------------
  424|  9.86k|    return buf;
  425|       |
  426|    338|  buf = DataBuf(iptcData.size());
  427|    338|  byte* pWrite = buf.data();
  428|       |
  429|       |  // Copy the iptc data sets and sort them by record but preserve the order of datasets
  430|    338|  IptcMetadata sortedIptcData(iptcData.begin(), iptcData.end());
  431|    338|  std::stable_sort(sortedIptcData.begin(), sortedIptcData.end(),
  432|    338|                   [](const auto& l, const auto& r) { return l.record() < r.record(); });
  433|       |
  434|  31.5k|  for (const auto& iter : sortedIptcData) {
  ------------------
  |  Branch (434:25): [True: 31.5k, False: 338]
  ------------------
  435|       |    // marker, record Id, dataset num
  436|  31.5k|    *pWrite++ = marker_;
  437|  31.5k|    *pWrite++ = static_cast<byte>(iter.record());
  438|  31.5k|    *pWrite++ = static_cast<byte>(iter.tag());
  439|       |
  440|       |    // extended or standard dataset?
  441|  31.5k|    if (size_t dataSize = iter.size(); dataSize > 32767) {
  ------------------
  |  Branch (441:40): [True: 0, False: 31.5k]
  ------------------
  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|  31.5k|    } else {
  449|  31.5k|      us2Data(pWrite, static_cast<uint16_t>(dataSize), bigEndian);
  450|  31.5k|      pWrite += 2;
  451|  31.5k|    }
  452|  31.5k|    pWrite += iter.value().copy(pWrite, bigEndian);
  453|  31.5k|  }
  454|       |
  455|    338|  return buf;
  456|  10.1k|}  // IptcParser::encode
iptc.cpp:_ZNK12_GLOBAL__N_113FindIptcdatumclERKN5Exiv29IptcdatumE:
   41|  13.2k|  bool operator()(const Exiv2::Iptcdatum& iptcdatum) const {
   42|  13.2k|    return dataset_ == iptcdatum.tag() && record_ == iptcdatum.record();
  ------------------
  |  Branch (42:12): [True: 4.63k, False: 8.59k]
  |  Branch (42:43): [True: 2.80k, False: 1.83k]
  ------------------
   43|  13.2k|  }
iptc.cpp:_ZN12_GLOBAL__N_113FindIptcdatumC2Ett:
   35|  4.23k|  FindIptcdatum(uint16_t dataset, uint16_t record) : dataset_(dataset), record_(record) {
   36|  4.23k|  }
iptc.cpp:_ZN12_GLOBAL__N_18readDataERN5Exiv28IptcDataEttPKhj:
  463|  38.9k|int readData(Exiv2::IptcData& iptcData, uint16_t dataSet, uint16_t record, const Exiv2::byte* data, uint32_t sizeData) {
  464|  38.9k|  Exiv2::TypeId type = Exiv2::IptcDataSets::dataSetType(dataSet, record);
  465|  38.9k|  auto value = Exiv2::Value::create(type);
  466|  38.9k|  int rc = value->read(data, sizeData, Exiv2::bigEndian);
  467|  38.9k|  if (0 == rc) {
  ------------------
  |  Branch (467:7): [True: 34.5k, False: 4.36k]
  ------------------
  468|  34.5k|    Exiv2::IptcKey key(dataSet, record);
  469|  34.5k|    iptcData.add(key, value.get());
  470|  34.5k|  } else if (1 == rc) {
  ------------------
  |  Branch (470:14): [True: 4.36k, False: 0]
  ------------------
  471|       |    // If the first attempt failed, try with a string value
  472|  4.36k|    value = Exiv2::Value::create(Exiv2::string);
  473|  4.36k|    rc = value->read(data, sizeData, Exiv2::bigEndian);
  474|  4.36k|    if (0 == rc) {
  ------------------
  |  Branch (474:9): [True: 4.36k, False: 0]
  ------------------
  475|  4.36k|      Exiv2::IptcKey key(dataSet, record);
  476|  4.36k|      iptcData.add(key, value.get());
  477|  4.36k|    }
  478|  4.36k|  }
  479|  38.9k|  return rc;
  480|  38.9k|}
iptc.cpp:_ZZN5Exiv210IptcParser6encodeERKNS_8IptcDataEENK3$_0clINS_9IptcdatumES6_EEDaRKT_RKT0_:
  432|   281k|                   [](const auto& l, const auto& r) { return l.record() < r.record(); });

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

_ZN5Exiv28Internal18isValidBoxFileTypeERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
   13|    141|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|    141|  if (boxData.size() < 8 || ((boxData.size() - 8u) % 4u) != 0) {
  ------------------
  |  Branch (15:7): [True: 3, False: 138]
  |  Branch (15:29): [True: 1, False: 137]
  ------------------
   16|      4|    return false;
   17|      4|  }
   18|       |
   19|    137|  const size_t N = (boxData.size() - 8u) / 4u;
   20|    137|  const uint32_t brand = getULong(boxData.data(), bigEndian);
   21|    137|  const uint32_t minorVersion = getULong(boxData.data() + 4, bigEndian);
   22|       |
   23|    137|  bool clWithRightBrand = false;
   24|    466|  for (size_t i = 0; i < N; i++) {
  ------------------
  |  Branch (24:22): [True: 438, False: 28]
  ------------------
   25|    438|    uint32_t compatibilityList = getULong(boxData.data() + 8 + (i * 4), bigEndian);
   26|    438|    if ((brand == brandJp2 && compatibilityList == brandJp2) || (brand == brandJph && compatibilityList == brandJph)) {
  ------------------
  |  Branch (26:10): [True: 189, False: 249]
  |  Branch (26:31): [True: 98, False: 91]
  |  Branch (26:66): [True: 77, False: 263]
  |  Branch (26:87): [True: 11, False: 66]
  ------------------
   27|    109|      clWithRightBrand = true;
   28|    109|      break;
   29|    109|    }
   30|    438|  }
   31|    137|  return (minorVersion == 0 && clWithRightBrand);
  ------------------
  |  Branch (31:11): [True: 109, False: 28]
  |  Branch (31:32): [True: 105, False: 4]
  ------------------
   32|    141|}

_ZN5Exiv28JpegBaseC2ENS_9ImageTypeENSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEEbPKhm:
  116|  1.77k|    Image(type, mdExif | mdIptc | mdXmp | mdComment, std::move(io)) {
  117|  1.77k|  if (create) {
  ------------------
  |  Branch (117:7): [True: 0, False: 1.77k]
  ------------------
  118|      0|    initImage(initData, dataSize);
  119|      0|  }
  120|  1.77k|}
_ZNK5Exiv28JpegBase15advanceToMarkerENS_9ErrorCodeE:
  133|   274k|byte JpegBase::advanceToMarker(ErrorCode err) const {
  134|   274k|  int c = -1;
  135|       |  // Skips potential padding between markers
  136|  12.6M|  while ((c = io_->getb()) != 0xff) {
  ------------------
  |  Branch (136:10): [True: 12.3M, False: 273k]
  ------------------
  137|  12.3M|    if (c == EOF)
  ------------------
  |  Branch (137:9): [True: 491, False: 12.3M]
  ------------------
  138|    491|      throw Error(err);
  139|  12.3M|  }
  140|       |
  141|       |  // Markers can start with any number of 0xff
  142|   317k|  while ((c = io_->getb()) == 0xff) {
  ------------------
  |  Branch (142:10): [True: 43.9k, False: 273k]
  ------------------
  143|  43.9k|  }
  144|   273k|  if (c == EOF)
  ------------------
  |  Branch (144:7): [True: 34, False: 273k]
  ------------------
  145|     34|    throw Error(err);
  146|       |
  147|   273k|  return static_cast<byte>(c);
  148|   273k|}
_ZN5Exiv28JpegBase12readMetadataEv:
  150|  2.62k|void JpegBase::readMetadata() {
  151|  2.62k|  int rc = 0;  // Todo: this should be the return value
  152|       |
  153|  2.62k|  if (io_->open() != 0)
  ------------------
  |  Branch (153:7): [True: 0, False: 2.62k]
  ------------------
  154|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  155|  2.62k|  IoCloser closer(*io_);
  156|       |  // Ensure that this is the correct image type
  157|  2.62k|  if (!isThisType(*io_, true)) {
  ------------------
  |  Branch (157:7): [True: 102, False: 2.52k]
  ------------------
  158|    102|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (158:9): [True: 0, False: 102]
  |  Branch (158:25): [True: 0, False: 102]
  ------------------
  159|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  160|    102|    throw Error(ErrorCode::kerNotAJpeg);
  161|    102|  }
  162|  2.52k|  clearMetadata();
  163|  2.52k|  int search = 6;  // Exif, ICC, XMP, Comment, IPTC, SOF
  164|  2.52k|  Blob psBlob;
  165|  2.52k|  bool foundCompletePsData = false;
  166|  2.52k|  bool foundExifData = false;
  167|  2.52k|  bool foundXmpData = false;
  168|  2.52k|  bool foundIccData = false;
  169|       |
  170|       |  // Read section marker
  171|  2.52k|  byte marker = advanceToMarker(ErrorCode::kerNotAJpeg);
  172|       |
  173|  70.3k|  while (marker != sos_ && marker != eoi_ && search > 0) {
  ------------------
  |  Branch (173:10): [True: 69.9k, False: 360]
  |  Branch (173:28): [True: 68.3k, False: 1.58k]
  |  Branch (173:46): [True: 68.3k, False: 10]
  ------------------
  174|  68.3k|    const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  175|       |
  176|       |    // Read the rest of the segment.
  177|  68.3k|    DataBuf buf(size);
  178|       |    // check if the segment is not empty
  179|  68.3k|    if (size > 2) {
  ------------------
  |  Branch (179:9): [True: 60.5k, False: 7.83k]
  ------------------
  180|  60.5k|      io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  181|  60.5k|      std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  182|  60.5k|    }
  183|       |
  184|  68.3k|    if (auto itSofMarker = Exiv2::find(jpegProcessMarkerTags, marker)) {
  ------------------
  |  Branch (184:14): [True: 2.71k, False: 65.6k]
  ------------------
  185|  2.71k|      sof_encoding_process_ = itSofMarker->label_;
  186|  2.71k|      if (size >= 7 && buf.c_data(7)) {
  ------------------
  |  Branch (186:11): [True: 2.09k, False: 618]
  |  Branch (186:24): [True: 1.79k, False: 306]
  ------------------
  187|  1.79k|        num_color_components_ = *buf.c_data(7);
  188|  1.79k|      }
  189|  2.71k|    }
  190|       |
  191|  68.3k|    if (!foundExifData && marker == app1_ && size >= 8  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (191:9): [True: 58.6k, False: 9.71k]
  |  Branch (191:27): [True: 4.37k, False: 54.2k]
  |  Branch (191:46): [True: 3.57k, False: 801]
  ------------------
  192|  3.57k|        && buf.cmpBytes(2, exifId_.data(), 6) == 0) {
  ------------------
  |  Branch (192:12): [True: 716, False: 2.85k]
  ------------------
  193|    716|      ByteOrder bo = ExifParser::decode(exifData_, buf.c_data(8), size - 8);
  194|    716|      setByteOrder(bo);
  195|    716|      if (size > 8 && byteOrder() == invalidByteOrder) {
  ------------------
  |  Branch (195:11): [True: 698, False: 18]
  |  Branch (195:23): [True: 0, False: 698]
  ------------------
  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|    716|      --search;
  202|    716|      foundExifData = true;
  203|  67.6k|    } else if (!foundXmpData && marker == app1_ && size >= 31  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (203:16): [True: 62.9k, False: 4.69k]
  |  Branch (203:33): [True: 6.66k, False: 56.3k]
  |  Branch (203:52): [True: 5.72k, False: 939]
  ------------------
  204|  5.72k|               && buf.cmpBytes(2, xmpId_.data(), 29) == 0) {
  ------------------
  |  Branch (204:19): [True: 176, False: 5.54k]
  ------------------
  205|    176|      xmpPacket_.assign(buf.c_str(31), size - 31);
  206|    176|      if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_)) {
  ------------------
  |  Branch (206:11): [True: 174, False: 2]
  |  Branch (206:34): [True: 85, False: 89]
  ------------------
  207|     85|#ifndef SUPPRESS_WARNINGS
  208|     85|        EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|     85|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 85]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     85|  LogMsg(LogMsg::warn).os()
  ------------------
  209|     85|#endif
  210|     85|      }
  211|    176|      --search;
  212|    176|      foundXmpData = true;
  213|  67.4k|    } else if (!foundCompletePsData && marker == app13_ &&
  ------------------
  |  Branch (213:16): [True: 66.7k, False: 706]
  |  Branch (213:40): [True: 39.7k, False: 26.9k]
  ------------------
  214|  39.7k|               size >= 16  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (214:16): [True: 39.2k, False: 547]
  ------------------
  215|  39.2k|               && buf.cmpBytes(2, Photoshop::ps3Id_, 14) == 0) {
  ------------------
  |  Branch (215:19): [True: 26.4k, False: 12.7k]
  ------------------
  216|       |#ifdef EXIV2_DEBUG_MESSAGES
  217|       |      std::cerr << "Found app13 segment, size = " << size << "\n";
  218|       |#endif
  219|  26.4k|      if (buf.size() > 16) {  // Append to psBlob
  ------------------
  |  Branch (219:11): [True: 24.5k, False: 1.91k]
  ------------------
  220|  24.5k|        append(psBlob, buf.c_data(16), size - 16);
  221|  24.5k|      }
  222|       |      // Check whether psBlob is complete
  223|  26.4k|      if (!psBlob.empty() && Photoshop::valid(psBlob.data(), psBlob.size())) {
  ------------------
  |  Branch (223:11): [True: 25.4k, False: 1.02k]
  |  Branch (223:30): [True: 80, False: 25.3k]
  ------------------
  224|     80|        --search;
  225|     80|        foundCompletePsData = true;
  226|     80|      }
  227|  41.0k|    } else if (marker == com_ && comment_.empty()) {
  ------------------
  |  Branch (227:16): [True: 2.68k, False: 38.3k]
  |  Branch (227:34): [True: 756, False: 1.93k]
  ------------------
  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|    756|      comment_.assign(buf.c_str(2), size - 2);
  232|  2.11k|      while (!comment_.empty() && comment_.back() == '\0') {
  ------------------
  |  Branch (232:14): [True: 1.93k, False: 182]
  |  Branch (232:35): [True: 1.35k, False: 574]
  ------------------
  233|  1.35k|        comment_.pop_back();
  234|  1.35k|      }
  235|    756|      --search;
  236|  40.2k|    } else if (marker == app2_ && size >= 13  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (236:16): [True: 4.06k, False: 36.1k]
  |  Branch (236:35): [True: 3.48k, False: 579]
  ------------------
  237|  3.48k|               && buf.cmpBytes(2, iccId_, 11) == 0) {
  ------------------
  |  Branch (237:19): [True: 1.90k, False: 1.58k]
  ------------------
  238|  1.90k|      if (size < 2 + 14 + 4) {
  ------------------
  |  Branch (238:11): [True: 9, False: 1.89k]
  ------------------
  239|      9|        rc = 8;
  240|      9|        break;
  241|      9|      }
  242|       |      // ICC profile
  243|  1.89k|      if (!foundIccData) {
  ------------------
  |  Branch (243:11): [True: 96, False: 1.79k]
  ------------------
  244|     96|        foundIccData = true;
  245|     96|        --search;
  246|     96|      }
  247|  1.89k|      auto chunk = static_cast<int>(buf.read_uint8(2 + 12));
  248|  1.89k|      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.89k|      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.89k|      size_t icc_size = size - 2 - 14;
  260|  1.89k|      if (chunk == 1 && chunks == 1) {
  ------------------
  |  Branch (260:11): [True: 1.08k, False: 806]
  |  Branch (260:25): [True: 127, False: 959]
  ------------------
  261|    127|        enforce(s <= static_cast<uint32_t>(icc_size), ErrorCode::kerInvalidIccProfile);
  262|    127|        icc_size = s;
  263|    127|      }
  264|       |
  265|  1.89k|      appendIccProfile(buf.c_data(2 + 14), icc_size, chunk == chunks);
  266|  38.3k|    } else if (pixelHeight_ == 0 && inRange2(marker, sof0_, sof3_, sof5_, sof15_)) {
  ------------------
  |  Branch (266:16): [True: 30.0k, False: 8.27k]
  |  Branch (266:37): [True: 342, False: 29.7k]
  ------------------
  267|       |      // We hit a SOFn (start-of-frame) marker
  268|    342|      if (size < 8) {
  ------------------
  |  Branch (268:11): [True: 67, False: 275]
  ------------------
  269|     67|        rc = 7;
  270|     67|        break;
  271|     67|      }
  272|    275|      pixelHeight_ = buf.read_uint16(3, bigEndian);
  273|    275|      pixelWidth_ = buf.read_uint16(5, bigEndian);
  274|    275|      if (pixelHeight_ != 0)
  ------------------
  |  Branch (274:11): [True: 93, False: 182]
  ------------------
  275|     93|        --search;
  276|    275|    }
  277|       |
  278|       |    // Read the beginning of the next segment
  279|  68.3k|    try {
  280|  68.3k|      marker = advanceToMarker(ErrorCode::kerFailedToReadImageData);
  281|  68.3k|    } catch (const Error&) {
  282|    267|      rc = 5;
  283|    267|      break;
  284|    267|    }
  285|  68.3k|  }  // while there are segments to process
  286|       |
  287|  2.29k|  if (!psBlob.empty()) {
  ------------------
  |  Branch (287:7): [True: 515, False: 1.78k]
  ------------------
  288|       |    // Find actual IPTC data within the psBlob
  289|    515|    Blob iptcBlob;
  290|    515|    const byte* record = nullptr;
  291|    515|    uint32_t sizeIptc = 0;
  292|    515|    uint32_t sizeHdr = 0;
  293|    515|    const byte* pCur = psBlob.data();
  294|    515|    const byte* pEnd = pCur + psBlob.size();
  295|  17.4k|    while (pCur < pEnd && 0 == Photoshop::locateIptcIrb(pCur, pEnd - pCur, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (295:12): [True: 17.3k, False: 9]
  |  Branch (295:27): [True: 16.8k, False: 506]
  ------------------
  296|       |#ifdef EXIV2_DEBUG_MESSAGES
  297|       |      std::cerr << "Found IPTC IRB, size = " << sizeIptc << "\n";
  298|       |#endif
  299|  16.8k|      if (sizeIptc) {
  ------------------
  |  Branch (299:11): [True: 16.8k, False: 4]
  ------------------
  300|  16.8k|        append(iptcBlob, record + sizeHdr, sizeIptc);
  301|  16.8k|      }
  302|  16.8k|      pCur = record + sizeHdr + sizeIptc + (sizeIptc & 1);
  303|  16.8k|    }
  304|    515|    if (!iptcBlob.empty() && IptcParser::decode(iptcData_, iptcBlob.data(), iptcBlob.size())) {
  ------------------
  |  Branch (304:9): [True: 84, False: 431]
  |  Branch (304:30): [True: 12, False: 72]
  ------------------
  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|    515|  }
  311|       |
  312|  2.29k|  if (rc != 0) {
  ------------------
  |  Branch (312:7): [True: 343, False: 1.95k]
  ------------------
  313|    343|#ifndef SUPPRESS_WARNINGS
  314|    343|    EXV_WARNING << "JPEG format error, rc = " << rc << "\n";
  ------------------
  |  |  138|    343|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 343]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    343|  LogMsg(LogMsg::warn).os()
  ------------------
  315|    343|#endif
  316|    343|  }
  317|  2.29k|}  // JpegBase::readMetadata
_ZN5Exiv28JpegBase14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  323|  7.65k|void JpegBase::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
  324|  7.65k|  if (io_->open() != 0)
  ------------------
  |  Branch (324:7): [True: 0, False: 7.65k]
  ------------------
  325|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  326|       |  // Ensure that this is the correct image type
  327|  7.65k|  if (!isThisType(*io_, false)) {
  ------------------
  |  Branch (327:7): [True: 0, False: 7.65k]
  ------------------
  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.65k|  bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (333:17): [True: 1.44k, False: 6.21k]
  |  Branch (333:39): [True: 1.23k, False: 4.97k]
  ------------------
  334|  7.65k|  std::vector<std::pair<size_t, size_t>> iptcDataSegs;
  335|       |
  336|  7.65k|  if (bPrint || option == kpsXMP || option == kpsIccProfile || option == kpsIptcErase) {
  ------------------
  |  Branch (336:7): [True: 2.67k, False: 4.97k]
  |  Branch (336:17): [True: 1.23k, False: 3.73k]
  |  Branch (336:37): [True: 1.14k, False: 2.59k]
  |  Branch (336:64): [True: 1.14k, False: 1.44k]
  ------------------
  337|       |    // mnemonic for markers
  338|  6.21k|    std::string nm[256];
  339|  6.21k|    nm[0xd8] = "SOI";
  340|  6.21k|    nm[0xd9] = "EOI";
  341|  6.21k|    nm[0xda] = "SOS";
  342|  6.21k|    nm[0xdb] = "DQT";
  343|  6.21k|    nm[0xdd] = "DRI";
  344|  6.21k|    nm[0xfe] = "COM";
  345|       |
  346|       |    // 0xe0 .. 0xef are APPn
  347|       |    // 0xc0 .. 0xcf are SOFn (except 4)
  348|  6.21k|    nm[0xc4] = "DHT";
  349|   105k|    for (int i = 0; i <= 15; i++) {
  ------------------
  |  Branch (349:21): [True: 99.3k, False: 6.21k]
  ------------------
  350|  99.3k|      nm[0xe0 + i] = stringFormat("APP{}", i);
  ------------------
  |  |   18|  99.3k|#define stringFormat std::format
  ------------------
  351|  99.3k|      if (i != 4) {
  ------------------
  |  Branch (351:11): [True: 93.1k, False: 6.21k]
  ------------------
  352|  93.1k|        nm[0xc0 + i] = stringFormat("SOF{}", i);
  ------------------
  |  |   18|  93.1k|#define stringFormat std::format
  ------------------
  353|  93.1k|      }
  354|  99.3k|    }
  355|       |
  356|       |    // Container for the signature
  357|  6.21k|    bool bExtXMP = false;
  358|       |
  359|       |    // Read section marker
  360|  6.21k|    byte marker = advanceToMarker(ErrorCode::kerNotAJpeg);
  361|       |
  362|  6.21k|    bool done = false;
  363|  6.21k|    bool first = true;
  364|   116k|    while (!done) {
  ------------------
  |  Branch (364:12): [True: 109k, False: 6.21k]
  ------------------
  365|       |      // print marker bytes
  366|   109k|      if (first && bPrint) {
  ------------------
  |  Branch (366:11): [True: 6.21k, False: 103k]
  |  Branch (366:20): [True: 2.67k, False: 3.53k]
  ------------------
  367|  2.67k|        out << "STRUCTURE OF JPEG FILE: " << io_->path() << '\n';
  368|  2.67k|        out << " address | marker       |  length | data" << '\n';
  369|  2.67k|        REPORT_MARKER;
  ------------------
  |  |  320|  2.67k|  if ((option == kpsBasic || option == kpsRecursive)) \
  |  |  ------------------
  |  |  |  Branch (320:8): [True: 1.44k, False: 1.23k]
  |  |  |  Branch (320:30): [True: 1.23k, False: 0]
  |  |  ------------------
  |  |  321|  2.67k|  out << stringFormat("{:8} | 0xff{:02x} {:<5}", io_->tell() - 2, marker, nm[marker].c_str())
  |  |  ------------------
  |  |  |  |   18|  2.67k|#define stringFormat std::format
  |  |  ------------------
  ------------------
  370|  2.67k|      }
  371|   109k|      first = false;
  372|   109k|      bool bLF = bPrint;
  373|       |
  374|   109k|      const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  375|       |
  376|       |      // Read the rest of the segment if not empty.
  377|   109k|      DataBuf buf(size);
  378|   109k|      if (size > 2) {
  ------------------
  |  Branch (378:11): [True: 81.4k, False: 28.5k]
  ------------------
  379|  81.4k|        io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  380|  81.4k|        std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  381|  81.4k|      }
  382|       |
  383|   109k|      if (bPrint && markerHasLength(marker))
  ------------------
  |  Branch (383:11): [True: 48.0k, False: 61.9k]
  |  Branch (383:21): [True: 37.4k, False: 10.6k]
  ------------------
  384|  37.4k|        out << stringFormat(" | {:7} ", size);
  ------------------
  |  |   18|  37.4k|#define stringFormat std::format
  ------------------
  385|       |
  386|       |      // print signature for APPn
  387|   109k|      if (marker >= app0_ && marker <= (app0_ | 0x0F)) {
  ------------------
  |  Branch (387:11): [True: 75.2k, False: 34.7k]
  |  Branch (387:30): [True: 68.9k, False: 6.31k]
  ------------------
  388|       |        // http://www.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMPSpecificationPart3.pdf p75
  389|  68.9k|        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|  68.9k|        if (option == kpsXMP && signature.starts_with("http://ns.adobe.com/x")) {
  ------------------
  |  Branch (398:13): [True: 13.3k, False: 55.5k]
  |  Branch (398:33): [True: 319, False: 13.0k]
  ------------------
  399|       |          // extract XMP
  400|    319|          const char* xmp = buf.c_str();
  401|    319|          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|    319|          if (!bExtXMP) {
  ------------------
  |  Branch (410:15): [True: 103, False: 216]
  ------------------
  411|  7.78k|            while (start < size && xmp[start]) {
  ------------------
  |  Branch (411:20): [True: 7.78k, False: 2]
  |  Branch (411:36): [True: 7.68k, False: 101]
  ------------------
  412|  7.68k|              start++;
  413|  7.68k|            }
  414|    103|            start++;
  415|    103|            if (start < size) {
  ------------------
  |  Branch (415:17): [True: 100, False: 3]
  ------------------
  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: 9, False: 91]
  ------------------
  418|      9|                start = size;  // ignore this packet, we'll get on the next time around
  419|      9|                bExtXMP = true;
  420|      9|              }
  421|    100|            }
  422|    216|          } else {
  423|    216|            start = 2 + 35 + 32 + 4 + 4;  // Adobe Spec, p19
  424|    216|          }
  425|       |
  426|    319|          enforce(start <= size, ErrorCode::kerInvalidXmpText);
  427|    319|          out.write(&xmp[start], size - start);
  428|    319|          done = !bExtXMP;
  429|  68.5k|        } else if (option == kpsIccProfile && signature == iccId_) {
  ------------------
  |  Branch (429:20): [True: 12.8k, False: 55.7k]
  |  Branch (429:47): [True: 1.39k, False: 11.4k]
  ------------------
  430|       |          // extract ICCProfile
  431|  1.39k|          if (size >= 16) {
  ------------------
  |  Branch (431:15): [True: 1.39k, False: 0]
  ------------------
  432|  1.39k|            out.write(buf.c_str(16), size - 16);
  433|       |#ifdef EXIV2_DEBUG_MESSAGES
  434|       |            std::cout << "iccProfile size = " << size - 16 << '\n';
  435|       |#endif
  436|  1.39k|          }
  437|  67.2k|        } else if (option == kpsIptcErase && signature == "Photoshop 3.0") {
  ------------------
  |  Branch (437:20): [True: 12.8k, False: 54.3k]
  |  Branch (437:46): [True: 2.35k, False: 10.4k]
  ------------------
  438|       |          // delete IPTC data segment from JPEG
  439|  2.35k|          iptcDataSegs.emplace_back(io_->tell() - size, io_->tell());
  440|  64.8k|        } else if (bPrint) {
  ------------------
  |  Branch (440:20): [True: 29.8k, False: 34.9k]
  ------------------
  441|  29.8k|          const size_t start = 2;
  442|  29.8k|          const auto end = std::min<size_t>(34, size);
  443|  29.8k|          out << "| ";
  444|  29.8k|          if (start < end)
  ------------------
  |  Branch (444:15): [True: 28.9k, False: 973]
  ------------------
  445|  28.9k|            out << Internal::binaryToString(makeSlice(buf, start, end));
  446|  29.8k|          if (signature == iccId_) {
  ------------------
  |  Branch (446:15): [True: 2.81k, False: 27.0k]
  ------------------
  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|  2.81k|            enforce<std::out_of_range>(size >= 16, "Buffer too small to extract chunk information.");
  457|  2.81k|            const int chunk = buf.read_uint8(2 + 12);
  458|  2.81k|            const int chunks = buf.read_uint8(2 + 13);
  459|  2.81k|            out << stringFormat(" chunk {}/{}", chunk, chunks);
  ------------------
  |  |   18|  2.81k|#define stringFormat std::format
  ------------------
  460|  2.81k|          }
  461|  29.8k|        }
  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|  68.9k|        bool bFlir = option == kpsRecursive && marker == (app0_ + 1) && signature == "FLIR";
  ------------------
  |  Branch (465:22): [True: 14.4k, False: 54.4k]
  |  Branch (465:48): [True: 6.17k, False: 8.25k]
  |  Branch (465:73): [True: 1.10k, False: 5.06k]
  ------------------
  466|  68.9k|        bool bExif = option == kpsRecursive && marker == (app0_ + 1) && signature == "Exif";
  ------------------
  |  Branch (466:22): [True: 14.4k, False: 54.4k]
  |  Branch (466:48): [True: 6.17k, False: 8.25k]
  |  Branch (466:73): [True: 2.08k, False: 4.09k]
  ------------------
  467|  68.9k|        bool bMPF = option == kpsRecursive && marker == (app0_ + 2) && signature == "MPF";
  ------------------
  |  Branch (467:21): [True: 14.4k, False: 54.4k]
  |  Branch (467:47): [True: 3.54k, False: 10.8k]
  |  Branch (467:72): [True: 294, False: 3.24k]
  ------------------
  468|  68.9k|        bool bPS = option == kpsRecursive && signature == "Photoshop 3.0";
  ------------------
  |  Branch (468:20): [True: 14.4k, False: 54.4k]
  |  Branch (468:46): [True: 2.37k, False: 12.0k]
  ------------------
  469|  68.9k|        if (bFlir || bExif || bMPF || bPS) {
  ------------------
  |  Branch (469:13): [True: 1.11k, False: 67.8k]
  |  Branch (469:22): [True: 2.08k, False: 65.7k]
  |  Branch (469:31): [True: 294, False: 65.4k]
  |  Branch (469:39): [True: 2.37k, False: 63.0k]
  ------------------
  470|       |          // extract Exif data block which is tiff formatted
  471|  5.86k|          out << '\n';
  472|       |
  473|       |          //                        const byte* exif = buf.c_data();
  474|  5.86k|          uint32_t start = signature == "Exif" ? 8 : 6;
  ------------------
  |  Branch (474:28): [True: 2.08k, False: 3.78k]
  ------------------
  475|  5.86k|          uint32_t max = static_cast<uint32_t>(size) - 1;
  476|       |
  477|       |          // is this an fff block?
  478|  5.86k|          if (bFlir) {
  ------------------
  |  Branch (478:15): [True: 1.10k, False: 4.75k]
  ------------------
  479|  1.10k|            start = 2;
  480|  1.10k|            bFlir = false;
  481|  48.5k|            while (start + 3 <= max) {
  ------------------
  |  Branch (481:20): [True: 48.5k, False: 16]
  ------------------
  482|  48.5k|              if (std::strcmp(buf.c_str(start), "FFF") == 0) {
  ------------------
  |  Branch (482:19): [True: 1.09k, False: 47.4k]
  ------------------
  483|  1.09k|                bFlir = true;
  484|  1.09k|                break;
  485|  1.09k|              }
  486|  47.4k|              start++;
  487|  47.4k|            }
  488|  1.10k|          }
  489|       |
  490|       |          // there is a header in FLIR, followed by a tiff block
  491|       |          // Hunt down the tiff using brute force
  492|  5.86k|          if (bFlir) {
  ------------------
  |  Branch (492:15): [True: 1.09k, False: 4.77k]
  ------------------
  493|       |            // FLIRFILEHEAD* pFFF = (FLIRFILEHEAD*) (exif+start) ;
  494|  38.8k|            while (start < max) {
  ------------------
  |  Branch (494:20): [True: 38.5k, False: 344]
  ------------------
  495|  38.5k|              if (buf.read_uint8(start) == 'I' && buf.read_uint8(start + 1) == 'I')
  ------------------
  |  Branch (495:19): [True: 189, False: 38.3k]
  |  Branch (495:51): [True: 7, False: 182]
  ------------------
  496|      7|                break;
  497|  38.5k|              if (buf.read_uint8(start) == 'M' && buf.read_uint8(start + 1) == 'M')
  ------------------
  |  Branch (497:19): [True: 1.20k, False: 37.3k]
  |  Branch (497:51): [True: 741, False: 463]
  ------------------
  498|    741|                break;
  499|  37.8k|              start++;
  500|  37.8k|            }
  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.09k|          }
  507|       |
  508|  5.86k|          if (bPS) {
  ------------------
  |  Branch (508:15): [True: 2.37k, False: 3.48k]
  ------------------
  509|  2.37k|            IptcData::printStructure(out, makeSlice(buf, 0, size), depth);
  510|  3.48k|          } else {
  511|  3.48k|            if (start < max) {
  ------------------
  |  Branch (511:17): [True: 2.82k, False: 654]
  ------------------
  512|       |              // create a copy on write memio object with the data, then print the structure
  513|  2.82k|              MemIo p(buf.c_data(start), size - start);
  514|  2.82k|              printTiffStructure(p, out, option, depth + 1);
  515|  2.82k|            }
  516|  3.48k|          }
  517|       |
  518|       |          // restore and clean up
  519|  5.86k|          bLF = false;
  520|  5.86k|        }
  521|  68.9k|      }
  522|       |
  523|       |      // print COM marker
  524|   109k|      if (bPrint && marker == com_) {
  ------------------
  |  Branch (524:11): [True: 47.9k, False: 62.0k]
  |  Branch (524:21): [True: 2.59k, False: 45.3k]
  ------------------
  525|       |        // size includes 2 for the two bytes for size!
  526|  2.59k|        const auto n = std::min<size_t>(32, size - 2);
  527|       |        // start after the two bytes
  528|  2.59k|        out << "| "
  529|  2.59k|            << Internal::binaryToString(makeSlice(buf, 2, n + 2 /* cannot overflow as n is at most size - 2 */));
  530|  2.59k|      }
  531|       |
  532|   109k|      if (bLF)
  ------------------
  |  Branch (532:11): [True: 42.1k, False: 67.7k]
  ------------------
  533|  42.1k|        out << '\n';
  534|       |
  535|   109k|      if (marker != sos_) {
  ------------------
  |  Branch (535:11): [True: 109k, False: 106]
  ------------------
  536|       |        // Read the beginning of the next segment
  537|   109k|        marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  538|   109k|        REPORT_MARKER;
  ------------------
  |  |  320|   109k|  if ((option == kpsBasic || option == kpsRecursive)) \
  |  |  ------------------
  |  |  |  Branch (320:8): [True: 25.5k, False: 84.3k]
  |  |  |  Branch (320:30): [True: 22.4k, False: 61.9k]
  |  |  ------------------
  |  |  321|   109k|  out << stringFormat("{:8} | 0xff{:02x} {:<5}", io_->tell() - 2, marker, nm[marker].c_str())
  |  |  ------------------
  |  |  |  |   18|  47.7k|#define stringFormat std::format
  |  |  ------------------
  ------------------
  539|   109k|      }
  540|   109k|      done |= marker == eoi_ || marker == sos_;
  ------------------
  |  Branch (540:15): [True: 5.30k, False: 104k]
  |  Branch (540:33): [True: 847, False: 103k]
  ------------------
  541|   109k|      if (done && bPrint)
  ------------------
  |  Branch (541:11): [True: 5.91k, False: 104k]
  |  Branch (541:19): [True: 2.38k, False: 3.52k]
  ------------------
  542|  2.38k|        out << '\n';
  543|   109k|    }
  544|  6.21k|  }
  545|  7.65k|  if (option == kpsIptcErase && !iptcDataSegs.empty()) {
  ------------------
  |  Branch (545:7): [True: 1.14k, False: 6.50k]
  |  Branch (545:33): [True: 857, False: 290]
  ------------------
  546|       |    // Add a sentinel to the end of iptcDataSegs
  547|    857|    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|    857|    MemIo tempIo;
  556|    857|    size_t start = 0;
  557|  3.21k|    for (const auto& [l, s] : iptcDataSegs) {
  ------------------
  |  Branch (557:29): [True: 3.21k, False: 857]
  ------------------
  558|  3.21k|      const size_t length = l - start;
  559|  3.21k|      io_->seekOrThrow(start, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  560|  3.21k|      DataBuf buf(length);
  561|  3.21k|      io_->readOrThrow(buf.data(), buf.size(), ErrorCode::kerFailedToReadImageData);
  562|  3.21k|      tempIo.write(buf.c_data(), buf.size());
  563|  3.21k|      start = s + 2;  // skip the 2 byte marker
  564|  3.21k|    }
  565|       |
  566|    857|    io_->seekOrThrow(0, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  567|    857|    io_->transfer(tempIo);  // may throw
  568|    857|    io_->seekOrThrow(0, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  569|       |
  570|       |    // Check that the result is correctly formatted.
  571|    857|    readMetadata();
  572|    857|  }
  573|  7.65k|}  // JpegBase::printStructure
_ZN5Exiv28JpegBase13writeMetadataEv:
  575|  1.06k|void JpegBase::writeMetadata() {
  576|  1.06k|  if (io_->open() != 0) {
  ------------------
  |  Branch (576:7): [True: 0, False: 1.06k]
  ------------------
  577|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  578|      0|  }
  579|  1.06k|  IoCloser closer(*io_);
  580|  1.06k|  MemIo tempIo;
  581|       |
  582|  1.06k|  doWriteMetadata(tempIo);  // may throw
  583|  1.06k|  io_->close();
  584|  1.06k|  io_->transfer(tempIo);  // may throw
  585|  1.06k|}
_ZN5Exiv28JpegBase15readNextSegmentEh:
  587|  86.0k|DataBuf JpegBase::readNextSegment(byte marker) {
  588|  86.0k|  const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  589|       |
  590|       |  // Read the rest of the segment if not empty.
  591|  86.0k|  DataBuf buf(size);
  592|  86.0k|  if (size > 0) {
  ------------------
  |  Branch (592:7): [True: 79.0k, False: 7.00k]
  ------------------
  593|  79.0k|    std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  594|  79.0k|    if (size > 2) {
  ------------------
  |  Branch (594:9): [True: 77.7k, False: 1.30k]
  ------------------
  595|  77.7k|      io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  596|  77.7k|    }
  597|  79.0k|  }
  598|  86.0k|  return buf;
  599|  86.0k|}
_ZN5Exiv28JpegBase15doWriteMetadataERNS_7BasicIoE:
  601|  1.06k|void JpegBase::doWriteMetadata(BasicIo& outIo) {
  602|  1.06k|  if (!io_->isopen())
  ------------------
  |  Branch (602:7): [True: 0, False: 1.06k]
  ------------------
  603|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  604|  1.06k|  if (!outIo.isopen())
  ------------------
  |  Branch (604:7): [True: 0, False: 1.06k]
  ------------------
  605|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  606|       |
  607|       |  // Ensure that this is the correct image type
  608|  1.06k|  if (!isThisType(*io_, true)) {
  ------------------
  |  Branch (608:7): [True: 0, False: 1.06k]
  ------------------
  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.06k|  static const size_t notfound = std::numeric_limits<size_t>::max();
  616|       |
  617|  1.06k|  const size_t seek = io_->tell();
  618|  1.06k|  size_t count = 0;
  619|  1.06k|  size_t search = 0;
  620|  1.06k|  size_t insertPos = 0;
  621|  1.06k|  size_t comPos = 0;
  622|  1.06k|  size_t skipApp1Exif = notfound;
  623|  1.06k|  size_t skipApp1Xmp = notfound;
  624|  1.06k|  bool foundCompletePsData = false;
  625|  1.06k|  bool foundIccData = false;
  626|  1.06k|  std::vector<size_t> skipApp13Ps3;
  627|  1.06k|  std::vector<size_t> skipApp2Icc;
  628|  1.06k|  size_t skipCom = notfound;
  629|  1.06k|  Blob psBlob;
  630|  1.06k|  DataBuf rawExif;
  631|  1.06k|  xmpData().usePacket(writeXmpFromPacket());
  632|       |
  633|       |  // Write image header
  634|  1.06k|  if (writeHeader(outIo))
  ------------------
  |  Branch (634:7): [True: 0, False: 1.06k]
  ------------------
  635|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  636|       |
  637|       |  // Read section marker
  638|  1.06k|  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|  48.2k|  while (marker != sos_ && marker != eoi_ && search < 6) {
  ------------------
  |  Branch (643:10): [True: 47.9k, False: 315]
  |  Branch (643:28): [True: 47.1k, False: 746]
  |  Branch (643:46): [True: 47.1k, False: 0]
  ------------------
  644|  47.1k|    DataBuf buf = readNextSegment(marker);
  645|       |
  646|  47.1k|    if (marker == app0_) {
  ------------------
  |  Branch (646:9): [True: 520, False: 46.6k]
  ------------------
  647|    520|      insertPos = count + 1;
  648|  46.6k|    } else if (skipApp1Exif == notfound && marker == app1_ &&
  ------------------
  |  Branch (648:16): [True: 41.5k, False: 5.10k]
  |  Branch (648:44): [True: 2.52k, False: 39.0k]
  ------------------
  649|  2.52k|               buf.size() >= 8 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (649:16): [True: 2.16k, False: 359]
  ------------------
  650|  2.16k|               buf.cmpBytes(2, exifId_.data(), 6) == 0) {
  ------------------
  |  Branch (650:16): [True: 611, False: 1.55k]
  ------------------
  651|    611|      skipApp1Exif = count;
  652|    611|      ++search;
  653|    611|      if (buf.size() > 8) {
  ------------------
  |  Branch (653:11): [True: 602, False: 9]
  ------------------
  654|    602|        rawExif.alloc(buf.size() - 8);
  655|    602|        std::copy_n(buf.begin() + 8, rawExif.size(), rawExif.begin());
  656|    602|      }
  657|  46.0k|    } else if (skipApp1Xmp == notfound && marker == app1_ &&
  ------------------
  |  Branch (657:16): [True: 44.2k, False: 1.85k]
  |  Branch (657:43): [True: 3.91k, False: 40.2k]
  ------------------
  658|  3.91k|               buf.size() >= 31 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (658:16): [True: 3.44k, False: 467]
  ------------------
  659|  3.44k|               buf.cmpBytes(2, xmpId_.data(), 29) == 0) {
  ------------------
  |  Branch (659:16): [True: 91, False: 3.35k]
  ------------------
  660|     91|      skipApp1Xmp = count;
  661|     91|      ++search;
  662|  45.9k|    } else if (marker == app2_ && buf.size() >= 13 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (662:16): [True: 3.21k, False: 42.7k]
  |  Branch (662:35): [True: 3.01k, False: 203]
  ------------------
  663|  3.01k|               buf.cmpBytes(2, iccId_, 11) == 0) {
  ------------------
  |  Branch (663:16): [True: 1.58k, False: 1.43k]
  ------------------
  664|  1.58k|      skipApp2Icc.push_back(count);
  665|  1.58k|      if (!foundIccData) {
  ------------------
  |  Branch (665:11): [True: 57, False: 1.52k]
  ------------------
  666|     57|        ++search;
  667|     57|        foundIccData = true;
  668|     57|      }
  669|  44.3k|    } else if (!foundCompletePsData && marker == app13_ &&
  ------------------
  |  Branch (669:16): [True: 43.9k, False: 431]
  |  Branch (669:40): [True: 30.5k, False: 13.3k]
  ------------------
  670|  30.5k|               buf.size() >= 16 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (670:16): [True: 30.2k, False: 378]
  ------------------
  671|  30.2k|               buf.cmpBytes(2, Photoshop::ps3Id_, 14) == 0) {
  ------------------
  |  Branch (671:16): [True: 20.4k, False: 9.78k]
  ------------------
  672|       |#ifdef EXIV2_DEBUG_MESSAGES
  673|       |      std::cerr << "Found APP13 Photoshop PS3 segment\n";
  674|       |#endif
  675|  20.4k|      skipApp13Ps3.push_back(count);
  676|       |      // Append to psBlob
  677|  20.4k|      append(psBlob, buf.c_data(16), buf.size() - 16);
  678|       |      // Check whether psBlob is complete
  679|  20.4k|      if (!psBlob.empty() && Photoshop::valid(psBlob.data(), psBlob.size())) {
  ------------------
  |  Branch (679:11): [True: 20.1k, False: 299]
  |  Branch (679:30): [True: 62, False: 20.0k]
  ------------------
  680|     62|        foundCompletePsData = true;
  681|     62|      }
  682|  23.9k|    } else if (marker == com_ && skipCom == notfound) {
  ------------------
  |  Branch (682:16): [True: 1.20k, False: 22.7k]
  |  Branch (682:34): [True: 263, False: 941]
  ------------------
  683|       |      // Jpegs can have multiple comments, but for now only handle
  684|       |      // the first one (most jpegs only have one anyway).
  685|    263|      skipCom = count;
  686|    263|      ++search;
  687|    263|    }
  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|  47.1k|    if (comPos == 0 && inRange2(marker, sof0_, sof3_, sof5_, sof15_)) {
  ------------------
  |  Branch (694:9): [True: 43.9k, False: 3.28k]
  |  Branch (694:24): [True: 79, False: 43.8k]
  ------------------
  695|     79|      comPos = count;
  696|     79|      ++search;
  697|     79|    }
  698|  47.1k|    marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  699|  47.1k|    ++count;
  700|  47.1k|  }
  701|       |
  702|  1.06k|  if (!foundCompletePsData && !psBlob.empty())
  ------------------
  |  Branch (702:7): [True: 953, False: 108]
  |  Branch (702:31): [True: 19, False: 934]
  ------------------
  703|     19|    throw Error(ErrorCode::kerNoImageInInputData);
  704|  1.04k|  search += skipApp13Ps3.size() + skipApp2Icc.size();
  705|       |
  706|  1.04k|  if (comPos == 0) {
  ------------------
  |  Branch (706:7): [True: 941, False: 101]
  ------------------
  707|    941|    if (marker == eoi_)
  ------------------
  |  Branch (707:9): [True: 708, False: 233]
  ------------------
  708|    708|      comPos = count;
  709|    233|    else
  710|    233|      comPos = insertPos;
  711|    941|    ++search;
  712|    941|  }
  713|  1.04k|  if (!exifData_.empty())
  ------------------
  |  Branch (713:7): [True: 596, False: 446]
  ------------------
  714|    596|    ++search;
  715|  1.04k|  if (!writeXmpFromPacket() && !xmpData_.empty())
  ------------------
  |  Branch (715:7): [True: 989, False: 53]
  |  Branch (715:32): [True: 45, False: 944]
  ------------------
  716|     45|    ++search;
  717|  1.04k|  if (writeXmpFromPacket() && !xmpPacket_.empty())
  ------------------
  |  Branch (717:7): [True: 0, False: 1.04k]
  |  Branch (717:31): [True: 0, False: 0]
  ------------------
  718|      0|    ++search;
  719|  1.04k|  if (foundCompletePsData || !iptcData_.empty())
  ------------------
  |  Branch (719:7): [True: 108, False: 934]
  |  Branch (719:30): [True: 0, False: 934]
  ------------------
  720|     55|    ++search;
  721|  1.04k|  if (!comment_.empty())
  ------------------
  |  Branch (721:7): [True: 253, False: 789]
  ------------------
  722|    253|    ++search;
  723|       |
  724|  1.04k|  io_->seekOrThrow(seek, BasicIo::beg, ErrorCode::kerNoImageInInputData);
  725|  1.04k|  count = 0;
  726|  1.04k|  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.2k|  while (marker != sos_ && search > 0) {
  ------------------
  |  Branch (732:10): [True: 38.9k, False: 298]
  |  Branch (732:28): [True: 38.8k, False: 84]
  ------------------
  733|  38.8k|    DataBuf buf = readNextSegment(marker);
  734|       |
  735|  38.8k|    if (insertPos == count) {
  ------------------
  |  Branch (735:9): [True: 983, False: 37.8k]
  ------------------
  736|       |      // Write Exif data first so that - if there is no app0 - we
  737|       |      // create "Exif images" according to the Exif standard.
  738|    983|      if (!exifData_.empty()) {
  ------------------
  |  Branch (738:11): [True: 596, False: 387]
  ------------------
  739|    596|        Blob blob;
  740|    596|        ByteOrder bo = byteOrder();
  741|    596|        if (bo == invalidByteOrder) {
  ------------------
  |  Branch (741:13): [True: 0, False: 596]
  ------------------
  742|      0|          bo = littleEndian;
  743|      0|          setByteOrder(bo);
  744|      0|        }
  745|    596|        const byte* pExifData = rawExif.c_data();
  746|    596|        size_t exifSize = rawExif.size();
  747|    596|        if (ExifParser::encode(blob, pExifData, exifSize, bo, exifData_) == wmIntrusive) {
  ------------------
  |  Branch (747:13): [True: 484, False: 112]
  ------------------
  748|    484|          pExifData = !blob.empty() ? blob.data() : nullptr;
  ------------------
  |  Branch (748:23): [True: 456, False: 28]
  ------------------
  749|    484|          exifSize = blob.size();
  750|    484|        }
  751|    596|        if (exifSize > 0) {
  ------------------
  |  Branch (751:13): [True: 502, False: 94]
  ------------------
  752|    502|          std::array<byte, 10> tmpBuf;
  753|       |          // Write APP1 marker, size of APP1 field, Exif id and Exif data
  754|    502|          tmpBuf[0] = 0xff;
  755|    502|          tmpBuf[1] = app1_;
  756|       |
  757|    502|          if (exifSize > 0xffff - 8)
  ------------------
  |  Branch (757:15): [True: 72, False: 430]
  ------------------
  758|     72|            throw Error(ErrorCode::kerTooLargeJpegSegment, "Exif");
  759|    430|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(exifSize + 8), bigEndian);
  760|    430|          std::copy(exifId_.begin(), exifId_.end(), tmpBuf.begin() + 4);
  761|    430|          if (outIo.write(tmpBuf.data(), 10) != 10)
  ------------------
  |  Branch (761:15): [True: 0, False: 430]
  ------------------
  762|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  763|       |
  764|       |          // Write new Exif data buffer
  765|    430|          if (outIo.write(pExifData, exifSize) != exifSize)
  ------------------
  |  Branch (765:15): [True: 0, False: 430]
  ------------------
  766|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  767|    430|          if (outIo.error())
  ------------------
  |  Branch (767:15): [True: 0, False: 430]
  ------------------
  768|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  769|    430|          --search;
  770|    430|        }
  771|    596|      }
  772|    911|      if (!writeXmpFromPacket() &&
  ------------------
  |  Branch (772:11): [True: 845, False: 66]
  ------------------
  773|    845|          XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting) > 1) {
  ------------------
  |  Branch (773:11): [True: 0, False: 845]
  ------------------
  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|    911|      if (!xmpPacket_.empty()) {
  ------------------
  |  Branch (778:11): [True: 45, False: 866]
  ------------------
  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|    911|      if (iccProfileDefined()) {
  ------------------
  |  Branch (799:11): [True: 46, False: 865]
  ------------------
  800|     46|        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|     46|        tmpBuf[0] = 0xff;
  804|     46|        tmpBuf[1] = app2_;
  805|       |
  806|     46|        const size_t chunk_size = (256 * 256) - 40;  // leave bytes for marker, header and padding
  807|     46|        size_t size = iccProfile_.size();
  808|     46|        if (size >= 255 * chunk_size)
  ------------------
  |  Branch (808:13): [True: 0, False: 46]
  ------------------
  809|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "IccProfile");
  810|     46|        const size_t chunks = 1 + ((size - 1) / chunk_size);
  811|     92|        for (size_t chunk = 0; chunk < chunks; chunk++) {
  ------------------
  |  Branch (811:32): [True: 46, False: 46]
  ------------------
  812|     46|          auto bytes = std::min<size_t>(size, chunk_size);  // bytes to write
  813|     46|          size -= bytes;
  814|       |
  815|       |          // write JPEG marker (2 bytes)
  816|     46|          if (outIo.write(tmpBuf.data(), 2) != 2)
  ------------------
  |  Branch (816:15): [True: 0, False: 46]
  ------------------
  817|      0|            throw Error(ErrorCode::kerImageWriteFailed);  // JPEG Marker
  818|       |          // write length (2 bytes).  length includes the 2 bytes for the length
  819|     46|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(2 + 14 + bytes), bigEndian);
  820|     46|          if (outIo.write(tmpBuf.data() + 2, 2) != 2)
  ------------------
  |  Branch (820:15): [True: 0, False: 46]
  ------------------
  821|      0|            throw Error(ErrorCode::kerImageWriteFailed);  // JPEG Length
  822|       |
  823|       |          // write the ICC_PROFILE header (14 bytes)
  824|     46|          uint8_t pad[2];
  825|     46|          pad[0] = static_cast<uint8_t>(chunk + 1);
  826|     46|          pad[1] = static_cast<uint8_t>(chunks);
  827|     46|          outIo.write(reinterpret_cast<const byte*>(iccId_), 12);
  828|     46|          outIo.write(reinterpret_cast<const byte*>(pad), 2);
  829|     46|          if (outIo.write(iccProfile_.c_data(chunk * chunk_size), bytes) != bytes)
  ------------------
  |  Branch (829:15): [True: 0, False: 46]
  ------------------
  830|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  831|     46|          if (outIo.error())
  ------------------
  |  Branch (831:15): [True: 0, False: 46]
  ------------------
  832|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  833|     46|        }
  834|     46|        --search;
  835|     46|      }
  836|       |
  837|    911|      if (foundCompletePsData || !iptcData_.empty()) {
  ------------------
  |  Branch (837:11): [True: 121, False: 790]
  |  Branch (837:34): [True: 0, False: 790]
  ------------------
  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|     55|        DataBuf newPsData = Photoshop::setIptcIrb(psBlob.data(), psBlob.size(), iptcData_);
  841|     55|        const size_t maxChunkSize = 0xffff - 16;
  842|     55|        const byte* chunkStart = newPsData.empty() ? nullptr : newPsData.c_data();
  ------------------
  |  Branch (842:34): [True: 1, False: 54]
  ------------------
  843|     55|        const byte* chunkEnd = newPsData.empty() ? nullptr : newPsData.c_data(newPsData.size() - 1);
  ------------------
  |  Branch (843:32): [True: 1, False: 54]
  ------------------
  844|    109|        while (chunkStart < chunkEnd) {
  ------------------
  |  Branch (844:16): [True: 54, False: 55]
  ------------------
  845|       |          // Determine size of next chunk
  846|     54|          size_t chunkSize = (chunkEnd + 1 - chunkStart);
  847|     54|          if (chunkSize > maxChunkSize) {
  ------------------
  |  Branch (847:15): [True: 2, False: 52]
  ------------------
  848|      2|            chunkSize = maxChunkSize;
  849|       |            // Don't break at a valid IRB boundary
  850|      2|            const auto writtenSize = chunkStart - newPsData.c_data();
  851|      2|            if (Photoshop::valid(newPsData.c_data(), writtenSize + chunkSize)) {
  ------------------
  |  Branch (851:17): [True: 0, False: 2]
  ------------------
  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|      2|          }
  857|       |
  858|       |          // Write APP13 marker, chunk size, and ps3Id
  859|     54|          std::array<byte, 18> tmpBuf;
  860|     54|          tmpBuf[0] = 0xff;
  861|     54|          tmpBuf[1] = app13_;
  862|     54|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(chunkSize + 16), bigEndian);
  863|     54|          std::copy_n(Photoshop::ps3Id_, 14, tmpBuf.begin() + 4);
  864|     54|          if (outIo.write(tmpBuf.data(), 18) != 18)
  ------------------
  |  Branch (864:15): [True: 0, False: 54]
  ------------------
  865|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  866|     54|          if (outIo.error())
  ------------------
  |  Branch (866:15): [True: 0, False: 54]
  ------------------
  867|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  868|       |
  869|       |          // Write next chunk of the Photoshop IRB data buffer
  870|     54|          if (outIo.write(chunkStart, chunkSize) != chunkSize)
  ------------------
  |  Branch (870:15): [True: 0, False: 54]
  ------------------
  871|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  872|     54|          if (outIo.error())
  ------------------
  |  Branch (872:15): [True: 0, False: 54]
  ------------------
  873|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  874|       |
  875|     54|          chunkStart += chunkSize;
  876|     54|        }
  877|     55|        --search;
  878|     55|      }
  879|    911|    }
  880|  38.7k|    if (comPos == count) {
  ------------------
  |  Branch (880:9): [True: 845, False: 37.9k]
  ------------------
  881|    845|      if (!comment_.empty()) {
  ------------------
  |  Branch (881:11): [True: 138, False: 707]
  ------------------
  882|    138|        std::array<byte, 4> tmpBuf;
  883|       |        // Write COM marker, size of comment, and string
  884|    138|        tmpBuf[0] = 0xff;
  885|    138|        tmpBuf[1] = com_;
  886|       |
  887|    138|        if (comment_.length() > 0xffff - 3)
  ------------------
  |  Branch (887:13): [True: 1, False: 137]
  ------------------
  888|      1|          throw Error(ErrorCode::kerTooLargeJpegSegment, "JPEG comment");
  889|    137|        us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(comment_.length() + 3), bigEndian);
  890|       |
  891|    137|        if (outIo.write(tmpBuf.data(), 4) != 4)
  ------------------
  |  Branch (891:13): [True: 0, False: 137]
  ------------------
  892|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  893|    137|        if (outIo.write(reinterpret_cast<byte*>(comment_.data()), comment_.length()) != comment_.length())
  ------------------
  |  Branch (893:13): [True: 0, False: 137]
  ------------------
  894|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  895|    137|        if (outIo.putb(0) == EOF)
  ------------------
  |  Branch (895:13): [True: 0, False: 137]
  ------------------
  896|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  897|    137|        if (outIo.error())
  ------------------
  |  Branch (897:13): [True: 0, False: 137]
  ------------------
  898|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  899|    137|        --search;
  900|    137|      }
  901|    844|      --search;
  902|    844|    }
  903|  38.7k|    if (marker == eoi_) {
  ------------------
  |  Branch (903:9): [True: 587, False: 38.1k]
  ------------------
  904|    587|      break;
  905|    587|    }
  906|  38.1k|    if (skipApp1Exif == count || skipApp1Xmp == count ||
  ------------------
  |  Branch (906:9): [True: 534, False: 37.6k]
  |  Branch (906:9): [True: 18.9k, False: 19.2k]
  |  Branch (906:34): [True: 90, False: 37.5k]
  ------------------
  907|  37.5k|        std::find(skipApp13Ps3.begin(), skipApp13Ps3.end(), count) != skipApp13Ps3.end() ||
  ------------------
  |  Branch (907:9): [True: 16.6k, False: 20.8k]
  ------------------
  908|  20.8k|        std::find(skipApp2Icc.begin(), skipApp2Icc.end(), count) != skipApp2Icc.end() || skipCom == count) {
  ------------------
  |  Branch (908:9): [True: 1.56k, False: 19.3k]
  |  Branch (908:90): [True: 143, False: 19.1k]
  ------------------
  909|  18.9k|      --search;
  910|  19.2k|    } else {
  911|  19.2k|      std::array<byte, 2> tmpBuf;
  912|       |      // Write marker and a copy of the segment.
  913|  19.2k|      tmpBuf[0] = 0xff;
  914|  19.2k|      tmpBuf[1] = marker;
  915|  19.2k|      if (outIo.write(tmpBuf.data(), 2) != 2)
  ------------------
  |  Branch (915:11): [True: 0, False: 19.2k]
  ------------------
  916|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  917|  19.2k|      if (outIo.write(buf.c_data(), buf.size()) != buf.size())
  ------------------
  |  Branch (917:11): [True: 0, False: 19.2k]
  ------------------
  918|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  919|  19.2k|      if (outIo.error())
  ------------------
  |  Branch (919:11): [True: 0, False: 19.2k]
  ------------------
  920|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  921|  19.2k|    }
  922|       |
  923|       |    // Next marker
  924|  38.1k|    marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  925|  38.1k|    ++count;
  926|  38.1k|  }
  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|    969|  io_->populateFakeData();
  931|       |
  932|       |  // Write the final marker, then copy rest of the Io.
  933|    969|  byte tmpBuf[2];
  934|    969|  tmpBuf[0] = 0xff;
  935|    969|  tmpBuf[1] = marker;
  936|    969|  if (outIo.write(tmpBuf, 2) != 2)
  ------------------
  |  Branch (936:7): [True: 0, False: 969]
  ------------------
  937|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  938|       |
  939|    969|  DataBuf buf(4096);
  940|    969|  size_t readSize = io_->read(buf.data(), buf.size());
  941|  1.64k|  while (readSize != 0) {
  ------------------
  |  Branch (941:10): [True: 671, False: 969]
  ------------------
  942|    671|    if (outIo.write(buf.c_data(), readSize) != readSize)
  ------------------
  |  Branch (942:9): [True: 0, False: 671]
  ------------------
  943|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  944|    671|    readSize = io_->read(buf.data(), buf.size());
  945|    671|  }
  946|    969|  if (outIo.error())
  ------------------
  |  Branch (946:7): [True: 0, False: 969]
  ------------------
  947|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  948|       |
  949|    969|}  // JpegBase::doWriteMetadata
_ZN5Exiv29JpegImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
  968|  1.75k|    JpegBase(ImageType::jpeg, std::move(io), create, blank_, sizeof(blank_)) {
  969|  1.75k|}
_ZNK5Exiv29JpegImage11writeHeaderERNS_7BasicIoE:
  975|  1.06k|int JpegImage::writeHeader(BasicIo& outIo) const {
  976|       |  // Jpeg header
  977|  1.06k|  byte tmpBuf[2];
  978|  1.06k|  tmpBuf[0] = 0xff;
  979|  1.06k|  tmpBuf[1] = soi_;
  980|  1.06k|  if (outIo.write(tmpBuf, 2) != 2)
  ------------------
  |  Branch (980:7): [True: 0, False: 1.06k]
  ------------------
  981|      0|    return 4;
  982|  1.06k|  if (outIo.error())
  ------------------
  |  Branch (982:7): [True: 0, False: 1.06k]
  ------------------
  983|      0|    return 4;
  984|  1.06k|  return 0;
  985|  1.06k|}
_ZNK5Exiv29JpegImage10isThisTypeERNS_7BasicIoEb:
  987|  11.3k|bool JpegImage::isThisType(BasicIo& iIo, bool advance) const {
  988|  11.3k|  return isJpegType(iIo, advance);
  989|  11.3k|}
_ZN5Exiv215newJpegInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  991|  1.65k|Image::UniquePtr newJpegInstance(BasicIo::UniquePtr io, bool create) {
  992|  1.65k|  auto image = std::make_unique<JpegImage>(std::move(io), create);
  993|  1.65k|  if (!image->good()) {
  ------------------
  |  Branch (993:7): [True: 0, False: 1.65k]
  ------------------
  994|      0|    return nullptr;
  995|      0|  }
  996|  1.65k|  return image;
  997|  1.65k|}
_ZN5Exiv210isJpegTypeERNS_7BasicIoEb:
  999|  46.8k|bool isJpegType(BasicIo& iIo, bool advance) {
 1000|  46.8k|  bool result = true;
 1001|  46.8k|  byte tmpBuf[2];
 1002|  46.8k|  iIo.read(tmpBuf, 2);
 1003|  46.8k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (1003:7): [True: 0, False: 46.8k]
  |  Branch (1003:22): [True: 13, False: 46.8k]
  ------------------
 1004|     13|    return false;
 1005|       |
 1006|  46.8k|  if (0xff != tmpBuf[0] || soi_ != tmpBuf[1]) {
  ------------------
  |  Branch (1006:7): [True: 32.2k, False: 14.5k]
  |  Branch (1006:28): [True: 57, False: 14.5k]
  ------------------
 1007|  32.2k|    result = false;
 1008|  32.2k|  }
 1009|  46.8k|  if (!advance || !result)
  ------------------
  |  Branch (1009:7): [True: 43.1k, False: 3.67k]
  |  Branch (1009:19): [True: 102, False: 3.57k]
  ------------------
 1010|  43.2k|    iIo.seek(-2, BasicIo::cur);
 1011|  46.8k|  return result;
 1012|  46.8k|}
_ZN5Exiv28ExvImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
 1015|     15|    JpegBase(ImageType::exv, std::move(io), create, blank_, sizeof(blank_)) {
 1016|     15|}
_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|     15|Image::UniquePtr newExvInstance(BasicIo::UniquePtr io, bool create) {
 1038|     15|  auto image = std::make_unique<ExvImage>(std::move(io), create);
 1039|     15|  if (!image->good())
  ------------------
  |  Branch (1039:7): [True: 0, False: 15]
  ------------------
 1040|      0|    return nullptr;
 1041|     15|  return image;
 1042|     15|}
_ZN5Exiv29isExvTypeERNS_7BasicIoEb:
 1044|  32.2k|bool isExvType(BasicIo& iIo, bool advance) {
 1045|  32.2k|  bool result = true;
 1046|  32.2k|  byte tmpBuf[7];
 1047|  32.2k|  iIo.read(tmpBuf, 7);
 1048|  32.2k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (1048:7): [True: 0, False: 32.2k]
  |  Branch (1048:22): [True: 53, False: 32.1k]
  ------------------
 1049|     53|    return false;
 1050|       |
 1051|  32.1k|  if (0xff != tmpBuf[0] || 0x01 != tmpBuf[1] || memcmp(tmpBuf + 2, ExvImage::exiv2Id_, 5) != 0) {
  ------------------
  |  Branch (1051:7): [True: 32.0k, False: 74]
  |  Branch (1051:28): [True: 17, False: 57]
  |  Branch (1051:49): [True: 10, False: 47]
  ------------------
 1052|  32.1k|    result = false;
 1053|  32.1k|  }
 1054|  32.1k|  if (!advance || !result)
  ------------------
  |  Branch (1054:7): [True: 32.1k, False: 15]
  |  Branch (1054:19): [True: 0, False: 15]
  ------------------
 1055|  32.1k|    iIo.seek(-7, BasicIo::cur);
 1056|  32.1k|  return result;
 1057|  32.2k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_115readSegmentSizeEhRNS_7BasicIoE:
  103|   264k|std::pair<std::array<byte, 2>, uint16_t> readSegmentSize(const byte marker, BasicIo& io) {
  104|   264k|  std::array<byte, 2> buf{0, 0};  // 2-byte buffer for reading the size.
  105|   264k|  uint16_t size{0};               // Size of the segment, including the 2-byte size field
  106|   264k|  if (markerHasLength(marker)) {
  ------------------
  |  Branch (106:7): [True: 225k, False: 38.5k]
  ------------------
  107|   225k|    io.readOrThrow(buf.data(), buf.size(), ErrorCode::kerFailedToReadImageData);
  108|   225k|    size = getUShort(buf.data(), bigEndian);
  109|   225k|    enforce(size >= 2, ErrorCode::kerFailedToReadImageData);
  110|   225k|  }
  111|   264k|  return {buf, size};
  112|   264k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_18inRange2Eiiiii:
   91|  73.9k|constexpr bool inRange2(int value, int lo1, int hi1, int lo2, int hi2) {
   92|  73.9k|  return inRange(lo1, value, hi1) || inRange(lo2, value, hi2);
  ------------------
  |  Branch (92:10): [True: 145, False: 73.8k]
  |  Branch (92:38): [True: 276, False: 73.5k]
  ------------------
   93|  73.9k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_17inRangeEiii:
   87|   147k|constexpr bool inRange(int lo, int value, int hi) {
   88|   147k|  return lo <= value && value <= hi;
  ------------------
  |  Branch (88:10): [True: 144k, False: 3.52k]
  |  Branch (88:25): [True: 421, False: 143k]
  ------------------
   89|   147k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_115markerHasLengthEh:
   98|   312k|bool markerHasLength(byte m) {
   99|   312k|  bool markerWithoutLength = m >= rst1_ && m <= eoi_;
  ------------------
  |  Branch (99:30): [True: 290k, False: 22.2k]
  |  Branch (99:44): [True: 49.1k, False: 241k]
  ------------------
  100|   312k|  return !markerWithoutLength;
  101|   312k|}

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

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

_ZN5Exiv213MatroskaVideoC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  599|  1.36k|MatroskaVideo::MatroskaVideo(BasicIo::UniquePtr io) : Image(ImageType::mkv, mdNone, std::move(io)) {
  600|  1.36k|}  // MatroskaVideo::MatroskaVideo
_ZNK5Exiv213MatroskaVideo8mimeTypeEv:
  602|  1.36k|std::string MatroskaVideo::mimeType() const {
  603|  1.36k|  return "video/matroska";
  604|  1.36k|}
_ZN5Exiv213MatroskaVideo12readMetadataEv:
  609|  1.36k|void MatroskaVideo::readMetadata() {
  610|  1.36k|  if (io_->open() != 0)
  ------------------
  |  Branch (610:7): [True: 0, False: 1.36k]
  ------------------
  611|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  612|       |
  613|       |  // Ensure that this is the correct image type
  614|  1.36k|  if (!isMkvType(*io_, false)) {
  ------------------
  |  Branch (614:7): [True: 0, False: 1.36k]
  ------------------
  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.36k|  IoCloser closer(*io_);
  621|  1.36k|  clearMetadata();
  622|  1.36k|  continueTraversing_ = true;
  623|  1.36k|  height_ = width_ = 1;
  624|       |
  625|  1.36k|  xmpData_["Xmp.video.FileSize"] = io_->size() / bytesMB;
  626|  1.36k|  xmpData_["Xmp.video.MimeType"] = mimeType();
  627|       |
  628|  81.5k|  while (continueTraversing_)
  ------------------
  |  Branch (628:10): [True: 80.1k, False: 1.36k]
  ------------------
  629|  80.1k|    decodeBlock();
  630|       |
  631|  1.36k|  xmpData_["Xmp.video.AspectRatio"] = getAspectRatio(width_, height_);
  632|  1.36k|}
_ZN5Exiv213MatroskaVideo11decodeBlockEv:
  634|  80.1k|void MatroskaVideo::decodeBlock() {
  635|  80.1k|  byte buf[8];
  636|  80.1k|  io_->read(buf, 1);
  637|       |
  638|  80.1k|  if (io_->eof()) {
  ------------------
  |  Branch (638:7): [True: 122, False: 80.0k]
  ------------------
  639|    122|    continueTraversing_ = false;
  640|    122|    return;
  641|    122|  }
  642|       |
  643|  80.0k|  uint32_t block_size = findBlockSize(buf[0]);  // 0-8
  644|  80.0k|  if (block_size > 0)
  ------------------
  |  Branch (644:7): [True: 79.8k, False: 201]
  ------------------
  645|  79.8k|    io_->readOrThrow(buf + 1, block_size - 1, ErrorCode::kerCorruptedMetadata);
  646|       |
  647|  80.0k|  auto tag_id = returnTagValue(buf, block_size);
  648|  80.0k|  const MatroskaTag* tag = Exiv2::find(matroskaTags, tag_id);
  649|       |
  650|  80.0k|  if (!tag) {
  ------------------
  |  Branch (650:7): [True: 653, False: 79.3k]
  ------------------
  651|    653|    continueTraversing_ = false;
  652|    653|    return;
  653|    653|  }
  654|       |
  655|       |  // tag->dump(std::cout);
  656|       |
  657|  79.3k|  if (tag->_id == Cues || tag->_id == Cluster) {
  ------------------
  |  Branch (657:7): [True: 249, False: 79.1k]
  |  Branch (657:27): [True: 0, False: 79.1k]
  ------------------
  658|      1|    continueTraversing_ = false;
  659|      1|    return;
  660|      1|  }
  661|       |
  662|  79.3k|  io_->readOrThrow(buf, 1, ErrorCode::kerCorruptedMetadata);
  663|  79.3k|  block_size = findBlockSize(buf[0]);  // 0-8
  664|       |
  665|  79.3k|  if (block_size > 0)
  ------------------
  |  Branch (665:7): [True: 79.0k, False: 323]
  ------------------
  666|  79.0k|    io_->readOrThrow(buf + 1, block_size - 1, ErrorCode::kerCorruptedMetadata);
  667|  79.3k|  size_t size = returnTagValue(buf, block_size);
  668|       |
  669|  79.3k|  if (tag->isComposite() && !tag->isSkipped())
  ------------------
  |  Branch (669:7): [True: 48.7k, False: 30.6k]
  |  Branch (669:29): [True: 48.7k, False: 0]
  ------------------
  670|  48.7k|    return;
  671|       |
  672|  30.6k|  const size_t bufMaxSize = 200;
  673|       |
  674|  30.6k|#ifndef SUPPRESS_WARNINGS
  675|  30.6k|  if (!tag->isSkipped() && size > bufMaxSize) {
  ------------------
  |  Branch (675:7): [True: 28.7k, False: 1.96k]
  |  Branch (675:28): [True: 54, False: 28.6k]
  ------------------
  676|     54|    EXV_WARNING << "Size " << size << " of Matroska tag 0x" << std::hex << tag->_id << std::dec << " is greater than "
  ------------------
  |  |  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()
  ------------------
  677|      0|                << bufMaxSize << ": ignoring it.\n";
  678|     54|  }
  679|  30.6k|#endif
  680|  30.6k|  if (tag->isSkipped() || size > bufMaxSize) {
  ------------------
  |  Branch (680:7): [True: 1.96k, False: 28.7k]
  |  Branch (680:27): [True: 54, False: 28.6k]
  ------------------
  681|  1.68k|    io_->seek(size, BasicIo::cur);
  682|  1.68k|    return;
  683|  1.68k|  }
  684|       |
  685|  28.9k|  DataBuf buf2(bufMaxSize + 1);
  686|  28.9k|  io_->readOrThrow(buf2.data(), size, ErrorCode::kerCorruptedMetadata);
  687|  28.9k|  switch (tag->_type) {
  688|  6.06k|    case InternalField:
  ------------------
  |  Branch (688:5): [True: 6.06k, False: 22.9k]
  ------------------
  689|  6.06k|      decodeInternalTags(tag, buf2.data());
  690|  6.06k|      break;
  691|  2.61k|    case String:
  ------------------
  |  Branch (691:5): [True: 2.61k, False: 26.3k]
  ------------------
  692|  2.61k|    case Utf8:
  ------------------
  |  Branch (692:5): [True: 0, False: 28.9k]
  ------------------
  693|  2.61k|      decodeStringTags(tag, buf2.data());
  694|  2.61k|      break;
  695|  6.86k|    case Integer:
  ------------------
  |  Branch (695:5): [True: 6.86k, False: 22.1k]
  ------------------
  696|  8.47k|    case UInteger:
  ------------------
  |  Branch (696:5): [True: 1.61k, False: 27.3k]
  ------------------
  697|  8.47k|      decodeIntegerTags(tag, buf2.data());
  698|  8.47k|      break;
  699|  9.44k|    case Boolean:
  ------------------
  |  Branch (699:5): [True: 9.44k, False: 19.5k]
  ------------------
  700|  9.44k|      decodeBooleanTags(tag, buf2.data());
  701|  9.44k|      break;
  702|  1.14k|    case Date:
  ------------------
  |  Branch (702:5): [True: 1.14k, False: 27.8k]
  ------------------
  703|  1.14k|      decodeDateTags(tag, buf2.data(), size);
  704|  1.14k|      break;
  705|    687|    case Float:
  ------------------
  |  Branch (705:5): [True: 687, False: 28.2k]
  ------------------
  706|    687|      decodeFloatTags(tag, buf2.data());
  707|    687|      break;
  708|      0|    case Binary:
  ------------------
  |  Branch (708:5): [True: 0, False: 28.9k]
  ------------------
  709|      0|      break;
  710|      0|    case Master:
  ------------------
  |  Branch (710:5): [True: 0, False: 28.9k]
  ------------------
  711|      0|      break;
  712|      0|    default:
  ------------------
  |  Branch (712:5): [True: 0, False: 28.9k]
  ------------------
  713|      0|      break;
  714|  28.9k|  }
  715|  28.9k|}  // MatroskaVideo::decodeBlock
_ZN5Exiv213MatroskaVideo18decodeInternalTagsEPKNS_8Internal11MatroskaTagEPKh:
  717|  6.06k|void MatroskaVideo::decodeInternalTags(const MatroskaTag* tag, const byte* buf) {
  718|  6.06k|  uint64_t key = getULongLong(buf, bigEndian);
  719|  6.06k|  if (!key)
  ------------------
  |  Branch (719:7): [True: 47, False: 6.01k]
  ------------------
  720|     47|    return;
  721|       |
  722|  6.01k|  auto internalMt = [=]() -> const MatroskaTag* {
  723|  6.01k|    switch (tag->_id) {
  724|  6.01k|      case Xmp_video_VideoScanTpye:
  725|  6.01k|        return Exiv2::find(videoScanType, key);
  726|  6.01k|      case Xmp_audio_ChannelType:
  727|  6.01k|        return Exiv2::find(audioChannels, key);
  728|  6.01k|      case Xmp_video_ContentCompressAlgo:
  729|  6.01k|        return Exiv2::find(compressionAlgorithm, key);
  730|  6.01k|      case Xmp_video_ContentEncryptAlgo:
  731|  6.01k|        return Exiv2::find(encryptionAlgorithm, key);
  732|  6.01k|      case Xmp_video_ContentSignAlgo_1:
  733|  6.01k|      case Xmp_video_ContentSignAlgo_2:
  734|  6.01k|        return Exiv2::find(contentSignatureAlgorithm, key);
  735|  6.01k|      case Xmp_video_ContentSignHashAlgo_1:
  736|  6.01k|      case Xmp_video_ContentSignHashAlgo_2:
  737|  6.01k|        return Exiv2::find(contentSignatureHashAlgorithm, key);
  738|  6.01k|      case Xmp_video_ContentEncodingType:
  739|  6.01k|        return Exiv2::find(encodingType, key);
  740|  6.01k|      case Xmp_video_DisplayUnit:
  741|  6.01k|        return Exiv2::find(displayUnit, key);
  742|  6.01k|      case Xmp_video_AspectRatioType:
  743|  6.01k|        return Exiv2::find(aspectRatioType, key);
  744|  6.01k|      case Xmp_video_PhysicalEquivalent:
  745|  6.01k|        return Exiv2::find(chapterPhysicalEquivalent, key);
  746|  6.01k|      case Xmp_video_TranslateCodec:
  747|  6.01k|        return Exiv2::find(chapterTranslateCodec, key);
  748|  6.01k|      case Video_Audio_CodecID:
  749|  6.01k|        return Exiv2::find(trackCodec, key);
  750|  6.01k|      case Video_Audio_CodecName:
  751|  6.01k|        return Exiv2::find(codecInfo, key);
  752|  6.01k|      case CodecDownloadURL:
  753|  6.01k|      case CodecInfoURL:
  754|  6.01k|        return Exiv2::find(codecDownloadUrl, key);
  755|  6.01k|    }
  756|  6.01k|    return nullptr;
  757|  6.01k|  }();
  758|  6.01k|  if (internalMt) {
  ------------------
  |  Branch (758:7): [True: 1.86k, False: 4.15k]
  ------------------
  759|  1.86k|    xmpData_[tag->_label] = internalMt->_label;
  760|  4.15k|  } else {
  761|  4.15k|    xmpData_[tag->_label] = key;
  762|  4.15k|  }
  763|  6.01k|}
_ZN5Exiv213MatroskaVideo16decodeStringTagsEPKNS_8Internal11MatroskaTagEPKh:
  765|  2.61k|void MatroskaVideo::decodeStringTags(const MatroskaTag* tag, const byte* buf) {
  766|  2.61k|  if (tag->_id == TrackNumber) {
  ------------------
  |  Branch (766:7): [True: 207, False: 2.41k]
  ------------------
  767|    207|    track_count_++;
  768|    207|    xmpData_[tag->_label] = track_count_;
  769|  2.41k|  } else {
  770|  2.41k|    xmpData_[tag->_label] = buf;
  771|  2.41k|  }
  772|  2.61k|}
_ZN5Exiv213MatroskaVideo17decodeIntegerTagsEPKNS_8Internal11MatroskaTagEPKh:
  774|  8.47k|void MatroskaVideo::decodeIntegerTags(const MatroskaTag* tag, const byte* buf) {
  775|  8.47k|  uint64_t value = getULongLong(buf, bigEndian);
  776|  8.47k|  if (!value)
  ------------------
  |  Branch (776:7): [True: 7.21k, False: 1.26k]
  ------------------
  777|  7.21k|    return;
  778|       |
  779|  1.26k|  if (tag->_id == Xmp_video_Width_1 || tag->_id == Xmp_video_Width_2)
  ------------------
  |  Branch (779:7): [True: 685, False: 577]
  |  Branch (779:40): [True: 223, False: 354]
  ------------------
  780|    908|    width_ = value;
  781|  1.26k|  if (tag->_id == Xmp_video_Height_1 || tag->_id == Xmp_video_Height_2)
  ------------------
  |  Branch (781:7): [True: 163, False: 1.09k]
  |  Branch (781:41): [True: 99, False: 1.00k]
  ------------------
  782|    262|    height_ = value;
  783|  1.26k|  xmpData_[tag->_label] = value;
  784|  1.26k|}
_ZN5Exiv213MatroskaVideo17decodeBooleanTagsEPKNS_8Internal11MatroskaTagEPKh:
  786|  9.44k|void MatroskaVideo::decodeBooleanTags(const MatroskaTag* tag, const byte* buf) {
  787|  9.44k|  const MatroskaTag* internalMt = nullptr;
  788|  9.44k|  uint64_t key = getULongLong(buf, bigEndian);
  789|  9.44k|  if (!key)
  ------------------
  |  Branch (789:7): [True: 1.59k, False: 7.84k]
  ------------------
  790|  1.59k|    return;
  791|       |
  792|  7.84k|  switch (tag->_id) {
  793|  3.38k|    case TrackType:  // this tags is used internally only to deduce the type of track (video or audio)
  ------------------
  |  Branch (793:5): [True: 3.38k, False: 4.46k]
  ------------------
  794|  3.38k|      if (auto f = Exiv2::find(matroskaTrackType, key)) {
  ------------------
  |  Branch (794:16): [True: 312, False: 3.07k]
  ------------------
  795|    312|        stream_ = f->_id;
  796|    312|      }
  797|  3.38k|      break;
  798|    148|    case TrackUsed:
  ------------------
  |  Branch (798:5): [True: 148, False: 7.69k]
  ------------------
  799|    148|      internalMt = Exiv2::find(trackEnable, key);
  800|    148|      break;
  801|  1.02k|    case TrackDefault:
  ------------------
  |  Branch (801:5): [True: 1.02k, False: 6.81k]
  ------------------
  802|  1.02k|      internalMt = Exiv2::find(defaultOn, key);
  803|  1.02k|      break;
  804|  1.72k|    case TrackForced:
  ------------------
  |  Branch (804:5): [True: 1.72k, False: 6.12k]
  ------------------
  805|  1.72k|      internalMt = Exiv2::find(trackForced, key);
  806|  1.72k|      break;
  807|    342|    case TrackLacing:
  ------------------
  |  Branch (807:5): [True: 342, False: 7.50k]
  ------------------
  808|    342|      internalMt = Exiv2::find(trackLacing, key);
  809|    342|      break;
  810|    693|    case CodecDecodeAll:
  ------------------
  |  Branch (810:5): [True: 693, False: 7.15k]
  ------------------
  811|    693|      internalMt = Exiv2::find(codecDecodeAll, key);
  812|    693|      break;
  813|    525|    case CodecSettings:
  ------------------
  |  Branch (813:5): [True: 525, False: 7.32k]
  ------------------
  814|    525|      internalMt = Exiv2::find(codecSettings, key);
  815|    525|      break;
  816|      6|    case Xmp_video_TagDefault:
  ------------------
  |  Branch (816:5): [True: 6, False: 7.84k]
  ------------------
  817|      6|      internalMt = tag;
  818|      6|      break;
  819|      0|    default:
  ------------------
  |  Branch (819:5): [True: 0, False: 7.84k]
  ------------------
  820|      0|      break;
  821|  7.84k|  }
  822|       |
  823|  7.84k|  if (internalMt) {
  ------------------
  |  Branch (823:7): [True: 1.73k, False: 6.11k]
  ------------------
  824|  1.73k|    xmpData_[internalMt->_label] = "Yes";
  825|  1.73k|  }
  826|  7.84k|}
_ZN5Exiv213MatroskaVideo14decodeDateTagsEPKNS_8Internal11MatroskaTagEPKhm:
  828|  1.14k|void MatroskaVideo::decodeDateTags(const MatroskaTag* tag, const byte* buf, size_t size) {
  829|  1.14k|  int64_t duration_in_ms = 0;
  830|  1.14k|  uint64_t value;
  831|  1.14k|  switch (tag->_id) {
  832|    194|    case Xmp_video_Duration:
  ------------------
  |  Branch (832:5): [True: 194, False: 955]
  ------------------
  833|    194|      if (size <= 4) {
  ------------------
  |  Branch (833:11): [True: 55, False: 139]
  ------------------
  834|     55|        duration_in_ms = std::llround(getFloat(buf, bigEndian) * time_code_scale_ * 1000.0);
  835|    139|      } else {
  836|    139|        duration_in_ms = std::llround(getDouble(buf, bigEndian) * time_code_scale_ * 1000);
  837|    139|      }
  838|    194|      xmpData_[tag->_label] = duration_in_ms;
  839|    194|      break;
  840|    844|    case Xmp_video_DateUTC:
  ------------------
  |  Branch (840:5): [True: 844, False: 305]
  ------------------
  841|    844|      value = getULongLong(buf, bigEndian);
  842|    844|      if (!value)
  ------------------
  |  Branch (842:11): [True: 337, False: 507]
  ------------------
  843|    337|        return;
  844|    507|      duration_in_ms = value / 1000000000;
  845|    507|      xmpData_[tag->_label] = duration_in_ms;
  846|    507|      break;
  847|       |
  848|    111|    case TimecodeScale:
  ------------------
  |  Branch (848:5): [True: 111, False: 1.03k]
  ------------------
  849|    111|      value = getULongLong(buf, bigEndian);
  850|    111|      if (!value)
  ------------------
  |  Branch (850:11): [True: 38, False: 73]
  ------------------
  851|     38|        return;
  852|     73|      time_code_scale_ = static_cast<double>(value) / static_cast<double>(1000000000);
  853|     73|      xmpData_[tag->_label] = time_code_scale_;
  854|     73|      break;
  855|      0|    default:
  ------------------
  |  Branch (855:5): [True: 0, False: 1.14k]
  ------------------
  856|      0|      break;
  857|  1.14k|  }
  858|  1.14k|}
_ZN5Exiv213MatroskaVideo15decodeFloatTagsEPKNS_8Internal11MatroskaTagEPKh:
  860|    687|void MatroskaVideo::decodeFloatTags(const MatroskaTag* tag, const byte* buf) {
  861|    687|  xmpData_[tag->_label] = getFloat(buf, bigEndian);
  862|       |
  863|    687|  switch (tag->_id) {
  864|     40|    case Xmp_audio_SampleRate:
  ------------------
  |  Branch (864:5): [True: 40, False: 647]
  ------------------
  865|    121|    case Xmp_audio_OutputSampleRate:
  ------------------
  |  Branch (865:5): [True: 81, False: 606]
  ------------------
  866|    121|      xmpData_[tag->_label] = getFloat(buf, bigEndian);
  867|    121|      break;
  868|      0|    case VideoFrameRate_DefaultDuration:
  ------------------
  |  Branch (868:5): [True: 0, False: 687]
  ------------------
  869|    566|    case Xmp_video_FrameRate: {
  ------------------
  |  Branch (869:5): [True: 566, False: 121]
  ------------------
  870|    566|      uint64_t key = getULongLong(buf, bigEndian);
  871|    566|      if (!key)
  ------------------
  |  Branch (871:11): [True: 8, False: 558]
  ------------------
  872|      8|        return;
  873|    558|      if (auto internalMt = Exiv2::find(streamRate, key)) {
  ------------------
  |  Branch (873:16): [True: 313, False: 245]
  ------------------
  874|    313|        double frame_rate = 0;
  875|    313|        switch (stream_) {
  876|     93|          case 1:  // video
  ------------------
  |  Branch (876:11): [True: 93, False: 220]
  ------------------
  877|     93|            frame_rate = 1000000000.0 / static_cast<double>(key);
  878|     93|            break;
  879|     10|          case 2:  // audio
  ------------------
  |  Branch (879:11): [True: 10, False: 303]
  ------------------
  880|     10|            frame_rate = static_cast<double>(key) / 1000;
  881|     10|            break;
  882|    210|          default:
  ------------------
  |  Branch (882:11): [True: 210, False: 103]
  ------------------
  883|    210|            break;
  884|    313|        }
  885|    313|        if (std::isgreater(frame_rate, 0.0))
  ------------------
  |  Branch (885:13): [True: 103, False: 210]
  ------------------
  886|    103|          xmpData_[internalMt->_label] = frame_rate;
  887|    313|      } else
  888|    245|        xmpData_[tag->_label] = "Variable Bit Rate";
  889|    558|    } break;
  890|    558|    default:
  ------------------
  |  Branch (890:5): [True: 0, False: 687]
  ------------------
  891|      0|      xmpData_[tag->_label] = getFloat(buf, bigEndian);
  892|      0|      break;
  893|    687|  }
  894|    687|}
_ZN5Exiv213MatroskaVideo13findBlockSizeEh:
  896|   159k|uint32_t MatroskaVideo::findBlockSize(byte b) {
  897|   159k|  if (b & 128)
  ------------------
  |  Branch (897:7): [True: 134k, False: 24.3k]
  ------------------
  898|   134k|    return 1;
  899|  24.3k|  if (b & 64)
  ------------------
  |  Branch (899:7): [True: 13.1k, False: 11.1k]
  ------------------
  900|  13.1k|    return 2;
  901|  11.1k|  if (b & 32)
  ------------------
  |  Branch (901:7): [True: 3.82k, False: 7.36k]
  ------------------
  902|  3.82k|    return 3;
  903|  7.36k|  if (b & 16)
  ------------------
  |  Branch (903:7): [True: 4.26k, False: 3.09k]
  ------------------
  904|  4.26k|    return 4;
  905|  3.09k|  if (b & 8)
  ------------------
  |  Branch (905:7): [True: 633, False: 2.46k]
  ------------------
  906|    633|    return 5;
  907|  2.46k|  if (b & 4)
  ------------------
  |  Branch (907:7): [True: 488, False: 1.97k]
  ------------------
  908|    488|    return 6;
  909|  1.97k|  if (b & 2)
  ------------------
  |  Branch (909:7): [True: 958, False: 1.02k]
  ------------------
  910|    958|    return 7;
  911|  1.02k|  if (b & 1)
  ------------------
  |  Branch (911:7): [True: 776, False: 244]
  ------------------
  912|    776|    return 8;
  913|    244|  return 0;
  914|  1.02k|}
_ZN5Exiv214newMkvInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  916|  1.36k|Image::UniquePtr newMkvInstance(BasicIo::UniquePtr io, bool /*create*/) {
  917|  1.36k|  auto image = std::make_unique<MatroskaVideo>(std::move(io));
  918|  1.36k|  if (!image->good()) {
  ------------------
  |  Branch (918:7): [True: 0, False: 1.36k]
  ------------------
  919|      0|    return nullptr;
  920|      0|  }
  921|  1.36k|  return image;
  922|  1.36k|}
_ZN5Exiv29isMkvTypeERNS_7BasicIoEb:
  924|  9.74k|bool isMkvType(BasicIo& iIo, bool advance) {
  925|  9.74k|  bool result = true;
  926|  9.74k|  byte tmpBuf[4];
  927|  9.74k|  iIo.read(tmpBuf, 4);
  928|       |
  929|  9.74k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (929:7): [True: 0, False: 9.74k]
  |  Branch (929:22): [True: 104, False: 9.64k]
  ------------------
  930|    104|    return false;
  931|       |
  932|  9.64k|  if (0x1a != tmpBuf[0] || 0x45 != tmpBuf[1] || 0xdf != tmpBuf[2] || 0xa3 != tmpBuf[3]) {
  ------------------
  |  Branch (932:7): [True: 5.53k, False: 4.11k]
  |  Branch (932:28): [True: 10, False: 4.10k]
  |  Branch (932:49): [True: 6, False: 4.09k]
  |  Branch (932:70): [True: 12, False: 4.08k]
  ------------------
  933|  5.56k|    result = false;
  934|  5.56k|  }
  935|       |
  936|  9.64k|  if (!advance || !result)
  ------------------
  |  Branch (936:7): [True: 9.64k, False: 0]
  |  Branch (936:19): [True: 0, False: 0]
  ------------------
  937|  9.64k|    iIo.seek(0, BasicIo::beg);
  938|  9.64k|  return result;
  939|  9.74k|}
matroskavideo.cpp:_ZN5Exiv28InternalL14returnTagValueEPKhm:
  582|   159k|[[nodiscard]] static size_t returnTagValue(const byte* buf, size_t size) {
  583|   159k|  enforce(size > 0 && size <= 8, Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (583:11): [True: 158k, False: 244]
  |  Branch (583:23): [True: 158k, False: 0]
  ------------------
  584|       |
  585|   159k|  size_t b0 = buf[0] & (0xff >> size);
  586|   159k|  size_t tag = b0 << ((size - 1) * 8);
  587|   208k|  for (size_t i = 1; i < size; ++i) {
  ------------------
  |  Branch (587:22): [True: 49.5k, False: 159k]
  ------------------
  588|  49.5k|    tag |= static_cast<size_t>(buf[i]) << ((size - i - 1) * 8);
  589|  49.5k|  }
  590|       |
  591|   159k|  return tag;
  592|   159k|}
matroskavideo.cpp:_ZZN5Exiv213MatroskaVideo18decodeInternalTagsEPKNS_8Internal11MatroskaTagEPKhENK3$_0clEv:
  722|  6.01k|  auto internalMt = [=]() -> const MatroskaTag* {
  723|  6.01k|    switch (tag->_id) {
  ------------------
  |  Branch (723:13): [True: 6.01k, False: 0]
  ------------------
  724|  1.26k|      case Xmp_video_VideoScanTpye:
  ------------------
  |  Branch (724:7): [True: 1.26k, False: 4.75k]
  ------------------
  725|  1.26k|        return Exiv2::find(videoScanType, key);
  726|    496|      case Xmp_audio_ChannelType:
  ------------------
  |  Branch (726:7): [True: 496, False: 5.52k]
  ------------------
  727|    496|        return Exiv2::find(audioChannels, key);
  728|    431|      case Xmp_video_ContentCompressAlgo:
  ------------------
  |  Branch (728:7): [True: 431, False: 5.58k]
  ------------------
  729|    431|        return Exiv2::find(compressionAlgorithm, key);
  730|    233|      case Xmp_video_ContentEncryptAlgo:
  ------------------
  |  Branch (730:7): [True: 233, False: 5.78k]
  ------------------
  731|    233|        return Exiv2::find(encryptionAlgorithm, key);
  732|    142|      case Xmp_video_ContentSignAlgo_1:
  ------------------
  |  Branch (732:7): [True: 142, False: 5.87k]
  ------------------
  733|    227|      case Xmp_video_ContentSignAlgo_2:
  ------------------
  |  Branch (733:7): [True: 85, False: 5.93k]
  ------------------
  734|    227|        return Exiv2::find(contentSignatureAlgorithm, key);
  735|     24|      case Xmp_video_ContentSignHashAlgo_1:
  ------------------
  |  Branch (735:7): [True: 24, False: 5.99k]
  ------------------
  736|  1.12k|      case Xmp_video_ContentSignHashAlgo_2:
  ------------------
  |  Branch (736:7): [True: 1.10k, False: 4.91k]
  ------------------
  737|  1.12k|        return Exiv2::find(contentSignatureHashAlgorithm, key);
  738|     42|      case Xmp_video_ContentEncodingType:
  ------------------
  |  Branch (738:7): [True: 42, False: 5.97k]
  ------------------
  739|     42|        return Exiv2::find(encodingType, key);
  740|    450|      case Xmp_video_DisplayUnit:
  ------------------
  |  Branch (740:7): [True: 450, False: 5.56k]
  ------------------
  741|    450|        return Exiv2::find(displayUnit, key);
  742|    220|      case Xmp_video_AspectRatioType:
  ------------------
  |  Branch (742:7): [True: 220, False: 5.79k]
  ------------------
  743|    220|        return Exiv2::find(aspectRatioType, key);
  744|  1.33k|      case Xmp_video_PhysicalEquivalent:
  ------------------
  |  Branch (744:7): [True: 1.33k, False: 4.68k]
  ------------------
  745|  1.33k|        return Exiv2::find(chapterPhysicalEquivalent, key);
  746|    162|      case Xmp_video_TranslateCodec:
  ------------------
  |  Branch (746:7): [True: 162, False: 5.85k]
  ------------------
  747|    162|        return Exiv2::find(chapterTranslateCodec, key);
  748|      0|      case Video_Audio_CodecID:
  ------------------
  |  Branch (748:7): [True: 0, False: 6.01k]
  ------------------
  749|      0|        return Exiv2::find(trackCodec, key);
  750|     20|      case Video_Audio_CodecName:
  ------------------
  |  Branch (750:7): [True: 20, False: 5.99k]
  ------------------
  751|     20|        return Exiv2::find(codecInfo, key);
  752|      6|      case CodecDownloadURL:
  ------------------
  |  Branch (752:7): [True: 6, False: 6.01k]
  ------------------
  753|     15|      case CodecInfoURL:
  ------------------
  |  Branch (753:7): [True: 9, False: 6.00k]
  ------------------
  754|     15|        return Exiv2::find(codecDownloadUrl, key);
  755|  6.01k|    }
  756|      0|    return nullptr;
  757|  6.01k|  }();

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

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

_ZN5Exiv28Internal16MinoltaMakerNote7tagListEv:
   25|   154k|  static constexpr auto tagList() {
   26|   154k|    return tagInfo_;
   27|   154k|  }
_ZN5Exiv28Internal16MinoltaMakerNote11tagListCs5DEv:
   37|   518k|  static constexpr auto tagListCs5D() {
   38|   518k|    return tagInfoCs5D_;
   39|   518k|  }
_ZN5Exiv28Internal16MinoltaMakerNote11tagListCs7DEv:
   33|   692k|  static constexpr auto tagListCs7D() {
   34|   692k|    return tagInfoCs7D_;
   35|   692k|  }
_ZN5Exiv28Internal16MinoltaMakerNote12tagListCsStdEv:
   29|   215k|  static constexpr auto tagListCsStd() {
   30|   215k|    return tagInfoCsStd_;
   31|   215k|  }
_ZN5Exiv28Internal16MinoltaMakerNote13tagListCsA100Ev:
   41|  35.4k|  static constexpr auto tagListCsA100() {
   42|  35.4k|    return tagInfoCsA100_;
   43|  35.4k|  }

_ZN5Exiv28MrwImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   24|    121|    Image(ImageType::mrw, mdExif | mdIptc | mdXmp, std::move(io)) {
   25|    121|}
_ZNK5Exiv28MrwImage10pixelWidthEv:
   31|      6|uint32_t MrwImage::pixelWidth() const {
   32|      6|  auto imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.Image.ImageWidth"));
   33|      6|  if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
  ------------------
  |  Branch (33:7): [True: 0, False: 6]
  |  Branch (33:7): [True: 0, False: 6]
  |  Branch (33:40): [True: 0, False: 0]
  ------------------
   34|      0|    return imageWidth->toUint32();
   35|      0|  }
   36|      6|  return 0;
   37|      6|}
_ZNK5Exiv28MrwImage11pixelHeightEv:
   39|      6|uint32_t MrwImage::pixelHeight() const {
   40|      6|  auto imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.Image.ImageLength"));
   41|      6|  if (imageHeight != exifData_.end() && imageHeight->count() > 0) {
  ------------------
  |  Branch (41:7): [True: 0, False: 6]
  |  Branch (41:7): [True: 0, False: 6]
  |  Branch (41:41): [True: 0, False: 0]
  ------------------
   42|      0|    return imageHeight->toUint32();
   43|      0|  }
   44|      6|  return 0;
   45|      6|}
_ZN5Exiv28MrwImage12readMetadataEv:
   62|    121|void MrwImage::readMetadata() {
   63|       |#ifdef EXIV2_DEBUG_MESSAGES
   64|       |  std::cerr << "Reading MRW file " << io_->path() << "\n";
   65|       |#endif
   66|    121|  if (io_->open() != 0) {
  ------------------
  |  Branch (66:7): [True: 0, False: 121]
  ------------------
   67|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   68|      0|  }
   69|    121|  IoCloser closer(*io_);
   70|       |  // Ensure that this is the correct image type
   71|    121|  if (!isMrwType(*io_, false)) {
  ------------------
  |  Branch (71:7): [True: 0, False: 121]
  ------------------
   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|    121|  clearMetadata();
   77|       |
   78|       |  // Find the TTW block and read it into a buffer
   79|    121|  uint32_t const len = 8;
   80|    121|  byte tmp[len];
   81|    121|  io_->read(tmp, len);
   82|    121|  uint32_t pos = len;
   83|    121|  uint32_t const end = getULong(tmp + 4, bigEndian);
   84|       |
   85|    121|  pos += len;
   86|    121|  Internal::enforce(pos <= end, ErrorCode::kerFailedToReadImageData);
   87|    121|  io_->read(tmp, len);
   88|    121|  if (io_->error() || io_->eof())
  ------------------
  |  Branch (88:7): [True: 6, False: 115]
  |  Branch (88:23): [True: 0, False: 115]
  ------------------
   89|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
   90|       |
   91|    445|  while (memcmp(tmp + 1, "TTW", 3) != 0) {
  ------------------
  |  Branch (91:10): [True: 324, False: 121]
  ------------------
   92|    324|    uint32_t const siz = getULong(tmp + 4, bigEndian);
   93|    324|    Internal::enforce(siz <= end - pos, ErrorCode::kerFailedToReadImageData);
   94|    324|    pos += siz;
   95|    324|    io_->seek(siz, BasicIo::cur);
   96|    324|    Internal::enforce(!io_->error() && !io_->eof(), ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (96:23): [True: 305, False: 19]
  |  Branch (96:40): [True: 260, False: 45]
  ------------------
   97|       |
   98|    324|    Internal::enforce(len <= end - pos, ErrorCode::kerFailedToReadImageData);
   99|    324|    pos += len;
  100|    324|    io_->read(tmp, len);
  101|    324|    Internal::enforce(!io_->error() && !io_->eof(), ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (101:23): [True: 257, False: 67]
  |  Branch (101:40): [True: 238, False: 19]
  ------------------
  102|    324|  }
  103|       |
  104|    121|  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|    121|  Internal::enforce(siz <= io_->size(), ErrorCode::kerFailedToReadImageData);
  111|    121|  DataBuf buf(siz);
  112|    121|  io_->read(buf.data(), buf.size());
  113|    121|  Internal::enforce(!io_->error() && !io_->eof(), ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (113:21): [True: 18, False: 103]
  |  Branch (113:38): [True: 17, False: 1]
  ------------------
  114|       |
  115|    121|  ByteOrder bo = TiffParser::decode(exifData_, iptcData_, xmpData_, buf.c_data(), buf.size());
  116|    121|  setByteOrder(bo);
  117|    121|}  // MrwImage::readMetadata
_ZN5Exiv214newMrwInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  126|    121|Image::UniquePtr newMrwInstance(BasicIo::UniquePtr io, bool create) {
  127|    121|  auto image = std::make_unique<MrwImage>(std::move(io), create);
  128|    121|  if (!image->good()) {
  ------------------
  |  Branch (128:7): [True: 0, False: 121]
  ------------------
  129|      0|    return nullptr;
  130|      0|  }
  131|    121|  return image;
  132|    121|}
_ZN5Exiv29isMrwTypeERNS_7BasicIoEb:
  134|  31.3k|bool isMrwType(BasicIo& iIo, bool advance) {
  135|  31.3k|  const int32_t len = 4;
  136|  31.3k|  const std::array<byte, len> MrwId{0x0, 0x4d, 0x52, 0x4d};
  137|  31.3k|  std::array<byte, len> buf;
  138|  31.3k|  iIo.read(buf.data(), len);
  139|  31.3k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (139:7): [True: 0, False: 31.3k]
  |  Branch (139:22): [True: 63, False: 31.3k]
  ------------------
  140|     63|    return false;
  141|     63|  }
  142|  31.3k|  bool rc = buf == MrwId;
  143|  31.3k|  if (!advance || !rc) {
  ------------------
  |  Branch (143:7): [True: 31.3k, False: 0]
  |  Branch (143:19): [True: 0, False: 0]
  ------------------
  144|  31.3k|    iIo.seek(-len, BasicIo::cur);
  145|  31.3k|  }
  146|  31.3k|  return rc;
  147|  31.3k|}

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

_ZN5Exiv28Internal15Nikon1MakerNote7tagListEv:
   38|  13.4k|  static constexpr auto tagList() {
   39|  13.4k|    return tagInfo_;
   40|  13.4k|  }
_ZN5Exiv28Internal15Nikon2MakerNote7tagListEv:
   71|  8.32k|  static constexpr auto tagList() {
   72|  8.32k|    return tagInfo_;
   73|  8.32k|  }
_ZN5Exiv28Internal15Nikon3MakerNote7tagListEv:
   91|  59.9k|  static constexpr auto tagList() {
   92|  59.9k|    return tagInfo_;
   93|  59.9k|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListVrEv:
   95|    907|  static constexpr auto tagListVr() {
   96|    907|    return tagInfoVr_;
   97|    907|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListPcEv:
   99|  1.47k|  static constexpr auto tagListPc() {
  100|  1.47k|    return tagInfoPc_;
  101|  1.47k|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListWtEv:
  103|    726|  static constexpr auto tagListWt() {
  104|    726|    return tagInfoWt_;
  105|    726|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListIiEv:
  107|  1.21k|  static constexpr auto tagListIi() {
  108|  1.21k|    return tagInfoIi_;
  109|  1.21k|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListAfEv:
  111|  1.56k|  static constexpr auto tagListAf() {
  112|  1.56k|    return tagInfoAf_;
  113|  1.56k|  }
_ZN5Exiv28Internal15Nikon3MakerNote11tagListAf21Ev:
  115|  3.37k|  static constexpr auto tagListAf21() {
  116|  3.37k|    return tagInfoAf21_;
  117|  3.37k|  }
_ZN5Exiv28Internal15Nikon3MakerNote11tagListAf22Ev:
  119|    839|  static constexpr auto tagListAf22() {
  120|    839|    return tagInfoAf22_;
  121|    839|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListAFTEv:
  123|  1.57k|  static constexpr auto tagListAFT() {
  124|  1.57k|    return tagInfoAFT_;
  125|  1.57k|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListFiEv:
  127|    119|  static constexpr auto tagListFi() {
  128|    119|    return tagInfoFi_;
  129|    119|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListMeEv:
  131|     64|  static constexpr auto tagListMe() {
  132|     64|    return tagInfoMe_;
  133|     64|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListFl1Ev:
  135|    274|  static constexpr auto tagListFl1() {
  136|    274|    return tagInfoFl1_;
  137|    274|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListFl2Ev:
  139|     38|  static constexpr auto tagListFl2() {
  140|     38|    return tagInfoFl2_;
  141|     38|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListFl3Ev:
  143|    254|  static constexpr auto tagListFl3() {
  144|    254|    return tagInfoFl3_;
  145|    254|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListFl6Ev:
  147|  1.51k|  static constexpr auto tagListFl6() {
  148|  1.51k|    return tagInfoFl6_;
  149|  1.51k|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListFl7Ev:
  151|  2.27k|  static constexpr auto tagListFl7() {
  152|  2.27k|    return tagInfoFl7_;
  153|  2.27k|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListSi1Ev:
  155|     14|  static constexpr auto tagListSi1() {
  156|     14|    return tagInfoSi1_;
  157|     14|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListSi2Ev:
  159|     20|  static constexpr auto tagListSi2() {
  160|     20|    return tagInfoSi2_;
  161|     20|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListSi5Ev:
  171|    691|  static constexpr auto tagListSi5() {
  172|    691|    return tagInfoSi5_;
  173|    691|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListCb1Ev:
  175|     22|  static constexpr auto tagListCb1() {
  176|     22|    return tagInfoCb1_;
  177|     22|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListCb2Ev:
  179|     34|  static constexpr auto tagListCb2() {
  180|     34|    return tagInfoCb2_;
  181|     34|  }
_ZN5Exiv28Internal15Nikon3MakerNote11tagListCb2aEv:
  183|     48|  static constexpr auto tagListCb2a() {
  184|     48|    return tagInfoCb2a_;
  185|     48|  }
_ZN5Exiv28Internal15Nikon3MakerNote11tagListCb2bEv:
  187|    157|  static constexpr auto tagListCb2b() {
  188|    157|    return tagInfoCb2b_;
  189|    157|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListCb3Ev:
  191|     23|  static constexpr auto tagListCb3() {
  192|     23|    return tagInfoCb3_;
  193|     23|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListCb4Ev:
  195|     56|  static constexpr auto tagListCb4() {
  196|     56|    return tagInfoCb4_;
  197|     56|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListLd1Ev:
  199|    225|  static constexpr auto tagListLd1() {
  200|    225|    return tagInfoLd1_;
  201|    225|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListLd2Ev:
  203|    338|  static constexpr auto tagListLd2() {
  204|    338|    return tagInfoLd2_;
  205|    338|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListLd3Ev:
  207|    225|  static constexpr auto tagListLd3() {
  208|    225|    return tagInfoLd3_;
  209|    225|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListLd4Ev:
  211|  8.47k|  static constexpr auto tagListLd4() {
  212|  8.47k|    return tagInfoLd4_;
  213|  8.47k|  }

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

_ZN5Exiv28Internal16OlympusMakerNote7tagListEv:
   33|   252k|  static constexpr auto tagList() {
   34|   252k|    return tagInfo_;
   35|   252k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListCsEv:
   37|   105k|  static constexpr auto tagListCs() {
   38|   105k|    return tagInfoCs_;
   39|   105k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListEqEv:
   41|  9.02k|  static constexpr auto tagListEq() {
   42|  9.02k|    return tagInfoEq_;
   43|  9.02k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListRdEv:
   45|  9.55k|  static constexpr auto tagListRd() {
   46|  9.55k|    return tagInfoRd_;
   47|  9.55k|  }
_ZN5Exiv28Internal16OlympusMakerNote10tagListRd2Ev:
   49|  8.55k|  static constexpr auto tagListRd2() {
   50|  8.55k|    return tagInfoRd2_;
   51|  8.55k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListIpEv:
   53|  6.29k|  static constexpr auto tagListIp() {
   54|  6.29k|    return tagInfoIp_;
   55|  6.29k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListFiEv:
   57|  8.44k|  static constexpr auto tagListFi() {
   58|  8.44k|    return tagInfoFi_;
   59|  8.44k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListFeEv:
   61|  6.80k|  static constexpr auto tagListFe() {
   62|  6.80k|    return tagInfoFe_;
   63|  6.80k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListRiEv:
   65|  14.8k|  static constexpr auto tagListRi() {
   66|  14.8k|    return tagInfoRi_;
   67|  14.8k|  }

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

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

_ZN5Exiv28Internal18PanasonicMakerNote11print0x000fERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  559|  1.21k|std::ostream& PanasonicMakerNote::print0x000f(std::ostream& os, const Value& value, const ExifData*) {
  560|  1.21k|  if (value.count() < 2 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (560:7): [True: 374, False: 842]
  |  Branch (560:28): [True: 32, False: 810]
  ------------------
  561|    406|    return os << value;
  562|    406|  }
  563|    810|  const auto l0 = value.toInt64(0);
  564|    810|  const auto l1 = value.toInt64(1);
  565|    810|  if (l0 == 0 && l1 == 1)
  ------------------
  |  Branch (565:7): [True: 170, False: 640]
  |  Branch (565:18): [True: 28, False: 142]
  ------------------
  566|     28|    os << _("Spot mode on or 9 area");
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  567|    782|  else if (l0 == 0 && l1 == 16)
  ------------------
  |  Branch (567:12): [True: 142, False: 640]
  |  Branch (567:23): [True: 12, False: 130]
  ------------------
  568|     12|    os << _("Spot mode off or 3-area (high speed)");
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  569|    770|  else if (l0 == 0 && l1 == 23)
  ------------------
  |  Branch (569:12): [True: 130, False: 640]
  |  Branch (569:23): [True: 24, False: 106]
  ------------------
  570|     24|    os << _("23-area");
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  571|    746|  else if (l0 == 0 && l1 == 49)
  ------------------
  |  Branch (571:12): [True: 106, False: 640]
  |  Branch (571:23): [True: 32, False: 74]
  ------------------
  572|     32|    os << _("49-area");
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  573|    714|  else if (l0 == 0 && l1 == 225)
  ------------------
  |  Branch (573:12): [True: 74, False: 640]
  |  Branch (573:23): [True: 18, False: 56]
  ------------------
  574|     18|    os << _("225-area");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  575|    696|  else if (l0 == 1 && l1 == 0)
  ------------------
  |  Branch (575:12): [True: 116, False: 580]
  |  Branch (575:23): [True: 36, False: 80]
  ------------------
  576|     36|    os << _("Spot focusing");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  577|    660|  else if (l0 == 1 && l1 == 1)
  ------------------
  |  Branch (577:12): [True: 80, False: 580]
  |  Branch (577:23): [True: 14, False: 66]
  ------------------
  578|     14|    os << _("5-area");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  579|    646|  else if (l0 == 16 && l1 == 0)
  ------------------
  |  Branch (579:12): [True: 104, False: 542]
  |  Branch (579:24): [True: 34, False: 70]
  ------------------
  580|     34|    os << _("1-area");
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  581|    612|  else if (l0 == 16 && l1 == 16)
  ------------------
  |  Branch (581:12): [True: 70, False: 542]
  |  Branch (581:24): [True: 30, False: 40]
  ------------------
  582|     30|    os << _("1-area (high speed)");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  583|    582|  else if (l0 == 32 && l1 == 0)
  ------------------
  |  Branch (583:12): [True: 174, False: 408]
  |  Branch (583:24): [True: 78, False: 96]
  ------------------
  584|     78|    os << _("3-area (auto)");
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  585|    504|  else if (l0 == 32 && l1 == 1)
  ------------------
  |  Branch (585:12): [True: 96, False: 408]
  |  Branch (585:24): [True: 18, False: 78]
  ------------------
  586|     18|    os << _("3-area (left)");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  587|    486|  else if (l0 == 32 && l1 == 2)
  ------------------
  |  Branch (587:12): [True: 78, False: 408]
  |  Branch (587:24): [True: 30, False: 48]
  ------------------
  588|     30|    os << _("3-area (center)");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  589|    456|  else if (l0 == 32 && l1 == 3)
  ------------------
  |  Branch (589:12): [True: 48, False: 408]
  |  Branch (589:24): [True: 18, False: 30]
  ------------------
  590|     18|    os << _("3-area (right)");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  591|    438|  else if (l0 == 64 && l1 == 0)
  ------------------
  |  Branch (591:12): [True: 22, False: 416]
  |  Branch (591:24): [True: 14, False: 8]
  ------------------
  592|     14|    os << _("Face Detect");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  593|    424|  else if (l0 == 128 && l1 == 0)
  ------------------
  |  Branch (593:12): [True: 102, False: 322]
  |  Branch (593:25): [True: 66, False: 36]
  ------------------
  594|     66|    os << _("Spot Focusing 2");
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  595|    358|  else if (l0 == 240 && l1 == 0)
  ------------------
  |  Branch (595:12): [True: 50, False: 308]
  |  Branch (595:25): [True: 18, False: 32]
  ------------------
  596|     18|    os << _("Tracking");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  597|    340|  else
  598|    340|    os << value;
  599|    810|  return os;
  600|  1.21k|}  // PanasonicMakerNote::print0x000f
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0023ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  603|    118|std::ostream& PanasonicMakerNote::print0x0023(std::ostream& os, const Value& value, const ExifData*) {
  604|    118|  return os << stringFormat("{:1}{}", value.toInt64() / 3, _(" EV"));
  ------------------
  |  |   18|    118|#define stringFormat std::format
  ------------------
                return os << stringFormat("{:1}{}", value.toInt64() / 3, _(" EV"));
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  605|    118|}  // PanasonicMakerNote::print0x0023
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0029ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  608|    124|std::ostream& PanasonicMakerNote::print0x0029(std::ostream& os, const Value& value, const ExifData*) {
  609|    124|  auto time = value.toInt64();
  610|    124|  return os << stringFormat("{:02}:{:02}:{:02}.{:02}", time / 360000, (time % 360000) / 6000, (time % 6000) / 100,
  ------------------
  |  |   18|    124|#define stringFormat std::format
  ------------------
  611|    124|                            time % 100);
  612|       |
  613|    124|}  // PanasonicMakerNote::print0x0029
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0033ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  616|    450|std::ostream& PanasonicMakerNote::print0x0033(std::ostream& os, const Value& value, const ExifData*) {
  617|    450|  if (value.toString() == "9999:99:99 00:00:00") {
  ------------------
  |  Branch (617:7): [True: 0, False: 450]
  ------------------
  618|      0|    os << N_("not set");
  ------------------
  |  |   41|      0|#define N_(String) String
  ------------------
  619|    450|  } else {
  620|    450|    os << value;
  621|    450|  }
  622|    450|  return os;
  623|    450|}  // PanasonicMakerNote::print0x0033
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0036ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  626|     56|std::ostream& PanasonicMakerNote::print0x0036(std::ostream& os, const Value& value, const ExifData*) {
  627|     56|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (627:7): [True: 14, False: 42]
  ------------------
  628|     14|    os << N_("not set");
  ------------------
  |  |   41|     14|#define N_(String) String
  ------------------
  629|     42|  else
  630|     42|    os << value;
  631|     56|  return os;
  632|     56|}  // PanasonicMakerNote::print0x0036
_ZN5Exiv28Internal18PanasonicMakerNote11print0x003cERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  635|    102|std::ostream& PanasonicMakerNote::print0x003c(std::ostream& os, const Value& value, const ExifData*) {
  636|    102|  switch (value.toInt64()) {
  637|     34|    case 65534:
  ------------------
  |  Branch (637:5): [True: 34, False: 68]
  ------------------
  638|     34|      os << N_("Intelligent ISO");
  ------------------
  |  |   41|     34|#define N_(String) String
  ------------------
  639|     34|      break;
  640|     22|    case 65535:
  ------------------
  |  Branch (640:5): [True: 22, False: 80]
  ------------------
  641|     22|      os << N_("n/a");
  ------------------
  |  |   41|     22|#define N_(String) String
  ------------------
  642|     22|      break;
  643|     46|    default:
  ------------------
  |  Branch (643:5): [True: 46, False: 56]
  ------------------
  644|     46|      os << value;
  645|     46|      break;
  646|    102|  }
  647|    102|  return os;
  648|    102|}  // PanasonicMakerNote::print0x003c
_ZN5Exiv28Internal18PanasonicMakerNote18printPanasonicTextERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  650|    258|std::ostream& PanasonicMakerNote::printPanasonicText(std::ostream& os, const Value& value, const ExifData*) {
  651|    258|  if (value.size() > 0 && value.typeId() == undefined) {
  ------------------
  |  Branch (651:7): [True: 258, False: 0]
  |  Branch (651:27): [True: 94, False: 164]
  ------------------
  652|  1.10k|    for (size_t i = 0; i < value.size(); i++) {
  ------------------
  |  Branch (652:24): [True: 1.06k, False: 40]
  ------------------
  653|  1.06k|      if (value.toInt64(i) == 0) {
  ------------------
  |  Branch (653:11): [True: 54, False: 1.00k]
  ------------------
  654|     54|        break;
  655|     54|      }
  656|  1.00k|      os << static_cast<char>(value.toInt64(i));
  657|  1.00k|    }
  658|     94|    return os;
  659|     94|  }
  660|       |
  661|    164|  return os << value;
  662|    258|}  // PanasonicMakerNote::printPanasonicText
_ZN5Exiv28Internal18PanasonicMakerNote13printPressureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  665|     68|std::ostream& PanasonicMakerNote::printPressure(std::ostream& os, const Value& value, const ExifData*) {
  666|     68|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (666:7): [True: 2, False: 66]
  ------------------
  667|      2|    os << N_("infinite");
  ------------------
  |  |   41|      2|#define N_(String) String
  ------------------
  668|     66|  else
  669|     66|    os << value << N_(" hPa");
  ------------------
  |  |   41|     66|#define N_(String) String
  ------------------
  670|     68|  return os;
  671|     68|}  // PanasonicMakerNote::printPressure
_ZN5Exiv28Internal18PanasonicMakerNote18printAccelerometerERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  673|     72|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|     72|  const auto i = static_cast<int16_t>(value.toInt64());
  676|     72|  return os << i;
  677|     72|}  // PanasonicMakerNote::printAccelerometer
_ZN5Exiv28Internal18PanasonicMakerNote14printRollAngleERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  679|     46|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|     46|  const auto i = static_cast<int16_t>(value.toInt64());
  682|     46|  return os << stringFormat("{:.1f}", i / 10.0);
  ------------------
  |  |   18|     46|#define stringFormat std::format
  ------------------
  683|     46|}  // PanasonicMakerNote::printRollAngle
_ZN5Exiv28Internal18PanasonicMakerNote15printPitchAngleERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  685|     36|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|     36|  const auto i = static_cast<int16_t>(value.toInt64());
  688|     36|  return os << stringFormat("{:.1f}", -i / 10.0);
  ------------------
  |  |   18|     36|#define stringFormat std::format
  ------------------
  689|     36|}  // PanasonicMakerNote::printPitchAngle

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

_ZN5Exiv28Internal15PentaxMakerNote12printVersionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  953|  5.56k|std::ostream& PentaxMakerNote::printVersion(std::ostream& os, const Value& value, const ExifData*) {
  954|  5.56k|  std::string val = value.toString();
  955|  5.56k|  std::replace(val.begin(), val.end(), ' ', '.');
  956|  5.56k|  os << val;
  957|  5.56k|  return os;
  958|  5.56k|}
_ZN5Exiv28Internal15PentaxMakerNote15printResolutionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  960|  1.58k|std::ostream& PentaxMakerNote::printResolution(std::ostream& os, const Value& value, const ExifData*) {
  961|  1.58k|  std::string val = value.toString();
  962|  1.58k|  std::replace(val.begin(), val.end(), ' ', 'x');
  963|  1.58k|  os << val;
  964|  1.58k|  return os;
  965|  1.58k|}
_ZN5Exiv28Internal15PentaxMakerNote9printDateERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  967|    434|std::ostream& PentaxMakerNote::printDate(std::ostream& os, const Value& value, const ExifData*) {
  968|       |  /* I choose same format as is used inside EXIF itself */
  969|    434|  return os << stringFormat("{}:{:02}:{:02}", ((static_cast<uint16_t>(value.toInt64(0)) << 8) + value.toInt64(1)),
  ------------------
  |  |   18|    434|#define stringFormat std::format
  ------------------
  970|    434|                            value.toInt64(2), value.toInt64(3));
  971|    434|}
_ZN5Exiv28Internal15PentaxMakerNote9printTimeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  973|    356|std::ostream& PentaxMakerNote::printTime(std::ostream& os, const Value& value, const ExifData*) {
  974|    356|  return os << stringFormat("{:02}:{:02}:{:02}", value.toInt64(0), value.toInt64(1), value.toInt64(2));
  ------------------
  |  |   18|    356|#define stringFormat std::format
  ------------------
  975|    356|}
_ZN5Exiv28Internal15PentaxMakerNote13printExposureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  977|     78|std::ostream& PentaxMakerNote::printExposure(std::ostream& os, const Value& value, const ExifData*) {
  978|     78|  return os << stringFormat("{:g} ms", static_cast<float>(value.toInt64()) / 100);
  ------------------
  |  |   18|     78|#define stringFormat std::format
  ------------------
  979|     78|}
_ZN5Exiv28Internal15PentaxMakerNote11printFValueERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  981|     58|std::ostream& PentaxMakerNote::printFValue(std::ostream& os, const Value& value, const ExifData*) {
  982|     58|  return os << stringFormat("F{:.2g}", static_cast<float>(value.toInt64()) / 10);
  ------------------
  |  |   18|     58|#define stringFormat std::format
  ------------------
  983|     58|}
_ZN5Exiv28Internal15PentaxMakerNote16printFocalLengthERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  985|     60|std::ostream& PentaxMakerNote::printFocalLength(std::ostream& os, const Value& value, const ExifData*) {
  986|     60|  return os << stringFormat("{:.1f} mm", static_cast<float>(value.toInt64()) / 100);
  ------------------
  |  |   18|     60|#define stringFormat std::format
  ------------------
  987|     60|}
_ZN5Exiv28Internal15PentaxMakerNote17printCompensationERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  989|    158|std::ostream& PentaxMakerNote::printCompensation(std::ostream& os, const Value& value, const ExifData*) {
  990|    158|  return os << stringFormat("{:.2g} EV", (static_cast<float>(value.toInt64()) - 50) / 10);
  ------------------
  |  |   18|    158|#define stringFormat std::format
  ------------------
  991|    158|}
_ZN5Exiv28Internal15PentaxMakerNote16printTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  993|     78|std::ostream& PentaxMakerNote::printTemperature(std::ostream& os, const Value& value, const ExifData*) {
  994|     78|  return os << stringFormat("{} C", value.toInt64());
  ------------------
  |  |   18|     78|#define stringFormat std::format
  ------------------
  995|     78|}
_ZN5Exiv28Internal15PentaxMakerNote22printFlashCompensationERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  997|    100|std::ostream& PentaxMakerNote::printFlashCompensation(std::ostream& os, const Value& value, const ExifData*) {
  998|    100|  return os << stringFormat("{:.2g} EV", static_cast<float>(value.toInt64()) / 256);
  ------------------
  |  |   18|    100|#define stringFormat std::format
  ------------------
  999|    100|}
_ZN5Exiv28Internal15PentaxMakerNote15printBracketingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1001|    438|std::ostream& PentaxMakerNote::printBracketing(std::ostream& os, const Value& value, const ExifData*) {
 1002|    438|  std::ios::fmtflags f(os.flags());
 1003|    438|  if (auto l0 = value.toUint32(0); l0 < 10) {
  ------------------
  |  Branch (1003:36): [True: 298, False: 140]
  ------------------
 1004|    298|    os << std::setprecision(2) << static_cast<float>(l0) / 3 << " EV";
 1005|    298|  } else {
 1006|    140|    os << std::setprecision(2) << static_cast<float>(l0) - 9.5F << " EV";
 1007|    140|  }
 1008|       |
 1009|    438|  if (value.count() == 2) {
  ------------------
  |  Branch (1009:7): [True: 352, False: 86]
  ------------------
 1010|    352|    const auto l1 = value.toUint32(1);
 1011|    352|    os << " (";
 1012|    352|    if (l1 == 0) {
  ------------------
  |  Branch (1012:9): [True: 64, False: 288]
  ------------------
 1013|     64|      os << _("No extended bracketing");
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
 1014|    288|    } else {
 1015|    288|      auto type = l1 >> 8;
 1016|    288|      auto range = static_cast<byte>(l1);
 1017|    288|      switch (type) {
 1018|     74|        case 1:
  ------------------
  |  Branch (1018:9): [True: 74, False: 214]
  ------------------
 1019|     74|          os << _("WB-BA");
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
 1020|     74|          break;
 1021|     28|        case 2:
  ------------------
  |  Branch (1021:9): [True: 28, False: 260]
  ------------------
 1022|     28|          os << _("WB-GM");
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
 1023|     28|          break;
 1024|     66|        case 3:
  ------------------
  |  Branch (1024:9): [True: 66, False: 222]
  ------------------
 1025|     66|          os << _("Saturation");
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
 1026|     66|          break;
 1027|     18|        case 4:
  ------------------
  |  Branch (1027:9): [True: 18, False: 270]
  ------------------
 1028|     18|          os << _("Sharpness");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
 1029|     18|          break;
 1030|     16|        case 5:
  ------------------
  |  Branch (1030:9): [True: 16, False: 272]
  ------------------
 1031|     16|          os << _("Contrast");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
 1032|     16|          break;
 1033|     86|        default:
  ------------------
  |  Branch (1033:9): [True: 86, False: 202]
  ------------------
 1034|     86|          os << _("Unknown ") << type;
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
 1035|     86|          break;
 1036|    288|      }
 1037|    288|      os << " " << +range;
 1038|    288|    }
 1039|    352|    os << ")";
 1040|    352|  }
 1041|    438|  os.flags(f);
 1042|    438|  return os;
 1043|    438|}
_ZN5Exiv28Internal15PentaxMakerNote17printShutterCountERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1045|    640|std::ostream& PentaxMakerNote::printShutterCount(std::ostream& os, const Value& value, const ExifData* metadata) {
 1046|    640|  if (!metadata)
  ------------------
  |  Branch (1046:7): [True: 320, False: 320]
  ------------------
 1047|    320|    return os << "undefined";
 1048|       |
 1049|    320|  auto dateIt = metadata->findKey(ExifKey("Exif.PentaxDng.Date"));
 1050|    320|  if (dateIt == metadata->end()) {
  ------------------
  |  Branch (1050:7): [True: 39, False: 281]
  ------------------
 1051|     39|    dateIt = metadata->findKey(ExifKey("Exif.Pentax.Date"));
 1052|     39|  }
 1053|       |
 1054|    320|  auto timeIt = metadata->findKey(ExifKey("Exif.PentaxDng.Time"));
 1055|    320|  if (timeIt == metadata->end()) {
  ------------------
  |  Branch (1055:7): [True: 116, False: 204]
  ------------------
 1056|    116|    timeIt = metadata->findKey(ExifKey("Exif.Pentax.Time"));
 1057|    116|  }
 1058|       |
 1059|    320|  if (dateIt == metadata->end() || dateIt->size() != 4 || timeIt == metadata->end() || timeIt->size() != 3 ||
  ------------------
  |  Branch (1059:7): [True: 39, False: 281]
  |  Branch (1059:7): [True: 226, False: 94]
  |  Branch (1059:36): [True: 36, False: 245]
  |  Branch (1059:59): [True: 49, False: 196]
  |  Branch (1059:88): [True: 51, False: 145]
  ------------------
 1060|    226|      value.size() != 4) {
  ------------------
  |  Branch (1060:7): [True: 51, False: 94]
  ------------------
 1061|    226|    os << "undefined";
 1062|    226|    return os;
 1063|    226|  }
 1064|     94|  const uint32_t date = (dateIt->toUint32(0) << 24) + (dateIt->toUint32(1) << 16) + (dateIt->toUint32(2) << 8) +
 1065|     94|                        (dateIt->toUint32(3) << 0);
 1066|     94|  const uint32_t time = (timeIt->toUint32(0) << 24) + (timeIt->toUint32(1) << 16) + (timeIt->toUint32(2) << 8);
 1067|     94|  const uint32_t countEnc =
 1068|     94|      (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|     94|  const uint32_t count = countEnc ^ date ^ (~time);
 1074|     94|  os << count;
 1075|     94|  return os;
 1076|    320|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1259|  2.31k|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.31k|  static constexpr struct LensIdFct {
 1262|  2.31k|    uint32_t id_;   //!< Lens id
 1263|  2.31k|    PrintFct fct_;  //!< Pretty-print function
 1264|       |    //! Comparison operator for find template
 1265|  2.31k|    bool operator==(uint32_t id) const {
 1266|  2.31k|      return id_ == id;
 1267|  2.31k|    }
 1268|  2.31k|  } lensIdFct[] = {
 1269|  2.31k|      {0x0317, resolveLensType}, {0x0319, resolveLens0x319}, {0x031b, resolveLensType},  {0x031c, resolveLensType},
 1270|  2.31k|      {0x031d, resolveLensType}, {0x031f, resolveLensType},  {0x0329, resolveLensType},  {0x032c, resolveLens0x32c},
 1271|  2.31k|      {0x032e, resolveLensType}, {0x0334, resolveLensType},  {0x03ff, resolveLens0x3ff}, {0x041a, resolveLensType},
 1272|  2.31k|      {0x042d, resolveLensType}, {0x08ff, resolveLens0x8ff},
 1273|  2.31k|  };
 1274|       |  // #1034
 1275|  2.31k|  const std::string undefined("undefined");
 1276|  2.31k|  const std::string section("pentax");
 1277|  2.31k|  if (Internal::readExiv2Config(section, value.toString(), undefined) != undefined) {
  ------------------
  |  Branch (1277:7): [True: 0, False: 2.31k]
  ------------------
 1278|      0|    return os << Internal::readExiv2Config(section, value.toString(), undefined);
 1279|      0|  }
 1280|       |
 1281|  2.31k|  const auto index = (value.toUint32(0) * 256) + value.toUint32(1);
 1282|       |
 1283|       |  // std::cout << '\n' << "printLensType value =" << value.toLong() << " index = " << index << '\n';
 1284|  2.31k|  auto lif = Exiv2::find(lensIdFct, index);
 1285|  2.31k|  if (!lif)
  ------------------
  |  Branch (1285:7): [True: 778, False: 1.54k]
  ------------------
 1286|    778|    return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    778|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1287|  1.54k|  if (metadata && lif->fct_)
  ------------------
  |  Branch (1287:7): [True: 674, False: 866]
  |  Branch (1287:19): [True: 674, False: 0]
  ------------------
 1288|    674|    return lif->fct_(os, value, metadata);
 1289|    866|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (1289:7): [True: 787, False: 79]
  |  Branch (1289:42): [True: 0, False: 79]
  ------------------
 1290|    595|    return os << "(" << value << ")";
 1291|    271|  return os << value;
 1292|    866|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL15resolveLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1254|     99|static std::ostream& resolveLensType(std::ostream& os, const Value& value, const ExifData* metadata) {
 1255|     99|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     99|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1256|     99|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x319ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1224|     92|{
 1225|     92|  try {
 1226|     92|    unsigned long index = 0;
 1227|       |
 1228|     92|    const auto lensInfo = findLensInfo(metadata);
 1229|     92|    if (value.count() == 4) {
  ------------------
  |  Branch (1229:9): [True: 28, False: 64]
  ------------------
 1230|     28|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1231|     28|      if (model.starts_with("PENTAX K-3") && lensInfo->count() == 128 && lensInfo->toUint32(1) == 131 &&
  ------------------
  |  Branch (1231:11): [True: 0, False: 28]
  |  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|     28|    }
 1235|     92|    if (value.count() == 2) {
  ------------------
  |  Branch (1235:9): [True: 37, False: 55]
  ------------------
 1236|     37|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1237|     37|      if (model.starts_with("PENTAX K100D") && lensInfo->count() == 44)
  ------------------
  |  Branch (1237:11): [True: 10, False: 27]
  |  Branch (1237:48): [True: 0, False: 10]
  ------------------
 1238|      0|        index = 6;
 1239|     37|      if (model.starts_with("PENTAX *ist DL") && lensInfo->count() == 36)
  ------------------
  |  Branch (1239:11): [True: 10, False: 27]
  |  Branch (1239:50): [True: 0, False: 10]
  ------------------
 1240|      0|        index = 6;
 1241|     37|    }
 1242|       |
 1243|     92|    if (index > 0) {
  ------------------
  |  Branch (1243:9): [True: 0, False: 92]
  ------------------
 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|     92|  } catch (...) {
 1249|     26|  }
 1250|     92|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     92|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1251|     92|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL12findLensInfoEPKNS_8ExifDataE:
 1096|    563|static ExifData::const_iterator findLensInfo(const ExifData* metadata) {
 1097|    563|  const auto dngLensInfo = metadata->findKey(ExifKey("Exif.PentaxDng.LensInfo"));
 1098|    563|  if (dngLensInfo != metadata->end()) {
  ------------------
  |  Branch (1098:7): [True: 423, False: 140]
  ------------------
 1099|    423|    return dngLensInfo;
 1100|    423|  }
 1101|    140|  const auto lensInfo = metadata->findKey(ExifKey("Exif.Pentax.LensInfo"));
 1102|    140|  if (lensInfo != metadata->end()) {
  ------------------
  |  Branch (1102:7): [True: 31, False: 109]
  ------------------
 1103|     31|    return lensInfo;
 1104|     31|  }
 1105|    109|  throw LensInfoNotFound();
 1106|    140|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL12getKeyStringERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
 1079|    156|static std::string getKeyString(const std::string& key, const ExifData* metadata) {
 1080|    156|  std::string result;
 1081|    156|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1081:7): [True: 120, False: 36]
  ------------------
 1082|    120|    result = metadata->findKey(ExifKey(key))->toString();
 1083|    120|  }
 1084|    156|  return result;
 1085|    156|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x32cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1109|     12|static std::ostream& resolveLens0x32c(std::ostream& os, const Value& value, const ExifData* metadata) {
 1110|     12|  try {
 1111|     12|    unsigned long index = 0;
 1112|       |
 1113|     12|    long focalLength = getKeyLong("Exif.Photo.FocalLength", metadata);
 1114|     12|    bool bFL10_20 = 10 <= focalLength && focalLength <= 20;
  ------------------
  |  Branch (1114:21): [True: 0, False: 12]
  |  Branch (1114:42): [True: 0, False: 0]
  ------------------
 1115|       |
 1116|       |    // std::cout << "model,focalLength = " << model << "," << focalLength << '\n';
 1117|     12|    if (bFL10_20) {
  ------------------
  |  Branch (1117:9): [True: 0, False: 12]
  ------------------
 1118|      0|      index = 1;
 1119|      0|    }
 1120|       |
 1121|     12|    if (index > 0) {
  ------------------
  |  Branch (1121:9): [True: 0, False: 12]
  ------------------
 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|     12|  } catch (...) {
 1127|      0|  }
 1128|     12|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     12|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1129|     12|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL10getKeyLongERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
 1087|     12|static long getKeyLong(const std::string& key, const ExifData* metadata) {
 1088|     12|  long result = -1;
 1089|     12|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1089:7): [True: 0, False: 12]
  ------------------
 1090|      0|    result = static_cast<long>(metadata->findKey(ExifKey(key))->toFloat(0));
 1091|      0|  }
 1092|     12|  return result;
 1093|     12|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x3ffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1136|    325|{
 1137|    325|  try {
 1138|    325|    unsigned long index = 0;
 1139|       |
 1140|       |    // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Pentax.html#LensData
 1141|    325|    const auto lensInfo = findLensInfo(metadata);
 1142|    325|    if (lensInfo->count() < 5)
  ------------------
  |  Branch (1142:9): [True: 38, False: 287]
  ------------------
 1143|     38|      return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     38|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1144|       |
 1145|    287|    if (value.count() == 2) {
  ------------------
  |  Branch (1145:9): [True: 122, False: 165]
  ------------------
 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|    122|      unsigned long base = 1;
 1152|       |
 1153|    122|      unsigned int autoAperture = lensInfo->toUint32(base + 1) & 0x01;
 1154|    122|      unsigned int minAperture = lensInfo->toUint32(base + 2) & 0x06;
 1155|    122|      unsigned int minFocusDistance = lensInfo->toUint32(base + 3) & 0xf8;
 1156|       |
 1157|    122|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 4) == 148)
  ------------------
  |  Branch (1157:11): [True: 82, False: 40]
  |  Branch (1157:34): [True: 59, False: 23]
  |  Branch (1157:56): [True: 42, False: 17]
  |  Branch (1157:84): [True: 8, False: 34]
  ------------------
 1158|      8|        index = 8;
 1159|    122|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 5) == 110)
  ------------------
  |  Branch (1159:11): [True: 82, False: 40]
  |  Branch (1159:34): [True: 59, False: 23]
  |  Branch (1159:56): [True: 42, False: 17]
  |  Branch (1159:84): [True: 16, False: 26]
  ------------------
 1160|     16|        index = 7;
 1161|    122|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 4) == 110)
  ------------------
  |  Branch (1161:11): [True: 82, False: 40]
  |  Branch (1161:34): [True: 59, False: 23]
  |  Branch (1161:56): [True: 42, False: 17]
  |  Branch (1161:84): [True: 19, False: 23]
  ------------------
 1162|     19|        index = 7;
 1163|       |
 1164|    165|    } else if (value.count() == 3) {
  ------------------
  |  Branch (1164:16): [True: 48, False: 117]
  ------------------
 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|     48|      if (lensInfo->toUint32(4) == 0 && lensInfo->toUint32(5) == 40 && lensInfo->toUint32(6) == 148)
  ------------------
  |  Branch (1170:11): [True: 30, False: 18]
  |  Branch (1170:41): [True: 20, False: 10]
  |  Branch (1170:72): [True: 10, False: 10]
  ------------------
 1171|     10|        index = 8;
 1172|       |
 1173|    117|    } else if (value.count() == 4) {
  ------------------
  |  Branch (1173:16): [True: 63, False: 54]
  ------------------
 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|     63|      if (lensInfo->count() == 128 && lensInfo->toUint32(1) == 131 && lensInfo->toUint32(2) == 128)
  ------------------
  |  Branch (1177:11): [True: 23, False: 40]
  |  Branch (1177:39): [True: 16, False: 7]
  |  Branch (1177:71): [True: 6, False: 10]
  ------------------
 1178|      6|        index = 8;
 1179|       |      // #1155
 1180|     63|      if (lensInfo->toUint32(6) == 5)
  ------------------
  |  Branch (1180:11): [True: 14, False: 49]
  ------------------
 1181|     14|        index = 7;
 1182|     63|    }
 1183|       |
 1184|    287|    if (index > 0) {
  ------------------
  |  Branch (1184:9): [True: 57, False: 230]
  ------------------
 1185|     57|      const unsigned long lensID = 0x3ff;
 1186|     57|      auto td = Exiv2::find(pentaxLensType, lensID);
 1187|     57|      return os << _(td[index].label_);
  ------------------
  |  |   40|     57|#define _(String) (String)
  ------------------
 1188|     57|    }
 1189|    287|  } catch (...) {
 1190|     47|  }
 1191|    230|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    230|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1192|    325|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x8ffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1198|    146|{
 1199|    146|  try {
 1200|    146|    unsigned long index = 0;
 1201|       |
 1202|    146|    const auto lensInfo = findLensInfo(metadata);
 1203|    146|    if (value.count() == 4) {
  ------------------
  |  Branch (1203:9): [True: 91, False: 55]
  ------------------
 1204|     91|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1205|     91|      if (model.starts_with("PENTAX K-3") && lensInfo->count() == 128 && lensInfo->toUint32(1) == 168 &&
  ------------------
  |  Branch (1205:11): [True: 32, False: 59]
  |  Branch (1205:46): [True: 22, False: 10]
  |  Branch (1205:74): [True: 16, False: 6]
  ------------------
 1206|     16|          lensInfo->toUint32(2) == 144)
  ------------------
  |  Branch (1206:11): [True: 10, False: 6]
  ------------------
 1207|     10|        index = 7;
 1208|     91|    }
 1209|       |
 1210|    146|    if (index > 0) {
  ------------------
  |  Branch (1210:9): [True: 10, False: 136]
  ------------------
 1211|     10|      const unsigned long lensID = 0x8ff;
 1212|     10|      auto td = Exiv2::find(pentaxLensType, lensID);
 1213|     10|      return os << _(td[index].label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
 1214|     10|    }
 1215|    146|  } catch (...) {
 1216|     40|  }
 1217|    136|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    136|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1218|    146|}
pentaxmn_int.cpp:_ZZN5Exiv28InternalL13printLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK9LensIdFcteqEj:
 1265|  24.2k|    bool operator==(uint32_t id) const {
 1266|  24.2k|      return id_ == id;
 1267|  24.2k|    }
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm298ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLensTypeEELi2ELi1ELi2EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.38k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.38k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.38k|  std::ios::fmtflags f(os.flags());
   35|  1.38k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 1.06k, False: 321]
  ------------------
   36|  1.06k|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 0, False: 1.06k]
  |  Branch (36:51): [True: 133, False: 931]
  ------------------
   37|    133|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    133|    return printValue(os, value, metadata);
   39|    133|  }
   40|  1.25k|  uint32_t l = 0;
   41|  2.72k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 2.07k, False: 651]
  ------------------
   42|  2.07k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 121, False: 1.95k]
  |  Branch (42:33): [True: 480, False: 1.47k]
  ------------------
   43|    601|      return printValue(os, value, metadata);
   44|    601|    }
   45|  1.47k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  1.47k|  }
   47|       |
   48|    651|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 529, False: 122]
  ------------------
   49|    529|    os << _(td->label_);
  ------------------
  |  |   40|    529|#define _(String) (String)
  ------------------
   50|    529|  } else {
   51|    122|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
   52|    122|  }
   53|       |
   54|    651|  os.flags(f);
   55|    651|  return os;
   56|  1.25k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21pentaxImageProcessingEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  2.06k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  2.06k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  2.06k|  std::ios::fmtflags f(os.flags());
   35|  2.06k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 166, False: 1.89k]
  ------------------
   36|    166|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 100, False: 66]
  |  Branch (36:51): [True: 66, False: 0]
  ------------------
   37|    166|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    166|    return printValue(os, value, metadata);
   39|    166|  }
   40|  1.89k|  uint32_t l = 0;
   41|  7.44k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 6.38k, False: 1.06k]
  ------------------
   42|  6.38k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 256, False: 6.12k]
  |  Branch (42:33): [True: 580, False: 5.54k]
  ------------------
   43|    836|      return printValue(os, value, metadata);
   44|    836|    }
   45|  5.54k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  5.54k|  }
   47|       |
   48|  1.06k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 820, False: 242]
  ------------------
   49|    820|    os << _(td->label_);
  ------------------
  |  |   40|    820|#define _(String) (String)
  ------------------
   50|    820|  } else {
   51|    242|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    242|#define _(String) (String)
  ------------------
   52|    242|  }
   53|       |
   54|  1.06k|  os.flags(f);
   55|  1.06k|  return os;
   56|  1.89k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17pentaxPictureModeEELi3ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  5.27k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  5.27k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  5.27k|  std::ios::fmtflags f(os.flags());
   35|  5.27k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 198, False: 5.07k]
  ------------------
   36|    198|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 64, False: 134]
  |  Branch (36:51): [True: 134, False: 0]
  ------------------
   37|    198|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    198|    return printValue(os, value, metadata);
   39|    198|  }
   40|  5.07k|  uint32_t l = 0;
   41|  18.8k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 14.4k, False: 4.34k]
  ------------------
   42|  14.4k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 388, False: 14.0k]
  |  Branch (42:33): [True: 350, False: 13.7k]
  ------------------
   43|    738|      return printValue(os, value, metadata);
   44|    738|    }
   45|  13.7k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  13.7k|  }
   47|       |
   48|  4.34k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 3.80k, False: 532]
  ------------------
   49|  3.80k|    os << _(td->label_);
  ------------------
  |  |   40|  3.80k|#define _(String) (String)
  ------------------
   50|  3.80k|  } else {
   51|    532|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    532|#define _(String) (String)
  ------------------
   52|    532|  }
   53|       |
   54|  4.34k|  os.flags(f);
   55|  4.34k|  return os;
   56|  5.07k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxDriveModeEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  4.53k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  4.53k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  4.53k|  std::ios::fmtflags f(os.flags());
   35|  4.53k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 230, False: 4.30k]
  ------------------
   36|    230|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 70, False: 160]
  |  Branch (36:51): [True: 160, False: 0]
  ------------------
   37|    230|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    230|    return printValue(os, value, metadata);
   39|    230|  }
   40|  4.30k|  uint32_t l = 0;
   41|  17.1k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 14.5k, False: 2.60k]
  ------------------
   42|  14.5k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 826, False: 13.6k]
  |  Branch (42:33): [True: 874, False: 12.8k]
  ------------------
   43|  1.70k|      return printValue(os, value, metadata);
   44|  1.70k|    }
   45|  12.8k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  12.8k|  }
   47|       |
   48|  2.60k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 2.08k, False: 520]
  ------------------
   49|  2.08k|    os << _(td->label_);
  ------------------
  |  |   40|  2.08k|#define _(String) (String)
  ------------------
   50|  2.08k|  } else {
   51|    520|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    520|#define _(String) (String)
  ------------------
   52|    520|  }
   53|       |
   54|  2.60k|  os.flags(f);
   55|  2.60k|  return os;
   56|  4.30k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxDynamicRangeExpansionEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.35k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.35k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.35k|  std::ios::fmtflags f(os.flags());
   35|  1.35k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 162, False: 1.18k]
  ------------------
   36|    162|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 46, False: 116]
  |  Branch (36:51): [True: 116, False: 0]
  ------------------
   37|    162|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    162|    return printValue(os, value, metadata);
   39|    162|  }
   40|  1.18k|  uint32_t l = 0;
   41|  3.66k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 3.31k, False: 352]
  ------------------
   42|  3.31k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 388, False: 2.92k]
  |  Branch (42:33): [True: 448, False: 2.48k]
  ------------------
   43|    836|      return printValue(os, value, metadata);
   44|    836|    }
   45|  2.48k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  2.48k|  }
   47|       |
   48|    352|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 88, False: 264]
  ------------------
   49|     88|    os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
   50|    264|  } else {
   51|    264|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    264|#define _(String) (String)
  ------------------
   52|    264|  }
   53|       |
   54|    352|  os.flags(f);
   55|    352|  return os;
   56|  1.18k|}

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

_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: 36, False: 104]
  ------------------
   98|     36|    throw Error(ErrorCode::kerInputDataReadFailed);
   99|    104|  if (size == 0)
  ------------------
  |  Branch (99:7): [True: 10, False: 94]
  ------------------
  100|     10|    return;
  101|       |
  102|     94|  DataBuf imgData(size);
  103|     94|  const size_t bufRead = io_->read(imgData.data(), imgData.size());
  104|     94|  if (io_->error())
  ------------------
  |  Branch (104:7): [True: 0, False: 94]
  ------------------
  105|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  106|     94|  if (bufRead != imgData.size())
  ------------------
  |  Branch (106:7): [True: 10, False: 84]
  ------------------
  107|     10|    throw Error(ErrorCode::kerInputDataReadFailed);
  108|       |
  109|     84|  auto image = Exiv2::ImageFactory::open(imgData.c_data(), imgData.size());
  110|     84|  image->readMetadata();
  111|     84|  exifData() = image->exifData();
  112|     84|  iptcData() = image->iptcData();
  113|     84|  xmpData() = image->xmpData();
  114|     84|}
_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: 31, False: 109]
  ------------------
  224|     31|  {
  225|       |    // Not right Magick version.
  226|       |#ifdef EXIV2_DEBUG_MESSAGES
  227|       |    std::cout << "Exiv2::PgfImage::readMetadata: wrong Magick number\n";
  228|       |#endif
  229|     31|  }
  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: 6, False: 134]
  ------------------
  244|      6|    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|    134|  return headerSize;
  251|    140|}
_ZNK5Exiv28PgfImage22readPgfHeaderStructureERNS_7BasicIoERjS3_:
  253|    134|DataBuf PgfImage::readPgfHeaderStructure(BasicIo& iIo, uint32_t& width, uint32_t& height) const {
  254|    134|  DataBuf header(16);
  255|    134|  size_t bufRead = iIo.read(header.data(), header.size());
  256|    134|  if (iIo.error())
  ------------------
  |  Branch (256:7): [True: 0, False: 134]
  ------------------
  257|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  258|    134|  if (bufRead != header.size())
  ------------------
  |  Branch (258:7): [True: 0, False: 134]
  ------------------
  259|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  260|       |
  261|    134|  DataBuf work(header.data(), 8);  // don't disturb the binary data - doWriteMetadata reuses it
  262|    134|  width = byteSwap_(work, 0, bSwap_);
  263|    134|  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|    134|  if (header.read_uint8(12) == 2)  // Indexed color image. We pass color table (256 * 3 bytes).
  ------------------
  |  Branch (272:7): [True: 11, False: 123]
  ------------------
  273|     11|  {
  274|     11|    header.alloc(16 + (256 * 3));
  275|       |
  276|     11|    bufRead = iIo.read(header.data(16), 256 * 3);
  277|     11|    if (iIo.error())
  ------------------
  |  Branch (277:9): [True: 0, False: 11]
  ------------------
  278|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  279|     11|    if (bufRead != 256 * 3)
  ------------------
  |  Branch (279:9): [True: 10, False: 1]
  ------------------
  280|     10|      throw Error(ErrorCode::kerInputDataReadFailed);
  281|     11|  }
  282|       |
  283|    124|  return header;
  284|    134|}  // 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|  13.3k|bool isPgfType(BasicIo& iIo, bool advance) {
  297|  13.3k|  const int32_t len = 3;
  298|  13.3k|  std::array<byte, len> buf;
  299|  13.3k|  iIo.read(buf.data(), len);
  300|  13.3k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (300:7): [True: 0, False: 13.3k]
  |  Branch (300:22): [True: 0, False: 13.3k]
  ------------------
  301|      0|    return false;
  302|      0|  }
  303|  13.3k|  bool rc = buf == pgfSignature;
  304|  13.3k|  if (!advance || !rc) {
  ------------------
  |  Branch (304:7): [True: 13.2k, False: 140]
  |  Branch (304:19): [True: 0, False: 140]
  ------------------
  305|  13.2k|    iIo.seek(-len, BasicIo::cur);
  306|  13.2k|  }
  307|       |
  308|  13.3k|  return rc;
  309|  13.3k|}
pgfimage.cpp:_ZN5Exiv2L9byteSwap_ERNS_7DataBufEmb:
   39|    408|static uint32_t byteSwap_(Exiv2::DataBuf& buf, size_t offset, bool bSwap) {
   40|    408|  uint32_t v = 0;
   41|    408|  auto p = reinterpret_cast<byte*>(&v);
   42|    408|  int i;
   43|  2.04k|  for (i = 0; i < 4; i++)
  ------------------
  |  Branch (43:15): [True: 1.63k, False: 408]
  ------------------
   44|  1.63k|    p[i] = buf.read_uint8(offset + i);
   45|    408|  uint32_t result = Image::byteSwap(v, bSwap);
   46|    408|  p = reinterpret_cast<byte*>(&result);
   47|  2.04k|  for (i = 0; i < 4; i++)
  ------------------
  |  Branch (47:15): [True: 1.63k, False: 408]
  ------------------
   48|  1.63k|    buf.write_uint8(offset + i, p[i]);
   49|    408|  return result;
   50|    408|}

_ZN5Exiv29Photoshop5isIrbEPKh:
   27|  31.5M|bool Photoshop::isIrb(const byte* pPsData) {
   28|  31.5M|  if (pPsData == nullptr)
  ------------------
  |  Branch (28:7): [True: 0, False: 31.5M]
  ------------------
   29|      0|    return false;
   30|       |
   31|  31.5M|  for (auto id : irbId_)
  ------------------
  |  Branch (31:16): [True: 31.5M, False: 6.93k]
  ------------------
   32|  31.5M|    if (std::equal(id, id + 4, pPsData))
  ------------------
  |  Branch (32:9): [True: 31.5M, False: 30.6k]
  ------------------
   33|  31.5M|      return true;
   34|       |
   35|  6.93k|  return false;
   36|  31.5M|}
_ZN5Exiv29Photoshop5validEPKhm:
   38|  45.5k|bool Photoshop::valid(const byte* pPsData, size_t sizePsData) {
   39|  45.5k|  const byte* record = nullptr;
   40|  45.5k|  uint32_t sizeIptc = 0;
   41|  45.5k|  uint32_t sizeHdr = 0;
   42|  45.5k|  const byte* pCur = pPsData;
   43|  45.5k|  const byte* pEnd = pPsData + sizePsData;
   44|  45.5k|  int ret = 0;
   45|  30.6M|  while (pCur < pEnd && 0 == (ret = Photoshop::locateIptcIrb(pCur, (pEnd - pCur), &record, sizeHdr, sizeIptc))) {
  ------------------
  |  Branch (45:10): [True: 30.6M, False: 13]
  |  Branch (45:25): [True: 30.5M, False: 45.5k]
  ------------------
   46|  30.5M|    pCur = record + sizeHdr + sizeIptc + (sizeIptc & 1);
   47|  30.5M|  }
   48|  45.5k|  return ret >= 0;
   49|  45.5k|}
_ZN5Exiv29Photoshop9locateIrbEPKhmtPS2_RjS4_:
   55|  30.6M|                         uint32_t& sizeData) {
   56|  30.6M|  if (sizePsData < 12) {
  ------------------
  |  Branch (56:7): [True: 600, False: 30.6M]
  ------------------
   57|    600|    return 3;
   58|    600|  }
   59|       |
   60|       |  // Used for error checking
   61|  30.6M|  size_t position = 0;
   62|       |#ifdef EXIV2_DEBUG_MESSAGES
   63|       |  std::cerr << "Photoshop::locateIrb: ";
   64|       |#endif
   65|       |  // Data should follow Photoshop format, if not exit
   66|  31.5M|  while (position <= (sizePsData - 12) && isIrb(pPsData + position)) {
  ------------------
  |  Branch (66:10): [True: 31.5M, False: 255]
  |  Branch (66:43): [True: 31.5M, False: 6.86k]
  ------------------
   67|  31.5M|    const byte* hrd = pPsData + position;
   68|  31.5M|    position += 4;
   69|  31.5M|    uint16_t type = getUShort(pPsData + position, bigEndian);
   70|  31.5M|    position += 2;
   71|       |#ifdef EXIV2_DEBUG_MESSAGES
   72|       |    std::cerr << "0x" << std::hex << type << std::dec << " ";
   73|       |#endif
   74|       |    // Pascal string is padded to have an even size (including size byte)
   75|  31.5M|    byte psSize = pPsData[position] + 1;
   76|  31.5M|    psSize += (psSize & 1);
   77|  31.5M|    position += psSize;
   78|  31.5M|    if (position + 4 > sizePsData) {
  ------------------
  |  Branch (78:9): [True: 326, False: 31.5M]
  ------------------
   79|       |#ifdef EXIV2_DEBUG_MESSAGES
   80|       |      std::cerr << "Warning: "
   81|       |                << "Invalid or extended Photoshop IRB\n";
   82|       |#endif
   83|    326|      return -2;
   84|    326|    }
   85|  31.5M|    uint32_t dataSize = getULong(pPsData + position, bigEndian);
   86|  31.5M|    position += 4;
   87|  31.5M|    if (dataSize > (sizePsData - position)) {
  ------------------
  |  Branch (87:9): [True: 38.7k, False: 31.4M]
  ------------------
   88|       |#ifdef EXIV2_DEBUG_MESSAGES
   89|       |      std::cerr << "Warning: "
   90|       |                << "Invalid Photoshop IRB data size " << dataSize << " or extended Photoshop IRB\n";
   91|       |#endif
   92|  38.7k|      return -2;
   93|  38.7k|    }
   94|       |#ifdef EXIV2_DEBUG_MESSAGES
   95|       |    if ((dataSize & 1) && position + dataSize == sizePsData) {
   96|       |      std::cerr << "Warning: "
   97|       |                << "Photoshop IRB data is not padded to even size\n";
   98|       |    }
   99|       |#endif
  100|  31.4M|    if (type == psTag) {
  ------------------
  |  Branch (100:9): [True: 30.5M, False: 899k]
  ------------------
  101|       |#ifdef EXIV2_DEBUG_MESSAGES
  102|       |      std::cerr << "ok\n";
  103|       |#endif
  104|  30.5M|      sizeData = dataSize;
  105|  30.5M|      sizeHdr = psSize + 10;
  106|  30.5M|      *record = hrd;
  107|  30.5M|      return 0;
  108|  30.5M|    }
  109|       |    // Data size is also padded to be even
  110|   899k|    position += dataSize + (dataSize & 1);
  111|   899k|  }
  112|       |#ifdef EXIV2_DEBUG_MESSAGES
  113|       |  std::cerr << "pPsData doesn't start with '8BIM'\n";
  114|       |#endif
  115|  7.12k|  if (position < sizePsData) {
  ------------------
  |  Branch (115:7): [True: 6.94k, False: 175]
  ------------------
  116|       |#ifdef EXIV2_DEBUG_MESSAGES
  117|       |    std::cerr << "Warning: "
  118|       |              << "Invalid or extended Photoshop IRB\n";
  119|       |#endif
  120|  6.94k|    return -2;
  121|  6.94k|  }
  122|    175|  return 3;
  123|  7.12k|}
_ZN5Exiv29Photoshop13locateIptcIrbEPKhmPS2_RjS4_:
  126|  30.6M|                             uint32_t& sizeData) {
  127|  30.6M|  return locateIrb(pPsData, sizePsData, iptc_, record, sizeHdr, sizeData);
  128|  30.6M|}
_ZN5Exiv29Photoshop10setIptcIrbEPKhmRKNS_8IptcDataE:
  135|    394|DataBuf Photoshop::setIptcIrb(const byte* pPsData, size_t sizePsData, const IptcData& iptcData) {
  136|       |#ifdef EXIV2_DEBUG_MESSAGES
  137|       |  std::cerr << "IRB block at the beginning of Photoshop::setIptcIrb\n";
  138|       |  if (sizePsData == 0)
  139|       |    std::cerr << "  None.\n";
  140|       |  else
  141|       |    hexdump(std::cerr, pPsData, sizePsData);
  142|       |#endif
  143|    394|  const byte* record = pPsData;
  144|    394|  uint32_t sizeIptc = 0;
  145|    394|  uint32_t sizeHdr = 0;
  146|    394|  DataBuf rc;
  147|    394|  if (0 > Photoshop::locateIptcIrb(pPsData, sizePsData, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (147:7): [True: 102, False: 292]
  ------------------
  148|    102|    return rc;
  149|    102|  }
  150|       |
  151|    292|  Blob psBlob;
  152|    292|  const auto sizeFront = static_cast<size_t>(record - pPsData);
  153|       |  // Write data before old record.
  154|    292|  if (sizePsData > 0 && sizeFront > 0) {
  ------------------
  |  Branch (154:7): [True: 177, False: 115]
  |  Branch (154:25): [True: 50, False: 127]
  ------------------
  155|     50|    append(psBlob, pPsData, sizeFront);
  156|     50|  }
  157|       |
  158|       |  // Write new iptc record if we have it
  159|    292|  if (DataBuf rawIptc = IptcParser::encode(iptcData); !rawIptc.empty()) {
  ------------------
  |  Branch (159:55): [True: 43, False: 249]
  ------------------
  160|     43|    std::array<byte, 12> tmpBuf;
  161|     43|    std::copy_n(Photoshop::irbId_[0], 4, tmpBuf.begin());
  162|     43|    us2Data(tmpBuf.data() + 4, iptc_, bigEndian);
  163|     43|    tmpBuf[6] = 0;
  164|     43|    tmpBuf[7] = 0;
  165|     43|    ul2Data(tmpBuf.data() + 8, static_cast<uint32_t>(rawIptc.size()), bigEndian);
  166|     43|    append(psBlob, tmpBuf.data(), 12);
  167|     43|    append(psBlob, rawIptc.c_data(), rawIptc.size());
  168|       |    // Data is padded to be even (but not included in size)
  169|     43|    if (rawIptc.size() & 1)
  ------------------
  |  Branch (169:9): [True: 24, False: 19]
  ------------------
  170|     24|      psBlob.push_back(0x00);
  171|     43|  }
  172|       |
  173|       |  // Write existing stuff after record, skip the current and all remaining IPTC blocks
  174|    292|  size_t pos = sizeFront;
  175|    292|  auto nextSizeData = Safe::add<long>(static_cast<long>(sizePsData), -static_cast<long>(pos));
  176|    292|  Internal::enforce(nextSizeData >= 0, ErrorCode::kerCorruptedMetadata);
  177|  16.3k|  while (0 == Photoshop::locateIptcIrb(pPsData + pos, nextSizeData, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (177:10): [True: 16.0k, False: 292]
  ------------------
  178|  16.0k|    const auto newPos = static_cast<size_t>(record - pPsData);
  179|  16.0k|    if (newPos > pos) {  // Copy data up to the IPTC IRB
  ------------------
  |  Branch (179:9): [True: 495, False: 15.5k]
  ------------------
  180|    495|      append(psBlob, pPsData + pos, newPos - pos);
  181|    495|    }
  182|  16.0k|    pos = newPos + sizeHdr + sizeIptc + (sizeIptc & 1);  // Skip the IPTC IRB
  183|  16.0k|    nextSizeData = Safe::add<long>(static_cast<long>(sizePsData), -static_cast<long>(pos));
  184|  16.0k|    Internal::enforce(nextSizeData >= 0, ErrorCode::kerCorruptedMetadata);
  185|  16.0k|  }
  186|    292|  if (pos < sizePsData) {
  ------------------
  |  Branch (186:7): [True: 174, False: 118]
  ------------------
  187|    174|    append(psBlob, pPsData + pos, sizePsData - pos);
  188|    174|  }
  189|       |
  190|       |  // Data is rounded to be even
  191|    292|  if (!psBlob.empty())
  ------------------
  |  Branch (191:7): [True: 176, False: 116]
  ------------------
  192|    176|    rc = DataBuf(psBlob.data(), psBlob.size());
  193|       |#ifdef EXIV2_DEBUG_MESSAGES
  194|       |  std::cerr << "IRB block at the end of Photoshop::setIptcIrb\n";
  195|       |  if (rc.empty())
  196|       |    std::cerr << "  None.\n";
  197|       |  else
  198|       |    hexdump(std::cerr, rc.c_data(), rc.size());
  199|       |#endif
  200|    292|  return rc;
  201|    394|}

_ZN5Exiv28Internal8PngChunk15decodeIHDRChunkERKNS_7DataBufEPjS5_:
   45|     72|void PngChunk::decodeIHDRChunk(const DataBuf& data, uint32_t* outWidth, uint32_t* outHeight) {
   46|       |  // Extract image width and height from IHDR chunk.
   47|     72|  *outWidth = data.read_uint32(0, bigEndian);
   48|     72|  *outHeight = data.read_uint32(4, bigEndian);
   49|     72|}
_ZN5Exiv28Internal8PngChunk14decodeTXTChunkEPNS_5ImageERKNS_7DataBufENS1_12TxtChunkTypeE:
   51|  1.14k|void PngChunk::decodeTXTChunk(Image* pImage, const DataBuf& data, TxtChunkType type) {
   52|  1.14k|  DataBuf key = keyTXTChunk(data);
   53|  1.14k|  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|  1.14k|  if (!key.empty())
  ------------------
  |  Branch (58:7): [True: 902, False: 245]
  ------------------
   59|    902|    parseChunkContent(pImage, key.c_data(), key.size(), arr);
   60|  1.14k|}
_ZN5Exiv28Internal8PngChunk14decodeTXTChunkERKNS_7DataBufENS1_12TxtChunkTypeE:
   62|     12|DataBuf PngChunk::decodeTXTChunk(const DataBuf& data, TxtChunkType type) {
   63|     12|  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|     12|  return parseTXTChunk(data, key.size(), type);
   69|     12|}
_ZN5Exiv28Internal8PngChunk11keyTXTChunkERKNS_7DataBufEb:
   71|  1.45k|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.45k|  const size_t offset = stripHeader ? 8ul : 0ul;
  ------------------
  |  Branch (73:25): [True: 295, False: 1.15k]
  ------------------
   74|  1.45k|  if (data.size() <= offset)
  ------------------
  |  Branch (74:7): [True: 8, False: 1.44k]
  ------------------
   75|      8|    throw Error(ErrorCode::kerFailedToReadImageData);
   76|       |
   77|  1.44k|  auto it = std::find(data.begin() + offset, data.end(), 0);
   78|  1.44k|  if (it == data.end())
  ------------------
  |  Branch (78:7): [True: 8, False: 1.43k]
  ------------------
   79|      8|    throw Error(ErrorCode::kerFailedToReadImageData);
   80|       |
   81|  1.43k|  return {data.c_data() + offset, std::distance(data.begin(), it) - offset};
   82|  1.44k|}
_ZN5Exiv28Internal8PngChunk13parseTXTChunkERKNS_7DataBufEmNS1_12TxtChunkTypeE:
   84|  1.14k|DataBuf PngChunk::parseTXTChunk(const DataBuf& data, size_t keysize, TxtChunkType type) {
   85|  1.14k|  DataBuf arr;
   86|       |
   87|  1.14k|  if (type == zTXt_Chunk) {
  ------------------
  |  Branch (87:7): [True: 86, False: 1.05k]
  ------------------
   88|     86|    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|     86|    if (*data.c_data(keysize + 1) != 0x00) {
  ------------------
  |  Branch (93:9): [True: 4, False: 82]
  ------------------
   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|      4|      throw Error(ErrorCode::kerFailedToReadImageData);
   99|      4|    }
  100|       |
  101|       |    // compressed string after the compression technique spec
  102|     82|    size_t compressedTextSize = data.size() - keysize - nullSeparators;
  103|     82|    if (compressedTextSize) {
  ------------------
  |  Branch (103:9): [True: 24, False: 58]
  ------------------
  104|     24|      const byte* compressedText = data.c_data(keysize + nullSeparators);
  105|     24|      enforce(compressedTextSize < data.size(), ErrorCode::kerCorruptedMetadata);
  106|       |
  107|     24|      zlibUncompress(compressedText, static_cast<uint32_t>(compressedTextSize), arr);
  108|     24|    }
  109|  1.05k|  } else if (type == tEXt_Chunk) {
  ------------------
  |  Branch (109:14): [True: 642, False: 415]
  ------------------
  110|    642|    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|    642|    size_t textsize = data.size() - keysize - 1;
  115|    642|    if (textsize) {
  ------------------
  |  Branch (115:9): [True: 626, False: 16]
  ------------------
  116|    626|      const byte* text = data.c_data(keysize + 1);
  117|       |
  118|    626|      arr = DataBuf(text, textsize);
  119|    626|    }
  120|    642|  } else if (type == iTXt_Chunk) {
  ------------------
  |  Branch (120:14): [True: 415, False: 0]
  ------------------
  121|    415|    enforce(data.size() > Safe::add(keysize, std::size_t{3}), ErrorCode::kerCorruptedMetadata);
  122|    415|    const size_t nullCount = std::count(data.c_data(keysize + 3), data.c_data(data.size() - 1), '\0');
  123|    415|    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|    415|    const byte compressionFlag = data.read_uint8(keysize + 1);
  129|       |    // we get the compression method after the compression flag
  130|    415|    const byte compressionMethod = data.read_uint8(keysize + 2);
  131|       |
  132|    415|    enforce(compressionFlag == 0x00 || compressionFlag == 0x01, ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (132:13): [True: 370, False: 45]
  |  Branch (132:40): [True: 25, False: 20]
  ------------------
  133|    415|    if (compressionFlag == 0x01)
  ------------------
  |  Branch (133:9): [True: 25, False: 390]
  ------------------
  134|     25|      enforce(compressionMethod == 0x00, ErrorCode::kerFailedToReadImageData);
  135|       |
  136|       |    // language description string after the compression technique spec
  137|    415|    const size_t languageTextMaxSize = data.size() - keysize - 3;
  138|    415|    std::string languageText = string_from_unterminated(data.c_str(keysize + 3), languageTextMaxSize);
  139|    415|    const size_t languageTextSize = languageText.size();
  140|       |
  141|    415|    enforce(data.size() >= Safe::add(Safe::add(keysize, std::size_t{4}), languageTextSize),
  142|    415|            ErrorCode::kerCorruptedMetadata);
  143|       |    // translated keyword string after the language description
  144|    415|    std::string translatedKeyText = string_from_unterminated(data.c_str(keysize + 3 + languageTextSize + 1),
  145|    415|                                                             data.size() - (keysize + 3 + languageTextSize + 1));
  146|    415|    const size_t translatedKeyTextSize = translatedKeyText.size();
  147|       |
  148|    415|    enforce(Safe::add(keysize + 3 + languageTextSize + 1, Safe::add(translatedKeyTextSize, size_t{1})) <= data.size(),
  149|    415|            ErrorCode::kerCorruptedMetadata);
  150|       |
  151|    415|    const auto textsize =
  152|    415|        static_cast<long>(data.size() - (keysize + 3 + languageTextSize + 1 + translatedKeyTextSize + 1));
  153|    415|    if (textsize) {
  ------------------
  |  Branch (153:9): [True: 359, False: 56]
  ------------------
  154|    359|      const byte* text = data.c_data(keysize + 3 + languageTextSize + 1 + translatedKeyTextSize + 1);
  155|       |
  156|    359|      if (compressionFlag == 0x00) {
  ------------------
  |  Branch (156:11): [True: 340, 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|    340|        arr = DataBuf(text, textsize);
  162|    340|      } 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|    359|    }
  172|    415|  } 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|  1.13k|  return arr;
  180|  1.14k|}
_ZN5Exiv28Internal8PngChunk17parseChunkContentEPNS_5ImageEPKhmRKNS_7DataBufE:
  182|    902|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|    902|  if (keySize >= 21 &&
  ------------------
  |  Branch (185:7): [True: 452, False: 450]
  ------------------
  186|    452|      (memcmp("Raw profile type exif", key, 21) == 0 || memcmp("Raw profile type APP1", key, 21) == 0) &&
  ------------------
  |  Branch (186:8): [True: 90, False: 362]
  |  Branch (186:57): [True: 10, False: 352]
  ------------------
  187|    100|      pImage->exifData().empty()) {
  ------------------
  |  Branch (187:7): [True: 100, False: 0]
  ------------------
  188|    100|    DataBuf exifData = readRawProfile(arr, false);
  189|    100|    size_t length = exifData.size();
  190|       |
  191|    100|    if (length >= 4) {  // length should have at least the size of TIFF header
  ------------------
  |  Branch (191:9): [True: 15, False: 85]
  ------------------
  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|    102|      for (size_t i = 0; i < length - tiffHeaderLE.size(); i++) {
  ------------------
  |  Branch (199:26): [True: 87, False: 15]
  ------------------
  200|     87|        if (0 == exifData.cmpBytes(i, tiffHeaderLE.data(), tiffHeaderLE.size()) ||
  ------------------
  |  Branch (200:13): [True: 0, False: 87]
  ------------------
  201|     87|            0 == exifData.cmpBytes(i, tiffHeaderBE.data(), tiffHeaderBE.size())) {
  ------------------
  |  Branch (201:13): [True: 0, False: 87]
  ------------------
  202|      0|          pos = i;
  203|      0|          break;
  204|      0|        }
  205|     87|      }
  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|    100|  }
  224|       |
  225|       |  // We look if an ImageMagick IPTC raw profile exist.
  226|       |
  227|    902|  if (keySize >= 21 && memcmp("Raw profile type iptc", key, 21) == 0 && pImage->iptcData().empty()) {
  ------------------
  |  Branch (227:7): [True: 429, False: 473]
  |  Branch (227:24): [True: 38, False: 391]
  |  Branch (227:73): [True: 38, False: 0]
  ------------------
  228|     38|    DataBuf psData = readRawProfile(arr, false);
  229|     38|    if (!psData.empty()) {
  ------------------
  |  Branch (229:9): [True: 4, False: 34]
  ------------------
  230|      4|      Blob iptcBlob;
  231|      4|      const byte* record = nullptr;
  232|      4|      uint32_t sizeIptc = 0;
  233|      4|      uint32_t sizeHdr = 0;
  234|       |
  235|      4|      const byte* pEnd = psData.c_data(psData.size() - 1);
  236|      4|      const byte* pCur = psData.c_data();
  237|      4|      while (pCur < pEnd && 0 == Photoshop::locateIptcIrb(pCur, pEnd - pCur, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (237:14): [True: 3, False: 1]
  |  Branch (237:29): [True: 0, False: 3]
  ------------------
  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|      4|      if (!iptcBlob.empty() && IptcParser::decode(pImage->iptcData(), iptcBlob.data(), iptcBlob.size())) {
  ------------------
  |  Branch (247:11): [True: 0, False: 4]
  |  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|      4|      if (iptcBlob.empty() && IptcParser::decode(pImage->iptcData(), psData.c_data(), psData.size())) {
  ------------------
  |  Branch (254:11): [True: 4, False: 0]
  |  Branch (254:31): [True: 0, False: 4]
  ------------------
  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|      4|    }  // if (psData.size() > 0)
  261|     38|  }
  262|       |
  263|       |  // We look if an ImageMagick XMP raw profile exist.
  264|       |
  265|    902|  if (keySize >= 20 && memcmp("Raw profile type xmp", key, 20) == 0 && pImage->xmpData().empty()) {
  ------------------
  |  Branch (265:7): [True: 437, False: 465]
  |  Branch (265:24): [True: 47, False: 390]
  |  Branch (265:72): [True: 45, False: 2]
  ------------------
  266|     45|    DataBuf xmpBuf = readRawProfile(arr, false);
  267|     45|    size_t length = xmpBuf.size();
  268|       |
  269|     45|    if (length > 0) {
  ------------------
  |  Branch (269:9): [True: 5, False: 40]
  ------------------
  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: 4, False: 0]
  ------------------
  273|      4|#ifndef SUPPRESS_WARNINGS
  274|      4|        EXV_WARNING << "Removing " << idx << " characters from the beginning of the XMP packet\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()
  ------------------
  275|      4|#endif
  276|      4|        xmpPacket = xmpPacket.substr(idx);
  277|      4|      }
  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|     45|  }
  285|       |
  286|       |  // We look if an Adobe XMP string exist.
  287|       |
  288|    902|  if (keySize >= 17 && memcmp("XML:com.adobe.xmp", key, 17) == 0 && pImage->xmpData().empty() && !arr.empty()) {
  ------------------
  |  Branch (288:7): [True: 592, False: 310]
  |  Branch (288:24): [True: 160, False: 432]
  |  Branch (288:69): [True: 151, False: 9]
  |  Branch (288:98): [True: 151, False: 0]
  ------------------
  289|    151|    std::string& xmpPacket = pImage->xmpPacket();
  290|    151|    xmpPacket.assign(arr.c_str(), arr.size());
  291|    151|    if (auto idx = xmpPacket.find_first_of('<'); idx != std::string::npos && idx > 0) {
  ------------------
  |  Branch (291:50): [True: 74, False: 77]
  |  Branch (291:78): [True: 73, False: 1]
  ------------------
  292|     73|#ifndef SUPPRESS_WARNINGS
  293|     73|      EXV_WARNING << "Removing " << idx << " characters "
  ------------------
  |  |  138|     73|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 73]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     73|  LogMsg(LogMsg::warn).os()
  ------------------
  294|      0|                  << "from the beginning of the XMP packet\n";
  295|     73|#endif
  296|     73|      xmpPacket = xmpPacket.substr(idx);
  297|     73|    }
  298|    151|    if (XmpParser::decode(pImage->xmpData(), xmpPacket)) {
  ------------------
  |  Branch (298:9): [True: 125, False: 26]
  ------------------
  299|    125|#ifndef SUPPRESS_WARNINGS
  300|    125|      EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|    125|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 125]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    125|  LogMsg(LogMsg::warn).os()
  ------------------
  301|    125|#endif
  302|    125|    }
  303|    151|  }
  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|    902|  if (keySize >= 11 && memcmp("Description", key, 11) == 0 && pImage->comment().empty()) {
  ------------------
  |  Branch (308:7): [True: 737, False: 165]
  |  Branch (308:7): [True: 62, False: 840]
  |  Branch (308:24): [True: 232, False: 505]
  |  Branch (308:63): [True: 62, False: 170]
  ------------------
  309|     62|    pImage->setComment(std::string(arr.c_str(), arr.size()));
  310|     62|  }
  311|       |
  312|    902|}  // PngChunk::parseChunkContent
_ZN5Exiv28Internal8PngChunk17makeMetadataChunkENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_10MetadataIdE:
  314|    101|std::string PngChunk::makeMetadataChunk(std::string_view metadata, MetadataId type) {
  315|    101|  std::string rawProfile;
  316|       |
  317|    101|  switch (type) {
  ------------------
  |  Branch (317:11): [True: 101, False: 0]
  ------------------
  318|     38|    case mdComment:
  ------------------
  |  Branch (318:5): [True: 38, False: 63]
  ------------------
  319|     38|      return makeUtf8TxtChunk("Description", metadata, true);
  320|      0|    case mdIptc:
  ------------------
  |  Branch (320:5): [True: 0, False: 101]
  ------------------
  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: 38]
  ------------------
  324|     63|      return makeUtf8TxtChunk("XML:com.adobe.xmp", metadata, false);
  325|      0|    case mdExif:
  ------------------
  |  Branch (325:5): [True: 0, False: 101]
  ------------------
  326|      0|    case mdIccProfile:
  ------------------
  |  Branch (326:5): [True: 0, False: 101]
  ------------------
  327|      0|    case mdNone:
  ------------------
  |  Branch (327:5): [True: 0, False: 101]
  ------------------
  328|      0|      return {};
  329|    101|  }
  330|       |
  331|      0|  return {};
  332|       |
  333|    101|}  // PngChunk::makeMetadataChunk
_ZN5Exiv28Internal8PngChunk14zlibUncompressEPKhjRNS_7DataBufE:
  335|     43|void PngChunk::zlibUncompress(const byte* compressedText, unsigned int compressedTextSize, DataBuf& arr) {
  336|     43|  uLongf uncompressedLen = compressedTextSize * 2;  // just a starting point
  337|     43|  int zlibResult = Z_BUF_ERROR;
  338|     43|  int dos = 0;
  339|       |
  340|     62|  while (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (340:10): [True: 53, False: 9]
  ------------------
  341|     53|    arr.alloc(uncompressedLen);
  342|     53|    zlibResult = uncompress(arr.data(), &uncompressedLen, compressedText, compressedTextSize);
  343|     53|    if (zlibResult == Z_OK) {
  ------------------
  |  Branch (343:9): [True: 9, False: 44]
  ------------------
  344|      9|      arr.resize(uncompressedLen);
  345|     44|    } else if (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (345:16): [True: 10, False: 34]
  ------------------
  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|     34|    } else {
  355|       |      // something bad happened
  356|     34|      throw Error(ErrorCode::kerFailedToReadImageData);
  357|     34|    }
  358|     53|  }
  359|       |
  360|      9|  if (zlibResult != Z_OK) {
  ------------------
  |  Branch (360:7): [True: 0, False: 9]
  ------------------
  361|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  362|      0|  }
  363|      9|}  // PngChunk::zlibUncompress
_ZN5Exiv28Internal8PngChunk12zlibCompressENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
  365|     38|std::string PngChunk::zlibCompress(std::string_view text) {
  366|     38|  auto compressedLen = static_cast<uLongf>(text.size() * 2);  // just a starting point
  367|     38|  int zlibResult = Z_BUF_ERROR;
  368|       |
  369|     38|  DataBuf arr;
  370|    103|  while (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (370:10): [True: 65, False: 38]
  ------------------
  371|     65|    arr.resize(compressedLen);
  372|     65|    zlibResult = compress2(arr.data(), &compressedLen, reinterpret_cast<const Bytef*>(text.data()),
  373|     65|                           static_cast<uLong>(text.size()), Z_BEST_COMPRESSION);
  374|       |
  375|     65|    switch (zlibResult) {
  376|     38|      case Z_OK:
  ------------------
  |  Branch (376:7): [True: 38, False: 27]
  ------------------
  377|     38|        arr.resize(compressedLen);
  378|     38|        break;
  379|     27|      case Z_BUF_ERROR:
  ------------------
  |  Branch (379:7): [True: 27, False: 38]
  ------------------
  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|     27|        compressedLen *= 2;
  385|       |        // DoS protection. Cap max compressed size
  386|     27|        if (compressedLen > 131072)
  ------------------
  |  Branch (386:13): [True: 0, False: 27]
  ------------------
  387|      0|          throw Error(ErrorCode::kerFailedToReadImageData);
  388|     27|        break;
  389|     27|      default:
  ------------------
  |  Branch (389:7): [True: 0, False: 65]
  ------------------
  390|       |        // Something bad happened
  391|      0|        throw Error(ErrorCode::kerFailedToReadImageData);
  392|     65|    }
  393|     65|  }
  394|       |
  395|     38|  return {arr.c_str(), arr.size()};
  396|       |
  397|     38|}  // PngChunk::zlibCompress
_ZN5Exiv28Internal8PngChunk16makeUtf8TxtChunkENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEES6_b:
  435|    101|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|    101|  auto chunkData = std::string(keyword);
  446|    101|  if (compress) {
  ------------------
  |  Branch (446:7): [True: 38, False: 63]
  ------------------
  447|     38|    static const char flags[] = {0x00, 0x01, 0x00, 0x00, 0x00};
  448|     38|    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|    101|  byte length[4];
  455|    101|  ul2Data(length, static_cast<uint32_t>(chunkData.size()), bigEndian);
  456|       |  // Calculate CRC on chunk type and chunk data
  457|    101|  std::string chunkType = "iTXt";
  458|    101|  std::string crcData = chunkType + chunkData;
  459|    101|  uLong tmp = crc32(0L, Z_NULL, 0);
  460|    101|  tmp = crc32(tmp, reinterpret_cast<const Bytef*>(crcData.data()), static_cast<uInt>(crcData.size()));
  461|    101|  byte crc[4];
  462|    101|  ul2Data(crc, tmp, bigEndian);
  463|       |  // Assemble the chunk
  464|    101|  return std::string(reinterpret_cast<const char*>(length), 4) + chunkType + chunkData +
  465|    101|         std::string(reinterpret_cast<const char*>(crc), 4);
  466|       |
  467|    101|}  // PngChunk::makeUtf8TxtChunk
_ZN5Exiv28Internal8PngChunk14readRawProfileERKNS_7DataBufEb:
  469|    209|DataBuf PngChunk::readRawProfile(const DataBuf& text, bool iTXt) {
  470|    209|  DataBuf info;
  471|    209|  if (text.size() <= 1) {
  ------------------
  |  Branch (471:7): [True: 16, False: 193]
  ------------------
  472|     16|    return info;
  473|     16|  }
  474|       |
  475|    193|  const unsigned char unhex[103] = {
  476|    193|      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|    193|      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|    193|      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|    193|  };
  480|       |
  481|    193|  if (iTXt) {
  ------------------
  |  Branch (481:7): [True: 16, False: 177]
  ------------------
  482|     16|    info.alloc(text.size());
  483|     16|    std::copy(text.begin(), text.end(), info.begin());
  484|     16|    return info;
  485|     16|  }
  486|       |
  487|    177|  const char* sp = text.c_str(1);                 // current byte (space pointer)
  488|    177|  const char* eot = text.c_str(text.size() - 1);  // end of text
  489|       |
  490|    177|  if (sp >= eot) {
  ------------------
  |  Branch (490:7): [True: 1, False: 176]
  ------------------
  491|      1|    return info;
  492|      1|  }
  493|       |
  494|       |  // Look for newline
  495|  10.9k|  while (*sp != '\n') {
  ------------------
  |  Branch (495:10): [True: 10.8k, False: 162]
  ------------------
  496|  10.8k|    sp++;
  497|  10.8k|    if (sp == eot) {
  ------------------
  |  Branch (497:9): [True: 14, False: 10.7k]
  ------------------
  498|     14|      return info;
  499|     14|    }
  500|  10.8k|  }
  501|    162|  sp++;  // step over '\n'
  502|    162|  if (sp == eot) {
  ------------------
  |  Branch (502:7): [True: 10, False: 152]
  ------------------
  503|     10|    return info;
  504|     10|  }
  505|       |
  506|       |  // Look for length
  507|  1.16k|  while (*sp == '\0' || *sp == ' ' || *sp == '\n') {
  ------------------
  |  Branch (507:10): [True: 481, False: 687]
  |  Branch (507:25): [True: 321, False: 366]
  |  Branch (507:39): [True: 223, False: 143]
  ------------------
  508|  1.02k|    sp++;
  509|  1.02k|    if (sp == eot) {
  ------------------
  |  Branch (509:9): [True: 9, False: 1.01k]
  ------------------
  510|      9|      return info;
  511|      9|    }
  512|  1.02k|  }
  513|       |
  514|       |  // Parse the length.
  515|    143|  size_t length = 0;
  516|    585|  while ('0' <= *sp && *sp <= '9') {
  ------------------
  |  Branch (516:10): [True: 504, False: 81]
  |  Branch (516:24): [True: 454, False: 50]
  ------------------
  517|       |    // Compute the new length using unsigned long, so that we can check for overflow.
  518|    454|    const size_t newlength = (10 * length) + (*sp - '0');
  519|    454|    length = newlength;
  520|    454|    sp++;
  521|    454|    if (sp == eot) {
  ------------------
  |  Branch (521:9): [True: 12, False: 442]
  ------------------
  522|     12|      return info;
  523|     12|    }
  524|    454|  }
  525|    131|  sp++;  // step over '\n'
  526|    131|  if (sp == eot) {
  ------------------
  |  Branch (526:7): [True: 12, False: 119]
  ------------------
  527|     12|    return info;
  528|     12|  }
  529|       |
  530|    119|  enforce(length <= static_cast<size_t>(eot - sp) / 2, Exiv2::ErrorCode::kerCorruptedMetadata);
  531|       |
  532|       |  // Allocate space
  533|    119|  if (length == 0) {
  ------------------
  |  Branch (533:7): [True: 34, False: 85]
  ------------------
  534|       |#ifdef EXIV2_DEBUG_MESSAGES
  535|       |    std::cerr << "Exiv2::PngChunk::readRawProfile: Unable To Copy Raw Profile: invalid profile length\n";
  536|       |#endif
  537|     34|  }
  538|    119|  info.alloc(length);
  539|    119|  if (info.size() != length) {
  ------------------
  |  Branch (539:7): [True: 0, False: 119]
  ------------------
  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|    119|  if (info.empty())  // Early return
  ------------------
  |  Branch (546:7): [True: 34, False: 85]
  ------------------
  547|     34|    return info;
  548|       |
  549|       |  // Copy profile, skipping white space and column 1 "=" signs
  550|     85|  unsigned char* dp = info.data();  // decode pointer
  551|     85|  size_t nibbles = length * 2;
  552|       |
  553|    908|  for (size_t i = 0; i < nibbles; i++) {
  ------------------
  |  Branch (553:22): [True: 841, False: 67]
  ------------------
  554|    841|    enforce(sp < eot, Exiv2::ErrorCode::kerCorruptedMetadata);
  555|  3.40k|    while (*sp < '0' || (*sp > '9' && *sp < 'a') || *sp > 'f') {
  ------------------
  |  Branch (555:12): [True: 1.16k, False: 2.23k]
  |  Branch (555:26): [True: 1.76k, False: 475]
  |  Branch (555:39): [True: 610, False: 1.15k]
  |  Branch (555:53): [True: 822, False: 803]
  ------------------
  556|  2.58k|      if (*sp == '\0') {
  ------------------
  |  Branch (556:11): [True: 18, False: 2.56k]
  ------------------
  557|       |#ifdef EXIV2_DEBUG_MESSAGES
  558|       |        std::cerr << "Exiv2::PngChunk::readRawProfile: Unable To Copy Raw Profile: ran out of data\n";
  559|       |#endif
  560|     18|        return {};
  561|     18|      }
  562|       |
  563|  2.56k|      sp++;
  564|  2.56k|      enforce(sp < eot, Exiv2::ErrorCode::kerCorruptedMetadata);
  565|  2.56k|    }
  566|       |
  567|    823|    if (i % 2 == 0)
  ------------------
  |  Branch (567:9): [True: 410, False: 413]
  ------------------
  568|    410|      *dp = static_cast<unsigned char>(16 * unhex[static_cast<size_t>(*sp++)]);
  569|    413|    else
  570|    413|      (*dp++) += unhex[static_cast<size_t>(*sp++)];
  571|    823|  }
  572|       |
  573|     67|  return info;
  574|       |
  575|     85|}  // PngChunk::readRawProfile

_ZN5Exiv28PngImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   56|    878|    Image(ImageType::png, mdExif | mdIptc | mdXmp | mdComment, std::move(io)) {
   57|    878|  if (create && io_->open() == 0) {
  ------------------
  |  Branch (57:7): [True: 0, False: 878]
  |  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|    878|}
_ZN5Exiv28PngImage14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  180|  1.94k|void PngImage::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
  181|  1.94k|  if (io_->open() != 0) {
  ------------------
  |  Branch (181:7): [True: 0, False: 1.94k]
  ------------------
  182|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  183|      0|  }
  184|  1.94k|  if (!isPngType(*io_, true)) {
  ------------------
  |  Branch (184:7): [True: 0, False: 1.94k]
  ------------------
  185|      0|    throw Error(ErrorCode::kerNotAnImage, "PNG");
  186|      0|  }
  187|       |
  188|  1.94k|  std::string chType(4, 0);
  189|       |
  190|  1.94k|  if (option == kpsBasic || option == kpsXMP || option == kpsIccProfile || option == kpsRecursive) {
  ------------------
  |  Branch (190:7): [True: 402, False: 1.54k]
  |  Branch (190:29): [True: 292, False: 1.25k]
  |  Branch (190:49): [True: 280, False: 974]
  |  Branch (190:76): [True: 292, False: 682]
  ------------------
  191|  1.26k|    const auto xmpKey = upper("XML:com.adobe.xmp");
  192|  1.26k|    const auto exifKey = upper("Raw profile type exif");
  193|  1.26k|    const auto app1Key = upper("Raw profile type APP1");
  194|  1.26k|    const auto iptcKey = upper("Raw profile type iptc");
  195|  1.26k|    const auto softKey = upper("Software");
  196|  1.26k|    const auto commKey = upper("Comment");
  197|  1.26k|    const auto descKey = upper("Description");
  198|       |
  199|  1.26k|    bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (199:19): [True: 402, False: 864]
  |  Branch (199:41): [True: 292, False: 572]
  ------------------
  200|  1.26k|    if (bPrint) {
  ------------------
  |  Branch (200:9): [True: 694, False: 572]
  ------------------
  201|    694|      out << "STRUCTURE OF PNG FILE: " << io_->path() << '\n';
  202|    694|      out << " address | chunk |  length | data                           | checksum" << '\n';
  203|    694|    }
  204|       |
  205|  1.26k|    const size_t imgSize = io_->size();
  206|  1.26k|    DataBuf cheaderBuf(8);
  207|       |
  208|  12.0k|    while (!io_->eof() && chType != "IEND") {
  ------------------
  |  Branch (208:12): [True: 11.9k, False: 122]
  |  Branch (208:27): [True: 10.8k, False: 1.14k]
  ------------------
  209|  10.8k|      const size_t address = io_->tell();
  210|       |
  211|  10.8k|      size_t bufRead = io_->read(cheaderBuf.data(), cheaderBuf.size());
  212|  10.8k|      if (io_->error())
  ------------------
  |  Branch (212:11): [True: 0, False: 10.8k]
  ------------------
  213|      0|        throw Error(ErrorCode::kerFailedToReadImageData);
  214|  10.8k|      if (bufRead != cheaderBuf.size())
  ------------------
  |  Branch (214:11): [True: 0, False: 10.8k]
  ------------------
  215|      0|        throw Error(ErrorCode::kerInputDataReadFailed);
  216|       |
  217|       |      // Decode chunk data length.
  218|  10.8k|      const uint32_t dataOffset = cheaderBuf.read_uint32(0, Exiv2::bigEndian);
  219|  54.1k|      for (int i = 4; i < 8; i++) {
  ------------------
  |  Branch (219:23): [True: 43.2k, False: 10.8k]
  ------------------
  220|  43.2k|        chType[i - 4] = cheaderBuf.read_uint8(i);
  221|  43.2k|      }
  222|       |
  223|       |      // test that we haven't hit EOF, or wanting to read excessive data
  224|  10.8k|      const size_t restore = io_->tell();
  225|  10.8k|      if (dataOffset > imgSize - restore) {
  ------------------
  |  Branch (225:11): [True: 0, False: 10.8k]
  ------------------
  226|      0|        throw Exiv2::Error(ErrorCode::kerFailedToReadImageData);
  227|      0|      }
  228|       |
  229|  10.8k|      DataBuf buff(dataOffset);
  230|  10.8k|      if (dataOffset > 0) {
  ------------------
  |  Branch (230:11): [True: 3.40k, False: 7.41k]
  ------------------
  231|  3.40k|        bufRead = io_->read(buff.data(), dataOffset);
  232|  3.40k|        enforce(bufRead == dataOffset, ErrorCode::kerFailedToReadImageData);
  233|  3.40k|      }
  234|  10.8k|      io_->seek(restore, BasicIo::beg);
  235|       |
  236|       |      // format output
  237|  10.8k|      const int iMax = 30;
  238|  10.8k|      const auto blen = std::min<uint32_t>(iMax, dataOffset);
  239|  10.8k|      std::string dataString;
  240|       |      // if blen == 0 => slice construction fails
  241|  10.8k|      if (blen > 0) {
  ------------------
  |  Branch (241:11): [True: 3.40k, False: 7.41k]
  ------------------
  242|  3.40k|        std::stringstream ss;
  243|  3.40k|        ss << Internal::binaryToString(makeSlice(buff, 0, blen));
  244|  3.40k|        dataString = ss.str();
  245|  3.40k|      }
  246|   270k|      while (dataString.size() < iMax)
  ------------------
  |  Branch (246:14): [True: 259k, False: 10.8k]
  ------------------
  247|   259k|        dataString += ' ';
  248|  10.8k|      dataString.resize(iMax);
  249|       |
  250|  10.8k|      if (bPrint) {
  ------------------
  |  Branch (250:11): [True: 5.79k, False: 5.02k]
  ------------------
  251|  5.79k|        io_->seek(dataOffset, BasicIo::cur);  // jump to checksum
  252|  5.79k|        byte checksum[4];
  253|  5.79k|        bufRead = io_->read(checksum, 4);
  254|  5.79k|        enforce(bufRead == 4, ErrorCode::kerFailedToReadImageData);
  255|  5.79k|        io_->seek(restore, BasicIo::beg);  // restore file pointer
  256|       |
  257|  5.79k|        out << stringFormat("{:8} | {:<5} |{:8} | {}", address, chType, dataOffset, dataString)
  ------------------
  |  |   18|  5.79k|#define stringFormat std::format
  ------------------
  258|  5.79k|            << stringFormat(" | 0x{:02x}{:02x}{:02x}{:02x}\n", checksum[0], checksum[1], checksum[2], checksum[3]);
  ------------------
  |  |   18|  5.79k|#define stringFormat std::format
  ------------------
  259|  5.79k|      }
  260|       |
  261|       |      // chunk type
  262|  10.8k|      bool tEXt = chType == "tEXt";
  263|  10.8k|      bool zTXt = chType == "zTXt";
  264|  10.8k|      bool iCCP = chType == "iCCP";
  265|  10.8k|      bool iTXt = chType == "iTXt";
  266|  10.8k|      bool eXIf = chType == "eXIf";
  267|       |
  268|       |      // for XMP, ICC etc: read and format data
  269|  10.8k|      const auto dataStringU = upper(dataString);
  270|  10.8k|      bool bXMP = option == kpsXMP && findi(dataStringU, xmpKey) == 0;
  ------------------
  |  Branch (270:19): [True: 2.54k, False: 8.27k]
  |  Branch (270:39): [True: 56, False: 2.48k]
  ------------------
  271|  10.8k|      bool bExif = option == kpsRecursive && (findi(dataStringU, exifKey) == 0 || findi(dataStringU, app1Key) == 0);
  ------------------
  |  Branch (271:20): [True: 2.53k, False: 8.29k]
  |  Branch (271:47): [True: 7, False: 2.52k]
  |  Branch (271:83): [True: 8, False: 2.51k]
  ------------------
  272|  10.8k|      bool bIptc = option == kpsRecursive && findi(dataStringU, iptcKey) == 0;
  ------------------
  |  Branch (272:20): [True: 2.53k, False: 8.29k]
  |  Branch (272:46): [True: 13, False: 2.51k]
  ------------------
  273|  10.8k|      bool bSoft = option == kpsRecursive && findi(dataStringU, softKey) == 0;
  ------------------
  |  Branch (273:20): [True: 2.53k, False: 8.29k]
  |  Branch (273:46): [True: 7, False: 2.52k]
  ------------------
  274|  10.8k|      bool bComm = option == kpsRecursive && findi(dataStringU, commKey) == 0;
  ------------------
  |  Branch (274:20): [True: 2.53k, False: 8.29k]
  |  Branch (274:46): [True: 12, False: 2.51k]
  ------------------
  275|  10.8k|      bool bDesc = option == kpsRecursive && findi(dataStringU, descKey) == 0;
  ------------------
  |  Branch (275:20): [True: 2.53k, False: 8.29k]
  |  Branch (275:46): [True: 51, False: 2.47k]
  ------------------
  276|  10.8k|      bool bDump = bXMP || bExif || bIptc || bSoft || bComm || bDesc || iCCP || eXIf;
  ------------------
  |  Branch (276:20): [True: 165, False: 10.6k]
  |  Branch (276:28): [True: 15, False: 10.6k]
  |  Branch (276:37): [True: 13, False: 10.6k]
  |  Branch (276:46): [True: 7, False: 10.6k]
  |  Branch (276:55): [True: 12, False: 10.6k]
  |  Branch (276:64): [True: 51, False: 10.5k]
  |  Branch (276:73): [True: 253, False: 10.3k]
  |  Branch (276:81): [True: 1, False: 10.3k]
  ------------------
  277|       |
  278|  10.8k|      if (bDump) {
  ------------------
  |  Branch (278:11): [True: 408, False: 10.4k]
  ------------------
  279|    408|        DataBuf dataBuf;
  280|    408|        enforce(dataOffset < std::numeric_limits<uint32_t>::max(), ErrorCode::kerFailedToReadImageData);
  281|    408|        DataBuf data(dataOffset + 1ul);
  282|    408|        data.write_uint8(dataOffset, 0);
  283|    408|        bufRead = io_->read(data.data(), dataOffset);
  284|    408|        enforce(bufRead == dataOffset, ErrorCode::kerFailedToReadImageData);
  285|    408|        io_->seek(restore, BasicIo::beg);
  286|    408|        size_t name_l = std::strlen(data.c_str()) + 1;  // leading string length
  287|    408|        enforce(name_l < dataOffset, ErrorCode::kerCorruptedMetadata);
  288|       |
  289|    408|        auto start = static_cast<uint32_t>(name_l);
  290|    408|        bool bLF = false;
  291|       |
  292|       |        // decode the chunk
  293|    408|        bool bGood = false;
  294|    408|        if (tEXt) {
  ------------------
  |  Branch (294:13): [True: 89, False: 319]
  ------------------
  295|     89|          bGood = tEXtToDataBuf(data.c_data(name_l), dataOffset - name_l, dataBuf);
  296|     89|        }
  297|    408|        if (zTXt || iCCP) {
  ------------------
  |  Branch (297:13): [True: 6, False: 402]
  |  Branch (297:21): [True: 255, False: 147]
  ------------------
  298|    256|          enforce(dataOffset - name_l - 1 <= std::numeric_limits<uLongf>::max(), ErrorCode::kerCorruptedMetadata);
  299|    256|          bGood = zlibToDataBuf(data.c_data(name_l + 1), static_cast<uLongf>(dataOffset - name_l - 1),
  300|    256|                                dataBuf);  // +1 = 'compressed' flag
  301|    256|        }
  302|    408|        if (iTXt) {
  ------------------
  |  Branch (302:13): [True: 52, False: 356]
  ------------------
  303|     52|          bGood = (3 <= dataOffset) && (start < dataOffset - 3);  // good if not a nul chunk
  ------------------
  |  Branch (303:19): [True: 52, False: 0]
  |  Branch (303:40): [True: 52, False: 0]
  ------------------
  304|     52|        }
  305|    408|        if (eXIf) {
  ------------------
  |  Branch (305:13): [True: 0, False: 408]
  ------------------
  306|      0|          bGood = true;  // eXIf requires no pre-processing
  307|      0|        }
  308|       |
  309|       |        // format is content dependent
  310|    408|        if (bGood) {
  ------------------
  |  Branch (310:13): [True: 156, False: 252]
  ------------------
  311|    156|          if (bXMP) {
  ------------------
  |  Branch (311:15): [True: 56, False: 100]
  ------------------
  312|    782|            while (start < dataOffset && !data.read_uint8(start))
  ------------------
  |  Branch (312:20): [True: 780, False: 2]
  |  Branch (312:42): [True: 726, False: 54]
  ------------------
  313|    726|              start++;                  // skip leading nul bytes
  314|     56|            out << data.c_data(start);  // output the xmp
  315|     56|          }
  316|       |
  317|    156|          if (bExif || bIptc) {
  ------------------
  |  Branch (317:15): [True: 13, False: 143]
  |  Branch (317:24): [True: 13, False: 130]
  ------------------
  318|     26|            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|     26|            if (!parsedBuf.empty()) {
  ------------------
  |  Branch (324:17): [True: 16, False: 10]
  ------------------
  325|     16|              if (bExif) {
  ------------------
  |  Branch (325:19): [True: 6, False: 10]
  ------------------
  326|       |                // check for expected "Exif\0\0" APP1 identifier, punt otherwise
  327|      6|                size_t offset = 0;
  328|      6|                std::array<byte, 6> exifId{0x45, 0x78, 0x69, 0x66, 0x00, 0x00};  // "Exif\0\0"
  329|      6|                if (0 == parsedBuf.cmpBytes(0, exifId.data(), exifId.size())) {
  ------------------
  |  Branch (329:21): [True: 0, False: 6]
  ------------------
  330|      0|                  offset = 6;
  331|      0|                }
  332|       |                // create memio object with the data, then print the structure
  333|      6|                MemIo p(parsedBuf.c_data(offset), parsedBuf.size() - offset);
  334|      6|                printTiffStructure(p, out, option, depth + 1);
  335|      6|              }
  336|     16|              if (bIptc) {
  ------------------
  |  Branch (336:19): [True: 10, False: 6]
  ------------------
  337|     10|                IptcData::printStructure(out, makeSlice(parsedBuf, 0, parsedBuf.size()), depth);
  338|     10|              }
  339|     16|            }
  340|     26|          }
  341|       |
  342|    156|          if (bSoft && !dataBuf.empty()) {
  ------------------
  |  Branch (342:15): [True: 6, False: 150]
  |  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|    156|          if ((iCCP && option == kpsIccProfile) || bComm) {
  ------------------
  |  Branch (351:16): [True: 15, False: 141]
  |  Branch (351:24): [True: 3, False: 12]
  |  Branch (351:52): [True: 9, False: 136]
  ------------------
  352|     12|            out.write(dataBuf.c_str(), dataBuf.size());
  353|     12|            bLF = bComm;
  354|     12|          }
  355|       |
  356|    156|          if (bDesc && iTXt) {
  ------------------
  |  Branch (356:15): [True: 44, False: 112]
  |  Branch (356:24): [True: 12, False: 32]
  ------------------
  357|     12|            DataBuf decoded = PngChunk::decodeTXTChunk(buff, PngChunk::iTXt_Chunk);
  358|     12|            out.write(decoded.c_str(), decoded.size());
  359|     12|            bLF = true;
  360|     12|          }
  361|       |
  362|    156|          if (eXIf && option == kpsRecursive) {
  ------------------
  |  Branch (362:15): [True: 0, False: 156]
  |  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|    156|          if (bLF)
  ------------------
  |  Branch (368:15): [True: 26, False: 130]
  ------------------
  369|     26|            out << '\n';
  370|    156|        }
  371|    408|      }
  372|  10.8k|      io_->seek(dataOffset + 4, BasicIo::cur);  // jump past checksum
  373|  10.8k|      if (io_->error())
  ------------------
  |  Branch (373:11): [True: 0, False: 10.8k]
  ------------------
  374|      0|        throw Error(ErrorCode::kerFailedToReadImageData);
  375|  10.8k|    }
  376|  1.26k|  }
  377|  1.94k|}
_ZN5Exiv28PngImage12readMetadataEv:
  392|    878|void PngImage::readMetadata() {
  393|       |#ifdef EXIV2_DEBUG_MESSAGES
  394|       |  std::cerr << "Exiv2::PngImage::readMetadata: Reading PNG file " << io_->path() << '\n';
  395|       |#endif
  396|    878|  if (io_->open() != 0) {
  ------------------
  |  Branch (396:7): [True: 0, False: 878]
  ------------------
  397|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  398|      0|  }
  399|    878|  IoCloser closer(*io_);
  400|    878|  if (!isPngType(*io_, true)) {
  ------------------
  |  Branch (400:7): [True: 0, False: 878]
  ------------------
  401|      0|    throw Error(ErrorCode::kerNotAnImage, "PNG");
  402|      0|  }
  403|    878|  clearMetadata();
  404|       |
  405|    878|  const size_t imgSize = io_->size();
  406|    878|  DataBuf cheaderBuf(8);  // Chunk header: 4 bytes (data size) + 4 bytes (chunk type).
  407|       |
  408|  96.5k|  while (!io_->eof()) {
  ------------------
  |  Branch (408:10): [True: 96.2k, False: 226]
  ------------------
  409|  96.2k|    readChunk(cheaderBuf, *io_);  // Read chunk header.
  410|       |
  411|       |    // Decode chunk data length.
  412|  96.2k|    uint32_t chunkLength = cheaderBuf.read_uint32(0, Exiv2::bigEndian);
  413|  96.2k|    if (chunkLength > imgSize - io_->tell()) {
  ------------------
  |  Branch (413:9): [True: 172, False: 96.1k]
  ------------------
  414|    172|      throw Exiv2::Error(ErrorCode::kerFailedToReadImageData);
  415|    172|    }
  416|       |
  417|  96.1k|    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|  96.1k|    if (chunkType == "IEND" || chunkType == "IHDR" || chunkType == "tEXt" || chunkType == "zTXt" ||
  ------------------
  |  Branch (424:9): [True: 451, False: 95.6k]
  |  Branch (424:32): [True: 619, False: 95.0k]
  |  Branch (424:55): [True: 651, False: 94.3k]
  |  Branch (424:78): [True: 86, False: 94.3k]
  ------------------
  425|  94.3k|        chunkType == "eXIf" || chunkType == "iTXt" || chunkType == "iCCP") {
  ------------------
  |  Branch (425:9): [True: 81, False: 94.2k]
  |  Branch (425:32): [True: 410, False: 93.8k]
  |  Branch (425:55): [True: 298, False: 93.5k]
  ------------------
  426|  2.55k|      DataBuf chunkData(chunkLength);
  427|  2.55k|      if (chunkLength > 0) {
  ------------------
  |  Branch (427:11): [True: 1.79k, False: 759]
  ------------------
  428|  1.79k|        readChunk(chunkData, *io_);  // Extract chunk data.
  429|  1.79k|      }
  430|       |
  431|  2.55k|      if (chunkType == "IEND") {
  ------------------
  |  Branch (431:11): [True: 407, False: 2.14k]
  ------------------
  432|    407|        return;  // Last chunk found: we stop parsing.
  433|    407|      }
  434|  2.14k|      if (chunkType == "IHDR" && chunkData.size() >= 8) {
  ------------------
  |  Branch (434:11): [True: 619, False: 1.52k]
  |  Branch (434:34): [True: 72, False: 547]
  ------------------
  435|     72|        PngChunk::decodeIHDRChunk(chunkData, &pixelWidth_, &pixelHeight_);
  436|  2.07k|      } else if (chunkType == "tEXt") {
  ------------------
  |  Branch (436:18): [True: 651, False: 1.42k]
  ------------------
  437|    651|        PngChunk::decodeTXTChunk(this, chunkData, PngChunk::tEXt_Chunk);
  438|  1.42k|      } else if (chunkType == "zTXt") {
  ------------------
  |  Branch (438:18): [True: 86, False: 1.33k]
  ------------------
  439|     86|        PngChunk::decodeTXTChunk(this, chunkData, PngChunk::zTXt_Chunk);
  440|  1.33k|      } else if (chunkType == "iTXt") {
  ------------------
  |  Branch (440:18): [True: 410, False: 926]
  ------------------
  441|    410|        PngChunk::decodeTXTChunk(this, chunkData, PngChunk::iTXt_Chunk);
  442|    926|      } else if (chunkType == "eXIf") {
  ------------------
  |  Branch (442:18): [True: 81, False: 845]
  ------------------
  443|     81|        ByteOrder bo = TiffParser::decode(exifData(), iptcData(), xmpData(), chunkData.c_data(), chunkData.size());
  444|     81|        setByteOrder(bo);
  445|    845|      } else if (chunkType == "iCCP") {
  ------------------
  |  Branch (445:18): [True: 298, False: 547]
  ------------------
  446|       |        // The ICC profile name can vary from 1-79 characters.
  447|    298|        uint32_t iccOffset = 0;
  448|  2.85k|        do {
  449|  2.85k|          enforce(iccOffset < 80 && iccOffset < chunkLength, Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (449:19): [True: 2.85k, False: 0]
  |  Branch (449:37): [True: 2.84k, False: 7]
  ------------------
  450|  2.85k|        } while (chunkData.read_uint8(iccOffset++) != 0x00);
  ------------------
  |  Branch (450:18): [True: 2.55k, False: 298]
  ------------------
  451|       |
  452|    298|        profileName_ = std::string(chunkData.c_str(), iccOffset - 1);
  453|    298|        ++iccOffset;  // +1 = 'compressed' flag
  454|    298|        enforce(iccOffset <= chunkLength, Exiv2::ErrorCode::kerCorruptedMetadata);
  455|       |
  456|    298|        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|    298|      }
  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|  2.14k|      chunkLength = 0;
  466|  2.14k|    }
  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|  95.7k|    io_->seek(chunkLength + 4, BasicIo::cur);
  473|  95.7k|    if (io_->error() || io_->eof()) {
  ------------------
  |  Branch (473:9): [True: 226, False: 95.4k]
  |  Branch (473:25): [True: 73, False: 95.4k]
  ------------------
  474|     73|      throw Error(ErrorCode::kerFailedToReadImageData);
  475|     73|    }
  476|  95.7k|  }
  477|    878|}  // PngImage::readMetadata
_ZN5Exiv28PngImage13writeMetadataEv:
  479|    280|void PngImage::writeMetadata() {
  480|    280|  if (io_->open() != 0) {
  ------------------
  |  Branch (480:7): [True: 0, False: 280]
  ------------------
  481|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  482|      0|  }
  483|    280|  IoCloser closer(*io_);
  484|    280|  MemIo tempIo;
  485|       |
  486|    280|  doWriteMetadata(tempIo);  // may throw
  487|    280|  io_->close();
  488|    280|  io_->transfer(tempIo);  // may throw
  489|       |
  490|    280|}  // PngImage::writeMetadata
_ZN5Exiv28PngImage15doWriteMetadataERNS_7BasicIoE:
  492|    280|void PngImage::doWriteMetadata(BasicIo& outIo) {
  493|    280|  if (!io_->isopen())
  ------------------
  |  Branch (493:7): [True: 0, False: 280]
  ------------------
  494|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  495|    280|  if (!outIo.isopen())
  ------------------
  |  Branch (495:7): [True: 0, False: 280]
  ------------------
  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|    280|  if (!isPngType(*io_, true)) {
  ------------------
  |  Branch (503:7): [True: 0, False: 280]
  ------------------
  504|      0|    throw Error(ErrorCode::kerNoImageInInputData);
  505|      0|  }
  506|       |
  507|       |  // Write PNG Signature.
  508|    280|  if (outIo.write(pngSignature.data(), 8) != 8)
  ------------------
  |  Branch (508:7): [True: 0, False: 280]
  ------------------
  509|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  510|       |
  511|    280|  DataBuf cheaderBuf(8);  // Chunk header : 4 bytes (data size) + 4 bytes (chunk type).
  512|       |
  513|  2.47k|  while (!io_->eof()) {
  ------------------
  |  Branch (513:10): [True: 2.47k, False: 0]
  ------------------
  514|       |    // Read chunk header.
  515|  2.47k|    size_t bufRead = io_->read(cheaderBuf.data(), 8);
  516|  2.47k|    if (io_->error())
  ------------------
  |  Branch (516:9): [True: 0, False: 2.47k]
  ------------------
  517|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  518|  2.47k|    if (bufRead != 8)
  ------------------
  |  Branch (518:9): [True: 0, False: 2.47k]
  ------------------
  519|      0|      throw Error(ErrorCode::kerInputDataReadFailed);
  520|       |
  521|       |    // Decode chunk data length.
  522|       |
  523|  2.47k|    uint32_t dataOffset = cheaderBuf.read_uint32(0, Exiv2::bigEndian);
  524|  2.47k|    if (dataOffset > 0x7FFFFFFF)
  ------------------
  |  Branch (524:9): [True: 0, False: 2.47k]
  ------------------
  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.47k|    DataBuf chunkBuf(8 + dataOffset + 4);  // Chunk header (8 bytes) + Chunk data + CRC (4 bytes).
  530|  2.47k|    std::copy(cheaderBuf.begin(), cheaderBuf.end(), chunkBuf.begin());  // Copy header.
  531|  2.47k|    bufRead = io_->read(chunkBuf.data(8), dataOffset + 4);              // Extract chunk data + CRC
  532|  2.47k|    if (io_->error())
  ------------------
  |  Branch (532:9): [True: 0, False: 2.47k]
  ------------------
  533|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  534|  2.47k|    if (bufRead != dataOffset + 4)
  ------------------
  |  Branch (534:9): [True: 0, False: 2.47k]
  ------------------
  535|      0|      throw Error(ErrorCode::kerInputDataReadFailed);
  536|       |
  537|  2.47k|    const std::string szChunk(cheaderBuf.begin() + 4, cheaderBuf.end());
  538|       |
  539|  2.47k|    if (szChunk == "IEND") {
  ------------------
  |  Branch (539:9): [True: 280, False: 2.19k]
  ------------------
  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|    280|      if (outIo.write(chunkBuf.data(), chunkBuf.size()) != chunkBuf.size())
  ------------------
  |  Branch (544:11): [True: 0, False: 280]
  ------------------
  545|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  546|    280|      return;
  547|    280|    }
  548|  2.19k|    if (szChunk == "eXIf" || szChunk == "iCCP") {
  ------------------
  |  Branch (548:9): [True: 0, False: 2.19k]
  |  Branch (548:30): [True: 62, False: 2.13k]
  ------------------
  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|  2.13k|    } else if (szChunk == "IHDR") {
  ------------------
  |  Branch (555:16): [True: 216, False: 1.92k]
  ------------------
  556|       |#ifdef EXIV2_DEBUG_MESSAGES
  557|       |      std::cout << "Exiv2::PngImage::doWriteMetadata: Write IHDR chunk (length: " << dataOffset << ")\n";
  558|       |#endif
  559|    216|      if (outIo.write(chunkBuf.data(), chunkBuf.size()) != chunkBuf.size())
  ------------------
  |  Branch (559:11): [True: 0, False: 216]
  ------------------
  560|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  561|       |
  562|       |      // Write all updated metadata here, just after IHDR.
  563|    216|      if (!comment_.empty()) {
  ------------------
  |  Branch (563:11): [True: 38, False: 178]
  ------------------
  564|       |        // Update Comment data to a new PNG chunk
  565|     38|        std::string chunk = PngChunk::makeMetadataChunk(comment_, mdComment);
  566|     38|        if (outIo.write(reinterpret_cast<const byte*>(chunk.data()), chunk.size()) != chunk.size()) {
  ------------------
  |  Branch (566:13): [True: 0, False: 38]
  ------------------
  567|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  568|      0|        }
  569|     38|      }
  570|       |
  571|    216|      if (!exifData_.empty()) {
  ------------------
  |  Branch (571:11): [True: 0, False: 216]
  ------------------
  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|    216|      if (!iptcData_.empty()) {
  ------------------
  |  Branch (597:11): [True: 0, False: 216]
  ------------------
  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|    216|      if (iccProfileDefined()) {
  ------------------
  |  Branch (609:11): [True: 70, False: 146]
  ------------------
  610|     70|        DataBuf compressed;
  611|     70|        enforce(iccProfile_.size() <= std::numeric_limits<uLongf>::max(), ErrorCode::kerCorruptedMetadata);
  612|     70|        if (zlibToCompressed(iccProfile_.c_data(), static_cast<uLongf>(iccProfile_.size()), compressed)) {
  ------------------
  |  Branch (612:13): [True: 70, False: 0]
  ------------------
  613|     70|          const auto nameLength = static_cast<uint32_t>(profileName_.size());
  614|     70|          const uint32_t chunkLength = nameLength + 2 + static_cast<uint32_t>(compressed.size());
  615|     70|          byte length[4];
  616|     70|          ul2Data(length, chunkLength, bigEndian);
  617|       |
  618|       |          // calculate CRC
  619|     70|          uLong tmp = crc32(0L, Z_NULL, 0);
  620|     70|          tmp = crc32(tmp, typeICCP, 4);
  621|     70|          tmp = crc32(tmp, reinterpret_cast<const Bytef*>(profileName_.data()), nameLength);
  622|     70|          tmp = crc32(tmp, nullComp, 2);
  623|     70|          tmp = crc32(tmp, compressed.c_data(), static_cast<uint32_t>(compressed.size()));
  624|     70|          byte crc[4];
  625|     70|          ul2Data(crc, tmp, bigEndian);
  626|       |
  627|     70|          if (outIo.write(length, 4) != 4 || outIo.write(typeICCP, 4) != 4 ||
  ------------------
  |  Branch (627:15): [True: 0, False: 70]
  |  Branch (627:46): [True: 0, False: 70]
  ------------------
  628|     70|              outIo.write(reinterpret_cast<const byte*>(profileName_.data()), nameLength) != nameLength ||
  ------------------
  |  Branch (628:15): [True: 0, False: 70]
  ------------------
  629|     70|              outIo.write(nullComp, 2) != 2 ||
  ------------------
  |  Branch (629:15): [True: 0, False: 70]
  ------------------
  630|     70|              outIo.write(compressed.c_data(), compressed.size()) != compressed.size() || outIo.write(crc, 4) != 4) {
  ------------------
  |  Branch (630:15): [True: 0, False: 70]
  |  Branch (630:91): [True: 0, False: 70]
  ------------------
  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|     70|        }
  638|     70|      }
  639|       |
  640|    216|      if (!writeXmpFromPacket() && XmpParser::encode(xmpPacket_, xmpData_) > 1) {
  ------------------
  |  Branch (640:11): [True: 216, False: 0]
  |  Branch (640:36): [True: 0, False: 216]
  ------------------
  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|    216|      if (!xmpPacket_.empty()) {
  ------------------
  |  Branch (645:11): [True: 63, False: 153]
  ------------------
  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.92k|    } else if (szChunk == "tEXt" || szChunk == "zTXt" || szChunk == "iTXt") {
  ------------------
  |  Branch (652:16): [True: 196, False: 1.72k]
  |  Branch (652:37): [True: 37, False: 1.68k]
  |  Branch (652:58): [True: 62, False: 1.62k]
  ------------------
  653|    295|      DataBuf key = PngChunk::keyTXTChunk(chunkBuf, true);
  654|    295|      if (!key.empty() && (compare("Raw profile type exif", key) || compare("Raw profile type APP1", key) ||
  ------------------
  |  Branch (654:11): [True: 222, False: 73]
  |  Branch (654:28): [True: 2, False: 220]
  |  Branch (654:69): [True: 6, False: 214]
  ------------------
  655|    214|                           compare("Raw profile type iptc", key) || compare("Raw profile type xmp", key) ||
  ------------------
  |  Branch (655:28): [True: 11, False: 203]
  |  Branch (655:69): [True: 3, False: 200]
  ------------------
  656|    200|                           compare("XML:com.adobe.xmp", key) || compare("Description", key))) {
  ------------------
  |  Branch (656:28): [True: 54, False: 146]
  |  Branch (656:65): [True: 52, False: 94]
  ------------------
  657|       |#ifdef EXIV2_DEBUG_MESSAGES
  658|       |        std::cout << "Exiv2::PngImage::doWriteMetadata: strip " << szChunk << " chunk (length: " << dataOffset << ")"
  659|       |                  << '\n';
  660|       |#endif
  661|    167|      } else {
  662|       |#ifdef EXIV2_DEBUG_MESSAGES
  663|       |        std::cout << "Exiv2::PngImage::doWriteMetadata: write " << szChunk << " chunk (length: " << dataOffset << ")"
  664|       |                  << '\n';
  665|       |#endif
  666|    167|        if (outIo.write(chunkBuf.c_data(), chunkBuf.size()) != chunkBuf.size())
  ------------------
  |  Branch (666:13): [True: 0, False: 167]
  ------------------
  667|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  668|    167|      }
  669|  1.62k|    } 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.62k|      if (outIo.write(chunkBuf.c_data(), chunkBuf.size()) != chunkBuf.size())
  ------------------
  |  Branch (675:11): [True: 0, False: 1.62k]
  ------------------
  676|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  677|  1.62k|    }
  678|  2.19k|  }
  679|       |
  680|    280|}  // PngImage::doWriteMetadata
_ZN5Exiv214newPngInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  684|    878|Image::UniquePtr newPngInstance(BasicIo::UniquePtr io, bool create) {
  685|    878|  auto image = std::make_unique<PngImage>(std::move(io), create);
  686|    878|  if (!image->good()) {
  ------------------
  |  Branch (686:7): [True: 0, False: 878]
  ------------------
  687|      0|    return nullptr;
  688|      0|  }
  689|    878|  return image;
  690|    878|}
_ZN5Exiv29isPngTypeERNS_7BasicIoEb:
  692|  18.0k|bool isPngType(BasicIo& iIo, bool advance) {
  693|  18.0k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (693:7): [True: 0, False: 18.0k]
  |  Branch (693:22): [True: 98, False: 17.9k]
  ------------------
  694|     98|    throw Error(ErrorCode::kerInputDataReadFailed);
  695|     98|  }
  696|  17.9k|  const int32_t len = 8;
  697|  17.9k|  std::array<byte, len> buf;
  698|  17.9k|  iIo.read(buf.data(), len);
  699|  17.9k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (699:7): [True: 0, False: 17.9k]
  |  Branch (699:22): [True: 0, False: 17.9k]
  ------------------
  700|      0|    return false;
  701|      0|  }
  702|  17.9k|  bool rc = buf == pngSignature;
  703|  17.9k|  if (!advance || !rc) {
  ------------------
  |  Branch (703:7): [True: 14.8k, False: 3.10k]
  |  Branch (703:19): [True: 0, False: 3.10k]
  ------------------
  704|  14.8k|    iIo.seek(-len, BasicIo::cur);
  705|  14.8k|  }
  706|       |
  707|  17.9k|  return rc;
  708|  17.9k|}
pngimage.cpp:_ZN5Exiv2L5findiERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_:
  176|  17.7k|static std::string::size_type findi(const std::string& str, const std::string& substr) {
  177|  17.7k|  return str.find(substr);
  178|  17.7k|}
pngimage.cpp:_ZN5Exiv2L13tEXtToDataBufEPKhmRNS_7DataBufE:
  124|     89|static bool tEXtToDataBuf(const byte* bytes, size_t length, DataBuf& result) {
  125|     89|  static std::array<int, 256> value;
  126|     89|  static bool bFirst = true;
  127|     89|  if (bFirst) {
  ------------------
  |  Branch (127:7): [True: 1, False: 88]
  ------------------
  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|     89|  size_t count = 0;
  142|       |  // p points to the current position in the array bytes
  143|     89|  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|  6.39k|  while (count < 3 && 0 < length) {
  ------------------
  |  Branch (148:10): [True: 6.34k, False: 42]
  |  Branch (148:23): [True: 6.30k, False: 47]
  ------------------
  149|       |    // length is later used for range checks of p => decrement it for each increment of p
  150|  6.30k|    --length;
  151|  6.30k|    if (*p++ == '\n') {
  ------------------
  |  Branch (151:9): [True: 140, False: 6.16k]
  ------------------
  152|    140|      count++;
  153|    140|    }
  154|  6.30k|  }
  155|  18.3k|  for (size_t i = 0; i < length; i++)
  ------------------
  |  Branch (155:22): [True: 18.2k, False: 89]
  ------------------
  156|  18.2k|    if (value[p[i]])
  ------------------
  |  Branch (156:9): [True: 2.92k, False: 15.2k]
  ------------------
  157|  2.92k|      ++count;
  158|     89|  result.alloc((count + 1) / 2);
  159|       |
  160|       |  // hex to binary
  161|     89|  count = 0;
  162|     89|  byte* r = result.data();
  163|     89|  int n = 0;  // nibble
  164|  18.3k|  for (size_t i = 0; i < length; i++) {
  ------------------
  |  Branch (164:22): [True: 18.2k, False: 89]
  ------------------
  165|  18.2k|    if (value[p[i]]) {
  ------------------
  |  Branch (165:9): [True: 2.92k, False: 15.2k]
  ------------------
  166|  2.92k|      int v = value[p[i]] - 1;
  167|  2.92k|      if (++count % 2)
  ------------------
  |  Branch (167:11): [True: 1.47k, False: 1.45k]
  ------------------
  168|  1.47k|        n = v * 16;  // leading digit
  169|  1.45k|      else
  170|  1.45k|        *r++ = n + v;  // trailing
  171|  2.92k|    }
  172|  18.2k|  }
  173|     89|  return true;
  174|     89|}
pngimage.cpp:_ZN5Exiv2L13zlibToDataBufEPKhmRNS_7DataBufE:
   74|    544|static bool zlibToDataBuf(const byte* bytes, uLongf length, DataBuf& result) {
   75|    544|  uLongf uncompressedLen = length;  // just a starting point
   76|    544|  int zlibResult = Z_BUF_ERROR;
   77|       |
   78|  1.12k|  while (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (78:10): [True: 585, False: 544]
  ------------------
   79|    585|    result.alloc(uncompressedLen);
   80|    585|    zlibResult = uncompress(result.data(), &uncompressedLen, bytes, length);
   81|       |    // if result buffer is large than necessary, redo to fit perfectly.
   82|    585|    if (zlibResult == Z_OK && uncompressedLen < result.size()) {
  ------------------
  |  Branch (82:9): [True: 22, False: 563]
  |  Branch (82:31): [True: 22, False: 0]
  ------------------
   83|     22|      result.reset();
   84|       |
   85|     22|      result.alloc(uncompressedLen);
   86|     22|      zlibResult = uncompress(result.data(), &uncompressedLen, bytes, length);
   87|     22|    }
   88|    585|    if (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (88:9): [True: 41, False: 544]
  ------------------
   89|       |      // the uncompressed buffer needs to be larger
   90|     41|      result.reset();
   91|       |
   92|       |      // Sanity - never bigger than 16mb
   93|     41|      if (uncompressedLen > 16 * 1024 * 1024)
  ------------------
  |  Branch (93:11): [True: 0, False: 41]
  ------------------
   94|      0|        zlibResult = Z_DATA_ERROR;
   95|     41|      else
   96|     41|        uncompressedLen *= 2;
   97|     41|    }
   98|    585|  }
   99|       |
  100|       |  return zlibResult == Z_OK;
  101|    544|}
pngimage.cpp:_ZN5Exiv2L9readChunkERNS_7DataBufERNS_7BasicIoE:
  379|  98.0k|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|  98.0k|  const size_t bufRead = io.read(buffer.data(), buffer.size());
  384|  98.0k|  if (io.error()) {
  ------------------
  |  Branch (384:7): [True: 0, False: 98.0k]
  ------------------
  385|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  386|      0|  }
  387|  98.0k|  if (bufRead != buffer.size()) {
  ------------------
  |  Branch (387:7): [True: 44, False: 98.0k]
  ------------------
  388|     44|    throw Error(ErrorCode::kerInputDataReadFailed);
  389|     44|  }
  390|  98.0k|}
pngimage.cpp:_ZN5Exiv2L16zlibToCompressedEPKhmRNS_7DataBufE:
  103|     70|static bool zlibToCompressed(const byte* bytes, uLongf length, DataBuf& result) {
  104|     70|  uLongf compressedLen = length;  // just a starting point
  105|     70|  int zlibResult = Z_BUF_ERROR;
  106|       |
  107|    216|  while (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (107:10): [True: 146, False: 70]
  ------------------
  108|    146|    result.alloc(compressedLen);
  109|    146|    zlibResult = compress(result.data(), &compressedLen, bytes, length);
  110|    146|    if (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (110:9): [True: 76, False: 70]
  ------------------
  111|       |      // the compressedArray needs to be larger
  112|     76|      result.reset();
  113|     76|      compressedLen *= 2;
  114|     76|    } else {
  115|     70|      result.reset();
  116|     70|      result.alloc(compressedLen);
  117|     70|      zlibResult = compress(result.data(), &compressedLen, bytes, length);
  118|     70|    }
  119|    146|  }
  120|       |
  121|       |  return zlibResult == Z_OK;
  122|     70|}
pngimage.cpp:_ZN12_GLOBAL__N_17compareENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEERKN5Exiv27DataBufE:
   44|  1.20k|bool compare(std::string_view str, const Exiv2::DataBuf& buf) {
   45|  1.20k|  const auto minlen = std::min<size_t>(str.size(), buf.size());
   46|  1.20k|  return buf.cmpBytes(0, str.data(), minlen) == 0;
   47|  1.20k|}

_ZN5Exiv212PreviewImageC2ENS_17PreviewPropertiesEONS_7DataBufE:
  954|    517|    properties_(std::move(properties)), preview_(std::move(data)) {
  955|    517|}
_ZNK5Exiv212PreviewImage5pDataEv:
  981|    517|const byte* PreviewImage::pData() const {
  982|    517|  return preview_.c_data();
  983|    517|}
_ZNK5Exiv212PreviewImage4sizeEv:
  985|    517|uint32_t PreviewImage::size() const {
  986|    517|  return static_cast<uint32_t>(preview_.size());
  987|    517|}
_ZN5Exiv214PreviewManagerC2ERKNS_5ImageE:
 1009|  2.41k|PreviewManager::PreviewManager(const Image& image) : image_(image) {
 1010|  2.41k|}
_ZNK5Exiv214PreviewManager20getPreviewPropertiesEv:
 1012|  2.41k|PreviewPropertiesList PreviewManager::getPreviewProperties() const {
 1013|  2.41k|  PreviewPropertiesList list;
 1014|       |  // go through the loader table and store all successfully created loaders in the list
 1015|  83.5k|  for (PreviewId id = 0; id < Loader::getNumLoaders(); ++id) {
  ------------------
  |  Branch (1015:26): [True: 81.1k, False: 2.41k]
  ------------------
 1016|  81.1k|    auto loader = Loader::create(id, image_);
 1017|  81.1k|    if (loader && loader->readDimensions()) {
  ------------------
  |  Branch (1017:9): [True: 4.97k, False: 76.1k]
  |  Branch (1017:19): [True: 3.42k, False: 1.55k]
  ------------------
 1018|  3.42k|      PreviewProperties props = loader->getProperties();
 1019|  3.42k|      DataBuf buf = loader->getData();  // #16 getPreviewImage()
 1020|  3.42k|      props.size_ = buf.size();         //     update the size
 1021|  3.42k|      list.push_back(std::move(props));
 1022|  3.42k|    }
 1023|  81.1k|  }
 1024|  2.41k|  std::sort(list.begin(), list.end(),
 1025|  2.41k|            [](const auto& lhs, const auto& rhs) { return lhs.width_ * lhs.height_ < rhs.width_ * rhs.height_; });
 1026|       |
 1027|  2.41k|  return list;
 1028|  2.41k|}
_ZNK5Exiv214PreviewManager15getPreviewImageERKNS_17PreviewPropertiesE:
 1030|    517|PreviewImage PreviewManager::getPreviewImage(const PreviewProperties& properties) const {
 1031|    517|  auto loader = Loader::create(properties.id_, image_);
 1032|    517|  DataBuf buf;
 1033|    517|  if (loader) {
  ------------------
  |  Branch (1033:7): [True: 517, False: 0]
  ------------------
 1034|    517|    buf = loader->getData();
 1035|    517|  }
 1036|       |
 1037|    517|  return {properties, std::move(buf)};
 1038|    517|}
preview.cpp:_ZN12_GLOBAL__N_16Loader13getNumLoadersEv:
  342|   165k|PreviewId Loader::getNumLoaders() {
  343|   165k|  return PreviewId{std::size(loaderList_)};
  344|   165k|}
preview.cpp:_ZN12_GLOBAL__N_118createLoaderNativeEiRKN5Exiv25ImageEi:
  360|  9.67k|Loader::UniquePtr createLoaderNative(PreviewId id, const Image& image, int parIdx) {
  361|  9.67k|  return std::make_unique<LoaderNative>(id, image, parIdx);
  362|  9.67k|}
preview.cpp:_ZN12_GLOBAL__N_112LoaderNativeC2EiRKN5Exiv25ImageEi:
  346|  9.67k|LoaderNative::LoaderNative(PreviewId id, const Image& image, int parIdx) : Loader(id, image) {
  347|  9.67k|  if (0 > parIdx || static_cast<size_t>(parIdx) >= image.nativePreviews().size())
  ------------------
  |  Branch (347:7): [True: 0, False: 9.67k]
  |  Branch (347:21): [True: 9.67k, False: 0]
  ------------------
  348|  9.67k|    return;
  349|      0|  nativePreview_ = image.nativePreviews()[parIdx];
  350|      0|  width_ = nativePreview_.width_;
  351|      0|  height_ = nativePreview_.height_;
  352|      0|  valid_ = true;
  353|      0|  if (nativePreview_.filter_.empty()) {
  ------------------
  |  Branch (353:7): [True: 0, False: 0]
  ------------------
  354|      0|    size_ = nativePreview_.size_;
  355|      0|  } else {
  356|      0|    size_ = getData().size();
  357|      0|  }
  358|      0|}
preview.cpp:_ZN12_GLOBAL__N_16LoaderC2EiRKN5Exiv25ImageE:
  335|  76.9k|Loader::Loader(PreviewId id, const Image& image) : id_(id), image_(image) {
  336|  76.9k|}
preview.cpp:_ZNK12_GLOBAL__N_16Loader13getPropertiesEv:
  338|  3.42k|PreviewProperties Loader::getProperties() const {
  339|  3.42k|  return {"", "", size_, width_, height_, id_};
  340|  3.42k|}
preview.cpp:_ZN12_GLOBAL__N_16Loader14readDimensionsEv:
   69|  2.46k|  virtual bool readDimensions() {
   70|  2.46k|    return true;
   71|  2.46k|  }
preview.cpp:_ZN12_GLOBAL__N_16LoaderD2Ev:
   46|  76.9k|  virtual ~Loader() = default;
preview.cpp:_ZNK12_GLOBAL__N_16Loader5validEv:
   58|  80.8k|  [[nodiscard]] virtual bool valid() const {
   59|  80.8k|    return valid_;
   60|  80.8k|  }
preview.cpp:_ZN12_GLOBAL__N_124createLoaderExifDataJpegEiRKN5Exiv25ImageEi:
  553|  29.0k|Loader::UniquePtr createLoaderExifDataJpeg(PreviewId id, const Image& image, int parIdx) {
  554|  29.0k|  return std::make_unique<LoaderExifDataJpeg>(id, image, parIdx);
  555|  29.0k|}
preview.cpp:_ZN12_GLOBAL__N_118LoaderExifDataJpegC2EiRKN5Exiv25ImageEi:
  540|  29.0k|    Loader(id, image), dataKey_(param_[parIdx].dataKey_) {
  541|  29.0k|  if (auto pos = image_.exifData().findKey(dataKey_); pos != image_.exifData().end()) {
  ------------------
  |  Branch (541:55): [True: 37, False: 28.9k]
  ------------------
  542|     37|    size_ = pos->sizeDataArea();  // indirect data
  543|     37|    if (size_ == 0 && pos->typeId() == undefined)
  ------------------
  |  Branch (543:9): [True: 37, False: 0]
  |  Branch (543:23): [True: 15, False: 22]
  ------------------
  544|     15|      size_ = pos->size();  // direct data
  545|     37|  }
  546|       |
  547|  29.0k|  if (size_ == 0)
  ------------------
  |  Branch (547:7): [True: 29.0k, False: 15]
  ------------------
  548|  29.0k|    return;
  549|       |
  550|     15|  valid_ = true;
  551|     15|}
preview.cpp:_ZNK12_GLOBAL__N_118LoaderExifDataJpeg13getPropertiesEv:
  557|      5|PreviewProperties LoaderExifDataJpeg::getProperties() const {
  558|      5|  PreviewProperties prop = Loader::getProperties();
  559|      5|  prop.mimeType_ = "image/jpeg";
  560|      5|  prop.extension_ = ".jpg";
  561|      5|  return prop;
  562|      5|}
preview.cpp:_ZNK12_GLOBAL__N_118LoaderExifDataJpeg7getDataEv:
  564|     20|DataBuf LoaderExifDataJpeg::getData() const {
  565|     20|  DataBuf buf;
  566|       |
  567|     20|  if (!valid())
  ------------------
  |  Branch (567:7): [True: 0, False: 20]
  ------------------
  568|      0|    return buf;
  569|       |
  570|     20|  if (auto pos = image_.exifData().findKey(dataKey_); pos != image_.exifData().end()) {
  ------------------
  |  Branch (570:55): [True: 20, False: 0]
  ------------------
  571|     20|    buf = pos->dataArea();  // indirect data
  572|       |
  573|     20|    if (buf.empty()) {  // direct data
  ------------------
  |  Branch (573:9): [True: 20, False: 0]
  ------------------
  574|     20|      buf = DataBuf(pos->size());
  575|     20|      pos->copy(buf.data(), invalidByteOrder);
  576|     20|    }
  577|       |
  578|     20|    buf.write_uint8(0, 0xff);  // fix Minolta thumbnails with invalid jpeg header
  579|     20|    return buf;
  580|     20|  }
  581|       |
  582|      0|  return buf;
  583|     20|}
preview.cpp:_ZN12_GLOBAL__N_118LoaderExifDataJpeg14readDimensionsEv:
  585|     10|bool LoaderExifDataJpeg::readDimensions() {
  586|     10|  if (!valid())
  ------------------
  |  Branch (586:7): [True: 0, False: 10]
  ------------------
  587|      0|    return false;
  588|       |
  589|     10|  DataBuf buf = getData();
  590|     10|  if (buf.empty())
  ------------------
  |  Branch (590:7): [True: 0, False: 10]
  ------------------
  591|      0|    return false;
  592|       |
  593|     10|  try {
  594|     10|    auto image = ImageFactory::open(buf.c_data(), buf.size());
  595|     10|    if (!image)
  ------------------
  |  Branch (595:9): [True: 0, False: 10]
  ------------------
  596|      0|      return false;
  597|     10|    image->readMetadata();
  598|       |
  599|     10|    width_ = image->pixelWidth();
  600|     10|    height_ = image->pixelHeight();
  601|     10|  } catch (const Error& /* error */) {
  602|      5|    return false;
  603|      5|  }
  604|       |
  605|      5|  return true;
  606|     10|}
preview.cpp:_ZN12_GLOBAL__N_116createLoaderTiffEiRKN5Exiv25ImageEi:
  666|  16.7k|Loader::UniquePtr createLoaderTiff(PreviewId id, const Image& image, int parIdx) {
  667|  16.7k|  return std::make_unique<LoaderTiff>(id, image, parIdx);
  668|  16.7k|}
preview.cpp:_ZN12_GLOBAL__N_110LoaderTiffC2EiRKN5Exiv25ImageEi:
  609|  16.7k|    Loader(id, image), group_(param_[parIdx].group_) {
  610|  16.7k|  const ExifData& exifData = image_.exifData();
  611|       |
  612|  16.7k|  size_t offsetCount = 0;
  613|  16.7k|  ExifData::const_iterator pos;
  614|       |
  615|       |  // check if the group_ contains a preview image
  616|  16.7k|  if (param_[parIdx].checkTag_) {
  ------------------
  |  Branch (616:7): [True: 14.4k, False: 2.35k]
  ------------------
  617|  14.4k|    pos = exifData.findKey(ExifKey(param_[parIdx].checkTag_));
  618|  14.4k|    if (pos == exifData.end())
  ------------------
  |  Branch (618:9): [True: 11.0k, False: 3.38k]
  ------------------
  619|  11.0k|      return;
  620|  3.38k|    if (param_[parIdx].checkValue_ && pos->toString() != param_[parIdx].checkValue_)
  ------------------
  |  Branch (620:9): [True: 3.38k, False: 0]
  |  Branch (620:9): [True: 307, False: 3.07k]
  |  Branch (620:39): [True: 307, False: 3.07k]
  ------------------
  621|    307|      return;
  622|  3.38k|  }
  623|       |
  624|  5.42k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".StripOffsets"));
  625|  5.42k|  if (pos != exifData.end()) {
  ------------------
  |  Branch (625:7): [True: 2.84k, False: 2.58k]
  ------------------
  626|  2.84k|    offsetTag_ = "StripOffsets";
  627|  2.84k|    sizeTag_ = "StripByteCounts";
  628|  2.84k|    offsetCount = pos->value().count();
  629|  2.84k|  } else {
  630|  2.58k|    pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".TileOffsets"));
  631|  2.58k|    if (pos == exifData.end())
  ------------------
  |  Branch (631:9): [True: 2.43k, False: 148]
  ------------------
  632|  2.43k|      return;
  633|    148|    offsetTag_ = "TileOffsets";
  634|    148|    sizeTag_ = "TileByteCounts";
  635|    148|    offsetCount = pos->value().count();
  636|    148|  }
  637|       |
  638|  2.98k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + '.' + sizeTag_));
  639|  2.98k|  if (pos == exifData.end())
  ------------------
  |  Branch (639:7): [True: 88, False: 2.90k]
  ------------------
  640|     88|    return;
  641|  2.90k|  if (offsetCount != pos->value().count())
  ------------------
  |  Branch (641:7): [True: 41, False: 2.86k]
  ------------------
  642|     41|    return;
  643|  7.58k|  for (size_t i = 0; i < offsetCount; i++) {
  ------------------
  |  Branch (643:22): [True: 4.72k, False: 2.86k]
  ------------------
  644|  4.72k|    size_ += pos->toUint32(i);
  645|  4.72k|  }
  646|       |
  647|  2.86k|  if (size_ == 0)
  ------------------
  |  Branch (647:7): [True: 44, False: 2.81k]
  ------------------
  648|     44|    return;
  649|       |
  650|  2.81k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".ImageWidth"));
  651|  2.81k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (651:7): [True: 2.77k, False: 41]
  |  Branch (651:7): [True: 2.68k, False: 129]
  |  Branch (651:32): [True: 2.68k, False: 88]
  ------------------
  652|  2.68k|    width_ = pos->toUint32();
  653|  2.68k|  }
  654|       |
  655|  2.81k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".ImageLength"));
  656|  2.81k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (656:7): [True: 2.77k, False: 38]
  |  Branch (656:7): [True: 2.69k, False: 125]
  |  Branch (656:32): [True: 2.69k, False: 87]
  ------------------
  657|  2.69k|    height_ = pos->toUint32();
  658|  2.69k|  }
  659|       |
  660|  2.81k|  if (width_ == 0 || height_ == 0)
  ------------------
  |  Branch (660:7): [True: 143, False: 2.67k]
  |  Branch (660:22): [True: 89, False: 2.58k]
  ------------------
  661|    232|    return;
  662|       |
  663|  2.58k|  valid_ = true;
  664|  2.58k|}
preview.cpp:_ZNK12_GLOBAL__N_110LoaderTiff13getPropertiesEv:
  670|  2.46k|PreviewProperties LoaderTiff::getProperties() const {
  671|  2.46k|  PreviewProperties prop = Loader::getProperties();
  672|  2.46k|  prop.mimeType_ = "image/tiff";
  673|  2.46k|  prop.extension_ = ".tif";
  674|  2.46k|  return prop;
  675|  2.46k|}
preview.cpp:_ZNK12_GLOBAL__N_110LoaderTiff7getDataEv:
  677|  2.58k|DataBuf LoaderTiff::getData() const {
  678|  2.58k|  const ExifData& exifData = image_.exifData();
  679|       |
  680|  2.58k|  ExifData preview;
  681|       |
  682|       |  // copy tags
  683|   691k|  for (auto&& pos : exifData) {
  ------------------
  |  Branch (683:19): [True: 691k, False: 2.58k]
  ------------------
  684|   691k|    if (pos.groupName() == group_) {
  ------------------
  |  Branch (684:9): [True: 155k, False: 535k]
  ------------------
  685|       |      /*
  686|       |         Write only the necessary TIFF image tags
  687|       |         tags that especially could cause problems are:
  688|       |         "NewSubfileType" - the result is no longer a thumbnail, it is a standalone image
  689|       |         "Orientation" - this tag typically appears only in the "Image" group. Deleting it ensures
  690|       |                         consistent result for all previews, including JPEG
  691|       |      */
  692|   155k|      uint16_t tag = pos.tag();
  693|   155k|      if (tag != 0x00fe && tag != 0x00ff && Internal::isTiffImageTag(tag, IfdId::ifd0Id)) {
  ------------------
  |  Branch (693:11): [True: 152k, False: 2.81k]
  |  Branch (693:28): [True: 151k, False: 1.02k]
  |  Branch (693:45): [True: 84.2k, False: 67.6k]
  ------------------
  694|  84.2k|        preview.add(ExifKey(tag, "Image"), &pos.value());
  695|  84.2k|      }
  696|   155k|    }
  697|   691k|  }
  698|       |
  699|  2.58k|  auto& dataValue = const_cast<Value&>(preview["Exif.Image." + offsetTag_].value());
  700|       |
  701|  2.58k|  if (dataValue.sizeDataArea() == 0) {
  ------------------
  |  Branch (701:7): [True: 2.58k, False: 0]
  ------------------
  702|       |    // image data are not available via exifData, read them from image_.io()
  703|  2.58k|    BasicIo& io = image_.io();
  704|       |
  705|  2.58k|    if (io.open() != 0) {
  ------------------
  |  Branch (705:9): [True: 0, False: 2.58k]
  ------------------
  706|      0|      throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  707|      0|    }
  708|  2.58k|    IoCloser closer(io);
  709|       |
  710|  2.58k|    const Exiv2::byte* base = io.mmap();
  711|       |
  712|  2.58k|    const Value& sizes = preview["Exif.Image." + sizeTag_].value();
  713|       |
  714|  2.58k|    if (sizes.count() == dataValue.count()) {
  ------------------
  |  Branch (714:9): [True: 2.58k, False: 0]
  ------------------
  715|  2.58k|      if (sizes.count() == 1) {
  ------------------
  |  Branch (715:11): [True: 2.47k, False: 113]
  ------------------
  716|       |        // this saves one copying of the buffer
  717|  2.47k|        uint32_t offset = dataValue.toUint32(0);
  718|  2.47k|        uint32_t size = sizes.toUint32(0);
  719|  2.47k|        if (Safe::add(offset, size) <= static_cast<uint32_t>(io.size()))
  ------------------
  |  Branch (719:13): [True: 1.33k, False: 1.14k]
  ------------------
  720|  1.33k|          dataValue.setDataArea(base + offset, size);
  721|  2.47k|      } else {
  722|       |        // FIXME: the buffer is probably copied twice, it should be optimized
  723|    113|        Internal::enforce(size_ <= io.size(), ErrorCode::kerCorruptedMetadata);
  724|    113|        DataBuf buf(size_);
  725|    113|        uint32_t idxBuf = 0;
  726|  1.48k|        for (size_t i = 0; i < sizes.count(); i++) {
  ------------------
  |  Branch (726:28): [True: 1.37k, False: 113]
  ------------------
  727|  1.37k|          uint32_t offset = dataValue.toUint32(i);
  728|  1.37k|          uint32_t size = sizes.toUint32(i);
  729|       |
  730|       |          // the size_ parameter is originally computed by summing all values inside sizes
  731|       |          // see the constructor of LoaderTiff
  732|       |          // But e.g in malicious files some of these values could be negative
  733|       |          // That's why we check again for each step here to really make sure we don't overstep
  734|  1.37k|          Internal::enforce(Safe::add(idxBuf, size) <= size_, ErrorCode::kerCorruptedMetadata);
  735|  1.37k|          if (size != 0 && Safe::add(offset, size) <= static_cast<uint32_t>(io.size())) {
  ------------------
  |  Branch (735:15): [True: 811, False: 565]
  |  Branch (735:28): [True: 457, False: 354]
  ------------------
  736|    457|            std::copy_n(base + offset, size, buf.begin() + idxBuf);
  737|    457|          }
  738|       |
  739|  1.37k|          idxBuf += size;
  740|  1.37k|        }
  741|    113|        dataValue.setDataArea(buf.c_data(), buf.size());
  742|    113|      }
  743|  2.58k|    }
  744|  2.58k|  }
  745|       |
  746|       |  // Fix compression value in the CR2 IFD2 image
  747|  2.58k|  if (0 == strcmp(group_, "Image2") && image_.mimeType() == "image/x-canon-cr2") {
  ------------------
  |  Branch (747:7): [True: 0, False: 2.58k]
  |  Branch (747:7): [True: 0, False: 2.58k]
  |  Branch (747:40): [True: 0, False: 0]
  ------------------
  748|      0|    preview["Exif.Image.Compression"] = std::uint16_t{1};
  749|      0|  }
  750|       |
  751|       |  // write new image
  752|  2.58k|  MemIo mio;
  753|  2.58k|  IptcData emptyIptc;
  754|  2.58k|  XmpData emptyXmp;
  755|  2.58k|  TiffParser::encode(mio, nullptr, 0, Exiv2::littleEndian, preview, emptyIptc, emptyXmp);
  756|  2.58k|  return {mio.mmap(), mio.size()};
  757|  2.58k|}
preview.cpp:_ZN12_GLOBAL__N_120createLoaderExifJpegEiRKN5Exiv25ImageEi:
  481|  19.1k|Loader::UniquePtr createLoaderExifJpeg(PreviewId id, const Image& image, int parIdx) {
  482|  19.1k|  return std::make_unique<LoaderExifJpeg>(id, image, parIdx);
  483|  19.1k|}
preview.cpp:_ZN12_GLOBAL__N_114LoaderExifJpegC2EiRKN5Exiv25ImageEi:
  452|  19.1k|LoaderExifJpeg::LoaderExifJpeg(PreviewId id, const Image& image, int parIdx) : Loader(id, image) {
  453|  19.1k|  const ExifData& exifData = image_.exifData();
  454|  19.1k|  auto pos = exifData.findKey(ExifKey(param_[parIdx].offsetKey_));
  455|  19.1k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (455:7): [True: 4.95k, False: 14.2k]
  |  Branch (455:7): [True: 3.18k, False: 15.9k]
  |  Branch (455:32): [True: 3.18k, False: 1.76k]
  ------------------
  456|  3.18k|    offset_ = pos->toUint32();
  457|  3.18k|  }
  458|       |
  459|  19.1k|  size_ = 0;
  460|  19.1k|  pos = exifData.findKey(ExifKey(param_[parIdx].sizeKey_));
  461|  19.1k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (461:7): [True: 4.99k, False: 14.1k]
  |  Branch (461:7): [True: 3.23k, False: 15.9k]
  |  Branch (461:32): [True: 3.23k, False: 1.76k]
  ------------------
  462|  3.23k|    size_ = pos->toUint32();
  463|  3.23k|  }
  464|       |
  465|  19.1k|  if (offset_ == 0 || size_ == 0)
  ------------------
  |  Branch (465:7): [True: 16.0k, False: 3.16k]
  |  Branch (465:23): [True: 174, False: 2.99k]
  ------------------
  466|  16.1k|    return;
  467|       |
  468|  2.99k|  if (param_[parIdx].baseOffsetKey_) {
  ------------------
  |  Branch (468:7): [True: 0, False: 2.99k]
  ------------------
  469|      0|    pos = exifData.findKey(ExifKey(param_[parIdx].baseOffsetKey_));
  470|      0|    if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (470:9): [True: 0, False: 0]
  |  Branch (470:9): [True: 0, False: 0]
  |  Branch (470:34): [True: 0, False: 0]
  ------------------
  471|      0|      offset_ += pos->toUint32();
  472|      0|    }
  473|      0|  }
  474|       |
  475|  2.99k|  if (Safe::add(offset_, size_) > image_.io().size())
  ------------------
  |  Branch (475:7): [True: 96, False: 2.89k]
  ------------------
  476|     96|    return;
  477|       |
  478|  2.89k|  valid_ = true;
  479|  2.89k|}
preview.cpp:_ZNK12_GLOBAL__N_114LoaderExifJpeg13getPropertiesEv:
  485|    956|PreviewProperties LoaderExifJpeg::getProperties() const {
  486|    956|  PreviewProperties prop = Loader::getProperties();
  487|    956|  prop.mimeType_ = "image/jpeg";
  488|    956|  prop.extension_ = ".jpg";
  489|    956|  return prop;
  490|    956|}
preview.cpp:_ZNK12_GLOBAL__N_114LoaderExifJpeg7getDataEv:
  492|  1.34k|DataBuf LoaderExifJpeg::getData() const {
  493|  1.34k|  if (!valid())
  ------------------
  |  Branch (493:7): [True: 0, False: 1.34k]
  ------------------
  494|      0|    return {};
  495|  1.34k|  BasicIo& io = image_.io();
  496|       |
  497|  1.34k|  if (io.open() != 0) {
  ------------------
  |  Branch (497:7): [True: 0, False: 1.34k]
  ------------------
  498|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  499|      0|  }
  500|  1.34k|  IoCloser closer(io);
  501|       |
  502|  1.34k|  const Exiv2::byte* base = io.mmap();
  503|       |
  504|  1.34k|  return {base + offset_, size_};
  505|  1.34k|}
preview.cpp:_ZN12_GLOBAL__N_114LoaderExifJpeg14readDimensionsEv:
  507|  2.50k|bool LoaderExifJpeg::readDimensions() {
  508|  2.50k|  if (!valid())
  ------------------
  |  Branch (508:7): [True: 0, False: 2.50k]
  ------------------
  509|      0|    return false;
  510|  2.50k|  if (width_ || height_)
  ------------------
  |  Branch (510:7): [True: 0, False: 2.50k]
  |  Branch (510:17): [True: 0, False: 2.50k]
  ------------------
  511|      0|    return true;
  512|       |
  513|  2.50k|  BasicIo& io = image_.io();
  514|       |
  515|  2.50k|  if (io.open() != 0) {
  ------------------
  |  Branch (515:7): [True: 0, False: 2.50k]
  ------------------
  516|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  517|      0|  }
  518|  2.50k|  IoCloser closer(io);
  519|  2.50k|  const Exiv2::byte* base = io.mmap();
  520|       |
  521|  2.50k|  try {
  522|  2.50k|    auto image = ImageFactory::open(base + offset_, size_);
  523|  2.50k|    if (!image)
  ------------------
  |  Branch (523:9): [True: 0, False: 2.50k]
  ------------------
  524|      0|      return false;
  525|  2.50k|    image->readMetadata();
  526|       |
  527|  2.50k|    width_ = image->pixelWidth();
  528|  2.50k|    height_ = image->pixelHeight();
  529|  2.50k|  } catch (const Error& /* error */) {
  530|  1.54k|#ifndef SUPPRESS_WARNINGS
  531|  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()
  ------------------
  532|  1.54k|#endif
  533|  1.54k|    return false;
  534|  1.54k|  }
  535|       |
  536|    956|  return true;
  537|  2.50k|}
preview.cpp:_ZN12_GLOBAL__N_119createLoaderXmpJpegEiRKN5Exiv25ImageEi:
  792|  2.34k|Loader::UniquePtr createLoaderXmpJpeg(PreviewId id, const Image& image, int parIdx) {
  793|  2.34k|  return std::make_unique<LoaderXmpJpeg>(id, image, parIdx);
  794|  2.34k|}
preview.cpp:_ZN12_GLOBAL__N_113LoaderXmpJpegC2EiRKN5Exiv25ImageEi:
  759|  2.34k|LoaderXmpJpeg::LoaderXmpJpeg(PreviewId id, const Image& image, int parIdx) : Loader(id, image) {
  760|  2.34k|  (void)parIdx;
  761|       |
  762|  2.34k|  const XmpData& xmpData = image_.xmpData();
  763|       |
  764|  2.34k|  std::string prefix = "xmpGImg";
  765|  2.34k|  if (xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/xapGImg:image")) != xmpData.end()) {
  ------------------
  |  Branch (765:7): [True: 0, False: 2.34k]
  ------------------
  766|      0|    prefix = "xapGImg";
  767|      0|  }
  768|       |
  769|  2.34k|  auto imageDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":image"));
  770|  2.34k|  if (imageDatum == xmpData.end())
  ------------------
  |  Branch (770:7): [True: 2.34k, False: 0]
  ------------------
  771|  2.34k|    return;
  772|      0|  auto formatDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":format"));
  773|      0|  if (formatDatum == xmpData.end())
  ------------------
  |  Branch (773:7): [True: 0, False: 0]
  ------------------
  774|      0|    return;
  775|      0|  auto widthDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":width"));
  776|      0|  if (widthDatum == xmpData.end())
  ------------------
  |  Branch (776:7): [True: 0, False: 0]
  ------------------
  777|      0|    return;
  778|      0|  auto heightDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":height"));
  779|      0|  if (heightDatum == xmpData.end())
  ------------------
  |  Branch (779:7): [True: 0, False: 0]
  ------------------
  780|      0|    return;
  781|       |
  782|      0|  if (formatDatum->toString() != "JPEG")
  ------------------
  |  Branch (782:7): [True: 0, False: 0]
  ------------------
  783|      0|    return;
  784|       |
  785|      0|  width_ = widthDatum->toUint32();
  786|      0|  height_ = heightDatum->toUint32();
  787|      0|  preview_ = decodeBase64(imageDatum->toString());
  788|      0|  size_ = preview_.size();
  789|      0|  valid_ = true;
  790|      0|}
preview.cpp:_ZN12_GLOBAL__N_16Loader6createEiRKN5Exiv25ImageE:
  320|  81.6k|Loader::UniquePtr Loader::create(PreviewId id, const Image& image) {
  321|  81.6k|  Loader::UniquePtr loader;
  322|  81.6k|  if (id < 0 || id >= Loader::getNumLoaders())
  ------------------
  |  Branch (322:7): [True: 0, False: 81.6k]
  |  Branch (322:17): [True: 0, False: 81.6k]
  ------------------
  323|      0|    return loader;
  324|       |
  325|  81.6k|  if (loaderList_[id].imageMimeType_ && std::string(loaderList_[id].imageMimeType_) != image.mimeType())
  ------------------
  |  Branch (325:7): [True: 7.11k, False: 74.5k]
  |  Branch (325:7): [True: 4.69k, False: 76.9k]
  |  Branch (325:41): [True: 4.69k, False: 2.42k]
  ------------------
  326|  4.69k|    return loader;
  327|       |
  328|  76.9k|  loader = loaderList_[id].create_(id, image, loaderList_[id].parIdx_);
  329|  76.9k|  if (!loader->valid())
  ------------------
  |  Branch (329:7): [True: 71.4k, False: 5.49k]
  ------------------
  330|  71.4k|    loader = nullptr;
  331|       |
  332|  76.9k|  return loader;
  333|  81.6k|}
preview.cpp:_ZZNK5Exiv214PreviewManager20getPreviewPropertiesEvENK3$_0clINS_17PreviewPropertiesES3_EEDaRKT_RKT0_:
 1025|  2.24k|            [](const auto& lhs, const auto& rhs) { return lhs.width_ * lhs.height_ < rhs.width_ * rhs.height_; });

_ZNK5Exiv29XmpNsInfoeqERKNS0_2NsE:
 4939|   643k|bool XmpNsInfo::operator==(const XmpNsInfo::Ns& ns) const {
 4940|   643k|  return ns_ == ns.ns_;
 4941|   643k|}
_ZNK5Exiv29XmpNsInfoeqERKNS0_6PrefixE:
 4943|  40.5M|bool XmpNsInfo::operator==(const XmpNsInfo::Prefix& prefix) const {
 4944|  40.5M|  return prefix_ == prefix.prefix_;
 4945|  40.5M|}
_ZN5Exiv213XmpProperties8getMutexEv:
 4952|  2.04M|std::mutex& XmpProperties::getMutex() {
 4953|  2.04M|  static std::mutex m;
 4954|  2.04M|  return m;
 4955|  2.04M|}
_ZN5Exiv213XmpProperties24lookupNsRegistryUnlockedERKNS_9XmpNsInfo6PrefixERKNS0_7XmpLockE:
 4963|  2.01M|const XmpNsInfo* XmpProperties::lookupNsRegistryUnlocked(const XmpNsInfo::Prefix& prefix, const XmpLock&) {
 4964|  9.42M|  for (const auto& [_, p] : nsRegistry_) {
  ------------------
  |  Branch (4964:27): [True: 9.42M, False: 2.01M]
  ------------------
 4965|  9.42M|    if (p == prefix)
  ------------------
  |  Branch (4965:9): [True: 4.48k, False: 9.42M]
  ------------------
 4966|  4.48k|      return &p;
 4967|  9.42M|  }
 4968|  2.01M|  return nullptr;
 4969|  2.01M|}
_ZN5Exiv213XmpProperties18registerNsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKNS0_7XmpLockE:
 4976|      5|void XmpProperties::registerNsUnlocked(const std::string& ns, const std::string& prefix, const XmpLock& lock) {
 4977|      5|  if (ns.empty())
  ------------------
  |  Branch (4977:7): [True: 0, False: 5]
  ------------------
 4978|      0|    return;
 4979|      5|  std::string ns2 = ns;
 4980|      5|  if (ns2.back() != '/' && ns2.back() != '#')
  ------------------
  |  Branch (4980:7): [True: 4, False: 1]
  |  Branch (4980:28): [True: 4, False: 0]
  ------------------
 4981|      4|    ns2 += '/';
 4982|       |
 4983|       |  // 1. Check if this URI is already registered with this exact prefix
 4984|      5|  auto it = nsRegistry_.find(ns2);
 4985|      5|  if (it != nsRegistry_.end() && std::strcmp(it->second.prefix_, prefix.c_str()) == 0) {
  ------------------
  |  Branch (4985:7): [True: 0, False: 5]
  |  Branch (4985:7): [True: 0, False: 5]
  |  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|      5|  if (auto xnp = lookupNsRegistryUnlocked(XmpNsInfo::Prefix{prefix}, lock)) {
  ------------------
  |  Branch (4990:12): [True: 0, False: 5]
  ------------------
 4991|      0|#ifndef SUPPRESS_WARNINGS
 4992|      0|    if (ns2 != xnp->ns_)
  ------------------
  |  Branch (4992:9): [True: 0, False: 0]
  ------------------
 4993|      0|      EXV_WARNING << "Updating namespace URI for " << prefix << " from " << xnp->ns_ << " to " << ns2 << "\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()
  ------------------
 4994|      0|#endif
 4995|      0|    unregisterNsUnlocked(xnp->ns_, lock);
 4996|      0|  }
 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|      5|  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|      5|  XmpNsInfo xn;
 5005|      5|  auto c = new char[ns2.size() + 1];
 5006|      5|  std::strcpy(c, ns2.c_str());
 5007|      5|  xn.ns_ = c;
 5008|      5|  c = new char[prefix.size() + 1];
 5009|      5|  std::strcpy(c, prefix.c_str());
 5010|      5|  xn.prefix_ = c;
 5011|      5|  xn.xmpPropertyInfo_ = nullptr;
 5012|      5|  xn.desc_ = "";
 5013|      5|  nsRegistry_[ns2] = xn;
 5014|      5|}
_ZN5Exiv213XmpProperties20unregisterNsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5021|      5|void XmpProperties::unregisterNsUnlocked(const std::string& ns, const XmpLock&) {
 5022|      5|  unregisterNsNoLock(ns, LifetimeKey{});
 5023|      5|}
_ZN5Exiv213XmpProperties18unregisterNsNoLockERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS0_11LifetimeKeyE:
 5025|     10|void XmpProperties::unregisterNsNoLock(const std::string& ns, LifetimeKey) {
 5026|     10|  auto i = nsRegistry_.find(ns);
 5027|     10|  if (i != nsRegistry_.end()) {
  ------------------
  |  Branch (5027:7): [True: 5, False: 5]
  ------------------
 5028|      5|    delete[] i->second.prefix_;
 5029|      5|    delete[] i->second.ns_;
 5030|      5|    nsRegistry_.erase(i);
 5031|      5|  }
 5032|     10|}
_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|      6|  while (i != nsRegistry_.end()) {
  ------------------
  |  Branch (5045:10): [True: 5, False: 1]
  ------------------
 5046|      5|    auto kill = i++;
 5047|      5|    unregisterNsNoLock(kill->first, LifetimeKey{});
 5048|      5|  }
 5049|      1|}
_ZN5Exiv213XmpProperties14prefixUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5056|  16.2k|std::string XmpProperties::prefixUnlocked(const std::string& ns, const XmpLock&) {
 5057|  16.2k|  std::string ns2 = ns;
 5058|  16.2k|  if (ns2.back() != '/' && ns2.back() != '#')
  ------------------
  |  Branch (5058:7): [True: 11.4k, False: 4.83k]
  |  Branch (5058:28): [True: 10.7k, False: 691]
  ------------------
 5059|  10.7k|    ns2 += '/';
 5060|       |
 5061|  16.2k|  auto i = nsRegistry_.find(ns2);
 5062|  16.2k|  std::string p;
 5063|  16.2k|  if (i != nsRegistry_.end())
  ------------------
  |  Branch (5063:7): [True: 1.33k, False: 14.9k]
  ------------------
 5064|  1.33k|    p = i->second.prefix_;
 5065|  14.9k|  else if (auto xn = Exiv2::find(xmpNsInfo, XmpNsInfo::Ns{std::move(ns2)}))
  ------------------
  |  Branch (5065:17): [True: 1.45k, False: 13.5k]
  ------------------
 5066|  1.45k|    p = std::string(xn->prefix_);
 5067|  16.2k|  return p;
 5068|  16.2k|}
_ZN5Exiv213XmpProperties10nsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5075|   995k|std::string XmpProperties::nsUnlocked(const std::string& prefix, const XmpLock& lock) {
 5076|   995k|  if (auto xn = lookupNsRegistryUnlocked(XmpNsInfo::Prefix{prefix}, lock))
  ------------------
  |  Branch (5076:12): [True: 2.83k, False: 992k]
  ------------------
 5077|  2.83k|    return xn->ns_;
 5078|   992k|  return nsInfoUnlocked(prefix, lock)->ns_;
 5079|   995k|}
_ZN5Exiv213XmpProperties21prefixIsBoundUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5081|  3.72k|bool XmpProperties::prefixIsBoundUnlocked(const std::string& prefix, const XmpLock& lock) {
 5082|  3.72k|  const auto pf = XmpNsInfo::Prefix{prefix};
 5083|  3.72k|  return lookupNsRegistryUnlocked(pf, lock) != nullptr || Exiv2::find(xmpNsInfo, pf) != nullptr;
  ------------------
  |  Branch (5083:10): [True: 1.65k, False: 2.07k]
  |  Branch (5083:59): [True: 2.07k, False: 5]
  ------------------
 5084|  3.72k|}
_ZN5Exiv213XmpProperties20propertyTypeUnlockedERKNS_6XmpKeyERKNS0_7XmpLockE:
 5111|  23.3k|TypeId XmpProperties::propertyTypeUnlocked(const XmpKey& key, const XmpLock& lock) {
 5112|  23.3k|  const XmpPropertyInfo* pi = propertyInfoUnlocked(key, lock);
 5113|  23.3k|  return pi ? pi->typeId_ : xmpText;
  ------------------
  |  Branch (5113:10): [True: 22.7k, False: 677]
  ------------------
 5114|  23.3k|}
_ZN5Exiv213XmpProperties20propertyInfoUnlockedERKNS_6XmpKeyERKNS0_7XmpLockE:
 5121|  23.3k|const XmpPropertyInfo* XmpProperties::propertyInfoUnlocked(const XmpKey& key, const XmpLock& lock) {
 5122|  23.3k|  std::string prefix = key.groupName();
 5123|  23.3k|  std::string property = key.tagName();
 5124|       |  // If property is a path for a nested property, determines the innermost element
 5125|  23.3k|  if (auto i = property.find_last_of('/'); i != std::string::npos) {
  ------------------
  |  Branch (5125:44): [True: 0, False: 23.3k]
  ------------------
 5126|      0|    i = std::distance(property.begin(), std::find_if(property.begin() + i, property.end(), isalpha));
 5127|      0|    property = property.substr(i);
 5128|      0|    i = property.find_first_of(':');
 5129|      0|    if (i != std::string::npos) {
  ------------------
  |  Branch (5129:9): [True: 0, False: 0]
  ------------------
 5130|      0|      prefix = property.substr(0, i);
 5131|      0|      property = property.substr(i + 1);
 5132|      0|    }
 5133|       |#ifdef EXIV2_DEBUG_MESSAGES
 5134|       |    std::cout << "Nested key: " << key.key() << ", prefix: " << prefix << ", property: " << property << "\n";
 5135|       |#endif
 5136|      0|  }
 5137|  23.3k|  if (auto pl = propertyListUnlocked(prefix, lock)) {
  ------------------
  |  Branch (5137:12): [True: 23.3k, False: 0]
  ------------------
 5138|  3.25M|    for (size_t j = 0; pl[j].name_; ++j) {
  ------------------
  |  Branch (5138:24): [True: 3.25M, False: 677]
  ------------------
 5139|  3.25M|      if (property == pl[j].name_) {
  ------------------
  |  Branch (5139:11): [True: 22.7k, False: 3.22M]
  ------------------
 5140|  22.7k|        return pl + j;
 5141|  22.7k|      }
 5142|  3.25M|    }
 5143|  23.3k|  }
 5144|    677|  return nullptr;
 5145|  23.3k|}
_ZN5Exiv213XmpProperties20propertyListUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5162|  23.3k|const XmpPropertyInfo* XmpProperties::propertyListUnlocked(const std::string& prefix, const XmpLock& lock) {
 5163|  23.3k|  return nsInfoUnlocked(prefix, lock)->xmpPropertyInfo_;
 5164|  23.3k|}
_ZN5Exiv213XmpProperties14nsInfoUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5171|  1.01M|const XmpNsInfo* XmpProperties::nsInfoUnlocked(const std::string& prefix, const XmpLock& lock) {
 5172|  1.01M|  const auto pf = XmpNsInfo::Prefix{prefix};
 5173|  1.01M|  const XmpNsInfo* xn = lookupNsRegistryUnlocked(pf, lock);
 5174|  1.01M|  if (!xn)
  ------------------
  |  Branch (5174:7): [True: 1.01M, False: 0]
  ------------------
 5175|  1.01M|    xn = Exiv2::find(xmpNsInfo, pf);
 5176|  1.01M|  if (!xn)
  ------------------
  |  Branch (5176:7): [True: 0, False: 1.01M]
  ------------------
 5177|      0|    throw Error(ErrorCode::kerNoNamespaceInfoForXmpPrefix, prefix);
 5178|  1.01M|  return xn;
 5179|  1.01M|}
_ZN5Exiv213XmpProperties13printPropertyERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS_5ValueE:
 5207|  18.1k|std::ostream& XmpProperties::printProperty(std::ostream& os, const std::string& key, const Value& value) {
 5208|  18.1k|  XmpLock lock;
 5209|  18.1k|  return printPropertyUnlocked(os, key, value, lock);
 5210|  18.1k|}
_ZN5Exiv213XmpProperties21printPropertyUnlockedERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS_5ValueERKNS0_7XmpLockE:
 5213|  18.1k|                                                   const XmpLock&) {
 5214|  18.1k|  PrintFct fct = printValue;
 5215|  18.1k|  if (value.count() != 0) {
  ------------------
  |  Branch (5215:7): [True: 17.3k, False: 778]
  ------------------
 5216|  17.3k|    if (auto info = Exiv2::find(xmpPrintInfo, key))
  ------------------
  |  Branch (5216:14): [True: 0, False: 17.3k]
  ------------------
 5217|      0|      fct = info->printFct_;
 5218|  17.3k|  }
 5219|  18.1k|  return fct(os, value, nullptr);
 5220|  18.1k|}
_ZN5Exiv26XmpKey4ImplC2ERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_RKNS_13XmpProperties7XmpLockE:
 5250|  11.7k|XmpKey::Impl::Impl(const std::string& prefix, const std::string& property, const XmpProperties::XmpLock& lock) {
 5251|       |  // Validate prefix unlocked (must hold lock)
 5252|  11.7k|  if (XmpProperties::nsUnlocked(prefix, lock).empty())
  ------------------
  |  Branch (5252:7): [True: 0, False: 11.7k]
  ------------------
 5253|      0|    throw Error(ErrorCode::kerNoNamespaceForPrefix, prefix);
 5254|       |
 5255|  11.7k|  property_ = property;
 5256|  11.7k|  prefix_ = prefix;
 5257|  11.7k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 5259|  89.9k|XmpKey::XmpKey(const std::string& key) : p_(std::make_unique<Impl>()) {
 5260|  89.9k|  p_->decomposeKey(key);
 5261|  89.9k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_13XmpProperties7XmpLockE:
 5263|   894k|XmpKey::XmpKey(const std::string& key, const XmpProperties::XmpLock& lock) : p_(std::make_unique<Impl>()) {
 5264|   894k|  p_->decomposeKeyUnlocked(key, lock);
 5265|   894k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKNS_13XmpProperties7XmpLockE:
 5271|  11.7k|    p_(std::make_unique<Impl>(prefix, property, lock)) {
 5272|  11.7k|}
_ZN5Exiv26XmpKeyD2Ev:
 5274|  1.07M|XmpKey::~XmpKey() = default;
_ZN5Exiv26XmpKeyC2ERKS0_:
 5276|  80.2k|XmpKey::XmpKey(const XmpKey& rhs) : p_(std::make_unique<Impl>(*rhs.p_)) {
 5277|  80.2k|}
_ZNK5Exiv26XmpKey5cloneEv:
 5286|  80.2k|XmpKey::UniquePtr XmpKey::clone() const {
 5287|  80.2k|  return UniquePtr(clone_());
 5288|  80.2k|}
_ZNK5Exiv26XmpKey6clone_Ev:
 5290|  80.2k|XmpKey* XmpKey::clone_() const {
 5291|  80.2k|  return new XmpKey(*this);
 5292|  80.2k|}
_ZNK5Exiv26XmpKey3keyEv:
 5294|  12.8M|std::string XmpKey::key() const {
 5295|  12.8M|  return std::string(Exiv2::XmpKey::Impl::familyName_) + "." + p_->prefix_ + "." + p_->property_;
 5296|  12.8M|}
_ZNK5Exiv26XmpKey9groupNameEv:
 5302|  26.7k|std::string XmpKey::groupName() const {
 5303|  26.7k|  return p_->prefix_;
 5304|  26.7k|}
_ZNK5Exiv26XmpKey7tagNameEv:
 5306|  39.8k|std::string XmpKey::tagName() const {
 5307|  39.8k|  return p_->property_;
 5308|  39.8k|}
_ZN5Exiv26XmpKey4Impl12decomposeKeyERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 5336|  89.9k|void XmpKey::Impl::decomposeKey(const std::string& key) {
 5337|  89.9k|  XmpProperties::XmpLock lock;
 5338|  89.9k|  decomposeKeyUnlocked(key, lock);
 5339|  89.9k|}  // XmpKey::Impl::decomposeKey
_ZN5Exiv26XmpKey4Impl20decomposeKeyUnlockedERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKNS_13XmpProperties7XmpLockE:
 5341|   983k|void XmpKey::Impl::decomposeKeyUnlocked(const std::string& key, const XmpProperties::XmpLock& lock) {
 5342|       |  // Get the family name, prefix and property name parts of the key
 5343|   983k|  if (!key.starts_with(familyName_))
  ------------------
  |  Branch (5343:7): [True: 35, False: 983k]
  ------------------
 5344|     35|    throw Error(ErrorCode::kerInvalidKey, key);
 5345|   983k|  std::string::size_type pos1 = key.find('.');
 5346|   983k|  std::string::size_type pos0 = pos1 + 1;
 5347|   983k|  pos1 = key.find('.', pos0);
 5348|   983k|  if (pos1 == std::string::npos)
  ------------------
  |  Branch (5348:7): [True: 0, False: 983k]
  ------------------
 5349|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5350|   983k|  std::string prefix = key.substr(pos0, pos1 - pos0);
 5351|   983k|  if (prefix.empty())
  ------------------
  |  Branch (5351:7): [True: 0, False: 983k]
  ------------------
 5352|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5353|   983k|  std::string property = key.substr(pos1 + 1);
 5354|   983k|  if (property.empty())
  ------------------
  |  Branch (5354:7): [True: 0, False: 983k]
  ------------------
 5355|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5356|       |
 5357|       |  // Validate prefix unlocked (must hold lock)
 5358|   983k|  if (XmpProperties::nsUnlocked(prefix, lock).empty())
  ------------------
  |  Branch (5358:7): [True: 0, False: 983k]
  ------------------
 5359|      0|    throw Error(ErrorCode::kerNoNamespaceForPrefix, prefix);
 5360|       |
 5361|   983k|  property_ = std::move(property);
 5362|   983k|  prefix_ = std::move(prefix);
 5363|   983k|}  // 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:
 5224|   983k|  Impl() = default;                                                                             //!< Default constructor

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

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

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

_ZN5Exiv29RiffVideoC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  364|    278|RiffVideo::RiffVideo(BasicIo::UniquePtr io) : Image(ImageType::riff, mdNone, std::move(io)) {
  365|    278|}  // RiffVideo::RiffVideo
_ZNK5Exiv29RiffVideo8mimeTypeEv:
  367|    278|std::string RiffVideo::mimeType() const {
  368|    278|  return "video/riff";
  369|    278|}
_ZN5Exiv29RiffVideo12readMetadataEv:
  374|    278|void RiffVideo::readMetadata() {
  375|    278|  if (io_->open() != 0)
  ------------------
  |  Branch (375:7): [True: 0, False: 278]
  ------------------
  376|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  377|       |
  378|       |  // Ensure that this is the correct image type
  379|    278|  if (!isRiffType(*io_, false)) {
  ------------------
  |  Branch (379:7): [True: 0, False: 278]
  ------------------
  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|    278|  IoCloser closer(*io_);
  386|    278|  clearMetadata();
  387|       |
  388|    278|  xmpData_["Xmp.video.FileSize"] = io_->size();
  389|    278|  xmpData_["Xmp.video.MimeType"] = mimeType();
  390|       |
  391|    278|  HeaderReader header(io_);
  392|    278|  xmpData_["Xmp.video.Container"] = header.getId();
  393|       |
  394|    278|  xmpData_["Xmp.video.FileType"] = readStringTag(io_);
  395|       |
  396|    278|  decodeBlocks();
  397|    278|}  // 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|   307k|bool RiffVideo::equal(const std::string& str1, const std::string& str2) {
  406|   307k|  if (str1.size() != str2.size())
  ------------------
  |  Branch (406:7): [True: 301k, False: 6.54k]
  ------------------
  407|   301k|    return false;
  408|       |
  409|  6.54k|  return Internal::upper(str1) == str2;
  410|   307k|}
_ZN5Exiv29RiffVideo8readListERKNS0_12HeaderReaderE:
  412|    313|void RiffVideo::readList(const HeaderReader& header_) {
  413|    313|  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|    313|  if (equal(chunk_type, CHUNK_ID_INFO))
  ------------------
  |  Branch (420:7): [True: 153, False: 160]
  ------------------
  421|    153|    readInfoListChunk(header_.getSize());
  422|    160|  else if (equal(chunk_type, CHUNK_ID_MOVI)) {
  ------------------
  |  Branch (422:12): [True: 2, False: 158]
  ------------------
  423|      2|    readMoviList(header_.getSize());
  424|      2|  }
  425|    313|}
_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: 127, False: 28.4k]
  ------------------
  435|    127|    readAviHeader();
  436|  28.4k|  else if (equal(header_.getId(), CHUNK_ID_STRH))
  ------------------
  |  Branch (436:12): [True: 387, False: 28.0k]
  ------------------
  437|    387|    readStreamHeader();
  438|  28.0k|  else if (equal(header_.getId(), CHUNK_ID_STRF))
  ------------------
  |  Branch (438:12): [True: 31, False: 27.9k]
  ------------------
  439|     31|    readStreamFormat(header_.getSize());
  440|  27.9k|  else if (equal(header_.getId(), CHUNK_ID_FMT)) {
  ------------------
  |  Branch (440:12): [True: 436, False: 27.5k]
  ------------------
  441|    436|    streamType_ = Audio;
  442|    436|    readStreamFormat(header_.getSize());
  443|  27.5k|  } else if (equal(header_.getId(), CHUNK_ID_STRD))
  ------------------
  |  Branch (443:14): [True: 10, False: 27.5k]
  ------------------
  444|     10|    readStreamData(header_.getSize());
  445|  27.5k|  else if (equal(header_.getId(), CHUNK_ID_STRN))
  ------------------
  |  Branch (445:12): [True: 2, False: 27.5k]
  ------------------
  446|      2|    StreamName(header_.getSize());
  447|  27.5k|  else if (equal(header_.getId(), CHUNK_ID_VPRP))
  ------------------
  |  Branch (447:12): [True: 10, False: 27.5k]
  ------------------
  448|     10|    readVPRPChunk(header_.getSize());
  449|  27.5k|  else if (equal(header_.getId(), CHUNK_ID_IDX1))
  ------------------
  |  Branch (449:12): [True: 34, False: 27.4k]
  ------------------
  450|     34|    readIndexChunk(header_.getSize());
  451|  27.4k|  else if (equal(header_.getId(), CHUNK_ID_DATA))
  ------------------
  |  Branch (451:12): [True: 47, False: 27.4k]
  ------------------
  452|     47|    readDataChunk(header_.getSize());
  453|  27.4k|  else if (equal(header_.getId(), CHUNK_ID_JUNK))
  ------------------
  |  Branch (453:12): [True: 23, False: 27.4k]
  ------------------
  454|     23|    readJunk(header_.getSize());
  455|  27.4k|  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.4k|    io_->seekOrThrow(io_->tell() + header_.getSize(), BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  462|  27.4k|  }
  463|  28.5k|}
_ZN5Exiv29RiffVideo12decodeBlocksEv:
  465|    278|void RiffVideo::decodeBlocks() {
  466|  28.9k|  do {
  467|  28.9k|    if (HeaderReader header(io_); equal(header.getId(), CHUNK_ID_LIST)) {
  ------------------
  |  Branch (467:35): [True: 313, False: 28.5k]
  ------------------
  468|    313|      readList(header);
  469|  28.5k|    } else {
  470|  28.5k|      readChunk(header);
  471|  28.5k|    }
  472|  28.9k|  } while (!io_->eof() && io_->tell() < io_->size());
  ------------------
  |  Branch (472:12): [True: 28.6k, False: 261]
  |  Branch (472:27): [True: 28.6k, False: 17]
  ------------------
  473|    278|}  // RiffVideo::decodeBlock
_ZN5Exiv29RiffVideo13readAviHeaderEv:
  475|    127|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|    127|  uint32_t TimeBetweenFrames = readDWORDTag(io_);
  496|    127|  xmpData_["Xmp.video.MicroSecPerFrame"] = TimeBetweenFrames;
  497|    127|  double frame_rate = 1000000. / TimeBetweenFrames;
  498|       |
  499|    127|  xmpData_["Xmp.video.MaxDataRate"] = readDWORDTag(io_);  // MaximumDataRate
  500|       |
  501|    127|  io_->seekOrThrow(io_->tell() + (DWORD * 2), BasicIo::beg,
  502|    127|                   ErrorCode::kerFailedToReadImageData);  // ignore PaddingGranularity and Flags
  503|       |
  504|    127|  uint32_t frame_count = readDWORDTag(io_);  // TotalNumberOfFrames
  505|    127|  xmpData_["Xmp.video.FrameCount"] = frame_count;
  506|       |
  507|    127|  io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg,
  508|    127|                   ErrorCode::kerFailedToReadImageData);  // ignore NumberOfInitialFrames
  509|       |
  510|    127|  xmpData_["Xmp.audio.ChannelType"] = getStreamType(readDWORDTag(io_));  // NumberOfStreams
  511|       |
  512|    127|  xmpData_["Xmp.video.StreamCount"] = readDWORDTag(io_);  // SuggestedBufferSize
  513|       |
  514|    127|  uint32_t width = readDWORDTag(io_);
  515|    127|  xmpData_["Xmp.video.Width"] = width;
  516|       |
  517|    127|  uint32_t height = readDWORDTag(io_);
  518|    127|  xmpData_["Xmp.video.Height"] = height;
  519|       |
  520|    127|  io_->seekOrThrow(io_->tell() + (DWORD * 4), BasicIo::beg,
  521|    127|                   ErrorCode::kerFailedToReadImageData);  // TimeScale, DataRate, StartTime, DataLength
  522|       |
  523|    127|  xmpData_["Xmp.video.AspectRatio"] = getAspectRatio(width, height);
  524|       |
  525|    127|  fillDuration(frame_rate, frame_count);
  526|    127|}
_ZN5Exiv29RiffVideo16readStreamHeaderEv:
  528|    387|void RiffVideo::readStreamHeader() {
  529|    387|  std::string stream = readStringTag(io_);
  530|    387|  streamType_ = (equal(stream, "VIDS")) ? Video : Audio;
  ------------------
  |  Branch (530:17): [True: 317, False: 70]
  ------------------
  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|    387|  xmpData_["Xmp.video.Codec"] = readStringTag(io_);  // DataHandler
  555|       |
  556|    387|  io_->seekOrThrow(io_->tell() + (DWORD * 2) + (WORD * 2), BasicIo::beg,
  557|    387|                   ErrorCode::kerFailedToReadImageData);  // dwFlags, wPriority, wLanguage, dwInitialFrames
  558|       |
  559|    387|  uint32_t divisor = readDWORDTag(io_);  // TimeScale
  560|       |
  561|    387|  if (divisor) {
  ------------------
  |  Branch (561:7): [True: 366, False: 21]
  ------------------
  562|    366|    auto rate = static_cast<double>(readDWORDTag(io_)) / divisor;
  563|    366|    xmpData_[(streamType_ == Video) ? "Xmp.video.FrameRate" : "Xmp.audio.SampleRate"] = rate;
  ------------------
  |  Branch (563:14): [True: 316, False: 50]
  ------------------
  564|    366|  }
  565|    387|  io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // dwStart
  566|       |
  567|    387|  if (divisor) {
  ------------------
  |  Branch (567:7): [True: 365, False: 22]
  ------------------
  568|    365|    auto frame_count = static_cast<double>(readDWORDTag(io_)) / divisor;  // DataLength
  569|    365|    xmpData_[(streamType_ == Video) ? "Xmp.video.FrameCount" : "Xmp.audio.FrameCount"] = frame_count;
  ------------------
  |  Branch (569:14): [True: 316, False: 49]
  ------------------
  570|    365|  }
  571|       |
  572|    387|  io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // dwSuggestedBufferSize
  573|       |
  574|    387|  xmpData_[(streamType_ == Video) ? "Xmp.video.VideoQuality" : "Xmp.video.StreamQuality"] = readDWORDTag(io_);
  ------------------
  |  Branch (574:12): [True: 317, False: 70]
  ------------------
  575|       |
  576|    387|  xmpData_[(streamType_ == Video) ? "Xmp.video.VideoSampleSize" : "Xmp.video.StreamSampleSize"] = readDWORDTag(io_);
  ------------------
  |  Branch (576:12): [True: 314, False: 73]
  ------------------
  577|    387|  io_->seekOrThrow(io_->tell() + (DWORD * 2), BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  578|    387|}
_ZN5Exiv29RiffVideo16readStreamFormatEm:
  580|    467|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|    467|  if (streamType_ == Video) {
  ------------------
  |  Branch (611:7): [True: 25, False: 442]
  ------------------
  612|     25|    io_->seekOrThrow(io_->tell() + (DWORD * 3), BasicIo::beg,
  613|     25|                     ErrorCode::kerFailedToReadImageData);  // ignore biSize, biWidth, biHeight
  614|     25|    xmpData_["Xmp.video.Planes"] = readWORDTag(io_);
  615|     25|    xmpData_["Xmp.video.PixelDepth"] = readWORDTag(io_);
  616|     25|    xmpData_["Xmp.video.Compressor"] = readStringTag(io_);
  617|     25|    xmpData_["Xmp.video.ImageLength"] = readDWORDTag(io_);
  618|     25|    xmpData_["Xmp.video.PixelPerMeterX"] = readQWORDTag(io_);
  619|     25|    xmpData_["Xmp.video.PixelPerMeterY"] = readQWORDTag(io_);
  620|     25|    if (uint32_t NumOfColours = readDWORDTag(io_))
  ------------------
  |  Branch (620:18): [True: 11, False: 14]
  ------------------
  621|     11|      xmpData_["Xmp.video.NumOfColours"] = NumOfColours;
  622|     14|    else
  623|     14|      xmpData_["Xmp.video.NumOfColours"] = "Unspecified";
  624|     25|    if (uint32_t NumIfImpColours = readDWORDTag(io_))
  ------------------
  |  Branch (624:18): [True: 10, False: 15]
  ------------------
  625|     10|      xmpData_["Xmp.video.NumIfImpColours"] = NumIfImpColours;
  626|     15|    else
  627|     15|      xmpData_["Xmp.video.NumIfImpColours"] = "All";
  628|    442|  } else if (streamType_ == Audio) {
  ------------------
  |  Branch (628:14): [True: 436, False: 6]
  ------------------
  629|    436|    uint16_t format_tag = readWORDTag(io_);
  630|    436|    if (auto it = Internal::audioEncodingValues.find(format_tag); it != Internal::audioEncodingValues.end())
  ------------------
  |  Branch (630:67): [True: 69, False: 367]
  ------------------
  631|     69|      xmpData_["Xmp.audio.Compressor"] = it->second;
  632|    367|    else
  633|    367|      xmpData_["Xmp.audio.Compressor"] = format_tag;
  634|       |
  635|    436|    xmpData_["Xmp.audio.ChannelType"] = getStreamType(readDWORDTag(io_));
  636|    436|    xmpData_["Xmp.audio.SampleRate"] = readDWORDTag(io_);                                      // nSamplesPerSec
  637|    436|    io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // nAvgBytesPerSec
  638|    436|    xmpData_["Xmp.audio.SampleType"] = readDWORDTag(io_);                                      // nBlockAlign
  639|    436|    xmpData_["Xmp.audio.BitsPerSample"] = readDWORDTag(io_);                                   // wBitsPerSample
  640|    436|    if (xmpData_["Xmp.video.FileType"].toString() == "AVI ")
  ------------------
  |  Branch (640:9): [True: 66, False: 370]
  ------------------
  641|     66|      io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // cbSize
  642|    436|  } else {
  643|      6|    io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  644|      6|  }
  645|    467|}
_ZNK5Exiv29RiffVideo14readStreamDataEm:
  647|     10|void RiffVideo::readStreamData(uint64_t size_) const {
  648|     10|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  649|     10|}
_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|    153|void RiffVideo::readInfoListChunk(uint64_t size_) {
  657|    153|  uint64_t current_size = DWORD;
  658|    627|  while (current_size < size_) {
  ------------------
  |  Branch (658:10): [True: 474, False: 153]
  ------------------
  659|    474|    std::string type = readStringTag(io_);
  660|    474|    size_t size = readDWORDTag(io_);
  661|    474|    std::string content = readStringTag(io_, size);
  662|    474|    if (auto it = Internal::infoTags.find(type); it != Internal::infoTags.end())
  ------------------
  |  Branch (662:50): [True: 40, False: 434]
  ------------------
  663|     40|      xmpData_[it->second] = content;
  664|    474|    current_size += DWORD * 2;
  665|    474|    current_size += size;
  666|    474|  }
  667|    153|}
_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|     34|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|     34|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  717|     34|}
_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: 39, False: 8]
  ------------------
  732|     39|    io_->seekOrThrow(io_->tell() + 1, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  733|     47|}
_ZNK5Exiv29RiffVideo8readJunkEm:
  735|     23|void RiffVideo::readJunk(uint64_t size_) const {
  736|     23|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  737|     23|}
_ZN5Exiv29RiffVideo13getStreamTypeEj:
  739|    557|std::string RiffVideo::getStreamType(uint32_t stream) {
  740|    557|  if (stream == 1)
  ------------------
  |  Branch (740:7): [True: 71, False: 486]
  ------------------
  741|     71|    return "Mono";
  742|    486|  if (stream == 2)
  ------------------
  |  Branch (742:7): [True: 8, False: 478]
  ------------------
  743|      8|    return "Stereo";
  744|    478|  if (stream == 5)
  ------------------
  |  Branch (744:7): [True: 82, False: 396]
  ------------------
  745|     82|    return "5.1 Surround Sound";
  746|    396|  if (stream == 7)
  ------------------
  |  Branch (746:7): [True: 11, False: 385]
  ------------------
  747|     11|    return "7.1 Surround Sound";
  748|    385|  return "Mono";
  749|    396|}
_ZN5Exiv29RiffVideo12fillDurationEdm:
  751|    116|void RiffVideo::fillDuration(double frame_rate, size_t frame_count) {
  752|    116|  if (frame_rate == 0)
  ------------------
  |  Branch (752:7): [True: 0, False: 116]
  ------------------
  753|      0|    return;
  754|       |
  755|    116|  auto duration = static_cast<uint64_t>(frame_count * 1000. / frame_rate);
  756|    116|  xmpData_["Xmp.video.FileDataRate"] = io_->size() / (1048576. * duration);
  757|    116|  xmpData_["Xmp.video.Duration"] = duration;  // Duration in number of seconds
  758|    116|}  // RiffVideo::fillDuration
_ZN5Exiv215newRiffInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  760|    278|Image::UniquePtr newRiffInstance(BasicIo::UniquePtr io, bool /*create*/) {
  761|    278|  auto image = std::make_unique<RiffVideo>(std::move(io));
  762|    278|  if (!image->good()) {
  ------------------
  |  Branch (762:7): [True: 0, False: 278]
  ------------------
  763|      0|    return nullptr;
  764|      0|  }
  765|    278|  return image;
  766|    278|}
_ZN5Exiv210isRiffTypeERNS_7BasicIoEb:
  768|  7.86k|bool isRiffType(BasicIo& iIo, bool advance) {
  769|  7.86k|  constexpr int len = 4;
  770|  7.86k|  const std::array<byte, len> RiffVideoId{'R', 'I', 'F', 'F'};
  771|  7.86k|  std::array<byte, len> buf;
  772|  7.86k|  iIo.read(buf.data(), len);
  773|  7.86k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (773:7): [True: 0, False: 7.86k]
  |  Branch (773:22): [True: 104, False: 7.75k]
  ------------------
  774|    104|    return false;
  775|    104|  }
  776|  7.75k|  bool matched = buf == RiffVideoId;
  777|  7.75k|  if (!advance || !matched) {
  ------------------
  |  Branch (777:7): [True: 7.75k, False: 0]
  |  Branch (777:19): [True: 0, False: 0]
  ------------------
  778|  7.75k|    iIo.seek(-1 * len, BasicIo::cur);
  779|  7.75k|  }
  780|  7.75k|  return matched;
  781|  7.86k|}

_ZN5Exiv28Rw2ImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
   29|  2.42k|Rw2Image::Rw2Image(BasicIo::UniquePtr io) : Image(ImageType::rw2, mdExif | mdIptc | mdXmp, std::move(io)) {
   30|  2.42k|}  // Rw2Image::Rw2Image
_ZNK5Exiv28Rw2Image8mimeTypeEv:
   32|  7.11k|std::string Rw2Image::mimeType() const {
   33|  7.11k|  return "image/x-panasonic-rw2";
   34|  7.11k|}
_ZNK5Exiv28Rw2Image10pixelWidthEv:
   36|    322|uint32_t Rw2Image::pixelWidth() const {
   37|    322|  auto imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.PanasonicRaw.SensorWidth"));
   38|    322|  if (imageWidth == exifData_.end() || imageWidth->count() == 0)
  ------------------
  |  Branch (38:7): [True: 261, False: 61]
  |  Branch (38:7): [True: 315, False: 7]
  |  Branch (38:40): [True: 54, False: 7]
  ------------------
   39|    315|    return 0;
   40|      7|  return imageWidth->toUint32();
   41|    322|}
_ZNK5Exiv28Rw2Image11pixelHeightEv:
   43|    322|uint32_t Rw2Image::pixelHeight() const {
   44|    322|  auto imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.PanasonicRaw.SensorHeight"));
   45|    322|  if (imageHeight == exifData_.end() || imageHeight->count() == 0)
  ------------------
  |  Branch (45:7): [True: 293, False: 29]
  |  Branch (45:7): [True: 316, False: 6]
  |  Branch (45:41): [True: 23, False: 6]
  ------------------
   46|    316|    return 0;
   47|      6|  return imageHeight->toUint32();
   48|    322|}
_ZN5Exiv28Rw2Image14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
   65|  3.44k|void Rw2Image::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
   66|  3.44k|  out << "RW2 IMAGE" << '\n';
   67|  3.44k|  if (io_->open() != 0)
  ------------------
  |  Branch (67:7): [True: 0, False: 3.44k]
  ------------------
   68|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   69|       |  // Ensure that this is the correct image type
   70|  3.44k|  if (imageType() == ImageType::none && !isRw2Type(*io_, false)) {
  ------------------
  |  Branch (70:7): [True: 0, False: 3.44k]
  |  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.44k|  io_->seek(0, BasicIo::beg);
   77|       |
   78|  3.44k|  printTiffStructure(io(), out, option, depth);
   79|  3.44k|}  // Rw2Image::printStructure
_ZN5Exiv28Rw2Image12readMetadataEv:
   81|  2.42k|void Rw2Image::readMetadata() {
   82|       |#ifdef EXIV2_DEBUG_MESSAGES
   83|       |  std::cerr << "Reading RW2 file " << io_->path() << "\n";
   84|       |#endif
   85|  2.42k|  if (io_->open() != 0) {
  ------------------
  |  Branch (85:7): [True: 0, False: 2.42k]
  ------------------
   86|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   87|      0|  }
   88|  2.42k|  IoCloser closer(*io_);
   89|       |  // Ensure that this is the correct image type
   90|  2.42k|  if (!isRw2Type(*io_, false)) {
  ------------------
  |  Branch (90:7): [True: 0, False: 2.42k]
  ------------------
   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.42k|  clearMetadata();
   96|  2.42k|  ByteOrder bo = Rw2Parser::decode(exifData_, iptcData_, xmpData_, io_->mmap(), io_->size());
   97|  2.42k|  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.42k|  PreviewManager loader(*this);
  102|  2.42k|  PreviewPropertiesList list = loader.getPreviewProperties();
  103|       |  // Todo: What if there are more preview images?
  104|  2.42k|  if (list.size() > 1) {
  ------------------
  |  Branch (104:7): [True: 799, False: 1.63k]
  ------------------
  105|    799|#ifndef SUPPRESS_WARNINGS
  106|    799|    EXV_WARNING << "RW2 image contains more than one preview. None used.\n";
  ------------------
  |  |  138|    799|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 799]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    799|  LogMsg(LogMsg::warn).os()
  ------------------
  107|    799|#endif
  108|    799|  }
  109|  2.42k|  if (list.size() != 1)
  ------------------
  |  Branch (109:7): [True: 1.82k, False: 601]
  ------------------
  110|  1.82k|    return;
  111|    601|  ExifData exifData;
  112|    601|  PreviewImage preview = loader.getPreviewImage(*list.begin());
  113|    601|  auto image = ImageFactory::open(preview.pData(), preview.size());
  114|    601|  if (!image) {
  ------------------
  |  Branch (114:7): [True: 0, False: 601]
  ------------------
  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|    601|  image->readMetadata();
  121|    601|  ExifData& prevData = image->exifData();
  122|    601|  if (!prevData.empty()) {
  ------------------
  |  Branch (122:7): [True: 478, False: 123]
  ------------------
  123|       |    // Filter duplicate tags
  124|  58.3k|    for (const auto& pos : exifData_) {
  ------------------
  |  Branch (124:26): [True: 58.3k, False: 478]
  ------------------
  125|  58.3k|      if (pos.ifdId() == IfdId::panaRawId)
  ------------------
  |  Branch (125:11): [True: 15.7k, False: 42.6k]
  ------------------
  126|  15.7k|        continue;
  127|  42.6k|      auto dup = prevData.findKey(ExifKey(pos.key()));
  128|  42.6k|      if (dup != prevData.end()) {
  ------------------
  |  Branch (128:11): [True: 6.93k, False: 35.7k]
  ------------------
  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.93k|        prevData.erase(dup);
  134|  6.93k|      }
  135|  42.6k|    }
  136|    478|  }
  137|       |  // Remove tags not applicable for raw images
  138|    601|  static constexpr auto filteredTags = std::array{
  139|    601|      "Exif.Photo.ComponentsConfiguration",
  140|    601|      "Exif.Photo.CompressedBitsPerPixel",
  141|    601|      "Exif.Panasonic.ColorEffect",
  142|    601|      "Exif.Panasonic.Contrast",
  143|    601|      "Exif.Panasonic.NoiseReduction",
  144|    601|      "Exif.Panasonic.ColorMode",
  145|    601|      "Exif.Panasonic.OpticalZoomMode",
  146|    601|      "Exif.Panasonic.Contrast",
  147|    601|      "Exif.Panasonic.Saturation",
  148|    601|      "Exif.Panasonic.Sharpness",
  149|    601|      "Exif.Panasonic.FilmMode",
  150|    601|      "Exif.Panasonic.SceneMode",
  151|    601|      "Exif.Panasonic.WBRedLevel",
  152|    601|      "Exif.Panasonic.WBGreenLevel",
  153|    601|      "Exif.Panasonic.WBBlueLevel",
  154|    601|      "Exif.Photo.ColorSpace",
  155|    601|      "Exif.Photo.PixelXDimension",
  156|    601|      "Exif.Photo.PixelYDimension",
  157|    601|      "Exif.Photo.SceneType",
  158|    601|      "Exif.Photo.CustomRendered",
  159|    601|      "Exif.Photo.DigitalZoomRatio",
  160|    601|      "Exif.Photo.SceneCaptureType",
  161|    601|      "Exif.Photo.GainControl",
  162|    601|      "Exif.Photo.Contrast",
  163|    601|      "Exif.Photo.Saturation",
  164|    601|      "Exif.Photo.Sharpness",
  165|    601|      "Exif.Image.PrintImageMatching",
  166|    601|      "Exif.Image.YCbCrPositioning",
  167|    601|  };
  168|  14.4k|  for (auto&& filteredTag : filteredTags) {
  ------------------
  |  Branch (168:27): [True: 14.4k, False: 601]
  ------------------
  169|  14.4k|    auto pos = prevData.findKey(ExifKey(filteredTag));
  170|  14.4k|    if (pos != prevData.end()) {
  ------------------
  |  Branch (170:9): [True: 11, False: 14.4k]
  ------------------
  171|       |#ifdef EXIV2_DEBUG_MESSAGES
  172|       |      std::cerr << "Exif tag " << pos->key() << " removed\n";
  173|       |#endif
  174|     11|      prevData.erase(pos);
  175|     11|    }
  176|  14.4k|  }
  177|       |
  178|       |  // Add the remaining tags
  179|  92.3k|  for (const auto& pos : prevData) {
  ------------------
  |  Branch (179:24): [True: 92.3k, False: 601]
  ------------------
  180|  92.3k|    exifData_.add(pos);
  181|  92.3k|  }
  182|       |
  183|    601|}  // Rw2Image::readMetadata
_ZN5Exiv29Rw2Parser6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhm:
  190|  2.42k|ByteOrder Rw2Parser::decode(ExifData& exifData, IptcData& iptcData, XmpData& xmpData, const byte* pData, size_t size) {
  191|  2.42k|  Rw2Header rw2Header;
  192|  2.42k|  return TiffParserWorker::decode(exifData, iptcData, xmpData, pData, size, Tag::pana, TiffMapping::findDecoder,
  193|  2.42k|                                  &rw2Header);
  194|  2.42k|}
_ZN5Exiv214newRw2InstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  198|  2.42k|Image::UniquePtr newRw2Instance(BasicIo::UniquePtr io, bool /*create*/) {
  199|  2.42k|  auto image = std::make_unique<Rw2Image>(std::move(io));
  200|  2.42k|  if (!image->good()) {
  ------------------
  |  Branch (200:7): [True: 0, False: 2.42k]
  ------------------
  201|      0|    return nullptr;
  202|      0|  }
  203|  2.42k|  return image;
  204|  2.42k|}
_ZN5Exiv29isRw2TypeERNS_7BasicIoEb:
  206|  21.4k|bool isRw2Type(BasicIo& iIo, bool advance) {
  207|  21.4k|  const int32_t len = 24;
  208|  21.4k|  byte buf[len];
  209|  21.4k|  iIo.read(buf, len);
  210|  21.4k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 21.4k]
  |  Branch (210:22): [True: 98, False: 21.3k]
  ------------------
  211|     98|    return false;
  212|     98|  }
  213|  21.3k|  Rw2Header header;
  214|  21.3k|  bool rc = header.read(buf, len);
  215|  21.3k|  if (!advance || !rc) {
  ------------------
  |  Branch (215:7): [True: 21.3k, False: 0]
  |  Branch (215:19): [True: 0, False: 0]
  ------------------
  216|  21.3k|    iIo.seek(-len, BasicIo::cur);
  217|  21.3k|  }
  218|  21.3k|  return rc;
  219|  21.4k|}

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

_ZN4Safe3addIjEET_S1_S1_:
  137|  5.88k|T add(T summand_1, T summand_2) {
  138|  5.88k|  T res = 0;
  139|  5.88k|  if (Internal::builtin_add_overflow(summand_1, summand_2, res)) {
  ------------------
  |  Branch (139:7): [True: 32, False: 5.84k]
  ------------------
  140|     32|    throw std::overflow_error("Overflow in addition");
  141|     32|  }
  142|  5.84k|  return res;
  143|  5.88k|}
_ZN4Safe8Internal20builtin_add_overflowIjEEbT_S2_RS2_:
   96|  5.88k|bool builtin_add_overflow(T summand_1, T summand_2, T& result) {
   97|  5.88k|#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.88k|    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.88k|}
_ZN4Safe3addImEET_S1_S1_:
  137|  3.19M|T add(T summand_1, T summand_2) {
  138|  3.19M|  T res = 0;
  139|  3.19M|  if (Internal::builtin_add_overflow(summand_1, summand_2, res)) {
  ------------------
  |  Branch (139:7): [True: 3, False: 3.19M]
  ------------------
  140|      3|    throw std::overflow_error("Overflow in addition");
  141|      3|  }
  142|  3.19M|  return res;
  143|  3.19M|}
_ZN4Safe8Internal20builtin_add_overflowImEEbT_S2_RS2_:
   96|  3.19M|bool builtin_add_overflow(T summand_1, T summand_2, T& result) {
   97|  3.19M|#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.19M|    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.19M|}
_ZN4Safe3addIlEET_S1_S1_:
  137|  29.0k|T add(T summand_1, T summand_2) {
  138|  29.0k|  T res = 0;
  139|  29.0k|  if (Internal::builtin_add_overflow(summand_1, summand_2, res)) {
  ------------------
  |  Branch (139:7): [True: 2, False: 29.0k]
  ------------------
  140|      2|    throw std::overflow_error("Overflow in addition");
  141|      2|  }
  142|  29.0k|  return res;
  143|  29.0k|}
_ZN4Safe8Internal20builtin_add_overflowIlEEbT_S2_RS2_:
   96|  29.0k|bool builtin_add_overflow(T summand_1, T summand_2, T& result) {
   97|  29.0k|#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|  29.0k|    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|  29.0k|}

samsungmn_int.cpp:_ZN5Exiv28InternalL22printCameraTemperatureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   53|     36|static std::ostream& printCameraTemperature(std::ostream& os, const Value& value, const ExifData*) {
   54|     36|  if (value.count() != 1 || value.typeId() != signedRational) {
  ------------------
  |  Branch (54:7): [True: 6, False: 30]
  |  Branch (54:29): [True: 22, False: 8]
  ------------------
   55|     28|    return os << value;
   56|     28|  }
   57|      8|  return os << value.toFloat() << " C";
   58|     36|}
samsungmn_int.cpp:_ZN5Exiv28InternalL18printFocalLength35ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   61|     32|static std::ostream& printFocalLength35(std::ostream& os, const Value& value, const ExifData*) {
   62|     32|  if (value.count() != 1 || value.typeId() != unsignedLong) {
  ------------------
  |  Branch (62:7): [True: 6, False: 26]
  |  Branch (62:29): [True: 14, False: 12]
  ------------------
   63|     20|    return os << value;
   64|     20|  }
   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|     54|static std::ostream& printPwColor(std::ostream& os, const Value& value, const ExifData*) {
  148|     54|  if (value.count() != 1 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (148:7): [True: 0, False: 54]
  |  Branch (148:29): [True: 0, False: 54]
  ------------------
  149|      0|    return os << value;
  150|      0|  }
  151|       |  // Special case where no color modification is done
  152|     54|  if (value.toInt64() == 65535) {
  ------------------
  |  Branch (152:7): [True: 0, False: 54]
  ------------------
  153|      0|    return os << _("Neutral");
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  154|      0|  }
  155|       |  // Output seems to represent Hue in degrees
  156|     54|  return os << value.toInt64();
  157|     54|}
samsungmn_int.cpp:_ZN5Exiv28InternalL16printValueMinus4ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  160|    158|static std::ostream& printValueMinus4(std::ostream& os, const Value& value, const ExifData*) {
  161|    158|  if (value.count() != 1 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (161:7): [True: 0, False: 158]
  |  Branch (161:29): [True: 0, False: 158]
  ------------------
  162|      0|    return os << value;
  163|      0|  }
  164|    158|  return os << value.toInt64(0) - 4;
  165|    158|}

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

_ZN5Exiv28Internal14SigmaMakerNote15printStripLabelERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   71|    402|std::ostream& SigmaMakerNote::printStripLabel(std::ostream& os, const Value& value, const ExifData*) {
   72|    402|  std::string v = value.toString();
   73|    402|  if (auto pos = v.find(':'); pos != std::string::npos) {
  ------------------
  |  Branch (73:31): [True: 178, False: 224]
  ------------------
   74|    178|    if (v.at(pos + 1) == ' ')
  ------------------
  |  Branch (74:9): [True: 76, False: 102]
  ------------------
   75|     76|      ++pos;
   76|    178|    v = v.substr(pos + 1);
   77|    178|  }
   78|    402|  return os << v;
   79|    402|}
_ZN5Exiv28Internal14SigmaMakerNote11print0x0008ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   81|    488|std::ostream& SigmaMakerNote::print0x0008(std::ostream& os, const Value& value, const ExifData*) {
   82|    488|  std::string v = value.toString();
   83|    488|  if (v.empty()) {
  ------------------
  |  Branch (83:7): [True: 132, False: 356]
  ------------------
   84|    132|    return os;
   85|    132|  }
   86|    356|  switch (v.front()) {
   87|     12|    case 'P':
  ------------------
  |  Branch (87:5): [True: 12, False: 344]
  ------------------
   88|     12|      return os << _("Program");
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
   89|     56|    case 'A':
  ------------------
  |  Branch (89:5): [True: 56, False: 300]
  ------------------
   90|     56|      return os << _("Aperture priority");
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
   91|     28|    case 'S':
  ------------------
  |  Branch (91:5): [True: 28, False: 328]
  ------------------
   92|     28|      return os << _("Shutter priority");
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
   93|     16|    case 'M':
  ------------------
  |  Branch (93:5): [True: 16, False: 340]
  ------------------
   94|     16|      return os << _("Manual");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
   95|    244|    default:
  ------------------
  |  Branch (95:5): [True: 244, False: 112]
  ------------------
   96|    244|      return os << "(" << value << ")";
   97|    356|  }
   98|    356|}
_ZN5Exiv28Internal14SigmaMakerNote11print0x0009ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  100|    544|std::ostream& SigmaMakerNote::print0x0009(std::ostream& os, const Value& value, const ExifData*) {
  101|    544|  std::string v = value.toString();
  102|    544|  if (v.empty()) {
  ------------------
  |  Branch (102:7): [True: 126, False: 418]
  ------------------
  103|    126|    return os;
  104|    126|  }
  105|    418|  switch (v.front()) {
  106|     52|    case 'A':
  ------------------
  |  Branch (106:5): [True: 52, False: 366]
  ------------------
  107|     52|      return os << _("Average");
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  108|     68|    case 'C':
  ------------------
  |  Branch (108:5): [True: 68, False: 350]
  ------------------
  109|     68|      return os << _("Center");
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  110|     36|    case '8':
  ------------------
  |  Branch (110:5): [True: 36, False: 382]
  ------------------
  111|     36|      return os << _("8-Segment");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  112|    262|    default:
  ------------------
  |  Branch (112:5): [True: 262, False: 156]
  ------------------
  113|    262|      return os << "(" << value << ")";
  114|    418|  }
  115|    418|}

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

_ZN5Exiv28Internal13SonyMakerNote25printWhiteBalanceFineTuneERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  919|    102|std::ostream& SonyMakerNote::printWhiteBalanceFineTune(std::ostream& os, const Value& value, const ExifData*) {
  920|    102|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (920:7): [True: 48, False: 54]
  |  Branch (920:29): [True: 40, False: 14]
  ------------------
  921|     88|    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|     14|  return os << static_cast<int32_t>(value.toUint32(0));
  926|    102|}
_ZN5Exiv28Internal13SonyMakerNote19printMultiBurstModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  928|    724|std::ostream& SonyMakerNote::printMultiBurstMode(std::ostream& os, const Value& value, const ExifData* metadata) {
  929|    724|  if (value.count() != 1 || value.typeId() != undefined)
  ------------------
  |  Branch (929:7): [True: 596, False: 128]
  |  Branch (929:29): [True: 128, False: 0]
  ------------------
  930|    724|    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|    724|}
_ZN5Exiv28Internal13SonyMakerNote19printMultiBurstSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  938|    182|std::ostream& SonyMakerNote::printMultiBurstSize(std::ostream& os, const Value& value, const ExifData*) {
  939|    182|  if (value.count() != 1 || value.typeId() != unsignedShort)
  ------------------
  |  Branch (939:7): [True: 124, False: 58]
  |  Branch (939:29): [True: 44, False: 14]
  ------------------
  940|    168|    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|     14|  return os << value.toUint32(0);
  946|    182|}
_ZN5Exiv28Internal13SonyMakerNote15printAutoHDRStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  948|    426|std::ostream& SonyMakerNote::printAutoHDRStd(std::ostream& os, const Value& value, const ExifData* metadata) {
  949|    426|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (949:7): [True: 38, False: 388]
  |  Branch (949:29): [True: 28, False: 360]
  ------------------
  950|     66|    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|    360|  const auto v0 = value.toUint32(0);
  956|    360|  EXV_PRINT_TAG(sonyHDRStdPart1)(os, (v0 & 0x00ff), metadata);
  ------------------
  |  |  199|    360|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
  957|    360|  os << ", ";
  958|    360|  EXV_PRINT_TAG(sonyHDRStdPart2)(os, (v0 >> 16), metadata);
  ------------------
  |  |  199|    360|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
  959|       |
  960|    360|  return os;
  961|    426|}
_ZN5Exiv28Internal13SonyMakerNote16printWBShiftABGMERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  963|    358|std::ostream& SonyMakerNote::printWBShiftABGM(std::ostream& os, const Value& value, const ExifData*) {
  964|    358|  if (value.count() != 2 || value.typeId() != signedLong)
  ------------------
  |  Branch (964:7): [True: 50, False: 308]
  |  Branch (964:29): [True: 56, False: 252]
  ------------------
  965|    106|    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|    252|  const auto v0 = value.toInt64(0);
  972|    252|  const auto v1 = value.toInt64(1);
  973|       |
  974|    252|  os << "A/B: ";
  975|    252|  if (v0 == 0) {
  ------------------
  |  Branch (975:7): [True: 30, False: 222]
  ------------------
  976|     30|    os << 0;
  977|    222|  } else if (v0 < 0) {
  ------------------
  |  Branch (977:14): [True: 100, False: 122]
  ------------------
  978|    100|    os << "A" << -v0;
  979|    122|  } else {
  980|    122|    os << "B" << v0;
  981|    122|  }
  982|       |
  983|    252|  os << ", G/M: ";
  984|    252|  if (v1 == 0)
  ------------------
  |  Branch (984:7): [True: 34, False: 218]
  ------------------
  985|     34|    return os << 0;
  986|       |
  987|    218|  if (v1 < 0)
  ------------------
  |  Branch (987:7): [True: 100, False: 118]
  ------------------
  988|    100|    return os << "G" << -v1;
  989|       |
  990|    118|  return os << "M" << v1;
  991|    218|}
_ZN5Exiv28Internal13SonyMakerNote15printFocusMode2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  993|  2.69k|std::ostream& SonyMakerNote::printFocusMode2(std::ostream& os, const Value& value, const ExifData* metadata) {
  994|  2.69k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (994:7): [True: 162, False: 2.53k]
  |  Branch (994:29): [True: 110, False: 2.42k]
  |  Branch (994:63): [True: 1.19k, False: 1.22k]
  ------------------
  995|  1.47k|    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.22k|  std::string model;
 1000|  1.22k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1000:7): [True: 293, False: 931]
  ------------------
 1001|    293|    return os << "(" << value << ")";
 1002|       |
 1003|    931|  const auto v0 = value.toUint32(0);
 1004|       |
 1005|    931|  constexpr std::array models{"DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2"};
 1006|    931|  if (!model.starts_with("DSC-") ||
  ------------------
  |  Branch (1006:7): [True: 235, False: 696]
  ------------------
 1007|    696|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1007:7): [True: 416, False: 280]
  ------------------
 1008|    651|    return EXV_PRINT_TAG(sonyFocusMode2)(os, v0, metadata);
  ------------------
  |  |  199|    651|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1009|       |
 1010|    280|  return os << _("n/a");
  ------------------
  |  |   40|    280|#define _(String) (String)
  ------------------
 1011|    931|}
_ZN5Exiv28Internal13SonyMakerNote22printAFAreaModeSettingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1013|  5.60k|std::ostream& SonyMakerNote::printAFAreaModeSetting(std::ostream& os, const Value& value, const ExifData* metadata) {
 1014|  5.60k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1014:7): [True: 415, False: 5.19k]
  |  Branch (1014:29): [True: 76, False: 5.11k]
  |  Branch (1014:63): [True: 1.02k, False: 4.09k]
  ------------------
 1015|  1.51k|    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|  4.09k|  std::string model;
 1020|  4.09k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1020:7): [True: 138, False: 3.95k]
  ------------------
 1021|    138|    return os << "(" << value << ")";
 1022|       |
 1023|  3.95k|  const auto v0 = value.toUint32(0);
 1024|       |
 1025|  3.95k|  for (auto m : {"SLT-", "HV"})
  ------------------
  |  Branch (1025:15): [True: 7.52k, False: 3.43k]
  ------------------
 1026|  7.52k|    if (model.starts_with(m))
  ------------------
  |  Branch (1026:9): [True: 518, False: 7.00k]
  ------------------
 1027|    518|      return EXV_PRINT_TAG(sonyAFAreaModeSettingSet1)(os, v0, metadata);
  ------------------
  |  |  199|    518|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1028|       |
 1029|  3.43k|  constexpr std::array models2{
 1030|  3.43k|      "NEX-", "ILCE-", "ILME-", "DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2",
 1031|  3.43k|  };
 1032|  3.43k|  if (std::any_of(models2.begin(), models2.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1032:7): [True: 1.11k, False: 2.31k]
  ------------------
 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.31k|  if (model.starts_with("ILCA-"))
  ------------------
  |  Branch (1035:7): [True: 1.59k, False: 729]
  ------------------
 1036|  1.59k|    return EXV_PRINT_TAG(sonyAFAreaModeSettingSet3)(os, v0, metadata);
  ------------------
  |  |  199|  1.59k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1037|       |
 1038|    729|  return os << _("n/a");
  ------------------
  |  |   40|    729|#define _(String) (String)
  ------------------
 1039|  2.31k|}
_ZN5Exiv28Internal13SonyMakerNote25printFlexibleSpotPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1041|  2.32k|std::ostream& SonyMakerNote::printFlexibleSpotPosition(std::ostream& os, const Value& value, const ExifData* metadata) {
 1042|  2.32k|  if (value.count() != 2 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1042:7): [True: 128, False: 2.19k]
  |  Branch (1042:29): [True: 68, False: 2.12k]
  |  Branch (1042:64): [True: 1.06k, False: 1.06k]
  ------------------
 1043|  1.25k|    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|  1.06k|  std::string model;
 1048|  1.06k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1048:7): [True: 143, False: 919]
  ------------------
 1049|    143|    return os << "(" << value << ")";
 1050|       |
 1051|    919|  constexpr std::array models{
 1052|    919|      "NEX-", "ILCE-", "ILME-", "DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2",
 1053|    919|  };
 1054|    919|  if (std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1054:7): [True: 535, False: 384]
  ------------------
 1055|    535|    return os << value.toUint32(0) << ", " << value.toUint32(1);
 1056|       |
 1057|    384|  return os << _("n/a");
  ------------------
  |  |   40|    384|#define _(String) (String)
  ------------------
 1058|    919|}
_ZN5Exiv28Internal13SonyMakerNote20printAFPointSelectedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1060|  9.79k|std::ostream& SonyMakerNote::printAFPointSelected(std::ostream& os, const Value& value, const ExifData* metadata) {
 1061|  9.79k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1061:7): [True: 46, False: 9.75k]
  |  Branch (1061:29): [True: 202, False: 9.55k]
  |  Branch (1061:63): [True: 4.77k, False: 4.77k]
  ------------------
 1062|  5.02k|    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.77k|  std::string model;
 1067|  4.77k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1067:7): [True: 288, False: 4.48k]
  ------------------
 1068|    288|    return os << "(" << value << ")";
 1069|       |
 1070|  4.48k|  uint32_t aFAreaModeSetting = 0;
 1071|  4.48k|  const auto status = getAFAreaModeSetting(metadata, aFAreaModeSetting);
 1072|       |
 1073|  4.48k|  for (auto m : {"SLT-", "HV-"})
  ------------------
  |  Branch (1073:15): [True: 8.52k, False: 3.95k]
  ------------------
 1074|  8.52k|    if (model.starts_with(m))
  ------------------
  |  Branch (1074:9): [True: 529, False: 7.99k]
  ------------------
 1075|    529|      return EXV_PRINT_TAG(sonyAFPointSelectedSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    529|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1076|       |
 1077|  3.95k|  for (auto m : {"ILCE-", "ILME-"})
  ------------------
  |  Branch (1077:15): [True: 7.81k, False: 3.70k]
  ------------------
 1078|  7.81k|    if (model.starts_with(m) && status && aFAreaModeSetting == 4)
  ------------------
  |  Branch (1078:9): [True: 813, False: 7.00k]
  |  Branch (1078:33): [True: 421, False: 392]
  |  Branch (1078:43): [True: 252, False: 169]
  ------------------
 1079|    252|      return EXV_PRINT_TAG(sonyAFPointSelectedSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    252|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1080|       |
 1081|  3.70k|  for (auto m : {"ILCA-68", "ILCA-77M2"})
  ------------------
  |  Branch (1081:15): [True: 6.94k, False: 3.01k]
  ------------------
 1082|  6.94k|    if (model.starts_with(m) && status && aFAreaModeSetting != 8)
  ------------------
  |  Branch (1082:9): [True: 1.02k, False: 5.91k]
  |  Branch (1082:33): [True: 864, False: 161]
  |  Branch (1082:43): [True: 690, False: 174]
  ------------------
 1083|    690|      return EXV_PRINT_TAG(sonyAFPointSelectedSet2)(os, value, metadata);
  ------------------
  |  |  199|    690|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1084|       |
 1085|  3.01k|  if (model.starts_with("ILCA-99M2") && status && aFAreaModeSetting != 8)
  ------------------
  |  Branch (1085:7): [True: 679, False: 2.33k]
  |  Branch (1085:41): [True: 633, False: 46]
  |  Branch (1085:51): [True: 386, False: 247]
  ------------------
 1086|    386|    return EXV_PRINT_TAG(sonyAFPointSelectedSet3)(os, value, metadata);
  ------------------
  |  |  199|    386|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1087|       |
 1088|  2.63k|  if (model.starts_with("ILCA-") && status && aFAreaModeSetting == 8)
  ------------------
  |  Branch (1088:7): [True: 732, False: 1.89k]
  |  Branch (1088:37): [True: 521, False: 211]
  |  Branch (1088:47): [True: 421, False: 100]
  ------------------
 1089|    421|    return EXV_PRINT_TAG(sonyAFPointSelectedSet4)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    421|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1090|       |
 1091|  2.20k|  for (auto m : {"NEX-", "ILCE-", "ILME-"})
  ------------------
  |  Branch (1091:15): [True: 5.67k, False: 1.40k]
  ------------------
 1092|  5.67k|    if (model.starts_with(m))
  ------------------
  |  Branch (1092:9): [True: 803, False: 4.87k]
  ------------------
 1093|    803|      return EXV_PRINT_TAG(sonyAFPointSelectedSet5)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    803|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1094|       |
 1095|  1.40k|  return os << _("n/a");
  ------------------
  |  |   40|  1.40k|#define _(String) (String)
  ------------------
 1096|  2.20k|}
_ZN5Exiv28Internal13SonyMakerNote17printAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1098|  1.24k|std::ostream& SonyMakerNote::printAFPointsUsed(std::ostream& os, const Value& value, const ExifData* metadata) {
 1099|  1.24k|  if (value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1099:7): [True: 152, False: 1.09k]
  |  Branch (1099:41): [True: 548, False: 548]
  ------------------
 1100|    700|    return os << "(" << value << ")";
 1101|       |
 1102|    548|  std::string model;
 1103|    548|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1103:7): [True: 98, False: 450]
  ------------------
 1104|     98|    return os << "(" << value << ")";
 1105|       |
 1106|    450|  constexpr std::array models1{"ILCA-", "DSC-"};
 1107|    450|  if (std::none_of(models1.begin(), models1.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1107:7): [True: 198, False: 252]
  ------------------
 1108|    198|    return EXV_PRINT_TAG_BITLIST_ALL_LE(sonyAFPointsUsedSet1)(os, value, metadata);
  ------------------
  |  |  289|    198|#define EXV_PRINT_TAG_BITLIST_ALL_LE(array) printTagBitlistAllLE<std::size(array), array>
  ------------------
 1109|       |
 1110|    252|  for (auto m : {"ILCA-68", "ILCA-77M2"})
  ------------------
  |  Branch (1110:15): [True: 474, False: 138]
  ------------------
 1111|    474|    if (model.starts_with(m))
  ------------------
  |  Branch (1111:9): [True: 114, False: 360]
  ------------------
 1112|    114|      return EXV_PRINT_TAG_BITLIST_ALL_LE(sonyAFPointsUsedSet2)(os, value, metadata);
  ------------------
  |  |  289|    114|#define EXV_PRINT_TAG_BITLIST_ALL_LE(array) printTagBitlistAllLE<std::size(array), array>
  ------------------
 1113|       |
 1114|    138|  return os << _("n/a");
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
 1115|    252|}
_ZN5Exiv28Internal13SonyMakerNote15printAFTrackingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1117|  2.20k|std::ostream& SonyMakerNote::printAFTracking(std::ostream& os, const Value& value, const ExifData* metadata) {
 1118|  2.20k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1118:7): [True: 76, False: 2.13k]
  |  Branch (1118:29): [True: 82, False: 2.04k]
  |  Branch (1118:63): [True: 1.02k, False: 1.02k]
  ------------------
 1119|  1.18k|    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|  1.02k|  std::string model;
 1124|  1.02k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1124:7): [True: 145, False: 879]
  ------------------
 1125|    145|    return os << "(" << value << ")";
 1126|       |
 1127|    879|  constexpr std::array models{"DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2"};
 1128|    879|  if (!model.starts_with("DSC-") ||
  ------------------
  |  Branch (1128:7): [True: 233, False: 646]
  ------------------
 1129|    646|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1129:7): [True: 346, False: 300]
  ------------------
 1130|    579|    return EXV_PRINT_TAG(sonyAFTracking)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    579|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1131|       |
 1132|    300|  return os << _("n/a");
  ------------------
  |  |   40|    300|#define _(String) (String)
  ------------------
 1133|    879|}
_ZN5Exiv28Internal13SonyMakerNote27printFocalPlaneAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1135|    130|std::ostream& SonyMakerNote::printFocalPlaneAFPointsUsed(std::ostream& os, const Value& value, const ExifData*) {
 1136|    130|  if (value.typeId() != unsignedByte)
  ------------------
  |  Branch (1136:7): [True: 52, False: 78]
  ------------------
 1137|     52|    return os << "(" << value << ")";
 1138|       |
 1139|     78|  if (value.toUint32(0) == 0)
  ------------------
  |  Branch (1139:7): [True: 22, False: 56]
  ------------------
 1140|     22|    return os << _("None");
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
 1141|       |
 1142|     56|  return os << "(" << value << ")";
 1143|     78|}
_ZN5Exiv28Internal13SonyMakerNote23printWBShiftABGMPreciseERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1145|    122|std::ostream& SonyMakerNote::printWBShiftABGMPrecise(std::ostream& os, const Value& value, const ExifData*) {
 1146|    122|  if (value.count() != 2 || value.typeId() != signedLong)
  ------------------
  |  Branch (1146:7): [True: 6, False: 116]
  |  Branch (1146:29): [True: 42, False: 74]
  ------------------
 1147|     48|    return os << "(" << value << ")";
 1148|       |
 1149|     74|  std::ios::fmtflags f(os.flags());
 1150|       |
 1151|     74|  const auto temp0 = static_cast<double>(value.toInt64(0)) / 1000.0;
 1152|     74|  const auto temp1 = static_cast<double>(value.toInt64(1)) / 1000.0;
 1153|       |
 1154|     74|  os << "A/B: ";
 1155|     74|  if (temp0 == 0) {
  ------------------
  |  Branch (1155:7): [True: 16, False: 58]
  ------------------
 1156|     16|    os << 0;
 1157|     58|  } else if (temp0 < 0) {
  ------------------
  |  Branch (1157:14): [True: 40, False: 18]
  ------------------
 1158|     40|    os << "A" << std::fixed << std::setprecision(2) << -temp0;
 1159|     40|  } else {
 1160|     18|    os << "B" << std::fixed << std::setprecision(2) << temp0;
 1161|     18|  }
 1162|     74|  os << ", G/M: ";
 1163|     74|  if (temp1 == 0) {
  ------------------
  |  Branch (1163:7): [True: 14, False: 60]
  ------------------
 1164|     14|    os << 0;
 1165|     60|  } else if (temp1 < 0) {
  ------------------
  |  Branch (1165:14): [True: 22, False: 38]
  ------------------
 1166|     22|    os << "G" << std::fixed << std::setprecision(2) << -temp1;
 1167|     38|  } else {
 1168|     38|    os << "M" << std::fixed << std::setprecision(2) << temp1;
 1169|     38|  }
 1170|       |
 1171|     74|  os.flags(f);
 1172|     74|  return os;
 1173|    122|}
_ZN5Exiv28Internal13SonyMakerNote31printExposureStandardAdjustmentERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1175|    236|std::ostream& SonyMakerNote::printExposureStandardAdjustment(std::ostream& os, const Value& value, const ExifData*) {
 1176|    236|  if (value.count() != 1 || value.typeId() != signedRational) {
  ------------------
  |  Branch (1176:7): [True: 44, False: 192]
  |  Branch (1176:29): [True: 38, False: 154]
  ------------------
 1177|     82|    return os << "(" << value << ")";
 1178|     82|  }
 1179|       |
 1180|    154|  const auto [r, s] = value.toRational();
 1181|    154|  return os << stringFormat("{:.1f}", static_cast<double>(r) / static_cast<double>(s));
  ------------------
  |  |   18|    154|#define stringFormat std::format
  ------------------
 1182|    236|}
_ZN5Exiv28Internal13SonyMakerNote19printPixelShiftInfoERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1184|    294|std::ostream& SonyMakerNote::printPixelShiftInfo(std::ostream& os, const Value& value, const ExifData*) {
 1185|    294|  if (value.count() != 6 || value.typeId() != undefined)
  ------------------
  |  Branch (1185:7): [True: 128, False: 166]
  |  Branch (1185:29): [True: 70, False: 96]
  ------------------
 1186|    198|    return os << "(" << value << ")";
 1187|       |
 1188|       |  // Tag format:
 1189|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1504
 1190|     96|  if (value.toString() == "0 0 0 0 0 0")
  ------------------
  |  Branch (1190:7): [True: 30, False: 66]
  ------------------
 1191|     30|    return os << _("n/a");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 1192|       |
 1193|       |  // Convert from little endian format
 1194|     66|  auto groupID = (value.toUint32(3) << 24) + (value.toUint32(2) << 16) + (value.toUint32(1) << 8) + value.toUint32(0);
 1195|       |
 1196|     66|  return os << stringFormat("Group {:02}{:02}{:02}{:02}, Shot {}/{} (0x{:x})", (groupID >> 17) & 0x1f,
  ------------------
  |  |   18|     66|#define stringFormat std::format
  ------------------
 1197|     66|                            (groupID >> 12) & 0x1f, (groupID >> 6) & 0x3f, groupID & 0x3f, value.toUint32(4),
 1198|     66|                            value.toUint32(5), (groupID >> 22));
 1199|     96|}
_ZN5Exiv28Internal13SonyMakerNote19printFocusFrameSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1201|    154|std::ostream& SonyMakerNote::printFocusFrameSize(std::ostream& os, const Value& value, const ExifData*) {
 1202|    154|  if (value.count() != 6 || value.typeId() != undefined)
  ------------------
  |  Branch (1202:7): [True: 64, False: 90]
  |  Branch (1202:29): [True: 12, False: 78]
  ------------------
 1203|     76|    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|     78|  if (value.toUint32(4) == 0 && value.toUint32(5) == 0)
  ------------------
  |  Branch (1208:7): [True: 44, False: 34]
  |  Branch (1208:33): [True: 22, False: 22]
  ------------------
 1209|     22|    return os << _("n/a");
  ------------------
  |  |   40|     22|#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|     78|}
_ZN5Exiv28Internal13SonyMakerNote21printColorTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1215|    192|std::ostream& SonyMakerNote::printColorTemperature(std::ostream& os, const Value& value, const ExifData*) {
 1216|    192|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1216:7): [True: 40, False: 152]
  |  Branch (1216:29): [True: 30, False: 122]
  ------------------
 1217|     70|    return os << "(" << value << ")";
 1218|       |
 1219|    122|  auto v0 = value.toUint32(0);
 1220|    122|  if (v0 == 0)
  ------------------
  |  Branch (1220:7): [True: 74, False: 48]
  ------------------
 1221|     74|    return os << _("Auto");
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
 1222|       |
 1223|     48|  if (v0 == 0xffffffff)
  ------------------
  |  Branch (1223:7): [True: 2, False: 46]
  ------------------
 1224|      2|    return os << _("n/a");
  ------------------
  |  |   40|      2|#define _(String) (String)
  ------------------
 1225|       |
 1226|     46|  return os << v0 << " K";
 1227|     48|}
_ZN5Exiv28Internal13SonyMakerNote28printColorCompensationFilterERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1229|    180|std::ostream& SonyMakerNote::printColorCompensationFilter(std::ostream& os, const Value& value, const ExifData*) {
 1230|    180|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1230:7): [True: 92, False: 88]
  |  Branch (1230:29): [True: 14, False: 74]
  ------------------
 1231|    106|    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|     74|  int64_t temp = static_cast<int32_t>(value.toUint32(0));
 1237|     74|  os << "G/M: ";
 1238|     74|  if (temp == 0)
  ------------------
  |  Branch (1238:7): [True: 34, False: 40]
  ------------------
 1239|     34|    return os << "0";
 1240|       |
 1241|     40|  if (temp < 0)
  ------------------
  |  Branch (1241:7): [True: 28, False: 12]
  ------------------
 1242|     28|    return os << "G" << -temp;
 1243|       |
 1244|     12|  return os << "M" << temp;
 1245|     40|}
_ZN5Exiv28Internal13SonyMakerNote13printLensSpecERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1286|    744|std::ostream& SonyMakerNote::printLensSpec(std::ostream& os, const Value& value, const ExifData*) {
 1287|    744|  if (value.count() != 8 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (1287:7): [True: 26, False: 718]
  |  Branch (1287:29): [True: 30, False: 688]
  ------------------
 1288|     56|    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|    688|  const auto focalLenMin = value.toUint32(2);
 1313|    688|  const auto focalLenMax1 = value.toUint32(3);
 1314|    688|  const auto focalLenMax2 = value.toUint32(4);
 1315|    688|  const auto appertureMin = value.toUint32(5);
 1316|    688|  const auto apertureMax = value.toUint32(6);
 1317|       |
 1318|    688|  if (value.toString() == "0 0 0 0 0 0 0 0" || focalLenMin == 0 || appertureMin == 0)
  ------------------
  |  Branch (1318:7): [True: 46, False: 642]
  |  Branch (1318:7): [True: 174, False: 514]
  |  Branch (1318:48): [True: 88, False: 554]
  |  Branch (1318:68): [True: 40, False: 514]
  ------------------
 1319|    174|    return os << _("Unknown");
  ------------------
  |  |   40|    174|#define _(String) (String)
  ------------------
 1320|       |
 1321|    514|  std::string flagsStart;
 1322|    514|  std::string flagsEnd;
 1323|    514|  findLensSpecFlags(value, flagsStart, flagsEnd);
 1324|       |
 1325|       |  // Output <Flgs 1>
 1326|    514|  if (!flagsStart.empty())
  ------------------
  |  Branch (1326:7): [True: 386, False: 128]
  ------------------
 1327|    386|    os << flagsStart << " ";
 1328|       |
 1329|       |  // Output <Focal len min>
 1330|    514|  auto temp = ((focalLenMin >> 4) & 0x0f);
 1331|    514|  if (temp != 0)  // Remove leading zero
  ------------------
  |  Branch (1331:7): [True: 352, False: 162]
  ------------------
 1332|    352|    os << temp;
 1333|       |
 1334|    514|  os << (focalLenMin & 0x0f);
 1335|       |
 1336|    514|  if (focalLenMax1 != 0 || focalLenMax2 != 0) {
  ------------------
  |  Branch (1336:7): [True: 380, False: 134]
  |  Branch (1336:28): [True: 66, False: 68]
  ------------------
 1337|    430|    os << "-";
 1338|    430|  }
 1339|       |
 1340|    514|  if (focalLenMax1 != 0) {
  ------------------
  |  Branch (1340:7): [True: 364, False: 150]
  ------------------
 1341|       |    // Output <Focal len max 1>
 1342|    364|    temp = ((focalLenMax1 >> 4) & 0x0f);
 1343|    364|    if (temp != 0)  // Remove leading zero
  ------------------
  |  Branch (1343:9): [True: 188, False: 176]
  ------------------
 1344|    188|      os << temp;
 1345|    364|    os << (focalLenMax1 & 0x0f);
 1346|       |
 1347|       |    // Output <Focal len max 2>
 1348|    364|    os << ((focalLenMax2 >> 4) & 0x0f) << (focalLenMax2 & 0x0f);
 1349|    364|  } else {
 1350|       |    // Output <Focal len max 2>
 1351|    150|    if (focalLenMax2 != 0)
  ------------------
  |  Branch (1351:9): [True: 66, False: 84]
  ------------------
 1352|     66|      os << ((focalLenMax2 >> 4) & 0x0f) << (focalLenMax2 & 0x0f);
 1353|    150|  }
 1354|       |
 1355|    514|  os << "mm";
 1356|       |
 1357|       |  // Output <Aperture min>
 1358|    514|  os << " F" << ((appertureMin >> 4) & 0x0f) << "." << (appertureMin & 0x0f);
 1359|       |
 1360|       |  // Output <Aperture max>
 1361|    514|  if (apertureMax != 0)
  ------------------
  |  Branch (1361:7): [True: 296, False: 218]
  ------------------
 1362|    296|    os << "-" << ((apertureMax >> 4) & 0x0f) << "." << (apertureMax & 0x0f);
 1363|       |
 1364|       |  // Output <Flags 3>
 1365|    514|  if (!flagsEnd.empty())
  ------------------
  |  Branch (1365:7): [True: 364, False: 150]
  ------------------
 1366|    364|    os << " " << flagsEnd;
 1367|    514|  return os;
 1368|    688|}
_ZN5Exiv28Internal13SonyMakerNote14printImageSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1370|    124|std::ostream& SonyMakerNote::printImageSize(std::ostream& os, const Value& value, const ExifData*) {
 1371|    124|  if (value.count() != 2 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1371:7): [True: 108, False: 16]
  |  Branch (1371:29): [True: 8, False: 8]
  ------------------
 1372|    116|    return os << "(" << value << ")";
 1373|       |
 1374|       |  // Values are stored as Height then Width
 1375|      8|  return os << value.toString(1) << " x " << value.toString(0);
 1376|    124|}
_ZN5Exiv28Internal13SonyMakerNote14printFocusModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1378|    478|std::ostream& SonyMakerNote::printFocusMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1379|    478|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1379:7): [True: 192, False: 286]
  |  Branch (1379:29): [True: 56, False: 230]
  |  Branch (1379:64): [True: 115, False: 115]
  ------------------
 1380|    363|    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|    115|  if (std::string metaVersion; !getMetaVersion(metadata, metaVersion) || metaVersion != "DC7303320222000")
  ------------------
  |  Branch (1385:32): [True: 77, False: 38]
  |  Branch (1385:74): [True: 22, False: 16]
  ------------------
 1386|     99|    return EXV_PRINT_TAG(sonyFocusMode)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     99|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1387|       |
 1388|     16|  return os << _("n/a");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
 1389|    115|}
_ZN5Exiv28Internal13SonyMakerNote11printAFModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1391|    808|std::ostream& SonyMakerNote::printAFMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1392|    808|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1392:7): [True: 32, False: 776]
  |  Branch (1392:29): [True: 40, False: 736]
  |  Branch (1392:64): [True: 368, False: 368]
  ------------------
 1393|    440|    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|    368|  if (std::string metaVersion; !getMetaVersion(metadata, metaVersion) || metaVersion != "DC7303320222000")
  ------------------
  |  Branch (1397:32): [True: 166, False: 202]
  |  Branch (1397:74): [True: 50, False: 152]
  ------------------
 1398|    216|    return EXV_PRINT_TAG(sonyAFModeSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    216|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1399|       |
 1400|    152|  if (uint32_t focusMode2 = 0; getFocusMode2(metadata, focusMode2) && focusMode2 != 0)
  ------------------
  |  Branch (1400:32): [True: 95, False: 57]
  |  Branch (1400:71): [True: 75, False: 20]
  ------------------
 1401|     75|    return EXV_PRINT_TAG(sonyAFModeSet2)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     75|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1402|       |
 1403|     77|  return os << _("n/a");
  ------------------
  |  |   40|     77|#define _(String) (String)
  ------------------
 1404|    152|}
_ZN5Exiv28Internal13SonyMakerNote15printFocusMode3ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1406|    924|std::ostream& SonyMakerNote::printFocusMode3(std::ostream& os, const Value& value, const ExifData* metadata) {
 1407|    924|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1407:7): [True: 30, False: 894]
  |  Branch (1407:29): [True: 244, False: 650]
  |  Branch (1407:64): [True: 325, False: 325]
  ------------------
 1408|    599|    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|    325|  if (std::string metaVersion; getMetaVersion(metadata, metaVersion) && metaVersion == "DC7303320222000")
  ------------------
  |  Branch (1412:32): [True: 150, False: 175]
  |  Branch (1412:73): [True: 46, False: 104]
  ------------------
 1413|     46|    return EXV_PRINT_TAG(sonyFocusMode3)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     46|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1414|       |
 1415|    279|  return os << _("n/a");
  ------------------
  |  |   40|    279|#define _(String) (String)
  ------------------
 1416|    325|}
_ZN5Exiv28Internal13SonyMakerNote27printHighISONoiseReduction2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1419|  1.18k|                                                         const ExifData* metadata) {
 1420|  1.18k|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1420:7): [True: 118, False: 1.06k]
  |  Branch (1420:29): [True: 54, False: 1.01k]
  |  Branch (1420:64): [True: 505, False: 505]
  ------------------
 1421|    677|    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|    505|  std::string model;
 1426|    505|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1426:7): [True: 92, False: 413]
  ------------------
 1427|     92|    return os << "(" << value << ")";
 1428|       |
 1429|    413|  if (model.starts_with("DSC-") || model.starts_with("Stellar"))
  ------------------
  |  Branch (1429:7): [True: 238, False: 175]
  |  Branch (1429:36): [True: 17, False: 158]
  ------------------
 1430|    255|    return EXV_PRINT_TAG(sonyHighISONoiseReduction2)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    255|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1431|       |
 1432|    158|  return os << _("n/a");
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
 1433|    413|}
_ZN5Exiv28Internal13SonyMakerNote30printSony2FpAmbientTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1870|    246|                                                            const ExifData* metadata) {
 1871|    246|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1871:7): [True: 0, False: 246]
  |  Branch (1871:29): [True: 123, False: 123]
  ------------------
 1872|    123|    return os << "(" << value << ")";
 1873|       |
 1874|    123|  auto pos = metadata->findKey(ExifKey("Exif.Sony2Fp.0x0002"));
 1875|    123|  if (pos != metadata->end() && pos->count() == 1 && pos->toInt64() == 255)
  ------------------
  |  Branch (1875:7): [True: 123, False: 0]
  |  Branch (1875:7): [True: 11, False: 112]
  |  Branch (1875:33): [True: 123, False: 0]
  |  Branch (1875:54): [True: 11, False: 112]
  ------------------
 1876|     11|    return os << value << " °C";
 1877|       |
 1878|    112|  return os << N_("n/a");
  ------------------
  |  |   41|    112|#define N_(String) String
  ------------------
 1879|    123|}
_ZN5Exiv28Internal13SonyMakerNote21printSony2FpFocusModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1881|    228|std::ostream& SonyMakerNote::printSony2FpFocusMode(std::ostream& os, const Value& value, const ExifData*) {
 1882|    228|  if (value.count() != 1)
  ------------------
  |  Branch (1882:7): [True: 0, False: 228]
  ------------------
 1883|      0|    return os << value;
 1884|       |
 1885|    228|  const auto val = (value.toInt64() & 0x7F);
 1886|    228|  switch (val) {
  ------------------
  |  Branch (1886:11): [True: 120, False: 108]
  ------------------
 1887|     56|    case 0:
  ------------------
  |  Branch (1887:5): [True: 56, False: 172]
  ------------------
 1888|     56|      return os << N_("Manual");
  ------------------
  |  |   41|     56|#define N_(String) String
  ------------------
 1889|     14|    case 2:
  ------------------
  |  Branch (1889:5): [True: 14, False: 214]
  ------------------
 1890|     14|      return os << N_("AF-S");
  ------------------
  |  |   41|     14|#define N_(String) String
  ------------------
 1891|     32|    case 3:
  ------------------
  |  Branch (1891:5): [True: 32, False: 196]
  ------------------
 1892|     32|      return os << N_("AF-C");
  ------------------
  |  |   41|     32|#define N_(String) String
  ------------------
 1893|     14|    case 4:
  ------------------
  |  Branch (1893:5): [True: 14, False: 214]
  ------------------
 1894|     14|      return os << N_("AF-A");
  ------------------
  |  |   41|     14|#define N_(String) String
  ------------------
 1895|      4|    case 6:
  ------------------
  |  Branch (1895:5): [True: 4, False: 224]
  ------------------
 1896|      4|      return os << N_("DMF");
  ------------------
  |  |   41|      4|#define N_(String) String
  ------------------
 1897|    228|  }
 1898|       |
 1899|    108|  return os << "(" << val << ")";
 1900|    228|}
_ZN5Exiv28Internal13SonyMakerNote26printSony2FpFocusPosition2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1903|    228|                                                        const ExifData* metadata) {
 1904|    228|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1904:7): [True: 0, False: 228]
  |  Branch (1904:29): [True: 114, False: 114]
  ------------------
 1905|    114|    return os << "(" << value << ")";
 1906|       |
 1907|    114|  std::string model;
 1908|    114|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1908:7): [True: 50, False: 64]
  ------------------
 1909|     50|    return os << "(" << value << ")";
 1910|       |
 1911|       |  // Ranges of models that do not support this tag
 1912|     64|  for (const auto& m : {"DSC-", "Stellar"})
  ------------------
  |  Branch (1912:22): [True: 112, False: 45]
  ------------------
 1913|    112|    if (model.starts_with(m))
  ------------------
  |  Branch (1913:9): [True: 19, False: 93]
  ------------------
 1914|     19|      return os << N_("n/a");
  ------------------
  |  |   41|     19|#define N_(String) String
  ------------------
 1915|       |
 1916|     45|  const auto val = value.toInt64();
 1917|     45|  if (val == 255)
  ------------------
  |  Branch (1917:7): [True: 6, False: 39]
  ------------------
 1918|      6|    return os << N_("Infinity");
  ------------------
  |  |   41|      6|#define N_(String) String
  ------------------
 1919|       |
 1920|     39|  return os << val;
 1921|     45|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc1CameraTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1933|     58|                                                             const ExifData* metadata) {
 1934|     58|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1934:7): [True: 0, False: 58]
  |  Branch (1934:29): [True: 29, False: 29]
  ------------------
 1935|     29|    return os << "(" << value << ")";
 1936|       |
 1937|     29|  auto pos = metadata->findKey(ExifKey("Exif.SonyMisc1.0x0004"));
 1938|     29|  if (pos != metadata->end() && pos->count() == 1 && pos->toInt64() != 0 && pos->toInt64() < 100)
  ------------------
  |  Branch (1938:7): [True: 29, False: 0]
  |  Branch (1938:7): [True: 5, False: 24]
  |  Branch (1938:33): [True: 29, False: 0]
  |  Branch (1938:54): [True: 15, False: 14]
  |  Branch (1938:77): [True: 5, False: 10]
  ------------------
 1939|      5|    return os << value << " °C";
 1940|       |
 1941|     24|  return os << N_("n/a");
  ------------------
  |  |   41|     24|#define N_(String) String
  ------------------
 1942|     29|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc2bLensZoomPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1997|     66|                                                             const ExifData* metadata) {
 1998|     66|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1998:7): [True: 0, False: 66]
  |  Branch (1998:29): [True: 33, False: 33]
  ------------------
 1999|     33|    return os << "(" << value << ")";
 2000|       |
 2001|     33|  std::string model;
 2002|     33|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2002:7): [True: 9, False: 24]
  ------------------
 2003|      9|    return os << "(" << value << ")";
 2004|       |
 2005|       |  // Models that do not support this tag
 2006|     24|  for (auto m : {"SLT-", "HV", "ILCA-"})
  ------------------
  |  Branch (2006:15): [True: 61, False: 15]
  ------------------
 2007|     61|    if (Internal::contains(model, m))
  ------------------
  |  Branch (2007:9): [True: 9, False: 52]
  ------------------
 2008|      9|      return os << N_("n/a");
  ------------------
  |  |   41|      9|#define N_(String) String
  ------------------
 2009|       |
 2010|     15|  return os << stringFormat("{}%", std::lround(value.toInt64() / 10.24));
  ------------------
  |  |   18|     15|#define stringFormat std::format
  ------------------
 2011|     24|}
_ZN5Exiv28Internal13SonyMakerNote29printSonyMisc2bFocusPosition2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2014|     66|                                                           const ExifData* metadata) {
 2015|     66|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (2015:7): [True: 0, False: 66]
  |  Branch (2015:29): [True: 33, False: 33]
  ------------------
 2016|     33|    return os << "(" << value << ")";
 2017|       |
 2018|     33|  std::string model;
 2019|     33|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2019:7): [True: 9, False: 24]
  ------------------
 2020|      9|    return os << "(" << value << ")";
 2021|       |
 2022|       |  // Models that do not support this tag
 2023|     24|  for (auto m : {"SLT-", "HV", "ILCA-"})
  ------------------
  |  Branch (2023:15): [True: 61, False: 15]
  ------------------
 2024|     61|    if (Internal::contains(model, m))
  ------------------
  |  Branch (2024:9): [True: 9, False: 52]
  ------------------
 2025|      9|      return os << N_("n/a");
  ------------------
  |  |   41|      9|#define N_(String) String
  ------------------
 2026|       |
 2027|     15|  return os << value;
 2028|     24|}
_ZN5Exiv28Internal13SonyMakerNote37printSonyMisc3cShotNumberSincePowerUpERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2106|    220|                                                                   const ExifData* metadata) {
 2107|    220|  if (value.count() != 1 || value.typeId() != unsignedLong || !metadata)
  ------------------
  |  Branch (2107:7): [True: 0, False: 220]
  |  Branch (2107:29): [True: 36, False: 184]
  |  Branch (2107:63): [True: 92, False: 92]
  ------------------
 2108|    128|    return os << "(" << value << ")";
 2109|       |
 2110|     92|  std::string model;
 2111|     92|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2111:7): [True: 40, False: 52]
  ------------------
 2112|     40|    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|     52|  static constexpr const char* models[] = {
 2117|     52|      "ILCA-68",     "ILCA-77M2",   "ILCA-99M2",   "ILCE-5000",  "ILCE-5100", "ILCE-6000",  "ILCE-6300",
 2118|     52|      "ILCE-6500",   "ILCE-7",      "ILCE-7M2",    "ILCE-7R",    "ILCE-7RM2", "ILCE-7S",    "ILCE-7SM2",
 2119|     52|      "ILCE-7SM5",   "ILCE-QX1",    "DSC-HX350",   "DSC-HX400V", "DSC-HX60V", "DSC-HX80",   "DSC-HX90",
 2120|     52|      "DSC-HX90V",   "DSC-QX30",    "DSC-RX0",     "DSC-RX1RM2", "DSC-RX10",  "DSC-RX10M2", "DSC-RX10M3",
 2121|     52|      "DSC-RX100M3", "DSC-RX100M4", "DSC-RX100M5", "DSC-WX220",  "DSC-WX350", "DSC-WX500",
 2122|     52|  };
 2123|       |
 2124|     52|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2124:7): [True: 7, False: 45]
  ------------------
 2125|      7|    return os << value.toInt64();
 2126|       |
 2127|     45|  return os << N_("n/a");
  ------------------
  |  |   41|     45|#define N_(String) String
  ------------------
 2128|     52|}
_ZN5Exiv28Internal13SonyMakerNote29printSonyMisc3cSequenceNumberERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2130|    430|std::ostream& SonyMakerNote::printSonyMisc3cSequenceNumber(std::ostream& os, const Value& value, const ExifData*) {
 2131|    430|  return (value.count() != 1 || value.typeId() != unsignedLong) ? os << "(" << value << ")"
  ------------------
  |  Branch (2131:11): [True: 0, False: 430]
  |  Branch (2131:33): [True: 72, False: 358]
  ------------------
 2132|    430|                                                                : os << (value.toInt64() + 1);
 2133|    430|}
_ZN5Exiv28Internal13SonyMakerNote23printSonyMisc3cQuality2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2135|    208|std::ostream& SonyMakerNote::printSonyMisc3cQuality2(std::ostream& os, const Value& value, const ExifData* metadata) {
 2136|    208|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (2136:7): [True: 0, False: 208]
  |  Branch (2136:29): [True: 0, False: 208]
  |  Branch (2136:63): [True: 104, False: 104]
  ------------------
 2137|    104|    return os << "(" << value << ")";
 2138|       |
 2139|    104|  std::string model;
 2140|    104|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2140:7): [True: 35, False: 69]
  ------------------
 2141|     35|    return os << "(" << value << ")";
 2142|       |
 2143|     69|  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|     69|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2148|       |
 2149|     69|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2149:7): [True: 8, False: 61]
  ------------------
 2150|      8|    return EXV_PRINT_TAG(sonyMisc3cQuality2a)(os, val, metadata);
  ------------------
  |  |  199|      8|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2151|       |
 2152|     61|  return EXV_PRINT_TAG(sonyMisc3cQuality2b)(os, val, metadata);
  ------------------
  |  |  199|     61|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2153|     69|}
_ZN5Exiv28Internal13SonyMakerNote30printSonyMisc3cSonyImageHeightERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2156|    140|                                                            const ExifData* metadata) {
 2157|    140|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (2157:7): [True: 0, False: 140]
  |  Branch (2157:29): [True: 36, False: 104]
  |  Branch (2157:64): [True: 52, False: 52]
  ------------------
 2158|     88|    return os << "(" << value << ")";
 2159|       |
 2160|     52|  std::string model;
 2161|     52|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2161:7): [True: 15, False: 37]
  ------------------
 2162|     15|    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|     37|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2167|       |
 2168|     37|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2168:7): [True: 5, False: 32]
  ------------------
 2169|      5|    return os << N_("n/a");
  ------------------
  |  |   41|      5|#define N_(String) String
  ------------------
 2170|       |
 2171|     32|  const auto val = value.toInt64();
 2172|     32|  if (val > 0)
  ------------------
  |  Branch (2172:7): [True: 20, False: 12]
  ------------------
 2173|     20|    return os << (8 * val);
 2174|     12|  return os << N_("n/a");
  ------------------
  |  |   41|     12|#define N_(String) String
  ------------------
 2175|     32|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc3cModelReleaseYearERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2178|    124|                                                             const ExifData* metadata) {
 2179|    124|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (2179:7): [True: 0, False: 124]
  |  Branch (2179:29): [True: 0, False: 124]
  |  Branch (2179:63): [True: 62, False: 62]
  ------------------
 2180|     62|    return os << "(" << value << ")";
 2181|       |
 2182|     62|  std::string model;
 2183|     62|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2183:7): [True: 12, False: 50]
  ------------------
 2184|     12|    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|     50|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2189|       |
 2190|     50|  if (Exiv2::find(models, model)) {
  ------------------
  |  Branch (2190:7): [True: 4, False: 46]
  ------------------
 2191|      4|    return os << N_("n/a");
  ------------------
  |  |   41|      4|#define N_(String) String
  ------------------
 2192|      4|  }
 2193|       |
 2194|     46|  const auto val = value.toInt64();
 2195|     46|  if (val > 99)
  ------------------
  |  Branch (2195:7): [True: 16, False: 30]
  ------------------
 2196|     16|    return os << "(" << val << ")";
 2197|       |
 2198|     30|  if (val == 0)
  ------------------
  |  Branch (2198:7): [True: 8, False: 22]
  ------------------
 2199|      8|    return os << "2000";
 2200|       |
 2201|     22|  return os << "20" << val;
 2202|     30|}
_ZN5Exiv28Internal15sonyTagDecipherEtPKhmPNS0_13TiffComponentE:
 2331|    667|DataBuf sonyTagDecipher(uint16_t tag, const byte* bytes, size_t size, TiffComponent* object) {
 2332|    667|  return sonyTagCipher(tag, bytes, size, object, true);
 2333|    667|}
_ZN5Exiv28Internal15sonyTagEncipherEtPKhmPNS0_13TiffComponentE:
 2334|     33|DataBuf sonyTagEncipher(uint16_t tag, const byte* bytes, size_t size, TiffComponent* object) {
 2335|     33|  return sonyTagCipher(tag, bytes, size, object, false);
 2336|     33|}
sonymn_int.cpp:_ZN5Exiv28InternalL8getModelEPKNS_8ExifDataERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  814|  13.7k|static auto getModel(const ExifData* metadata, std::string& val) {
  815|  13.7k|  auto pos = metadata->findKey(ExifKey("Exif.Image.Model"));
  816|  13.7k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == asciiString) {
  ------------------
  |  Branch (816:7): [True: 6.54k, False: 7.17k]
  |  Branch (816:7): [True: 5.54k, False: 8.17k]
  |  Branch (816:33): [True: 5.88k, False: 654]
  |  Branch (816:53): [True: 5.54k, False: 348]
  ------------------
  817|  5.54k|    val = pos->toString(0);
  818|  5.54k|    return true;
  819|  5.54k|  }
  820|       |
  821|       |  // NOTE: As using the translated SonyModelID value, need to be synchronized with the array format
  822|  8.17k|  pos = metadata->findKey(ExifKey("Exif.Sony1.SonyModelID"));
  823|  8.17k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedShort) {
  ------------------
  |  Branch (823:7): [True: 523, False: 7.65k]
  |  Branch (823:7): [True: 310, False: 7.86k]
  |  Branch (823:33): [True: 388, False: 135]
  |  Branch (823:53): [True: 310, False: 78]
  ------------------
  824|    310|    if (auto temp = pos->print(metadata); !Internal::contains(temp, ' ')) {
  ------------------
  |  Branch (824:43): [True: 268, False: 42]
  ------------------
  825|    268|      val = std::move(temp);
  826|    268|      return true;
  827|    268|    }
  828|     42|    val = "";
  829|     42|    return false;
  830|    310|  }
  831|  7.86k|  pos = metadata->findKey(ExifKey("Exif.Sony2.SonyModelID"));
  832|  7.86k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedShort) {
  ------------------
  |  Branch (832:7): [True: 6.88k, False: 982]
  |  Branch (832:7): [True: 6.58k, False: 1.28k]
  |  Branch (832:33): [True: 6.70k, False: 181]
  |  Branch (832:53): [True: 6.58k, False: 123]
  ------------------
  833|  6.58k|    if (auto temp = pos->print(metadata); !Internal::contains(temp, ' ')) {
  ------------------
  |  Branch (833:43): [True: 6.54k, False: 39]
  ------------------
  834|  6.54k|      val = std::move(temp);
  835|  6.54k|      return true;
  836|  6.54k|    }
  837|     39|    val = "";
  838|     39|    return false;
  839|  6.58k|  }
  840|       |
  841|  1.28k|  val = "";
  842|  1.28k|  return false;
  843|  7.86k|}
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote15printFocusMode2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1007|  3.24k|      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|  25.0k|  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.95k|  if (std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
sonymn_int.cpp:_ZN5Exiv28InternalL20getAFAreaModeSettingEPKNS_8ExifDataERj:
  845|  4.48k|static auto getAFAreaModeSetting(const ExifData* metadata, uint32_t& val) {
  846|  4.48k|  auto pos = metadata->findKey(ExifKey("Exif.Sony1.AFAreaModeSetting"));
  847|  4.48k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (847:7): [True: 858, False: 3.62k]
  |  Branch (847:7): [True: 526, False: 3.96k]
  |  Branch (847:33): [True: 628, False: 230]
  |  Branch (847:53): [True: 526, False: 102]
  ------------------
  848|    526|    std::ostringstream oss;
  849|    526|    pos->write(oss, metadata);
  850|    526|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|    526|#define _(String) (String)
  ------------------
  |  Branch (850:9): [True: 74, False: 452]
  ------------------
  851|     74|      val = 0;
  852|     74|      return false;
  853|     74|    }
  854|       |
  855|    452|    val = pos->toUint32(0);
  856|    452|    return true;
  857|    526|  }
  858|  3.96k|  pos = metadata->findKey(ExifKey("Exif.Sony2.AFAreaModeSetting"));
  859|  3.96k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (859:7): [True: 3.03k, False: 931]
  |  Branch (859:7): [True: 2.82k, False: 1.13k]
  |  Branch (859:33): [True: 2.93k, False: 95]
  |  Branch (859:53): [True: 2.82k, False: 109]
  ------------------
  860|  2.82k|    std::ostringstream oss;
  861|  2.82k|    pos->write(oss, metadata);
  862|  2.82k|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|  2.82k|#define _(String) (String)
  ------------------
  |  Branch (862:9): [True: 445, False: 2.38k]
  ------------------
  863|    445|      val = 0;
  864|    445|      return false;
  865|    445|    }
  866|       |
  867|  2.38k|    val = pos->toUint32(0);
  868|  2.38k|    return true;
  869|  2.82k|  }
  870|       |
  871|  1.13k|  val = 0;
  872|  1.13k|  return false;
  873|  3.96k|}
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote17printAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1107|    767|  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.90k|      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|    514|static void findLensSpecFlags(const Value& value, std::string& flagsStart, std::string& flagsEnd) {
 1248|    514|  static constexpr struct LensSpecFlags {
 1249|    514|    int64_t mask;  // Contains all the bits set in the flags.val_ array values
 1250|    514|    TagDetails flags[4];
 1251|    514|    bool prepend;
 1252|    514|  } lSFArray[] = {
 1253|    514|      {0x4000, {{0x4000, "PZ"}}, true},
 1254|    514|      {0x0300, {{0x0100, "DT"}, {0x0200, "FE"}, {0x0300, "E"}}, true},
 1255|    514|      {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    514|#define N_(String) String
  ------------------
                    {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    514|#define N_(String) String
  ------------------
                    {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    514|#define N_(String) String
  ------------------
 1256|    514|      {0x000c, {{0x0004, "ZA"}, {0x0008, "G"}}, false},
 1257|    514|      {0x0003, {{0x0001, "SSM"}, {0x0002, "SAM"}}, false},
 1258|    514|      {0x8000, {{0x8000, "OSS"}}, false},
 1259|    514|      {0x2000, {{0x2000, "LE"}}, false},
 1260|    514|      {0x0800, {{0x0800, "II"}}, false},
 1261|    514|  };
 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|    514|  const auto joinedV0V7 = ((value.toUint32(0) << 8) + value.toUint32(7));
 1270|  4.05k|  for (const auto& i : lSFArray) {
  ------------------
  |  Branch (1270:22): [True: 4.05k, False: 498]
  ------------------
 1271|  4.05k|    if (auto temp = i.mask & joinedV0V7) {  // Check if a flag matches in the current LensSpecFlags
  ------------------
  |  Branch (1271:14): [True: 2.14k, False: 1.91k]
  ------------------
 1272|  2.14k|      if (auto f = Exiv2::find(i.flags, temp)) {
  ------------------
  |  Branch (1272:16): [True: 2.12k, False: 16]
  ------------------
 1273|  2.12k|        if (i.prepend)
  ------------------
  |  Branch (1273:13): [True: 544, False: 1.58k]
  ------------------
 1274|    544|          flagsStart = flagsStart.empty() ? f->label_ : stringFormat("{} {}", f->label_, flagsStart);
  ------------------
  |  |   18|    149|#define stringFormat std::format
  ------------------
  |  Branch (1274:24): [True: 395, False: 149]
  ------------------
 1275|  1.58k|        else
 1276|  1.58k|          flagsEnd = flagsEnd.empty() ? f->label_ : stringFormat("{} {}", flagsEnd, f->label_);
  ------------------
  |  |   18|  1.20k|#define stringFormat std::format
  ------------------
  |  Branch (1276:22): [True: 377, False: 1.20k]
  ------------------
 1277|  2.12k|        continue;
 1278|  2.12k|      }
 1279|       |      // Should never get in here. LensSpecFlags.mask should contain all the
 1280|       |      // bits in all the LensSpecFlags.flags.val_ entries
 1281|     16|      throw Error(ErrorCode::kerErrorMessage, "LensSpecFlags mask doesn't match the bits in the flags array");
 1282|  2.14k|    }
 1283|  4.05k|  }
 1284|    514|}
sonymn_int.cpp:_ZN5Exiv28InternalL14getMetaVersionEPKNS_8ExifDataERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  875|    808|static auto getMetaVersion(const ExifData* metadata, std::string& val) {
  876|    808|  const auto pos = metadata->findKey(ExifKey("Exif.SonySInfo1.MetaVersion"));
  877|       |
  878|    808|  if (pos != metadata->end() && pos->typeId() == asciiString) {
  ------------------
  |  Branch (878:7): [True: 468, False: 340]
  |  Branch (878:7): [True: 468, False: 340]
  |  Branch (878:33): [True: 468, False: 0]
  ------------------
  879|    468|    std::string temp = pos->toString();
  880|    468|    if (!temp.empty()) {
  ------------------
  |  Branch (880:9): [True: 390, False: 78]
  ------------------
  881|    390|      val = std::move(temp);
  882|    390|      return true;
  883|    390|    }
  884|    468|  }
  885|    418|  val = "";
  886|    418|  return false;
  887|    808|}
sonymn_int.cpp:_ZN5Exiv28InternalL13getFocusMode2EPKNS_8ExifDataERj:
  889|    152|static auto getFocusMode2(const ExifData* metadata, uint32_t& val) {
  890|    152|  auto pos = metadata->findKey(ExifKey("Exif.Sony1.FocusMode2"));
  891|       |
  892|    152|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (892:7): [True: 0, False: 152]
  |  Branch (892:7): [True: 0, False: 152]
  |  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|    152|  pos = metadata->findKey(ExifKey("Exif.Sony2.FocusMode2"));
  904|    152|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (904:7): [True: 136, False: 16]
  |  Branch (904:7): [True: 104, False: 48]
  |  Branch (904:33): [True: 118, False: 18]
  |  Branch (904:53): [True: 104, False: 14]
  ------------------
  905|    104|    std::ostringstream oss;
  906|    104|    pos->write(oss, metadata);
  907|    104|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  |  Branch (907:9): [True: 9, False: 95]
  ------------------
  908|      9|      val = 0;
  909|      9|      return false;
  910|      9|    }
  911|     95|    val = pos->toUint32(0);
  912|     95|    return true;
  913|    104|  }
  914|       |
  915|     48|  val = 0;
  916|     48|  return false;
  917|    152|}
sonymn_int.cpp:_ZN5Exiv28InternalL13sonyTagCipherEtPKhmPKNS0_13TiffComponentEb:
 2307|    700|                             bool bDecipher) {
 2308|    700|  DataBuf b(bytes, size);  // copy the data
 2309|       |
 2310|       |  // initialize the code table
 2311|    700|  byte code[256];
 2312|   175k|  for (uint32_t i = 0; i < 249; i++) {
  ------------------
  |  Branch (2312:24): [True: 174k, False: 700]
  ------------------
 2313|   174k|    if (bDecipher) {
  ------------------
  |  Branch (2313:9): [True: 166k, False: 8.21k]
  ------------------
 2314|   166k|      code[(i * i * i) % 249] = static_cast<byte>(i);
 2315|   166k|    } else {
 2316|  8.21k|      code[i] = (i * i * i) % 249;
 2317|  8.21k|    }
 2318|   174k|  }
 2319|  5.60k|  for (uint32_t i = 249; i < 256; i++) {
  ------------------
  |  Branch (2319:26): [True: 4.90k, False: 700]
  ------------------
 2320|  4.90k|    code[i] = static_cast<byte>(i);
 2321|  4.90k|  }
 2322|       |
 2323|       |  // code byte-by-byte
 2324|  1.22M|  for (uint32_t i = 0; i < size; i++) {
  ------------------
  |  Branch (2324:24): [True: 1.22M, False: 700]
  ------------------
 2325|  1.22M|    b.write_uint8(i, code[bytes[i]]);
 2326|  1.22M|  }
 2327|       |
 2328|    700|  return b;
 2329|    700|}

_ZN5Exiv28Internal13SonyMakerNote7tagListEv:
   29|   446k|  static constexpr auto tagList() {
   30|   446k|    return tagInfo_;
   31|   446k|  }
_ZN5Exiv28Internal13SonyMakerNote9tagListCsEv:
   33|   566k|  static constexpr auto tagListCs() {
   34|   566k|    return tagInfoCs_;
   35|   566k|  }
_ZN5Exiv28Internal13SonyMakerNote10tagListCs2Ev:
   37|  1.54k|  static constexpr auto tagListCs2() {
   38|  1.54k|    return tagInfoCs2_;
   39|  1.54k|  }
_ZN5Exiv28Internal13SonyMakerNote9tagListFpEv:
   41|  24.6k|  static constexpr auto tagListFp() {
   42|  24.6k|    return tagInfoFp_;
   43|  24.6k|  }
_ZN5Exiv28Internal13SonyMakerNote16tagListSonyMisc1Ev:
   45|  1.00k|  static constexpr auto tagListSonyMisc1() {
   46|  1.00k|    return tagInfoSonyMisc1_;
   47|  1.00k|  }
_ZN5Exiv28Internal13SonyMakerNote17tagListSonyMisc2bEv:
   49|  3.40k|  static constexpr auto tagListSonyMisc2b() {
   50|  3.40k|    return tagInfoSonyMisc2b_;
   51|  3.40k|  }
_ZN5Exiv28Internal13SonyMakerNote17tagListSonyMisc3cEv:
   53|  1.19M|  static constexpr auto tagListSonyMisc3c() {
   54|  1.19M|    return tagInfoSonyMisc3c_;
   55|  1.19M|  }
_ZN5Exiv28Internal13SonyMakerNote17tagListSonySInfo1Ev:
   57|  28.7k|  static constexpr auto tagListSonySInfo1() {
   58|  28.7k|    return tagInfoSonySInfo1_;
   59|  28.7k|  }
_ZN5Exiv28Internal13SonyMakerNote12tagList2010eEv:
   61|    318|  static constexpr auto tagList2010e() {
   62|    318|    return tagInfo2010e_;
   63|    318|  }

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

_ZN5Exiv28Internal10ifdTagListEv:
 1778|  2.12M|const TagInfo* ifdTagList() {
 1779|  2.12M|  return ifdTagInfo;
 1780|  2.12M|}
_ZN5Exiv28Internal11exifTagListEv:
 2216|  73.0k|const TagInfo* exifTagList() {
 2217|  73.0k|  return exifTagInfo;
 2218|  73.0k|}
_ZN5Exiv28Internal10gpsTagListEv:
 2432|  59.6k|const TagInfo* gpsTagList() {
 2433|  59.6k|  return gpsTagInfo;
 2434|  59.6k|}
_ZN5Exiv28Internal10mpfTagListEv:
 2481|    242|const TagInfo* mpfTagList() {
 2482|    242|  return mpfTagInfo;
 2483|    242|}
_ZN5Exiv28Internal10iopTagListEv:
 2507|  15.6k|const TagInfo* iopTagList() {
 2508|  15.6k|  return iopTagInfo;
 2509|  15.6k|}
_ZN5Exiv28Internal9mnTagListEv:
 2523|   176k|const TagInfo* mnTagList() {
 2524|   176k|  return mnTagInfo;
 2525|   176k|}
_ZN5Exiv28Internal10isMakerIfdENS_5IfdIdE:
 2527|  16.9M|bool isMakerIfd(IfdId ifdId) {
 2528|  16.9M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2528:12): [True: 16.9M, False: 0]
  ------------------
 2529|  16.9M|    return std::string_view("Makernote") == ii->ifdName_;
 2530|      0|  return false;
 2531|  16.9M|}
_ZN5Exiv28Internal9isExifIfdENS_5IfdIdE:
 2533|  18.7M|bool isExifIfd(IfdId ifdId) {
 2534|  18.7M|  switch (ifdId) {
 2535|  1.02M|    case IfdId::ifd0Id:
  ------------------
  |  Branch (2535:5): [True: 1.02M, False: 17.7M]
  ------------------
 2536|  1.07M|    case IfdId::exifId:
  ------------------
  |  Branch (2536:5): [True: 51.0k, False: 18.6M]
  ------------------
 2537|  1.11M|    case IfdId::gpsId:
  ------------------
  |  Branch (2537:5): [True: 46.0k, False: 18.6M]
  ------------------
 2538|  1.13M|    case IfdId::iopId:
  ------------------
  |  Branch (2538:5): [True: 13.4k, False: 18.7M]
  ------------------
 2539|  1.15M|    case IfdId::ifd1Id:
  ------------------
  |  Branch (2539:5): [True: 25.3k, False: 18.7M]
  ------------------
 2540|  1.16M|    case IfdId::ifd2Id:
  ------------------
  |  Branch (2540:5): [True: 10.4k, False: 18.7M]
  ------------------
 2541|  1.17M|    case IfdId::ifd3Id:
  ------------------
  |  Branch (2541:5): [True: 2.00k, False: 18.7M]
  ------------------
 2542|  1.17M|    case IfdId::mpfId:
  ------------------
  |  Branch (2542:5): [True: 0, False: 18.7M]
  ------------------
 2543|  1.31M|    case IfdId::subImage1Id:
  ------------------
  |  Branch (2543:5): [True: 141k, False: 18.5M]
  ------------------
 2544|  1.43M|    case IfdId::subImage2Id:
  ------------------
  |  Branch (2544:5): [True: 120k, False: 18.6M]
  ------------------
 2545|  1.53M|    case IfdId::subImage3Id:
  ------------------
  |  Branch (2545:5): [True: 105k, False: 18.6M]
  ------------------
 2546|  1.64M|    case IfdId::subImage4Id:
  ------------------
  |  Branch (2546:5): [True: 103k, False: 18.6M]
  ------------------
 2547|  1.66M|    case IfdId::subImage5Id:
  ------------------
  |  Branch (2547:5): [True: 19.2k, False: 18.7M]
  ------------------
 2548|  1.67M|    case IfdId::subImage6Id:
  ------------------
  |  Branch (2548:5): [True: 13.8k, False: 18.7M]
  ------------------
 2549|  1.69M|    case IfdId::subImage7Id:
  ------------------
  |  Branch (2549:5): [True: 17.7k, False: 18.7M]
  ------------------
 2550|  1.70M|    case IfdId::subImage8Id:
  ------------------
  |  Branch (2550:5): [True: 16.2k, False: 18.7M]
  ------------------
 2551|  1.72M|    case IfdId::subImage9Id:
  ------------------
  |  Branch (2551:5): [True: 17.6k, False: 18.7M]
  ------------------
 2552|  1.73M|    case IfdId::subThumb1Id:
  ------------------
  |  Branch (2552:5): [True: 10.7k, False: 18.7M]
  ------------------
 2553|  1.80M|    case IfdId::panaRawId:
  ------------------
  |  Branch (2553:5): [True: 66.2k, False: 18.6M]
  ------------------
 2554|  1.80M|      return true;
 2555|  16.9M|    default:
  ------------------
  |  Branch (2555:5): [True: 16.9M, False: 1.80M]
  ------------------
 2556|  16.9M|      return false;
 2557|  18.7M|  }
 2558|  18.7M|}
_ZN5Exiv28Internal7tagListENS_5IfdIdE:
 2568|  19.9M|const TagInfo* tagList(IfdId ifdId) {
 2569|  19.9M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2569:12): [True: 19.9M, False: 0]
  ------------------
 2570|  19.9M|    if (ii->tagList_)
  ------------------
  |  Branch (2570:9): [True: 19.9M, False: 0]
  ------------------
 2571|  19.9M|      return ii->tagList_();
 2572|      0|  return nullptr;
 2573|  19.9M|}  // tagList
_ZN5Exiv28Internal7tagInfoEtNS_5IfdIdE:
 2575|  19.4M|const TagInfo* tagInfo(uint16_t tag, IfdId ifdId) {
 2576|  19.4M|  if (auto ti = tagList(ifdId)) {
  ------------------
  |  Branch (2576:12): [True: 19.4M, False: 0]
  ------------------
 2577|  19.4M|    int idx = 0;
 2578|   836M|    for (idx = 0; ti[idx].tag_ != 0xffff; ++idx) {
  ------------------
  |  Branch (2578:19): [True: 819M, False: 16.9M]
  ------------------
 2579|   819M|      if (ti[idx].tag_ == tag)
  ------------------
  |  Branch (2579:11): [True: 2.45M, False: 817M]
  ------------------
 2580|  2.45M|        break;
 2581|   819M|    }
 2582|  19.4M|    return ti + idx;
 2583|  19.4M|  }
 2584|      0|  return nullptr;
 2585|  19.4M|}  // tagInfo
_ZN5Exiv28Internal7tagInfoERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5IfdIdE:
 2587|   521k|const TagInfo* tagInfo(const std::string& tagName, IfdId ifdId) {
 2588|   521k|  if (tagName.empty())
  ------------------
  |  Branch (2588:7): [True: 0, False: 521k]
  ------------------
 2589|      0|    return nullptr;
 2590|   521k|  if (auto ti = tagList(ifdId)) {
  ------------------
  |  Branch (2590:12): [True: 521k, False: 0]
  ------------------
 2591|  25.7M|    for (int idx = 0; ti[idx].tag_ != 0xffff; ++idx) {
  ------------------
  |  Branch (2591:23): [True: 25.6M, False: 31.7k]
  ------------------
 2592|  25.6M|      if (tagName == ti[idx].name_) {
  ------------------
  |  Branch (2592:11): [True: 490k, False: 25.2M]
  ------------------
 2593|   490k|        return ti + idx;
 2594|   490k|      }
 2595|  25.6M|    }
 2596|   521k|  }
 2597|  31.7k|  return nullptr;
 2598|   521k|}  // tagInfo
_ZN5Exiv28Internal7groupIdERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 2600|  21.4M|IfdId groupId(const std::string& groupName) {
 2601|  21.4M|  if (auto ii = Exiv2::find(groupInfo, groupName))
  ------------------
  |  Branch (2601:12): [True: 21.4M, False: 0]
  ------------------
 2602|  21.4M|    return IfdId{ii->ifdId_};
 2603|      0|  return IfdId::ifdIdNotSet;
 2604|  21.4M|}
_ZN5Exiv28Internal9groupNameENS_5IfdIdE:
 2612|  18.1M|const char* groupName(IfdId ifdId) {
 2613|  18.1M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2613:12): [True: 18.1M, False: 0]
  ------------------
 2614|  18.1M|    return ii->groupName_;
 2615|      0|  return groupInfo[0].groupName_;
 2616|  18.1M|}
_ZN5Exiv28Internal10printValueERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2618|   282k|std::ostream& printValue(std::ostream& os, const Value& value, const ExifData*) {
 2619|   282k|  return os << value;
 2620|   282k|}
_ZN5Exiv28Internal12printBitmaskERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2622|  2.23k|std::ostream& printBitmask(std::ostream& os, const Value& value, const ExifData* metadata) {
 2623|  2.23k|  if (value.typeId() == Exiv2::unsignedShort || value.typeId() == Exiv2::signedShort) {
  ------------------
  |  Branch (2623:7): [True: 482, False: 1.75k]
  |  Branch (2623:49): [True: 1.26k, False: 488]
  ------------------
 2624|  1.75k|    uint16_t bit = 0;
 2625|  1.75k|    uint16_t comma = 0;
 2626|  7.37M|    for (size_t i = 0; i < value.count(); i++) {  // for each element in value array
  ------------------
  |  Branch (2626:24): [True: 7.36M, False: 1.75k]
  ------------------
 2627|  7.36M|      auto bits = static_cast<uint16_t>(value.toInt64(i));
 2628|   125M|      for (uint16_t b = 0; b < 16; ++b) {  // for every bit
  ------------------
  |  Branch (2628:28): [True: 117M, False: 7.36M]
  ------------------
 2629|   117M|        if (bits & (1 << b)) {
  ------------------
  |  Branch (2629:13): [True: 107M, False: 10.6M]
  ------------------
 2630|   107M|          if (comma++) {
  ------------------
  |  Branch (2630:15): [True: 107M, False: 3.29k]
  ------------------
 2631|   107M|            os << ",";
 2632|   107M|          }
 2633|   107M|          os << bit;
 2634|   107M|        }
 2635|   117M|        bit++;
 2636|   117M|      }
 2637|  7.36M|    }
 2638|       |    // if no bits are set, print "(none)"
 2639|  1.75k|    if (!comma)
  ------------------
  |  Branch (2639:9): [True: 62, False: 1.68k]
  ------------------
 2640|     62|      os << N_("(none)");
  ------------------
  |  |   41|     62|#define N_(String) String
  ------------------
 2641|  1.75k|  } else {
 2642|    488|    printValue(os, value, metadata);
 2643|    488|  }
 2644|  2.23k|  return os;
 2645|  2.23k|}
_ZN5Exiv28Internal7fnumberEf:
 2647|  10.6k|float fnumber(float apertureValue) {
 2648|  10.6k|  float result = std::exp2(apertureValue / 2.F);
 2649|  10.6k|  if (std::abs(result - 3.5F) < 0.1F) {
  ------------------
  |  Branch (2649:7): [True: 125, False: 10.5k]
  ------------------
 2650|    125|    result = 3.5F;
 2651|    125|  }
 2652|  10.6k|  return result;
 2653|  10.6k|}
_ZN5Exiv28Internal12exposureTimeEf:
 2655|  1.54k|URational exposureTime(float shutterSpeedValue) {
 2656|  1.54k|  URational ur(1, 1);
 2657|  1.54k|  const double tmp = std::exp2(shutterSpeedValue);
 2658|  1.54k|  if (tmp > 1) {
  ------------------
  |  Branch (2658:7): [True: 946, False: 598]
  ------------------
 2659|    946|    const double x = std::round(tmp);
 2660|       |    // Check that x is within the range of a uint32_t before casting.
 2661|    946|    if (x <= std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (2661:9): [True: 414, False: 532]
  ------------------
 2662|    414|      ur.second = static_cast<uint32_t>(x);
 2663|    414|    }
 2664|    946|  } else {
 2665|    598|    const double x = std::round(1 / tmp);
 2666|       |    // Check that x is within the range of a uint32_t before casting.
 2667|    598|    if (0 <= x && x <= std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (2667:9): [True: 598, False: 0]
  |  Branch (2667:19): [True: 472, False: 126]
  ------------------
 2668|    472|      ur.first = static_cast<uint32_t>(x);
 2669|    472|    }
 2670|    598|  }
 2671|  1.54k|  return ur;
 2672|  1.54k|}
_ZN5Exiv28Internal9tagNumberERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5IfdIdE:
 2674|   521k|uint16_t tagNumber(const std::string& tagName, IfdId ifdId) {
 2675|   521k|  auto ti = tagInfo(tagName, ifdId);
 2676|   521k|  if (ti && ti->tag_ != 0xffff)
  ------------------
  |  Branch (2676:7): [True: 490k, False: 31.7k]
  |  Branch (2676:13): [True: 490k, False: 0]
  ------------------
 2677|   490k|    return ti->tag_;
 2678|  31.7k|  if (!isHex(tagName, 4, "0x"))
  ------------------
  |  Branch (2678:7): [True: 0, False: 31.7k]
  ------------------
 2679|      0|    throw Error(ErrorCode::kerInvalidTag, tagName, ifdId);
 2680|  31.7k|  return static_cast<uint16_t>(std::stoi(tagName, nullptr, 16));
 2681|  31.7k|}  // tagNumber
_ZN5Exiv28Internal10printInt64ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2683|  2.43k|std::ostream& printInt64(std::ostream& os, const Value& value, const ExifData*) {
 2684|  2.43k|  Rational r = value.toRational();
 2685|  2.43k|  if (r.second > 0)
  ------------------
  |  Branch (2685:7): [True: 2.30k, False: 132]
  ------------------
 2686|  2.30k|    return os << static_cast<int64_t>(r.first) / r.second;
 2687|    132|  return os << "(" << value << ")";
 2688|  2.43k|}  // printLong
_ZN5Exiv28Internal10printFloatERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2690|  1.59k|std::ostream& printFloat(std::ostream& os, const Value& value, const ExifData*) {
 2691|  1.59k|  Rational r = value.toRational();
 2692|  1.59k|  if (r.second != 0) {
  ------------------
  |  Branch (2692:7): [True: 1.51k, False: 80]
  ------------------
 2693|  1.51k|    os << value.toFloat();
 2694|  1.51k|  } else {
 2695|     80|    os << "(" << value << ")";
 2696|     80|  }
 2697|  1.59k|  return os;
 2698|  1.59k|}  // printFloat
_ZN5Exiv28Internal12printDegreesERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2700|  1.31k|std::ostream& printDegrees(std::ostream& os, const Value& value, const ExifData*) {
 2701|  1.31k|  std::ios::fmtflags f(os.flags());
 2702|  1.31k|  if (value.count() == 3) {
  ------------------
  |  Branch (2702:7): [True: 978, False: 340]
  ------------------
 2703|    978|    Rational deg = value.toRational(0);
 2704|    978|    Rational min = value.toRational(1);
 2705|    978|    Rational sec = value.toRational(2);
 2706|    978|    if ((deg.second != 1) || (min.second <= 0) || (sec.second <= 0)) {
  ------------------
  |  Branch (2706:9): [True: 234, False: 744]
  |  Branch (2706:30): [True: 200, False: 544]
  |  Branch (2706:51): [True: 202, False: 342]
  ------------------
 2707|    636|      return os << "(" << value << ")";
 2708|    636|    }
 2709|    342|    const int32_t dd = deg.first;
 2710|    342|    const int32_t mm = min.first / min.second;
 2711|    342|    const int32_t rem = min.first % min.second;
 2712|    342|    if ((min.second > 1) && (rem > 0)) {
  ------------------
  |  Branch (2712:9): [True: 120, False: 222]
  |  Branch (2712:29): [True: 100, False: 20]
  ------------------
 2713|    100|      if ((sec.first == 0) && (sec.second == 1) && (rem <= std::numeric_limits<int32_t>::max() / 60)) {
  ------------------
  |  Branch (2713:11): [True: 32, False: 68]
  |  Branch (2713:31): [True: 26, False: 6]
  |  Branch (2713:52): [True: 22, False: 4]
  ------------------
 2714|     22|        sec.first = 60 * rem;
 2715|     22|        sec.second = min.second;
 2716|     78|      } else {
 2717|     78|        return os << "(" << value << ")";
 2718|     78|      }
 2719|    100|    }
 2720|    264|    const float ss = static_cast<float>(sec.first) / sec.second;
 2721|    264|    os << dd << " deg ";
 2722|    264|    os << mm << "' ";
 2723|    264|    std::ostringstream oss;
 2724|    264|    oss.copyfmt(os);
 2725|    264|    os << std::fixed << std::setprecision(sec.second > 1 ? 2 : 0) << ss << "\"";
  ------------------
  |  Branch (2725:43): [True: 32, False: 232]
  ------------------
 2726|    264|    os.copyfmt(oss);
 2727|    340|  } else {
 2728|    340|    os << "(" << value << ")";
 2729|    340|  }
 2730|    604|  os.flags(f);
 2731|    604|  return os;
 2732|  1.31k|}  // printDegrees
_ZN5Exiv28Internal9printUcs2ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2734|    970|std::ostream& printUcs2(std::ostream& os, const Value& value, const ExifData*) {
 2735|    970|  bool cnv = false;
 2736|    970|  if (value.typeId() == unsignedByte && value.size() > 0) {
  ------------------
  |  Branch (2736:7): [True: 758, False: 212]
  |  Branch (2736:41): [True: 758, False: 0]
  ------------------
 2737|    758|    DataBuf buf(value.size());
 2738|    758|    value.copy(buf.data(), invalidByteOrder);
 2739|       |    // Strip trailing odd byte due to failing UCS-2 conversion
 2740|    758|    if (buf.size() % 2 == 1) {
  ------------------
  |  Branch (2740:9): [True: 352, False: 406]
  ------------------
 2741|    352|      buf.resize(buf.size() - 1);
 2742|    352|    }
 2743|       |
 2744|       |    // Strip trailing UCS-2 0-characters
 2745|  2.45k|    while (buf.size() >= 2) {
  ------------------
  |  Branch (2745:12): [True: 2.33k, False: 120]
  ------------------
 2746|  2.33k|      if (buf.read_uint8(buf.size() - 1) != 0 || buf.read_uint8(buf.size() - 2) != 0)
  ------------------
  |  Branch (2746:11): [True: 420, False: 1.91k]
  |  Branch (2746:50): [True: 218, False: 1.69k]
  ------------------
 2747|    638|        break;
 2748|  1.69k|      buf.resize(buf.size() - 2);
 2749|  1.69k|    }
 2750|       |
 2751|    758|    std::string str(buf.c_str(), buf.size());
 2752|    758|    cnv = convertStringCharset(str, "UCS-2LE", "UTF-8");
 2753|    758|    if (cnv)
  ------------------
  |  Branch (2753:9): [True: 668, False: 90]
  ------------------
 2754|    668|      os << str;
 2755|    758|  }
 2756|    970|  if (!cnv)
  ------------------
  |  Branch (2756:7): [True: 302, False: 668]
  ------------------
 2757|    302|    os << value;
 2758|    970|  return os;
 2759|    970|}
_ZN5Exiv28Internal13printExifUnitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2761|    422|std::ostream& printExifUnit(std::ostream& os, const Value& value, const ExifData* metadata) {
 2762|    422|  return EXV_PRINT_TAG(exifUnit)(os, value, metadata);
  ------------------
  |  |  199|    422|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2763|    422|}
_ZN5Exiv28Internal22printLensSpecificationERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2765|  1.36k|std::ostream& printLensSpecification(std::ostream& os, const Value& value, const ExifData*) {
 2766|  1.36k|  std::ios::fmtflags f(os.flags());
 2767|       |  // check type and count of values
 2768|  1.36k|  if (value.typeId() != unsignedRational || value.count() != 4 ||
  ------------------
  |  Branch (2768:7): [True: 32, False: 1.33k]
  |  Branch (2768:7): [True: 352, False: 1.01k]
  |  Branch (2768:45): [True: 16, False: 1.31k]
  ------------------
 2769|       |      // divisor may be zero only if dividend is not zero
 2770|  1.31k|      (value.toRational(0).first != 0 && value.toRational(0).second == 0) ||
  ------------------
  |  Branch (2770:8): [True: 1.06k, False: 252]
  |  Branch (2770:42): [True: 108, False: 958]
  ------------------
 2771|  1.21k|      (value.toRational(1).first != 0 && value.toRational(1).second == 0) ||
  ------------------
  |  Branch (2771:8): [True: 828, False: 382]
  |  Branch (2771:42): [True: 56, False: 772]
  ------------------
 2772|  1.15k|      (value.toRational(2).first != 0 && value.toRational(2).second == 0) ||
  ------------------
  |  Branch (2772:8): [True: 890, False: 264]
  |  Branch (2772:42): [True: 74, False: 816]
  ------------------
 2773|  1.08k|      (value.toRational(3).first != 0 && value.toRational(3).second == 0)) {
  ------------------
  |  Branch (2773:8): [True: 844, False: 236]
  |  Branch (2773:42): [True: 66, False: 778]
  ------------------
 2774|    352|    return os << "(" << value << ")";
 2775|    352|  }
 2776|       |  // values numerically are ok, so they can be converted
 2777|       |  // here first and second can be zero, so initialise float with 0.0f
 2778|  1.01k|  float focalLength1 = 0.0f;
 2779|  1.01k|  if (value.toRational(0).first != 0)
  ------------------
  |  Branch (2779:7): [True: 778, False: 236]
  ------------------
 2780|    778|    focalLength1 = value.toFloat(0);
 2781|  1.01k|  float focalLength2 = 0.0f;
 2782|  1.01k|  if (value.toRational(1).first != 0)
  ------------------
  |  Branch (2782:7): [True: 654, False: 360]
  ------------------
 2783|    654|    focalLength2 = value.toFloat(1);
 2784|  1.01k|  float fNumber1 = 0.0f;
 2785|  1.01k|  if (value.toRational(2).first != 0)
  ------------------
  |  Branch (2785:7): [True: 768, False: 246]
  ------------------
 2786|    768|    fNumber1 = value.toFloat(2);
 2787|  1.01k|  float fNumber2 = 0.0f;
 2788|  1.01k|  if (value.toRational(3).first != 0)
  ------------------
  |  Branch (2788:7): [True: 778, False: 236]
  ------------------
 2789|    778|    fNumber2 = value.toFloat(3);
 2790|       |
 2791|       |  // first value must not be bigger than second
 2792|  1.01k|  if ((std::isgreater(focalLength1, focalLength2) && std::isgreater(focalLength2, 0.0f)) ||
  ------------------
  |  Branch (2792:8): [True: 358, False: 656]
  |  Branch (2792:54): [True: 182, False: 176]
  ------------------
 2793|    832|      (std::isgreater(fNumber1, fNumber2) && std::isgreater(fNumber2, 0.0f))) {
  ------------------
  |  Branch (2793:8): [True: 304, False: 528]
  |  Branch (2793:46): [True: 212, False: 92]
  ------------------
 2794|    394|    return os << "(" << value << ")";
 2795|    394|  }
 2796|       |
 2797|       |  // no lens specification available
 2798|    620|  if (focalLength1 == 0.0f && focalLength2 == 0.0f && fNumber1 == 0.0f && fNumber2 == 0.0f)
  ------------------
  |  Branch (2798:7): [True: 234, False: 386]
  |  Branch (2798:31): [True: 184, False: 50]
  |  Branch (2798:55): [True: 114, False: 70]
  |  Branch (2798:75): [True: 68, False: 46]
  ------------------
 2799|     68|    return os << _("n/a");
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
 2800|       |
 2801|       |  // lens specification available - at least parts
 2802|    552|  if (focalLength1 == 0.0f)
  ------------------
  |  Branch (2802:7): [True: 166, False: 386]
  ------------------
 2803|    166|    os << _("n/a");
  ------------------
  |  |   40|    166|#define _(String) (String)
  ------------------
 2804|    386|  else
 2805|    386|    os << std::setprecision(5) << focalLength1;
 2806|    552|  if (focalLength1 != focalLength2) {
  ------------------
  |  Branch (2806:7): [True: 352, False: 200]
  ------------------
 2807|    352|    if (focalLength2 == 0.0f)
  ------------------
  |  Branch (2807:9): [True: 166, False: 186]
  ------------------
 2808|    166|      os << "-n/a ";
 2809|    186|    else
 2810|    186|      os << "-" << std::setprecision(5) << focalLength2;
 2811|    352|  }
 2812|    552|  os << "mm";
 2813|    552|  std::ostringstream oss;
 2814|    552|  oss.copyfmt(os);
 2815|       |
 2816|    552|  if (std::isgreater(fNumber1, 0.0f) || std::isgreater(fNumber2, 0.0f)) {
  ------------------
  |  Branch (2816:7): [True: 376, False: 176]
  |  Branch (2816:41): [True: 106, False: 70]
  ------------------
 2817|    482|    os << " F";
 2818|    482|    if (fNumber1 == 0.0f)
  ------------------
  |  Branch (2818:9): [True: 106, False: 376]
  ------------------
 2819|    106|      os << " n/a";
 2820|    376|    else
 2821|    376|      os << std::setprecision(2) << fNumber1;
 2822|    482|    if (fNumber1 != fNumber2) {
  ------------------
  |  Branch (2822:9): [True: 378, False: 104]
  ------------------
 2823|    378|      if (fNumber2 == 0.0f)
  ------------------
  |  Branch (2823:11): [True: 92, False: 286]
  ------------------
 2824|     92|        os << "-n/a";
 2825|    286|      else
 2826|    286|        os << "-" << std::setprecision(2) << fNumber2;
 2827|    378|    }
 2828|    482|  }
 2829|    552|  os.copyfmt(oss);
 2830|    552|  os.flags(f);
 2831|    552|  return os;
 2832|    620|}
_ZN5Exiv28Internal11print0x0000ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2834|  1.38k|std::ostream& print0x0000(std::ostream& os, const Value& value, const ExifData*) {
 2835|  1.38k|  if (value.size() != 4 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (2835:7): [True: 1.29k, False: 88]
  |  Branch (2835:28): [True: 56, False: 32]
  ------------------
 2836|  1.34k|    return os << value;
 2837|  1.34k|  }
 2838|       |
 2839|    128|  for (int i = 0; i < 3; i++) {
  ------------------
  |  Branch (2839:19): [True: 96, False: 32]
  ------------------
 2840|     96|    os << value.toInt64(i);
 2841|     96|    os << ".";
 2842|     96|  }
 2843|     32|  os << value.toInt64(3);
 2844|       |
 2845|     32|  return os;
 2846|  1.38k|}
_ZN5Exiv28Internal11print0x0005ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2848|    186|std::ostream& print0x0005(std::ostream& os, const Value& value, const ExifData* metadata) {
 2849|    186|  return EXV_PRINT_TAG(exifGPSAltitudeRef)(os, value, metadata);
  ------------------
  |  |  199|    186|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2850|    186|}
_ZN5Exiv28Internal11print0x0006ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2852|    378|std::ostream& print0x0006(std::ostream& os, const Value& value, const ExifData*) {
 2853|    378|  std::ios::fmtflags f(os.flags());
 2854|    378|  std::ostringstream oss;
 2855|    378|  oss.copyfmt(os);
 2856|    378|  const int32_t d = value.toRational().second;
 2857|    378|  if (d == 0)
  ------------------
  |  Branch (2857:7): [True: 28, False: 350]
  ------------------
 2858|     28|    return os << "(" << value << ")";
 2859|    350|  const int p = d > 1 ? 1 : 0;
  ------------------
  |  Branch (2859:17): [True: 118, False: 232]
  ------------------
 2860|    350|  os << std::fixed << std::setprecision(p) << value.toFloat() << " m";
 2861|    350|  os.copyfmt(oss);
 2862|       |
 2863|    350|  os.flags(f);
 2864|    350|  return os;
 2865|    378|}
_ZN5Exiv28Internal11print0x0007ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2867|    900|std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*) {
 2868|    900|  std::ios::fmtflags f(os.flags());
 2869|    900|  if (value.count() == 3) {
  ------------------
  |  Branch (2869:7): [True: 658, False: 242]
  ------------------
 2870|  2.01k|    for (int i = 0; i < 3; ++i) {
  ------------------
  |  Branch (2870:21): [True: 1.63k, False: 384]
  ------------------
 2871|  1.63k|      if (value.toRational(i).second == 0) {
  ------------------
  |  Branch (2871:11): [True: 274, False: 1.35k]
  ------------------
 2872|    274|        return os << "(" << value << ")";
 2873|    274|      }
 2874|  1.63k|    }
 2875|    384|    std::ostringstream oss;
 2876|    384|    oss.copyfmt(os);
 2877|    384|    const double t = (3600.0 * value.toInt64(0)) + (60.0 * value.toInt64(1)) + value.toFloat(2);
 2878|    384|    enforce<std::overflow_error>(std::isfinite(t), "Non-finite time value");
 2879|    384|    int p = 0;
 2880|    384|    const double fraction = std::fmod(t, 1);
 2881|    384|    if (fraction != 0)
  ------------------
  |  Branch (2881:9): [True: 258, False: 126]
  ------------------
 2882|    258|      p = 1;
 2883|    384|    const double ss = std::fmod(t, 60);
 2884|    384|    const double minutes = (t - ss) / 60;
 2885|    384|    const auto mm = static_cast<int>(std::fmod(minutes, 60));
 2886|    384|    const double hours = (minutes - mm) / 60;
 2887|    384|    const auto hh = static_cast<int>(std::fmod(hours, 24));
 2888|       |
 2889|    384|    os << std::setw(2) << std::setfill('0') << std::right << hh << ":" << std::setw(2) << std::setfill('0')
 2890|    384|       << std::right << mm << ":" << std::setw(2 + (p * 2)) << std::setfill('0') << std::right << std::fixed
 2891|    384|       << std::setprecision(p) << ss;
 2892|       |
 2893|    384|    os.copyfmt(oss);
 2894|    384|  } else {
 2895|    242|    os << value;
 2896|    242|  }
 2897|       |
 2898|    626|  os.flags(f);
 2899|    626|  return os;
 2900|    900|}
_ZN5Exiv28Internal11print0x0009ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2902|    106|std::ostream& print0x0009(std::ostream& os, const Value& value, const ExifData* metadata) {
 2903|    106|  return EXV_PRINT_TAG(exifGPSStatus)(os, value, metadata);
  ------------------
  |  |  199|    106|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2904|    106|}
_ZN5Exiv28Internal11print0x000aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2906|     80|std::ostream& print0x000a(std::ostream& os, const Value& value, const ExifData* metadata) {
 2907|     80|  return EXV_PRINT_TAG(exifGPSMeasureMode)(os, value, metadata);
  ------------------
  |  |  199|     80|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2908|     80|}
_ZN5Exiv28Internal11print0x000cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2910|    220|std::ostream& print0x000c(std::ostream& os, const Value& value, const ExifData* metadata) {
 2911|    220|  return EXV_PRINT_TAG(exifGPSSpeedRef)(os, value, metadata);
  ------------------
  |  |  199|    220|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2912|    220|}
_ZN5Exiv28Internal11print0x0019ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2914|    192|std::ostream& print0x0019(std::ostream& os, const Value& value, const ExifData* metadata) {
 2915|    192|  return EXV_PRINT_TAG(exifGPSDestDistanceRef)(os, value, metadata);
  ------------------
  |  |  199|    192|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2916|    192|}
_ZN5Exiv28Internal11print0x001eERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2918|    118|std::ostream& print0x001e(std::ostream& os, const Value& value, const ExifData* metadata) {
 2919|    118|  return EXV_PRINT_TAG(exifGPSDifferential)(os, value, metadata);
  ------------------
  |  |  199|    118|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2920|    118|}
_ZN5Exiv28Internal11print0x0112ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2922|  1.19k|std::ostream& print0x0112(std::ostream& os, const Value& value, const ExifData* metadata) {
 2923|  1.19k|  return EXV_PRINT_TAG(exifOrientation)(os, value, metadata);
  ------------------
  |  |  199|  1.19k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2924|  1.19k|}
_ZN5Exiv28Internal11print0x0213ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2931|    308|std::ostream& print0x0213(std::ostream& os, const Value& value, const ExifData* metadata) {
 2932|    308|  return EXV_PRINT_TAG(exifYCbCrPositioning)(os, value, metadata);
  ------------------
  |  |  199|    308|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2933|    308|}
_ZN5Exiv28Internal11print0x8298ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2935|    188|std::ostream& print0x8298(std::ostream& os, const Value& value, const ExifData*) {
 2936|       |  // Print the copyright information in the format Photographer, Editor
 2937|    188|  std::string val = value.toString();
 2938|    188|  std::string::size_type pos = val.find('\0');
 2939|    188|  if (pos != std::string::npos) {
  ------------------
  |  Branch (2939:7): [True: 0, False: 188]
  ------------------
 2940|      0|    std::string photographer(val, 0, pos);
 2941|      0|    if (photographer != " ")
  ------------------
  |  Branch (2941:9): [True: 0, False: 0]
  ------------------
 2942|      0|      os << photographer;
 2943|      0|    std::string editor(val, pos + 1);
 2944|      0|    if (!editor.empty()) {
  ------------------
  |  Branch (2944:9): [True: 0, False: 0]
  ------------------
 2945|      0|      if (photographer != " ")
  ------------------
  |  Branch (2945:11): [True: 0, False: 0]
  ------------------
 2946|      0|        os << ", ";
 2947|      0|      os << editor;
 2948|      0|    }
 2949|    188|  } else {
 2950|    188|    os << val;
 2951|    188|  }
 2952|    188|  return os;
 2953|    188|}
_ZN5Exiv28Internal11print0x829aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2955|    486|std::ostream& print0x829a(std::ostream& os, const Value& value, const ExifData*) {
 2956|    486|  if (value.count() == 0)
  ------------------
  |  Branch (2956:7): [True: 0, False: 486]
  ------------------
 2957|      0|    return os;
 2958|    486|  if (value.typeId() != unsignedRational)
  ------------------
  |  Branch (2958:7): [True: 46, False: 440]
  ------------------
 2959|     46|    return os << "(" << value << ")";
 2960|       |
 2961|    440|  using Exiv2::operator<<;
 2962|    440|  URational t = value.toRational();
 2963|    440|  if (t.first == 0 || t.second == 0) {
  ------------------
  |  Branch (2963:7): [True: 78, False: 362]
  |  Branch (2963:23): [True: 68, False: 294]
  ------------------
 2964|    146|    os << "(" << t << ")";
 2965|    294|  } else if (t.second == t.first) {
  ------------------
  |  Branch (2965:14): [True: 24, False: 270]
  ------------------
 2966|     24|    os << "1 s";
 2967|    270|  } else if (t.second % t.first == 0) {
  ------------------
  |  Branch (2967:14): [True: 144, False: 126]
  ------------------
 2968|    144|    t.second = t.second / t.first;
 2969|    144|    t.first = 1;
 2970|    144|    os << t << " s";
 2971|    144|  } else {
 2972|    126|    os << static_cast<float>(t.first) / t.second << " s";
 2973|    126|  }
 2974|    440|  return os;
 2975|    486|}
_ZN5Exiv28Internal11print0x829dERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2977|    324|std::ostream& print0x829d(std::ostream& os, const Value& value, const ExifData*) {
 2978|    324|  Rational fnumber = value.toRational();
 2979|    324|  if (fnumber.second != 0)
  ------------------
  |  Branch (2979:7): [True: 252, False: 72]
  ------------------
 2980|    252|    return os << stringFormat("F{:.2g}", static_cast<float>(fnumber.first) / fnumber.second);
  ------------------
  |  |   18|    252|#define stringFormat std::format
  ------------------
 2981|     72|  return os << "(" << value << ")";
 2982|    324|}
_ZN5Exiv28Internal11print0x8822ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2991|    798|std::ostream& print0x8822(std::ostream& os, const Value& value, const ExifData* metadata) {
 2992|    798|  return EXV_PRINT_TAG(exifExposureProgram)(os, value, metadata);
  ------------------
  |  |  199|    798|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2993|    798|}
_ZN5Exiv28Internal11print0x8827ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2995|    232|std::ostream& print0x8827(std::ostream& os, const Value& value, const ExifData*) {
 2996|    232|  return os << value.toInt64();
 2997|    232|}
_ZN5Exiv28Internal11print0x9101ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2999|    222|std::ostream& print0x9101(std::ostream& os, const Value& value, const ExifData*) {
 3000|   113k|  for (size_t i = 0; i < value.count(); ++i) {
  ------------------
  |  Branch (3000:22): [True: 113k, False: 222]
  ------------------
 3001|   113k|    const auto l = value.toInt64(i);
 3002|   113k|    switch (l) {
 3003|  57.8k|      case 0:
  ------------------
  |  Branch (3003:7): [True: 57.8k, False: 55.3k]
  ------------------
 3004|  57.8k|        break;
 3005|  4.26k|      case 1:
  ------------------
  |  Branch (3005:7): [True: 4.26k, False: 108k]
  ------------------
 3006|  4.26k|        os << "Y";
 3007|  4.26k|        break;
 3008|  2.97k|      case 2:
  ------------------
  |  Branch (3008:7): [True: 2.97k, False: 110k]
  ------------------
 3009|  2.97k|        os << "Cb";
 3010|  2.97k|        break;
 3011|  3.08k|      case 3:
  ------------------
  |  Branch (3011:7): [True: 3.08k, False: 110k]
  ------------------
 3012|  3.08k|        os << "Cr";
 3013|  3.08k|        break;
 3014|  1.48k|      case 4:
  ------------------
  |  Branch (3014:7): [True: 1.48k, False: 111k]
  ------------------
 3015|  1.48k|        os << "R";
 3016|  1.48k|        break;
 3017|  1.26k|      case 5:
  ------------------
  |  Branch (3017:7): [True: 1.26k, False: 111k]
  ------------------
 3018|  1.26k|        os << "G";
 3019|  1.26k|        break;
 3020|    746|      case 6:
  ------------------
  |  Branch (3020:7): [True: 746, False: 112k]
  ------------------
 3021|    746|        os << "B";
 3022|    746|        break;
 3023|  41.5k|      default:
  ------------------
  |  Branch (3023:7): [True: 41.5k, False: 71.6k]
  ------------------
 3024|  41.5k|        os << "(" << l << ")";
 3025|  41.5k|        break;
 3026|   113k|    }
 3027|   113k|  }
 3028|    222|  return os;
 3029|    222|}
_ZN5Exiv28Internal11print0x9201ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3031|    838|std::ostream& print0x9201(std::ostream& os, const Value& value, const ExifData*) {
 3032|    838|  Rational r = value.toRational();
 3033|    838|  if (!value.ok() || r.second == 0)
  ------------------
  |  Branch (3033:7): [True: 0, False: 838]
  |  Branch (3033:22): [True: 20, False: 818]
  ------------------
 3034|     20|    return os << "(" << value << ")";
 3035|       |
 3036|    818|  URational ur = exposureTime(static_cast<float>(r.first) / r.second);
 3037|    818|  os << ur.first;
 3038|    818|  if (ur.second > 1) {
  ------------------
  |  Branch (3038:7): [True: 196, False: 622]
  ------------------
 3039|    196|    os << "/" << ur.second;
 3040|    196|  }
 3041|    818|  return os << " s";
 3042|    838|}
_ZN5Exiv28Internal11print0x9202ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3044|    910|std::ostream& print0x9202(std::ostream& os, const Value& value, const ExifData*) {
 3045|    910|  if (value.count() == 0 || value.toRational().second == 0)
  ------------------
  |  Branch (3045:7): [True: 0, False: 910]
  |  Branch (3045:7): [True: 124, False: 786]
  |  Branch (3045:29): [True: 124, False: 786]
  ------------------
 3046|    124|    return os << "(" << value << ")";
 3047|    786|  return os << stringFormat("F{:.2g}", fnumber(value.toFloat()));
  ------------------
  |  |   18|    786|#define stringFormat std::format
  ------------------
 3048|    910|}
_ZN5Exiv28Internal11print0x9204ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3050|    688|std::ostream& print0x9204(std::ostream& os, const Value& value, const ExifData*) {
 3051|    688|  Rational bias = value.toRational();
 3052|       |
 3053|    688|  if (bias.first == 0 || bias.first == std::numeric_limits<std::int32_t>::min()) {
  ------------------
  |  Branch (3053:7): [True: 52, False: 636]
  |  Branch (3053:26): [True: 22, False: 614]
  ------------------
 3054|     74|    os << "0 EV";
 3055|    614|  } else if (bias.second <= 0) {
  ------------------
  |  Branch (3055:14): [True: 110, False: 504]
  ------------------
 3056|    110|    os << "(" << bias.first << "/" << bias.second << ")";
 3057|    504|  } else {
 3058|    504|    int32_t d = std::gcd(bias.first, bias.second);
 3059|    504|    int32_t num = std::abs(bias.first) / d;
 3060|    504|    int32_t den = bias.second / d;
 3061|    504|    os << (bias.first < 0 ? "-" : "+") << num;
  ------------------
  |  Branch (3061:12): [True: 150, False: 354]
  ------------------
 3062|    504|    if (den != 1) {
  ------------------
  |  Branch (3062:9): [True: 346, False: 158]
  ------------------
 3063|    346|      os << "/" << den;
 3064|    346|    }
 3065|    504|    os << " EV";
 3066|    504|  }
 3067|    688|  return os;
 3068|    688|}
_ZN5Exiv28Internal11print0x9206ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3070|    262|std::ostream& print0x9206(std::ostream& os, const Value& value, const ExifData*) {
 3071|    262|  Rational distance = value.toRational();
 3072|    262|  if (distance.first == 0)
  ------------------
  |  Branch (3072:7): [True: 20, False: 242]
  ------------------
 3073|     20|    return os << _("Unknown");
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
 3074|    242|  if (static_cast<uint32_t>(distance.first) == std::numeric_limits<uint32_t>::max())
  ------------------
  |  Branch (3074:7): [True: 30, False: 212]
  ------------------
 3075|     30|    return os << _("Infinity");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 3076|    212|  if (distance.second != 0)
  ------------------
  |  Branch (3076:7): [True: 176, False: 36]
  ------------------
 3077|    176|    return os << stringFormat("{:.2f} m", static_cast<float>(distance.first) / distance.second);
  ------------------
  |  |   18|    176|#define stringFormat std::format
  ------------------
 3078|     36|  return os << "(" << value << ")";
 3079|    212|}
_ZN5Exiv28Internal11print0x9207ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3088|  2.75k|std::ostream& print0x9207(std::ostream& os, const Value& value, const ExifData* metadata) {
 3089|  2.75k|  return EXV_PRINT_TAG(exifMeteringMode)(os, value, metadata);
  ------------------
  |  |  199|  2.75k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3090|  2.75k|}
_ZN5Exiv28Internal11print0x9208ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3092|  2.52k|std::ostream& print0x9208(std::ostream& os, const Value& value, const ExifData* metadata) {
 3093|  2.52k|  return EXV_PRINT_TAG(exifLightSource)(os, value, metadata);
  ------------------
  |  |  199|  2.52k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3094|  2.52k|}
_ZN5Exiv28Internal11print0x920aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3096|    702|std::ostream& print0x920a(std::ostream& os, const Value& value, const ExifData*) {
 3097|    702|  Rational length = value.toRational();
 3098|    702|  if (length.second != 0)
  ------------------
  |  Branch (3098:7): [True: 618, False: 84]
  ------------------
 3099|    618|    return os << stringFormat("{:.1f} mm", static_cast<float>(length.first) / length.second);
  ------------------
  |  |   18|    618|#define stringFormat std::format
  ------------------
 3100|     84|  return os << "(" << value << ")";
 3101|    702|}
_ZN5Exiv28Internal11print0xa001ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3110|    294|std::ostream& print0xa001(std::ostream& os, const Value& value, const ExifData* metadata) {
 3111|    294|  return EXV_PRINT_TAG(exifColorSpace)(os, value, metadata);
  ------------------
  |  |  199|    294|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3112|    294|}
_ZN5Exiv28Internal11print0xa217ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3125|    530|std::ostream& print0xa217(std::ostream& os, const Value& value, const ExifData* metadata) {
 3126|    530|  return EXV_PRINT_TAG(exifSensingMethod)(os, value, metadata);
  ------------------
  |  |  199|    530|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3127|    530|}
_ZN5Exiv28Internal11print0xa300ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3136|    164|std::ostream& print0xa300(std::ostream& os, const Value& value, const ExifData* metadata) {
 3137|    164|  return EXV_PRINT_TAG(exifFileSource)(os, value, metadata);
  ------------------
  |  |  199|    164|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3138|    164|}
_ZN5Exiv28Internal11print0xa301ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3145|     62|std::ostream& print0xa301(std::ostream& os, const Value& value, const ExifData* metadata) {
 3146|     62|  return EXV_PRINT_TAG(exifSceneType)(os, value, metadata);
  ------------------
  |  |  199|     62|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3147|     62|}
_ZN5Exiv28Internal11print0xa401ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3155|    202|std::ostream& print0xa401(std::ostream& os, const Value& value, const ExifData* metadata) {
 3156|    202|  return EXV_PRINT_TAG(exifCustomRendered)(os, value, metadata);
  ------------------
  |  |  199|    202|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3157|    202|}
_ZN5Exiv28Internal11print0xa402ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3166|    302|std::ostream& print0xa402(std::ostream& os, const Value& value, const ExifData* metadata) {
 3167|    302|  return EXV_PRINT_TAG(exifExposureMode)(os, value, metadata);
  ------------------
  |  |  199|    302|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3168|    302|}
_ZN5Exiv28Internal11print0xa403ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3176|    414|std::ostream& print0xa403(std::ostream& os, const Value& value, const ExifData* metadata) {
 3177|    414|  return EXV_PRINT_TAG(exifWhiteBalance)(os, value, metadata);
  ------------------
  |  |  199|    414|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3178|    414|}
_ZN5Exiv28Internal11print0xa404ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3180|    182|std::ostream& print0xa404(std::ostream& os, const Value& value, const ExifData*) {
 3181|    182|  Rational zoom = value.toRational();
 3182|    182|  if (zoom.second == 0)
  ------------------
  |  Branch (3182:7): [True: 34, False: 148]
  ------------------
 3183|     34|    return os << _("Digital zoom not used");
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
 3184|    148|  return os << stringFormat("{:.1f}", static_cast<float>(zoom.first) / zoom.second);
  ------------------
  |  |   18|    148|#define stringFormat std::format
  ------------------
 3185|    182|}
_ZN5Exiv28Internal11print0xa405ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3187|     64|std::ostream& print0xa405(std::ostream& os, const Value& value, const ExifData*) {
 3188|     64|  if (auto length = value.toInt64(); length != 0)
  ------------------
  |  Branch (3188:38): [True: 26, False: 38]
  ------------------
 3189|     26|    return os << length << ".0 mm";
 3190|     38|  return os << _("Unknown");
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
 3191|     64|}
_ZN5Exiv28Internal11print0xa406ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3201|    614|std::ostream& print0xa406(std::ostream& os, const Value& value, const ExifData* metadata) {
 3202|    614|  return EXV_PRINT_TAG(exifSceneCaptureType)(os, value, metadata);
  ------------------
  |  |  199|    614|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3203|    614|}
_ZN5Exiv28Internal11print0xa407ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3211|    610|std::ostream& print0xa407(std::ostream& os, const Value& value, const ExifData* metadata) {
 3212|    610|  return EXV_PRINT_TAG(exifGainControl)(os, value, metadata);
  ------------------
  |  |  199|    610|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3213|    610|}
_ZN5Exiv28Internal11print0xa409ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3222|    386|std::ostream& print0xa409(std::ostream& os, const Value& value, const ExifData* metadata) {
 3223|    386|  return EXV_PRINT_TAG(exifSaturation)(os, value, metadata);
  ------------------
  |  |  199|    386|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3224|    386|}
_ZN5Exiv28Internal11print0xa40cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3234|    266|std::ostream& print0xa40c(std::ostream& os, const Value& value, const ExifData* metadata) {
 3235|    266|  return EXV_PRINT_TAG(exifSubjectDistanceRange)(os, value, metadata);
  ------------------
  |  |  199|    266|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3236|    266|}
_ZN5Exiv28Internal14printGPSDirRefERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3238|    128|std::ostream& printGPSDirRef(std::ostream& os, const Value& value, const ExifData* metadata) {
 3239|    128|  return EXV_PRINT_TAG(exifGPSDirRef)(os, value, metadata);
  ------------------
  |  |  199|    128|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3240|    128|}
_ZN5Exiv28Internal19printNormalSoftHardERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3249|    280|std::ostream& printNormalSoftHard(std::ostream& os, const Value& value, const ExifData* metadata) {
 3250|    280|  return EXV_PRINT_TAG(exifNormalSoftHard)(os, value, metadata);
  ------------------
  |  |  199|    280|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3251|    280|}
_ZN5Exiv28Internal16printExifVersionERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3253|  4.34k|std::ostream& printExifVersion(std::ostream& os, const Value& value, const ExifData*) {
 3254|  4.34k|  if (value.size() != 4 || value.typeId() != undefined) {
  ------------------
  |  Branch (3254:7): [True: 2.50k, False: 1.84k]
  |  Branch (3254:28): [True: 608, False: 1.23k]
  ------------------
 3255|  3.11k|    return os << "(" << value << ")";
 3256|  3.11k|  }
 3257|       |
 3258|  1.23k|  char s[5];
 3259|  6.16k|  for (int i = 0; i < 4; ++i) {
  ------------------
  |  Branch (3259:19): [True: 4.92k, False: 1.23k]
  ------------------
 3260|  4.92k|    s[i] = static_cast<char>(value.toInt64(i));
 3261|  4.92k|  }
 3262|  1.23k|  s[4] = '\0';
 3263|       |
 3264|  1.23k|  return printVersion(os, s);
 3265|  4.34k|}
_ZN5Exiv28Internal7tagListERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 3294|  4.65k|const TagInfo* tagList(const std::string& groupName) {
 3295|  4.65k|  auto ii = Exiv2::find(groupInfo, groupName);
 3296|  4.65k|  if (!ii || !ii->tagList_) {
  ------------------
  |  Branch (3296:7): [True: 0, False: 4.65k]
  |  Branch (3296:14): [True: 0, False: 4.65k]
  ------------------
 3297|      0|    return nullptr;
 3298|      0|  }
 3299|  4.65k|  return ii->tagList_();
 3300|  4.65k|}
tags_int.cpp:_ZN12_GLOBAL__N_112printVersionERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS0_17basic_string_viewIcS3_EE:
   33|  1.23k|std::ostream& printVersion(std::ostream& os, std::string_view str) {
   34|  1.23k|  if (str.size() != 4) {
  ------------------
  |  Branch (34:7): [True: 76, False: 1.15k]
  ------------------
   35|     76|    return os << "(" << str << ")";
   36|     76|  }
   37|  1.15k|  if (str.front() != '0')
  ------------------
  |  Branch (37:7): [True: 102, False: 1.05k]
  ------------------
   38|    102|    os << str.front();
   39|  1.15k|  return os << str[1] << "." << str[2] << str[3];
   40|  1.23k|}

_ZNK5Exiv28Internal10TagDetailseqEl:
   50|  10.1M|  bool operator==(int64_t key) const {
   51|  10.1M|    return key == val_;
   52|  10.1M|  }
_ZNK5Exiv28Internal16StringTagDetailseqENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   64|  31.7k|  bool operator==(std::string_view key) const {
   65|  31.7k|    return key == val_;
   66|  31.7k|  }
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13nikon2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    342|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    342|  static_assert(N > 0, "Passed zero length printTag");
  195|    342|  return printTag<N, array>(os, value.toInt64(), data);
  196|    342|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13nikon2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    342|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    342|  static_assert(N > 0, "Passed zero length printTag");
  183|    342|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 256, False: 86]
  ------------------
  184|    256|    return os << _(td->label_);
  ------------------
  |  |   40|    256|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    342|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikon2ColorModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikon2ColorModeEEEERNSt3__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: 38, False: 36]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|     74|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikon2ImageAdjustmentEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    704|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    704|  static_assert(N > 0, "Passed zero length printTag");
  195|    704|  return printTag<N, array>(os, value.toInt64(), data);
  196|    704|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikon2ImageAdjustmentEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    704|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    704|  static_assert(N > 0, "Passed zero length printTag");
  183|    704|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 450, False: 254]
  ------------------
  184|    450|    return os << _(td->label_);
  ------------------
  |  |   40|    450|#define _(String) (String)
  ------------------
  185|    254|  return os << "(" << value << ")";
  186|    704|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikon2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    860|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    860|  static_assert(N > 0, "Passed zero length printTag");
  195|    860|  return printTag<N, array>(os, value.toInt64(), data);
  196|    860|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikon2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    860|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    860|  static_assert(N > 0, "Passed zero length printTag");
  183|    860|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 516, False: 344]
  ------------------
  184|    516|    return os << _(td->label_);
  ------------------
  |  |   40|    516|#define _(String) (String)
  ------------------
  185|    344|  return os << "(" << value << ")";
  186|    860|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikon2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.00k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.00k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.00k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.00k|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikon2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.00k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.00k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.00k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 636, False: 370]
  ------------------
  184|    636|    return os << _(td->label_);
  ------------------
  |  |   40|    636|#define _(String) (String)
  ------------------
  185|    370|  return os << "(" << value << ")";
  186|  1.00k|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashCompEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashCompEEEERNSt3__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: 690, False: 134]
  ------------------
  184|    690|    return os << _(td->label_);
  ------------------
  |  |   40|    690|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    824|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonColorSpaceEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonColorSpaceEEEERNSt3__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: 86, False: 102]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    188|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    206|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    206|  static_assert(N > 0, "Passed zero length printTag");
  195|    206|  return printTag<N, array>(os, value.toInt64(), data);
  196|    206|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    206|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    206|  static_assert(N > 0, "Passed zero length printTag");
  183|    206|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 78, False: 128]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    206|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonActiveDLightingEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonActiveDLightingEEEERNSt3__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: 216, False: 74]
  ------------------
  184|    216|    return os << _(td->label_);
  ------------------
  |  |   40|    216|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    290|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9nikonOlnhEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9nikonOlnhEEEERNSt3__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: 130, False: 40]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    170|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonShutterModesEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonShutterModesEEEERNSt3__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: 230, False: 98]
  ------------------
  184|    230|    return os << _(td->label_);
  ------------------
  |  |   40|    230|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    328|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    780|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    780|  static_assert(N > 0, "Passed zero length printTag");
  195|    780|  return printTag<N, array>(os, value.toInt64(), data);
  196|    780|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    780|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    780|  static_assert(N > 0, "Passed zero length printTag");
  183|    780|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 674, False: 106]
  ------------------
  184|    674|    return os << _(td->label_);
  ------------------
  |  |   40|    674|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    780|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonAutoBracketReleaseEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonAutoBracketReleaseEEEERNSt3__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: 210, False: 44]
  ------------------
  184|    210|    return os << _(td->label_);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    254|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19nikonNefCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    900|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    900|  static_assert(N > 0, "Passed zero length printTag");
  195|    900|  return printTag<N, array>(os, value.toInt64(), data);
  196|    900|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19nikonNefCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    900|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    900|  static_assert(N > 0, "Passed zero length printTag");
  183|    900|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 390, False: 510]
  ------------------
  184|    390|    return os << _(td->label_);
  ------------------
  |  |   40|    390|#define _(String) (String)
  ------------------
  185|    510|  return os << "(" << value << ")";
  186|    900|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26nikonHighISONoiseReductionEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26nikonHighISONoiseReductionEEEERNSt3__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: 140, False: 90]
  ------------------
  184|    140|    return os << _(td->label_);
  ------------------
  |  |   40|    140|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    230|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOnOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     16|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     16|  static_assert(N > 0, "Passed zero length printTag");
  195|     16|  return printTag<N, array>(os, value.toInt64(), data);
  196|     16|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOnOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     16|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     16|  static_assert(N > 0, "Passed zero length printTag");
  183|     16|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 10]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     10|  return os << "(" << value << ")";
  186|     16|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonAdjustEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     70|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     70|  static_assert(N > 0, "Passed zero length printTag");
  195|     70|  return printTag<N, array>(os, value.toInt64(), data);
  196|     70|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonAdjustEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     70|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     70|  static_assert(N > 0, "Passed zero length printTag");
  183|     70|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 50]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|     70|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFilterEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFilterEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 32]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|     60|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 38]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|     60|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8aftOnOffEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8aftOnOffEEEERNSt3__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: 18, False: 62]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|     80|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonYesNoEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonYesNoEEEERNSt3__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: 30, False: 126]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    126|  return os << "(" << value << ")";
  186|    156|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonDateDisplayFormatEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonDateDisplayFormatEEEERNSt3__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: 14, False: 60]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|     74|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonIsoExpansionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     26|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     26|  static_assert(N > 0, "Passed zero length printTag");
  195|     26|  return printTag<N, array>(os, value.toInt64(), data);
  196|     26|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonIsoExpansionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     26|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     26|  static_assert(N > 0, "Passed zero length printTag");
  183|     26|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8, False: 18]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     26|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonAfAreaModeEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonAfAreaModeEEEERNSt3__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: 72, False: 42]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    114|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12nikonAfPointEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12nikonAfPointEEEERNSt3__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: 68, False: 40]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    108|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonPhaseDetectAFEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonPhaseDetectAFEEEERNSt3__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: 50, False: 28]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|     78|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonMultiExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|      8|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|      8|  static_assert(N > 0, "Passed zero length printTag");
  195|      8|  return printTag<N, array>(os, value.toInt64(), data);
  196|      8|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonMultiExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|      8|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|      8|  static_assert(N > 0, "Passed zero length printTag");
  183|      8|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4, False: 4]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|      4|  return os << "(" << value << ")";
  186|      8|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16nikonFlashSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    134|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    134|  static_assert(N > 0, "Passed zero length printTag");
  195|    134|  return printTag<N, array>(os, value.toInt64(), data);
  196|    134|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16nikonFlashSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    134|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    134|  static_assert(N > 0, "Passed zero length printTag");
  183|    134|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 102]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    134|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonFlashFirmwareEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonFlashFirmwareEEEERNSt3__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: 50, False: 72]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    122|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonExternalFlashFlagsEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonExternalFlashFlagsEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm81ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonFlashGNDistanceEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm81ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonFlashGNDistanceEEEERNSt3__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: 52, False: 66]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    118|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashControlModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashColorFilterEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashColorFilterEEEERNSt3__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: 28, False: 72]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    100|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFlashAWLModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFlashAWLModeEEEERNSt3__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: 26, False: 8]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|     34|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn2EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn2EEEERNSt3__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: 10, False: 32]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|     42|}
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|    134|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    134|  static_assert(N > 0, "Passed zero length printTag");
  195|    134|  return printTag<N, array>(os, value.toInt64(), data);
  196|    134|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm52ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonZMountLensIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    134|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    134|  static_assert(N > 0, "Passed zero length printTag");
  183|    134|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 100, False: 34]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    134|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L35nikonAf2AreaModeContrastDetectAfOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     58|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     58|  static_assert(N > 0, "Passed zero length printTag");
  195|     58|  return printTag<N, array>(os, value.toInt64(), data);
  196|     58|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L35nikonAf2AreaModeContrastDetectAfOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     58|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     58|  static_assert(N > 0, "Passed zero length printTag");
  183|     58|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 53, False: 5]
  ------------------
  184|     53|    return os << _(td->label_);
  ------------------
  |  |   40|     53|#define _(String) (String)
  ------------------
  185|      5|  return os << "(" << value << ")";
  186|     58|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34nikonAf2AreaModeContrastDetectAfOnEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34nikonAf2AreaModeContrastDetectAfOnEEEERNSt3__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: 6, False: 14]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|     20|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm11ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20nikonAfPointsInFocusEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    106|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    106|  static_assert(N > 0, "Passed zero length printTag");
  208|    106|  const auto val = value.toUint32();
  209|    106|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 2, False: 104]
  ------------------
  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|    106|  bool sep = false;
  215|  1.16k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.16k, False: 106]
  ------------------
  216|  1.16k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 249, False: 917]
  ------------------
  217|    249|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 149, False: 100]
  ------------------
  218|    149|        os << ", " << _(label);
  ------------------
  |  |   40|    149|#define _(String) (String)
  ------------------
  219|    149|      } else {
  220|    100|        os << _(label);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  221|    100|        sep = true;
  222|    100|      }
  223|    249|    }
  224|  1.16k|  }
  225|    106|  return os;
  226|    106|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20nikonShootingModeD70EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    162|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    162|  static_assert(N > 0, "Passed zero length printTag");
  208|    162|  const auto val = value.toUint32();
  209|    162|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 162]
  ------------------
  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|    162|  bool sep = false;
  215|  1.13k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.13k, False: 162]
  ------------------
  216|  1.13k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 393, False: 741]
  ------------------
  217|    393|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 250, False: 143]
  ------------------
  218|    250|        os << ", " << _(label);
  ------------------
  |  |   40|    250|#define _(String) (String)
  ------------------
  219|    250|      } else {
  220|    143|        os << _(label);
  ------------------
  |  |   40|    143|#define _(String) (String)
  ------------------
  221|    143|        sep = true;
  222|    143|      }
  223|    393|    }
  224|  1.13k|  }
  225|    162|  return os;
  226|    162|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L17nikonShootingModeEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    692|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    692|  static_assert(N > 0, "Passed zero length printTag");
  208|    692|  const auto val = value.toUint32();
  209|    692|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 692]
  ------------------
  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|    692|  bool sep = false;
  215|  6.22k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 6.22k, False: 692]
  ------------------
  216|  6.22k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 1.92k, False: 4.30k]
  ------------------
  217|  1.92k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 1.24k, False: 677]
  ------------------
  218|  1.24k|        os << ", " << _(label);
  ------------------
  |  |   40|  1.24k|#define _(String) (String)
  ------------------
  219|  1.24k|      } else {
  220|    677|        os << _(label);
  ------------------
  |  |   40|    677|#define _(String) (String)
  ------------------
  221|    677|        sep = true;
  222|    677|      }
  223|  1.92k|    }
  224|  6.22k|  }
  225|    692|  return os;
  226|    692|}
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: 68, False: 76]
  ------------------
  217|     68|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 28, False: 40]
  ------------------
  218|     28|        os << ", " << _(label);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  219|     40|      } else {
  220|     40|        os << _(label);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  221|     40|        sep = true;
  222|     40|      }
  223|     68|    }
  224|    144|  }
  225|     48|  return os;
  226|     48|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashControlModeEEEERNSt3__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: 268, False: 92]
  ------------------
  184|    268|    return os << _(td->label_);
  ------------------
  |  |   40|    268|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    360|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonFlashExposureCompEEEERNSt3__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: 46, False: 0]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|      0|  return os << "(" << value << ")";
  186|     46|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25nikonFlashIlluminationPatEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNewSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.99k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.99k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.99k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.99k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNewSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.99k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.99k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.99k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.73k, False: 268]
  ------------------
  184|  4.73k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.73k|#define _(String) (String)
  ------------------
  185|    268|  return os << "(" << value << ")";
  186|  4.99k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifSubfileTypeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifSubfileTypeEEEERNSt3__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: 248, False: 366]
  ------------------
  184|    248|    return os << _(td->label_);
  ------------------
  |  |   40|    248|#define _(String) (String)
  ------------------
  185|    366|  return os << "(" << value << ")";
  186|    614|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm34ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.23k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.23k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.23k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.23k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm34ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.23k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.23k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.23k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.73k, False: 502]
  ------------------
  184|  1.73k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.73k|#define _(String) (String)
  ------------------
  185|    502|  return os << "(" << value << ")";
  186|  2.23k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29exifPhotometricInterpretationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    820|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    820|  static_assert(N > 0, "Passed zero length printTag");
  195|    820|  return printTag<N, array>(os, value.toInt64(), data);
  196|    820|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29exifPhotometricInterpretationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    820|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    820|  static_assert(N > 0, "Passed zero length printTag");
  183|    820|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 578, False: 242]
  ------------------
  184|    578|    return os << _(td->label_);
  ------------------
  |  |   40|    578|#define _(String) (String)
  ------------------
  185|    242|  return os << "(" << value << ")";
  186|    820|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifThresholdingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    336|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    336|  static_assert(N > 0, "Passed zero length printTag");
  195|    336|  return printTag<N, array>(os, value.toInt64(), data);
  196|    336|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifThresholdingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    336|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    336|  static_assert(N > 0, "Passed zero length printTag");
  183|    336|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 158, False: 178]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|    178|  return os << "(" << value << ")";
  186|    336|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23exifPlanarConfigurationEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23exifPlanarConfigurationEEEERNSt3__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: 124, False: 60]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|    184|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifPredictorEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifPredictorEEEERNSt3__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: 244, False: 214]
  ------------------
  184|    244|    return os << _(td->label_);
  ------------------
  |  |   40|    244|#define _(String) (String)
  ------------------
  185|    214|  return os << "(" << value << ")";
  186|    458|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10exifInkSetEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10exifInkSetEEEERNSt3__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: 186, False: 104]
  ------------------
  184|    186|    return os << _(td->label_);
  ------------------
  |  |   40|    186|#define _(String) (String)
  ------------------
  185|    104|  return os << "(" << value << ")";
  186|    290|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifSampleFormatEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifSampleFormatEEEERNSt3__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: 266, False: 152]
  ------------------
  184|    266|    return os << _(td->label_);
  ------------------
  |  |   40|    266|#define _(String) (String)
  ------------------
  185|    152|  return os << "(" << value << ")";
  186|    418|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11exifIndexedEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11exifIndexedEEEERNSt3__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: 98, False: 84]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    182|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25exifJpegLosslessPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.77k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.77k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.77k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.77k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25exifJpegLosslessPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.77k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.77k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.77k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.27k, False: 502]
  ------------------
  184|  1.27k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.27k|#define _(String) (String)
  ------------------
  185|    502|  return os << "(" << value << ")";
  186|  1.77k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm27ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9exifFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.79k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.79k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.79k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.79k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm27ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9exifFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.79k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.79k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.79k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.15k, False: 632]
  ------------------
  184|  4.15k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.15k|#define _(String) (String)
  ------------------
  185|    632|  return os << "(" << value << ")";
  186|  4.79k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28tiffFocalPlaneResolutionUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    644|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    644|  static_assert(N > 0, "Passed zero length printTag");
  195|    644|  return printTag<N, array>(os, value.toInt64(), data);
  196|    644|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28tiffFocalPlaneResolutionUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    644|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    644|  static_assert(N > 0, "Passed zero length printTag");
  183|    644|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 264, False: 380]
  ------------------
  184|    264|    return os << _(td->label_);
  ------------------
  |  |   40|    264|#define _(String) (String)
  ------------------
  185|    380|  return os << "(" << value << ")";
  186|    644|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17tiffSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    712|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    712|  static_assert(N > 0, "Passed zero length printTag");
  195|    712|  return printTag<N, array>(os, value.toInt64(), data);
  196|    712|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17tiffSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    712|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    712|  static_assert(N > 0, "Passed zero length printTag");
  183|    712|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 522, False: 190]
  ------------------
  184|    522|    return os << _(td->label_);
  ------------------
  |  |   40|    522|#define _(String) (String)
  ------------------
  185|    190|  return os << "(" << value << ")";
  186|    712|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12dngCfaLayoutEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12dngCfaLayoutEEEERNSt3__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: 364, False: 214]
  ------------------
  184|    364|    return os << _(td->label_);
  ------------------
  |  |   40|    364|#define _(String) (String)
  ------------------
  185|    214|  return os << "(" << value << ")";
  186|    578|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngMakerNoteSafetyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    572|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    572|  static_assert(N > 0, "Passed zero length printTag");
  195|    572|  return printTag<N, array>(os, value.toInt64(), data);
  196|    572|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngMakerNoteSafetyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    572|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    572|  static_assert(N > 0, "Passed zero length printTag");
  183|    572|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 326, False: 246]
  ------------------
  184|    326|    return os << _(td->label_);
  ------------------
  |  |   40|    326|#define _(String) (String)
  ------------------
  185|    246|  return os << "(" << value << ")";
  186|    572|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24dngColorimetricReferenceEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24dngColorimetricReferenceEEEERNSt3__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: 198, False: 40]
  ------------------
  184|    198|    return os << _(td->label_);
  ------------------
  |  |   40|    198|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    238|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngProfileEmbedPolicyEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngProfileEmbedPolicyEEEERNSt3__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: 134, False: 106]
  ------------------
  184|    134|    return os << _(td->label_);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    240|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20dngPreviewColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    402|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    402|  static_assert(N > 0, "Passed zero length printTag");
  195|    402|  return printTag<N, array>(os, value.toInt64(), data);
  196|    402|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20dngPreviewColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    402|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    402|  static_assert(N > 0, "Passed zero length printTag");
  183|    402|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 320, False: 82]
  ------------------
  184|    320|    return os << _(td->label_);
  ------------------
  |  |   40|    320|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    402|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngProfileEncodingEEEERNSt3__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_L18dngProfileEncodingEEEERNSt3__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: 74, False: 38]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    112|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngDefaultBlackRenderEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngDefaultBlackRenderEEEERNSt3__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: 40, False: 22]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|     62|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14dngDepthFormatEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14dngDepthFormatEEEERNSt3__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: 104, False: 56]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    160|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13dngDepthUnitsEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13dngDepthUnitsEEEERNSt3__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: 76, False: 48]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|    124|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19dngDepthMeasureTypeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19dngDepthMeasureTypeEEEERNSt3__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: 132, False: 30]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    162|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifLensCorrectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     54|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     54|  static_assert(N > 0, "Passed zero length printTag");
  195|     54|  return printTag<N, array>(os, value.toInt64(), data);
  196|     54|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifLensCorrectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     54|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     54|  static_assert(N > 0, "Passed zero length printTag");
  183|     54|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 18]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     54|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNoiseReductionEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNoiseReductionEEEERNSt3__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: 50, False: 22]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|     72|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCompositeImageEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCompositeImageEEEERNSt3__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: 76, False: 38]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    114|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSLatitudeRefEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSLatitudeRefEEEERNSt3__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: 124, False: 130]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    254|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSLongitudeRefEEEERNSt3__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_L19exifGPSLongitudeRefEEEERNSt3__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: 88, False: 38]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    126|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm32ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.54k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.54k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.54k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.54k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm32ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.54k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.54k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.54k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.16k, False: 380]
  ------------------
  184|  2.16k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.16k|#define _(String) (String)
  ------------------
  185|    380|  return os << "(" << value << ")";
  186|  2.54k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8exifUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    422|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    422|  static_assert(N > 0, "Passed zero length printTag");
  195|    422|  return printTag<N, array>(os, value.toInt64(), data);
  196|    422|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8exifUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    422|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    422|  static_assert(N > 0, "Passed zero length printTag");
  183|    422|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 324, False: 98]
  ------------------
  184|    324|    return os << _(td->label_);
  ------------------
  |  |   40|    324|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    422|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSAltitudeRefEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSAltitudeRefEEEERNSt3__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: 124, False: 62]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    186|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSStatusEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSStatusEEEERNSt3__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: 28, False: 78]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    106|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSMeasureModeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSMeasureModeEEEERNSt3__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: 56, False: 24]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|     80|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGPSSpeedRefEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGPSSpeedRefEEEERNSt3__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: 112, False: 108]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    220|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22exifGPSDestDistanceRefEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22exifGPSDestDistanceRefEEEERNSt3__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: 126, False: 66]
  ------------------
  184|    126|    return os << _(td->label_);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    192|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSDifferentialEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSDifferentialEEEERNSt3__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: 48, False: 70]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    118|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.19k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.19k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.19k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.19k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.19k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.19k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.19k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 768, False: 430]
  ------------------
  184|    768|    return os << _(td->label_);
  ------------------
  |  |   40|    768|#define _(String) (String)
  ------------------
  185|    430|  return os << "(" << value << ")";
  186|  1.19k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifYCbCrPositioningEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    308|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    308|  static_assert(N > 0, "Passed zero length printTag");
  195|    308|  return printTag<N, array>(os, value.toInt64(), data);
  196|    308|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifYCbCrPositioningEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    308|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    308|  static_assert(N > 0, "Passed zero length printTag");
  183|    308|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 254, False: 54]
  ------------------
  184|    254|    return os << _(td->label_);
  ------------------
  |  |   40|    254|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    308|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    798|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    798|  static_assert(N > 0, "Passed zero length printTag");
  195|    798|  return printTag<N, array>(os, value.toInt64(), data);
  196|    798|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    798|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    798|  static_assert(N > 0, "Passed zero length printTag");
  183|    798|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 642, False: 156]
  ------------------
  184|    642|    return os << _(td->label_);
  ------------------
  |  |   40|    642|#define _(String) (String)
  ------------------
  185|    156|  return os << "(" << value << ")";
  186|    798|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.75k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.75k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.75k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.75k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.75k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.75k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.75k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.78k, False: 974]
  ------------------
  184|  1.78k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.78k|#define _(String) (String)
  ------------------
  185|    974|  return os << "(" << value << ")";
  186|  2.75k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifColorSpaceEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifColorSpaceEEEERNSt3__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: 236, False: 58]
  ------------------
  184|    236|    return os << _(td->label_);
  ------------------
  |  |   40|    236|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    294|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17exifSensingMethodEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17exifSensingMethodEEEERNSt3__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: 432, False: 98]
  ------------------
  184|    432|    return os << _(td->label_);
  ------------------
  |  |   40|    432|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    530|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifFileSourceEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifFileSourceEEEERNSt3__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: 62, False: 102]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    164|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifSceneTypeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifSceneTypeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCustomRenderedEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCustomRenderedEEEERNSt3__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: 146, False: 56]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    202|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifExposureModeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifExposureModeEEEERNSt3__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: 256, False: 46]
  ------------------
  184|    256|    return os << _(td->label_);
  ------------------
  |  |   40|    256|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|    302|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    414|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    414|  static_assert(N > 0, "Passed zero length printTag");
  195|    414|  return printTag<N, array>(os, value.toInt64(), data);
  196|    414|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    414|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    414|  static_assert(N > 0, "Passed zero length printTag");
  183|    414|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 190, False: 224]
  ------------------
  184|    190|    return os << _(td->label_);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  185|    224|  return os << "(" << value << ")";
  186|    414|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifSceneCaptureTypeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifSceneCaptureTypeEEEERNSt3__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: 366, False: 248]
  ------------------
  184|    366|    return os << _(td->label_);
  ------------------
  |  |   40|    366|#define _(String) (String)
  ------------------
  185|    248|  return os << "(" << value << ")";
  186|    614|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGainControlEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGainControlEEEERNSt3__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: 464, False: 146]
  ------------------
  184|    464|    return os << _(td->label_);
  ------------------
  |  |   40|    464|#define _(String) (String)
  ------------------
  185|    146|  return os << "(" << value << ")";
  186|    610|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifSaturationEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifSaturationEEEERNSt3__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: 186, False: 200]
  ------------------
  184|    186|    return os << _(td->label_);
  ------------------
  |  |   40|    186|#define _(String) (String)
  ------------------
  185|    200|  return os << "(" << value << ")";
  186|    386|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24exifSubjectDistanceRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    266|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    266|  static_assert(N > 0, "Passed zero length printTag");
  195|    266|  return printTag<N, array>(os, value.toInt64(), data);
  196|    266|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24exifSubjectDistanceRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    266|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    266|  static_assert(N > 0, "Passed zero length printTag");
  183|    266|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 186, False: 80]
  ------------------
  184|    186|    return os << _(td->label_);
  ------------------
  |  |   40|    186|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    266|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSDirRefEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSDirRefEEEERNSt3__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: 96, False: 32]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    128|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNormalSoftHardEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNormalSoftHardEEEERNSt3__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: 244, False: 36]
  ------------------
  184|    244|    return os << _(td->label_);
  ------------------
  |  |   40|    244|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    280|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm533ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     37|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     37|  static_assert(N > 0, "Passed zero length printTag");
  195|     37|  return printTag<N, array>(os, value.toInt64(), data);
  196|     37|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm533ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     37|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     37|  static_assert(N > 0, "Passed zero length printTag");
  183|     37|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 37, False: 0]
  ------------------
  184|     37|    return os << _(td->label_);
  ------------------
  |  |   40|     37|#define _(String) (String)
  ------------------
  185|      0|  return os << "(" << value << ")";
  186|     37|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm357ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    256|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    256|  static_assert(N > 0, "Passed zero length printTag");
  195|    256|  return printTag<N, array>(os, value.toInt64(), data);
  196|    256|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm357ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    256|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    256|  static_assert(N > 0, "Passed zero length printTag");
  183|    256|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 128, False: 128]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    256|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSerialNumberFormatEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSerialNumberFormatEEEERNSt3__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: 56, False: 20]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     76|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonSuperMacroEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonSuperMacroEEEERNSt3__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: 146, False: 244]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|    244|  return os << "(" << value << ")";
  186|    390|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonDateStampModeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonDateStampModeEEEERNSt3__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: 160, False: 68]
  ------------------
  184|    160|    return os << _(td->label_);
  ------------------
  |  |   40|    160|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    228|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonColorSpaceEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonColorSpaceEEEERNSt3__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: 40, False: 108]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    148|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.07k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.07k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.07k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.07k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.07k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.07k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.07k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 880, False: 198]
  ------------------
  184|    880|    return os << _(td->label_);
  ------------------
  |  |   40|    880|#define _(String) (String)
  ------------------
  185|    198|  return os << "(" << value << ")";
  186|  1.07k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonPictureStyleEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonPictureStyleEEEERNSt3__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: 210, False: 100]
  ------------------
  184|    210|    return os << _(td->label_);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    310|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonSiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    444|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    444|  static_assert(N > 0, "Passed zero length printTag");
  195|    444|  return printTag<N, array>(os, value.toInt64(), data);
  196|    444|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonSiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    444|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    444|  static_assert(N > 0, "Passed zero length printTag");
  183|    444|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 144, False: 300]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|    300|  return os << "(" << value << ")";
  186|    444|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonAFMicroAdjModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     14|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     14|  static_assert(N > 0, "Passed zero length printTag");
  195|     14|  return printTag<N, array>(os, value.toInt64(), data);
  196|     14|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonAFMicroAdjModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     14|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     14|  static_assert(N > 0, "Passed zero length printTag");
  183|     14|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 8]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|     14|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.17k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.17k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.17k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.17k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.17k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.17k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.17k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 130, False: 1.04k]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|  1.04k|  return os << "(" << value << ")";
  186|  1.17k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAutoLightingOptimizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    136|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    136|  static_assert(N > 0, "Passed zero length printTag");
  195|    136|  return printTag<N, array>(os, value.toInt64(), data);
  196|    136|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAutoLightingOptimizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    136|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    136|  static_assert(N > 0, "Passed zero length printTag");
  183|    136|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8, False: 128]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    136|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    134|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    134|  static_assert(N > 0, "Passed zero length printTag");
  195|    134|  return printTag<N, array>(os, value.toInt64(), data);
  196|    134|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    134|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    134|  static_assert(N > 0, "Passed zero length printTag");
  183|    134|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 116]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    134|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonHighISONoiseReductionEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonHighISONoiseReductionEEEERNSt3__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: 18, False: 108]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    126|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonDigitalLensOptimizerEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonDigitalLensOptimizerEEEERNSt3__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: 18, False: 108]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    126|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonDualPixelRawEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonDualPixelRawEEEERNSt3__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: 12, False: 114]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    126|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAmbienceSelectionEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAmbienceSelectionEEEERNSt3__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: 18, False: 76]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|     94|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonMultiExposureEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonMultiExposureEEEERNSt3__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: 22, False: 118]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|    118|  return os << "(" << value << ")";
  186|    140|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonMultiExposureControlEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonMultiExposureControlEEEERNSt3__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: 8, False: 72]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|     80|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonFilterInfoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     32|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     32|  static_assert(N > 0, "Passed zero length printTag");
  195|     32|  return printTag<N, array>(os, value.toInt64(), data);
  196|     32|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonFilterInfoEEEERNSt3__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: 6, False: 26]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     32|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonMiniatureFilterOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|      6|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|      6|  static_assert(N > 0, "Passed zero length printTag");
  195|      6|  return printTag<N, array>(os, value.toInt64(), data);
  196|      6|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonMiniatureFilterOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|      6|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|      6|  static_assert(N > 0, "Passed zero length printTag");
  183|      6|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4, False: 2]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|      2|  return os << "(" << value << ")";
  186|      6|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8canonHdrEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     84|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     84|  static_assert(N > 0, "Passed zero length printTag");
  195|     84|  return printTag<N, array>(os, value.toInt64(), data);
  196|     84|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8canonHdrEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     84|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     84|  static_assert(N > 0, "Passed zero length printTag");
  183|     84|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 72]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|     84|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonHdrEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     84|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     84|  static_assert(N > 0, "Passed zero length printTag");
  195|     84|  return printTag<N, array>(os, value.toInt64(), data);
  196|     84|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonHdrEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     84|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     84|  static_assert(N > 0, "Passed zero length printTag");
  183|     84|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 72]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|     84|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAIServoFirstImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    406|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    406|  static_assert(N > 0, "Passed zero length printTag");
  195|    406|  return printTag<N, array>(os, value.toInt64(), data);
  196|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAIServoFirstImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    406|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    406|  static_assert(N > 0, "Passed zero length printTag");
  183|    406|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 370]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    370|  return os << "(" << value << ")";
  186|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAIServoSecondImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    406|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    406|  static_assert(N > 0, "Passed zero length printTag");
  195|    406|  return printTag<N, array>(os, value.toInt64(), data);
  196|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAIServoSecondImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    406|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    406|  static_assert(N > 0, "Passed zero length printTag");
  183|    406|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 52, False: 354]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|    354|  return os << "(" << value << ")";
  186|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonUSMLensElectronicMFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    406|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    406|  static_assert(N > 0, "Passed zero length printTag");
  195|    406|  return printTag<N, array>(os, value.toInt64(), data);
  196|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonUSMLensElectronicMFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    406|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    406|  static_assert(N > 0, "Passed zero length printTag");
  183|    406|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 366]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    366|  return os << "(" << value << ")";
  186|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonAFAssistBeamEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    406|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    406|  static_assert(N > 0, "Passed zero length printTag");
  195|    406|  return printTag<N, array>(os, value.toInt64(), data);
  196|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonAFAssistBeamEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    406|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    406|  static_assert(N > 0, "Passed zero length printTag");
  183|    406|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 368]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|    368|  return os << "(" << value << ")";
  186|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21canonOneShotAFReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    406|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    406|  static_assert(N > 0, "Passed zero length printTag");
  195|    406|  return printTag<N, array>(os, value.toInt64(), data);
  196|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21canonOneShotAFReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    406|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    406|  static_assert(N > 0, "Passed zero length printTag");
  183|    406|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 378]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    378|  return os << "(" << value << ")";
  186|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAutoAFPointSelEOSiTRAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    406|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    406|  static_assert(N > 0, "Passed zero length printTag");
  195|    406|  return printTag<N, array>(os, value.toInt64(), data);
  196|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAutoAFPointSelEOSiTRAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    406|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    406|  static_assert(N > 0, "Passed zero length printTag");
  183|    406|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 366]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    366|  return os << "(" << value << ")";
  186|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonLensDriveWhenAFImpossibleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    406|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    406|  static_assert(N > 0, "Passed zero length printTag");
  195|    406|  return printTag<N, array>(os, value.toInt64(), data);
  196|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonLensDriveWhenAFImpossibleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    406|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    406|  static_assert(N > 0, "Passed zero length printTag");
  183|    406|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 352]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|    352|  return os << "(" << value << ")";
  186|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonSelectAFAreaSelectionModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    388|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    388|  static_assert(N > 0, "Passed zero length printTag");
  195|    388|  return printTag<N, array>(os, value.toInt64(), data);
  196|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonSelectAFAreaSelectionModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    388|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    388|  static_assert(N > 0, "Passed zero length printTag");
  183|    388|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 340]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|    340|  return os << "(" << value << ")";
  186|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAFAreaSelectionMethodEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAFAreaSelectionMethodEEEERNSt3__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: 36, False: 350]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    350|  return os << "(" << value << ")";
  186|    386|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonOrientationLinkedAFEEEERNSt3__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_L24canonOrientationLinkedAFEEEERNSt3__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: 34, False: 350]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    350|  return os << "(" << value << ")";
  186|    384|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28canonManualAFPointSelPatternEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    374|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    374|  static_assert(N > 0, "Passed zero length printTag");
  195|    374|  return printTag<N, array>(os, value.toInt64(), data);
  196|    374|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28canonManualAFPointSelPatternEEEERNSt3__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: 38, False: 336]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|    336|  return os << "(" << value << ")";
  186|    374|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonAFPointDisplayDuringFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    374|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    374|  static_assert(N > 0, "Passed zero length printTag");
  195|    374|  return printTag<N, array>(os, value.toInt64(), data);
  196|    374|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonAFPointDisplayDuringFocusEEEERNSt3__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: 30, False: 344]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    344|  return os << "(" << value << ")";
  186|    374|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAVFDisplayIlluminationEEEERNSt3__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_L27canonAVFDisplayIlluminationEEEERNSt3__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: 22, False: 350]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|    350|  return os << "(" << value << ")";
  186|    372|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAFStatusViewfinderEEEERNSt3__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_L23canonAFStatusViewfinderEEEERNSt3__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: 26, False: 346]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    346|  return os << "(" << value << ")";
  186|    372|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonInitialAFPointInServoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    334|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    334|  static_assert(N > 0, "Passed zero length printTag");
  195|    334|  return printTag<N, array>(os, value.toInt64(), data);
  196|    334|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonInitialAFPointInServoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    334|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    334|  static_assert(N > 0, "Passed zero length printTag");
  183|    334|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 308]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    308|  return os << "(" << value << ")";
  186|    334|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonCsMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.24k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.24k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.24k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.24k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonCsMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.24k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.24k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.24k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 4.21k]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|  4.21k|  return os << "(" << value << ")";
  186|  4.24k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.71k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.71k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.71k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.71k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.71k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.71k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.71k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 576, False: 4.13k]
  ------------------
  184|    576|    return os << _(td->label_);
  ------------------
  |  |   40|    576|#define _(String) (String)
  ------------------
  185|  4.13k|  return os << "(" << value << ")";
  186|  4.71k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.22k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.22k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.22k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.22k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.22k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.22k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.22k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.62k, False: 2.60k]
  ------------------
  184|  1.62k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.62k|#define _(String) (String)
  ------------------
  185|  2.60k|  return os << "(" << value << ")";
  186|  4.22k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsDriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.22k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.22k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.22k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.22k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsDriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.22k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.22k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.22k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 424, False: 3.80k]
  ------------------
  184|    424|    return os << _(td->label_);
  ------------------
  |  |   40|    424|#define _(String) (String)
  ------------------
  185|  3.80k|  return os << "(" << value << ")";
  186|  4.22k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.22k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.22k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.22k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.22k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.22k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.22k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.22k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.40k, False: 820]
  ------------------
  184|  3.40k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.40k|#define _(String) (String)
  ------------------
  185|    820|  return os << "(" << value << ")";
  186|  4.22k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonCsRecordModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.21k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.21k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.21k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.21k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonCsRecordModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.21k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.21k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.21k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 184, False: 4.03k]
  ------------------
  184|    184|    return os << _(td->label_);
  ------------------
  |  |   40|    184|#define _(String) (String)
  ------------------
  185|  4.03k|  return os << "(" << value << ")";
  186|  4.21k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.21k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.21k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.21k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.21k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.21k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.21k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.21k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.66k, False: 2.55k]
  ------------------
  184|  1.66k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.66k|#define _(String) (String)
  ------------------
  185|  2.55k|  return os << "(" << value << ")";
  186|  4.21k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsEasyModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.21k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.21k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.21k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.21k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsEasyModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.21k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.21k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.21k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.63k, False: 584]
  ------------------
  184|  3.63k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.63k|#define _(String) (String)
  ------------------
  185|    584|  return os << "(" << value << ")";
  186|  4.21k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.21k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.21k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.21k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.21k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.21k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.21k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.21k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.27k, False: 940]
  ------------------
  184|  3.27k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.27k|#define _(String) (String)
  ------------------
  185|    940|  return os << "(" << value << ")";
  186|  4.21k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonCsLnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  12.6k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  12.6k|  static_assert(N > 0, "Passed zero length printTag");
  195|  12.6k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  12.6k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonCsLnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  12.6k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  12.6k|  static_assert(N > 0, "Passed zero length printTag");
  183|  12.6k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.07k, False: 8.52k]
  ------------------
  184|  4.07k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.07k|#define _(String) (String)
  ------------------
  185|  8.52k|  return os << "(" << value << ")";
  186|  12.6k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsISOSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.19k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.19k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.19k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.19k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsISOSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.19k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.19k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.19k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 972, False: 3.22k]
  ------------------
  184|    972|    return os << _(td->label_);
  ------------------
  |  |   40|    972|#define _(String) (String)
  ------------------
  185|  3.22k|  return os << "(" << value << ")";
  186|  4.19k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonCsMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.18k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.18k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonCsMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.18k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.18k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.38k, False: 2.80k]
  ------------------
  184|  1.38k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.38k|#define _(String) (String)
  ------------------
  185|  2.80k|  return os << "(" << value << ")";
  186|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.18k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.18k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.18k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.18k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.07k, False: 2.11k]
  ------------------
  184|  2.07k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.07k|#define _(String) (String)
  ------------------
  185|  2.11k|  return os << "(" << value << ")";
  186|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.18k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.18k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.18k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.18k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 62, False: 4.12k]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|  4.12k|  return os << "(" << value << ")";
  186|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.10k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.10k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.10k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.10k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.10k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.10k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.10k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.59k, False: 1.50k]
  ------------------
  184|  2.59k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.59k|#define _(String) (String)
  ------------------
  185|  1.50k|  return os << "(" << value << ")";
  186|  4.10k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20canonCsFlashActivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.00k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.00k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.00k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.00k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20canonCsFlashActivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.00k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.00k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.00k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 402, False: 3.60k]
  ------------------
  184|    402|    return os << _(td->label_);
  ------------------
  |  |   40|    402|#define _(String) (String)
  ------------------
  185|  3.60k|  return os << "(" << value << ")";
  186|  4.00k|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L19canonCsFlashDetailsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|  3.98k|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|  3.98k|  static_assert(N > 0, "Passed zero length printTag");
  208|  3.98k|  const auto val = value.toUint32();
  209|  3.98k|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 1.73k, False: 2.25k]
  ------------------
  210|  1.73k|    auto [mask, label] = *array;
  211|  1.73k|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 1.73k]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|  1.73k|  }
  214|  3.98k|  bool sep = false;
  215|  35.8k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 35.8k, False: 3.98k]
  ------------------
  216|  35.8k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 10.0k, False: 25.7k]
  ------------------
  217|  10.0k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 7.88k, False: 2.19k]
  ------------------
  218|  7.88k|        os << ", " << _(label);
  ------------------
  |  |   40|  7.88k|#define _(String) (String)
  ------------------
  219|  7.88k|      } else {
  220|  2.19k|        os << _(label);
  ------------------
  |  |   40|  2.19k|#define _(String) (String)
  ------------------
  221|  2.19k|        sep = true;
  222|  2.19k|      }
  223|  10.0k|    }
  224|  35.8k|  }
  225|  3.98k|  return os;
  226|  3.98k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsFocusContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.93k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.93k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.93k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.93k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsFocusContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.93k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.93k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.93k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.77k, False: 2.16k]
  ------------------
  184|  1.77k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.77k|#define _(String) (String)
  ------------------
  185|  2.16k|  return os << "(" << value << ")";
  186|  3.93k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsAESettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.93k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.93k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.93k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.93k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsAESettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.93k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.93k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.93k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.05k, False: 878]
  ------------------
  184|  3.05k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.05k|#define _(String) (String)
  ------------------
  185|    878|  return os << "(" << value << ")";
  186|  3.93k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonCsImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.93k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.93k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.93k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.93k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonCsImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.93k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.93k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.93k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.78k, False: 2.15k]
  ------------------
  184|  1.78k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.78k|#define _(String) (String)
  ------------------
  185|  2.15k|  return os << "(" << value << ")";
  186|  3.93k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonCsSpotMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.84k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.84k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.84k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.84k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonCsSpotMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.84k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.84k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.84k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.04k, False: 800]
  ------------------
  184|  3.04k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.04k|#define _(String) (String)
  ------------------
  185|    800|  return os << "(" << value << ")";
  186|  3.84k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsPhotoEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.84k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.84k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.84k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.84k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsPhotoEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.84k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.84k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.84k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.54k, False: 2.29k]
  ------------------
  184|  1.54k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.54k|#define _(String) (String)
  ------------------
  185|  2.29k|  return os << "(" << value << ")";
  186|  3.84k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsSRAWQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.44k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.44k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.44k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.44k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsSRAWQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.44k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.44k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.44k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.22k, False: 1.22k]
  ------------------
  184|  3.22k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.22k|#define _(String) (String)
  ------------------
  185|  1.22k|  return os << "(" << value << ")";
  186|  4.44k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11slowShutterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    392|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    392|  static_assert(N > 0, "Passed zero length printTag");
  195|    392|  return printTag<N, array>(os, value.toInt64(), data);
  196|    392|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11slowShutterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    392|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    392|  static_assert(N > 0, "Passed zero length printTag");
  183|    392|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 102, False: 290]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    290|  return os << "(" << value << ")";
  186|    392|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonSiFlashBiasEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonSiFlashBiasEEEERNSt3__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: 108, False: 282]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    282|  return os << "(" << value << ")";
  186|    390|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22autoExposureBracketingEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22autoExposureBracketingEEEERNSt3__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: 130, False: 260]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|    260|  return os << "(" << value << ")";
  186|    390|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10cameraTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    308|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    308|  static_assert(N > 0, "Passed zero length printTag");
  195|    308|  return printTag<N, array>(os, value.toInt64(), data);
  196|    308|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10cameraTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    308|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    308|  static_assert(N > 0, "Passed zero length printTag");
  183|    308|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 198]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    198|  return os << "(" << value << ")";
  186|    308|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10autoRotateEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10autoRotateEEEERNSt3__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: 56, False: 234]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    234|  return os << "(" << value << ")";
  186|    290|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8ndRotateEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8ndRotateEEEERNSt3__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: 108, False: 182]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    182|  return os << "(" << value << ")";
  186|    290|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10selfTimer2EEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10selfTimer2EEEERNSt3__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: 82, False: 198]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|    198|  return os << "(" << value << ")";
  186|    280|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonPaDirectionEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonPaDirectionEEEERNSt3__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: 12, False: 22]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|     34|}
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: 8, False: 128]
  ------------------
  210|      8|    auto [mask, label] = *array;
  211|      8|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 8]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      8|  }
  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: 406, False: 546]
  ------------------
  217|    406|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 280, False: 126]
  ------------------
  218|    280|        os << ", " << _(label);
  ------------------
  |  |   40|    280|#define _(String) (String)
  ------------------
  219|    280|      } else {
  220|    126|        os << _(label);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  221|    126|        sep = true;
  222|    126|      }
  223|    406|    }
  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: 2, False: 134]
  ------------------
  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|    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: 460, False: 764]
  ------------------
  217|    460|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 330, False: 130]
  ------------------
  218|    330|        os << ", " << _(label);
  ------------------
  |  |   40|    330|#define _(String) (String)
  ------------------
  219|    330|      } else {
  220|    130|        os << _(label);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  221|    130|        sep = true;
  222|    130|      }
  223|    460|    }
  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|    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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonBracketModeEEEERNSt3__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: 102, False: 430]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    430|  return os << "(" << value << ")";
  186|    532|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRawJpgSizeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRawJpgSizeEEEERNSt3__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: 218, False: 258]
  ------------------
  184|    218|    return os << _(td->label_);
  ------------------
  |  |   40|    218|#define _(String) (String)
  ------------------
  185|    258|  return os << "(" << value << ")";
  186|    476|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonNoiseReductionEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonNoiseReductionEEEERNSt3__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: 130, False: 346]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|    346|  return os << "(" << value << ")";
  186|    476|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonWBBracketModeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonWBBracketModeEEEERNSt3__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: 144, False: 332]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|    332|  return os << "(" << value << ")";
  186|    476|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonFilterEffectEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonFilterEffectEEEERNSt3__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: 136, False: 340]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|    340|  return os << "(" << value << ")";
  186|    476|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    460|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    460|  static_assert(N > 0, "Passed zero length printTag");
  195|    460|  return printTag<N, array>(os, value.toInt64(), data);
  196|    460|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    460|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    460|  static_assert(N > 0, "Passed zero length printTag");
  183|    460|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 134, False: 326]
  ------------------
  184|    134|    return os << _(td->label_);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  185|    326|  return os << "(" << value << ")";
  186|    460|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonShutterModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    314|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    314|  static_assert(N > 0, "Passed zero length printTag");
  195|    314|  return printTag<N, array>(os, value.toInt64(), data);
  196|    314|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonShutterModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    314|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    314|  static_assert(N > 0, "Passed zero length printTag");
  183|    314|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 266]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|    266|  return os << "(" << value << ")";
  186|    314|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRFLensTypeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRFLensTypeEEEERNSt3__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: 30, False: 172]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    172|  return os << "(" << value << ")";
  186|    202|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonToneCurveEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonToneCurveEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSharpnessFrequencyEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSharpnessFrequencyEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm35ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonTimeZoneCityEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm35ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonTimeZoneCityEEEERNSt3__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: 90, False: 204]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    204|  return os << "(" << value << ")";
  186|    294|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm3ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L18canonSiAFPointUsedEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    330|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    330|  static_assert(N > 0, "Passed zero length printTag");
  208|    330|  const auto val = value.toUint32();
  209|    330|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 330]
  ------------------
  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|    330|  bool sep = false;
  215|    990|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 990, False: 330]
  ------------------
  216|    990|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 452, False: 538]
  ------------------
  217|    452|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 206, False: 246]
  ------------------
  218|    206|        os << ", " << _(label);
  ------------------
  |  |   40|    206|#define _(String) (String)
  ------------------
  219|    246|      } else {
  220|    246|        os << _(label);
  ------------------
  |  |   40|    246|#define _(String) (String)
  ------------------
  221|    246|        sep = true;
  222|    246|      }
  223|    452|    }
  224|    990|  }
  225|    330|  return os;
  226|    330|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casioRecordingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    734|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    734|  static_assert(N > 0, "Passed zero length printTag");
  195|    734|  return printTag<N, array>(os, value.toInt64(), data);
  196|    734|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casioRecordingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    734|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    734|  static_assert(N > 0, "Passed zero length printTag");
  183|    734|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 594, False: 140]
  ------------------
  184|    594|    return os << _(td->label_);
  ------------------
  |  |   40|    594|#define _(String) (String)
  ------------------
  185|    140|  return os << "(" << value << ")";
  186|    734|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casioQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    366|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    366|  static_assert(N > 0, "Passed zero length printTag");
  195|    366|  return printTag<N, array>(os, value.toInt64(), data);
  196|    366|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casioQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    366|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    366|  static_assert(N > 0, "Passed zero length printTag");
  183|    366|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 118, False: 248]
  ------------------
  184|    118|    return os << _(td->label_);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  185|    248|  return os << "(" << value << ")";
  186|    366|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    300|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    300|  static_assert(N > 0, "Passed zero length printTag");
  195|    300|  return printTag<N, array>(os, value.toInt64(), data);
  196|    300|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    300|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    300|  static_assert(N > 0, "Passed zero length printTag");
  183|    300|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 178, False: 122]
  ------------------
  184|    178|    return os << _(td->label_);
  ------------------
  |  |   40|    178|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    300|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    472|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    472|  static_assert(N > 0, "Passed zero length printTag");
  195|    472|  return printTag<N, array>(os, value.toInt64(), data);
  196|    472|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    472|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    472|  static_assert(N > 0, "Passed zero length printTag");
  183|    472|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 284, False: 188]
  ------------------
  184|    284|    return os << _(td->label_);
  ------------------
  |  |   40|    284|#define _(String) (String)
  ------------------
  185|    188|  return os << "(" << value << ")";
  186|    472|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioFlashIntensityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    682|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    682|  static_assert(N > 0, "Passed zero length printTag");
  195|    682|  return printTag<N, array>(os, value.toInt64(), data);
  196|    682|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioFlashIntensityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    682|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    682|  static_assert(N > 0, "Passed zero length printTag");
  183|    682|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 260, False: 422]
  ------------------
  184|    260|    return os << _(td->label_);
  ------------------
  |  |   40|    260|#define _(String) (String)
  ------------------
  185|    422|  return os << "(" << value << ")";
  186|    682|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casioWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    830|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    830|  static_assert(N > 0, "Passed zero length printTag");
  195|    830|  return printTag<N, array>(os, value.toInt64(), data);
  196|    830|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casioWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    830|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    830|  static_assert(N > 0, "Passed zero length printTag");
  183|    830|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 434, False: 396]
  ------------------
  184|    434|    return os << _(td->label_);
  ------------------
  |  |   40|    434|#define _(String) (String)
  ------------------
  185|    396|  return os << "(" << value << ")";
  186|    830|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    180|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    180|  static_assert(N > 0, "Passed zero length printTag");
  195|    180|  return printTag<N, array>(os, value.toInt64(), data);
  196|    180|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    180|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    180|  static_assert(N > 0, "Passed zero length printTag");
  183|    180|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 104, False: 76]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    180|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    136|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    136|  static_assert(N > 0, "Passed zero length printTag");
  195|    136|  return printTag<N, array>(os, value.toInt64(), data);
  196|    136|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    136|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    136|  static_assert(N > 0, "Passed zero length printTag");
  183|    136|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 44]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    136|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casioContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    378|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    378|  static_assert(N > 0, "Passed zero length printTag");
  195|    378|  return printTag<N, array>(os, value.toInt64(), data);
  196|    378|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casioContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    378|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    378|  static_assert(N > 0, "Passed zero length printTag");
  183|    378|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 306, False: 72]
  ------------------
  184|    306|    return os << _(td->label_);
  ------------------
  |  |   40|    306|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    378|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casioSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    604|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    604|  static_assert(N > 0, "Passed zero length printTag");
  195|    604|  return printTag<N, array>(os, value.toInt64(), data);
  196|    604|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casioSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    604|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    604|  static_assert(N > 0, "Passed zero length printTag");
  183|    604|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 302, False: 302]
  ------------------
  184|    302|    return os << _(td->label_);
  ------------------
  |  |   40|    302|#define _(String) (String)
  ------------------
  185|    302|  return os << "(" << value << ")";
  186|    604|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioEnhancementEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioEnhancementEEEERNSt3__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: 102, False: 226]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    226|  return os << "(" << value << ")";
  186|    328|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    306|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    306|  static_assert(N > 0, "Passed zero length printTag");
  195|    306|  return printTag<N, array>(os, value.toInt64(), data);
  196|    306|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    306|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    306|  static_assert(N > 0, "Passed zero length printTag");
  183|    306|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 216, False: 90]
  ------------------
  184|    216|    return os << _(td->label_);
  ------------------
  |  |   40|    216|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    306|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20casioFlashIntensity2EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20casioFlashIntensity2EEEERNSt3__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: 146, False: 82]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    228|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioCCDSensitivityEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioCCDSensitivityEEEERNSt3__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: 188, False: 84]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    272|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2QualityModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    204|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    204|  static_assert(N > 0, "Passed zero length printTag");
  195|    204|  return printTag<N, array>(os, value.toInt64(), data);
  196|    204|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2QualityModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    204|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    204|  static_assert(N > 0, "Passed zero length printTag");
  183|    204|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 102, False: 102]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    204|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ImageSizeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ImageSizeEEEERNSt3__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: 304, False: 46]
  ------------------
  184|    304|    return os << _(td->label_);
  ------------------
  |  |   40|    304|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|    350|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2FocusModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2FocusModeEEEERNSt3__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: 108, False: 80]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    188|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2IsoSpeedEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2IsoSpeedEEEERNSt3__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: 148, False: 206]
  ------------------
  184|    148|    return os << _(td->label_);
  ------------------
  |  |   40|    148|#define _(String) (String)
  ------------------
  185|    206|  return os << "(" << value << ")";
  186|    354|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2WhiteBalanceEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2WhiteBalanceEEEERNSt3__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: 250, False: 72]
  ------------------
  184|    250|    return os << _(td->label_);
  ------------------
  |  |   40|    250|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    322|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2SaturationEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2SaturationEEEERNSt3__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: 188, False: 70]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    258|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2ContrastEEEERNSt3__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_L14casio2ContrastEEEERNSt3__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: 216, False: 24]
  ------------------
  184|    216|    return os << _(td->label_);
  ------------------
  |  |   40|    216|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|    240|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2SharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    332|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    332|  static_assert(N > 0, "Passed zero length printTag");
  195|    332|  return printTag<N, array>(os, value.toInt64(), data);
  196|    332|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2SharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    332|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    332|  static_assert(N > 0, "Passed zero length printTag");
  183|    332|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 250, False: 82]
  ------------------
  184|    250|    return os << _(td->label_);
  ------------------
  |  |   40|    250|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    332|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casio2WhiteBalance2EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casio2WhiteBalance2EEEERNSt3__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: 242, False: 44]
  ------------------
  184|    242|    return os << _(td->label_);
  ------------------
  |  |   40|    242|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    286|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ReleaseModeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ReleaseModeEEEERNSt3__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: 126, False: 70]
  ------------------
  184|    126|    return os << _(td->label_);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    196|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    134|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    134|  static_assert(N > 0, "Passed zero length printTag");
  195|    134|  return printTag<N, array>(os, value.toInt64(), data);
  196|    134|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    134|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    134|  static_assert(N > 0, "Passed zero length printTag");
  183|    134|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 94, False: 40]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    134|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2FocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    394|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    394|  static_assert(N > 0, "Passed zero length printTag");
  195|    394|  return printTag<N, array>(os, value.toInt64(), data);
  196|    394|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2FocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    394|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    394|  static_assert(N > 0, "Passed zero length printTag");
  183|    394|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 304, False: 90]
  ------------------
  184|    304|    return os << _(td->label_);
  ------------------
  |  |   40|    304|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    394|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2AutoISOEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2AutoISOEEEERNSt3__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: 152, False: 94]
  ------------------
  184|    152|    return os << _(td->label_);
  ------------------
  |  |   40|    152|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    246|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casio2AFModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casio2AFModeEEEERNSt3__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: 144, False: 40]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    184|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ColorModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ColorModeEEEERNSt3__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: 92, False: 54]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    146|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2EnhancementEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2EnhancementEEEERNSt3__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: 90, False: 20]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|    110|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ColorFilterEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ColorFilterEEEERNSt3__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: 132, False: 18]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|    150|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2ArtModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    546|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    546|  static_assert(N > 0, "Passed zero length printTag");
  195|    546|  return printTag<N, array>(os, value.toInt64(), data);
  196|    546|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2ArtModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    546|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    546|  static_assert(N > 0, "Passed zero length printTag");
  183|    546|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 488, False: 58]
  ------------------
  184|    488|    return os << _(td->label_);
  ------------------
  |  |   40|    488|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    546|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2LightingModeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2LightingModeEEEERNSt3__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: 38, False: 74]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    112|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21casio2PortraitRefinerEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21casio2PortraitRefinerEEEERNSt3__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: 164, False: 80]
  ------------------
  184|    164|    return os << _(td->label_);
  ------------------
  |  |   40|    164|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    244|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26casio2SpecialEffectSettingEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26casio2SpecialEffectSettingEEEERNSt3__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: 204, False: 66]
  ------------------
  184|    204|    return os << _(td->label_);
  ------------------
  |  |   40|    204|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    270|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2DriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    652|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    652|  static_assert(N > 0, "Passed zero length printTag");
  195|    652|  return printTag<N, array>(os, value.toInt64(), data);
  196|    652|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2DriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    652|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    652|  static_assert(N > 0, "Passed zero length printTag");
  183|    652|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 618, False: 34]
  ------------------
  184|    618|    return os << _(td->label_);
  ------------------
  |  |   40|    618|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    652|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2VideoQualityEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2VideoQualityEEEERNSt3__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: 86, False: 16]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|     16|  return os << "(" << value << ")";
  186|    102|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiSharpnessEEEERNSt3__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_L13fujiSharpnessEEEERNSt3__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: 156, False: 130]
  ------------------
  184|    156|    return os << _(td->label_);
  ------------------
  |  |   40|    156|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    286|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    876|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    876|  static_assert(N > 0, "Passed zero length printTag");
  195|    876|  return printTag<N, array>(os, value.toInt64(), data);
  196|    876|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    876|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    876|  static_assert(N > 0, "Passed zero length printTag");
  183|    876|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 464, False: 412]
  ------------------
  184|    464|    return os << _(td->label_);
  ------------------
  |  |   40|    464|#define _(String) (String)
  ------------------
  185|    412|  return os << "(" << value << ")";
  186|    876|}
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: 182, False: 348]
  ------------------
  184|    182|    return os << _(td->label_);
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
  185|    348|  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: 98, False: 262]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|    262|  return os << "(" << value << ")";
  186|    360|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    266|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    266|  static_assert(N > 0, "Passed zero length printTag");
  195|    266|  return printTag<N, array>(os, value.toInt64(), data);
  196|    266|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    266|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    266|  static_assert(N > 0, "Passed zero length printTag");
  183|    266|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 72, False: 194]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|    194|  return os << "(" << value << ")";
  186|    266|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    312|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    312|  static_assert(N > 0, "Passed zero length printTag");
  195|    312|  return printTag<N, array>(os, value.toInt64(), data);
  196|    312|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    312|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    312|  static_assert(N > 0, "Passed zero length printTag");
  183|    312|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 44, False: 268]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    268|  return os << "(" << value << ")";
  186|    312|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiHighIsoNREEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    296|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    296|  static_assert(N > 0, "Passed zero length printTag");
  195|    296|  return printTag<N, array>(os, value.toInt64(), data);
  196|    296|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiHighIsoNREEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    296|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    296|  static_assert(N > 0, "Passed zero length printTag");
  183|    296|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 174]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|    174|  return os << "(" << value << ")";
  186|    296|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiClarityEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiClarityEEEERNSt3__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: 34, False: 212]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    212|  return os << "(" << value << ")";
  186|    246|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    260|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    260|  static_assert(N > 0, "Passed zero length printTag");
  195|    260|  return printTag<N, array>(os, value.toInt64(), data);
  196|    260|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    260|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    260|  static_assert(N > 0, "Passed zero length printTag");
  183|    260|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 108, False: 152]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    152|  return os << "(" << value << ")";
  186|    260|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiOffOnEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiOffOnEEEERNSt3__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: 84, False: 202]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|    202|  return os << "(" << value << ")";
  186|    286|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusModeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusModeEEEERNSt3__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: 52, False: 60]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|    112|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusAreaEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusAreaEEEERNSt3__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: 90, False: 162]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    162|  return os << "(" << value << ")";
  186|    252|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.80k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.80k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.80k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.80k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.80k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.80k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.80k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.51k, False: 288]
  ------------------
  184|  1.51k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.51k|#define _(String) (String)
  ------------------
  185|    288|  return os << "(" << value << ")";
  186|  1.80k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiExrModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    132|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    132|  static_assert(N > 0, "Passed zero length printTag");
  195|    132|  return printTag<N, array>(os, value.toInt64(), data);
  196|    132|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiExrModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    132|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    132|  static_assert(N > 0, "Passed zero length printTag");
  183|    132|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 96]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    132|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10fujiSHToneEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10fujiSHToneEEEERNSt3__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: 318, False: 274]
  ------------------
  184|    318|    return os << _(td->label_);
  ------------------
  |  |   40|    318|#define _(String) (String)
  ------------------
  185|    274|  return os << "(" << value << ")";
  186|    592|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiOff0Weak32Strong64EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    342|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    342|  static_assert(N > 0, "Passed zero length printTag");
  195|    342|  return printTag<N, array>(os, value.toInt64(), data);
  196|    342|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiOff0Weak32Strong64EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    342|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    342|  static_assert(N > 0, "Passed zero length printTag");
  183|    342|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 250]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    250|  return os << "(" << value << ")";
  186|    342|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiCropModeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiCropModeEEEERNSt3__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: 154, False: 62]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    216|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiShutterTypeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiShutterTypeEEEERNSt3__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: 206, False: 34]
  ------------------
  184|    206|    return os << _(td->label_);
  ------------------
  |  |   40|    206|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    240|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14fujiContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    180|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    180|  static_assert(N > 0, "Passed zero length printTag");
  195|    180|  return printTag<N, array>(os, value.toInt64(), data);
  196|    180|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14fujiContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    180|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    180|  static_assert(N > 0, "Passed zero length printTag");
  183|    180|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 104, False: 76]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    180|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21fujiPanoramaDirectionEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21fujiPanoramaDirectionEEEERNSt3__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: 100, False: 118]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|    118|  return os << "(" << value << ")";
  186|    218|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiAdvancedFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    732|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    732|  static_assert(N > 0, "Passed zero length printTag");
  195|    732|  return printTag<N, array>(os, value.toInt64(), data);
  196|    732|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiAdvancedFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    732|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    732|  static_assert(N > 0, "Passed zero length printTag");
  183|    732|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 186, False: 546]
  ------------------
  184|    186|    return os << _(td->label_);
  ------------------
  |  |   40|    186|#define _(String) (String)
  ------------------
  185|    546|  return os << "(" << value << ")";
  186|    732|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiFinePixColorEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiFinePixColorEEEERNSt3__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: 102, False: 106]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    208|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiDynamicRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    316|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    316|  static_assert(N > 0, "Passed zero length printTag");
  195|    316|  return printTag<N, array>(os, value.toInt64(), data);
  196|    316|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiDynamicRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    316|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    316|  static_assert(N > 0, "Passed zero length printTag");
  183|    316|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 302]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|    302|  return os << "(" << value << ")";
  186|    316|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.13k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.13k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.13k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.13k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.13k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.13k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.13k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 776, False: 356]
  ------------------
  184|    776|    return os << _(td->label_);
  ------------------
  |  |   40|    776|#define _(String) (String)
  ------------------
  185|    356|  return os << "(" << value << ")";
  186|  1.13k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDynamicRangeSettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    378|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    378|  static_assert(N > 0, "Passed zero length printTag");
  195|    378|  return printTag<N, array>(os, value.toInt64(), data);
  196|    378|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDynamicRangeSettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    378|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    378|  static_assert(N > 0, "Passed zero length printTag");
  183|    378|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 176, False: 202]
  ------------------
  184|    176|    return os << _(td->label_);
  ------------------
  |  |   40|    176|#define _(String) (String)
  ------------------
  185|    202|  return os << "(" << value << ")";
  186|    378|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20fujiSceneRecognitionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    574|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    574|  static_assert(N > 0, "Passed zero length printTag");
  195|    574|  return printTag<N, array>(os, value.toInt64(), data);
  196|    574|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20fujiSceneRecognitionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    574|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    574|  static_assert(N > 0, "Passed zero length printTag");
  183|    574|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 194, False: 380]
  ------------------
  184|    194|    return os << _(td->label_);
  ------------------
  |  |   40|    194|#define _(String) (String)
  ------------------
  185|    380|  return os << "(" << value << ")";
  186|    574|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19fujiImageGenerationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19fujiImageGenerationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 28]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|     60|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiDRangePriorityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     54|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     54|  static_assert(N > 0, "Passed zero length printTag");
  195|     54|  return printTag<N, array>(os, value.toInt64(), data);
  196|     54|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiDRangePriorityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     54|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     54|  static_assert(N > 0, "Passed zero length printTag");
  183|     54|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 18]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     54|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDRangePriorityFixedEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDRangePriorityFixedEEEERNSt3__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: 52, False: 100]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    152|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiDRangePriorityAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiDRangePriorityAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 28]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16minoltaColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    656|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    656|  static_assert(N > 0, "Passed zero length printTag");
  195|    656|  return printTag<N, array>(os, value.toInt64(), data);
  196|    656|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16minoltaColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    656|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    656|  static_assert(N > 0, "Passed zero length printTag");
  183|    656|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 488, False: 168]
  ------------------
  184|    488|    return os << _(td->label_);
  ------------------
  |  |   40|    488|#define _(String) (String)
  ------------------
  185|    168|  return os << "(" << value << ")";
  186|    656|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    636|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    636|  static_assert(N > 0, "Passed zero length printTag");
  195|    636|  return printTag<N, array>(os, value.toInt64(), data);
  196|    636|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    636|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    636|  static_assert(N > 0, "Passed zero length printTag");
  183|    636|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 472, False: 164]
  ------------------
  184|    472|    return os << _(td->label_);
  ------------------
  |  |   40|    472|#define _(String) (String)
  ------------------
  185|    164|  return os << "(" << value << ")";
  186|    636|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25minoltaImageStabilizationEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25minoltaImageStabilizationEEEERNSt3__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: 142, False: 94]
  ------------------
  184|    142|    return os << _(td->label_);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    236|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28minoltaWhiteBalanceStd0x0115EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    638|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    638|  static_assert(N > 0, "Passed zero length printTag");
  195|    638|  return printTag<N, array>(os, value.toInt64(), data);
  196|    638|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28minoltaWhiteBalanceStd0x0115EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    638|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    638|  static_assert(N > 0, "Passed zero length printTag");
  183|    638|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 520, False: 118]
  ------------------
  184|    520|    return os << _(td->label_);
  ------------------
  |  |   40|    520|#define _(String) (String)
  ------------------
  185|    118|  return os << "(" << value << ")";
  186|    638|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaExposureModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    682|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    682|  static_assert(N > 0, "Passed zero length printTag");
  195|    682|  return printTag<N, array>(os, value.toInt64(), data);
  196|    682|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaExposureModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    682|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    682|  static_assert(N > 0, "Passed zero length printTag");
  183|    682|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 642]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    642|  return os << "(" << value << ")";
  186|    682|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFlashModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    676|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    676|  static_assert(N > 0, "Passed zero length printTag");
  195|    676|  return printTag<N, array>(os, value.toInt64(), data);
  196|    676|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFlashModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    676|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    676|  static_assert(N > 0, "Passed zero length printTag");
  183|    676|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 132, False: 544]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|    544|  return os << "(" << value << ")";
  186|    676|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    676|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    676|  static_assert(N > 0, "Passed zero length printTag");
  195|    676|  return printTag<N, array>(os, value.toInt64(), data);
  196|    676|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    676|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    676|  static_assert(N > 0, "Passed zero length printTag");
  183|    676|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 78, False: 598]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|    598|  return os << "(" << value << ")";
  186|    676|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageSizeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    674|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    674|  static_assert(N > 0, "Passed zero length printTag");
  195|    674|  return printTag<N, array>(os, value.toInt64(), data);
  196|    674|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageSizeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    674|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    674|  static_assert(N > 0, "Passed zero length printTag");
  183|    674|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 68, False: 606]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|    606|  return os << "(" << value << ")";
  186|    674|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaImageQualityStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    674|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    674|  static_assert(N > 0, "Passed zero length printTag");
  195|    674|  return printTag<N, array>(os, value.toInt64(), data);
  196|    674|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaImageQualityStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    674|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    674|  static_assert(N > 0, "Passed zero length printTag");
  183|    674|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 176, False: 498]
  ------------------
  184|    176|    return os << _(td->label_);
  ------------------
  |  |   40|    176|#define _(String) (String)
  ------------------
  185|    498|  return os << "(" << value << ")";
  186|    674|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    674|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    674|  static_assert(N > 0, "Passed zero length printTag");
  195|    674|  return printTag<N, array>(os, value.toInt64(), data);
  196|    674|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    674|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    674|  static_assert(N > 0, "Passed zero length printTag");
  183|    674|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 604]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|    604|  return os << "(" << value << ")";
  186|    674|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaMeteringModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    674|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    674|  static_assert(N > 0, "Passed zero length printTag");
  195|    674|  return printTag<N, array>(os, value.toInt64(), data);
  196|    674|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaMeteringModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    674|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    674|  static_assert(N > 0, "Passed zero length printTag");
  183|    674|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 632]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    632|  return os << "(" << value << ")";
  186|    674|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDigitalZoomStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDigitalZoomStdEEEERNSt3__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: 70, False: 550]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|    550|  return os << "(" << value << ")";
  186|    620|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaBracketStepStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaBracketStepStdEEEERNSt3__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: 58, False: 562]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|    562|  return os << "(" << value << ")";
  186|    620|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.41k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.41k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.41k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.41k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.41k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.41k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.41k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 196, False: 1.22k]
  ------------------
  184|    196|    return os << _(td->label_);
  ------------------
  |  |   40|    196|#define _(String) (String)
  ------------------
  185|  1.22k|  return os << "(" << value << ")";
  186|  1.41k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSharpnessStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    608|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    608|  static_assert(N > 0, "Passed zero length printTag");
  195|    608|  return printTag<N, array>(os, value.toInt64(), data);
  196|    608|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSharpnessStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    608|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    608|  static_assert(N > 0, "Passed zero length printTag");
  183|    608|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 542]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    542|  return os << "(" << value << ")";
  186|    608|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24minoltaSubjectProgramStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    608|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    608|  static_assert(N > 0, "Passed zero length printTag");
  195|    608|  return printTag<N, array>(os, value.toInt64(), data);
  196|    608|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24minoltaSubjectProgramStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    608|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    608|  static_assert(N > 0, "Passed zero length printTag");
  183|    608|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 516]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    516|  return os << "(" << value << ")";
  186|    608|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaISOSettingStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    600|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    600|  static_assert(N > 0, "Passed zero length printTag");
  195|    600|  return printTag<N, array>(os, value.toInt64(), data);
  196|    600|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaISOSettingStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    600|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    600|  static_assert(N > 0, "Passed zero length printTag");
  183|    600|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 98, False: 502]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|    502|  return os << "(" << value << ")";
  186|    600|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaModelStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    600|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    600|  static_assert(N > 0, "Passed zero length printTag");
  195|    600|  return printTag<N, array>(os, value.toInt64(), data);
  196|    600|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaModelStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    600|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    600|  static_assert(N > 0, "Passed zero length printTag");
  183|    600|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 118, False: 482]
  ------------------
  184|    118|    return os << _(td->label_);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  185|    482|  return os << "(" << value << ")";
  186|    600|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaIntervalModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    598|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    598|  static_assert(N > 0, "Passed zero length printTag");
  195|    598|  return printTag<N, array>(os, value.toInt64(), data);
  196|    598|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaIntervalModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    598|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    598|  static_assert(N > 0, "Passed zero length printTag");
  183|    598|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 64, False: 534]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|    534|  return os << "(" << value << ")";
  186|    598|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaFolderNameStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    598|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    598|  static_assert(N > 0, "Passed zero length printTag");
  195|    598|  return printTag<N, array>(os, value.toInt64(), data);
  196|    598|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaFolderNameStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    598|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    598|  static_assert(N > 0, "Passed zero length printTag");
  183|    598|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 542]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    542|  return os << "(" << value << ")";
  186|    598|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    598|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    598|  static_assert(N > 0, "Passed zero length printTag");
  195|    598|  return printTag<N, array>(os, value.toInt64(), data);
  196|    598|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    598|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    598|  static_assert(N > 0, "Passed zero length printTag");
  183|    598|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 114, False: 484]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|    484|  return os << "(" << value << ")";
  186|    598|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaWideFocusZoneStdEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaWideFocusZoneStdEEEERNSt3__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: 58, False: 536]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|    536|  return os << "(" << value << ")";
  186|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    646|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    646|  static_assert(N > 0, "Passed zero length printTag");
  195|    646|  return printTag<N, array>(os, value.toInt64(), data);
  196|    646|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusModeStdEEEERNSt3__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: 58, False: 588]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|    588|  return os << "(" << value << ")";
  186|    646|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusAreaStdEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusAreaStdEEEERNSt3__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: 58, False: 536]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|    536|  return os << "(" << value << ")";
  186|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDECPositionStdEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDECPositionStdEEEERNSt3__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: 72, False: 522]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|    522|  return os << "(" << value << ")";
  186|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaColorProfileStdEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaColorProfileStdEEEERNSt3__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: 58, False: 536]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|    536|  return os << "(" << value << ")";
  186|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDataImprintStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    590|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    590|  static_assert(N > 0, "Passed zero length printTag");
  195|    590|  return printTag<N, array>(os, value.toInt64(), data);
  196|    590|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDataImprintStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    590|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    590|  static_assert(N > 0, "Passed zero length printTag");
  183|    590|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 90, False: 500]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    500|  return os << "(" << value << ")";
  186|    590|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaFlashMeteringStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    650|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    650|  static_assert(N > 0, "Passed zero length printTag");
  195|    650|  return printTag<N, array>(os, value.toInt64(), data);
  196|    650|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaFlashMeteringStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    650|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    650|  static_assert(N > 0, "Passed zero length printTag");
  183|    650|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 94, False: 556]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|    556|  return os << "(" << value << ")";
  186|    650|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode7DEEEERNSt3__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: 36, False: 72]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize7DEEEERNSt3__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: 36, False: 68]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality7DEEEERNSt3__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: 30, False: 74]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance7DEEEERNSt3__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: 44, False: 60]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusMode7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusMode7DEEEERNSt3__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: 28, False: 72]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    100|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaAFPoints7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaAFPoints7DEEEERNSt3__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: 26, False: 68]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|     94|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting7DEEEERNSt3__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: 34, False: 38]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|     72|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace7DEEEERNSt3__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_L19minoltaColorSpace7DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation7DEEEERNSt3__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: 6, False: 40]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     46|}
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: 60, False: 218]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|    218|  return os << "(" << value << ")";
  186|    278|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize5DEEEERNSt3__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: 56, False: 58]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    114|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality5DEEEERNSt3__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: 42, False: 72]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    114|}
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: 106, False: 170]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|    170|  return os << "(" << value << ")";
  186|    276|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaFocusPosition5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaFocusPosition5DEEEERNSt3__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: 44, False: 64]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusArea5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusArea5DEEEERNSt3__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: 36, False: 72]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaMeteringMode5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaMeteringMode5DEEEERNSt3__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: 36, False: 72]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting5DEEEERNSt3__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: 50, False: 58]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace5DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace5DEEEERNSt3__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: 36, False: 44]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|     80|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation5DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaPictureFinish5DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaPictureFinish5DEEEERNSt3__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: 32, False: 20]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaAFMode5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaAFMode5DEEEERNSt3__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: 18, False: 24]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|     42|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyDriveMode2A100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyDriveMode2A100EEEERNSt3__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: 42, False: 120]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFocusModeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFocusModeA100EEEERNSt3__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: 26, False: 136]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    136|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashModeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashModeA100EEEERNSt3__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: 30, False: 132]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyMeteringModeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyMeteringModeA100EEEERNSt3__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: 30, False: 132]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyZoneMatchingModeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyZoneMatchingModeA100EEEERNSt3__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: 30, False: 132]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyColorSpaceA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyColorSpaceA100EEEERNSt3__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: 32, False: 130]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyDriveModeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyDriveModeA100EEEERNSt3__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: 46, False: 116]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonySelfTimerTimeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonySelfTimerTimeA100EEEERNSt3__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: 36, False: 126]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    126|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyContinuousBracketingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyContinuousBracketingA100EEEERNSt3__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: 6, False: 156]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|    156|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29sonySingleFrameBracketingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29sonySingleFrameBracketingA100EEEERNSt3__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: 4, False: 158]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyWhiteBalanceBracketingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyWhiteBalanceBracketingA100EEEERNSt3__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: 6, False: 156]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|    156|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyWhiteBalanceSettingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyWhiteBalanceSettingA100EEEERNSt3__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: 54, False: 108]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyPresetWhiteBalanceA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyPresetWhiteBalanceA100EEEERNSt3__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: 12, False: 150]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|    150|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31sonyColorTemperatureSettingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31sonyColorTemperatureSettingA100EEEERNSt3__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: 36, False: 126]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    126|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyCustomWBSettingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyCustomWBSettingA100EEEERNSt3__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: 36, False: 126]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    126|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyCustomWBErrorA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyCustomWBErrorA100EEEERNSt3__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: 30, False: 132]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyImageSizeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyImageSizeA100EEEERNSt3__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: 32, False: 128]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    160|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyInstantPlaybackSetupA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyInstantPlaybackSetupA100EEEERNSt3__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: 38, False: 122]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    160|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyFlashDefaultA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyFlashDefaultA100EEEERNSt3__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: 22, False: 82]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyAutoBracketOrderA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyAutoBracketOrderA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusHoldButtonA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusHoldButtonA100EEEERNSt3__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: 22, False: 82]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAELButtonA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAELButtonA100EEEERNSt3__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: 22, False: 82]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyControlDialSetA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyControlDialSetA100EEEERNSt3__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: 22, False: 82]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyExposureCompensationModeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyExposureCompensationModeA100EEEERNSt3__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: 28, False: 76]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyAFAreaIlluminationA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyAFAreaIlluminationA100EEEERNSt3__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: 28, False: 76]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMonitorDisplayOffA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMonitorDisplayOffA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyRecordDisplayA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyRecordDisplayA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyPlayDisplayA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyPlayDisplayA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyExposureIndicatorA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyExposureIndicatorA100EEEERNSt3__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: 108, False: 328]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    328|  return os << "(" << value << ")";
  186|    436|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L33sonyMeteringOffScaleIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L33sonyMeteringOffScaleIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 40]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusModeSwitchA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusModeSwitchA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 46]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashTypeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashTypeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 40]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyBatteryLevelA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyBatteryLevelA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 48]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm205ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaSonyLensIDEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.46k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.46k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.46k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.46k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm205ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaSonyLensIDEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.46k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.46k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.46k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.01k, False: 458]
  ------------------
  184|  3.01k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.01k|#define _(String) (String)
  ------------------
  185|    458|  return os << "(" << value << ")";
  186|  3.46k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyColorModeEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyColorModeEEEERNSt3__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: 62, False: 100]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyBoolFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.84k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.84k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.84k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.84k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyBoolFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.84k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.84k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.84k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 704, False: 2.14k]
  ------------------
  184|    704|    return os << _(td->label_);
  ------------------
  |  |   40|    704|#define _(String) (String)
  ------------------
  185|  2.14k|  return os << "(" << value << ")";
  186|  2.84k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30minoltaSonyBoolInverseFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    762|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    762|  static_assert(N > 0, "Passed zero length printTag");
  195|    762|  return printTag<N, array>(os, value.toInt64(), data);
  196|    762|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30minoltaSonyBoolInverseFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    762|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    762|  static_assert(N > 0, "Passed zero length printTag");
  183|    762|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 206, False: 556]
  ------------------
  184|    206|    return os << _(td->label_);
  ------------------
  |  |   40|    206|#define _(String) (String)
  ------------------
  185|    556|  return os << "(" << value << ")";
  186|    762|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaSonyAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    588|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    588|  static_assert(N > 0, "Passed zero length printTag");
  195|    588|  return printTag<N, array>(os, value.toInt64(), data);
  196|    588|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaSonyAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    588|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    588|  static_assert(N > 0, "Passed zero length printTag");
  183|    588|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 140, False: 448]
  ------------------
  184|    140|    return os << _(td->label_);
  ------------------
  |  |   40|    140|#define _(String) (String)
  ------------------
  185|    448|  return os << "(" << value << ")";
  186|    588|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27minoltaSonyLocalAFAreaPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    588|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    588|  static_assert(N > 0, "Passed zero length printTag");
  195|    588|  return printTag<N, array>(os, value.toInt64(), data);
  196|    588|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27minoltaSonyLocalAFAreaPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    588|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    588|  static_assert(N > 0, "Passed zero length printTag");
  183|    588|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 514]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|    514|  return os << "(" << value << ")";
  186|    588|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L36minoltaSonyDynamicRangeOptimizerModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    750|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    750|  static_assert(N > 0, "Passed zero length printTag");
  195|    750|  return printTag<N, array>(os, value.toInt64(), data);
  196|    750|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L36minoltaSonyDynamicRangeOptimizerModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    750|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    750|  static_assert(N > 0, "Passed zero length printTag");
  183|    750|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 200, False: 550]
  ------------------
  184|    200|    return os << _(td->label_);
  ------------------
  |  |   40|    200|#define _(String) (String)
  ------------------
  185|    550|  return os << "(" << value << ")";
  186|    750|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L38minoltaSonyPrioritySetupShutterReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    508|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    508|  static_assert(N > 0, "Passed zero length printTag");
  195|    508|  return printTag<N, array>(os, value.toInt64(), data);
  196|    508|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L38minoltaSonyPrioritySetupShutterReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    508|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    508|  static_assert(N > 0, "Passed zero length printTag");
  183|    508|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 146, False: 362]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|    362|  return os << "(" << value << ")";
  186|    508|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyQualityCsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    450|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    450|  static_assert(N > 0, "Passed zero length printTag");
  195|    450|  return printTag<N, array>(os, value.toInt64(), data);
  196|    450|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyQualityCsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    450|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    450|  static_assert(N > 0, "Passed zero length printTag");
  183|    450|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 340]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    340|  return os << "(" << value << ")";
  186|    450|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSonyRotationEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSonyRotationEEEERNSt3__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: 92, False: 374]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    374|  return os << "(" << value << ")";
  186|    466|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonySceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.55k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.55k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.55k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.55k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonySceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.55k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.55k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.55k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.06k, False: 496]
  ------------------
  184|  2.06k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.06k|#define _(String) (String)
  ------------------
  185|    496|  return os << "(" << value << ")";
  186|  2.55k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29minoltaSonyTeleconverterModelEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29minoltaSonyTeleconverterModelEEEERNSt3__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: 324, False: 108]
  ------------------
  184|    324|    return os << _(td->label_);
  ------------------
  |  |   40|    324|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    432|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyZoneMatchingEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyZoneMatchingEEEERNSt3__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: 106, False: 76]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    182|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14olympusQualityEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14olympusQualityEEEERNSt3__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: 342, False: 274]
  ------------------
  184|    342|    return os << _(td->label_);
  ------------------
  |  |   40|    342|#define _(String) (String)
  ------------------
  185|    274|  return os << "(" << value << ")";
  186|    616|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    776|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    776|  static_assert(N > 0, "Passed zero length printTag");
  195|    776|  return printTag<N, array>(os, value.toInt64(), data);
  196|    776|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    776|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    776|  static_assert(N > 0, "Passed zero length printTag");
  183|    776|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 406, False: 370]
  ------------------
  184|    406|    return os << _(td->label_);
  ------------------
  |  |   40|    406|#define _(String) (String)
  ------------------
  185|    370|  return os << "(" << value << ")";
  186|    776|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    392|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    392|  static_assert(N > 0, "Passed zero length printTag");
  195|    392|  return printTag<N, array>(os, value.toInt64(), data);
  196|    392|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    392|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    392|  static_assert(N > 0, "Passed zero length printTag");
  183|    392|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 292, False: 100]
  ------------------
  184|    292|    return os << _(td->label_);
  ------------------
  |  |   40|    292|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    392|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusOneTouchWbEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusOneTouchWbEEEERNSt3__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: 210, False: 78]
  ------------------
  184|    210|    return os << _(td->label_);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    288|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm45ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.85k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.85k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.85k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.85k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm45ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.85k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.85k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.85k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.50k, False: 346]
  ------------------
  184|  2.50k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.50k|#define _(String) (String)
  ------------------
  185|    346|  return os << "(" << value << ")";
  186|  2.85k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusFlashDeviceEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusFlashDeviceEEEERNSt3__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: 78, False: 30]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    108|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusFocusRangeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusFocusRangeEEEERNSt3__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: 76, False: 66]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    142|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusFocusModeEEEERNSt3__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_L16olympusFocusModeEEEERNSt3__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:_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: 14, False: 14]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|     28|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    178|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    178|  static_assert(N > 0, "Passed zero length printTag");
  195|    178|  return printTag<N, array>(os, value.toInt64(), data);
  196|    178|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    178|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    178|  static_assert(N > 0, "Passed zero length printTag");
  183|    178|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 106, False: 72]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    178|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusCCDScanModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusCCDScanModeEEEERNSt3__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: 58, False: 46]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|    104|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusNoYesEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusNoYesEEEERNSt3__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: 168, False: 94]
  ------------------
  184|    168|    return os << _(td->label_);
  ------------------
  |  |   40|    168|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    262|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusExposureModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusExposureModeEEEERNSt3__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: 142, False: 298]
  ------------------
  184|    142|    return os << _(td->label_);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  185|    298|  return os << "(" << value << ")";
  186|    440|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    336|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    336|  static_assert(N > 0, "Passed zero length printTag");
  195|    336|  return printTag<N, array>(os, value.toInt64(), data);
  196|    336|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    336|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    336|  static_assert(N > 0, "Passed zero length printTag");
  183|    336|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 132, False: 204]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|    204|  return os << "(" << value << ")";
  186|    336|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusMacroModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusMacroModeEEEERNSt3__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: 120, False: 106]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    226|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusFocusProcessEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusFocusProcessEEEERNSt3__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: 170, False: 52]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    222|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusAFSearchEEEERNSt3__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_L15olympusAFSearchEEEERNSt3__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: 86, False: 14]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|    100|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L16olympusFlashModeEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    782|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    782|  static_assert(N > 0, "Passed zero length printTag");
  208|    782|  const auto val = value.toUint32();
  209|    782|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 212, False: 570]
  ------------------
  210|    212|    auto [mask, label] = *array;
  211|    212|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 212, False: 0]
  ------------------
  212|    212|      return os << _(label);
  ------------------
  |  |   40|    212|#define _(String) (String)
  ------------------
  213|    212|  }
  214|    570|  bool sep = false;
  215|  3.99k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 3.99k, False: 570]
  ------------------
  216|  3.99k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 1.14k, False: 2.85k]
  ------------------
  217|  1.14k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 572, False: 568]
  ------------------
  218|    572|        os << ", " << _(label);
  ------------------
  |  |   40|    572|#define _(String) (String)
  ------------------
  219|    572|      } else {
  220|    568|        os << _(label);
  ------------------
  |  |   40|    568|#define _(String) (String)
  ------------------
  221|    568|        sep = true;
  222|    568|      }
  223|  1.14k|    }
  224|  3.99k|  }
  225|    570|  return os;
  226|    782|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusFlashRemoteControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    978|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    978|  static_assert(N > 0, "Passed zero length printTag");
  195|    978|  return printTag<N, array>(os, value.toInt64(), data);
  196|    978|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusFlashRemoteControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    978|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    978|  static_assert(N > 0, "Passed zero length printTag");
  183|    978|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 658, False: 320]
  ------------------
  184|    658|    return os << _(td->label_);
  ------------------
  |  |   40|    658|#define _(String) (String)
  ------------------
  185|    320|  return os << "(" << value << ")";
  186|    978|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusFlashControlModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusFlashControlModeEEEERNSt3__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: 82, False: 46]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|    128|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.16k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.16k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.16k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.16k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.16k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.16k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.16k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 612, False: 552]
  ------------------
  184|    612|    return os << _(td->label_);
  ------------------
  |  |   40|    612|#define _(String) (String)
  ------------------
  185|    552|  return os << "(" << value << ")";
  186|  1.16k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusModifiedSaturationEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusModifiedSaturationEEEERNSt3__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: 206, False: 82]
  ------------------
  184|    206|    return os << _(td->label_);
  ------------------
  |  |   40|    206|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    288|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusColorSpaceEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusColorSpaceEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm4ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L21olympusNoiseReductionEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    250|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    250|  static_assert(N > 0, "Passed zero length printTag");
  208|    250|  const auto val = value.toUint32();
  209|    250|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 38, False: 212]
  ------------------
  210|     38|    auto [mask, label] = *array;
  211|     38|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 38]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|     38|  }
  214|    250|  bool sep = false;
  215|  1.00k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.00k, False: 250]
  ------------------
  216|  1.00k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 372, False: 628]
  ------------------
  217|    372|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 166, False: 206]
  ------------------
  218|    166|        os << ", " << _(label);
  ------------------
  |  |   40|    166|#define _(String) (String)
  ------------------
  219|    206|      } else {
  220|    206|        os << _(label);
  ------------------
  |  |   40|    206|#define _(String) (String)
  ------------------
  221|    206|        sep = true;
  222|    206|      }
  223|    372|    }
  224|  1.00k|  }
  225|    250|  return os;
  226|    250|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    888|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    888|  static_assert(N > 0, "Passed zero length printTag");
  195|    888|  return printTag<N, array>(os, value.toInt64(), data);
  196|    888|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    888|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    888|  static_assert(N > 0, "Passed zero length printTag");
  183|    888|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 638, False: 250]
  ------------------
  184|    638|    return os << _(td->label_);
  ------------------
  |  |   40|    638|#define _(String) (String)
  ------------------
  185|    250|  return os << "(" << value << ")";
  186|    888|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26olympusPictureModeBWFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    224|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    224|  static_assert(N > 0, "Passed zero length printTag");
  195|    224|  return printTag<N, array>(os, value.toInt64(), data);
  196|    224|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26olympusPictureModeBWFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    224|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    224|  static_assert(N > 0, "Passed zero length printTag");
  183|    224|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 172, False: 52]
  ------------------
  184|    172|    return os << _(td->label_);
  ------------------
  |  |   40|    172|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    224|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusPictureModeToneEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusPictureModeToneEEEERNSt3__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: 134, False: 68]
  ------------------
  184|    134|    return os << _(td->label_);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    202|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusCsQualityEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusCsQualityEEEERNSt3__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: 38, False: 26]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     64|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    136|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    136|  static_assert(N > 0, "Passed zero length printTag");
  195|    136|  return printTag<N, array>(os, value.toInt64(), data);
  196|    136|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    136|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    136|  static_assert(N > 0, "Passed zero length printTag");
  183|    136|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 100, False: 36]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    136|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusEqFlashTypeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusEqFlashTypeEEEERNSt3__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: 412, False: 512]
  ------------------
  184|    412|    return os << _(td->label_);
  ------------------
  |  |   40|    412|#define _(String) (String)
  ------------------
  185|    512|  return os << "(" << value << ")";
  186|    924|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusEqFlashModelEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusEqFlashModelEEEERNSt3__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: 238, False: 30]
  ------------------
  184|    238|    return os << _(td->label_);
  ------------------
  |  |   40|    238|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    268|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdColorSpaceEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdColorSpaceEEEERNSt3__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: 166, False: 88]
  ------------------
  184|    166|    return os << _(td->label_);
  ------------------
  |  |   40|    166|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    254|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusRdEngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    554|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    554|  static_assert(N > 0, "Passed zero length printTag");
  195|    554|  return printTag<N, array>(os, value.toInt64(), data);
  196|    554|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusRdEngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    554|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    554|  static_assert(N > 0, "Passed zero length printTag");
  183|    554|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 414, False: 140]
  ------------------
  184|    414|    return os << _(td->label_);
  ------------------
  |  |   40|    414|#define _(String) (String)
  ------------------
  185|    140|  return os << "(" << value << ")";
  186|    554|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdEditStatusEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdEditStatusEEEERNSt3__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: 128, False: 100]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    228|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm8ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L17olympusRdSettingsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    988|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    988|  static_assert(N > 0, "Passed zero length printTag");
  208|    988|  const auto val = value.toUint32();
  209|    988|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 28, False: 960]
  ------------------
  210|     28|    auto [mask, label] = *array;
  211|     28|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 28]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|     28|  }
  214|    988|  bool sep = false;
  215|  7.90k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 7.90k, False: 988]
  ------------------
  216|  7.90k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 2.65k, False: 5.25k]
  ------------------
  217|  2.65k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 1.75k, False: 894]
  ------------------
  218|  1.75k|        os << ", " << _(label);
  ------------------
  |  |   40|  1.75k|#define _(String) (String)
  ------------------
  219|  1.75k|      } else {
  220|    894|        os << _(label);
  ------------------
  |  |   40|    894|#define _(String) (String)
  ------------------
  221|    894|        sep = true;
  222|    894|      }
  223|  2.65k|    }
  224|  7.90k|  }
  225|    988|  return os;
  226|    988|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusRd2WhiteBalanceEEEERNSt3__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_L22olympusRd2WhiteBalanceEEEERNSt3__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: 38, False: 62]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    100|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRd2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    334|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    334|  static_assert(N > 0, "Passed zero length printTag");
  195|    334|  return printTag<N, array>(os, value.toInt64(), data);
  196|    334|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRd2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    334|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    334|  static_assert(N > 0, "Passed zero length printTag");
  183|    334|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 236, False: 98]
  ------------------
  184|    236|    return os << _(td->label_);
  ------------------
  |  |   40|    236|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    334|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusRd2EngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    136|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    136|  static_assert(N > 0, "Passed zero length printTag");
  195|    136|  return printTag<N, array>(os, value.toInt64(), data);
  196|    136|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusRd2EngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    136|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    136|  static_assert(N > 0, "Passed zero length printTag");
  183|    136|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 72, False: 64]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    136|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PictureModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PictureModeEEEERNSt3__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: 220, False: 282]
  ------------------
  184|    220|    return os << _(td->label_);
  ------------------
  |  |   40|    220|#define _(String) (String)
  ------------------
  185|    282|  return os << "(" << value << ")";
  186|    502|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PM_BWFilterEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PM_BWFilterEEEERNSt3__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: 106, False: 20]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|    126|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusRd2PMPictureToneEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusRd2PMPictureToneEEEERNSt3__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: 94, False: 44]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    138|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29olympusIpMultipleExposureModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29olympusIpMultipleExposureModeEEEERNSt3__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: 42, False: 6]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     48|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusIpAspectRatioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     54|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     54|  static_assert(N > 0, "Passed zero length printTag");
  195|     54|  return printTag<N, array>(os, value.toInt64(), data);
  196|     54|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusIpAspectRatioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     54|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     54|  static_assert(N > 0, "Passed zero length printTag");
  183|     54|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 6]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     54|}
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|    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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRiLightSourceEEEERNSt3__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: 318, False: 72]
  ------------------
  184|    318|    return os << _(td->label_);
  ------------------
  |  |   40|    318|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    390|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10artFiltersEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    916|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    916|  static_assert(N > 0, "Passed zero length printTag");
  183|    916|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 722, False: 194]
  ------------------
  184|    722|    return os << _(td->label_);
  ------------------
  |  |   40|    722|#define _(String) (String)
  ------------------
  185|    194|  return os << "(" << value << ")";
  186|    916|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicQualityEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicQualityEEEERNSt3__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: 380, False: 540]
  ------------------
  184|    380|    return os << _(td->label_);
  ------------------
  |  |   40|    380|#define _(String) (String)
  ------------------
  185|    540|  return os << "(" << value << ")";
  186|    920|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    534|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    534|  static_assert(N > 0, "Passed zero length printTag");
  195|    534|  return printTag<N, array>(os, value.toInt64(), data);
  196|    534|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    534|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    534|  static_assert(N > 0, "Passed zero length printTag");
  183|    534|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 350, False: 184]
  ------------------
  184|    350|    return os << _(td->label_);
  ------------------
  |  |   40|    350|#define _(String) (String)
  ------------------
  185|    184|  return os << "(" << value << ")";
  186|    534|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    686|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    686|  static_assert(N > 0, "Passed zero length printTag");
  195|    686|  return printTag<N, array>(os, value.toInt64(), data);
  196|    686|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    686|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    686|  static_assert(N > 0, "Passed zero length printTag");
  183|    686|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 408, False: 278]
  ------------------
  184|    408|    return os << _(td->label_);
  ------------------
  |  |   40|    408|#define _(String) (String)
  ------------------
  185|    278|  return os << "(" << value << ")";
  186|    686|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicImageStabilizerEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicImageStabilizerEEEERNSt3__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: 254, False: 170]
  ------------------
  184|    254|    return os << _(td->label_);
  ------------------
  |  |   40|    254|#define _(String) (String)
  ------------------
  185|    170|  return os << "(" << value << ")";
  186|    424|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicMacroEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicMacroEEEERNSt3__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: 112, False: 356]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    356|  return os << "(" << value << ")";
  186|    468|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm77ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    456|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    456|  static_assert(N > 0, "Passed zero length printTag");
  195|    456|  return printTag<N, array>(os, value.toInt64(), data);
  196|    456|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm77ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    456|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    456|  static_assert(N > 0, "Passed zero length printTag");
  183|    456|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 314, False: 142]
  ------------------
  184|    314|    return os << _(td->label_);
  ------------------
  |  |   40|    314|#define _(String) (String)
  ------------------
  185|    142|  return os << "(" << value << ")";
  186|    456|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicAudioEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicAudioEEEERNSt3__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: 124, False: 96]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    220|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicColorEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    308|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    308|  static_assert(N > 0, "Passed zero length printTag");
  195|    308|  return printTag<N, array>(os, value.toInt64(), data);
  196|    308|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicColorEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    308|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    308|  static_assert(N > 0, "Passed zero length printTag");
  183|    308|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 216]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    216|  return os << "(" << value << ")";
  186|    308|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicBurstModeEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicBurstModeEEEERNSt3__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: 120, False: 100]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    220|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    514|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    514|  static_assert(N > 0, "Passed zero length printTag");
  195|    514|  return printTag<N, array>(os, value.toInt64(), data);
  196|    514|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    514|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    514|  static_assert(N > 0, "Passed zero length printTag");
  183|    514|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 312, False: 202]
  ------------------
  184|    312|    return os << _(td->label_);
  ------------------
  |  |   40|    312|#define _(String) (String)
  ------------------
  185|    202|  return os << "(" << value << ")";
  186|    514|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicNoiseReductionEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicNoiseReductionEEEERNSt3__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: 248, False: 150]
  ------------------
  184|    248|    return os << _(td->label_);
  ------------------
  |  |   40|    248|#define _(String) (String)
  ------------------
  185|    150|  return os << "(" << value << ")";
  186|    398|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicSelfTimerEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicSelfTimerEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicRotationEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicRotationEEEERNSt3__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: 182, False: 190]
  ------------------
  184|    182|    return os << _(td->label_);
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
  185|    190|  return os << "(" << value << ")";
  186|    372|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicAFAssistLampEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicAFAssistLampEEEERNSt3__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: 110, False: 170]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    170|  return os << "(" << value << ")";
  186|    280|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    462|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    462|  static_assert(N > 0, "Passed zero length printTag");
  195|    462|  return printTag<N, array>(os, value.toInt64(), data);
  196|    462|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    462|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    462|  static_assert(N > 0, "Passed zero length printTag");
  183|    462|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 256, False: 206]
  ------------------
  184|    256|    return os << _(td->label_);
  ------------------
  |  |   40|    256|#define _(String) (String)
  ------------------
  185|    206|  return os << "(" << value << ")";
  186|    462|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicOpticalZoomModeEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicOpticalZoomModeEEEERNSt3__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: 138, False: 108]
  ------------------
  184|    138|    return os << _(td->label_);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    246|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicConversionLensEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    210|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    210|  static_assert(N > 0, "Passed zero length printTag");
  195|    210|  return printTag<N, array>(os, value.toInt64(), data);
  196|    210|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicConversionLensEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    210|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    210|  static_assert(N > 0, "Passed zero length printTag");
  183|    210|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 88, False: 122]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    210|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicWorldTimeLocationEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicWorldTimeLocationEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicTextStampEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicTextStampEEEERNSt3__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: 28, False: 44]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|     72|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    480|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    480|  static_assert(N > 0, "Passed zero length printTag");
  195|    480|  return printTag<N, array>(os, value.toInt64(), data);
  196|    480|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    480|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    480|  static_assert(N > 0, "Passed zero length printTag");
  183|    480|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 282, False: 198]
  ------------------
  184|    282|    return os << _(td->label_);
  ------------------
  |  |   40|    282|#define _(String) (String)
  ------------------
  185|    198|  return os << "(" << value << ")";
  186|    480|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicBracketSettingsEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicBracketSettingsEEEERNSt3__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: 124, False: 114]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    238|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashCurtainEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashCurtainEEEERNSt3__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: 136, False: 184]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|    184|  return os << "(" << value << ")";
  186|    320|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34panasonicLongShutterNoiseReductionEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34panasonicLongShutterNoiseReductionEEEERNSt3__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: 32, False: 64]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|     96|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicIntelligentExposureEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicIntelligentExposureEEEERNSt3__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: 184, False: 100]
  ------------------
  184|    184|    return os << _(td->label_);
  ------------------
  |  |   40|    184|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    284|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashWarningEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashWarningEEEERNSt3__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: 66, False: 58]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    124|}
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: 124, False: 64]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    188|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicIntelligentDRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    312|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    312|  static_assert(N > 0, "Passed zero length printTag");
  195|    312|  return printTag<N, array>(os, value.toInt64(), data);
  196|    312|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicIntelligentDRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    312|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    312|  static_assert(N > 0, "Passed zero length printTag");
  183|    312|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 208, False: 104]
  ------------------
  184|    208|    return os << _(td->label_);
  ------------------
  |  |   40|    208|#define _(String) (String)
  ------------------
  185|    104|  return os << "(" << value << ")";
  186|    312|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicClearRetouchEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicClearRetouchEEEERNSt3__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: 34, False: 22]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|     56|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicPhotoStyleEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicPhotoStyleEEEERNSt3__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: 170, False: 114]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    284|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicShadingCompensationEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicShadingCompensationEEEERNSt3__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: 68, False: 54]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    122|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicCameraOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    488|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    488|  static_assert(N > 0, "Passed zero length printTag");
  195|    488|  return printTag<N, array>(os, value.toInt64(), data);
  196|    488|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicCameraOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    488|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    488|  static_assert(N > 0, "Passed zero length printTag");
  183|    488|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 380, False: 108]
  ------------------
  184|    380|    return os << _(td->label_);
  ------------------
  |  |   40|    380|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    488|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31panasonicSweepPanoramaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    378|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    378|  static_assert(N > 0, "Passed zero length printTag");
  195|    378|  return printTag<N, array>(os, value.toInt64(), data);
  196|    378|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31panasonicSweepPanoramaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    378|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    378|  static_assert(N > 0, "Passed zero length printTag");
  183|    378|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 306, False: 72]
  ------------------
  184|    306|    return os << _(td->label_);
  ------------------
  |  |   40|    306|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    378|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicTimerRecordingEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicTimerRecordingEEEERNSt3__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: 88, False: 80]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    168|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12panasonicHDREEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12panasonicHDREEEERNSt3__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: 192, False: 158]
  ------------------
  184|    192|    return os << _(td->label_);
  ------------------
  |  |   40|    192|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|    350|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicShutterTypeEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicShutterTypeEEEERNSt3__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: 98, False: 44]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    142|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicTouchAEEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicTouchAEEEEERNSt3__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: 46, False: 74]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    120|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicFlashFiredEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicFlashFiredEEEERNSt3__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: 80, False: 58]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    138|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    540|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    540|  static_assert(N > 0, "Passed zero length printTag");
  195|    540|  return printTag<N, array>(os, value.toInt64(), data);
  196|    540|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    540|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    540|  static_assert(N > 0, "Passed zero length printTag");
  183|    540|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 412, False: 128]
  ------------------
  184|    412|    return os << _(td->label_);
  ------------------
  |  |   40|    412|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    540|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm147ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxModelEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm147ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxModelEEEERNSt3__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: 18, False: 230]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|    230|  return os << "(" << value << ")";
  186|    248|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxQualityEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxQualityEEEERNSt3__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: 490, False: 454]
  ------------------
  184|    490|    return os << _(td->label_);
  ------------------
  |  |   40|    490|#define _(String) (String)
  ------------------
  185|    454|  return os << "(" << value << ")";
  186|    944|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10pentaxSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    998|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    998|  static_assert(N > 0, "Passed zero length printTag");
  195|    998|  return printTag<N, array>(os, value.toInt64(), data);
  196|    998|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10pentaxSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    998|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    998|  static_assert(N > 0, "Passed zero length printTag");
  183|    998|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 830, False: 168]
  ------------------
  184|    830|    return os << _(td->label_);
  ------------------
  |  |   40|    830|#define _(String) (String)
  ------------------
  185|    168|  return os << "(" << value << ")";
  186|    998|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    912|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    912|  static_assert(N > 0, "Passed zero length printTag");
  195|    912|  return printTag<N, array>(os, value.toInt64(), data);
  196|    912|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    912|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    912|  static_assert(N > 0, "Passed zero length printTag");
  183|    912|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 750, False: 162]
  ------------------
  184|    750|    return os << _(td->label_);
  ------------------
  |  |   40|    750|#define _(String) (String)
  ------------------
  185|    162|  return os << "(" << value << ")";
  186|    912|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFocusEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFocusEEEERNSt3__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: 750, False: 288]
  ------------------
  184|    750|    return os << _(td->label_);
  ------------------
  |  |   40|    750|#define _(String) (String)
  ------------------
  185|    288|  return os << "(" << value << ")";
  186|  1.03k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxAFPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    922|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    922|  static_assert(N > 0, "Passed zero length printTag");
  195|    922|  return printTag<N, array>(os, value.toInt64(), data);
  196|    922|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxAFPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    922|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    922|  static_assert(N > 0, "Passed zero length printTag");
  183|    922|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 692, False: 230]
  ------------------
  184|    692|    return os << _(td->label_);
  ------------------
  |  |   40|    692|#define _(String) (String)
  ------------------
  185|    230|  return os << "(" << value << ")";
  186|    922|}
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: 852, False: 200]
  ------------------
  184|    852|    return os << _(td->label_);
  ------------------
  |  |   40|    852|#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|    728|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    728|  static_assert(N > 0, "Passed zero length printTag");
  195|    728|  return printTag<N, array>(os, value.toInt64(), data);
  196|    728|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm79ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9pentaxISOEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    728|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    728|  static_assert(N > 0, "Passed zero length printTag");
  183|    728|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 342, False: 386]
  ------------------
  184|    342|    return os << _(td->label_);
  ------------------
  |  |   40|    342|#define _(String) (String)
  ------------------
  185|    386|  return os << "(" << value << ")";
  186|    728|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxMeteringModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxMeteringModeEEEERNSt3__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: 72, False: 76]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    148|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    972|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    972|  static_assert(N > 0, "Passed zero length printTag");
  195|    972|  return printTag<N, array>(os, value.toInt64(), data);
  196|    972|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    972|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    972|  static_assert(N > 0, "Passed zero length printTag");
  183|    972|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 816, False: 156]
  ------------------
  184|    816|    return os << _(td->label_);
  ------------------
  |  |   40|    816|#define _(String) (String)
  ------------------
  185|    156|  return os << "(" << value << ")";
  186|    972|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22pentaxWhiteBalanceModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    636|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    636|  static_assert(N > 0, "Passed zero length printTag");
  195|    636|  return printTag<N, array>(os, value.toInt64(), data);
  196|    636|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22pentaxWhiteBalanceModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    636|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    636|  static_assert(N > 0, "Passed zero length printTag");
  183|    636|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 372, False: 264]
  ------------------
  184|    372|    return os << _(td->label_);
  ------------------
  |  |   40|    372|#define _(String) (String)
  ------------------
  185|    264|  return os << "(" << value << ")";
  186|    636|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    878|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    878|  static_assert(N > 0, "Passed zero length printTag");
  195|    878|  return printTag<N, array>(os, value.toInt64(), data);
  196|    878|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    878|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    878|  static_assert(N > 0, "Passed zero length printTag");
  183|    878|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 796, False: 82]
  ------------------
  184|    796|    return os << _(td->label_);
  ------------------
  |  |   40|    796|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    878|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    654|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    654|  static_assert(N > 0, "Passed zero length printTag");
  195|    654|  return printTag<N, array>(os, value.toInt64(), data);
  196|    654|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    654|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    654|  static_assert(N > 0, "Passed zero length printTag");
  183|    654|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 512, False: 142]
  ------------------
  184|    512|    return os << _(td->label_);
  ------------------
  |  |   40|    512|#define _(String) (String)
  ------------------
  185|    142|  return os << "(" << value << ")";
  186|    654|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    828|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    828|  static_assert(N > 0, "Passed zero length printTag");
  195|    828|  return printTag<N, array>(os, value.toInt64(), data);
  196|    828|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    828|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    828|  static_assert(N > 0, "Passed zero length printTag");
  183|    828|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 650, False: 178]
  ------------------
  184|    650|    return os << _(td->label_);
  ------------------
  |  |   40|    650|#define _(String) (String)
  ------------------
  185|    178|  return os << "(" << value << ")";
  186|    828|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLocationEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLocationEEEERNSt3__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: 144, False: 56]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    200|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12pentaxCitiesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.69k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.69k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.69k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.69k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12pentaxCitiesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.69k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.69k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.69k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.02k, False: 674]
  ------------------
  184|  2.02k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.02k|#define _(String) (String)
  ------------------
  185|    674|  return os << "(" << value << ")";
  186|  2.69k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxYesNoEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxYesNoEEEERNSt3__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: 50, False: 114]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    164|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxColorSpaceEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxColorSpaceEEEERNSt3__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: 116, False: 114]
  ------------------
  184|    116|    return os << _(td->label_);
  ------------------
  |  |   40|    116|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    230|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxOffOnEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxOffOnEEEERNSt3__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: 36, False: 86]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    122|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxImageToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    832|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    832|  static_assert(N > 0, "Passed zero length printTag");
  195|    832|  return printTag<N, array>(os, value.toInt64(), data);
  196|    832|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxImageToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    832|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    832|  static_assert(N > 0, "Passed zero length printTag");
  183|    832|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 650, False: 182]
  ------------------
  184|    650|    return os << _(td->label_);
  ------------------
  |  |   40|    650|#define _(String) (String)
  ------------------
  185|    182|  return os << "(" << value << ")";
  186|    832|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxHighISONoiseReductionEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxHighISONoiseReductionEEEERNSt3__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: 538, False: 288]
  ------------------
  184|    538|    return os << _(td->label_);
  ------------------
  |  |   40|    538|#define _(String) (String)
  ------------------
  185|    288|  return os << "(" << value << ")";
  186|    826|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16samsung2LensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.15k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.15k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.15k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.15k|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16samsung2LensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.15k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.15k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.15k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.71k, False: 446]
  ------------------
  184|  1.71k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.71k|#define _(String) (String)
  ------------------
  185|    446|  return os << "(" << value << ")";
  186|  2.15k|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2ColorSpaceEEEERNSt3__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|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2ColorSpaceEEEERNSt3__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: 50, False: 30]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     80|}
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: 30, False: 16]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     16|  return os << "(" << value << ")";
  186|     46|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13samsungPwModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     54|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     54|  static_assert(N > 0, "Passed zero length printTag");
  195|     54|  return printTag<N, array>(os, value.toInt64(), data);
  196|     54|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13samsungPwModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     54|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     54|  static_assert(N > 0, "Passed zero length printTag");
  183|     54|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 24]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|     54|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyHDRStdPart1EEEERNSt3__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: 338, False: 22]
  ------------------
  184|    338|    return os << _(td->label_);
  ------------------
  |  |   40|    338|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|    360|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyHDRStdPart2EEEERNSt3__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: 150, False: 210]
  ------------------
  184|    150|    return os << _(td->label_);
  ------------------
  |  |   40|    150|#define _(String) (String)
  ------------------
  185|    210|  return os << "(" << value << ")";
  186|    360|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    651|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    651|  static_assert(N > 0, "Passed zero length printTag");
  183|    651|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 251, False: 400]
  ------------------
  184|    251|    return os << _(td->label_);
  ------------------
  |  |   40|    251|#define _(String) (String)
  ------------------
  185|    400|  return os << "(" << value << ")";
  186|    651|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    518|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    518|  static_assert(N > 0, "Passed zero length printTag");
  183|    518|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 365, False: 153]
  ------------------
  184|    365|    return os << _(td->label_);
  ------------------
  |  |   40|    365|#define _(String) (String)
  ------------------
  185|    153|  return os << "(" << value << ")";
  186|    518|}
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: 868, False: 249]
  ------------------
  184|    868|    return os << _(td->label_);
  ------------------
  |  |   40|    868|#define _(String) (String)
  ------------------
  185|    249|  return os << "(" << value << ")";
  186|  1.11k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.59k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.59k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.59k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.15k, False: 436]
  ------------------
  184|  1.15k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.15k|#define _(String) (String)
  ------------------
  185|    436|  return os << "(" << value << ")";
  186|  1.59k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    781|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    781|  static_assert(N > 0, "Passed zero length printTag");
  183|    781|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 700, False: 81]
  ------------------
  184|    700|    return os << _(td->label_);
  ------------------
  |  |   40|    700|#define _(String) (String)
  ------------------
  185|     81|  return os << "(" << value << ")";
  186|    781|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    690|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    690|  static_assert(N > 0, "Passed zero length printTag");
  195|    690|  return printTag<N, array>(os, value.toInt64(), data);
  196|    690|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    690|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    690|  static_assert(N > 0, "Passed zero length printTag");
  183|    690|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 452, False: 238]
  ------------------
  184|    452|    return os << _(td->label_);
  ------------------
  |  |   40|    452|#define _(String) (String)
  ------------------
  185|    238|  return os << "(" << value << ")";
  186|    690|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet3EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet3EEEERNSt3__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: 128, False: 258]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|    258|  return os << "(" << value << ")";
  186|    386|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet4EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    421|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    421|  static_assert(N > 0, "Passed zero length printTag");
  183|    421|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 266, False: 155]
  ------------------
  184|    266|    return os << _(td->label_);
  ------------------
  |  |   40|    266|#define _(String) (String)
  ------------------
  185|    155|  return os << "(" << value << ")";
  186|    421|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet5EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    803|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    803|  static_assert(N > 0, "Passed zero length printTag");
  183|    803|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 513, False: 290]
  ------------------
  184|    513|    return os << _(td->label_);
  ------------------
  |  |   40|    513|#define _(String) (String)
  ------------------
  185|    290|  return os << "(" << value << ")";
  186|    803|}
sonymn_int.cpp:_ZN5Exiv28Internal20printTagBitlistAllLEILm19ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20sonyAFPointsUsedSet1EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  238|    198|std::ostream& printTagBitlistAllLE(std::ostream& os, const Value& value, const ExifData*) {
  239|    198|  static_assert(N > 0, "Passed zero length TagDetailsBitlistSorted");
  240|       |
  241|    198|  uint32_t vN = 0;
  242|    198|  uint32_t currentVNBit = 0;
  243|    198|  size_t lastArrayPos = 0;  // Prevents unneeded searching of array
  244|    198|  constexpr auto maxArrayBit = (array + N - 1)->first;
  245|    198|  auto allVNZero = true;
  246|    198|  auto useSep = false;
  247|       |
  248|       |  // For each value
  249|  5.66k|  for (size_t i = 0; i < value.count(); i++) {
  ------------------
  |  Branch (249:22): [True: 5.47k, False: 198]
  ------------------
  250|  5.47k|    vN = value.toUint32(i);
  251|  5.47k|    if (vN == 0) {  // If all bits zero, then nothing to process
  ------------------
  |  Branch (251:9): [True: 1.63k, False: 3.83k]
  ------------------
  252|  1.63k|      currentVNBit += 8;
  253|  1.63k|      continue;
  254|  1.63k|    }
  255|  3.83k|    allVNZero = false;
  256|       |    // Cycle through every bit in that byte
  257|  34.5k|    for (auto j = 0; j < 8; j++, currentVNBit++) {
  ------------------
  |  Branch (257:22): [True: 30.6k, False: 3.83k]
  ------------------
  258|  30.6k|      if ((vN >> j & 0x01) == 0) {  // If bit not set, then nothing to process
  ------------------
  |  Branch (258:11): [True: 13.9k, False: 16.7k]
  ------------------
  259|  13.9k|        continue;
  260|  13.9k|      }
  261|  16.7k|      if (currentVNBit > maxArrayBit) {  // If beyond array values, output unknown index
  ------------------
  |  Branch (261:11): [True: 14.9k, False: 1.75k]
  ------------------
  262|  14.9k|        os << ", [" << currentVNBit << "]";
  263|  14.9k|        continue;
  264|  14.9k|      }
  265|       |
  266|       |      // Check to see if the numbered bit is found in the array
  267|  3.95k|      for (size_t k = lastArrayPos; k < N; ++k) {
  ------------------
  |  Branch (267:37): [True: 3.95k, False: 0]
  ------------------
  268|  3.95k|        auto [bit, label] = *(array + k);
  269|       |
  270|  3.95k|        if (currentVNBit == bit) {
  ------------------
  |  Branch (270:13): [True: 1.75k, False: 2.20k]
  ------------------
  271|  1.75k|          lastArrayPos = k;
  272|  1.75k|          if (useSep) {
  ------------------
  |  Branch (272:15): [True: 1.59k, False: 165]
  ------------------
  273|  1.59k|            os << ", " << _(label);
  ------------------
  |  |   40|  1.59k|#define _(String) (String)
  ------------------
  274|  1.59k|          } else {
  275|    165|            os << _(label);
  ------------------
  |  |   40|    165|#define _(String) (String)
  ------------------
  276|    165|            useSep = true;
  277|    165|          }
  278|  1.75k|          break;
  279|  1.75k|        }
  280|  3.95k|      }
  281|  1.75k|    }
  282|  3.83k|  }
  283|    198|  if (allVNZero)
  ------------------
  |  Branch (283:7): [True: 28, False: 170]
  ------------------
  284|     28|    os << _("None");
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  285|    198|  return os;
  286|    198|}
sonymn_int.cpp:_ZN5Exiv28Internal20printTagBitlistAllLEILm80ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20sonyAFPointsUsedSet2EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  238|    114|std::ostream& printTagBitlistAllLE(std::ostream& os, const Value& value, const ExifData*) {
  239|    114|  static_assert(N > 0, "Passed zero length TagDetailsBitlistSorted");
  240|       |
  241|    114|  uint32_t vN = 0;
  242|    114|  uint32_t currentVNBit = 0;
  243|    114|  size_t lastArrayPos = 0;  // Prevents unneeded searching of array
  244|    114|  constexpr auto maxArrayBit = (array + N - 1)->first;
  245|    114|  auto allVNZero = true;
  246|    114|  auto useSep = false;
  247|       |
  248|       |  // For each value
  249|  1.73k|  for (size_t i = 0; i < value.count(); i++) {
  ------------------
  |  Branch (249:22): [True: 1.62k, False: 114]
  ------------------
  250|  1.62k|    vN = value.toUint32(i);
  251|  1.62k|    if (vN == 0) {  // If all bits zero, then nothing to process
  ------------------
  |  Branch (251:9): [True: 657, False: 965]
  ------------------
  252|    657|      currentVNBit += 8;
  253|    657|      continue;
  254|    657|    }
  255|    965|    allVNZero = false;
  256|       |    // Cycle through every bit in that byte
  257|  8.68k|    for (auto j = 0; j < 8; j++, currentVNBit++) {
  ------------------
  |  Branch (257:22): [True: 7.72k, False: 965]
  ------------------
  258|  7.72k|      if ((vN >> j & 0x01) == 0) {  // If bit not set, then nothing to process
  ------------------
  |  Branch (258:11): [True: 3.11k, False: 4.60k]
  ------------------
  259|  3.11k|        continue;
  260|  3.11k|      }
  261|  4.60k|      if (currentVNBit > maxArrayBit) {  // If beyond array values, output unknown index
  ------------------
  |  Branch (261:11): [True: 1.22k, False: 3.37k]
  ------------------
  262|  1.22k|        os << ", [" << currentVNBit << "]";
  263|  1.22k|        continue;
  264|  1.22k|      }
  265|       |
  266|       |      // Check to see if the numbered bit is found in the array
  267|  13.6k|      for (size_t k = lastArrayPos; k < N; ++k) {
  ------------------
  |  Branch (267:37): [True: 12.5k, False: 1.10k]
  ------------------
  268|  12.5k|        auto [bit, label] = *(array + k);
  269|       |
  270|  12.5k|        if (currentVNBit == bit) {
  ------------------
  |  Branch (270:13): [True: 2.26k, False: 10.2k]
  ------------------
  271|  2.26k|          lastArrayPos = k;
  272|  2.26k|          if (useSep) {
  ------------------
  |  Branch (272:15): [True: 2.19k, False: 75]
  ------------------
  273|  2.19k|            os << ", " << _(label);
  ------------------
  |  |   40|  2.19k|#define _(String) (String)
  ------------------
  274|  2.19k|          } else {
  275|     75|            os << _(label);
  ------------------
  |  |   40|     75|#define _(String) (String)
  ------------------
  276|     75|            useSep = true;
  277|     75|          }
  278|  2.26k|          break;
  279|  2.26k|        }
  280|  12.5k|      }
  281|  3.37k|    }
  282|    965|  }
  283|    114|  if (allVNZero)
  ------------------
  |  Branch (283:7): [True: 36, False: 78]
  ------------------
  284|     36|    os << _("None");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  285|    114|  return os;
  286|    114|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFTrackingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    579|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    579|  static_assert(N > 0, "Passed zero length printTag");
  183|    579|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 523, False: 56]
  ------------------
  184|    523|    return os << _(td->label_);
  ------------------
  |  |   40|    523|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    579|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     99|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     99|  static_assert(N > 0, "Passed zero length printTag");
  183|     99|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 53, False: 46]
  ------------------
  184|     53|    return os << _(td->label_);
  ------------------
  |  |   40|     53|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|     99|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFModeSet1EEEERNSt3__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: 185, False: 31]
  ------------------
  184|    185|    return os << _(td->label_);
  ------------------
  |  |   40|    185|#define _(String) (String)
  ------------------
  185|     31|  return os << "(" << value << ")";
  186|    216|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFModeSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     75|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     75|  static_assert(N > 0, "Passed zero length printTag");
  183|     75|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 57, False: 18]
  ------------------
  184|     57|    return os << _(td->label_);
  ------------------
  |  |   40|     57|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     75|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFocusMode3EEEERNSt3__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: 38, False: 8]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|     46|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyHighISONoiseReduction2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    255|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    255|  static_assert(N > 0, "Passed zero length printTag");
  183|    255|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 184, False: 71]
  ------------------
  184|    184|    return os << _(td->label_);
  ------------------
  |  |   40|    184|#define _(String) (String)
  ------------------
  185|     71|  return os << "(" << value << ")";
  186|    255|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.47k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.47k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.47k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.47k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyImageQualityEEEERNSt3__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: 1.21k, False: 268]
  ------------------
  184|  1.21k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.21k|#define _(String) (String)
  ------------------
  185|    268|  return os << "(" << value << ")";
  186|  1.47k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    688|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    688|  static_assert(N > 0, "Passed zero length printTag");
  195|    688|  return printTag<N, array>(os, value.toInt64(), data);
  196|    688|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    688|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    688|  static_assert(N > 0, "Passed zero length printTag");
  183|    688|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 552, False: 136]
  ------------------
  184|    552|    return os << _(td->label_);
  ------------------
  |  |   40|    552|#define _(String) (String)
  ------------------
  185|    136|  return os << "(" << value << ")";
  186|    688|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    576|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    576|  static_assert(N > 0, "Passed zero length printTag");
  195|    576|  return printTag<N, array>(os, value.toInt64(), data);
  196|    576|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    576|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    576|  static_assert(N > 0, "Passed zero length printTag");
  183|    576|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 410, False: 166]
  ------------------
  184|    410|    return os << _(td->label_);
  ------------------
  |  |   40|    410|#define _(String) (String)
  ------------------
  185|    166|  return os << "(" << value << ")";
  186|    576|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyHighISONoiseReductionStdEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyHighISONoiseReductionStdEEEERNSt3__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: 546, False: 190]
  ------------------
  184|    546|    return os << _(td->label_);
  ------------------
  |  |   40|    546|#define _(String) (String)
  ------------------
  185|    190|  return os << "(" << value << ")";
  186|    736|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    260|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    260|  static_assert(N > 0, "Passed zero length printTag");
  195|    260|  return printTag<N, array>(os, value.toInt64(), data);
  196|    260|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    260|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    260|  static_assert(N > 0, "Passed zero length printTag");
  183|    260|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 166, False: 94]
  ------------------
  184|    166|    return os << _(td->label_);
  ------------------
  |  |   40|    166|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    260|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm36ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyPictureEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.32k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm36ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyPictureEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.16k, False: 158]
  ------------------
  184|  1.16k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.16k|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|  1.32k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySoftSkinEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    260|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    260|  static_assert(N > 0, "Passed zero length printTag");
  195|    260|  return printTag<N, array>(os, value.toInt64(), data);
  196|    260|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySoftSkinEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    260|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    260|  static_assert(N > 0, "Passed zero length printTag");
  183|    260|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 162, False: 98]
  ------------------
  184|    162|    return os << _(td->label_);
  ------------------
  |  |   40|    162|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    260|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyVignettingCorrectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    210|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    210|  static_assert(N > 0, "Passed zero length printTag");
  195|    210|  return printTag<N, array>(os, value.toInt64(), data);
  196|    210|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyVignettingCorrectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    210|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    210|  static_assert(N > 0, "Passed zero length printTag");
  183|    210|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 136, False: 74]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    210|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLateralChromaticAberrationEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLateralChromaticAberrationEEEERNSt3__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: 318, False: 100]
  ------------------
  184|    318|    return os << _(td->label_);
  ------------------
  |  |   40|    318|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    418|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyDistortionCorrectionSettingsEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyDistortionCorrectionSettingsEEEERNSt3__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: 186, False: 16]
  ------------------
  184|    186|    return os << _(td->label_);
  ------------------
  |  |   40|    186|#define _(String) (String)
  ------------------
  185|     16|  return os << "(" << value << ")";
  186|    202|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyNoYesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    214|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    214|  static_assert(N > 0, "Passed zero length printTag");
  195|    214|  return printTag<N, array>(os, value.toInt64(), data);
  196|    214|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyNoYesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    214|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    214|  static_assert(N > 0, "Passed zero length printTag");
  183|    214|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 104, False: 110]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    214|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyFlashActionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    204|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    204|  static_assert(N > 0, "Passed zero length printTag");
  195|    204|  return printTag<N, array>(os, value.toInt64(), data);
  196|    204|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyFlashActionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    204|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    204|  static_assert(N > 0, "Passed zero length printTag");
  183|    204|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 146, False: 58]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    204|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyMultiFrameNREffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     44|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     44|  static_assert(N > 0, "Passed zero length printTag");
  195|     44|  return printTag<N, array>(os, value.toInt64(), data);
  196|     44|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyMultiFrameNREffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     44|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     44|  static_assert(N > 0, "Passed zero length printTag");
  183|     44|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 26]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     44|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString2ILm5ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L25sonyVariableLowPassFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  128|  1.01k|std::ostream& printTagString2(std::ostream& os, const Value& value, const ExifData* data) {
  129|  1.01k|  static_assert(N > 0, "Passed zero length printTagString2");
  130|  1.01k|  if (value.count() < 2)
  ------------------
  |  Branch (130:7): [True: 16, False: 1.00k]
  ------------------
  131|     16|    return os << "(" << value << ")";
  132|  1.00k|  std::string temp = value.toString(0) + " " + value.toString(1);
  133|  1.00k|  return printTagString<N, array>(os, temp, data);
  134|  1.01k|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm5ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L25sonyVariableLowPassFilterEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|  1.00k|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|  1.00k|  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|  1.00k|  } else {
  114|  1.00k|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 442, False: 558]
  ------------------
  115|    442|      return os << _(td->label_);
  ------------------
  |  |   40|    442|#define _(String) (String)
  ------------------
  116|    558|    return os << "(" << value << ")";
  117|  1.00k|  }
  118|  1.00k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyRAWFileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    406|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    406|  static_assert(N > 0, "Passed zero length printTag");
  195|    406|  return printTag<N, array>(os, value.toInt64(), data);
  196|    406|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyRAWFileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    406|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    406|  static_assert(N > 0, "Passed zero length printTag");
  183|    406|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 326, False: 80]
  ------------------
  184|    326|    return os << _(td->label_);
  ------------------
  |  |   40|    326|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    406|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyPrioritySetInAWBEEEERNSt3__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_L20sonyPrioritySetInAWBEEEERNSt3__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: 324, False: 166]
  ------------------
  184|    324|    return os << _(td->label_);
  ------------------
  |  |   40|    324|#define _(String) (String)
  ------------------
  185|    166|  return os << "(" << value << ")";
  186|    490|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyMeteringMode2EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyMeteringMode2EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString2ILm30ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L15sonyQuality2StdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  128|    544|std::ostream& printTagString2(std::ostream& os, const Value& value, const ExifData* data) {
  129|    544|  static_assert(N > 0, "Passed zero length printTagString2");
  130|    544|  if (value.count() < 2)
  ------------------
  |  Branch (130:7): [True: 20, False: 524]
  ------------------
  131|     20|    return os << "(" << value << ")";
  132|    524|  std::string temp = value.toString(0) + " " + value.toString(1);
  133|    524|  return printTagString<N, array>(os, temp, data);
  134|    544|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm30ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L15sonyQuality2StdEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    524|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    524|  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|    524|  } else {
  114|    524|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 96, False: 428]
  ------------------
  115|     96|      return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  116|    428|    return os << "(" << value << ")";
  117|    524|  }
  118|    524|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyJPEGHEIFSwitchEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyJPEGHEIFSwitchEEEERNSt3__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: 56, False: 114]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    170|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString4ILm16ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L14sonyFileFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  144|    624|std::ostream& printTagString4(std::ostream& os, const Value& value, const ExifData* data) {
  145|    624|  static_assert(N > 0, "Passed zero length printTagString4");
  146|    624|  if (value.count() < 4)
  ------------------
  |  Branch (146:7): [True: 130, False: 494]
  ------------------
  147|    130|    return os << "(" << value << ")";
  148|    494|  std::string temp = value.toString(0) + " " + value.toString(1) + " " + value.toString(2) + " " + value.toString(3);
  149|    494|  return printTagString<N, array>(os, temp, data);
  150|    624|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm16ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L14sonyFileFormatEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    494|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    494|  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|    494|  } else {
  114|    494|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 200, False: 294]
  ------------------
  115|    200|      return os << _(td->label_);
  ------------------
  |  |   40|    200|#define _(String) (String)
  ------------------
  116|    294|    return os << "(" << value << ")";
  117|    494|  }
  118|    494|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm113ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11sonyModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  9.10k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  9.10k|  static_assert(N > 0, "Passed zero length printTag");
  195|  9.10k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  9.10k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm113ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11sonyModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  9.10k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  9.10k|  static_assert(N > 0, "Passed zero length printTag");
  183|  9.10k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8.20k, False: 905]
  ------------------
  184|  8.20k|    return os << _(td->label_);
  ------------------
  |  |   40|  8.20k|#define _(String) (String)
  ------------------
  185|    905|  return os << "(" << value << ")";
  186|  9.10k|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm19ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L20sonyCreativeStyleStdEENS_5ValueEEERNSt3__113basic_ostreamIcNS7_11char_traitsIcEEEESC_RKT1_PKNS_8ExifDataE:
  107|    428|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    428|  static_assert(N > 0, "Passed zero length printTagString");
  109|    428|  if constexpr (std::is_same_v<T, Value>) {
  110|    428|    if (auto td = Exiv2::find(array, value.toString(0)))
  ------------------
  |  Branch (110:14): [True: 40, False: 388]
  ------------------
  111|     40|      return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  112|    388|    return os << "(" << value << ")";
  113|       |  } else {
  114|       |    if (auto td = Exiv2::find(array, value))
  115|       |      return os << _(td->label_);
  116|       |    return os << "(" << value << ")";
  117|       |  }
  118|    428|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb025EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    802|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    802|  static_assert(N > 0, "Passed zero length printTag");
  195|    802|  return printTag<N, array>(os, value.toInt64(), data);
  196|    802|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb025EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    802|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    802|  static_assert(N > 0, "Passed zero length printTag");
  183|    802|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 678, False: 124]
  ------------------
  184|    678|    return os << _(td->label_);
  ------------------
  |  |   40|    678|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    802|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    394|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    394|  static_assert(N > 0, "Passed zero length printTag");
  195|    394|  return printTag<N, array>(os, value.toInt64(), data);
  196|    394|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    394|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    394|  static_assert(N > 0, "Passed zero length printTag");
  183|    394|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 154, False: 240]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|    240|  return os << "(" << value << ")";
  186|    394|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm26ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.25k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.25k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.25k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.25k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm26ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.25k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.25k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.25k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.65k, False: 594]
  ------------------
  184|  2.65k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.65k|#define _(String) (String)
  ------------------
  185|    594|  return os << "(" << value << ")";
  186|  3.25k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyMacroEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyMacroEEEERNSt3__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: 198, False: 88]
  ------------------
  184|    198|    return os << _(td->label_);
  ------------------
  |  |   40|    198|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    286|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm31ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.69k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.69k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.69k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.69k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm31ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.69k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.69k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.69k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.62k, False: 1.06k]
  ------------------
  184|  3.62k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.62k|#define _(String) (String)
  ------------------
  185|  1.06k|  return os << "(" << value << ")";
  186|  4.69k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAFIlluminatorEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAFIlluminatorEEEERNSt3__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: 74, False: 8]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|     82|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyJPEGQualityEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyJPEGQualityEEEERNSt3__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: 158, False: 132]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    290|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFlashLevelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    844|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    844|  static_assert(N > 0, "Passed zero length printTag");
  195|    844|  return printTag<N, array>(os, value.toInt64(), data);
  196|    844|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFlashLevelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    844|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    844|  static_assert(N > 0, "Passed zero length printTag");
  183|    844|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 650, False: 194]
  ------------------
  184|    650|    return os << _(td->label_);
  ------------------
  |  |   40|    650|#define _(String) (String)
  ------------------
  185|    194|  return os << "(" << value << ")";
  186|    844|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.26k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.26k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.26k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.26k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.26k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.26k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.26k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 728, False: 540]
  ------------------
  184|    728|    return os << _(td->label_);
  ------------------
  |  |   40|    728|#define _(String) (String)
  ------------------
  185|    540|  return os << "(" << value << ")";
  186|  1.26k|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagNoErrorILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySequenceNumberEENS_5ValueEEERNSt3__113basic_ostreamIcNS7_11char_traitsIcEEEESC_RKT1_PKNS_8ExifDataE:
  160|    150|std::ostream& printTagNoError(std::ostream& os, const T& value, const ExifData*) {
  161|    150|  static_assert(N > 0, "Passed zero length printTagNoError");
  162|    150|  if constexpr (std::is_same_v<T, Value>) {
  163|    150|    if (auto td = Exiv2::find(array, value.toInt64()))
  ------------------
  |  Branch (163:14): [True: 82, False: 68]
  ------------------
  164|     82|      return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  165|     68|    return os << value;
  166|       |  } else {
  167|       |    if (auto td = Exiv2::find(array, value))
  168|       |      return os << _(td->label_);
  169|       |    return os << value;
  170|       |  }
  171|    150|}
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: 188, False: 344]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|    344|  return os << "(" << value << ")";
  186|    532|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb04fEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    660|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    660|  static_assert(N > 0, "Passed zero length printTag");
  195|    660|  return printTag<N, array>(os, value.toInt64(), data);
  196|    660|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb04fEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    660|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    660|  static_assert(N > 0, "Passed zero length printTag");
  183|    660|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 402, False: 258]
  ------------------
  184|    402|    return os << _(td->label_);
  ------------------
  |  |   40|    402|#define _(String) (String)
  ------------------
  185|    258|  return os << "(" << value << ")";
  186|    660|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyIntelligentAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    116|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    116|  static_assert(N > 0, "Passed zero length printTag");
  195|    116|  return printTag<N, array>(os, value.toInt64(), data);
  196|    116|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyIntelligentAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    116|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    116|  static_assert(N > 0, "Passed zero length printTag");
  183|    116|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 50]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    116|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyWhiteBalance2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.01k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.01k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.01k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.01k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyWhiteBalance2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.01k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.01k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.01k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 818, False: 192]
  ------------------
  184|    818|    return os << _(td->label_);
  ------------------
  |  |   40|    818|#define _(String) (String)
  ------------------
  185|    192|  return os << "(" << value << ")";
  186|  1.01k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    448|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    448|  static_assert(N > 0, "Passed zero length printTag");
  195|    448|  return printTag<N, array>(os, value.toInt64(), data);
  196|    448|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    448|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    448|  static_assert(N > 0, "Passed zero length printTag");
  183|    448|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 82, False: 366]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|    366|  return os << "(" << value << ")";
  186|    448|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyCSFocusModeEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyCSFocusModeEEEERNSt3__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: 112, False: 314]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    314|  return os << "(" << value << ")";
  186|    426|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyMeteringModeEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyMeteringModeEEEERNSt3__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: 30, False: 396]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    396|  return os << "(" << value << ")";
  186|    426|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyCreativeStyleEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyCreativeStyleEEEERNSt3__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: 92, False: 334]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    334|  return os << "(" << value << ")";
  186|    426|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFlashModeEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFlashModeEEEERNSt3__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: 90, False: 264]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    264|  return os << "(" << value << ")";
  186|    354|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyAFIlluminatorCSEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyAFIlluminatorCSEEEERNSt3__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: 110, False: 236]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    236|  return os << "(" << value << ")";
  186|    346|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyImageStyleEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyImageStyleEEEERNSt3__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: 124, False: 222]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|    222|  return os << "(" << value << ")";
  186|    346|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyExposureProgramEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyExposureProgramEEEERNSt3__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: 136, False: 218]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|    218|  return os << "(" << value << ")";
  186|    354|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    298|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    298|  static_assert(N > 0, "Passed zero length printTag");
  195|    298|  return printTag<N, array>(os, value.toInt64(), data);
  196|    298|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    298|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    298|  static_assert(N > 0, "Passed zero length printTag");
  183|    298|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 276]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|    276|  return os << "(" << value << ")";
  186|    298|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyAspectRatioEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyAspectRatioEEEERNSt3__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: 14, False: 276]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|    276|  return os << "(" << value << ")";
  186|    290|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyExposureLevelIncrementsEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyExposureLevelIncrementsEEEERNSt3__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: 12, False: 278]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|    278|  return os << "(" << value << ")";
  186|    290|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sony2FpAFAreaModeEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sony2FpAFAreaModeEEEERNSt3__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: 166, False: 62]
  ------------------
  184|    166|    return os << _(td->label_);
  ------------------
  |  |   40|    166|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    228|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyExposureProgram3EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyExposureProgram3EEEERNSt3__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: 12, False: 54]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|     66|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyReleaseMode2EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyReleaseMode2EEEERNSt3__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: 112, False: 108]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    220|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength1EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength1EEEERNSt3__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: 152, False: 68]
  ------------------
  184|    152|    return os << _(td->label_);
  ------------------
  |  |   40|    152|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    220|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    210|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    210|  static_assert(N > 0, "Passed zero length printTag");
  195|    210|  return printTag<N, array>(os, value.toInt64(), data);
  196|    210|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    210|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    210|  static_assert(N > 0, "Passed zero length printTag");
  183|    210|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 114, False: 96]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    210|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyMisc3cCameraOrientationEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyMisc3cCameraOrientationEEEERNSt3__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: 54, False: 154]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|    154|  return os << "(" << value << ")";
  186|    208|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyMisc3cQuality2aEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|      8|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|      8|  static_assert(N > 0, "Passed zero length printTag");
  183|      8|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 5, False: 3]
  ------------------
  184|      5|    return os << _(td->label_);
  ------------------
  |  |   40|      5|#define _(String) (String)
  ------------------
  185|      3|  return os << "(" << value << ")";
  186|      8|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyMisc3cQuality2bEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     61|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     61|  static_assert(N > 0, "Passed zero length printTag");
  183|     61|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 31, False: 30]
  ------------------
  184|     31|    return os << _(td->label_);
  ------------------
  |  |   40|     31|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     61|}

_ZN5Exiv28TgaImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
   21|      3|TgaImage::TgaImage(BasicIo::UniquePtr io) : Image(ImageType::tga, mdNone, std::move(io)) {
   22|      3|}
_ZN5Exiv214newTgaInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
   95|      3|Image::UniquePtr newTgaInstance(BasicIo::UniquePtr io, bool /*create*/) {
   96|      3|  auto image = std::make_unique<TgaImage>(std::move(io));
   97|      3|  if (!image->good()) {
  ------------------
  |  Branch (97:7): [True: 3, False: 0]
  ------------------
   98|      3|    return nullptr;
   99|      3|  }
  100|      0|  return image;
  101|      3|}
_ZN5Exiv29isTgaTypeERNS_7BasicIoEb:
  103|  10.6k|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.6k|  const std::string& path = iIo.path();
  106|  10.6k|  if (path.ends_with(".tga") || path.ends_with(".TGA")) {
  ------------------
  |  Branch (106:7): [True: 0, False: 10.6k]
  |  Branch (106:33): [True: 0, False: 10.6k]
  ------------------
  107|      0|    return true;
  108|      0|  }
  109|  10.6k|  byte buf[26];
  110|  10.6k|  const size_t curPos = iIo.tell();
  111|  10.6k|  if (curPos < 26)
  ------------------
  |  Branch (111:7): [True: 10.5k, False: 64]
  ------------------
  112|  10.5k|    return false;
  113|       |
  114|     64|  iIo.seek(-26, BasicIo::end);
  115|     64|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (115:7): [True: 0, False: 64]
  |  Branch (115:22): [True: 0, False: 64]
  ------------------
  116|      0|    return false;
  117|      0|  }
  118|     64|  iIo.read(buf, sizeof(buf));
  119|     64|  if (iIo.error()) {
  ------------------
  |  Branch (119:7): [True: 0, False: 64]
  ------------------
  120|      0|    return false;
  121|      0|  }
  122|       |  // some TARGA files, but not all, have a signature string at the end
  123|     64|  bool matched = (memcmp(buf + 8, "TRUEVISION-XFILE", 16) == 0);
  124|     64|  iIo.seek(curPos, BasicIo::beg);
  125|     64|  return matched;
  126|     64|}

_ZNK5Exiv28Internal15TiffMappingInfoeqERKNS1_3KeyE:
   41|   104M|bool TiffMappingInfo::operator==(const TiffMappingInfo::Key& key) const {
   42|   104M|  return (make_ == "*" || key.m_.starts_with(make_)) && (Tag::all == extendedTag_ || key.e_ == extendedTag_) &&
  ------------------
  |  Branch (42:11): [True: 104M, False: 0]
  |  Branch (42:27): [True: 0, False: 0]
  |  Branch (42:58): [True: 20.8M, False: 83.3M]
  |  Branch (42:86): [True: 22.1k, False: 83.3M]
  ------------------
   43|  20.8M|         key.g_ == group_;
  ------------------
  |  Branch (43:10): [True: 6.72k, False: 20.8M]
  ------------------
   44|   104M|}
_ZN5Exiv28Internal9IoWrapperC2ERNS_7BasicIoEPKhmPNS0_12OffsetWriterE:
   47|  14.4k|    io_(io), pHeader_(pHeader), size_(size), pow_(pow) {
   48|  14.4k|  if (!pHeader_ || size_ == 0)
  ------------------
  |  Branch (48:7): [True: 5.50k, False: 8.93k]
  |  Branch (48:20): [True: 0, False: 8.93k]
  ------------------
   49|  5.50k|    wroteHeader_ = true;
   50|  14.4k|}
_ZN5Exiv28Internal9IoWrapper5writeEPKhm:
   52|  4.10M|size_t IoWrapper::write(const byte* pData, size_t wcount) {
   53|  4.10M|  if (!wroteHeader_ && wcount > 0) {
  ------------------
  |  Branch (53:7): [True: 8.89k, False: 4.09M]
  |  Branch (53:24): [True: 8.89k, False: 0]
  ------------------
   54|  8.89k|    io_.write(pHeader_, size_);
   55|  8.89k|    wroteHeader_ = true;
   56|  8.89k|  }
   57|  4.10M|  return io_.write(pData, wcount);
   58|  4.10M|}
_ZN5Exiv28Internal9IoWrapper4putbEh:
   60|  20.9k|int IoWrapper::putb(byte data) {
   61|  20.9k|  if (!wroteHeader_) {
  ------------------
  |  Branch (61:7): [True: 0, False: 20.9k]
  ------------------
   62|      0|    io_.write(pHeader_, size_);
   63|      0|    wroteHeader_ = true;
   64|      0|  }
   65|  20.9k|  return io_.putb(data);
   66|  20.9k|}
_ZN5Exiv28Internal13TiffDirectoryC2EtNS_5IfdIdEb:
   76|   152k|TiffDirectory::TiffDirectory(uint16_t tag, IfdId group, bool hasNext) : TiffComponent(tag, group), hasNext_(hasNext) {
   77|   152k|}
_ZN5Exiv28Internal10TiffSubIfdC2EtNS_5IfdIdES2_:
   80|  54.3k|    TiffEntryBase(tag, group, ttUnsignedLong), newGroup_(newGroup) {
   81|  54.3k|}
_ZN5Exiv28Internal16TiffIfdMakernoteC2EtNS_5IfdIdES2_NSt3__110unique_ptrINS0_8MnHeaderENS3_14default_deleteIS5_EEEEb:
   85|  37.6k|    TiffComponent(tag, group), pHeader_(std::move(pHeader)), ifd_(tag, mnGroup, hasNext) {
   86|  37.6k|}
_ZN5Exiv28Internal16TiffIfdMakernoteD2Ev:
   88|  37.6k|TiffIfdMakernote::~TiffIfdMakernote() = default;
_ZN5Exiv28Internal15TiffBinaryArrayC2EtNS_5IfdIdERKNS0_8ArrayCfgEPKNS0_8ArrayDefEm:
   92|  63.6k|    TiffEntryBase(tag, group, arrayCfg.elTiffType_), arrayCfg_(&arrayCfg), arrayDef_(arrayDef), defSize_(defSize) {
   93|  63.6k|}
_ZN5Exiv28Internal15TiffBinaryArrayC2EtNS_5IfdIdEPKNS0_8ArraySetEmPFitPKhmPNS0_13TiffComponentEE:
   97|  4.31k|    TiffEntryBase(tag, group),  // Todo: Does it make a difference that there is no type?
   98|  4.31k|    cfgSelFct_(cfgSelFct),
   99|  4.31k|    arraySet_(arraySet),
  100|  4.31k|    setSize_(setSize) {
  101|       |  // We'll figure out the correct cfg later
  102|  4.31k|}
_ZN5Exiv28Internal13TiffEntryBaseC2EtNS_5IfdIdENS0_8TiffTypeE:
  118|  24.2M|    TiffComponent(tag, group), tiffType_(tiffType) {
  119|  24.2M|}
_ZN5Exiv28Internal13TiffEntryBaseD2Ev:
  121|  24.2M|TiffEntryBase::~TiffEntryBase() = default;
_ZN5Exiv28Internal17TiffDataEntryBaseC2EtNS_5IfdIdEtS2_:
  142|  57.7k|    TiffEntryBase(tag, group), szTag_(szTag), szGroup_(szGroup) {
  143|  57.7k|}
_ZN5Exiv28Internal13TiffSizeEntryC2EtNS_5IfdIdEtS2_:
  148|  79.0k|    TiffEntryBase(tag, group), dtTag_(dtTag), dtGroup_(dtGroup) {
  149|  79.0k|}
_ZN5Exiv28Internal11TiffMnEntryC2EtNS_5IfdIdES2_:
  152|  53.5k|    TiffEntryBase(tag, group, ttUndefined), mnGroup_(mnGroup) {
  153|  53.5k|}
_ZN5Exiv28Internal11TiffMnEntryD2Ev:
  155|  53.5k|TiffMnEntry::~TiffMnEntry() = default;
_ZNK5Exiv28Internal13TiffEntryBase3idxEv:
  205|  27.6M|int TiffEntryBase::idx() const {
  206|  27.6M|  return idx_;
  207|  27.6M|}
_ZN5Exiv28Internal13TiffEntryBase7setDataENSt3__110shared_ptrINS_7DataBufEEE:
  209|   152k|void TiffEntryBase::setData(std::shared_ptr<DataBuf> buf) {
  210|   152k|  storage_ = std::move(buf);
  211|   152k|  pData_ = storage_->data();
  212|   152k|  size_ = storage_->size();
  213|   152k|}
_ZN5Exiv28Internal13TiffEntryBase7setDataEPhmNSt3__110shared_ptrINS_7DataBufEEE:
  215|  18.0M|void TiffEntryBase::setData(byte* pData, size_t size, std::shared_ptr<DataBuf> storage) {
  216|  18.0M|  pData_ = pData;
  217|  18.0M|  size_ = size;
  218|  18.0M|  storage_ = std::move(storage);
  219|  18.0M|  if (!pData_)
  ------------------
  |  Branch (219:7): [True: 0, False: 18.0M]
  ------------------
  220|      0|    size_ = 0;
  221|  18.0M|}
_ZN5Exiv28Internal13TiffEntryBase11updateValueENSt3__110unique_ptrINS_5ValueENS2_14default_deleteIS4_EEEENS_9ByteOrderE:
  223|  2.71M|void TiffEntryBase::updateValue(Value::UniquePtr value, ByteOrder byteOrder) {
  224|  2.71M|  if (!value)
  ------------------
  |  Branch (224:7): [True: 0, False: 2.71M]
  ------------------
  225|      0|    return;
  226|  2.71M|  if (size_t newSize = value->size(); newSize > size_) {
  ------------------
  |  Branch (226:39): [True: 152k, False: 2.56M]
  ------------------
  227|   152k|    auto d = std::make_shared<DataBuf>(newSize);
  228|   152k|    setData(std::move(d));
  229|   152k|  }
  230|  2.71M|  if (pData_) {
  ------------------
  |  Branch (230:7): [True: 156k, False: 2.55M]
  ------------------
  231|   156k|    memset(pData_, 0x0, size_);
  232|   156k|  }
  233|  2.71M|  size_ = value->copy(pData_, byteOrder);
  234|  2.71M|  setValue(std::move(value));
  235|  2.71M|}
_ZN5Exiv28Internal13TiffEntryBase8setValueENSt3__110unique_ptrINS_5ValueENS2_14default_deleteIS4_EEEE:
  237|  20.9M|void TiffEntryBase::setValue(Value::UniquePtr value) {
  238|  20.9M|  if (!value)
  ------------------
  |  Branch (238:7): [True: 0, False: 20.9M]
  ------------------
  239|      0|    return;
  240|  20.9M|  tiffType_ = toTiffType(value->typeId());
  241|  20.9M|  count_ = value->count();
  242|  20.9M|  pValue_ = std::move(value);
  243|  20.9M|}
_ZN5Exiv28Internal13TiffDataEntry9setStripsEPKNS_5ValueEPKhmm:
  245|  9.09k|void TiffDataEntry::setStrips(const Value* pSize, const byte* pData, size_t sizeData, size_t baseOffset) {
  246|  9.09k|  if (!pValue() || !pSize) {
  ------------------
  |  Branch (246:7): [True: 425, False: 8.66k]
  |  Branch (246:20): [True: 588, False: 8.08k]
  ------------------
  247|  1.01k|#ifndef SUPPRESS_WARNINGS
  248|  1.01k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  1.01k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.01k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.01k|  LogMsg(LogMsg::warn).os()
  ------------------
  249|      0|                << tag() << ": Size or data offset value not set, ignoring them.\n";
  250|  1.01k|#endif
  251|  1.01k|    return;
  252|  1.01k|  }
  253|  8.08k|  if (pValue()->count() == 0) {
  ------------------
  |  Branch (253:7): [True: 1.60k, False: 6.47k]
  ------------------
  254|  1.60k|#ifndef SUPPRESS_WARNINGS
  255|  1.60k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  1.60k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.60k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.60k|  LogMsg(LogMsg::warn).os()
  ------------------
  256|      0|                << tag() << ": Data offset entry value is empty, ignoring it.\n";
  257|  1.60k|#endif
  258|  1.60k|    return;
  259|  1.60k|  }
  260|  6.47k|  if (pValue()->count() != pSize->count()) {
  ------------------
  |  Branch (260:7): [True: 1.92k, False: 4.55k]
  ------------------
  261|  1.92k|#ifndef SUPPRESS_WARNINGS
  262|  1.92k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  1.92k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.92k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.92k|  LogMsg(LogMsg::warn).os()
  ------------------
  263|      0|                << tag() << ": Size and data offset entries have different"
  264|      0|                << " number of components, ignoring them.\n";
  265|  1.92k|#endif
  266|  1.92k|    return;
  267|  1.92k|  }
  268|  4.55k|  size_t size = 0;
  269|  9.61k|  for (size_t i = 0; i < pSize->count(); ++i) {
  ------------------
  |  Branch (269:22): [True: 5.05k, False: 4.55k]
  ------------------
  270|  5.05k|    size = Safe::add<size_t>(size, pSize->toUint32(i));
  271|  5.05k|  }
  272|  4.55k|  const size_t offset = pValue()->toUint32(0);
  273|  4.55k|  if (size > sizeData || offset > sizeData - size || baseOffset > sizeData - size - offset) {
  ------------------
  |  Branch (273:7): [True: 118, False: 4.43k]
  |  Branch (273:26): [True: 146, False: 4.29k]
  |  Branch (273:54): [True: 84, False: 4.20k]
  ------------------
  274|    348|#ifndef SUPPRESS_WARNINGS
  275|    348|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|    348|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 348]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    348|  LogMsg(LogMsg::warn).os()
  ------------------
  276|      0|                << tag() << ": Data area exceeds data buffer, ignoring it.\n";
  277|    348|#endif
  278|    348|    return;
  279|    348|  }
  280|       |  // Todo: Remove limitation of JPEG writer: strips must be contiguous
  281|       |  // Until then we check: last offset + last size - first offset == size?
  282|  4.20k|  if (pValue()->toUint32(pValue()->count() - 1) + pSize->toUint32(pSize->count() - 1) != size + offset) {
  ------------------
  |  Branch (282:7): [True: 44, False: 4.16k]
  ------------------
  283|     44|#ifndef SUPPRESS_WARNINGS
  284|     44|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|     44|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 44]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     44|  LogMsg(LogMsg::warn).os()
  ------------------
  285|      0|                << tag() << ": Data area is not contiguous, ignoring it.\n";
  286|     44|#endif
  287|     44|    return;
  288|     44|  }
  289|  4.16k|  pDataArea_ = const_cast<byte*>(pData) + baseOffset + offset;
  290|  4.16k|  sizeDataArea_ = size;
  291|  4.16k|  const_cast<Value*>(pValue())->setDataArea(pDataArea_, sizeDataArea_);
  292|  4.16k|}  // TiffDataEntry::setStrips
_ZN5Exiv28Internal14TiffImageEntry9setStripsEPKNS_5ValueEPKhmm:
  294|  26.8k|void TiffImageEntry::setStrips(const Value* pSize, const byte* pData, size_t sizeData, size_t baseOffset) {
  295|  26.8k|  if (!pValue() || !pSize) {
  ------------------
  |  Branch (295:7): [True: 1.43k, False: 25.4k]
  |  Branch (295:20): [True: 2.12k, False: 23.2k]
  ------------------
  296|  3.55k|#ifndef SUPPRESS_WARNINGS
  297|  3.55k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  3.55k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 3.55k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  3.55k|  LogMsg(LogMsg::warn).os()
  ------------------
  298|      0|                << tag() << ": Size or data offset value not set, ignoring them.\n";
  299|  3.55k|#endif
  300|  3.55k|    return;
  301|  3.55k|  }
  302|  23.2k|  if (pValue()->count() != pSize->count()) {
  ------------------
  |  Branch (302:7): [True: 4.78k, False: 18.5k]
  ------------------
  303|  4.78k|#ifndef SUPPRESS_WARNINGS
  304|  4.78k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  4.78k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 4.78k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  4.78k|  LogMsg(LogMsg::warn).os()
  ------------------
  305|      0|                << tag() << ": Size and data offset entries have different"
  306|      0|                << " number of components, ignoring them.\n";
  307|  4.78k|#endif
  308|  4.78k|    return;
  309|  4.78k|  }
  310|  39.2k|  for (size_t i = 0; i < pValue()->count(); ++i) {
  ------------------
  |  Branch (310:22): [True: 20.7k, False: 18.5k]
  ------------------
  311|  20.7k|    const size_t offset = pValue()->toUint32(i);
  312|  20.7k|    const size_t size = pSize->toUint32(i);
  313|       |
  314|  20.7k|    if (size > sizeData || offset > sizeData - size || baseOffset > sizeData - size - offset) {
  ------------------
  |  Branch (314:9): [True: 5.56k, False: 15.1k]
  |  Branch (314:28): [True: 3.09k, False: 12.0k]
  |  Branch (314:56): [True: 28, False: 12.0k]
  ------------------
  315|  8.68k|#ifndef SUPPRESS_WARNINGS
  316|  8.68k|      EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  8.68k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 8.68k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  8.68k|  LogMsg(LogMsg::warn).os()
  ------------------
  317|      0|                  << tag() << ": Strip " << std::dec << i << " is outside of the data area; ignored.\n";
  318|  8.68k|#endif
  319|  12.0k|    } else if (size != 0) {
  ------------------
  |  Branch (319:16): [True: 9.77k, False: 2.28k]
  ------------------
  320|  9.77k|      const byte* pStrip = pData + baseOffset + offset;
  321|  9.77k|      strips_.emplace_back(pStrip, size);
  322|  9.77k|    }
  323|  20.7k|  }
  324|  18.5k|}  // TiffImageEntry::setStrips
_ZNK5Exiv28Internal16TiffIfdMakernote9ifdOffsetEv:
  326|  30.3k|size_t TiffIfdMakernote::ifdOffset() const {
  327|  30.3k|  if (!pHeader_)
  ------------------
  |  Branch (327:7): [True: 14.5k, False: 15.8k]
  ------------------
  328|  14.5k|    return 0;
  329|  15.8k|  return pHeader_->ifdOffset();
  330|  30.3k|}
_ZNK5Exiv28Internal16TiffIfdMakernote9byteOrderEv:
  332|  73.8k|ByteOrder TiffIfdMakernote::byteOrder() const {
  333|  73.8k|  if (!pHeader_ || pHeader_->byteOrder() == invalidByteOrder) {
  ------------------
  |  Branch (333:7): [True: 29.9k, False: 43.8k]
  |  Branch (333:20): [True: 34.2k, False: 9.65k]
  ------------------
  334|  64.2k|    return imageByteOrder_;
  335|  64.2k|  }
  336|  9.65k|  return pHeader_->byteOrder();
  337|  73.8k|}
_ZNK5Exiv28Internal16TiffIfdMakernote8mnOffsetEv:
  339|  29.9k|size_t TiffIfdMakernote::mnOffset() const {
  340|  29.9k|  return mnOffset_;
  341|  29.9k|}
_ZNK5Exiv28Internal16TiffIfdMakernote10baseOffsetEv:
  343|  37.0k|size_t TiffIfdMakernote::baseOffset() const {
  344|  37.0k|  if (!pHeader_)
  ------------------
  |  Branch (344:7): [True: 14.9k, False: 22.0k]
  ------------------
  345|  14.9k|    return 0;
  346|  22.0k|  return pHeader_->baseOffset(mnOffset_);
  347|  37.0k|}
_ZN5Exiv28Internal16TiffIfdMakernote10readHeaderEPKhmNS_9ByteOrderE:
  349|  30.8k|bool TiffIfdMakernote::readHeader(const byte* pData, size_t size, ByteOrder byteOrder) {
  350|  30.8k|  if (!pHeader_)
  ------------------
  |  Branch (350:7): [True: 14.5k, False: 16.3k]
  ------------------
  351|  14.5k|    return true;
  352|  16.3k|  return pHeader_->read(pData, size, byteOrder);
  353|  30.8k|}
_ZN5Exiv28Internal16TiffIfdMakernote12setByteOrderENS_9ByteOrderE:
  355|  5.41k|void TiffIfdMakernote::setByteOrder(ByteOrder byteOrder) {
  356|  5.41k|  if (pHeader_)
  ------------------
  |  Branch (356:7): [True: 4.97k, False: 448]
  ------------------
  357|  4.97k|    pHeader_->setByteOrder(byteOrder);
  358|  5.41k|}
_ZNK5Exiv28Internal16TiffIfdMakernote10sizeHeaderEv:
  360|  55.1k|size_t TiffIfdMakernote::sizeHeader() const {
  361|  55.1k|  if (!pHeader_)
  ------------------
  |  Branch (361:7): [True: 4.05k, False: 51.0k]
  ------------------
  362|  4.05k|    return 0;
  363|  51.0k|  return pHeader_->size();
  364|  55.1k|}
_ZNK5Exiv28Internal16TiffIfdMakernote11writeHeaderERNS0_9IoWrapperENS_9ByteOrderE:
  366|  6.69k|size_t TiffIfdMakernote::writeHeader(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
  367|  6.69k|  if (!pHeader_)
  ------------------
  |  Branch (367:7): [True: 447, False: 6.25k]
  ------------------
  368|    447|    return 0;
  369|  6.25k|  return pHeader_->write(ioWrapper, byteOrder);
  370|  6.69k|}
_ZNK5Exiv28Internal8ArrayDef4sizeEtNS_5IfdIdE:
  372|  31.7M|size_t ArrayDef::size(uint16_t tag, IfdId group) const {
  373|  31.7M|  TypeId typeId = toTypeId(tiffType_, tag, group);
  374|  31.7M|  return count_ * TypeInfo::typeSize(typeId);
  375|  31.7M|}
_ZN5Exiv28Internal15TiffBinaryArray10initializeENS_5IfdIdE:
  377|  1.06M|bool TiffBinaryArray::initialize(IfdId group) {
  378|  1.06M|  if (arrayCfg_)
  ------------------
  |  Branch (378:7): [True: 1.06M, False: 39]
  ------------------
  379|  1.06M|    return true;  // Not a complex array or already initialized
  380|       |
  381|    150|  for (size_t idx = 0; idx < setSize_; ++idx) {
  ------------------
  |  Branch (381:24): [True: 150, False: 0]
  ------------------
  382|    150|    if (arraySet_[idx].cfg_.group_ == group) {
  ------------------
  |  Branch (382:9): [True: 39, False: 111]
  ------------------
  383|     39|      arrayCfg_ = &arraySet_[idx].cfg_;
  384|     39|      arrayDef_ = arraySet_[idx].def_;
  385|     39|      defSize_ = arraySet_[idx].defSize_;
  386|     39|      return true;
  387|     39|    }
  388|    150|  }
  389|      0|  return false;
  390|     39|}
_ZN5Exiv28Internal15TiffBinaryArray10initializeEPNS0_13TiffComponentE:
  392|  12.5k|bool TiffBinaryArray::initialize(TiffComponent* pRoot) {
  393|  12.5k|  if (!cfgSelFct_)
  ------------------
  |  Branch (393:7): [True: 10.6k, False: 1.95k]
  ------------------
  394|  10.6k|    return true;  // Not a complex array
  395|       |
  396|  1.95k|  int idx = cfgSelFct_(tag(), pData(), TiffEntryBase::doSize(), pRoot);
  397|  1.95k|  if (idx > -1) {
  ------------------
  |  Branch (397:7): [True: 1.55k, False: 395]
  ------------------
  398|  1.55k|    arrayCfg_ = &arraySet_[idx].cfg_;
  399|  1.55k|    arrayDef_ = arraySet_[idx].def_;
  400|  1.55k|    defSize_ = arraySet_[idx].defSize_;
  401|  1.55k|  }
  402|  1.95k|  return idx > -1;
  403|  12.5k|}
_ZN5Exiv28Internal15TiffBinaryArray14iniOrigDataBufEv:
  405|  49.5k|void TiffBinaryArray::iniOrigDataBuf() {
  406|  49.5k|  origData_ = const_cast<byte*>(pData());
  407|  49.5k|  origSize_ = TiffEntryBase::doSize();
  408|  49.5k|}
_ZN5Exiv28Internal15TiffBinaryArray10addElementEmRKNS0_8ArrayDefE:
  419|  15.1M|size_t TiffBinaryArray::addElement(size_t idx, const ArrayDef& def) {
  420|  15.1M|  auto tag = static_cast<uint16_t>(idx / cfg()->tagStep());
  421|  15.1M|  auto sz = std::min<size_t>(def.size(tag, cfg()->group_), TiffEntryBase::doSize() - idx);
  422|  15.1M|  auto tc = TiffCreator::create(tag, cfg()->group_);
  423|  15.1M|  auto tp = dynamic_cast<TiffBinaryElement*>(tc.get());
  424|  15.1M|  if (!tp)
  ------------------
  |  Branch (424:7): [True: 0, False: 15.1M]
  ------------------
  425|      0|    return 0;
  426|       |  // The assertion typically fails if a component is not configured in
  427|       |  // the TIFF structure table (TiffCreator::tiffTreeStruct_)
  428|  15.1M|  tp->setStart(pData() + idx);
  429|  15.1M|  auto s = storage();
  430|  15.1M|  tp->setData(const_cast<byte*>(pData() + idx), sz, std::move(s));
  431|  15.1M|  tp->setElDef(def);
  432|  15.1M|  tp->setElByteOrder(cfg()->byteOrder_);
  433|  15.1M|  addChild(std::move(tc));
  434|  15.1M|  return sz;
  435|  15.1M|}  // TiffBinaryArray::addElement
_ZN5Exiv28Internal13TiffComponent7addPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPS1_NS2_10unique_ptrIS1_NS2_14default_deleteIS1_EEEE:
  438|  16.6M|                                      TiffComponent::UniquePtr object) {
  439|  16.6M|  return doAddPath(tag, tiffPath, pRoot, std::move(object));
  440|  16.6M|}  // TiffComponent::addPath
_ZN5Exiv28Internal13TiffComponent9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPS1_NS2_10unique_ptrIS1_NS2_14default_deleteIS1_EEEE:
  443|  2.71M|                                        TiffComponent::UniquePtr /*object*/) {
  444|  2.71M|  return this;
  445|  2.71M|}  // TiffComponent::doAddPath
_ZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  448|  6.80M|                                        TiffComponent::UniquePtr object) {
  449|  6.80M|  tiffPath.pop();
  450|  6.80M|  const TiffPathItem tpi = tiffPath.top();
  451|       |
  452|  6.80M|  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.80M|  if (tiffPath.size() > 1 || (tpi.extendedTag() == 0x927c && tpi.group() == IfdId::exifId)) {
  ------------------
  |  Branch (457:7): [True: 5.11M, False: 1.68M]
  |  Branch (457:31): [True: 721, False: 1.68M]
  |  Branch (457:62): [True: 442, False: 279]
  ------------------
  458|  5.11M|    if (tpi.extendedTag() == Tag::next) {
  ------------------
  |  Branch (458:9): [True: 4.96k, False: 5.11M]
  ------------------
  459|  4.96k|      tc = pNext_.get();
  460|  5.11M|    } else {
  461|  42.1M|      for (auto&& component : components_) {
  ------------------
  |  Branch (461:29): [True: 42.1M, False: 19.4k]
  ------------------
  462|  42.1M|        if (component->tag() == tpi.tag() && component->group() == tpi.group()) {
  ------------------
  |  Branch (462:13): [True: 5.16M, False: 36.9M]
  |  Branch (462:46): [True: 5.09M, False: 72.0k]
  ------------------
  463|  5.09M|          tc = component.get();
  464|  5.09M|          break;
  465|  5.09M|        }
  466|  42.1M|      }
  467|  5.11M|    }
  468|  5.11M|  }
  469|       |
  470|  6.80M|  if (tc)
  ------------------
  |  Branch (470:7): [True: 5.09M, False: 1.70M]
  ------------------
  471|  5.09M|    return tc->addPath(tag, tiffPath, pRoot, std::move(object));
  472|       |
  473|  1.70M|  auto atc = [&] {
  474|  1.70M|    if (tiffPath.size() == 1 && object) {
  475|  1.70M|      return std::move(object);
  476|  1.70M|    }
  477|  1.70M|    return TiffCreator::create(tpi.extendedTag(), tpi.group());
  478|  1.70M|  }();
  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.70M|  if (tiffPath.size() == 1 && dynamic_cast<const TiffSubIfd*>(atc.get()))
  ------------------
  |  Branch (482:7): [True: 1.68M, False: 19.5k]
  |  Branch (482:31): [True: 21.2k, False: 1.66M]
  ------------------
  483|  21.2k|    return nullptr;
  484|       |
  485|  1.68M|  tc = [&] {
  486|  1.68M|    if (tpi.extendedTag() == Tag::next)
  487|  1.68M|      return this->addNext(std::move(atc));
  488|  1.68M|    return this->addChild(std::move(atc));
  489|  1.68M|  }();
  490|  1.68M|  return tc->addPath(tag, tiffPath, pRoot, nullptr);
  491|  1.70M|}  // TiffDirectory::doAddPath
_ZN5Exiv28Internal10TiffSubIfd9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  494|  2.03M|                                     TiffComponent::UniquePtr object) {
  495|  2.03M|  const TiffPathItem tpi1 = tiffPath.top();
  496|  2.03M|  tiffPath.pop();
  497|  2.03M|  if (tiffPath.empty()) {
  ------------------
  |  Branch (497:7): [True: 0, False: 2.03M]
  ------------------
  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|  2.03M|  const TiffPathItem tpi2 = tiffPath.top();
  503|  2.03M|  tiffPath.push(tpi1);
  504|  2.03M|  for (const auto& ifd : ifds_)
  ------------------
  |  Branch (504:24): [True: 2.03M, False: 8.80k]
  ------------------
  505|  2.03M|    if (ifd->group() == tpi2.group())
  ------------------
  |  Branch (505:9): [True: 2.03M, False: 0]
  ------------------
  506|  2.03M|      return ifd->addPath(tag, tiffPath, pRoot, std::move(object));
  507|       |
  508|  8.80k|  auto tc = [&] {
  509|  8.80k|    if (tiffPath.size() == 1 && object) {
  510|  8.80k|      return addChild(std::move(object));
  511|  8.80k|    }
  512|  8.80k|    return addChild(std::make_unique<TiffDirectory>(tpi1.tag(), tpi2.group()));
  513|  8.80k|  }();
  514|  8.80k|  setCount(ifds_.size());
  515|  8.80k|  return tc->addPath(tag, tiffPath, pRoot, nullptr);
  516|  2.03M|}  // TiffSubIfd::doAddPath
_ZN5Exiv28Internal11TiffMnEntry9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  519|  2.01M|                                      TiffComponent::UniquePtr object) {
  520|  2.01M|  const TiffPathItem tpi1 = tiffPath.top();
  521|  2.01M|  tiffPath.pop();
  522|  2.01M|  if (tiffPath.empty()) {
  ------------------
  |  Branch (522:7): [True: 9.05k, False: 2.00M]
  ------------------
  523|       |    // If the last element in the path is the makernote tag itself we're done
  524|  9.05k|    return this;
  525|  9.05k|  }
  526|  2.00M|  const TiffPathItem tpi2 = tiffPath.top();
  527|  2.00M|  tiffPath.push(tpi1);
  528|  2.00M|  if (!mn_) {
  ------------------
  |  Branch (528:7): [True: 6.73k, False: 1.99M]
  ------------------
  529|  6.73k|    mnGroup_ = tpi2.group();
  530|  6.73k|    mn_ = TiffMnCreator::create(tpi1.tag(), tpi1.group(), mnGroup_);
  531|  6.73k|  }
  532|  2.00M|  return mn_->addPath(tag, tiffPath, pRoot, std::move(object));
  533|  2.01M|}  // TiffMnEntry::doAddPath
_ZN5Exiv28Internal16TiffIfdMakernote9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  536|  2.00M|                                           TiffComponent::UniquePtr object) {
  537|  2.00M|  return ifd_.addPath(tag, tiffPath, pRoot, std::move(object));
  538|  2.00M|}
_ZN5Exiv28Internal15TiffBinaryArray9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  541|  1.08M|                                          TiffComponent::UniquePtr object) {
  542|  1.08M|  pRoot_ = pRoot;
  543|  1.08M|  if (tiffPath.size() == 1) {
  ------------------
  |  Branch (543:7): [True: 13.1k, False: 1.06M]
  ------------------
  544|       |    // An unknown complex binary array has no children and acts like a standard TIFF entry
  545|  13.1k|    return this;
  546|  13.1k|  }
  547|  1.06M|  tiffPath.pop();
  548|  1.06M|  const TiffPathItem tpi = tiffPath.top();
  549|       |  // Initialize the binary array (if it is a complex array)
  550|  1.06M|  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|  1.06M|  if (tiffPath.size() > 1) {
  ------------------
  |  Branch (554:7): [True: 0, False: 1.06M]
  ------------------
  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|  1.06M|  if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (560:7): [True: 1.06M, False: 0]
  |  Branch (560:31): [True: 0, False: 1.06M]
  ------------------
  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|  1.06M|  auto tc = addChild(TiffCreator::create(tpi.extendedTag(), tpi.group()));
  567|  1.06M|  setCount(elements_.size());
  568|  1.06M|  return tc->addPath(tag, tiffPath, pRoot, std::move(object));
  569|  1.06M|}  // TiffBinaryArray::doAddPath
_ZN5Exiv28Internal13TiffComponent8addChildENSt3__110shared_ptrIS1_EE:
  571|  24.3M|TiffComponent* TiffComponent::addChild(TiffComponent::SharedPtr tiffComponent) {
  572|  24.3M|  return doAddChild(std::move(tiffComponent));
  573|  24.3M|}  // TiffComponent::addChild
_ZN5Exiv28Internal13TiffDirectory10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  579|  8.00M|TiffComponent* TiffDirectory::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  580|  8.00M|  return components_.emplace_back(std::move(tiffComponent)).get();
  581|  8.00M|}  // TiffDirectory::doAddChild
_ZN5Exiv28Internal10TiffSubIfd10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  583|  56.3k|TiffComponent* TiffSubIfd::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  584|  56.3k|  auto d = std::dynamic_pointer_cast<TiffDirectory>(std::move(tiffComponent));
  585|  56.3k|  if (!d)
  ------------------
  |  Branch (585:7): [True: 0, False: 56.3k]
  ------------------
  586|      0|    throw Error(ErrorCode::kerErrorMessage, "dynamic_pointer_cast to TiffDirectory failed");
  587|       |
  588|  56.3k|  return ifds_.emplace_back(std::move(d)).get();
  589|  56.3k|}  // TiffSubIfd::doAddChild
_ZN5Exiv28Internal15TiffBinaryArray10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  602|  16.2M|TiffComponent* TiffBinaryArray::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  603|  16.2M|  setDecoded(true);
  604|  16.2M|  return elements_.emplace_back(std::move(tiffComponent)).get();
  605|  16.2M|}  // TiffBinaryArray::doAddChild
_ZN5Exiv28Internal13TiffComponent7addNextENSt3__110unique_ptrIS1_NS2_14default_deleteIS1_EEEE:
  607|  2.24k|TiffComponent* TiffComponent::addNext(TiffComponent::UniquePtr tiffComponent) {
  608|  2.24k|  return doAddNext(std::move(tiffComponent));
  609|  2.24k|}  // TiffComponent::addNext
_ZN5Exiv28Internal13TiffDirectory9doAddNextENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEE:
  615|  2.24k|TiffComponent* TiffDirectory::doAddNext(TiffComponent::UniquePtr tiffComponent) {
  616|  2.24k|  if (hasNext_) {
  ------------------
  |  Branch (616:7): [True: 2.24k, False: 0]
  ------------------
  617|  2.24k|    pNext_ = std::move(tiffComponent);
  618|  2.24k|    return pNext_.get();
  619|  2.24k|  }
  620|      0|  return nullptr;
  621|  2.24k|}  // TiffDirectory::doAddNext
_ZN5Exiv28Internal13TiffComponent6acceptERNS0_11TiffVisitorE:
  634|   123M|void TiffComponent::accept(TiffVisitor& visitor) {
  635|   123M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (635:7): [True: 123M, False: 9.31k]
  ------------------
  636|   123M|    doAccept(visitor);  // one for NVI :)
  637|   123M|}  // TiffComponent::accept
_ZN5Exiv28Internal9TiffEntry8doAcceptERNS0_11TiffVisitorE:
  639|  43.7M|void TiffEntry::doAccept(TiffVisitor& visitor) {
  640|  43.7M|  visitor.visitEntry(this);
  641|  43.7M|}  // TiffEntry::doAccept
_ZN5Exiv28Internal13TiffDataEntry8doAcceptERNS0_11TiffVisitorE:
  643|   126k|void TiffDataEntry::doAccept(TiffVisitor& visitor) {
  644|   126k|  visitor.visitDataEntry(this);
  645|   126k|}  // TiffDataEntry::doAccept
_ZN5Exiv28Internal14TiffImageEntry8doAcceptERNS0_11TiffVisitorE:
  647|  1.36M|void TiffImageEntry::doAccept(TiffVisitor& visitor) {
  648|  1.36M|  visitor.visitImageEntry(this);
  649|  1.36M|}  // TiffImageEntry::doAccept
_ZN5Exiv28Internal13TiffSizeEntry8doAcceptERNS0_11TiffVisitorE:
  651|  2.37M|void TiffSizeEntry::doAccept(TiffVisitor& visitor) {
  652|  2.37M|  visitor.visitSizeEntry(this);
  653|  2.37M|}  // TiffSizeEntry::doAccept
_ZN5Exiv28Internal13TiffDirectory8doAcceptERNS0_11TiffVisitorE:
  655|  1.24M|void TiffDirectory::doAccept(TiffVisitor& visitor) {
  656|  1.24M|  visitor.visitDirectory(this);
  657|  49.3M|  for (auto&& component : components_) {
  ------------------
  |  Branch (657:25): [True: 49.3M, False: 987k]
  ------------------
  658|  49.3M|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (658:9): [True: 261k, False: 49.1M]
  ------------------
  659|   261k|      break;
  660|  49.1M|    component->accept(visitor);
  661|  49.1M|  }
  662|  1.24M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (662:7): [True: 978k, False: 269k]
  ------------------
  663|   978k|    visitor.visitDirectoryNext(this);
  664|  1.24M|  if (pNext_)
  ------------------
  |  Branch (664:7): [True: 27.3k, False: 1.22M]
  ------------------
  665|  27.3k|    pNext_->accept(visitor);
  666|  1.24M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (666:7): [True: 970k, False: 277k]
  ------------------
  667|   970k|    visitor.visitDirectoryEnd(this);
  668|  1.24M|}  // TiffDirectory::doAccept
_ZN5Exiv28Internal10TiffSubIfd8doAcceptERNS0_11TiffVisitorE:
  670|   223k|void TiffSubIfd::doAccept(TiffVisitor& visitor) {
  671|   223k|  visitor.visitSubIfd(this);
  672|   783k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (672:19): [True: 783k, False: 192k]
  ------------------
  673|   783k|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (673:9): [True: 30.8k, False: 752k]
  ------------------
  674|  30.8k|      break;
  675|   752k|    ifd->accept(visitor);
  676|   752k|  }
  677|   223k|}  // TiffSubIfd::doAccept
_ZN5Exiv28Internal11TiffMnEntry8doAcceptERNS0_11TiffVisitorE:
  679|   192k|void TiffMnEntry::doAccept(TiffVisitor& visitor) {
  680|   192k|  visitor.visitMnEntry(this);
  681|   192k|  if (mn_)
  ------------------
  |  Branch (681:7): [True: 143k, False: 49.3k]
  ------------------
  682|   143k|    mn_->accept(visitor);
  683|   192k|  if (!visitor.go(TiffVisitor::geKnownMakernote)) {
  ------------------
  |  Branch (683:7): [True: 1.40k, False: 191k]
  ------------------
  684|  1.40k|    mn_ = nullptr;
  685|  1.40k|  }
  686|       |
  687|   192k|}  // TiffMnEntry::doAccept
_ZN5Exiv28Internal16TiffIfdMakernote8doAcceptERNS0_11TiffVisitorE:
  689|   137k|void TiffIfdMakernote::doAccept(TiffVisitor& visitor) {
  690|   137k|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (690:7): [True: 137k, False: 0]
  ------------------
  691|   137k|    visitor.visitIfdMakernote(this);
  692|   137k|  if (visitor.go(TiffVisitor::geKnownMakernote))
  ------------------
  |  Branch (692:7): [True: 137k, False: 573]
  ------------------
  693|   137k|    ifd_.accept(visitor);
  694|   137k|  if (visitor.go(TiffVisitor::geKnownMakernote) && visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (694:7): [True: 137k, False: 573]
  |  Branch (694:52): [True: 95.8k, False: 41.4k]
  ------------------
  695|  95.8k|    visitor.visitIfdMakernoteEnd(this);
  696|   137k|}
_ZN5Exiv28Internal15TiffBinaryArray8doAcceptERNS0_11TiffVisitorE:
  698|   317k|void TiffBinaryArray::doAccept(TiffVisitor& visitor) {
  699|   317k|  visitor.visitBinaryArray(this);
  700|  73.0M|  for (auto&& element : elements_) {
  ------------------
  |  Branch (700:23): [True: 73.0M, False: 312k]
  ------------------
  701|  73.0M|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (701:9): [True: 5.14k, False: 73.0M]
  ------------------
  702|  5.14k|      break;
  703|  73.0M|    element->accept(visitor);
  704|  73.0M|  }
  705|   317k|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (705:7): [True: 267k, False: 49.8k]
  ------------------
  706|   267k|    visitor.visitBinaryArrayEnd(this);
  707|   317k|}
_ZN5Exiv28Internal17TiffBinaryElement8doAcceptERNS0_11TiffVisitorE:
  709|  73.8M|void TiffBinaryElement::doAccept(TiffVisitor& visitor) {
  710|  73.8M|  visitor.visitBinaryElement(this);
  711|  73.8M|}
_ZN5Exiv28Internal13TiffEntryBase6encodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  713|  2.73M|void TiffEntryBase::encode(TiffEncoder& encoder, const Exifdatum* datum) {
  714|  2.73M|  doEncode(encoder, datum);
  715|  2.73M|}
_ZN5Exiv28Internal17TiffBinaryElement8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  717|  1.06M|void TiffBinaryElement::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  718|  1.06M|  encoder.encodeBinaryElement(this, datum);
  719|  1.06M|}
_ZN5Exiv28Internal15TiffBinaryArray8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  721|  13.2k|void TiffBinaryArray::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  722|  13.2k|  encoder.encodeBinaryArray(this, datum);
  723|  13.2k|}
_ZN5Exiv28Internal13TiffDataEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  725|  4.80k|void TiffDataEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  726|  4.80k|  encoder.encodeDataEntry(this, datum);
  727|  4.80k|}
_ZN5Exiv28Internal9TiffEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  729|  1.61M|void TiffEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  730|  1.61M|  encoder.encodeTiffEntry(this, datum);
  731|  1.61M|}
_ZN5Exiv28Internal14TiffImageEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  733|  9.23k|void TiffImageEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  734|  9.23k|  encoder.encodeImageEntry(this, datum);
  735|  9.23k|}
_ZN5Exiv28Internal11TiffMnEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  737|  9.13k|void TiffMnEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  738|  9.13k|  encoder.encodeMnEntry(this, datum);
  739|  9.13k|}
_ZN5Exiv28Internal13TiffSizeEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  741|  16.5k|void TiffSizeEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  742|  16.5k|  encoder.encodeSizeEntry(this, datum);
  743|  16.5k|}
_ZN5Exiv28Internal10TiffSubIfd8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  745|     92|void TiffSubIfd::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  746|     92|  encoder.encodeSubIfd(this, datum);
  747|     92|}
_ZNK5Exiv28Internal13TiffComponent5countEv:
  749|  1.90M|size_t TiffComponent::count() const {
  750|  1.90M|  return doCount();
  751|  1.90M|}
_ZNK5Exiv28Internal13TiffDirectory7doCountEv:
  753|   140k|size_t TiffDirectory::doCount() const {
  754|   140k|  return components_.size();
  755|   140k|}
_ZNK5Exiv28Internal13TiffEntryBase7doCountEv:
  757|  1.74M|size_t TiffEntryBase::doCount() const {
  758|  1.74M|  return count_;
  759|  1.74M|}
_ZNK5Exiv28Internal11TiffMnEntry7doCountEv:
  761|  14.0k|size_t TiffMnEntry::doCount() const {
  762|  14.0k|  if (!mn_) {
  ------------------
  |  Branch (762:7): [True: 7.37k, False: 6.71k]
  ------------------
  763|  7.37k|    return TiffEntryBase::doCount();
  764|  7.37k|  }
  765|  6.71k|#ifndef SUPPRESS_WARNINGS
  766|       |  // Count of IFD makernote in tag Exif.Photo.MakerNote is the size of the
  767|       |  // Makernote in bytes
  768|  6.71k|  if (tiffType() != ttUndefined && tiffType() != ttUnsignedByte && tiffType() != ttSignedByte) {
  ------------------
  |  Branch (768:7): [True: 1.40k, False: 5.31k]
  |  Branch (768:36): [True: 1.38k, False: 17]
  |  Branch (768:68): [True: 1.33k, False: 48]
  ------------------
  769|  1.33k|    EXV_ERROR << stringFormat(
  ------------------
  |  |  142|  1.33k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 1.33k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  1.33k|  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.33k|  }
  773|  6.71k|#endif
  774|  6.71k|  return mn_->size();
  775|  14.0k|}
_ZNK5Exiv28Internal15TiffBinaryArray7doCountEv:
  781|  18.3k|size_t TiffBinaryArray::doCount() const {
  782|  18.3k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (782:7): [True: 237, False: 18.0k]
  |  Branch (782:17): [True: 12.5k, False: 5.50k]
  ------------------
  783|  12.8k|    return TiffEntryBase::doCount();
  784|       |
  785|  5.50k|  if (elements_.empty())
  ------------------
  |  Branch (785:7): [True: 0, False: 5.50k]
  ------------------
  786|      0|    return 0;
  787|       |
  788|  5.50k|  TypeId typeId = toTypeId(tiffType(), tag(), group());
  789|  5.50k|  size_t typeSize = TypeInfo::typeSize(typeId);
  790|  5.50k|  if (0 == typeSize) {
  ------------------
  |  Branch (790:7): [True: 292, False: 5.21k]
  ------------------
  791|    292|#ifndef SUPPRESS_WARNINGS
  792|    292|    EXV_WARNING << stringFormat("Directory {}, entry 0x{:04x} has unknown Exif (TIFF) type {}; setting type size 1.\n",
  ------------------
  |  |  138|    292|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 292]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    292|  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|    292|#endif
  795|    292|    typeSize = 1;
  796|    292|  }
  797|       |
  798|  5.50k|  return size() / typeSize;
  799|  5.50k|}
_ZN5Exiv28Internal13TiffComponent5writeERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  806|  2.77M|                            size_t& imageIdx) {
  807|  2.77M|  return doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  808|  2.77M|}  // TiffComponent::write
_ZN5Exiv28Internal13TiffDirectory7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  811|  24.6k|                              size_t& imageIdx) {
  812|  24.6k|  bool isRootDir = (imageIdx == std::string::npos);
  813|       |
  814|       |  // Number of components to write
  815|  24.6k|  const size_t compCount = count();
  816|  24.6k|  if (compCount > 0xffff)
  ------------------
  |  Branch (816:7): [True: 0, False: 24.6k]
  ------------------
  817|      0|    throw Error(ErrorCode::kerTooManyTiffDirectoryEntries, groupName(group()));
  818|       |
  819|       |  // Size of next IFD, if any
  820|  24.6k|  size_t sizeNext = 0;
  821|  24.6k|  if (pNext_)
  ------------------
  |  Branch (821:7): [True: 257, False: 24.3k]
  ------------------
  822|    257|    sizeNext = pNext_->size();
  823|       |
  824|       |  // Nothing to do if there are no entries and the size of the next IFD is 0
  825|  24.6k|  if (compCount == 0 && sizeNext == 0)
  ------------------
  |  Branch (825:7): [True: 173, False: 24.4k]
  |  Branch (825:25): [True: 38, False: 135]
  ------------------
  826|     38|    return 0;
  827|       |
  828|       |  // Remember the offset of the CR2 RAW IFD
  829|  24.5k|  if (group() == IfdId::ifd3Id) {
  ------------------
  |  Branch (829:7): [True: 0, False: 24.5k]
  ------------------
  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|  24.5k|  const size_t sizeDir = 2 + (12 * compCount) + (hasNext_ ? 4 : 0);
  ------------------
  |  Branch (837:50): [True: 24.5k, False: 53]
  ------------------
  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|  24.5k|  if (group() < IfdId::mnId) {
  ------------------
  |  Branch (841:7): [True: 14.7k, False: 9.87k]
  ------------------
  842|  14.7k|    std::sort(components_.begin(), components_.end(), cmpTagLt);
  843|  14.7k|  }
  844|       |  // Size of IFD values and additional data
  845|  24.5k|  size_t sizeValue = 0;
  846|  24.5k|  size_t sizeData = 0;
  847|  1.68M|  for (auto&& component : components_) {
  ------------------
  |  Branch (847:25): [True: 1.68M, False: 24.5k]
  ------------------
  848|  1.68M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (848:40): [True: 81.9k, False: 1.59M]
  ------------------
  849|  81.9k|      sv += sv & 1;  // Align value to word boundary
  850|  81.9k|      sizeValue += sv;
  851|  81.9k|    }
  852|       |    // Also add the size of data, but only if needed
  853|  1.68M|    if (isRootDir) {
  ------------------
  |  Branch (853:9): [True: 735k, False: 945k]
  ------------------
  854|   735k|      auto sd = component->sizeData();
  855|   735k|      sd += sd & 1;  // Align data to word boundary
  856|   735k|      sizeData += sd;
  857|   735k|    }
  858|  1.68M|  }
  859|       |
  860|  24.5k|  size_t idx = 0;                 // Current IFD index / bytes written
  861|  24.5k|  valueIdx = sizeDir;             // Offset to the current IFD value
  862|  24.5k|  dataIdx = sizeDir + sizeValue;  // Offset to the entry's data area
  863|  24.5k|  if (isRootDir) {                // Absolute offset to the image data
  ------------------
  |  Branch (863:7): [True: 8.89k, False: 15.7k]
  ------------------
  864|  8.89k|    imageIdx = offset + dataIdx + sizeData + sizeNext;
  865|  8.89k|    imageIdx += imageIdx & 1;  // Align image data to word boundary
  866|  8.89k|  }
  867|       |
  868|       |  // 1st: Write the IFD, a) Number of directory entries
  869|  24.5k|  byte buf[4];
  870|  24.5k|  us2Data(buf, static_cast<uint16_t>(compCount), byteOrder);
  871|  24.5k|  ioWrapper.write(buf, 2);
  872|  24.5k|  idx += 2;
  873|       |  // b) Directory entries - may contain pointers to the value or data
  874|  1.68M|  for (auto&& component : components_) {
  ------------------
  |  Branch (874:25): [True: 1.68M, False: 24.5k]
  ------------------
  875|  1.68M|    idx += writeDirEntry(ioWrapper, byteOrder, offset, component.get(), valueIdx, dataIdx, imageIdx);
  876|  1.68M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (876:40): [True: 81.9k, False: 1.59M]
  ------------------
  877|  81.9k|      sv += sv & 1;  // Align value to word boundary
  878|  81.9k|      valueIdx += sv;
  879|  81.9k|    }
  880|  1.68M|    auto sd = component->sizeData();
  881|  1.68M|    sd += sd & 1;  // Align data to word boundary
  882|  1.68M|    dataIdx += sd;
  883|  1.68M|  }
  884|       |  // c) Pointer to the next IFD
  885|  24.5k|  if (hasNext_) {
  ------------------
  |  Branch (885:7): [True: 24.5k, False: 95]
  ------------------
  886|  24.5k|    memset(buf, 0x0, 4);
  887|  24.5k|    if (pNext_ && sizeNext) {
  ------------------
  |  Branch (887:9): [True: 257, False: 24.2k]
  |  Branch (887:19): [True: 256, False: 1]
  ------------------
  888|    256|      l2Data(buf, static_cast<uint32_t>(offset + dataIdx), byteOrder);
  889|    256|    }
  890|  24.5k|    ioWrapper.write(buf, 4);
  891|  24.5k|    idx += 4;
  892|  24.5k|  }
  893|       |
  894|       |  // 2nd: Write IFD values - may contain pointers to additional data
  895|  24.5k|  valueIdx = sizeDir;
  896|  24.5k|  dataIdx = sizeDir + sizeValue;
  897|  1.67M|  for (auto&& component : components_) {
  ------------------
  |  Branch (897:25): [True: 1.67M, False: 24.5k]
  ------------------
  898|  1.67M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (898:40): [True: 81.8k, False: 1.59M]
  ------------------
  899|  81.8k|      size_t d = component->write(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  900|  81.8k|      enforce(sv == d, ErrorCode::kerImageWriteFailed);
  901|  81.8k|      if ((sv & 1) == 1) {
  ------------------
  |  Branch (901:11): [True: 20.8k, False: 61.0k]
  ------------------
  902|  20.8k|        ioWrapper.putb(0x0);  // Align value to word boundary
  903|  20.8k|        sv += 1;
  904|  20.8k|      }
  905|  81.8k|      idx += sv;
  906|  81.8k|      valueIdx += sv;
  907|  81.8k|    }
  908|  1.67M|    auto sd = component->sizeData();
  909|  1.67M|    sd += sd & 1;  // Align data to word boundary
  910|  1.67M|    dataIdx += sd;
  911|  1.67M|  }
  912|       |
  913|       |  // 3rd: Write data - may contain offsets too (eg sub-IFD)
  914|  24.5k|  dataIdx = sizeDir + sizeValue;
  915|  24.5k|  idx += writeData(ioWrapper, byteOrder, offset, dataIdx, imageIdx);
  916|       |
  917|       |  // 4th: Write next-IFD
  918|  24.5k|  if (pNext_ && sizeNext) {
  ------------------
  |  Branch (918:7): [True: 257, False: 24.3k]
  |  Branch (918:17): [True: 256, False: 1]
  ------------------
  919|    256|    idx += pNext_->write(ioWrapper, byteOrder, offset + idx, std::string::npos, std::string::npos, imageIdx);
  920|    256|  }
  921|       |
  922|       |  // 5th, at the root directory level only: write image data
  923|  24.5k|  if (isRootDir) {
  ------------------
  |  Branch (923:7): [True: 8.80k, False: 15.7k]
  ------------------
  924|  8.80k|    idx += writeImage(ioWrapper, byteOrder);
  925|  8.80k|  }
  926|       |
  927|  24.5k|  return idx;
  928|  24.6k|}
_ZN5Exiv28Internal13TiffDirectory13writeDirEntryERNS0_9IoWrapperENS_9ByteOrderEmPNS0_13TiffComponentEmmRm:
  931|  1.68M|                                    TiffComponent* pTiffComponent, size_t valueIdx, size_t dataIdx, size_t& imageIdx) {
  932|  1.68M|  auto pDirEntry = dynamic_cast<TiffEntryBase*>(pTiffComponent);
  933|  1.68M|  if (!pDirEntry)
  ------------------
  |  Branch (933:7): [True: 0, False: 1.68M]
  ------------------
  934|      0|    return 0;
  935|  1.68M|  byte buf[8];
  936|  1.68M|  us2Data(buf, pDirEntry->tag(), byteOrder);
  937|  1.68M|  us2Data(buf + 2, pDirEntry->tiffType(), byteOrder);
  938|  1.68M|  ul2Data(buf + 4, static_cast<uint32_t>(pDirEntry->count()), byteOrder);
  939|  1.68M|  ioWrapper.write(buf, 8);
  940|  1.68M|  if (pDirEntry->size() > 4) {
  ------------------
  |  Branch (940:7): [True: 81.9k, False: 1.59M]
  ------------------
  941|  81.9k|    pDirEntry->setOffset(Safe::add<size_t>(offset, valueIdx));
  942|  81.9k|    ul2Data(buf, static_cast<uint32_t>(pDirEntry->offset()), byteOrder);
  943|  81.9k|    ioWrapper.write(buf, 4);
  944|  1.59M|  } else {
  945|  1.59M|    const size_t len = pDirEntry->write(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  946|  1.59M|#ifndef SUPPRESS_WARNINGS
  947|  1.59M|    if (len > 4) {
  ------------------
  |  Branch (947:9): [True: 3, False: 1.59M]
  ------------------
  948|      3|      EXV_ERROR << "Unexpected length in TiffDirectory::writeDirEntry(): len == " << len << ".\n";
  ------------------
  |  |  142|      3|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 3]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      3|  LogMsg(LogMsg::error).os()
  ------------------
  949|      3|    }
  950|  1.59M|#endif
  951|  1.59M|    if (len < 4) {
  ------------------
  |  Branch (951:9): [True: 1.58M, False: 18.0k]
  ------------------
  952|  1.58M|      memset(buf, 0x0, 4);
  953|  1.58M|      ioWrapper.write(buf, 4 - len);
  954|  1.58M|    }
  955|  1.59M|  }
  956|  1.68M|  return 12;
  957|  1.68M|}  // TiffDirectory::writeDirEntry
_ZN5Exiv28Internal13TiffEntryBase7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  960|  1.64M|                              size_t /*dataIdx*/, size_t& /*imageIdx*/) {
  961|  1.64M|  if (!pValue_ || pValue_->size() == 0)
  ------------------
  |  Branch (961:7): [True: 0, False: 1.64M]
  |  Branch (961:19): [True: 1.53M, False: 113k]
  ------------------
  962|  1.53M|    return 0;
  963|       |
  964|   113k|  DataBuf buf(pValue_->size());
  965|   113k|  pValue_->copy(buf.data(), byteOrder);
  966|   113k|  ioWrapper.write(buf.c_data(), buf.size());
  967|   113k|  return buf.size();
  968|  1.64M|}  // TiffEntryBase::doWrite
_ZN5Exiv28Internal13TiffEntryBase11writeOffsetEPhmNS0_8TiffTypeENS_9ByteOrderE:
  970|  12.5k|size_t TiffEntryBase::writeOffset(byte* buf, size_t offset, TiffType tiffType, ByteOrder byteOrder) {
  971|  12.5k|  size_t rc = 0;
  972|  12.5k|  switch (tiffType) {
  973|    438|    case ttUnsignedShort:
  ------------------
  |  Branch (973:5): [True: 438, False: 12.1k]
  ------------------
  974|    921|    case ttSignedShort:
  ------------------
  |  Branch (974:5): [True: 483, False: 12.0k]
  ------------------
  975|    921|      if (offset > std::numeric_limits<uint16_t>::max())
  ------------------
  |  Branch (975:11): [True: 6, False: 915]
  ------------------
  976|      6|        throw Error(ErrorCode::kerOffsetOutOfRange);
  977|    915|      rc = us2Data(buf, static_cast<uint16_t>(offset), byteOrder);
  978|    915|      break;
  979|  10.8k|    case ttUnsignedLong:
  ------------------
  |  Branch (979:5): [True: 10.8k, False: 1.66k]
  ------------------
  980|  11.5k|    case ttSignedLong:
  ------------------
  |  Branch (980:5): [True: 669, False: 11.8k]
  ------------------
  981|  11.5k|      rc = l2Data(buf, static_cast<uint32_t>(offset), byteOrder);
  982|  11.5k|      break;
  983|     74|    default:
  ------------------
  |  Branch (983:5): [True: 74, False: 12.4k]
  ------------------
  984|     74|      throw Error(ErrorCode::kerUnsupportedDataAreaOffsetType);
  985|  12.5k|  }
  986|  12.4k|  return rc;
  987|  12.5k|}  // TiffEntryBase::writeOffset
_ZN5Exiv28Internal13TiffDataEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  990|  4.70k|                              size_t dataIdx, size_t& /*imageIdx*/) {
  991|  4.70k|  if (!pValue() || pValue()->count() == 0)
  ------------------
  |  Branch (991:7): [True: 0, False: 4.70k]
  |  Branch (991:20): [True: 4.61k, False: 95]
  ------------------
  992|  4.61k|    return 0;
  993|       |
  994|     95|  DataBuf buf(pValue()->size());
  995|     95|  size_t idx = 0;
  996|     95|  const size_t prevOffset = pValue()->toUint32(0);
  997|  2.65k|  for (size_t i = 0; i < count(); ++i) {
  ------------------
  |  Branch (997:22): [True: 2.56k, False: 95]
  ------------------
  998|  2.56k|    const size_t iOffset = pValue()->toUint32(i);
  999|  2.56k|    enforce(prevOffset <= iOffset, ErrorCode::kerOffsetOutOfRange);
 1000|  2.56k|    const auto newDataIdx = Safe::add<size_t>(iOffset - prevOffset, dataIdx);
 1001|  2.56k|    idx += writeOffset(buf.data(idx), Safe::add(offset, newDataIdx), tiffType(), byteOrder);
 1002|  2.56k|  }
 1003|     95|  ioWrapper.write(buf.c_data(), buf.size());
 1004|     95|  return buf.size();
 1005|  4.70k|}
_ZN5Exiv28Internal14TiffImageEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1008|  9.07k|                               size_t dataIdx, size_t& imageIdx) {
 1009|  9.07k|  size_t o2 = imageIdx;
 1010|       |  // For makernotes, write TIFF image data to the data area
 1011|  9.07k|  if (group() > IfdId::mnId)
  ------------------
  |  Branch (1011:7): [True: 91, False: 8.98k]
  ------------------
 1012|     91|    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|  9.07k|  DataBuf buf(strips_.size() * 4);
 1018|  9.07k|  size_t idx = 0;
 1019|  9.07k|  for (const auto& [_, off] : strips_) {
  ------------------
  |  Branch (1019:29): [True: 1.23k, False: 9.07k]
  ------------------
 1020|  1.23k|    idx += writeOffset(buf.data(idx), o2, tiffType(), byteOrder);
 1021|       |    // Align strip data to word boundary
 1022|  1.23k|    const auto sz = Safe::add(off, off & 1);
 1023|  1.23k|    o2 = Safe::add(o2, sz);
 1024|  1.23k|    if (group() <= IfdId::mnId)
  ------------------
  |  Branch (1024:9): [True: 1.16k, False: 65]
  ------------------
 1025|  1.16k|      imageIdx = Safe::add(imageIdx, sz);
 1026|  1.23k|  }
 1027|  9.07k|  ioWrapper.write(buf.c_data(), buf.size());
 1028|  9.07k|  return buf.size();
 1029|  9.07k|}  // TiffImageEntry::doWrite
_ZN5Exiv28Internal10TiffSubIfd7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1032|  8.76k|                           size_t dataIdx, size_t& /*imageIdx*/) {
 1033|  8.76k|  DataBuf buf(ifds_.size() * 4);
 1034|  8.76k|  size_t idx = 0;
 1035|       |  // Sort IFDs by group, needed if image data tags were copied first
 1036|  8.76k|  std::sort(ifds_.begin(), ifds_.end(), [](const auto& lhs, const auto& rhs) { return lhs->group() < rhs->group(); });
 1037|  8.76k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (1037:19): [True: 8.76k, False: 8.76k]
  ------------------
 1038|  8.76k|    idx += writeOffset(buf.data(idx), offset + dataIdx, tiffType(), byteOrder);
 1039|  8.76k|    dataIdx += ifd->size();
 1040|  8.76k|  }
 1041|  8.76k|  ioWrapper.write(buf.c_data(), buf.size());
 1042|  8.76k|  return buf.size();
 1043|  8.76k|}  // TiffSubIfd::doWrite
_ZN5Exiv28Internal11TiffMnEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1046|  14.0k|                            size_t& imageIdx) {
 1047|  14.0k|  if (!mn_) {
  ------------------
  |  Branch (1047:7): [True: 7.33k, False: 6.69k]
  ------------------
 1048|  7.33k|    return TiffEntryBase::doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
 1049|  7.33k|  }
 1050|  6.69k|  return mn_->write(ioWrapper, byteOrder, offset + valueIdx, std::string::npos, std::string::npos, imageIdx);
 1051|  14.0k|}  // TiffMnEntry::doWrite
_ZN5Exiv28Internal16TiffIfdMakernote7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1054|  6.69k|                                 size_t /*dataIdx*/, size_t& imageIdx) {
 1055|  6.69k|  mnOffset_ = offset;
 1056|  6.69k|  setImageByteOrder(byteOrder);
 1057|  6.69k|  auto len = writeHeader(ioWrapper, this->byteOrder());
 1058|  6.69k|  len += ifd_.write(ioWrapper, this->byteOrder(), offset - baseOffset() + len, std::string::npos, std::string::npos,
 1059|  6.69k|                    imageIdx);
 1060|  6.69k|  return len;
 1061|  6.69k|}  // TiffIfdMakernote::doWrite
_ZN5Exiv28Internal15TiffBinaryArray7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1064|  18.3k|                                size_t dataIdx, size_t& imageIdx) {
 1065|  18.3k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (1065:7): [True: 237, False: 18.0k]
  |  Branch (1065:17): [True: 12.5k, False: 5.50k]
  ------------------
 1066|  12.8k|    return TiffEntryBase::doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
 1067|  5.50k|  if (cfg()->byteOrder_ != invalidByteOrder)
  ------------------
  |  Branch (1067:7): [True: 653, False: 4.84k]
  ------------------
 1068|    653|    byteOrder = cfg()->byteOrder_;
 1069|       |  // Tags must be sorted in ascending order
 1070|  5.50k|  std::sort(elements_.begin(), elements_.end(), cmpTagLt);
 1071|  5.50k|  size_t idx = 0;
 1072|  5.50k|  MemIo mio;  // memory stream in which to store data
 1073|  5.50k|  IoWrapper mioWrapper(mio, nullptr, 0, nullptr);
 1074|       |  // Some array entries need to have the size in the first element
 1075|  5.50k|  if (cfg()->hasSize_) {
  ------------------
  |  Branch (1075:7): [True: 98, False: 5.40k]
  ------------------
 1076|     98|    byte buf[4];
 1077|     98|    size_t elSize = TypeInfo::typeSize(toTypeId(cfg()->elTiffType_, 0, cfg()->group_));
 1078|     98|    switch (elSize) {
 1079|     93|      case 2:
  ------------------
  |  Branch (1079:7): [True: 93, False: 5]
  ------------------
 1080|     93|        idx += us2Data(buf, static_cast<uint16_t>(size()), byteOrder);
 1081|     93|        break;
 1082|      5|      case 4:
  ------------------
  |  Branch (1082:7): [True: 5, False: 93]
  ------------------
 1083|      5|        idx += ul2Data(buf, static_cast<uint32_t>(size()), byteOrder);
 1084|      5|        break;
 1085|      0|      default:
  ------------------
  |  Branch (1085:7): [True: 0, False: 98]
  ------------------
 1086|      0|        break;
 1087|     98|    }
 1088|     98|    mioWrapper.write(buf, elSize);
 1089|     98|  }
 1090|       |  // write all tags of the array (Todo: assumes that there are no duplicates, need check)
 1091|  1.06M|  for (auto&& element : elements_) {
  ------------------
  |  Branch (1091:23): [True: 1.06M, False: 5.50k]
  ------------------
 1092|       |    // Skip the manufactured tag, if it exists
 1093|  1.06M|    if (cfg()->hasSize_ && element->tag() == 0)
  ------------------
  |  Branch (1093:9): [True: 7.49k, False: 1.06M]
  |  Branch (1093:28): [True: 98, False: 7.39k]
  ------------------
 1094|     98|      continue;
 1095|  1.06M|    size_t newIdx = element->tag() * cfg()->tagStep();
 1096|  1.06M|    idx += fillGap(mioWrapper, idx, newIdx);
 1097|  1.06M|    idx += element->write(mioWrapper, byteOrder, offset + newIdx, valueIdx, dataIdx, imageIdx);
 1098|  1.06M|  }
 1099|  5.50k|  if (cfg()->hasFillers_ && def()) {
  ------------------
  |  Branch (1099:7): [True: 4.72k, False: 776]
  |  Branch (1099:29): [True: 4.72k, False: 0]
  ------------------
 1100|  4.72k|    const ArrayDef* lastDef = def() + defSize() - 1;
 1101|  4.72k|    auto lastTag = static_cast<uint16_t>(lastDef->idx_ / cfg()->tagStep());
 1102|  4.72k|    idx += fillGap(mioWrapper, idx, lastDef->idx_ + lastDef->size(lastTag, cfg()->group_));
 1103|  4.72k|  }
 1104|       |
 1105|  5.50k|  if (cfg()->cryptFct_) {
  ------------------
  |  Branch (1105:7): [True: 68, False: 5.43k]
  ------------------
 1106|       |    // Select sonyTagEncipher
 1107|     68|    CryptFct cryptFct = cfg()->cryptFct_;
 1108|     68|    if (cryptFct == &sonyTagDecipher) {
  ------------------
  |  Branch (1108:9): [True: 33, False: 35]
  ------------------
 1109|     33|      cryptFct = sonyTagEncipher;
 1110|     33|    }
 1111|     68|    DataBuf buf = cryptFct(tag(), mio.mmap(), mio.size(), pRoot_);
 1112|     68|    if (!buf.empty()) {
  ------------------
  |  Branch (1112:9): [True: 33, False: 35]
  ------------------
 1113|     33|      mio.seek(0, Exiv2::BasicIo::beg);
 1114|     33|      mio.write(buf.c_data(), buf.size());
 1115|     33|    }
 1116|     68|  }
 1117|  5.50k|  ioWrapper.write(mio.mmap(), mio.size());
 1118|       |
 1119|  5.50k|  return idx;
 1120|  5.50k|}  // TiffBinaryArray::doWrite
_ZN5Exiv28Internal17TiffBinaryElement7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1123|  1.06M|                                  size_t /*dataIdx*/, size_t& /*imageIdx*/) {
 1124|  1.06M|  auto pv = pValue();
 1125|  1.06M|  if (!pv || pv->count() == 0)
  ------------------
  |  Branch (1125:7): [True: 0, False: 1.06M]
  |  Branch (1125:14): [True: 1.03M, False: 32.8k]
  ------------------
 1126|  1.03M|    return 0;
 1127|  32.8k|  DataBuf buf(pv->size());
 1128|  32.8k|  pv->copy(buf.data(), byteOrder);
 1129|  32.8k|  ioWrapper.write(buf.c_data(), buf.size());
 1130|  32.8k|  return buf.size();
 1131|  1.06M|}  // TiffBinaryElement::doWrite
_ZNK5Exiv28Internal13TiffComponent9writeDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1134|  1.70M|                                size_t& imageIdx) const {
 1135|  1.70M|  return doWriteData(ioWrapper, byteOrder, offset, dataIdx, imageIdx);
 1136|  1.70M|}  // TiffComponent::writeData
_ZNK5Exiv28Internal13TiffDirectory11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1139|  24.4k|                                  size_t& imageIdx) const {
 1140|  24.4k|  size_t len = 0;
 1141|  1.67M|  for (auto&& component : components_) {
  ------------------
  |  Branch (1141:25): [True: 1.67M, False: 24.4k]
  ------------------
 1142|  1.67M|    len += component->writeData(ioWrapper, byteOrder, offset, dataIdx + len, imageIdx);
 1143|  1.67M|  }
 1144|  24.4k|  return len;
 1145|  24.4k|}  // TiffDirectory::doWriteData
_ZNK5Exiv28Internal13TiffEntryBase11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1148|  1.65M|                                  size_t /*dataIdx*/, size_t& /*imageIdx*/) const {
 1149|  1.65M|  return 0;
 1150|  1.65M|}  // TiffEntryBase::doWriteData
_ZNK5Exiv28Internal14TiffImageEntry11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1153|  9.01k|                                   size_t& /*imageIdx*/) const {
 1154|  9.01k|  size_t len = 0;
 1155|       |  // For makernotes, write TIFF image data to the data area
 1156|  9.01k|  if (group() > IfdId::mnId) {  // Todo: FIX THIS HACK!!!
  ------------------
  |  Branch (1156:7): [True: 87, False: 8.93k]
  ------------------
 1157|     87|    len = writeImage(ioWrapper, byteOrder);
 1158|     87|  }
 1159|  9.01k|  return len;
 1160|  9.01k|}  // TiffImageEntry::doWriteData
_ZNK5Exiv28Internal13TiffDataEntry11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1163|  4.65k|                                  size_t& /*imageIdx*/) const {
 1164|  4.65k|  if (!pValue())
  ------------------
  |  Branch (1164:7): [True: 0, False: 4.65k]
  ------------------
 1165|      0|    return 0;
 1166|       |
 1167|  4.65k|  DataBuf buf = pValue()->dataArea();
 1168|  4.65k|  if (!buf.empty())
  ------------------
  |  Branch (1168:7): [True: 16, False: 4.63k]
  ------------------
 1169|     16|    ioWrapper.write(buf.c_data(), buf.size());
 1170|       |  // Align data to word boundary
 1171|  4.65k|  size_t align = (buf.size() & 1);
 1172|  4.65k|  if (align)
  ------------------
  |  Branch (1172:7): [True: 15, False: 4.63k]
  ------------------
 1173|     15|    ioWrapper.putb(0x0);
 1174|       |
 1175|  4.65k|  return buf.size() + align;
 1176|  4.65k|}  // TiffDataEntry::doWriteData
_ZNK5Exiv28Internal10TiffSubIfd11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1179|  8.74k|                               size_t& imageIdx) const {
 1180|  8.74k|  size_t len = 0;
 1181|  8.74k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (1181:19): [True: 8.74k, False: 8.74k]
  ------------------
 1182|  8.74k|    len += ifd->write(ioWrapper, byteOrder, offset + dataIdx + len, std::string::npos, std::string::npos, imageIdx);
 1183|  8.74k|  }
 1184|       |  // Align data to word boundary
 1185|  8.74k|  size_t align = (len & 1);
 1186|  8.74k|  if (align)
  ------------------
  |  Branch (1186:7): [True: 0, False: 8.74k]
  ------------------
 1187|      0|    ioWrapper.putb(0x0);
 1188|       |
 1189|  8.74k|  return len + align;
 1190|  8.74k|}  // TiffSubIfd::doWriteData
_ZNK5Exiv28Internal13TiffComponent10writeImageERNS0_9IoWrapperENS_9ByteOrderE:
 1197|   773k|size_t TiffComponent::writeImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1198|   773k|  return doWriteImage(ioWrapper, byteOrder);
 1199|   773k|}  // TiffComponent::writeImage
_ZNK5Exiv28Internal13TiffDirectory12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1201|  14.6k|size_t TiffDirectory::doWriteImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1202|  14.6k|  size_t len = 0;
 1203|  14.6k|  const TiffComponent* pSubIfd = nullptr;
 1204|   758k|  for (const auto& component : components_) {
  ------------------
  |  Branch (1204:30): [True: 758k, False: 14.6k]
  ------------------
 1205|   758k|    if (component->tag() == 0x014a) {
  ------------------
  |  Branch (1205:9): [True: 24, False: 758k]
  ------------------
 1206|       |      // Hack: delay writing of sub-IFD image data to get the order correct
 1207|     24|#ifndef SUPPRESS_WARNINGS
 1208|     24|      if (pSubIfd) {
  ------------------
  |  Branch (1208:11): [True: 10, False: 14]
  ------------------
 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|     24|#endif
 1212|     24|      pSubIfd = component.get();
 1213|     24|      continue;
 1214|     24|    }
 1215|   758k|    len += component->writeImage(ioWrapper, byteOrder);
 1216|   758k|  }
 1217|  14.6k|  if (pSubIfd) {
  ------------------
  |  Branch (1217:7): [True: 14, False: 14.5k]
  ------------------
 1218|     14|    len += pSubIfd->writeImage(ioWrapper, byteOrder);
 1219|     14|  }
 1220|  14.6k|  if (pNext_) {
  ------------------
  |  Branch (1220:7): [True: 234, False: 14.3k]
  ------------------
 1221|    234|    len += pNext_->writeImage(ioWrapper, byteOrder);
 1222|    234|  }
 1223|  14.6k|  return len;
 1224|  14.6k|}  // TiffDirectory::doWriteImage
_ZNK5Exiv28Internal13TiffEntryBase12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1226|   744k|size_t TiffEntryBase::doWriteImage(IoWrapper& /*ioWrapper*/, ByteOrder /*byteOrder*/) const {
 1227|   744k|  return 0;
 1228|   744k|}  // TiffEntryBase::doWriteImage
_ZNK5Exiv28Internal10TiffSubIfd12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1230|  5.56k|size_t TiffSubIfd::doWriteImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1231|  5.56k|  return std::transform_reduce(ifds_.begin(), ifds_.end(), size_t{}, std::plus(),
 1232|  5.56k|                               [&](const auto& ifd) { return ifd->writeImage(ioWrapper, byteOrder); });
 1233|  5.56k|}  // TiffSubIfd::doWriteImage
_ZNK5Exiv28Internal14TiffImageEntry12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1243|  9.01k|size_t TiffImageEntry::doWriteImage(IoWrapper& ioWrapper, ByteOrder /*byteOrder*/) const {
 1244|  9.01k|  if (!pValue())
  ------------------
  |  Branch (1244:7): [True: 0, False: 9.01k]
  ------------------
 1245|      0|    throw Error(ErrorCode::kerImageWriteFailed);  // #1296
 1246|       |
 1247|  9.01k|  size_t len = pValue()->sizeDataArea();
 1248|  9.01k|  if (len > 0) {
  ------------------
  |  Branch (1248:7): [True: 98, False: 8.91k]
  ------------------
 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|     98|    DataBuf buf = pValue()->dataArea();
 1254|     98|    ioWrapper.write(buf.c_data(), buf.size());
 1255|     98|    size_t align = len & 1;  // Align image data to word boundary
 1256|     98|    if (align)
  ------------------
  |  Branch (1256:9): [True: 45, False: 53]
  ------------------
 1257|     45|      ioWrapper.putb(0x0);
 1258|     98|    len += align;
 1259|  8.91k|  } 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.91k|    len = 0;
 1265|  8.91k|    for (auto&& [f, s] : strips_) {
  ------------------
  |  Branch (1265:24): [True: 175, False: 8.91k]
  ------------------
 1266|    175|      ioWrapper.write(f, s);
 1267|    175|      len += s;
 1268|    175|      size_t align = s & 1;  // Align strip data to word boundary
 1269|    175|      if (align)
  ------------------
  |  Branch (1269:11): [True: 115, False: 60]
  ------------------
 1270|    115|        ioWrapper.putb(0x0);
 1271|    175|      len += align;
 1272|    175|    }
 1273|  8.91k|  }
 1274|       |#ifdef EXIV2_DEBUG_MESSAGES
 1275|       |  std::cerr << ", len = " << len << " bytes\n";
 1276|       |#endif
 1277|  9.01k|  return len;
 1278|  9.01k|}  // TiffImageEntry::doWriteImage
_ZNK5Exiv28Internal13TiffComponent4sizeEv:
 1280|  15.9M|size_t TiffComponent::size() const {
 1281|  15.9M|  return doSize();
 1282|  15.9M|}
_ZNK5Exiv28Internal13TiffDirectory6doSizeEv:
 1284|   115k|size_t TiffDirectory::doSize() const {
 1285|   115k|  size_t compCount = count();
 1286|       |  // Size of the directory, without values and additional data
 1287|   115k|  size_t len = 2 + (12 * compCount) + (hasNext_ ? 4 : 0);
  ------------------
  |  Branch (1287:40): [True: 115k, False: 477]
  ------------------
 1288|       |  // Size of IFD values and data
 1289|  8.33M|  for (auto&& component : components_) {
  ------------------
  |  Branch (1289:25): [True: 8.33M, False: 115k]
  ------------------
 1290|  8.33M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (1290:40): [True: 386k, False: 7.94M]
  ------------------
 1291|   386k|      sv += sv & 1;  // Align value to word boundary
 1292|   386k|      len += sv;
 1293|   386k|    }
 1294|  8.33M|    auto sd = component->sizeData();
 1295|  8.33M|    sd += sd & 1;  // Align data to word boundary
 1296|  8.33M|    len += sd;
 1297|  8.33M|  }
 1298|       |  // Size of next-IFD, if any
 1299|   115k|  size_t sizeNext = 0;
 1300|   115k|  if (pNext_) {
  ------------------
  |  Branch (1300:7): [True: 0, False: 115k]
  ------------------
 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|   115k|  if (compCount == 0 && sizeNext == 0)
  ------------------
  |  Branch (1305:7): [True: 37, False: 115k]
  |  Branch (1305:25): [True: 37, False: 0]
  ------------------
 1306|     37|    len = 0;
 1307|   115k|  return len;
 1308|   115k|}
_ZNK5Exiv28Internal13TiffEntryBase6doSizeEv:
 1310|  60.5M|size_t TiffEntryBase::doSize() const {
 1311|  60.5M|  return size_;
 1312|  60.5M|}
_ZNK5Exiv28Internal14TiffImageEntry6doSizeEv:
 1314|  37.4k|size_t TiffImageEntry::doSize() const {
 1315|  37.4k|  return strips_.size() * 4;
 1316|  37.4k|}
_ZNK5Exiv28Internal10TiffSubIfd6doSizeEv:
 1318|  63.7k|size_t TiffSubIfd::doSize() const {
 1319|  63.7k|  return ifds_.size() * 4;
 1320|  63.7k|}
_ZNK5Exiv28Internal11TiffMnEntry6doSizeEv:
 1322|  78.1k|size_t TiffMnEntry::doSize() const {
 1323|  78.1k|  if (!mn_) {
  ------------------
  |  Branch (1323:7): [True: 29.7k, False: 48.4k]
  ------------------
 1324|  29.7k|    return TiffEntryBase::doSize();
 1325|  29.7k|  }
 1326|  48.4k|  return mn_->size();
 1327|  78.1k|}
_ZNK5Exiv28Internal16TiffIfdMakernote6doSizeEv:
 1329|  55.1k|size_t TiffIfdMakernote::doSize() const {
 1330|  55.1k|  return sizeHeader() + ifd_.size();
 1331|  55.1k|}
_ZNK5Exiv28Internal15TiffBinaryArray6doSizeEv:
 1333|   243k|size_t TiffBinaryArray::doSize() const {
 1334|   243k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (1334:7): [True: 3.09k, False: 240k]
  |  Branch (1334:17): [True: 163k, False: 77.1k]
  ------------------
 1335|   166k|    return TiffEntryBase::doSize();
 1336|       |
 1337|  77.1k|  if (elements_.empty())
  ------------------
  |  Branch (1337:7): [True: 0, False: 77.1k]
  ------------------
 1338|      0|    return 0;
 1339|       |
 1340|       |  // Remaining assumptions:
 1341|       |  // - array elements don't "overlap"
 1342|       |  // - no duplicate tags in the array
 1343|  77.1k|  size_t idx = 0;
 1344|  77.1k|  size_t sz = cfg()->tagStep();
 1345|  14.9M|  for (auto&& element : elements_) {
  ------------------
  |  Branch (1345:23): [True: 14.9M, False: 77.1k]
  ------------------
 1346|  14.9M|    if (element->tag() > idx) {
  ------------------
  |  Branch (1346:9): [True: 696k, False: 14.2M]
  ------------------
 1347|   696k|      idx = element->tag();
 1348|   696k|      sz = element->size();
 1349|   696k|    }
 1350|  14.9M|  }
 1351|  77.1k|  idx *= cfg()->tagStep();
 1352|  77.1k|  idx += sz;
 1353|       |
 1354|  77.1k|  if (cfg()->hasFillers_ && def()) {
  ------------------
  |  Branch (1354:7): [True: 66.1k, False: 10.9k]
  |  Branch (1354:29): [True: 66.1k, False: 0]
  ------------------
 1355|  66.1k|    const ArrayDef* lastDef = def() + defSize() - 1;
 1356|  66.1k|    auto lastTag = static_cast<uint16_t>(lastDef->idx_ / cfg()->tagStep());
 1357|  66.1k|    idx = std::max<size_t>(idx, lastDef->idx_ + lastDef->size(lastTag, cfg()->group_));
 1358|  66.1k|  }
 1359|  77.1k|  return idx;
 1360|       |
 1361|  77.1k|}  // TiffBinaryArray::doSize
_ZNK5Exiv28Internal17TiffBinaryElement6doSizeEv:
 1363|   696k|size_t TiffBinaryElement::doSize() const {
 1364|   696k|  if (!pValue())
  ------------------
  |  Branch (1364:7): [True: 0, False: 696k]
  ------------------
 1365|      0|    return 0;
 1366|   696k|  return pValue()->size();
 1367|   696k|}
_ZNK5Exiv28Internal13TiffComponent8sizeDataEv:
 1369|  12.4M|size_t TiffComponent::sizeData() const {
 1370|  12.4M|  return doSizeData();
 1371|  12.4M|}
_ZNK5Exiv28Internal13TiffEntryBase10doSizeDataEv:
 1377|  12.3M|size_t TiffEntryBase::doSizeData() const {
 1378|  12.3M|  return 0;
 1379|  12.3M|}
_ZNK5Exiv28Internal14TiffImageEntry10doSizeDataEv:
 1381|  28.2k|size_t TiffImageEntry::doSizeData() const {
 1382|  28.2k|  size_t len = 0;
 1383|       |  // For makernotes, TIFF image data is written to the data area
 1384|  28.2k|  if (group() > IfdId::mnId) {  // Todo: Fix this hack!!
  ------------------
  |  Branch (1384:7): [True: 1.33k, False: 26.9k]
  ------------------
 1385|  1.33k|    len = sizeImage();
 1386|  1.33k|  }
 1387|  28.2k|  return len;
 1388|  28.2k|}
_ZNK5Exiv28Internal13TiffDataEntry10doSizeDataEv:
 1390|  40.8k|size_t TiffDataEntry::doSizeData() const {
 1391|  40.8k|  if (!pValue())
  ------------------
  |  Branch (1391:7): [True: 0, False: 40.8k]
  ------------------
 1392|      0|    return 0;
 1393|  40.8k|  return pValue()->sizeDataArea();
 1394|  40.8k|}
_ZNK5Exiv28Internal10TiffSubIfd10doSizeDataEv:
 1396|  51.8k|size_t TiffSubIfd::doSizeData() const {
 1397|  51.8k|  return std::transform_reduce(ifds_.begin(), ifds_.end(), size_t{}, std::plus(), std::mem_fn(&TiffSubIfd::size));
 1398|  51.8k|}
_ZNK5Exiv28Internal13TiffComponent9sizeImageEv:
 1404|  1.33k|size_t TiffComponent::sizeImage() const {
 1405|  1.33k|  return doSizeImage();
 1406|  1.33k|}
_ZNK5Exiv28Internal14TiffImageEntry11doSizeImageEv:
 1426|  1.33k|size_t TiffImageEntry::doSizeImage() const {
 1427|  1.33k|  if (!pValue())
  ------------------
  |  Branch (1427:7): [True: 0, False: 1.33k]
  ------------------
 1428|      0|    return 0;
 1429|  1.33k|  auto len = pValue()->sizeDataArea();
 1430|  1.33k|  if (len != 0)
  ------------------
  |  Branch (1430:7): [True: 0, False: 1.33k]
  ------------------
 1431|      0|    return len;
 1432|       |
 1433|  1.33k|  return std::transform_reduce(strips_.begin(), strips_.end(), len, std::plus(),
 1434|  1.33k|                               [](const auto& s) { return s.second; });
 1435|  1.33k|}  // TiffImageEntry::doSizeImage
_ZN5Exiv28Internal8toTypeIdENS0_8TiffTypeEtNS_5IfdIdE:
 1452|  53.2M|TypeId toTypeId(TiffType tiffType, uint16_t tag, IfdId group) {
 1453|  53.2M|  auto ti = static_cast<TypeId>(tiffType);
 1454|       |  // On the fly type conversion for Exif.Photo.UserComment, Exif.GPSProcessingMethod, GPSAreaInformation
 1455|  53.2M|  if (const TagInfo* pTag = ti == undefined ? findTagInfo(tag, group) : nullptr) {
  ------------------
  |  Branch (1455:22): [True: 4.06k, False: 53.2M]
  ------------------
 1456|  4.06k|    if (pTag->typeId_ == comment) {
  ------------------
  |  Branch (1456:9): [True: 2.82k, False: 1.24k]
  ------------------
 1457|  2.82k|      ti = comment;
 1458|  2.82k|    }
 1459|  4.06k|  }
 1460|       |  // http://dev.exiv2.org/boards/3/topics/1337 change unsignedByte to signedByte
 1461|       |  // Exif.NikonAFT.AFFineTuneAdj || Exif.Pentax.Temperature
 1462|  53.2M|  if (ti == Exiv2::unsignedByte &&
  ------------------
  |  Branch (1462:7): [True: 3.89M, False: 49.3M]
  ------------------
 1463|  3.89M|      ((tag == 0x0002 && group == IfdId::nikonAFTId) || (tag == 0x0047 && group == IfdId::pentaxId))) {
  ------------------
  |  Branch (1463:9): [True: 4.53k, False: 3.89M]
  |  Branch (1463:26): [True: 260, False: 4.27k]
  |  Branch (1463:58): [True: 769, False: 3.89M]
  |  Branch (1463:75): [True: 36, False: 733]
  ------------------
 1464|    296|    ti = Exiv2::signedByte;
 1465|    296|  }
 1466|  53.2M|  return ti;
 1467|  53.2M|}
_ZN5Exiv28Internal10toTiffTypeENS_6TypeIdE:
 1469|  20.9M|TiffType toTiffType(TypeId typeId) {
 1470|  20.9M|  if (static_cast<uint32_t>(typeId) > 0xffff) {
  ------------------
  |  Branch (1470:7): [True: 0, False: 20.9M]
  ------------------
 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|  20.9M|  return static_cast<TiffType>(typeId);
 1478|  20.9M|}
_ZN5Exiv28Internal8cmpTagLtERKNSt3__110shared_ptrINS0_13TiffComponentEEES6_:
 1480|  15.9M|bool cmpTagLt(const TiffComponent::SharedPtr& lhs, const TiffComponent::SharedPtr& rhs) {
 1481|  15.9M|  if (lhs->tag() != rhs->tag())
  ------------------
  |  Branch (1481:7): [True: 11.2M, False: 4.72M]
  ------------------
 1482|  11.2M|    return lhs->tag() < rhs->tag();
 1483|  4.72M|  return lhs->idx() < rhs->idx();
 1484|  15.9M|}
_ZN5Exiv28Internal12newTiffEntryEtNS_5IfdIdE:
 1486|  7.62M|TiffComponent::UniquePtr newTiffEntry(uint16_t tag, IfdId group) {
 1487|  7.62M|  return std::make_unique<TiffEntry>(tag, group);
 1488|  7.62M|}
_ZN5Exiv28Internal14newTiffMnEntryEtNS_5IfdIdE:
 1490|  53.5k|TiffComponent::UniquePtr newTiffMnEntry(uint16_t tag, IfdId group) {
 1491|  53.5k|  return std::make_unique<TiffMnEntry>(tag, group, IfdId::mnId);
 1492|  53.5k|}
_ZN5Exiv28Internal20newTiffBinaryElementEtNS_5IfdIdE:
 1494|  16.3M|TiffComponent::UniquePtr newTiffBinaryElement(uint16_t tag, IfdId group) {
 1495|  16.3M|  return std::make_unique<TiffBinaryElement>(tag, group);
 1496|  16.3M|}
tiffcomposite_int.cpp:_ZZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_0clEv:
  473|  1.70M|  auto atc = [&] {
  474|  1.70M|    if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (474:9): [True: 1.68M, False: 19.5k]
  |  Branch (474:33): [True: 0, False: 1.68M]
  ------------------
  475|      0|      return std::move(object);
  476|      0|    }
  477|  1.70M|    return TiffCreator::create(tpi.extendedTag(), tpi.group());
  478|  1.70M|  }();
tiffcomposite_int.cpp:_ZZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_1clEv:
  485|  1.68M|  tc = [&] {
  486|  1.68M|    if (tpi.extendedTag() == Tag::next)
  ------------------
  |  Branch (486:9): [True: 257, False: 1.68M]
  ------------------
  487|    257|      return this->addNext(std::move(atc));
  488|  1.68M|    return this->addChild(std::move(atc));
  489|  1.68M|  }();
tiffcomposite_int.cpp:_ZZN5Exiv28Internal10TiffSubIfd9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_0clEv:
  508|  8.80k|  auto tc = [&] {
  509|  8.80k|    if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (509:9): [True: 0, False: 8.80k]
  |  Branch (509:33): [True: 0, False: 0]
  ------------------
  510|      0|      return addChild(std::move(object));
  511|      0|    }
  512|  8.80k|    return addChild(std::make_unique<TiffDirectory>(tpi1.tag(), tpi2.group()));
  513|  8.80k|  }();
tiffcomposite_int.cpp:_ZZNK5Exiv28Internal10TiffSubIfd12doWriteImageERNS0_9IoWrapperENS_9ByteOrderEENK3$_0clINSt3__110shared_ptrINS0_13TiffDirectoryEEEEEDaRKT_:
 1232|  5.56k|                               [&](const auto& ifd) { return ifd->writeImage(ioWrapper, byteOrder); });
tiffcomposite_int.cpp:_ZZNK5Exiv28Internal14TiffImageEntry11doSizeImageEvENK3$_0clINSt3__14pairIPKhmEEEEDaRKT_:
 1434|    328|                               [](const auto& s) { return s.second; });
tiffcomposite_int.cpp:_ZN5Exiv28InternalL11findTagInfoEtNS_5IfdIdE:
 1437|   119k|static const TagInfo* findTagInfo(uint16_t tag, IfdId group) {
 1438|   119k|  const TagInfo* tags = [=] {
 1439|   119k|    if (group == IfdId::gpsId)
 1440|   119k|      return Internal::gpsTagList();
 1441|   119k|    return group == IfdId::exifId ? Internal::exifTagList() : nullptr;
 1442|   119k|  }();
 1443|   119k|  if (tags)
  ------------------
  |  Branch (1443:7): [True: 4.72k, False: 115k]
  ------------------
 1444|   148k|    for (size_t idx = 0; tags[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (1444:26): [True: 147k, False: 660]
  ------------------
 1445|   147k|      if (tags[idx].tag_ == tag)
  ------------------
  |  Branch (1445:11): [True: 4.06k, False: 143k]
  ------------------
 1446|  4.06k|        return tags + idx;
 1447|   115k|  return nullptr;
 1448|   119k|}
tiffcomposite_int.cpp:_ZZN5Exiv28InternalL11findTagInfoEtNS_5IfdIdEENK3$_0clEv:
 1438|   119k|  const TagInfo* tags = [=] {
 1439|   119k|    if (group == IfdId::gpsId)
  ------------------
  |  Branch (1439:9): [True: 3.31k, False: 116k]
  ------------------
 1440|  3.31k|      return Internal::gpsTagList();
 1441|   116k|    return group == IfdId::exifId ? Internal::exifTagList() : nullptr;
  ------------------
  |  Branch (1441:12): [True: 1.41k, False: 115k]
  ------------------
 1442|   119k|  }();
tiffcomposite_int.cpp:_ZN12_GLOBAL__N_17fillGapERN5Exiv28Internal9IoWrapperEmm:
 1503|  1.07M|size_t fillGap(Exiv2::Internal::IoWrapper& ioWrapper, size_t curr, size_t tobe) {
 1504|  1.07M|  if (curr < tobe) {
  ------------------
  |  Branch (1504:7): [True: 534k, False: 537k]
  ------------------
 1505|   534k|    Exiv2::DataBuf buf(tobe - curr);
 1506|   534k|    ioWrapper.write(buf.c_data(), buf.size());
 1507|   534k|    return tobe - curr;
 1508|   534k|  }
 1509|   537k|  return 0;
 1510|  1.07M|}

_ZN5Exiv28Internal12TiffPathItemC2EjNS_5IfdIdE:
   74|  10.6M|  constexpr TiffPathItem(uint32_t extendedTag, IfdId group) : extendedTag_(extendedTag), group_(group) {
   75|  10.6M|  }
_ZNK5Exiv28Internal12TiffPathItem3tagEv:
   81|  42.1M|  [[nodiscard]] uint16_t tag() const {
   82|  42.1M|    return static_cast<uint16_t>(extendedTag_);
   83|  42.1M|  }
_ZNK5Exiv28Internal12TiffPathItem11extendedTagEv:
   85|  11.2M|  [[nodiscard]] uint32_t extendedTag() const {
   86|  11.2M|    return extendedTag_;
   87|  11.2M|  }
_ZNK5Exiv28Internal12TiffPathItem5groupEv:
   89|  11.0M|  [[nodiscard]] IfdId group() const {
   90|  11.0M|    return group_;
   91|  11.0M|  }
_ZN5Exiv28Internal13TiffComponentC2EtNS_5IfdIdE:
  170|  24.4M|  constexpr TiffComponent(uint16_t tag, IfdId group) : tag_(tag), group_(group) {
  171|  24.4M|  }
_ZN5Exiv28Internal13TiffComponent8setStartEPKh:
  216|  21.6M|  void setStart(const byte* pStart) {
  217|  21.6M|    pStart_ = const_cast<byte*>(pStart);
  218|  21.6M|  }
_ZNK5Exiv28Internal13TiffComponent3tagEv:
  240|   261M|  [[nodiscard]] uint16_t tag() const {
  241|   261M|    return tag_;
  242|   261M|  }
_ZNK5Exiv28Internal13TiffComponent5groupEv:
  244|  96.1M|  [[nodiscard]] IfdId group() const {
  245|  96.1M|    return group_;
  246|  96.1M|  }
_ZNK5Exiv28Internal13TiffComponent5startEv:
  248|  21.8M|  [[nodiscard]] byte* start() const {
  249|  21.8M|    return pStart_;
  250|  21.8M|  }
_ZN5Exiv28Internal13TiffEntryBase9setOffsetEm:
  416|  18.2M|  void setOffset(size_t offset) {
  417|  18.2M|    offset_ = offset;
  418|  18.2M|  }
_ZNK5Exiv28Internal13TiffEntryBase8tiffTypeEv:
  458|  1.74M|  [[nodiscard]] TiffType tiffType() const {
  459|  1.74M|    return tiffType_;
  460|  1.74M|  }
_ZNK5Exiv28Internal13TiffEntryBase6offsetEv:
  465|  81.9k|  [[nodiscard]] size_t offset() const {
  466|  81.9k|    return offset_;
  467|  81.9k|  }
_ZNK5Exiv28Internal13TiffEntryBase5pDataEv:
  476|  30.4M|  [[nodiscard]] const byte* pData() const {
  477|  30.4M|    return pData_;
  478|  30.4M|  }
_ZNK5Exiv28Internal13TiffEntryBase6pValueEv:
  480|  42.5M|  [[nodiscard]] const Value* pValue() const {
  481|  42.5M|    return pValue_.get();
  482|  42.5M|  }
_ZN5Exiv28Internal13TiffEntryBase8setCountEm:
  497|  1.07M|  void setCount(size_t count) {
  498|  1.07M|    count_ = count;
  499|  1.07M|  }
_ZN5Exiv28Internal13TiffEntryBase6setIdxEi:
  501|  18.1M|  void setIdx(int idx) {
  502|  18.1M|    idx_ = idx;
  503|  18.1M|  }
_ZNK5Exiv28Internal13TiffEntryBase7storageEv:
  540|  15.1M|  [[nodiscard]] std::shared_ptr<DataBuf> storage() const {
  541|  15.1M|    return storage_;
  542|  15.1M|  }
_ZNK5Exiv28Internal17TiffDataEntryBase5szTagEv:
  623|  43.9k|  [[nodiscard]] uint16_t szTag() const {
  624|  43.9k|    return szTag_;
  625|  43.9k|  }
_ZNK5Exiv28Internal17TiffDataEntryBase7szGroupEv:
  627|  43.9k|  [[nodiscard]] IfdId szGroup() const {
  628|  43.9k|    return szGroup_;
  629|  43.9k|  }
_ZNK5Exiv28Internal13TiffSizeEntry5dtTagEv:
  789|  62.5k|  [[nodiscard]] uint16_t dtTag() const {
  790|  62.5k|    return dtTag_;
  791|  62.5k|  }
_ZNK5Exiv28Internal13TiffSizeEntry7dtGroupEv:
  793|  62.5k|  [[nodiscard]] IfdId dtGroup() const {
  794|  62.5k|    return dtGroup_;
  795|  62.5k|  }
_ZNK5Exiv28Internal13TiffDirectory7hasNextEv:
  842|  24.2k|  [[nodiscard]] bool hasNext() const {
  843|  24.2k|    return hasNext_;
  844|  24.2k|  }
_ZN5Exiv28Internal16TiffIfdMakernote17setImageByteOrderENS_9ByteOrderE:
 1106|  37.5k|  void setImageByteOrder(ByteOrder byteOrder) {
 1107|  37.5k|    imageByteOrder_ = byteOrder;
 1108|  37.5k|  }
_ZNK5Exiv28Internal8ArrayDefeqEm:
 1217|  21.8M|  bool operator==(size_t idx) const {
 1218|  21.8M|    return idx_ == idx;
 1219|  21.8M|  }
_ZNK5Exiv28Internal8ArrayCfg7tagStepEv:
 1234|  16.4M|  [[nodiscard]] size_t tagStep() const {
 1235|  16.4M|    return elDefaultDef_.size(0, group_);
 1236|  16.4M|  }
_ZN5Exiv28Internal15TiffBinaryArray10setDecodedEb:
 1310|  16.2M|  void setDecoded(bool decoded) {
 1311|  16.2M|    decoded_ = decoded;
 1312|  16.2M|  }
_ZNK5Exiv28Internal15TiffBinaryArray3cfgEv:
 1318|  63.5M|  [[nodiscard]] const ArrayCfg* cfg() const {
 1319|  63.5M|    return arrayCfg_;
 1320|  63.5M|  }
_ZNK5Exiv28Internal15TiffBinaryArray3defEv:
 1322|   153k|  [[nodiscard]] const ArrayDef* def() const {
 1323|   153k|    return arrayDef_;
 1324|   153k|  }
_ZNK5Exiv28Internal15TiffBinaryArray7defSizeEv:
 1326|  83.0k|  [[nodiscard]] size_t defSize() const {
 1327|  83.0k|    return defSize_;
 1328|  83.0k|  }
_ZNK5Exiv28Internal15TiffBinaryArray7decodedEv:
 1330|   323k|  [[nodiscard]] bool decoded() const {
 1331|   323k|    return decoded_;
 1332|   323k|  }
_ZN5Exiv28Internal17TiffBinaryElement8setElDefERKNS0_8ArrayDefE:
 1404|  15.1M|  void setElDef(const ArrayDef& def) {
 1405|  15.1M|    elDef_ = def;
 1406|  15.1M|  }
_ZN5Exiv28Internal17TiffBinaryElement14setElByteOrderENS_9ByteOrderE:
 1410|  15.1M|  void setElByteOrder(ByteOrder byteOrder) {
 1411|  15.1M|    elByteOrder_ = byteOrder;
 1412|  15.1M|  }
_ZNK5Exiv28Internal17TiffBinaryElement5elDefEv:
 1420|  15.2M|  [[nodiscard]] const ArrayDef* elDef() const {
 1421|  15.2M|    return &elDef_;
 1422|  15.2M|  }
_ZNK5Exiv28Internal17TiffBinaryElement11elByteOrderEv:
 1426|  15.2M|  [[nodiscard]] ByteOrder elByteOrder() const {
 1427|  15.2M|    return elByteOrder_;
 1428|  15.2M|  }
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  36.0k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  36.0k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  36.0k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE56EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    100|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    100|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    100|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE5EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    232|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    232|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    232|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE21EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  11.3k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  11.3k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  11.3k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE6EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  1.18k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  1.18k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  1.18k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE5EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  10.5k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  10.5k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  10.5k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE6EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    114|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    114|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    114|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  4.11k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  4.11k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  4.11k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  3.30k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  3.30k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  3.30k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    858|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    858|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    858|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    983|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    983|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    983|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  10.1k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  10.1k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  10.1k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  24.1k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  24.1k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  24.1k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.82k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.82k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.82k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  6.45k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  6.45k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  6.45k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE9EEENSt3__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_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.23k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.23k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.23k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    256|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    256|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    256|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    352|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    352|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    352|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.93k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.93k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.93k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  5.07k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  5.07k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  5.07k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.33k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.33k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.33k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.07k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.07k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.07k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    458|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    458|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    458|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    397|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    397|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    397|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.13k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.13k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.13k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  5.11k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  5.11k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  5.11k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.28k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.28k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.28k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.19k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.19k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.19k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    603|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    603|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    603|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    721|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    721|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    721|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.11k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.11k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.11k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  4.27k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  4.27k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  4.27k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    965|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    965|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    965|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.22k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.22k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.22k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    219|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    219|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    219|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    336|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    336|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    336|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  2.82k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  2.82k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  2.82k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  4.75k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  4.75k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  4.75k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    361|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    361|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    361|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    486|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    486|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    486|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    436|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    436|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    436|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    503|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    503|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    503|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.12k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.12k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.12k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.21k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.21k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.21k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    517|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    517|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    517|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    143|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    143|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    143|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    485|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    485|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    485|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    543|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    543|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    543|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    475|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    475|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    475|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    903|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    903|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    903|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    327|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    327|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    327|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    565|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    565|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    565|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    495|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    495|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    495|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    665|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    665|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    665|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    578|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    578|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    578|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.03k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.03k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.03k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    369|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    369|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    369|}
_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|    740|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    740|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    740|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    255|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    255|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    255|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    572|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    572|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    572|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    788|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    788|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    788|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    424|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    424|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    424|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    478|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    478|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    478|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    754|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    754|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    754|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    236|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    236|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    236|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    560|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    560|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    560|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    896|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    896|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    896|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE7EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    904|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    904|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    904|}
_ZN5Exiv28Internal16newTiffThumbDataILt279ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    111|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    111|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    111|}
_ZN5Exiv28Internal16newTiffThumbSizeILt273ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|    384|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|    384|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|    384|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    402|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    402|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    402|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    440|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    440|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    440|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    142|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    142|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    142|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  1.94k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  1.94k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  1.94k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  2.41k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  2.41k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  2.41k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    536|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    536|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    536|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     85|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     85|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     85|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    432|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    432|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    432|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    438|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    438|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    438|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    342|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    342|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    342|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    484|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    484|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    484|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE18EEENSt3__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|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     96|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     96|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     96|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    212|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    212|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    212|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    258|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    258|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    258|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    349|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    349|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    349|}
_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|     48|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     48|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     48|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    237|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    237|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    237|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    303|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    303|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    303|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    319|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    319|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    319|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10minoCsoCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  23.5k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  23.5k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  23.5k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10minoCsnCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  5.14k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  5.14k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  5.14k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE100EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    330|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    330|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    330|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  13.7k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  13.7k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  13.7k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE101EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.28k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.28k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.28k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE102EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    164|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    164|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    164|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE103EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    727|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    727|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    727|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE104EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    148|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    148|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    148|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE105EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.91k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.91k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.91k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE106EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    218|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    218|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    218|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE107EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    793|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    793|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    793|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE108EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    460|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    460|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    460|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE109EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.91k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.91k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.91k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE110EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    432|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    432|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    432|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE111EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    334|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    334|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    334|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE112EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  5.54k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  5.54k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  5.54k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE113EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  7.89k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  7.89k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  7.89k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE114EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  3.64k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  3.64k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  3.64k|}
_ZN5Exiv28Internal16newTiffImageDataILt258ELNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.07k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.07k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.07k|}
_ZN5Exiv28Internal16newTiffImageSizeILt257ELNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    741|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    741|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    741|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonCsCfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonCsDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  14.2k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  14.2k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  14.2k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  14.2k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonSiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  2.88k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  2.88k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  2.88k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPaCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  1.30k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  1.30k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  1.30k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonCfCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    725|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    725|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    725|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    545|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    545|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    545|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonTiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    598|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    598|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    598|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonFiCfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonFiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    955|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    955|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    955|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    955|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPrCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    247|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    247|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    247|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L15canonAfMiAdjCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     62|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     62|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     62|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L15canonVigCor2CfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     26|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     26|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     26|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12canonLiOpCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    342|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    342|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    342|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonLeCfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonLeDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|     83|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|     83|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|     83|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|     83|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonAmCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    176|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    176|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    176|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonMeCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    231|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    231|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    231|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonFilCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     86|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     86|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     86|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonHdrCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    201|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    201|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    201|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonAfCCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    758|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    758|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    758|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12canonRawBCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     29|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     29|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     29|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE65EEENSt3__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|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonVrCfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonVrDefEEEENSt3__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:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonPcCfgEELm13ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonPcDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    176|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    176|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    176|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    176|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonWtCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonWtDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    287|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    287|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    287|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    287|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonIiCfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonIiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    201|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    201|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    201|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    201|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonAfCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonAfDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    232|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    232|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    232|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    232|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm6ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonSiSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    227|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    227|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    227|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    227|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm6ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonCbSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    285|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    285|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    285|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    285|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm4ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonLdSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    234|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    234|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    234|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    234|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm5ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonFlSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    160|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    160|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    160|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    160|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonMeCfgEELm4ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonMeDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    113|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    113|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    113|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    113|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L11nikonAf2SetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    104|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    104|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    104|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    104|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonFiCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonFiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    334|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    334|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    334|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    334|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L11nikonAFTCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L11nikonAFTDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    196|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    196|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    196|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    196|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|     96|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|     96|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|     96|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|    124|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|    124|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|    124|}
_ZN5Exiv28Internal16newTiffThumbSizeILt4ELNS_5IfdIdE117EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  3.23k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  3.23k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  3.23k|}
_ZN5Exiv28Internal16newTiffThumbDataILt3ELNS_5IfdIdE117EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  4.01k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  4.01k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  4.01k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt4ELNS_5IfdIdE116EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  1.86k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  1.86k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  1.86k|}
_ZN5Exiv28Internal16newTiffThumbDataILt3ELNS_5IfdIdE116EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  2.38k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  2.38k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  2.38k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12samsungPwCfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L12samsungPwDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  5.67k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  5.67k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  5.67k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  5.67k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    592|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    592|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    592|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  2.90k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  2.90k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  2.90k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  4.10k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  4.10k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  4.10k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L12sony2010eSetEEXadL_ZNS0_17sony2010eSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|     90|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|     90|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|     90|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|     90|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony2FpSetEEXadL_ZNS0_15sony2FpSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    817|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    817|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    817|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    817|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L13sonyMisc2bSetEEXadL_ZNS0_18sonyMisc2bSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    198|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    198|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    198|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    198|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L13sonyMisc3cSetEEXadL_ZNS0_18sonyMisc3cSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    383|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    383|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    383|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    383|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12sonyMisc1CfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L12sonyMisc1DefEEEENSt3__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_L13sonySInfo1CfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L13sonySInfo1DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  1.06k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  1.06k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  1.06k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  1.06k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony1CsSetEEXadL_ZNS0_14sonyCsSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    799|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    799|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    799|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    799|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    298|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    298|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    298|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony2CsSetEEXadL_ZNS0_14sonyCsSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|  1.01k|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|  1.01k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|  1.01k|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|  1.01k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12sony1MCsoCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    624|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    624|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    624|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12sony1MCsnCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    384|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    384|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    384|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12sony1MCs7CfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs7DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    393|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    393|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    393|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    393|}
_ZN5Exiv28Internal16newTiffThumbDataILt137ELNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    340|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    340|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    340|}
_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|    279|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    279|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    279|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    279|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10minoCs7CfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs7DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    830|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    830|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    830|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    830|}
_ZN5Exiv28Internal16newTiffThumbDataILt137ELNS_5IfdIdE57EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|     58|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|     58|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|     58|}
_ZN5Exiv28Internal16newTiffThumbSizeILt136ELNS_5IfdIdE57EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|     84|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|     84|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|     84|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10minoCs5CfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs5DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    289|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    289|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    289|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    289|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE19EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  2.41k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  2.41k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  2.41k|}
_ZN5Exiv28Internal13TiffComponentD2Ev:
  173|  24.4M|  virtual ~TiffComponent() = default;
_ZN5Exiv28Internal13TiffDirectoryD2Ev:
  830|   152k|  ~TiffDirectory() override = default;
_ZN5Exiv28Internal10TiffSubIfdD2Ev:
  937|  54.3k|  ~TiffSubIfd() override = default;
_ZN5Exiv28Internal15TiffBinaryArrayD2Ev:
 1269|  67.9k|  ~TiffBinaryArray() override = default;

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

_ZNK5Exiv28Internal13FindExifdatumclERKNS_9ExifdatumE:
   29|  19.1M|bool FindExifdatum::operator()(const Exiv2::Exifdatum& md) const {
   30|  19.1M|  return ifdId_ == md.ifdId();
   31|  19.1M|}
_ZN5Exiv28Internal11TiffMapping11findDecoderENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEjNS_5IfdIdE:
 1991|  18.1M|DecoderFct TiffMapping::findDecoder(std::string_view make, uint32_t extendedTag, IfdId group) {
 1992|  18.1M|  DecoderFct decoderFct = &TiffDecoder::decodeStdTiffEntry;
 1993|  18.1M|  if (auto td = Exiv2::find(tiffMappingInfo_, TiffMappingInfo::Key{make, extendedTag, group})) {
  ------------------
  |  Branch (1993:12): [True: 5.99k, False: 18.1M]
  ------------------
 1994|       |    // This may set decoderFct to 0, meaning that the tag should not be decoded
 1995|  5.99k|    decoderFct = td->decoderFct_;
 1996|  5.99k|  }
 1997|  18.1M|  return decoderFct;
 1998|  18.1M|}
_ZN5Exiv28Internal11TiffMapping11findEncoderENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEjNS_5IfdIdE:
 2000|  2.73M|EncoderFct TiffMapping::findEncoder(std::string_view make, uint32_t extendedTag, IfdId group) {
 2001|  2.73M|  EncoderFct encoderFct = nullptr;
 2002|  2.73M|  if (auto td = Exiv2::find(tiffMappingInfo_, TiffMappingInfo::Key{make, extendedTag, group})) {
  ------------------
  |  Branch (2002:12): [True: 733, False: 2.73M]
  ------------------
 2003|       |    // Returns 0 if no special encoder function is found
 2004|    733|    encoderFct = td->encoderFct_;
 2005|    733|  }
 2006|  2.73M|  return encoderFct;
 2007|  2.73M|}
_ZN5Exiv28Internal11TiffCreator6createEjNS_5IfdIdE:
 2009|  24.4M|TiffComponent::UniquePtr TiffCreator::create(uint32_t extendedTag, IfdId group) {
 2010|  24.4M|  auto tag = static_cast<uint16_t>(extendedTag);
 2011|  24.4M|  auto i = tiffGroupTable_.find(TiffGroupKey(extendedTag, group));
 2012|       |  // If the lookup failed then try again with Tag::all.
 2013|  24.4M|  if (i == tiffGroupTable_.end()) {
  ------------------
  |  Branch (2013:7): [True: 24.0M, False: 382k]
  ------------------
 2014|  24.0M|    i = tiffGroupTable_.find(TiffGroupKey(Tag::all, group));
 2015|  24.0M|  }
 2016|  24.4M|  if (i != tiffGroupTable_.end() && i->second) {
  ------------------
  |  Branch (2016:7): [True: 24.3M, False: 71.7k]
  |  Branch (2016:7): [True: 24.3M, False: 83.6k]
  |  Branch (2016:37): [True: 24.3M, False: 11.9k]
  ------------------
 2017|  24.3M|    return i->second(tag, group);
 2018|  24.3M|  }
 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|  83.6k|  return nullptr;
 2028|  24.4M|}  // TiffCreator::create
_ZN5Exiv28Internal11TiffCreator7getPathEjNS_5IfdIdEj:
 2030|  2.75M|TiffPath TiffCreator::getPath(uint32_t extendedTag, IfdId group, uint32_t root) {
 2031|  2.75M|  TiffPath ret;
 2032|  10.6M|  while (true) {
  ------------------
  |  Branch (2032:10): [True: 10.6M, Folded]
  ------------------
 2033|  10.6M|    ret.emplace(extendedTag, group);
 2034|  10.6M|    const auto ts = tiffTreeTable_.find(TiffGroupKey(root, group));
 2035|  10.6M|    assert(ts != tiffTreeTable_.end());
 2036|  10.6M|    extendedTag = ts->second.second;
 2037|  10.6M|    group = ts->second.first;
 2038|  10.6M|    if (ts->first == TiffGroupKey(root, IfdId::ifdIdNotSet)) {
  ------------------
  |  Branch (2038:9): [True: 2.75M, False: 7.87M]
  ------------------
 2039|  2.75M|      break;
 2040|  2.75M|    }
 2041|  10.6M|  }
 2042|  2.75M|  return ret;
 2043|  2.75M|}
_ZN5Exiv28Internal16TiffParserWorker6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhmjPFMNS0_11TiffDecoderEFvPKNS0_13TiffEntryBaseEENSt3__117basic_string_viewIcNSG_11char_traitsIcEEEEjNS_5IfdIdEEPNS0_14TiffHeaderBaseE:
 2046|  41.8k|                                   size_t size, uint32_t root, FindDecoderFct findDecoderFct, TiffHeaderBase* pHeader) {
 2047|       |  // Create standard TIFF header if necessary
 2048|  41.8k|  std::unique_ptr<TiffHeaderBase> ph;
 2049|  41.8k|  if (!pHeader) {
  ------------------
  |  Branch (2049:7): [True: 38.5k, False: 3.27k]
  ------------------
 2050|  38.5k|    ph = std::make_unique<TiffHeader>();
 2051|  38.5k|    pHeader = ph.get();
 2052|  38.5k|  }
 2053|       |
 2054|  41.8k|  if (auto rootDir = parse(pData, size, root, pHeader)) {
  ------------------
  |  Branch (2054:12): [True: 41.6k, False: 214]
  ------------------
 2055|  41.6k|    auto decoder = TiffDecoder(exifData, iptcData, xmpData, rootDir.get(), findDecoderFct);
 2056|  41.6k|    rootDir->accept(decoder);
 2057|  41.6k|  }
 2058|  41.8k|  return pHeader->byteOrder();
 2059|       |
 2060|  41.8k|}  // TiffParserWorker::decode
_ZN5Exiv28Internal16TiffParserWorker6encodeERNS_7BasicIoEPKhmRKNS_8ExifDataERKNS_8IptcDataERKNS_7XmpDataEjPFMNS0_11TiffEncoderEFvPNS0_13TiffEntryBaseEPKNS_9ExifdatumEENSt3__117basic_string_viewIcNSN_11char_traitsIcEEEEjNS_5IfdIdEEPNS0_14TiffHeaderBaseEPNS0_12OffsetWriterE:
 2065|  8.97k|                                     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.97k|  WriteMethod writeMethod = wmIntrusive;
 2074|  8.97k|  auto parsedTree = parse(pData, size, root, pHeader);
 2075|  8.97k|  auto primaryGroups = findPrimaryGroups(parsedTree);
 2076|  8.97k|  if (parsedTree) {
  ------------------
  |  Branch (2076:7): [True: 681, False: 8.29k]
  ------------------
 2077|       |    // Attempt to update existing TIFF components based on metadata entries
 2078|    681|    TiffEncoder encoder(exifData, iptcData, xmpData, parsedTree.get(), false, primaryGroups, pHeader, findEncoderFct);
 2079|    681|    parsedTree->accept(encoder);
 2080|    681|    if (!encoder.dirty())
  ------------------
  |  Branch (2080:9): [True: 46, False: 635]
  ------------------
 2081|     46|      writeMethod = wmNonIntrusive;
 2082|    681|  }
 2083|  8.97k|  if (writeMethod == wmIntrusive) {
  ------------------
  |  Branch (2083:7): [True: 8.93k, False: 46]
  ------------------
 2084|  8.93k|    auto createdTree = TiffCreator::create(root, IfdId::ifdIdNotSet);
 2085|  8.93k|    if (parsedTree) {
  ------------------
  |  Branch (2085:9): [True: 635, False: 8.29k]
  ------------------
 2086|       |      // Copy image tags from the original image to the composite
 2087|    635|      TiffCopier copier(createdTree.get(), root, pHeader, primaryGroups);
 2088|    635|      parsedTree->accept(copier);
 2089|    635|    }
 2090|       |    // Add entries from metadata to composite
 2091|  8.93k|    TiffEncoder encoder(exifData, iptcData, xmpData, createdTree.get(), !parsedTree, std::move(primaryGroups), pHeader,
 2092|  8.93k|                        findEncoderFct);
 2093|  8.93k|    encoder.add(createdTree.get(), std::move(parsedTree), root);
 2094|       |    // Write binary representation from the composite tree
 2095|  8.93k|    DataBuf header = pHeader->write();
 2096|  8.93k|    auto tempIo = MemIo();
 2097|  8.93k|    IoWrapper ioWrapper(tempIo, header.c_data(), header.size(), pOffsetWriter);
 2098|  8.93k|    auto imageIdx(std::string::npos);
 2099|  8.93k|    createdTree->write(ioWrapper, pHeader->byteOrder(), header.size(), std::string::npos, std::string::npos, imageIdx);
 2100|  8.93k|    if (pOffsetWriter)
  ------------------
  |  Branch (2100:9): [True: 0, False: 8.93k]
  ------------------
 2101|      0|      pOffsetWriter->writeOffsets(tempIo);
 2102|  8.93k|    io.transfer(tempIo);  // may throw
 2103|  8.93k|#ifndef SUPPRESS_WARNINGS
 2104|  8.93k|    EXV_INFO << "Write strategy: Intrusive\n";
  ------------------
  |  |  134|  8.93k|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 8.93k]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|  8.93k|  LogMsg(LogMsg::info).os()
  ------------------
 2105|  8.93k|#endif
 2106|  8.93k|  }
 2107|     46|#ifndef SUPPRESS_WARNINGS
 2108|     46|  else {
 2109|     46|    EXV_INFO << "Write strategy: Non-intrusive\n";
  ------------------
  |  |  134|     46|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 46]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|     46|  LogMsg(LogMsg::info).os()
  ------------------
 2110|     46|  }
 2111|  8.97k|#endif
 2112|  8.97k|  return writeMethod;
 2113|  8.97k|}  // TiffParserWorker::encode
_ZN5Exiv28Internal16TiffParserWorker5parseEPKhmjPNS0_14TiffHeaderBaseE:
 2116|  50.8k|                                                 TiffHeaderBase* pHeader) {
 2117|  50.8k|  TiffComponent::UniquePtr rootDir;
 2118|  50.8k|  if (!pData || size == 0)
  ------------------
  |  Branch (2118:7): [True: 8.39k, False: 42.4k]
  |  Branch (2118:17): [True: 0, False: 42.4k]
  ------------------
 2119|  8.39k|    return rootDir;
 2120|  42.4k|  if (!pHeader->read(pData, size) || pHeader->offset() >= size) {
  ------------------
  |  Branch (2120:7): [True: 49, False: 42.3k]
  |  Branch (2120:38): [True: 64, False: 42.3k]
  ------------------
 2121|    113|    throw Error(ErrorCode::kerNotAnImage, "TIFF");
 2122|    113|  }
 2123|  42.3k|  rootDir = TiffCreator::create(root, IfdId::ifdIdNotSet);
 2124|  42.3k|  if (rootDir) {
  ------------------
  |  Branch (2124:7): [True: 42.3k, False: 0]
  ------------------
 2125|  42.3k|    rootDir->setStart(pData + pHeader->offset());
 2126|  42.3k|    auto state = TiffRwState{pHeader->byteOrder(), 0};
 2127|  42.3k|    auto reader = TiffReader{pData, size, rootDir.get(), state};
 2128|  42.3k|    rootDir->accept(reader);
 2129|  42.3k|    reader.postProcess();
 2130|  42.3k|  }
 2131|  42.3k|  return rootDir;
 2132|       |
 2133|  42.4k|}  // TiffParserWorker::parse
_ZN5Exiv28Internal16TiffParserWorker17findPrimaryGroupsERKNSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEE:
 2135|  8.97k|PrimaryGroups TiffParserWorker::findPrimaryGroups(const TiffComponent::UniquePtr& pSourceDir) {
 2136|  8.97k|  PrimaryGroups ret;
 2137|  8.97k|  if (!pSourceDir)
  ------------------
  |  Branch (2137:7): [True: 8.29k, False: 681]
  ------------------
 2138|  8.29k|    return ret;
 2139|       |
 2140|    681|  static constexpr auto imageGroups = std::array{
 2141|    681|      IfdId::ifd0Id,      IfdId::ifd1Id,      IfdId::ifd2Id,      IfdId::ifd3Id,      IfdId::subImage1Id,
 2142|    681|      IfdId::subImage2Id, IfdId::subImage3Id, IfdId::subImage4Id, IfdId::subImage5Id, IfdId::subImage6Id,
 2143|    681|      IfdId::subImage7Id, IfdId::subImage8Id, IfdId::subImage9Id,
 2144|    681|  };
 2145|       |
 2146|  8.85k|  for (auto imageGroup : imageGroups) {
  ------------------
  |  Branch (2146:24): [True: 8.85k, False: 681]
  ------------------
 2147|  8.85k|    TiffFinder finder(0x00fe, imageGroup);
 2148|  8.85k|    pSourceDir->accept(finder);
 2149|  8.85k|    auto te = dynamic_cast<const TiffEntryBase*>(finder.result());
 2150|  8.85k|    if (!te)
  ------------------
  |  Branch (2150:9): [True: 8.78k, False: 66]
  ------------------
 2151|  8.78k|      continue;
 2152|     66|    const Value* pV = te->pValue();
 2153|     66|    if (pV && pV->typeId() == unsignedLong && pV->count() == 1 && (pV->toInt64() & 1) == 0) {
  ------------------
  |  Branch (2153:9): [True: 52, False: 14]
  |  Branch (2153:15): [True: 32, False: 20]
  |  Branch (2153:47): [True: 23, False: 9]
  |  Branch (2153:67): [True: 12, False: 11]
  ------------------
 2154|     12|      ret.push_back(te->group());
 2155|     12|    }
 2156|     66|  }
 2157|    681|  return ret;
 2158|  8.97k|}  // TiffParserWorker::findPrimaryGroups
_ZN5Exiv28Internal14TiffHeaderBaseC2EtjNS_9ByteOrderEj:
 2161|   275k|    tag_(tag), size_(size), byteOrder_(byteOrder), offset_(offset) {
 2162|   275k|}
_ZN5Exiv28Internal14TiffHeaderBase4readEPKhm:
 2164|   221k|bool TiffHeaderBase::read(const byte* pData, size_t size) {
 2165|   221k|  if (!pData || size < 8)
  ------------------
  |  Branch (2165:7): [True: 0, False: 221k]
  |  Branch (2165:17): [True: 17, False: 220k]
  ------------------
 2166|     17|    return false;
 2167|       |
 2168|   220k|  if (pData[0] == 'I' && pData[0] == pData[1]) {
  ------------------
  |  Branch (2168:7): [True: 7.87k, False: 213k]
  |  Branch (2168:26): [True: 7.72k, False: 150]
  ------------------
 2169|  7.72k|    byteOrder_ = littleEndian;
 2170|   213k|  } else if (pData[0] == 'M' && pData[0] == pData[1]) {
  ------------------
  |  Branch (2170:14): [True: 101k, False: 111k]
  |  Branch (2170:33): [True: 101k, False: 240]
  ------------------
 2171|   101k|    byteOrder_ = bigEndian;
 2172|   112k|  } else {
 2173|   112k|    return false;
 2174|   112k|  }
 2175|   108k|  uint16_t t = getUShort(pData + 2, byteOrder_);
 2176|   108k|  if (t != 444 && t != 17234 && tag_ != t)
  ------------------
  |  Branch (2176:7): [True: 108k, False: 59]
  |  Branch (2176:19): [True: 108k, False: 127]
  |  Branch (2176:33): [True: 13.0k, False: 95.6k]
  ------------------
 2177|  13.0k|    return false;  // 444 is for the JPEG-XR; 17234 is for DCP
 2178|  95.8k|  tag_ = t;
 2179|  95.8k|  offset_ = getULong(pData + 4, byteOrder_);
 2180|       |
 2181|  95.8k|  return true;
 2182|   108k|}
_ZNK5Exiv28Internal14TiffHeaderBase5writeEv:
 2184|  9.02k|DataBuf TiffHeaderBase::write() const {
 2185|  9.02k|  DataBuf buf(8);
 2186|  9.02k|  switch (byteOrder_) {
  ------------------
  |  Branch (2186:11): [True: 9.02k, False: 0]
  ------------------
 2187|  8.36k|    case littleEndian:
  ------------------
  |  Branch (2187:5): [True: 8.36k, False: 661]
  ------------------
 2188|  8.36k|      buf.write_uint8(0, 'I');
 2189|  8.36k|      break;
 2190|    661|    case bigEndian:
  ------------------
  |  Branch (2190:5): [True: 661, False: 8.36k]
  ------------------
 2191|    661|      buf.write_uint8(0, 'M');
 2192|    661|      break;
 2193|      0|    case invalidByteOrder:
  ------------------
  |  Branch (2193:5): [True: 0, False: 9.02k]
  ------------------
 2194|      0|      break;
 2195|  9.02k|  }
 2196|  9.02k|  buf.write_uint8(1, buf.read_uint8(0));
 2197|  9.02k|  buf.write_uint16(2, tag_, byteOrder_);
 2198|  9.02k|  buf.write_uint32(4, 0x00000008, byteOrder_);
 2199|  9.02k|  return buf;
 2200|  9.02k|}
_ZNK5Exiv28Internal14TiffHeaderBase9byteOrderEv:
 2218|   145k|ByteOrder TiffHeaderBase::byteOrder() const {
 2219|   145k|  return byteOrder_;
 2220|   145k|}
_ZN5Exiv28Internal14TiffHeaderBase12setByteOrderENS_9ByteOrderE:
 2222|  20.4k|void TiffHeaderBase::setByteOrder(ByteOrder byteOrder) {
 2223|  20.4k|  byteOrder_ = byteOrder;
 2224|  20.4k|}
_ZNK5Exiv28Internal14TiffHeaderBase6offsetEv:
 2226|  86.7k|uint32_t TiffHeaderBase::offset() const {
 2227|  86.7k|  return offset_;
 2228|  86.7k|}
_ZN5Exiv28Internal14TiffHeaderBase9setOffsetEj:
 2230|  17.6k|void TiffHeaderBase::setOffset(uint32_t offset) {
 2231|  17.6k|  offset_ = offset;
 2232|  17.6k|}
_ZNK5Exiv28Internal14TiffHeaderBase3tagEv:
 2238|  22.5k|uint16_t TiffHeaderBase::tag() const {
 2239|  22.5k|  return tag_;
 2240|  22.5k|}
_ZN5Exiv28Internal14isTiffImageTagEtNS_5IfdIdE:
 2324|   151k|bool isTiffImageTag(uint16_t tag, IfdId group) {
 2325|   151k|  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|   151k|  return result;
 2335|   151k|}
_ZN5Exiv28Internal10TiffHeaderC2ENS_9ByteOrderEjb:
 2338|   203k|    TiffHeaderBase(42, 8, byteOrder, offset), hasImageTags_(hasImageTags) {
 2339|   203k|}
_ZNK5Exiv28Internal10TiffHeader10isImageTagEtNS_5IfdIdERKNSt3__16vectorIS2_NS3_9allocatorIS2_EEEE:
 2341|   243k|bool TiffHeader::isImageTag(uint16_t tag, IfdId group, const PrimaryGroups& pPrimaryGroups) const {
 2342|   243k|  if (!hasImageTags_) {
  ------------------
  |  Branch (2342:7): [True: 243k, False: 0]
  ------------------
 2343|       |#ifdef EXIV2_DEBUG_MESSAGES
 2344|       |    std::cerr << "No image tags in this image\n";
 2345|       |#endif
 2346|   243k|    return false;
 2347|   243k|  }
 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|   151k|static bool isTiffImageTagLookup(uint16_t tag, IfdId group) {
 2247|   151k|  if (group != IfdId::ifd0Id) {
  ------------------
  |  Branch (2247:7): [True: 0, False: 151k]
  ------------------
 2248|      0|    return false;
 2249|      0|  }
 2250|       |  //! List of TIFF image tags
 2251|   151k|  switch (tag) {
 2252|      0|    case 0x00fe:  // Exif.Image.NewSubfileType
  ------------------
  |  Branch (2252:5): [True: 0, False: 151k]
  ------------------
 2253|      0|    case 0x00ff:  // Exif.Image.SubfileType
  ------------------
  |  Branch (2253:5): [True: 0, False: 151k]
  ------------------
 2254|  4.66k|    case 0x0100:  // Exif.Image.ImageWidth
  ------------------
  |  Branch (2254:5): [True: 4.66k, False: 147k]
  ------------------
 2255|  57.2k|    case 0x0101:  // Exif.Image.ImageLength
  ------------------
  |  Branch (2255:5): [True: 52.5k, False: 99.3k]
  ------------------
 2256|  59.8k|    case 0x0102:  // Exif.Image.BitsPerSample
  ------------------
  |  Branch (2256:5): [True: 2.56k, False: 149k]
  ------------------
 2257|  59.8k|    case 0x0103:  // Exif.Image.Compression
  ------------------
  |  Branch (2257:5): [True: 83, False: 151k]
  ------------------
 2258|  59.9k|    case 0x0106:  // Exif.Image.PhotometricInterpretation
  ------------------
  |  Branch (2258:5): [True: 86, False: 151k]
  ------------------
 2259|  60.0k|    case 0x010a:  // Exif.Image.FillOrder
  ------------------
  |  Branch (2259:5): [True: 28, False: 151k]
  ------------------
 2260|  63.1k|    case 0x0111:  // Exif.Image.StripOffsets
  ------------------
  |  Branch (2260:5): [True: 3.13k, False: 148k]
  ------------------
 2261|  63.2k|    case 0x0115:  // Exif.Image.SamplesPerPixel
  ------------------
  |  Branch (2261:5): [True: 115, False: 151k]
  ------------------
 2262|  63.2k|    case 0x0116:  // Exif.Image.RowsPerStrip
  ------------------
  |  Branch (2262:5): [True: 24, False: 151k]
  ------------------
 2263|  65.9k|    case 0x0117:  // Exif.Image.StripByteCounts
  ------------------
  |  Branch (2263:5): [True: 2.64k, False: 149k]
  ------------------
 2264|  66.6k|    case 0x011a:  // Exif.Image.XResolution
  ------------------
  |  Branch (2264:5): [True: 686, False: 151k]
  ------------------
 2265|  66.6k|    case 0x011b:  // Exif.Image.YResolution
  ------------------
  |  Branch (2265:5): [True: 84, False: 151k]
  ------------------
 2266|  66.8k|    case 0x011c:  // Exif.Image.PlanarConfiguration
  ------------------
  |  Branch (2266:5): [True: 117, False: 151k]
  ------------------
 2267|  66.9k|    case 0x0122:  // Exif.Image.GrayResponseUnit
  ------------------
  |  Branch (2267:5): [True: 109, False: 151k]
  ------------------
 2268|  67.1k|    case 0x0123:  // Exif.Image.GrayResponseCurve
  ------------------
  |  Branch (2268:5): [True: 186, False: 151k]
  ------------------
 2269|  67.1k|    case 0x0124:  // Exif.Image.T4Options
  ------------------
  |  Branch (2269:5): [True: 78, False: 151k]
  ------------------
 2270|  67.2k|    case 0x0125:  // Exif.Image.T6Options
  ------------------
  |  Branch (2270:5): [True: 67, False: 151k]
  ------------------
 2271|  67.3k|    case 0x0128:  // Exif.Image.ResolutionUnit
  ------------------
  |  Branch (2271:5): [True: 72, False: 151k]
  ------------------
 2272|  67.3k|    case 0x0129:  // Exif.Image.PageNumber
  ------------------
  |  Branch (2272:5): [True: 46, False: 151k]
  ------------------
 2273|  67.4k|    case 0x012d:  // Exif.Image.TransferFunction
  ------------------
  |  Branch (2273:5): [True: 119, False: 151k]
  ------------------
 2274|  67.5k|    case 0x013d:  // Exif.Image.Predictor
  ------------------
  |  Branch (2274:5): [True: 76, False: 151k]
  ------------------
 2275|  67.6k|    case 0x013e:  // Exif.Image.WhitePoint
  ------------------
  |  Branch (2275:5): [True: 34, False: 151k]
  ------------------
 2276|  67.7k|    case 0x013f:  // Exif.Image.PrimaryChromaticities
  ------------------
  |  Branch (2276:5): [True: 114, False: 151k]
  ------------------
 2277|  67.8k|    case 0x0140:  // Exif.Image.ColorMap
  ------------------
  |  Branch (2277:5): [True: 132, False: 151k]
  ------------------
 2278|  67.9k|    case 0x0141:  // Exif.Image.HalftoneHints
  ------------------
  |  Branch (2278:5): [True: 101, False: 151k]
  ------------------
 2279|  68.0k|    case 0x0142:  // Exif.Image.TileWidth
  ------------------
  |  Branch (2279:5): [True: 84, False: 151k]
  ------------------
 2280|  68.0k|    case 0x0143:  // Exif.Image.TileLength
  ------------------
  |  Branch (2280:5): [True: 31, False: 151k]
  ------------------
 2281|  68.2k|    case 0x0144:  // Exif.Image.TileOffsets
  ------------------
  |  Branch (2281:5): [True: 195, False: 151k]
  ------------------
 2282|  68.4k|    case 0x0145:  // Exif.Image.TileByteCounts
  ------------------
  |  Branch (2282:5): [True: 187, False: 151k]
  ------------------
 2283|  68.5k|    case 0x014c:  // Exif.Image.InkSet
  ------------------
  |  Branch (2283:5): [True: 97, False: 151k]
  ------------------
 2284|  68.6k|    case 0x014d:  // Exif.Image.InkNames
  ------------------
  |  Branch (2284:5): [True: 71, False: 151k]
  ------------------
 2285|  68.6k|    case 0x014e:  // Exif.Image.NumberOfInks
  ------------------
  |  Branch (2285:5): [True: 69, False: 151k]
  ------------------
 2286|  68.7k|    case 0x0150:  // Exif.Image.DotRange
  ------------------
  |  Branch (2286:5): [True: 43, False: 151k]
  ------------------
 2287|  68.8k|    case 0x0151:  // Exif.Image.TargetPrinter
  ------------------
  |  Branch (2287:5): [True: 121, False: 151k]
  ------------------
 2288|  68.8k|    case 0x0152:  // Exif.Image.ExtraSamples
  ------------------
  |  Branch (2288:5): [True: 26, False: 151k]
  ------------------
 2289|  68.9k|    case 0x0153:  // Exif.Image.SampleFormat
  ------------------
  |  Branch (2289:5): [True: 34, False: 151k]
  ------------------
 2290|  68.9k|    case 0x0154:  // Exif.Image.SMinSampleValue
  ------------------
  |  Branch (2290:5): [True: 60, False: 151k]
  ------------------
 2291|  68.9k|    case 0x0155:  // Exif.Image.SMaxSampleValue
  ------------------
  |  Branch (2291:5): [True: 20, False: 151k]
  ------------------
 2292|  69.0k|    case 0x0156:  // Exif.Image.TransferRange
  ------------------
  |  Branch (2292:5): [True: 38, False: 151k]
  ------------------
 2293|  69.0k|    case 0x0157:  // Exif.Image.ClipPath
  ------------------
  |  Branch (2293:5): [True: 35, False: 151k]
  ------------------
 2294|  69.1k|    case 0x0158:  // Exif.Image.XClipPathUnits
  ------------------
  |  Branch (2294:5): [True: 82, False: 151k]
  ------------------
 2295|  69.2k|    case 0x0159:  // Exif.Image.YClipPathUnits
  ------------------
  |  Branch (2295:5): [True: 106, False: 151k]
  ------------------
 2296|  69.2k|    case 0x015a:  // Exif.Image.Indexed
  ------------------
  |  Branch (2296:5): [True: 40, False: 151k]
  ------------------
 2297|  69.3k|    case 0x015b:  // Exif.Image.JPEGTables
  ------------------
  |  Branch (2297:5): [True: 75, False: 151k]
  ------------------
 2298|  70.9k|    case 0x0200:  // Exif.Image.JPEGProc
  ------------------
  |  Branch (2298:5): [True: 1.55k, False: 150k]
  ------------------
 2299|  75.6k|    case 0x0201:  // Exif.Image.JPEGInterchangeFormat
  ------------------
  |  Branch (2299:5): [True: 4.70k, False: 147k]
  ------------------
 2300|  83.0k|    case 0x0202:  // Exif.Image.JPEGInterchangeFormatLength
  ------------------
  |  Branch (2300:5): [True: 7.44k, False: 144k]
  ------------------
 2301|  83.2k|    case 0x0203:  // Exif.Image.JPEGRestartInterval
  ------------------
  |  Branch (2301:5): [True: 135, False: 151k]
  ------------------
 2302|  83.3k|    case 0x0205:  // Exif.Image.JPEGLosslessPredictors
  ------------------
  |  Branch (2302:5): [True: 115, False: 151k]
  ------------------
 2303|  83.3k|    case 0x0206:  // Exif.Image.JPEGPointTransforms
  ------------------
  |  Branch (2303:5): [True: 76, False: 151k]
  ------------------
 2304|  83.4k|    case 0x0207:  // Exif.Image.JPEGQTables
  ------------------
  |  Branch (2304:5): [True: 48, False: 151k]
  ------------------
 2305|  83.6k|    case 0x0208:  // Exif.Image.JPEGDCTables
  ------------------
  |  Branch (2305:5): [True: 163, False: 151k]
  ------------------
 2306|  83.6k|    case 0x0209:  // Exif.Image.JPEGACTables
  ------------------
  |  Branch (2306:5): [True: 55, False: 151k]
  ------------------
 2307|  83.7k|    case 0x0211:  // Exif.Image.YCbCrCoefficients
  ------------------
  |  Branch (2307:5): [True: 62, False: 151k]
  ------------------
 2308|  83.8k|    case 0x0212:  // Exif.Image.YCbCrSubSampling
  ------------------
  |  Branch (2308:5): [True: 86, False: 151k]
  ------------------
 2309|  83.9k|    case 0x0213:  // Exif.Image.YCbCrPositioning
  ------------------
  |  Branch (2309:5): [True: 115, False: 151k]
  ------------------
 2310|  83.9k|    case 0x0214:  // Exif.Image.ReferenceBlackWhite
  ------------------
  |  Branch (2310:5): [True: 17, False: 151k]
  ------------------
 2311|  83.9k|    case 0x828d:  // Exif.Image.CFARepeatPatternDim
  ------------------
  |  Branch (2311:5): [True: 17, False: 151k]
  ------------------
 2312|  83.9k|    case 0x828e:  // Exif.Image.CFAPattern
  ------------------
  |  Branch (2312:5): [True: 36, False: 151k]
  ------------------
 2313|       |    // case 0x8773:  // Exif.Image.InterColorProfile
 2314|  84.0k|    case 0x8824:  // Exif.Image.SpectralSensitivity
  ------------------
  |  Branch (2314:5): [True: 19, False: 151k]
  ------------------
 2315|  84.0k|    case 0x8828:  // Exif.Image.OECF
  ------------------
  |  Branch (2315:5): [True: 10, False: 151k]
  ------------------
 2316|  84.1k|    case 0x9102:  // Exif.Image.CompressedBitsPerPixel
  ------------------
  |  Branch (2316:5): [True: 105, False: 151k]
  ------------------
 2317|  84.2k|    case 0x9217:  // Exif.Image.SensingMethod
  ------------------
  |  Branch (2317:5): [True: 75, False: 151k]
  ------------------
 2318|  84.2k|      return true;
 2319|  67.6k|    default:
  ------------------
  |  Branch (2319:5): [True: 67.6k, False: 84.2k]
  ------------------
 2320|  67.6k|      return false;
 2321|   151k|  }
 2322|   151k|}

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

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

_ZN5Exiv28Internal11TiffVisitorD2Ev:
   64|  94.1k|  virtual ~TiffVisitor() = default;
_ZN5Exiv28Internal11TiffEncoderD2Ev:
  354|  9.61k|  ~TiffEncoder() override = default;
_ZN5Exiv28Internal11TiffRwStateC2ENS_9ByteOrderEm:
  537|  72.6k|  constexpr TiffRwState(ByteOrder byteOrder, size_t baseOffset) : byteOrder_(byteOrder), baseOffset_(baseOffset) {
  538|  72.6k|  }
_ZN5Exiv28Internal10TiffFinderC2EtNS_5IfdIdE:
  141|   253k|  constexpr TiffFinder(uint16_t tag, IfdId group) : tag_(tag), group_(group) {
  142|   253k|  }
_ZN5Exiv28Internal11TiffVisitorC2Ev:
   62|   347k|  TiffVisitor() = default;
_ZNK5Exiv28Internal10TiffFinder6resultEv:
  180|   253k|  [[nodiscard]] TiffComponent* result() const {
  181|   253k|    return tiffComponent_;
  182|   253k|  }
_ZNK5Exiv28Internal11TiffEncoder9byteOrderEv:
  457|  2.71M|  [[nodiscard]] ByteOrder byteOrder() const {
  458|  2.71M|    return byteOrder_;
  459|  2.71M|  }
_ZNK5Exiv28Internal11TiffEncoder11writeMethodEv:
  466|  9.60k|  [[nodiscard]] WriteMethod writeMethod() const {
  467|  9.60k|    return writeMethod_;
  468|  9.60k|  }
_ZNK5Exiv28Internal11TiffRwState9byteOrderEv:
  547|  37.0M|  [[nodiscard]] ByteOrder byteOrder() const {
  548|  37.0M|    return byteOrder_;
  549|  37.0M|  }
_ZNK5Exiv28Internal11TiffRwState10baseOffsetEv:
  561|  3.81M|  [[nodiscard]] size_t baseOffset() const {
  562|  3.81M|    return baseOffset_;
  563|  3.81M|  }

_ZN5Exiv28TypeInfo8typeSizeENS_6TypeIdE:
   86|  52.9M|size_t TypeInfo::typeSize(TypeId typeId) {
   87|  52.9M|  if (auto tit = Exiv2::find(typeInfoTable, typeId))
  ------------------
  |  Branch (87:12): [True: 47.3M, False: 5.65M]
  ------------------
   88|  47.3M|    return tit->size_;
   89|  5.65M|  return 0;
   90|  52.9M|}
_ZN5Exiv27DataBufC2Em:
   92|  1.66M|DataBuf::DataBuf(size_t size) : pData_(size) {
   93|  1.66M|}
_ZN5Exiv27DataBufC2EPKhm:
   95|  42.9k|DataBuf::DataBuf(const byte* pData, size_t size) : pData_(pData, pData + size) {
   96|  42.9k|}
_ZN5Exiv27DataBuf5allocEm:
   98|  49.6k|void DataBuf::alloc(size_t size) {
   99|  49.6k|  pData_.resize(size);
  100|  49.6k|}
_ZN5Exiv27DataBuf6resizeEm:
  102|   107k|void DataBuf::resize(size_t size) {
  103|   107k|  pData_.resize(size);
  104|   107k|}
_ZN5Exiv27DataBuf5resetEv:
  106|  32.2k|void DataBuf::reset() {
  107|  32.2k|  pData_.clear();
  108|  32.2k|}
_ZNK5Exiv27DataBuf10read_uint8Em:
  110|  1.20M|uint8_t Exiv2::DataBuf::read_uint8(size_t offset) const {
  111|  1.20M|  if (offset >= pData_.size()) {
  ------------------
  |  Branch (111:7): [True: 0, False: 1.20M]
  ------------------
  112|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint8");
  113|      0|  }
  114|  1.20M|  return pData_[offset];
  115|  1.20M|}
_ZN5Exiv27DataBuf11write_uint8Emh:
  117|  1.24M|void Exiv2::DataBuf::write_uint8(size_t offset, uint8_t x) {
  118|  1.24M|  if (offset >= pData_.size()) {
  ------------------
  |  Branch (118:7): [True: 0, False: 1.24M]
  ------------------
  119|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint8");
  120|      0|  }
  121|  1.24M|  pData_[offset] = x;
  122|  1.24M|}
_ZNK5Exiv27DataBuf11read_uint16EmNS_9ByteOrderE:
  124|   569k|uint16_t Exiv2::DataBuf::read_uint16(size_t offset, ByteOrder byteOrder) const {
  125|   569k|  if (pData_.size() < 2 || offset > (pData_.size() - 2)) {
  ------------------
  |  Branch (125:7): [True: 0, False: 569k]
  |  Branch (125:28): [True: 2, False: 569k]
  ------------------
  126|      2|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint16");
  127|      2|  }
  128|   569k|  return getUShort(&pData_[offset], byteOrder);
  129|   569k|}
_ZN5Exiv27DataBuf12write_uint16EmtNS_9ByteOrderE:
  131|  9.02k|void Exiv2::DataBuf::write_uint16(size_t offset, uint16_t x, ByteOrder byteOrder) {
  132|  9.02k|  if (pData_.size() < 2 || offset > (pData_.size() - 2)) {
  ------------------
  |  Branch (132:7): [True: 0, False: 9.02k]
  |  Branch (132:28): [True: 0, False: 9.02k]
  ------------------
  133|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint16");
  134|      0|  }
  135|  9.02k|  us2Data(&pData_[offset], x, byteOrder);
  136|  9.02k|}
_ZNK5Exiv27DataBuf11read_uint32EmNS_9ByteOrderE:
  138|   393k|uint32_t Exiv2::DataBuf::read_uint32(size_t offset, ByteOrder byteOrder) const {
  139|   393k|  if (pData_.size() < 4 || offset > (pData_.size() - 4)) {
  ------------------
  |  Branch (139:7): [True: 1, False: 393k]
  |  Branch (139:28): [True: 1, False: 393k]
  ------------------
  140|      2|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint32");
  141|      2|  }
  142|   393k|  return getULong(&pData_[offset], byteOrder);
  143|   393k|}
_ZN5Exiv27DataBuf12write_uint32EmjNS_9ByteOrderE:
  145|  9.02k|void Exiv2::DataBuf::write_uint32(size_t offset, uint32_t x, ByteOrder byteOrder) {
  146|  9.02k|  if (pData_.size() < 4 || offset > (pData_.size() - 4)) {
  ------------------
  |  Branch (146:7): [True: 0, False: 9.02k]
  |  Branch (146:28): [True: 0, False: 9.02k]
  ------------------
  147|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint32");
  148|      0|  }
  149|  9.02k|  ul2Data(&pData_[offset], x, byteOrder);
  150|  9.02k|}
_ZNK5Exiv27DataBuf11read_uint64EmNS_9ByteOrderE:
  152|  1.88k|uint64_t Exiv2::DataBuf::read_uint64(size_t offset, ByteOrder byteOrder) const {
  153|  1.88k|  if (pData_.size() < 8 || offset > (pData_.size() - 8)) {
  ------------------
  |  Branch (153:7): [True: 0, False: 1.88k]
  |  Branch (153:28): [True: 0, False: 1.88k]
  ------------------
  154|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint64");
  155|      0|  }
  156|  1.88k|  return getULongLong(&pData_[offset], byteOrder);
  157|  1.88k|}
_ZNK5Exiv27DataBuf8cmpBytesEmPKvm:
  166|   313k|int Exiv2::DataBuf::cmpBytes(size_t offset, const void* buf, size_t bufsize) const {
  167|   313k|  if (pData_.size() < bufsize || offset > pData_.size() - bufsize) {
  ------------------
  |  Branch (167:7): [True: 3, False: 313k]
  |  Branch (167:34): [True: 0, False: 313k]
  ------------------
  168|      3|    throw std::out_of_range("Overflow in Exiv2::DataBuf::cmpBytes");
  169|      3|  }
  170|   313k|  return memcmp(&pData_[offset], buf, bufsize);
  171|   313k|}
_ZN5Exiv27DataBuf4dataEm:
  173|  6.27M|byte* Exiv2::DataBuf::data(size_t offset) {
  174|  6.27M|  return const_cast<byte*>(c_data(offset));
  175|  6.27M|}
_ZNK5Exiv27DataBuf6c_dataEm:
  177|  7.37M|const byte* Exiv2::DataBuf::c_data(size_t offset) const {
  178|  7.37M|  if (pData_.empty() || offset == pData_.size()) {
  ------------------
  |  Branch (178:7): [True: 17.3k, False: 7.35M]
  |  Branch (178:25): [True: 7.65k, False: 7.34M]
  ------------------
  179|  24.9k|    return nullptr;
  180|  24.9k|  }
  181|  7.34M|  if (offset > pData_.size()) {
  ------------------
  |  Branch (181:7): [True: 0, False: 7.34M]
  ------------------
  182|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::c_data");
  183|      0|  }
  184|  7.34M|  return &pData_[offset];
  185|  7.34M|}
_ZNK5Exiv27DataBuf5c_strEm:
  187|   238k|const char* Exiv2::DataBuf::c_str(size_t offset) const {
  188|   238k|  return reinterpret_cast<const char*>(c_data(offset));
  189|   238k|}
_ZN5Exiv29makeSliceERNS_7DataBufEmm:
  200|  42.2k|Slice<byte*> makeSlice(DataBuf& buf, size_t begin, size_t end) {
  201|  42.2k|  checkDataBufBounds(buf, end);
  202|  42.2k|  return {buf.data(), begin, end};
  203|  42.2k|}
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS0_4pairIiiEE:
  210|  40.8k|std::ostream& operator<<(std::ostream& os, const Rational& r) {
  211|  40.8k|  return os << r.first << "/" << r.second;
  212|  40.8k|}
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS0_4pairIjjEE:
  239|  23.1k|std::ostream& operator<<(std::ostream& os, const URational& r) {
  240|  23.1k|  return os << r.first << "/" << r.second;
  241|  23.1k|}
_ZN5Exiv29getUShortEPKhNS_9ByteOrderE:
  247|  59.1M|uint16_t getUShort(const byte* buf, ByteOrder byteOrder) {
  248|  59.1M|  return getUShort(makeSliceUntil(buf, 2), byteOrder);
  249|  59.1M|}
_ZN5Exiv28getULongEPKhNS_9ByteOrderE:
  251|  45.7M|uint32_t getULong(const byte* buf, ByteOrder byteOrder) {
  252|  45.7M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (252:7): [True: 1.53M, False: 44.2M]
  ------------------
  253|  1.53M|    return buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0];
  254|  1.53M|  }
  255|  44.2M|  return buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3];
  256|  45.7M|}
_ZN5Exiv212getULongLongEPKhNS_9ByteOrderE:
  258|  27.3k|uint64_t getULongLong(const byte* buf, ByteOrder byteOrder) {
  259|  27.3k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (259:7): [True: 1.76k, False: 25.6k]
  ------------------
  260|  1.76k|    return static_cast<uint64_t>(buf[7]) << 56 | static_cast<uint64_t>(buf[6]) << 48 |
  261|  1.76k|           static_cast<uint64_t>(buf[5]) << 40 | static_cast<uint64_t>(buf[4]) << 32 |
  262|  1.76k|           static_cast<uint64_t>(buf[3]) << 24 | static_cast<uint64_t>(buf[2]) << 16 |
  263|  1.76k|           static_cast<uint64_t>(buf[1]) << 8 | static_cast<uint64_t>(buf[0]);
  264|  1.76k|  }
  265|  25.6k|  return static_cast<uint64_t>(buf[0]) << 56 | static_cast<uint64_t>(buf[1]) << 48 |
  266|  25.6k|         static_cast<uint64_t>(buf[2]) << 40 | static_cast<uint64_t>(buf[3]) << 32 |
  267|  25.6k|         static_cast<uint64_t>(buf[4]) << 24 | static_cast<uint64_t>(buf[5]) << 16 |
  268|  25.6k|         static_cast<uint64_t>(buf[6]) << 8 | static_cast<uint64_t>(buf[7]);
  269|  27.3k|}
_ZN5Exiv212getURationalEPKhNS_9ByteOrderE:
  271|   351k|URational getURational(const byte* buf, ByteOrder byteOrder) {
  272|   351k|  uint32_t nominator = getULong(buf, byteOrder);
  273|   351k|  uint32_t denominator = getULong(buf + 4, byteOrder);
  274|   351k|  return {nominator, denominator};
  275|   351k|}
_ZN5Exiv28getShortEPKhNS_9ByteOrderE:
  277|  5.59M|int16_t getShort(const byte* buf, ByteOrder byteOrder) {
  278|  5.59M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (278:7): [True: 308k, False: 5.28M]
  ------------------
  279|   308k|    return buf[1] << 8 | buf[0];
  280|   308k|  }
  281|  5.28M|  return buf[0] << 8 | buf[1];
  282|  5.59M|}
_ZN5Exiv27getLongEPKhNS_9ByteOrderE:
  284|  1.19M|int32_t getLong(const byte* buf, ByteOrder byteOrder) {
  285|  1.19M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (285:7): [True: 54.1k, False: 1.13M]
  ------------------
  286|  54.1k|    return buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0];
  287|  54.1k|  }
  288|  1.13M|  return buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3];
  289|  1.19M|}
_ZN5Exiv211getRationalEPKhNS_9ByteOrderE:
  291|   424k|Rational getRational(const byte* buf, ByteOrder byteOrder) {
  292|   424k|  int32_t nominator = getLong(buf, byteOrder);
  293|   424k|  int32_t denominator = getLong(buf + 4, byteOrder);
  294|   424k|  return {nominator, denominator};
  295|   424k|}
_ZN5Exiv28getFloatEPKhNS_9ByteOrderE:
  297|   144k|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|   144k|#ifdef __cpp_lib_bit_cast
  302|   144k|  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|   144k|}
_ZN5Exiv29getDoubleEPKhNS_9ByteOrderE:
  313|  1.86M|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|  1.86M|#ifdef __cpp_lib_bit_cast
  318|  1.86M|  if (byteOrder == littleEndian)
  ------------------
  |  Branch (318:7): [True: 1.08k, False: 1.86M]
  ------------------
  319|  1.08k|    return std::bit_cast<double>(static_cast<uint64_t>(buf[7]) << 56 | static_cast<uint64_t>(buf[6]) << 48 |
  320|  1.08k|                                 static_cast<uint64_t>(buf[5]) << 40 | static_cast<uint64_t>(buf[4]) << 32 |
  321|  1.08k|                                 static_cast<uint64_t>(buf[3]) << 24 | static_cast<uint64_t>(buf[2]) << 16 |
  322|  1.08k|                                 static_cast<uint64_t>(buf[1]) << 8 | static_cast<uint64_t>(buf[0]));
  323|  1.86M|  return std::bit_cast<double>(static_cast<uint64_t>(buf[0]) << 56 | static_cast<uint64_t>(buf[1]) << 48 |
  324|  1.86M|                               static_cast<uint64_t>(buf[2]) << 40 | static_cast<uint64_t>(buf[3]) << 32 |
  325|  1.86M|                               static_cast<uint64_t>(buf[4]) << 24 | static_cast<uint64_t>(buf[5]) << 16 |
  326|  1.86M|                               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|  1.86M|}
_ZN5Exiv27us2DataEPhtNS_9ByteOrderE:
  348|  4.12M|size_t us2Data(byte* buf, uint16_t s, ByteOrder byteOrder) {
  349|  4.12M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (349:7): [True: 3.98M, False: 137k]
  ------------------
  350|  3.98M|    buf[0] = static_cast<byte>(s & 0x00ffU);
  351|  3.98M|    buf[1] = static_cast<byte>((s & 0xff00U) >> 8);
  352|  3.98M|  } else {
  353|   137k|    buf[0] = static_cast<byte>((s & 0xff00U) >> 8);
  354|   137k|    buf[1] = static_cast<byte>(s & 0x00ffU);
  355|   137k|  }
  356|  4.12M|  return 2;
  357|  4.12M|}
_ZN5Exiv27ul2DataEPhjNS_9ByteOrderE:
  359|  2.56M|size_t ul2Data(byte* buf, uint32_t l, ByteOrder byteOrder) {
  360|  2.56M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (360:7): [True: 2.45M, False: 111k]
  ------------------
  361|  2.45M|    buf[0] = static_cast<byte>(l & 0x000000ffU);
  362|  2.45M|    buf[1] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  363|  2.45M|    buf[2] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  364|  2.45M|    buf[3] = static_cast<byte>((l & 0xff000000U) >> 24);
  365|  2.45M|  } else {
  366|   111k|    buf[0] = static_cast<byte>((l & 0xff000000U) >> 24);
  367|   111k|    buf[1] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  368|   111k|    buf[2] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  369|   111k|    buf[3] = static_cast<byte>(l & 0x000000ffU);
  370|   111k|  }
  371|  2.56M|  return 4;
  372|  2.56M|}
_ZN5Exiv27ur2DataEPhNSt3__14pairIjjEENS_9ByteOrderE:
  389|   267k|size_t ur2Data(byte* buf, URational l, ByteOrder byteOrder) {
  390|   267k|  size_t o = ul2Data(buf, l.first, byteOrder);
  391|   267k|  o += ul2Data(buf + o, l.second, byteOrder);
  392|   267k|  return o;
  393|   267k|}
_ZN5Exiv26s2DataEPhsNS_9ByteOrderE:
  395|   174k|size_t s2Data(byte* buf, int16_t s, ByteOrder byteOrder) {
  396|   174k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (396:7): [True: 172k, False: 1.36k]
  ------------------
  397|   172k|    buf[0] = static_cast<byte>(s & 0x00ffU);
  398|   172k|    buf[1] = static_cast<byte>((s & 0xff00U) >> 8);
  399|   172k|  } else {
  400|  1.36k|    buf[0] = static_cast<byte>((s & 0xff00U) >> 8);
  401|  1.36k|    buf[1] = static_cast<byte>(s & 0x00ffU);
  402|  1.36k|  }
  403|   174k|  return 2;
  404|   174k|}
_ZN5Exiv26l2DataEPhiNS_9ByteOrderE:
  406|   130k|size_t l2Data(byte* buf, int32_t l, ByteOrder byteOrder) {
  407|   130k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (407:7): [True: 122k, False: 7.26k]
  ------------------
  408|   122k|    buf[0] = static_cast<byte>(l & 0x000000ffU);
  409|   122k|    buf[1] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  410|   122k|    buf[2] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  411|   122k|    buf[3] = static_cast<byte>((l & 0xff000000U) >> 24);
  412|   122k|  } else {
  413|  7.26k|    buf[0] = static_cast<byte>((l & 0xff000000U) >> 24);
  414|  7.26k|    buf[1] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  415|  7.26k|    buf[2] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  416|  7.26k|    buf[3] = static_cast<byte>(l & 0x000000ffU);
  417|  7.26k|  }
  418|   130k|  return 4;
  419|   130k|}
_ZN5Exiv26r2DataEPhNSt3__14pairIiiEENS_9ByteOrderE:
  421|  47.7k|size_t r2Data(byte* buf, Rational l, ByteOrder byteOrder) {
  422|  47.7k|  size_t o = l2Data(buf, l.first, byteOrder);
  423|  47.7k|  o += l2Data(buf + o, l.second, byteOrder);
  424|  47.7k|  return o;
  425|  47.7k|}
_ZN5Exiv26f2DataEPhfNS_9ByteOrderE:
  427|  43.6k|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|  43.6k|#ifdef __cpp_lib_bit_cast
  432|  43.6k|  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|  43.6k|}
_ZN5Exiv26d2DataEPhdNS_9ByteOrderE:
  443|  70.2k|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|  70.2k|  union {
  448|  70.2k|    uint64_t ull_;
  449|  70.2k|    double d_;
  450|  70.2k|  } u;
  451|  70.2k|  u.d_ = d;
  452|  70.2k|  uint64_t m = 0xff;
  453|  70.2k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (453:7): [True: 69.3k, False: 826]
  ------------------
  454|  69.3k|    buf[0] = static_cast<byte>(u.ull_ & m);
  455|  69.3k|    buf[1] = static_cast<byte>((u.ull_ & (m << 8)) >> 8);
  456|  69.3k|    buf[2] = static_cast<byte>((u.ull_ & (m << 16)) >> 16);
  457|  69.3k|    buf[3] = static_cast<byte>((u.ull_ & (m << 24)) >> 24);
  458|  69.3k|    buf[4] = static_cast<byte>((u.ull_ & (m << 32)) >> 32);
  459|  69.3k|    buf[5] = static_cast<byte>((u.ull_ & (m << 40)) >> 40);
  460|  69.3k|    buf[6] = static_cast<byte>((u.ull_ & (m << 48)) >> 48);
  461|  69.3k|    buf[7] = static_cast<byte>((u.ull_ & (m << 56)) >> 56);
  462|  69.3k|  } else {
  463|    826|    buf[0] = static_cast<byte>((u.ull_ & (m << 56)) >> 56);
  464|    826|    buf[1] = static_cast<byte>((u.ull_ & (m << 48)) >> 48);
  465|    826|    buf[2] = static_cast<byte>((u.ull_ & (m << 40)) >> 40);
  466|    826|    buf[3] = static_cast<byte>((u.ull_ & (m << 32)) >> 32);
  467|    826|    buf[4] = static_cast<byte>((u.ull_ & (m << 24)) >> 24);
  468|    826|    buf[5] = static_cast<byte>((u.ull_ & (m << 16)) >> 16);
  469|    826|    buf[6] = static_cast<byte>((u.ull_ & (m << 8)) >> 8);
  470|    826|    buf[7] = static_cast<byte>(u.ull_ & m);
  471|    826|  }
  472|  70.2k|  return 8;
  473|  70.2k|}
_ZN5Exiv25isHexERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEmS8_:
  502|  31.7k|bool isHex(const std::string& str, size_t size, const std::string& prefix) {
  503|  31.7k|  if (!str.starts_with(prefix))
  ------------------
  |  Branch (503:7): [True: 0, False: 31.7k]
  ------------------
  504|      0|    return false;
  505|  31.7k|  if (size > 0 && str.size() != size + prefix.size())
  ------------------
  |  Branch (505:7): [True: 31.7k, False: 0]
  |  Branch (505:19): [True: 0, False: 31.7k]
  ------------------
  506|      0|    return false;
  507|       |
  508|  31.7k|  return std::all_of(str.begin() + prefix.size(), str.end(), ::isxdigit);
  509|  31.7k|}  // isHex
_ZN5Exiv219floatToRationalCastEf:
  651|  5.00k|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|  5.00k|  const double d = f;
  656|       |  // Beware: primitive conversion algorithm
  657|  5.00k|  int32_t den;
  658|  5.00k|  if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 1000000) {
  ------------------
  |  Branch (658:7): [True: 2.22k, False: 2.77k]
  ------------------
  659|  2.22k|    den = 1000000;
  660|  2.77k|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 10000) {
  ------------------
  |  Branch (660:14): [True: 1.57k, False: 1.20k]
  ------------------
  661|  1.57k|    den = 10000;
  662|  1.57k|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 100) {
  ------------------
  |  Branch (662:14): [True: 164, False: 1.04k]
  ------------------
  663|    164|    den = 100;
  664|  1.04k|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max()) {
  ------------------
  |  Branch (664:14): [True: 78, False: 962]
  ------------------
  665|     78|    den = 1;
  666|    962|  } else {
  667|    962|    return {d > 0 ? 1 : -1, 0};
  ------------------
  |  Branch (667:13): [True: 682, False: 280]
  ------------------
  668|    962|  }
  669|  4.04k|  const auto nom = static_cast<int32_t>(std::lround(d * den));
  670|  4.04k|  const int32_t g = std::gcd(nom, den);
  671|       |
  672|  4.04k|  return {nom / g, den / g};
  673|  5.00k|}
types.cpp:_ZN5Exiv2L18checkDataBufBoundsERKNS_7DataBufEm:
  194|  42.2k|static void checkDataBufBounds(const DataBuf& buf, size_t end) {
  195|  42.2k|  Internal::enforce<std::invalid_argument>(end <= static_cast<size_t>(std::numeric_limits<long>::max()),
  196|  42.2k|                                           "end of slice too large to be compared with DataBuf bounds.");
  197|  42.2k|  Internal::enforce<std::out_of_range>(end <= buf.size(), "Invalid slice bounds specified");
  198|  42.2k|}
types.cpp:_ZNK12_GLOBAL__N_113TypeInfoTableeqEN5Exiv26TypeIdE:
   34|   346M|  bool operator==(Exiv2::TypeId typeId) const {
   35|   346M|    return typeId_ == typeId;
   36|   346M|  }

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

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

_ZN5Exiv25ValueC2ENS_6TypeIdE:
   19|  46.9M|Value::Value(TypeId typeId) : type_(typeId) {
   20|  46.9M|}
_ZN5Exiv25Value6createENS_6TypeIdE:
   22|  18.2M|Value::UniquePtr Value::create(TypeId typeId) {
   23|  18.2M|  switch (typeId) {
   24|      0|    case invalidTypeId:
  ------------------
  |  Branch (24:5): [True: 0, False: 18.2M]
  ------------------
   25|  7.73k|    case signedByte:
  ------------------
  |  Branch (25:5): [True: 7.73k, False: 18.2M]
  ------------------
   26|  1.35M|    case unsignedByte:
  ------------------
  |  Branch (26:5): [True: 1.34M, False: 16.9M]
  ------------------
   27|  1.35M|      return std::make_unique<DataValue>(typeId);
   28|   102k|    case asciiString:
  ------------------
  |  Branch (28:5): [True: 102k, False: 18.1M]
  ------------------
   29|   102k|      return std::make_unique<AsciiValue>();
   30|  12.3M|    case unsignedShort:
  ------------------
  |  Branch (30:5): [True: 12.3M, False: 5.96M]
  ------------------
   31|  12.3M|      return std::make_unique<ValueType<uint16_t>>();
   32|   235k|    case unsignedLong:
  ------------------
  |  Branch (32:5): [True: 235k, False: 18.0M]
  ------------------
   33|   256k|    case tiffIfd:
  ------------------
  |  Branch (33:5): [True: 20.9k, False: 18.2M]
  ------------------
   34|   256k|      return std::make_unique<ValueType<uint32_t>>(typeId);
   35|  48.4k|    case unsignedRational:
  ------------------
  |  Branch (35:5): [True: 48.4k, False: 18.2M]
  ------------------
   36|  48.4k|      return std::make_unique<ValueType<URational>>();
   37|   111k|    case undefined:
  ------------------
  |  Branch (37:5): [True: 111k, False: 18.1M]
  ------------------
   38|   111k|      return std::make_unique<DataValue>();
   39|  1.37M|    case signedShort:
  ------------------
  |  Branch (39:5): [True: 1.37M, False: 16.9M]
  ------------------
   40|  1.37M|      return std::make_unique<ValueType<int16_t>>();
   41|   149k|    case signedLong:
  ------------------
  |  Branch (41:5): [True: 149k, False: 18.1M]
  ------------------
   42|   149k|      return std::make_unique<ValueType<int32_t>>();
   43|  36.2k|    case signedRational:
  ------------------
  |  Branch (43:5): [True: 36.2k, False: 18.2M]
  ------------------
   44|  36.2k|      return std::make_unique<ValueType<Rational>>();
   45|  10.5k|    case tiffFloat:
  ------------------
  |  Branch (45:5): [True: 10.5k, False: 18.2M]
  ------------------
   46|  10.5k|      return std::make_unique<ValueType<float>>();
   47|  9.42k|    case tiffDouble:
  ------------------
  |  Branch (47:5): [True: 9.42k, False: 18.2M]
  ------------------
   48|  9.42k|      return std::make_unique<ValueType<double>>();
   49|  37.9k|    case string:
  ------------------
  |  Branch (49:5): [True: 37.9k, False: 18.2M]
  ------------------
   50|  37.9k|      return std::make_unique<StringValue>();
   51|  2.78k|    case date:
  ------------------
  |  Branch (51:5): [True: 2.78k, False: 18.2M]
  ------------------
   52|  2.78k|      return std::make_unique<DateValue>();
   53|  2.60k|    case time:
  ------------------
  |  Branch (53:5): [True: 2.60k, False: 18.2M]
  ------------------
   54|  2.60k|      return std::make_unique<TimeValue>();
   55|  2.81k|    case comment:
  ------------------
  |  Branch (55:5): [True: 2.81k, False: 18.2M]
  ------------------
   56|  2.81k|      return std::make_unique<CommentValue>();
   57|  23.3k|    case xmpText:
  ------------------
  |  Branch (57:5): [True: 23.3k, False: 18.2M]
  ------------------
   58|  23.3k|      return std::make_unique<XmpTextValue>();
   59|      0|    case xmpBag:
  ------------------
  |  Branch (59:5): [True: 0, False: 18.2M]
  ------------------
   60|  3.07k|    case xmpSeq:
  ------------------
  |  Branch (60:5): [True: 3.07k, False: 18.2M]
  ------------------
   61|  3.07k|    case xmpAlt:
  ------------------
  |  Branch (61:5): [True: 0, False: 18.2M]
  ------------------
   62|  3.07k|      return std::make_unique<XmpArrayValue>(typeId);
   63|      0|    case langAlt:
  ------------------
  |  Branch (63:5): [True: 0, False: 18.2M]
  ------------------
   64|      0|      return std::make_unique<LangAltValue>();
   65|  2.44M|    default:
  ------------------
  |  Branch (65:5): [True: 2.44M, False: 15.8M]
  ------------------
   66|  2.44M|      return std::make_unique<DataValue>(typeId);
   67|  18.2M|  }
   68|  18.2M|}  // Value::create
_ZN5Exiv25Value11setDataAreaEPKhm:
   70|  1.33k|int Value::setDataArea(const byte* /*buf*/, size_t /*len*/) {
   71|  1.33k|  return -1;
   72|  1.33k|}
_ZNK5Exiv25Value8toStringEv:
   74|   115k|std::string Value::toString() const {
   75|   115k|  std::ostringstream os;
   76|   115k|  write(os);
   77|   115k|  ok_ = !os.fail();
   78|   115k|  return os.str();
   79|   115k|}
_ZNK5Exiv25Value8toStringEm:
   81|  11.1k|std::string Value::toString(size_t /*n*/) const {
   82|  11.1k|  return toString();
   83|  11.1k|}
_ZNK5Exiv25Value12sizeDataAreaEv:
   85|  39.5k|size_t Value::sizeDataArea() const {
   86|  39.5k|  return 0;
   87|  39.5k|}
_ZNK5Exiv25Value8dataAreaEv:
   89|  2.82k|DataBuf Value::dataArea() const {
   90|  2.82k|  return {nullptr, 0};
   91|  2.82k|}
_ZN5Exiv29DataValueC2ENS_6TypeIdE:
   93|  3.90M|DataValue::DataValue(TypeId typeId) : Value(typeId) {
   94|  3.90M|}
_ZNK5Exiv29DataValue5countEv:
  100|  8.50M|size_t DataValue::count() const {
  101|  8.50M|  return size();
  102|  8.50M|}
_ZN5Exiv29DataValue4readEPKhmNS_9ByteOrderE:
  104|  3.90M|int DataValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  105|       |  // byteOrder not needed
  106|  3.90M|  value_.assign(buf, buf + len);
  107|  3.90M|  return 0;
  108|  3.90M|}
_ZNK5Exiv29DataValue4copyEPhNS_9ByteOrderE:
  122|  2.66M|size_t DataValue::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  123|       |  // byteOrder not needed
  124|  2.66M|  return std::copy(value_.begin(), value_.end(), buf) - buf;
  125|  2.66M|}
_ZNK5Exiv29DataValue4sizeEv:
  127|  17.9M|size_t DataValue::size() const {
  128|  17.9M|  return value_.size();
  129|  17.9M|}
_ZNK5Exiv29DataValue6clone_Ev:
  131|  13.1M|DataValue* DataValue::clone_() const {
  132|  13.1M|  return new DataValue(*this);
  133|  13.1M|}
_ZNK5Exiv29DataValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  135|   114k|std::ostream& DataValue::write(std::ostream& os) const {
  136|   114k|  if (!value_.empty()) {
  ------------------
  |  Branch (136:7): [True: 113k, False: 428]
  ------------------
  137|   113k|    std::copy(value_.begin(), value_.end() - 1, std::ostream_iterator<int>(os, " "));
  138|   113k|    os << static_cast<int>(value_.back());
  139|   113k|  }
  140|   114k|  return os;
  141|   114k|}
_ZNK5Exiv29DataValue8toStringEm:
  143|  2.06k|std::string DataValue::toString(size_t n) const {
  144|  2.06k|  ok_ = true;
  145|  2.06k|  return std::to_string(value_.at(n));
  146|  2.06k|}
_ZNK5Exiv29DataValue7toInt64Em:
  148|   230k|int64_t DataValue::toInt64(size_t n) const {
  149|   230k|  ok_ = true;
  150|   230k|  return value_.at(n);
  151|   230k|}
_ZNK5Exiv29DataValue8toUint32Em:
  153|  53.8k|uint32_t DataValue::toUint32(size_t n) const {
  154|  53.8k|  ok_ = true;
  155|  53.8k|  return value_.at(n);
  156|  53.8k|}
_ZNK5Exiv29DataValue7toFloatEm:
  158|  1.51k|float DataValue::toFloat(size_t n) const {
  159|  1.51k|  ok_ = true;
  160|  1.51k|  return value_.at(n);
  161|  1.51k|}
_ZNK5Exiv29DataValue10toRationalEm:
  163|  2.01k|Rational DataValue::toRational(size_t n) const {
  164|  2.01k|  ok_ = true;
  165|  2.01k|  return {value_.at(n), 1};
  166|  2.01k|}
_ZN5Exiv215StringValueBase4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  172|    154|int StringValueBase::read(const std::string& buf) {
  173|    154|  value_ = buf;
  174|    154|  return 0;
  175|    154|}
_ZN5Exiv215StringValueBase4readEPKhmNS_9ByteOrderE:
  177|   128k|int StringValueBase::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  178|       |  // byteOrder not needed
  179|   128k|  if (buf)
  ------------------
  |  Branch (179:7): [True: 128k, False: 0]
  ------------------
  180|   128k|    value_ = std::string(reinterpret_cast<const char*>(buf), len);
  181|   128k|  return 0;
  182|   128k|}
_ZNK5Exiv215StringValueBase4copyEPhNS_9ByteOrderE:
  184|  66.0k|size_t StringValueBase::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  185|  66.0k|  if (value_.empty())
  ------------------
  |  Branch (185:7): [True: 26.2k, False: 39.8k]
  ------------------
  186|  26.2k|    return 0;
  187|       |  // byteOrder not needed
  188|  39.8k|  return value_.copy(reinterpret_cast<char*>(buf), value_.size());
  189|  66.0k|}
_ZNK5Exiv215StringValueBase5countEv:
  191|   219k|size_t StringValueBase::count() const {
  192|   219k|  return size();
  193|   219k|}
_ZNK5Exiv215StringValueBase4sizeEv:
  195|   401k|size_t StringValueBase::size() const {
  196|   401k|  return value_.size();
  197|   401k|}
_ZNK5Exiv215StringValueBase5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  199|  3.03k|std::ostream& StringValueBase::write(std::ostream& os) const {
  200|  3.03k|  return os << value_;
  201|  3.03k|}
_ZNK5Exiv215StringValueBase7toInt64Em:
  203|  26.2k|int64_t StringValueBase::toInt64(size_t n) const {
  204|  26.2k|  ok_ = true;
  205|  26.2k|  return value_.at(n);
  206|  26.2k|}
_ZNK5Exiv215StringValueBase8toUint32Em:
  208|  2.97k|uint32_t StringValueBase::toUint32(size_t n) const {
  209|  2.97k|  ok_ = true;
  210|  2.97k|  return value_.at(n);
  211|  2.97k|}
_ZNK5Exiv215StringValueBase7toFloatEm:
  213|    449|float StringValueBase::toFloat(size_t n) const {
  214|    449|  ok_ = true;
  215|    449|  return value_.at(n);
  216|    449|}
_ZNK5Exiv215StringValueBase10toRationalEm:
  218|    630|Rational StringValueBase::toRational(size_t n) const {
  219|    630|  ok_ = true;
  220|    630|  return {value_.at(n), 1};
  221|    630|}
_ZN5Exiv211StringValueC2Ev:
  223|  37.9k|StringValue::StringValue() : StringValueBase(string) {
  224|  37.9k|}
_ZNK5Exiv211StringValue6clone_Ev:
  229|   479k|StringValue* StringValue::clone_() const {
  230|   479k|  return new StringValue(*this);
  231|   479k|}
_ZN5Exiv210AsciiValueC2Ev:
  233|   102k|AsciiValue::AsciiValue() : StringValueBase(asciiString) {
  234|   102k|}
_ZN5Exiv210AsciiValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  239|  30.0k|int AsciiValue::read(const std::string& buf) {
  240|  30.0k|  value_ = buf;
  241|       |  // ensure count>0 and nul terminated # https://github.com/Exiv2/exiv2/issues/1484
  242|  30.0k|  if (value_.empty() || value_.back() != '\0') {
  ------------------
  |  Branch (242:7): [True: 0, False: 30.0k]
  |  Branch (242:25): [True: 30.0k, False: 0]
  ------------------
  243|  30.0k|    value_ += '\0';
  244|  30.0k|  }
  245|  30.0k|  return 0;
  246|  30.0k|}
_ZNK5Exiv210AsciiValue6clone_Ev:
  248|   230k|AsciiValue* AsciiValue::clone_() const {
  249|   230k|  return new AsciiValue(*this);
  250|   230k|}
_ZNK5Exiv210AsciiValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  252|   147k|std::ostream& AsciiValue::write(std::ostream& os) const {
  253|       |  // Write only up to the first '\0' (if any)
  254|   147k|  std::string::size_type pos = value_.find_first_of('\0');
  255|   147k|  if (pos == std::string::npos)
  ------------------
  |  Branch (255:7): [True: 5.87k, False: 141k]
  ------------------
  256|  5.87k|    pos = value_.size();
  257|   147k|  return os << value_.substr(0, pos);
  258|   147k|}
_ZN5Exiv212CommentValue11CharsetInfo4nameENS0_9CharsetIdE:
  270|    958|const char* CommentValue::CharsetInfo::name(CharsetId charsetId) {
  271|    958|  return charsetTable_[charsetId < lastCharsetId ? charsetId : undefined].name_;
  ------------------
  |  Branch (271:24): [True: 958, False: 0]
  ------------------
  272|    958|}
_ZN5Exiv212CommentValue11CharsetInfo15charsetIdByCodeERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  285|  5.02k|CommentValue::CharsetId CommentValue::CharsetInfo::charsetIdByCode(const std::string& code) {
  286|  5.02k|  int i = 0;
  287|  23.1k|  for (; charsetTable_[i].charsetId_ != lastCharsetId && std::string(charsetTable_[i].code_, 8) != code; ++i) {
  ------------------
  |  Branch (287:10): [True: 20.6k, False: 2.52k]
  |  Branch (287:10): [True: 18.1k, False: 5.02k]
  |  Branch (287:58): [True: 18.1k, False: 2.50k]
  ------------------
  288|  18.1k|  }
  289|  5.02k|  return charsetTable_[i].charsetId_ == lastCharsetId ? invalidCharsetId : charsetTable_[i].charsetId_;
  ------------------
  |  Branch (289:10): [True: 2.52k, False: 2.50k]
  ------------------
  290|  5.02k|}
_ZN5Exiv212CommentValueC2Ev:
  292|  2.81k|CommentValue::CommentValue() : StringValueBase(Exiv2::undefined) {
  293|  2.81k|}
_ZN5Exiv212CommentValue4readEPKhmNS_9ByteOrderE:
  329|  2.81k|int CommentValue::read(const byte* buf, size_t len, ByteOrder byteOrder) {
  330|  2.81k|  byteOrder_ = byteOrder;
  331|  2.81k|  return StringValueBase::read(buf, len, byteOrder);
  332|  2.81k|}
_ZNK5Exiv212CommentValue4copyEPhNS_9ByteOrderE:
  334|    464|size_t CommentValue::copy(byte* buf, ByteOrder byteOrder) const {
  335|    464|  std::string c = value_;
  336|    464|  if (charsetId() == unicode) {
  ------------------
  |  Branch (336:7): [True: 79, False: 385]
  ------------------
  337|     79|    c = value_.substr(8);
  338|     79|    [[maybe_unused]] const size_t sz = c.size();
  339|     79|    if (byteOrder_ == littleEndian && byteOrder == bigEndian) {
  ------------------
  |  Branch (339:9): [True: 21, False: 58]
  |  Branch (339:39): [True: 0, False: 21]
  ------------------
  340|      0|      convertStringCharset(c, "UCS-2LE", "UCS-2BE");
  341|     79|    } else if (byteOrder_ == bigEndian && byteOrder == littleEndian) {
  ------------------
  |  Branch (341:16): [True: 58, False: 21]
  |  Branch (341:43): [True: 0, False: 58]
  ------------------
  342|      0|      convertStringCharset(c, "UCS-2BE", "UCS-2LE");
  343|      0|    }
  344|     79|    c = value_.substr(0, 8) + c;
  345|     79|  }
  346|    464|  if (c.empty())
  ------------------
  |  Branch (346:7): [True: 131, False: 333]
  ------------------
  347|    131|    return 0;
  348|    333|  return c.copy(reinterpret_cast<char*>(buf), c.size());
  349|    464|}
_ZNK5Exiv212CommentValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  351|  1.37k|std::ostream& CommentValue::write(std::ostream& os) const {
  352|  1.37k|  CharsetId csId = charsetId();
  353|  1.37k|  std::string text = comment();
  354|  1.37k|  if (csId != undefined) {
  ------------------
  |  Branch (354:7): [True: 958, False: 416]
  ------------------
  355|    958|    os << "charset=" << CharsetInfo::name(csId) << " ";
  356|    958|  }
  357|  1.37k|  return os << text;
  358|  1.37k|}
_ZNK5Exiv212CommentValue7commentEPKc:
  360|  1.37k|std::string CommentValue::comment(const char* encoding) const {
  361|  1.37k|  std::string c;
  362|  1.37k|  if (value_.length() < 8) {
  ------------------
  |  Branch (362:7): [True: 104, False: 1.27k]
  ------------------
  363|    104|    return c;
  364|    104|  }
  365|  1.27k|  c = value_.substr(8);
  366|  1.27k|  if (charsetId() == unicode) {
  ------------------
  |  Branch (366:7): [True: 334, False: 936]
  ------------------
  367|    334|    const char* from = !encoding || *encoding == '\0' ? detectCharset(c) : encoding;
  ------------------
  |  Branch (367:24): [True: 334, False: 0]
  |  Branch (367:37): [True: 0, False: 0]
  ------------------
  368|    334|    if (!convertStringCharset(c, from, "UTF-8"))
  ------------------
  |  Branch (368:9): [True: 18, False: 316]
  ------------------
  369|     18|      throw Error(ErrorCode::kerInvalidIconvEncoding, from, "UTF-8");
  370|    334|  }
  371|       |
  372|       |  // # 1266 Remove trailing nulls
  373|  1.25k|  if (charsetId() == undefined || charsetId() == ascii) {
  ------------------
  |  Branch (373:7): [True: 294, False: 958]
  |  Branch (373:35): [True: 38, False: 920]
  ------------------
  374|    332|    auto n = c.find('\0');
  375|    332|    if (n != std::string::npos)
  ------------------
  |  Branch (375:9): [True: 206, False: 126]
  ------------------
  376|    206|      c.resize(n);
  377|    332|  }
  378|  1.25k|  return c;
  379|  1.27k|}
_ZNK5Exiv212CommentValue9charsetIdEv:
  381|  5.31k|CommentValue::CharsetId CommentValue::charsetId() const {
  382|  5.31k|  CharsetId charsetId = undefined;
  383|  5.31k|  if (value_.length() >= 8) {
  ------------------
  |  Branch (383:7): [True: 5.02k, False: 297]
  ------------------
  384|  5.02k|    const std::string code = value_.substr(0, 8);
  385|  5.02k|    charsetId = CharsetInfo::charsetIdByCode(code);
  386|  5.02k|  }
  387|  5.31k|  return charsetId;
  388|  5.31k|}
_ZNK5Exiv212CommentValue13detectCharsetERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  390|    334|const char* CommentValue::detectCharset(std::string& c) const {
  391|       |  // Interpret a BOM if there is one
  392|    334|  if (c.compare(0, 3, "\xef\xbb\xbf") == 0) {
  ------------------
  |  Branch (392:7): [True: 66, False: 268]
  ------------------
  393|     66|    c = c.substr(3);
  394|     66|    return "UTF-8";
  395|     66|  }
  396|    268|  if (c.compare(0, 2, "\xff\xfe") == 0) {
  ------------------
  |  Branch (396:7): [True: 55, False: 213]
  ------------------
  397|     55|    c = c.substr(2);
  398|     55|    return "UCS-2LE";
  399|     55|  }
  400|    213|  if (c.compare(0, 2, "\xfe\xff") == 0) {
  ------------------
  |  Branch (400:7): [True: 56, False: 157]
  ------------------
  401|     56|    c = c.substr(2);
  402|     56|    return "UCS-2BE";
  403|     56|  }
  404|       |
  405|       |  // Todo: Add logic to guess if the comment is encoded in UTF-8
  406|       |
  407|    157|  return byteOrder_ == littleEndian ? "UCS-2LE" : "UCS-2BE";
  ------------------
  |  Branch (407:10): [True: 10, False: 147]
  ------------------
  408|    213|}
_ZNK5Exiv212CommentValue6clone_Ev:
  410|  6.15k|CommentValue* CommentValue::clone_() const {
  411|  6.15k|  return new CommentValue(*this);
  412|  6.15k|}
_ZN5Exiv28XmpValue15setXmpArrayTypeENS0_12XmpArrayTypeE:
  414|  4.36k|void XmpValue::setXmpArrayType(XmpArrayType xmpArrayType) {
  415|  4.36k|  xmpArrayType_ = xmpArrayType;
  416|  4.36k|}
_ZN5Exiv28XmpValue12setXmpStructENS0_9XmpStructE:
  418|    510|void XmpValue::setXmpStruct(XmpStruct xmpStruct) {
  419|    510|  xmpStruct_ = xmpStruct;
  420|    510|}
_ZNK5Exiv28XmpValue12xmpArrayTypeEv:
  422|  48.2k|XmpValue::XmpArrayType XmpValue::xmpArrayType() const {
  423|  48.2k|  return xmpArrayType_;
  424|  48.2k|}
_ZN5Exiv28XmpValue12xmpArrayTypeENS_6TypeIdE:
  426|  4.29k|XmpValue::XmpArrayType XmpValue::xmpArrayType(TypeId typeId) {
  427|  4.29k|  XmpArrayType xa = xaNone;
  428|  4.29k|  switch (typeId) {
  429|     36|    case xmpAlt:
  ------------------
  |  Branch (429:5): [True: 36, False: 4.25k]
  ------------------
  430|     36|      xa = xaAlt;
  431|     36|      break;
  432|    140|    case xmpBag:
  ------------------
  |  Branch (432:5): [True: 140, False: 4.15k]
  ------------------
  433|    140|      xa = xaBag;
  434|    140|      break;
  435|  3.77k|    case xmpSeq:
  ------------------
  |  Branch (435:5): [True: 3.77k, False: 517]
  ------------------
  436|  3.77k|      xa = xaSeq;
  437|  3.77k|      break;
  438|    341|    default:
  ------------------
  |  Branch (438:5): [True: 341, False: 3.95k]
  ------------------
  439|    341|      break;
  440|  4.29k|  }
  441|  4.29k|  return xa;
  442|  4.29k|}
_ZNK5Exiv28XmpValue9xmpStructEv:
  444|  48.5k|XmpValue::XmpStruct XmpValue::xmpStruct() const {
  445|  48.5k|  return xmpStruct_;
  446|  48.5k|}
_ZN5Exiv212XmpTextValueC2Ev:
  468|  34.2k|XmpTextValue::XmpTextValue() : XmpValue(xmpText) {
  469|  34.2k|}
_ZN5Exiv212XmpTextValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  475|   903k|int XmpTextValue::read(const std::string& buf) {
  476|       |  // support a type=Alt,Bag,Seq,Struct indicator
  477|   903k|  std::string b = buf;
  478|   903k|  std::string type;
  479|   903k|  if (buf.starts_with("type=")) {
  ------------------
  |  Branch (479:7): [True: 412, False: 903k]
  ------------------
  480|    412|    std::string::size_type pos = buf.find_first_of(' ');
  481|    412|    type = buf.substr(5, pos - 5);
  482|       |    // Strip quotes (so you can also specify the type without quotes)
  483|    412|    if (!type.empty() && type.front() == '"')
  ------------------
  |  Branch (483:9): [True: 311, False: 101]
  |  Branch (483:26): [True: 182, False: 129]
  ------------------
  484|    182|      type = type.substr(1);
  485|    412|    if (!type.empty() && type.back() == '"')
  ------------------
  |  Branch (485:9): [True: 246, False: 166]
  |  Branch (485:26): [True: 89, False: 157]
  ------------------
  486|     89|      type.pop_back();
  487|    412|    b.clear();
  488|    412|    if (pos != std::string::npos)
  ------------------
  |  Branch (488:9): [True: 166, False: 246]
  ------------------
  489|    166|      b = buf.substr(pos + 1);
  490|    412|  }
  491|   903k|  if (!type.empty()) {
  ------------------
  |  Branch (491:7): [True: 246, False: 903k]
  ------------------
  492|    246|    if (type == "Alt") {
  ------------------
  |  Branch (492:9): [True: 36, False: 210]
  ------------------
  493|     36|      setXmpArrayType(XmpValue::xaAlt);
  494|    210|    } else if (type == "Bag") {
  ------------------
  |  Branch (494:16): [True: 12, False: 198]
  ------------------
  495|     12|      setXmpArrayType(XmpValue::xaBag);
  496|    198|    } else if (type == "Seq") {
  ------------------
  |  Branch (496:16): [True: 24, False: 174]
  ------------------
  497|     24|      setXmpArrayType(XmpValue::xaSeq);
  498|    174|    } else if (type == "Struct") {
  ------------------
  |  Branch (498:16): [True: 11, False: 163]
  ------------------
  499|     11|      setXmpStruct();
  500|    163|    } else {
  501|    163|      throw Error(ErrorCode::kerInvalidXmpText, type);
  502|    163|    }
  503|    246|  }
  504|   903k|  value_ = std::move(b);
  505|   903k|  return 0;
  506|   903k|}
_ZNK5Exiv212XmpTextValue4sizeEv:
  512|  19.3k|size_t XmpTextValue::size() const {
  513|  19.3k|  std::ostringstream os;
  514|  19.3k|  write(os);
  515|  19.3k|  return os.str().size();
  516|  19.3k|}
_ZNK5Exiv212XmpTextValue5countEv:
  518|  19.3k|size_t XmpTextValue::count() const {
  519|  19.3k|  return size();
  520|  19.3k|}
_ZNK5Exiv212XmpTextValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  522|  41.9k|std::ostream& XmpTextValue::write(std::ostream& os) const {
  523|  41.9k|  bool del = false;
  524|  41.9k|  if (xmpArrayType() != XmpValue::xaNone) {
  ------------------
  |  Branch (524:7): [True: 327, False: 41.6k]
  ------------------
  525|    327|    switch (xmpArrayType()) {
  ------------------
  |  Branch (525:13): [True: 327, False: 0]
  ------------------
  526|     18|      case XmpValue::xaAlt:
  ------------------
  |  Branch (526:7): [True: 18, False: 309]
  ------------------
  527|     18|        os << "type=\"Alt\"";
  528|     18|        break;
  529|     12|      case XmpValue::xaBag:
  ------------------
  |  Branch (529:7): [True: 12, False: 315]
  ------------------
  530|     12|        os << "type=\"Bag\"";
  531|     12|        break;
  532|    297|      case XmpValue::xaSeq:
  ------------------
  |  Branch (532:7): [True: 297, False: 30]
  ------------------
  533|    297|        os << "type=\"Seq\"";
  534|    297|        break;
  535|      0|      case XmpValue::xaNone:
  ------------------
  |  Branch (535:7): [True: 0, False: 327]
  ------------------
  536|      0|        break;  // just to suppress the warning
  537|    327|    }
  538|    327|    del = true;
  539|  41.6k|  } else if (xmpStruct() != XmpValue::xsNone) {
  ------------------
  |  Branch (539:14): [True: 807, False: 40.8k]
  ------------------
  540|    807|    switch (xmpStruct()) {
  ------------------
  |  Branch (540:13): [True: 807, False: 0]
  ------------------
  541|    807|      case XmpValue::xsStruct:
  ------------------
  |  Branch (541:7): [True: 807, False: 0]
  ------------------
  542|    807|        os << "type=\"Struct\"";
  543|    807|        break;
  544|      0|      case XmpValue::xsNone:
  ------------------
  |  Branch (544:7): [True: 0, False: 807]
  ------------------
  545|      0|        break;  // just to suppress the warning
  546|    807|    }
  547|    807|    del = true;
  548|    807|  }
  549|  41.9k|  if (del && !value_.empty())
  ------------------
  |  Branch (549:7): [True: 1.13k, False: 40.8k]
  |  Branch (549:14): [True: 16, False: 1.11k]
  ------------------
  550|     16|    os << " ";
  551|  41.9k|  return os << value_;
  552|  41.9k|}
_ZNK5Exiv212XmpTextValue6clone_Ev:
  570|  49.7k|XmpTextValue* XmpTextValue::clone_() const {
  571|  49.7k|  return new XmpTextValue(*this);
  572|  49.7k|}
_ZN5Exiv213XmpArrayValueC2ENS_6TypeIdE:
  574|  3.79k|XmpArrayValue::XmpArrayValue(TypeId typeId) : XmpValue(typeId) {
  575|  3.79k|  setXmpArrayType(xmpArrayType(typeId));
  576|  3.79k|}
_ZN5Exiv213XmpArrayValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  578|  49.5k|int XmpArrayValue::read(const std::string& buf) {
  579|  49.5k|  if (!buf.empty())
  ------------------
  |  Branch (579:7): [True: 38.6k, False: 10.8k]
  ------------------
  580|  38.6k|    value_.push_back(buf);
  581|  49.5k|  return 0;
  582|  49.5k|}
_ZNK5Exiv213XmpArrayValue5countEv:
  588|  2.53k|size_t XmpArrayValue::count() const {
  589|  2.53k|  return value_.size();
  590|  2.53k|}
_ZNK5Exiv213XmpArrayValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  592|  1.62k|std::ostream& XmpArrayValue::write(std::ostream& os) const {
  593|  1.62k|  if (!value_.empty()) {
  ------------------
  |  Branch (593:7): [True: 1.29k, False: 328]
  ------------------
  594|  1.29k|    std::copy(value_.begin(), value_.end() - 1, std::ostream_iterator<std::string>(os, ", "));
  595|  1.29k|    os << value_.back();
  596|  1.29k|  }
  597|  1.62k|  return os;
  598|  1.62k|}
_ZNK5Exiv213XmpArrayValue8toStringEm:
  600|  1.29k|std::string XmpArrayValue::toString(size_t n) const {
  601|  1.29k|  ok_ = true;
  602|  1.29k|  return value_.at(n);
  603|  1.29k|}
_ZNK5Exiv213XmpArrayValue6clone_Ev:
  621|  6.65k|XmpArrayValue* XmpArrayValue::clone_() const {
  622|  6.65k|  return new XmpArrayValue(*this);
  623|  6.65k|}
_ZN5Exiv212LangAltValueC2Ev:
  625|    191|LangAltValue::LangAltValue() : XmpValue(langAlt) {
  626|    191|}
_ZNK5Exiv212LangAltValue5countEv:
  679|    190|size_t LangAltValue::count() const {
  680|    190|  return value_.size();
  681|    190|}
_ZNK5Exiv212LangAltValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  683|    190|std::ostream& LangAltValue::write(std::ostream& os) const {
  684|    190|  bool first = true;
  685|       |
  686|       |  // Write the default entry first
  687|    190|  if (auto i = value_.find("x-default"); i != value_.end()) {
  ------------------
  |  Branch (687:42): [True: 46, False: 144]
  ------------------
  688|     46|    os << "lang=\"" << i->first << "\" " << i->second;
  689|     46|    first = false;
  690|     46|  }
  691|       |
  692|       |  // Write the others
  693|    190|  for (const auto& [lang, s] : value_) {
  ------------------
  |  Branch (693:30): [True: 176, False: 190]
  ------------------
  694|    176|    if (lang != "x-default") {
  ------------------
  |  Branch (694:9): [True: 130, False: 46]
  ------------------
  695|    130|      if (!first)
  ------------------
  |  Branch (695:11): [True: 0, False: 130]
  ------------------
  696|      0|        os << ", ";
  697|    130|      os << "lang=\"" << lang << "\" " << s;
  698|    130|      first = false;
  699|    130|    }
  700|    176|  }
  701|    190|  return os;
  702|    190|}
_ZNK5Exiv212LangAltValue6clone_Ev:
  737|    461|LangAltValue* LangAltValue::clone_() const {
  738|    461|  return new LangAltValue(*this);
  739|    461|}
_ZN5Exiv29DateValueC2Ev:
  741|  2.78k|DateValue::DateValue() : Value(date) {
  742|  2.78k|  date_ = {};
  743|  2.78k|}
_ZN5Exiv29DateValue4readEPKhmNS_9ByteOrderE:
  749|  2.63k|int DateValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  750|  2.63k|  const std::string str(reinterpret_cast<const char*>(buf), len);
  751|  2.63k|  return read(str);
  752|  2.63k|}
_ZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  754|  2.78k|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.78k|  size_t monthPos = 0;
  758|  2.78k|  size_t dayPos = 0;
  759|       |
  760|  2.78k|  auto printWarning = [] {
  761|  2.78k|#ifndef SUPPRESS_WARNINGS
  762|  2.78k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedDateFormat) << "\n";
  763|  2.78k|#endif
  764|  2.78k|  };
  765|       |
  766|  2.78k|  if (buf.size() < 8) {
  ------------------
  |  Branch (766:7): [True: 239, False: 2.54k]
  ------------------
  767|    239|    printWarning();
  768|    239|    return 1;
  769|    239|  }
  770|       |
  771|  2.54k|  if ((buf.size() >= 10 && buf[4] == '-' && buf[7] == '-') || (buf.size() == 8)) {
  ------------------
  |  Branch (771:8): [True: 627, False: 1.92k]
  |  Branch (771:28): [True: 292, False: 335]
  |  Branch (771:45): [True: 106, False: 186]
  |  Branch (771:63): [True: 1.91k, False: 526]
  ------------------
  772|  2.02k|    if (buf.size() >= 10) {
  ------------------
  |  Branch (772:9): [True: 106, False: 1.91k]
  ------------------
  773|    106|      monthPos = 5;
  774|    106|      dayPos = 8;
  775|  1.91k|    } else {
  776|  1.91k|      monthPos = 4;
  777|  1.91k|      dayPos = 6;
  778|  1.91k|    }
  779|       |
  780|  2.02k|    auto checkDigits = [&buf, &printWarning](size_t start, size_t count, int32_t& dest) {
  781|  2.02k|      for (size_t i = start; i < start + count; ++i) {
  782|  2.02k|        if (!std::isdigit(buf[i])) {
  783|  2.02k|          printWarning();
  784|  2.02k|          return 1;
  785|  2.02k|        }
  786|  2.02k|      }
  787|  2.02k|      dest = std::stoul(buf.substr(start, count));
  788|  2.02k|      return 0;
  789|  2.02k|    };
  790|       |
  791|  2.02k|    if (checkDigits(0, 4, date_.year) || checkDigits(monthPos, 2, date_.month) || checkDigits(dayPos, 2, date_.day)) {
  ------------------
  |  Branch (791:9): [True: 1.28k, False: 739]
  |  Branch (791:42): [True: 217, False: 522]
  |  Branch (791:83): [True: 152, False: 370]
  ------------------
  792|  1.65k|      printWarning();
  793|  1.65k|      return 1;
  794|  1.65k|    }
  795|       |
  796|    370|    if (date_.month > 12 || date_.day > 31) {
  ------------------
  |  Branch (796:9): [True: 48, False: 322]
  |  Branch (796:29): [True: 21, False: 301]
  ------------------
  797|     69|      date_.month = 0;
  798|     69|      date_.day = 0;
  799|     69|      printWarning();
  800|     69|      return 1;
  801|     69|    }
  802|    301|    return 0;
  803|    370|  }
  804|    526|  printWarning();
  805|    526|  return 1;
  806|  2.54k|}
_ZNK5Exiv29DateValue4copyEPhNS_9ByteOrderE:
  812|    150|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|    150|  auto out = reinterpret_cast<char*>(buf);
  817|    150|  auto it = stringFormatTo(out, "{:04}{:02}{:02}", date_.year, date_.month, date_.day);
  ------------------
  |  |   19|    150|#define stringFormatTo std::format_to
  ------------------
  818|       |
  819|    150|  return it - out;
  820|    150|}
_ZNK5Exiv29DateValue4sizeEv:
  830|    300|size_t DateValue::size() const {
  831|    300|  return 8;
  832|    300|}
_ZNK5Exiv29DateValue6clone_Ev:
  834|  1.77k|DateValue* DateValue::clone_() const {
  835|  1.77k|  return new DateValue(*this);
  836|  1.77k|}
_ZNK5Exiv29DateValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  838|    668|std::ostream& DateValue::write(std::ostream& os) const {
  839|       |  // Write DateValue in ISO 8601 Extended format: YYYY-MM-DD
  840|    668|  return os << stringFormat("{:04}-{:02}-{:02}", date_.year, date_.month, date_.day);
  ------------------
  |  |   18|    668|#define stringFormat std::format
  ------------------
  841|    668|}
_ZN5Exiv29TimeValueC2Ev:
  877|  2.60k|TimeValue::TimeValue() : Value(time) {
  878|  2.60k|  time_ = {};
  879|  2.60k|}
_ZN5Exiv29TimeValue4readEPKhmNS_9ByteOrderE:
  885|  2.60k|int TimeValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  886|  2.60k|  const std::string str(reinterpret_cast<const char*>(buf), len);
  887|  2.60k|  return read(str);
  888|  2.60k|}
_ZN5Exiv29TimeValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  890|  2.60k|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.60k|  auto printWarning = [] {
  896|  2.60k|#ifndef SUPPRESS_WARNINGS
  897|  2.60k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedTimeFormat) << "\n";
  898|  2.60k|#endif
  899|  2.60k|    return 1;
  900|  2.60k|  };
  901|       |
  902|  2.60k|  if (buf.size() < 2)
  ------------------
  |  Branch (902:7): [True: 168, False: 2.43k]
  ------------------
  903|    168|    return printWarning();
  904|       |
  905|  2.43k|  for (auto c : buf)
  ------------------
  |  Branch (905:15): [True: 23.0k, False: 1.56k]
  ------------------
  906|  23.0k|    if (c != ':' && c != '+' && c != '-' && c != 'Z' && !std::isdigit(c))
  ------------------
  |  Branch (906:9): [True: 21.9k, False: 1.12k]
  |  Branch (906:21): [True: 21.6k, False: 331]
  |  Branch (906:33): [True: 19.4k, False: 2.12k]
  |  Branch (906:45): [True: 18.9k, False: 572]
  |  Branch (906:57): [True: 871, False: 18.0k]
  ------------------
  907|    871|      return printWarning();
  908|       |
  909|  1.56k|  size_t mpos;
  910|  1.56k|  size_t spos;
  911|  1.56k|  if (buf.find(':') != std::string::npos) {
  ------------------
  |  Branch (911:7): [True: 603, False: 960]
  ------------------
  912|    603|    mpos = 3;
  913|    603|    spos = 6;
  914|    960|  } else {
  915|    960|    mpos = 2;
  916|    960|    spos = 4;
  917|    960|  }
  918|       |
  919|  1.56k|  try {
  920|  1.56k|    auto hi = std::stoi(buf.substr(0, 2));
  921|  1.56k|    if (hi < 0 || hi > 23)
  ------------------
  |  Branch (921:9): [True: 95, False: 1.46k]
  |  Branch (921:19): [True: 57, False: 1.41k]
  ------------------
  922|    138|      return printWarning();
  923|  1.42k|    time_.hour = hi;
  924|  1.42k|    if (buf.size() > 3) {
  ------------------
  |  Branch (924:9): [True: 1.39k, False: 33]
  ------------------
  925|  1.39k|      auto mi = std::stoi(buf.substr(mpos, 2));
  926|  1.39k|      if (mi < 0 || mi > 59)
  ------------------
  |  Branch (926:11): [True: 144, False: 1.24k]
  |  Branch (926:21): [True: 46, False: 1.20k]
  ------------------
  927|    178|        return printWarning();
  928|  1.21k|      time_.minute = std::stoi(buf.substr(mpos, 2));
  929|  1.21k|    } else {
  930|     33|      time_.minute = 0;
  931|     33|    }
  932|  1.24k|    if (buf.size() > 5) {
  ------------------
  |  Branch (932:9): [True: 1.07k, False: 177]
  ------------------
  933|  1.07k|      auto si = std::stoi(buf.substr(spos, 2));
  934|  1.07k|      if (si < 0 || si > 60)
  ------------------
  |  Branch (934:11): [True: 56, False: 1.01k]
  |  Branch (934:21): [True: 31, False: 983]
  ------------------
  935|     73|        return printWarning();
  936|    997|      time_.second = std::stoi(buf.substr(spos, 2));
  937|    997|    } else {
  938|    177|      time_.second = 0;
  939|    177|    }
  940|       |
  941|  1.17k|    auto fpos = buf.find('+');
  942|  1.17k|    if (fpos == std::string::npos)
  ------------------
  |  Branch (942:9): [True: 955, False: 219]
  ------------------
  943|    955|      fpos = buf.find('-');
  944|       |
  945|  1.17k|    if (fpos != std::string::npos) {
  ------------------
  |  Branch (945:9): [True: 1.02k, False: 154]
  ------------------
  946|  1.02k|      auto format = buf.substr(fpos, buf.size());
  947|  1.02k|      auto posColon = format.find(':');
  948|  1.02k|      if (posColon == std::string::npos) {
  ------------------
  |  Branch (948:11): [True: 731, False: 289]
  ------------------
  949|       |        // Extended format
  950|    731|        auto tzhi = std::stoi(format.substr(0, 3));
  951|    731|        if (tzhi < -23 || tzhi > 23)
  ------------------
  |  Branch (951:13): [True: 177, False: 554]
  |  Branch (951:27): [True: 15, False: 539]
  ------------------
  952|    170|          return printWarning();
  953|    561|        time_.tzHour = tzhi;
  954|    561|        if (format.size() > 3) {
  ------------------
  |  Branch (954:13): [True: 417, False: 144]
  ------------------
  955|    417|          int minute = std::stoi(format.substr(3));
  956|    417|          if (minute < 0 || minute > 59)
  ------------------
  |  Branch (956:15): [True: 54, False: 363]
  |  Branch (956:29): [True: 116, False: 247]
  ------------------
  957|    131|            return printWarning();
  958|    286|          time_.tzMinute = time_.tzHour < 0 ? -minute : minute;
  ------------------
  |  Branch (958:28): [True: 167, False: 119]
  ------------------
  959|    286|        }
  960|    561|      } else {
  961|       |        // Basic format
  962|    289|        auto tzhi = std::stoi(format.substr(0, posColon));
  963|    289|        if (tzhi < -23 || tzhi > 23)
  ------------------
  |  Branch (963:13): [True: 46, False: 243]
  |  Branch (963:27): [True: 23, False: 220]
  ------------------
  964|     35|          return printWarning();
  965|    254|        time_.tzHour = tzhi;
  966|    254|        int minute = std::stoi(format.substr(posColon + 1));
  967|    254|        if (minute < 0 || minute > 59)
  ------------------
  |  Branch (967:13): [True: 78, False: 176]
  |  Branch (967:27): [True: 93, False: 83]
  ------------------
  968|    102|          return printWarning();
  969|    152|        time_.tzMinute = time_.tzHour < 0 ? -minute : minute;
  ------------------
  |  Branch (969:26): [True: 25, False: 127]
  ------------------
  970|    152|      }
  971|  1.02k|    }
  972|  1.17k|  } catch (std::exception&) {
  973|       |    // std::stoi might throw an exception if the syntax is invalid.
  974|    170|    return printWarning();
  975|    170|  }
  976|    566|  return 0;
  977|  1.56k|}
_ZNK5Exiv29TimeValue4copyEPhNS_9ByteOrderE:
  984|    176|size_t TimeValue::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  985|       |  // NOTE: Here the time is copied in the Basic format HHMMSS:HHMM, as the IPTC key
  986|       |  // Iptc.Application2.TimeCreated wants it. Check https://exiv2.org/iptc.html
  987|    176|  char plusMinus = '+';
  988|    176|  if (time_.tzHour < 0 || time_.tzMinute < 0)
  ------------------
  |  Branch (988:7): [True: 25, False: 151]
  |  Branch (988:27): [True: 0, False: 151]
  ------------------
  989|     25|    plusMinus = '-';
  990|       |
  991|    176|  auto out = reinterpret_cast<char*>(buf);
  992|    176|  auto it = stringFormatTo(out, "{:02}{:02}{:02}{}{:02}{:02}", time_.hour, time_.minute, time_.second, plusMinus,
  ------------------
  |  |   19|    176|#define stringFormatTo std::format_to
  ------------------
  993|    176|                           std::abs(time_.tzHour), std::abs(time_.tzMinute));
  994|       |
  995|    176|  auto wrote = static_cast<size_t>(it - out);
  996|    176|  Internal::enforce(wrote == 11, Exiv2::ErrorCode::kerUnsupportedTimeFormat);
  997|    176|  return wrote;
  998|    176|}
_ZNK5Exiv29TimeValue4sizeEv:
 1008|    352|size_t TimeValue::size() const {
 1009|    352|  return 11;
 1010|    352|}
_ZNK5Exiv29TimeValue6clone_Ev:
 1012|  1.17k|TimeValue* TimeValue::clone_() const {
 1013|  1.17k|  return new TimeValue(*this);
 1014|  1.17k|}
_ZNK5Exiv29TimeValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
 1016|    122|std::ostream& TimeValue::write(std::ostream& os) const {
 1017|       |  // Write TimeValue in ISO 8601 Extended format: hh:mm:ss±hh:mm
 1018|    122|  char plusMinus = '+';
 1019|    122|  if (time_.tzHour < 0 || time_.tzMinute < 0)
  ------------------
  |  Branch (1019:7): [True: 44, False: 78]
  |  Branch (1019:27): [True: 0, False: 78]
  ------------------
 1020|     44|    plusMinus = '-';
 1021|       |
 1022|    122|  return os << stringFormat("{:02}:{:02}:{:02}{}{:02}:{:02}", time_.hour, time_.minute, time_.second, plusMinus,
  ------------------
  |  |   18|    122|#define stringFormat std::format
  ------------------
 1023|    122|                            std::abs(time_.tzHour), std::abs(time_.tzMinute));
 1024|    122|}
value.cpp:_ZZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_0clEv:
  760|  4.13k|  auto printWarning = [] {
  761|  4.13k|#ifndef SUPPRESS_WARNINGS
  762|  4.13k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedDateFormat) << "\n";
  ------------------
  |  |  138|  4.13k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 4.13k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  4.13k|  LogMsg(LogMsg::warn).os()
  ------------------
  763|  4.13k|#endif
  764|  4.13k|  };
value.cpp:_ZZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_1clEmmRi:
  780|  3.28k|    auto checkDigits = [&buf, &printWarning](size_t start, size_t count, int32_t& dest) {
  781|  8.31k|      for (size_t i = start; i < start + count; ++i) {
  ------------------
  |  Branch (781:30): [True: 6.68k, False: 1.63k]
  ------------------
  782|  6.68k|        if (!std::isdigit(buf[i])) {
  ------------------
  |  Branch (782:13): [True: 1.65k, False: 5.02k]
  ------------------
  783|  1.65k|          printWarning();
  784|  1.65k|          return 1;
  785|  1.65k|        }
  786|  6.68k|      }
  787|  1.63k|      dest = std::stoul(buf.substr(start, count));
  788|  1.63k|      return 0;
  789|  3.28k|    };
value.cpp:_ZZN5Exiv29TimeValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_0clEv:
  895|  2.03k|  auto printWarning = [] {
  896|  2.03k|#ifndef SUPPRESS_WARNINGS
  897|  2.03k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedTimeFormat) << "\n";
  ------------------
  |  |  138|  2.03k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 2.03k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  2.03k|  LogMsg(LogMsg::warn).os()
  ------------------
  898|  2.03k|#endif
  899|  2.03k|    return 1;
  900|  2.03k|  };

_ZN5Exiv29WebPImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
   77|    143|WebPImage::WebPImage(BasicIo::UniquePtr io) : Image(ImageType::webp, mdNone, std::move(io)) {
   78|    143|}  // WebPImage::WebPImage
_ZN5Exiv29WebPImage13writeMetadataEv:
   97|     44|void WebPImage::writeMetadata() {
   98|     44|  if (io_->open() != 0) {
  ------------------
  |  Branch (98:7): [True: 0, False: 44]
  ------------------
   99|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  100|      0|  }
  101|     44|  IoCloser closer(*io_);
  102|     44|  MemIo tempIo;
  103|       |
  104|     44|  doWriteMetadata(tempIo);  // may throw
  105|     44|  io_->close();
  106|     44|  io_->transfer(tempIo);  // may throw
  107|     44|}  // WebPImage::writeMetadata
_ZN5Exiv29WebPImage15doWriteMetadataERNS_7BasicIoE:
  109|     44|void WebPImage::doWriteMetadata(BasicIo& outIo) {
  110|     44|  if (!io_->isopen())
  ------------------
  |  Branch (110:7): [True: 0, False: 44]
  ------------------
  111|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  112|     44|  if (!outIo.isopen())
  ------------------
  |  Branch (112:7): [True: 0, False: 44]
  ------------------
  113|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  114|       |
  115|       |#ifdef EXIV2_DEBUG_MESSAGES
  116|       |  std::cout << "Writing metadata" << '\n';
  117|       |#endif
  118|       |
  119|     44|  byte data[WEBP_TAG_SIZE * 3];
  120|     44|  DataBuf chunkId(WEBP_TAG_SIZE + 1);
  121|     44|  chunkId.write_uint8(WEBP_TAG_SIZE, '\0');
  122|       |
  123|     44|  io_->readOrThrow(data, WEBP_TAG_SIZE * 3, Exiv2::ErrorCode::kerCorruptedMetadata);
  124|     44|  uint64_t filesize = Exiv2::getULong(data + WEBP_TAG_SIZE, littleEndian);
  125|       |
  126|       |  /* Set up header */
  127|     44|  if (outIo.write(data, WEBP_TAG_SIZE * 3) != WEBP_TAG_SIZE * 3)
  ------------------
  |  Branch (127:7): [True: 0, False: 44]
  ------------------
  128|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  129|       |
  130|       |  /* Parse Chunks */
  131|     44|  bool has_size = false;
  132|     44|  bool has_xmp = false;
  133|     44|  bool has_exif = false;
  134|     44|  bool has_vp8x = false;
  135|     44|  bool has_alpha = false;
  136|     44|  bool has_icc = iccProfileDefined();
  137|       |
  138|     44|  uint32_t width = 0;
  139|     44|  uint32_t height = 0;
  140|       |
  141|     44|  std::array<byte, WEBP_TAG_SIZE> size_buff;
  142|     44|  Blob blob;
  143|       |
  144|     44|  if (!exifData_.empty()) {
  ------------------
  |  Branch (144:7): [True: 0, False: 44]
  ------------------
  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|     44|  if (!xmpData_.empty() && !writeXmpFromPacket()) {
  ------------------
  |  Branch (151:7): [True: 0, False: 44]
  |  Branch (151:28): [True: 0, False: 0]
  ------------------
  152|      0|    XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting);
  153|      0|  }
  154|     44|  has_xmp = !xmpPacket_.empty();
  155|     44|  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|    316|  while (!io_->eof() && io_->tell() < filesize) {
  ------------------
  |  Branch (160:10): [True: 308, False: 8]
  |  Branch (160:25): [True: 272, False: 36]
  ------------------
  161|    272|    io_->readOrThrow(chunkId.data(), WEBP_TAG_SIZE, Exiv2::ErrorCode::kerCorruptedMetadata);
  162|    272|    io_->readOrThrow(size_buff.data(), WEBP_TAG_SIZE, Exiv2::ErrorCode::kerCorruptedMetadata);
  163|    272|    const uint32_t size_u32 = Exiv2::getULong(size_buff.data(), littleEndian);
  164|       |
  165|       |    // Check that `size_u32` is within bounds.
  166|    272|    Internal::enforce(size_u32 <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  167|       |
  168|    272|    DataBuf payload(size_u32);
  169|    272|    if (!payload.empty()) {
  ------------------
  |  Branch (169:9): [True: 272, False: 0]
  ------------------
  170|    272|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  171|    272|      if (payload.size() % 2) {
  ------------------
  |  Branch (171:11): [True: 111, False: 161]
  ------------------
  172|    111|        byte c = 0;
  173|    111|        io_->readOrThrow(&c, 1, Exiv2::ErrorCode::kerCorruptedMetadata);
  174|    111|      }
  175|    272|    }
  176|       |
  177|       |    /* Chunk with information about features
  178|       |     used in the file. */
  179|    272|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8X) && !has_vp8x) {
  ------------------
  |  Branch (179:9): [True: 17, False: 255]
  |  Branch (179:59): [True: 10, False: 7]
  ------------------
  180|     10|      has_vp8x = true;
  181|     10|    }
  182|    272|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8X) && !has_size) {
  ------------------
  |  Branch (182:9): [True: 17, False: 255]
  |  Branch (182:59): [True: 10, False: 7]
  ------------------
  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|    272|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8) && !has_size) {
  ------------------
  |  Branch (211:9): [True: 4, False: 268]
  |  Branch (211:58): [True: 3, False: 1]
  ------------------
  212|      3|      Internal::enforce(size_u32 >= 10, Exiv2::ErrorCode::kerCorruptedMetadata);
  213|      3|      has_size = true;
  214|      3|      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|      3|      std::copy_n(payload.begin() + 6, 2, size_buf.begin());
  221|      3|      width = Exiv2::getUShort(size_buf.data(), littleEndian) & 0x3fff;
  222|       |
  223|       |      // Fetch height - stored in 16bits
  224|      3|      std::copy_n(payload.begin() + 8, 2, size_buf.begin());
  225|      3|      height = Exiv2::getUShort(size_buf.data(), littleEndian) & 0x3fff;
  226|      3|    }
  227|       |
  228|       |    /* Chunk with lossless image data. */
  229|    272|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8L) && !has_alpha) {
  ------------------
  |  Branch (229:9): [True: 10, False: 262]
  |  Branch (229:59): [True: 9, False: 1]
  ------------------
  230|      9|      Internal::enforce(size_u32 >= 5, Exiv2::ErrorCode::kerCorruptedMetadata);
  231|      9|      if ((payload.read_uint8(4) & WEBP_VP8X_ALPHA_BIT) == WEBP_VP8X_ALPHA_BIT) {
  ------------------
  |  Branch (231:11): [True: 1, False: 8]
  ------------------
  232|      1|        has_alpha = true;
  233|      1|      }
  234|      9|    }
  235|    272|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8L) && !has_size) {
  ------------------
  |  Branch (235:9): [True: 9, False: 263]
  |  Branch (235:59): [True: 7, False: 2]
  ------------------
  236|      7|      Internal::enforce(size_u32 >= 5, Exiv2::ErrorCode::kerCorruptedMetadata);
  237|      7|      has_size = true;
  238|      7|      std::array<byte, 2> size_buf_w;
  239|      7|      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|      7|      std::copy_n(payload.begin() + 1, 2, size_buf_w.begin());
  248|      7|      size_buf_w.back() &= 0x3F;
  249|      7|      width = Exiv2::getUShort(size_buf_w.data(), littleEndian) + 1;
  250|       |
  251|       |      // Fetch height - 14 bits wide
  252|      7|      std::copy_n(payload.begin() + 2, 3, size_buf_h.begin());
  253|      7|      size_buf_h[0] = ((size_buf_h[0] >> 6) & 0x3) | ((size_buf_h[1] & 0x3FU) << 0x2);
  254|      7|      size_buf_h[1] = ((size_buf_h[1] >> 6) & 0x3) | ((size_buf_h[2] & 0xFU) << 0x2);
  255|      7|      height = Exiv2::getUShort(size_buf_h.data(), littleEndian) + 1;
  256|      7|    }
  257|       |
  258|       |    /* Chunk with animation frame. */
  259|    272|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ANMF) && !has_alpha) {
  ------------------
  |  Branch (259:9): [True: 14, False: 258]
  |  Branch (259:59): [True: 11, False: 3]
  ------------------
  260|     11|      Internal::enforce(size_u32 >= 6, Exiv2::ErrorCode::kerCorruptedMetadata);
  261|     11|      if ((payload.read_uint8(5) & 0x2) == 0x2) {
  ------------------
  |  Branch (261:11): [True: 2, False: 9]
  ------------------
  262|      2|        has_alpha = true;
  263|      2|      }
  264|     11|    }
  265|    272|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ANMF) && !has_size) {
  ------------------
  |  Branch (265:9): [True: 13, False: 259]
  |  Branch (265:59): [True: 5, False: 8]
  ------------------
  266|      5|      Internal::enforce(size_u32 >= 12, Exiv2::ErrorCode::kerCorruptedMetadata);
  267|      5|      has_size = true;
  268|      5|      std::array<byte, WEBP_TAG_SIZE> size_buf;
  269|       |
  270|       |      // Fetch width - stored in 24bits
  271|      5|      std::copy_n(payload.begin() + 6, 3, size_buf.begin());
  272|      5|      size_buf.back() = 0;
  273|      5|      width = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  274|       |
  275|       |      // Fetch height - stored in 24bits
  276|      5|      std::copy_n(payload.begin() + 9, 3, size_buf.begin());
  277|      5|      size_buf.back() = 0;
  278|      5|      height = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  279|      5|    }
  280|       |
  281|       |    /* Chunk with alpha data. */
  282|    272|    if (equalsWebPTag(chunkId, "ALPH") && !has_alpha) {
  ------------------
  |  Branch (282:9): [True: 0, False: 272]
  |  Branch (282:43): [True: 0, False: 0]
  ------------------
  283|      0|      has_alpha = true;
  284|      0|    }
  285|    272|  }
  286|       |
  287|       |  /* Inject a VP8X chunk if one isn't available. */
  288|     44|  if (!has_vp8x) {
  ------------------
  |  Branch (288:7): [True: 26, False: 18]
  ------------------
  289|     26|    inject_VP8X(outIo, has_xmp, has_exif, has_alpha, has_icc, width, height);
  290|     26|  }
  291|       |
  292|     44|  io_->seek(12, BasicIo::beg);
  293|    274|  while (!io_->eof() && io_->tell() < filesize) {
  ------------------
  |  Branch (293:10): [True: 252, False: 22]
  |  Branch (293:25): [True: 230, False: 22]
  ------------------
  294|    230|    io_->readOrThrow(chunkId.data(), 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  295|    230|    io_->readOrThrow(size_buff.data(), 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  296|       |
  297|    230|    const uint32_t size_u32 = Exiv2::getULong(size_buff.data(), littleEndian);
  298|       |
  299|       |    // Check that `size_u32` is within bounds.
  300|    230|    Internal::enforce(size_u32 <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  301|       |
  302|    230|    DataBuf payload(size_u32);
  303|    230|    io_->readOrThrow(payload.data(), size_u32, Exiv2::ErrorCode::kerCorruptedMetadata);
  304|    230|    if (io_->tell() % 2)
  ------------------
  |  Branch (304:9): [True: 90, False: 140]
  ------------------
  305|     90|      io_->seek(+1, BasicIo::cur);  // skip pad
  306|       |
  307|    230|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8X)) {
  ------------------
  |  Branch (307:9): [True: 17, False: 213]
  ------------------
  308|     17|      Internal::enforce(size_u32 >= 1, Exiv2::ErrorCode::kerCorruptedMetadata);
  309|     17|      if (has_icc) {
  ------------------
  |  Branch (309:11): [True: 1, False: 16]
  ------------------
  310|      1|        const uint8_t x = payload.read_uint8(0);
  311|      1|        payload.write_uint8(0, x | WEBP_VP8X_ICC_BIT);
  312|     16|      } else {
  313|     16|        const uint8_t x = payload.read_uint8(0);
  314|     16|        payload.write_uint8(0, x & ~WEBP_VP8X_ICC_BIT);
  315|     16|      }
  316|       |
  317|     17|      if (has_xmp) {
  ------------------
  |  Branch (317:11): [True: 3, False: 14]
  ------------------
  318|      3|        const uint8_t x = payload.read_uint8(0);
  319|      3|        payload.write_uint8(0, x | WEBP_VP8X_XMP_BIT);
  320|     14|      } else {
  321|     14|        const uint8_t x = payload.read_uint8(0);
  322|     14|        payload.write_uint8(0, x & ~WEBP_VP8X_XMP_BIT);
  323|     14|      }
  324|       |
  325|     17|      if (has_exif) {
  ------------------
  |  Branch (325:11): [True: 0, False: 17]
  ------------------
  326|      0|        const uint8_t x = payload.read_uint8(0);
  327|      0|        payload.write_uint8(0, x | WEBP_VP8X_EXIF_BIT);
  328|     17|      } else {
  329|     17|        const uint8_t x = payload.read_uint8(0);
  330|     17|        payload.write_uint8(0, x & ~WEBP_VP8X_EXIF_BIT);
  331|     17|      }
  332|       |
  333|     17|      if (outIo.write(chunkId.c_data(), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (333:11): [True: 0, False: 17]
  ------------------
  334|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  335|     17|      if (outIo.write(size_buff.data(), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (335:11): [True: 0, False: 17]
  ------------------
  336|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  337|     17|      if (outIo.write(payload.c_data(), payload.size()) != payload.size())
  ------------------
  |  Branch (337:11): [True: 0, False: 17]
  ------------------
  338|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  339|     17|      if (outIo.tell() % 2 && outIo.write(&WEBP_PAD_ODD, 1) != 1)
  ------------------
  |  Branch (339:11): [True: 6, False: 11]
  |  Branch (339:31): [True: 0, False: 6]
  ------------------
  340|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  341|       |
  342|     17|      if (has_icc) {
  ------------------
  |  Branch (342:11): [True: 1, False: 16]
  ------------------
  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|    213|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ICCP)) {
  ------------------
  |  Branch (353:16): [True: 3, False: 210]
  ------------------
  354|       |      // Skip it altogether handle it prior to here :)
  355|    210|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_EXIF)) {
  ------------------
  |  Branch (355:16): [True: 0, False: 210]
  ------------------
  356|       |      // Skip and add new data afterwards
  357|    210|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_XMP)) {
  ------------------
  |  Branch (357:16): [True: 2, False: 208]
  ------------------
  358|       |      // Skip and add new data afterwards
  359|    208|    } else {
  360|    208|      if (outIo.write(chunkId.c_data(), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (360:11): [True: 0, False: 208]
  ------------------
  361|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  362|    208|      if (outIo.write(size_buff.data(), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (362:11): [True: 0, False: 208]
  ------------------
  363|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  364|    208|      if (outIo.write(payload.c_data(), payload.size()) != payload.size())
  ------------------
  |  Branch (364:11): [True: 0, False: 208]
  ------------------
  365|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  366|    208|    }
  367|       |
  368|       |    // Encoder required to pad odd sized data with a null byte
  369|    230|    if (outIo.tell() % 2 && outIo.write(&WEBP_PAD_ODD, 1) != 1)
  ------------------
  |  Branch (369:9): [True: 83, False: 147]
  |  Branch (369:29): [True: 0, False: 83]
  ------------------
  370|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  371|    230|  }
  372|       |
  373|     44|  if (has_exif) {
  ------------------
  |  Branch (373:7): [True: 0, False: 44]
  ------------------
  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|     44|  if (has_xmp) {
  ------------------
  |  Branch (387:7): [True: 2, False: 42]
  ------------------
  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: 1, False: 1]
  |  Branch (396:29): [True: 0, False: 1]
  ------------------
  397|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  398|      2|  }
  399|       |
  400|       |  // Fix File Size Payload Data
  401|     44|  outIo.seek(0, BasicIo::beg);
  402|     44|  filesize = outIo.size() - 8;
  403|     44|  outIo.seek(4, BasicIo::beg);
  404|     44|  ul2Data(data, static_cast<uint32_t>(filesize), littleEndian);
  405|     44|  if (outIo.write(data, WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (405:7): [True: 0, False: 44]
  ------------------
  406|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  407|       |
  408|     44|}  // WebPImage::writeMetadata
_ZN5Exiv29WebPImage14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  412|    368|void WebPImage::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
  413|    368|  if (io_->open() != 0) {
  ------------------
  |  Branch (413:7): [True: 0, False: 368]
  ------------------
  414|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  415|      0|  }
  416|       |  // Ensure this is the correct image type
  417|    368|  if (!isWebPType(*io_, true)) {
  ------------------
  |  Branch (417:7): [True: 0, False: 368]
  ------------------
  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|    368|  bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (423:17): [True: 77, False: 291]
  |  Branch (423:39): [True: 63, False: 228]
  ------------------
  424|    368|  if (bPrint || option == kpsXMP || option == kpsIccProfile || option == kpsIptcErase) {
  ------------------
  |  Branch (424:7): [True: 140, False: 228]
  |  Branch (424:17): [True: 63, False: 165]
  |  Branch (424:37): [True: 44, False: 121]
  |  Branch (424:64): [True: 44, False: 77]
  ------------------
  425|    291|    byte data[WEBP_TAG_SIZE * 2];
  426|    291|    io_->read(data, WEBP_TAG_SIZE * 2);
  427|    291|    uint64_t filesize = Exiv2::getULong(data + WEBP_TAG_SIZE, littleEndian);
  428|    291|    DataBuf chunkId(5);
  429|    291|    chunkId.write_uint8(4, '\0');
  430|       |
  431|    291|    if (bPrint) {
  ------------------
  |  Branch (431:9): [True: 140, False: 151]
  ------------------
  432|    140|      out << Internal::indent(depth) << "STRUCTURE OF WEBP FILE: " << io().path() << '\n';
  433|    140|      out << Internal::indent(depth) << " Chunk |   Length |   Offset | Payload" << '\n';
  434|    140|    }
  435|       |
  436|    291|    io_->seek(0, BasicIo::beg);  // rewind
  437|  2.18k|    while (!io_->eof() && io_->tell() < filesize) {
  ------------------
  |  Branch (437:12): [True: 2.11k, False: 69]
  |  Branch (437:27): [True: 1.88k, False: 222]
  ------------------
  438|  1.88k|      auto offset = io_->tell();
  439|  1.88k|      byte size_buff[WEBP_TAG_SIZE];
  440|  1.88k|      io_->read(chunkId.data(), WEBP_TAG_SIZE);
  441|  1.88k|      io_->read(size_buff, WEBP_TAG_SIZE);
  442|  1.88k|      const uint32_t size = Exiv2::getULong(size_buff, littleEndian);
  443|       |
  444|       |      // Check that `size` is within bounds.
  445|  1.88k|      Internal::enforce(!offset || size <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (445:25): [True: 286, False: 1.60k]
  |  Branch (445:36): [True: 1.60k, False: 0]
  ------------------
  446|       |
  447|  1.88k|      DataBuf payload(offset ? size : WEBP_TAG_SIZE);  // header is different from chunks
  ------------------
  |  Branch (447:23): [True: 1.60k, False: 286]
  ------------------
  448|  1.88k|      io_->read(payload.data(), payload.size());
  449|       |
  450|  1.88k|      if (bPrint) {
  ------------------
  |  Branch (450:11): [True: 823, False: 1.06k]
  ------------------
  451|    823|        out << Internal::indent(depth) << stringFormat("  {} | {:8} | {:8} | ", chunkId.c_str(), size, offset)
  ------------------
  |  |   18|    823|#define stringFormat std::format
  ------------------
  452|    823|            << Internal::binaryToString(makeSlice(payload, 0, payload.size() > 32 ? 32 : payload.size())) << '\n';
  ------------------
  |  Branch (452:63): [True: 118, False: 705]
  ------------------
  453|    823|      }
  454|       |
  455|  1.88k|      if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_EXIF) && option == kpsRecursive) {
  ------------------
  |  Branch (455:11): [True: 61, False: 1.82k]
  |  Branch (455:61): [True: 19, False: 42]
  ------------------
  456|       |        // create memio object with the payload, then print the structure
  457|     19|        MemIo p(payload.c_data(), payload.size());
  458|     19|        printTiffStructure(p, out, option, depth + 1);
  459|     19|      }
  460|       |
  461|  1.88k|      bool bPrintPayload = (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_XMP) && option == kpsXMP) ||
  ------------------
  |  Branch (461:29): [True: 52, False: 1.83k]
  |  Branch (461:78): [True: 8, False: 44]
  ------------------
  462|  1.84k|                           (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ICCP) && option == kpsIccProfile);
  ------------------
  |  Branch (462:29): [True: 17, False: 1.83k]
  |  Branch (462:79): [True: 3, False: 14]
  ------------------
  463|  1.88k|      if (bPrintPayload) {
  ------------------
  |  Branch (463:11): [True: 11, False: 1.87k]
  ------------------
  464|     11|        out.write(payload.c_str(), payload.size());
  465|     11|      }
  466|       |
  467|  1.88k|      if (offset && io_->tell() % 2)
  ------------------
  |  Branch (467:11): [True: 1.57k, False: 319]
  |  Branch (467:21): [True: 619, False: 951]
  ------------------
  468|    619|        io_->seek(+1, BasicIo::cur);  // skip padding byte on sub-chunks
  469|  1.88k|    }
  470|    291|  }
  471|    368|}
_ZN5Exiv29WebPImage12readMetadataEv:
  475|    143|void WebPImage::readMetadata() {
  476|    143|  if (io_->open() != 0)
  ------------------
  |  Branch (476:7): [True: 0, False: 143]
  ------------------
  477|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  478|    143|  IoCloser closer(*io_);
  479|       |  // Ensure that this is the correct image type
  480|    143|  if (!isWebPType(*io_, true)) {
  ------------------
  |  Branch (480:7): [True: 0, False: 143]
  ------------------
  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|    143|  clearMetadata();
  486|       |
  487|    143|  byte data[12];
  488|    143|  DataBuf chunkId(5);
  489|    143|  chunkId.write_uint8(4, '\0');
  490|       |
  491|    143|  io_->readOrThrow(data, WEBP_TAG_SIZE * 3, Exiv2::ErrorCode::kerCorruptedMetadata);
  492|       |
  493|    143|  const uint32_t filesize = Safe::add(Exiv2::getULong(data + WEBP_TAG_SIZE, littleEndian), 8U);
  494|    143|  Internal::enforce(filesize <= io_->size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  495|       |
  496|    143|  WebPImage::decodeChunks(filesize);
  497|       |
  498|    143|}  // WebPImage::readMetadata
_ZN5Exiv29WebPImage12decodeChunksEj:
  500|    132|void WebPImage::decodeChunks(uint32_t filesize) {
  501|    132|  DataBuf chunkId(5);
  502|    132|  std::array<byte, WEBP_TAG_SIZE> size_buff;
  503|    132|  bool has_canvas_data = false;
  504|       |
  505|       |#ifdef EXIV2_DEBUG_MESSAGES
  506|       |  std::cout << "Reading metadata" << '\n';
  507|       |#endif
  508|       |
  509|    132|  chunkId.write_uint8(4, '\0');
  510|  1.58k|  while (!io_->eof() && io_->tell() < filesize) {
  ------------------
  |  Branch (510:10): [True: 1.51k, False: 64]
  |  Branch (510:25): [True: 1.44k, False: 68]
  ------------------
  511|  1.44k|    io_->readOrThrow(chunkId.data(), WEBP_TAG_SIZE, Exiv2::ErrorCode::kerCorruptedMetadata);
  512|  1.44k|    io_->readOrThrow(size_buff.data(), WEBP_TAG_SIZE, Exiv2::ErrorCode::kerCorruptedMetadata);
  513|       |
  514|  1.44k|    const uint32_t size = Exiv2::getULong(size_buff.data(), littleEndian);
  515|       |
  516|       |    // Check that `size` is within bounds.
  517|  1.44k|    Internal::enforce(io_->tell() <= filesize, Exiv2::ErrorCode::kerCorruptedMetadata);
  518|  1.44k|    Internal::enforce(size <= (filesize - io_->tell()), Exiv2::ErrorCode::kerCorruptedMetadata);
  519|       |
  520|  1.44k|    if (DataBuf payload(size); payload.empty()) {
  ------------------
  |  Branch (520:32): [True: 842, False: 606]
  ------------------
  521|    842|      io_->seek(size, BasicIo::cur);
  522|    842|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8X) && !has_canvas_data) {
  ------------------
  |  Branch (522:16): [True: 35, False: 571]
  |  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|    582|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8) && !has_canvas_data) {
  ------------------
  |  Branch (539:16): [True: 7, False: 575]
  |  Branch (539:65): [True: 6, False: 1]
  ------------------
  540|      6|      Internal::enforce(size >= 10, Exiv2::ErrorCode::kerCorruptedMetadata);
  541|       |
  542|      6|      has_canvas_data = true;
  543|      6|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  544|      6|      std::array<byte, WEBP_TAG_SIZE> size_buf;
  545|       |
  546|       |      // Fetch width""
  547|      6|      std::copy_n(payload.begin() + 6, 2, size_buf.begin());
  548|      6|      size_buf[2] = 0;
  549|      6|      size_buf[3] = 0;
  550|      6|      pixelWidth_ = Exiv2::getULong(size_buf.data(), littleEndian) & 0x3fff;
  551|       |
  552|       |      // Fetch height
  553|      6|      std::copy_n(payload.begin() + 8, 2, size_buf.begin());
  554|      6|      size_buf[2] = 0;
  555|      6|      size_buf[3] = 0;
  556|      6|      pixelHeight_ = Exiv2::getULong(size_buf.data(), littleEndian) & 0x3fff;
  557|    576|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8L) && !has_canvas_data) {
  ------------------
  |  Branch (557:16): [True: 15, False: 561]
  |  Branch (557:66): [True: 10, False: 5]
  ------------------
  558|     10|      Internal::enforce(size >= 5, Exiv2::ErrorCode::kerCorruptedMetadata);
  559|       |
  560|     10|      has_canvas_data = true;
  561|     10|      std::array<byte, 2> size_buf_w;
  562|     10|      std::array<byte, 3> size_buf_h;
  563|       |
  564|     10|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  565|       |
  566|       |      // Fetch width
  567|     10|      std::copy_n(payload.begin() + 1, 2, size_buf_w.begin());
  568|     10|      size_buf_w.back() &= 0x3F;
  569|     10|      pixelWidth_ = Exiv2::getUShort(size_buf_w.data(), littleEndian) + 1;
  570|       |
  571|       |      // Fetch height
  572|     10|      std::copy_n(payload.begin() + 2, 3, size_buf_h.begin());
  573|     10|      size_buf_h[0] = ((size_buf_h[0] >> 6) & 0x3) | ((size_buf_h[1] & 0x3FU) << 0x2);
  574|     10|      size_buf_h[1] = ((size_buf_h[1] >> 6) & 0x3) | ((size_buf_h[2] & 0xFU) << 0x2);
  575|     10|      pixelHeight_ = Exiv2::getUShort(size_buf_h.data(), littleEndian) + 1;
  576|    566|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ANMF) && !has_canvas_data) {
  ------------------
  |  Branch (576:16): [True: 37, False: 529]
  |  Branch (576:66): [True: 6, False: 31]
  ------------------
  577|      6|      Internal::enforce(size >= 12, Exiv2::ErrorCode::kerCorruptedMetadata);
  578|       |
  579|      6|      has_canvas_data = true;
  580|      6|      std::array<byte, WEBP_TAG_SIZE> size_buf;
  581|       |
  582|      6|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  583|       |
  584|       |      // Fetch width
  585|      6|      std::copy_n(payload.begin() + 6, 3, size_buf.begin());
  586|      6|      size_buf.back() = 0;
  587|      6|      pixelWidth_ = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  588|       |
  589|       |      // Fetch height
  590|      6|      std::copy_n(payload.begin() + 9, 3, size_buf.begin());
  591|      6|      size_buf.back() = 0;
  592|      6|      pixelHeight_ = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  593|    560|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ICCP)) {
  ------------------
  |  Branch (593:16): [True: 8, False: 552]
  ------------------
  594|      8|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  595|      8|      this->setIccProfile(std::move(payload));
  596|    552|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_EXIF)) {
  ------------------
  |  Branch (596:16): [True: 45, False: 507]
  ------------------
  597|     45|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  598|       |
  599|     45|      std::array<byte, 2> size_buff2;
  600|       |      // 4 meaningful bytes + 2 padding bytes
  601|     45|      auto exifLongHeader = std::array<byte, 6>{0xFF, 0x01, 0xFF, 0xE1, 0x00, 0x00};
  602|     45|      auto exifShortHeader = std::array<byte, 6>{0x45, 0x78, 0x69, 0x66, 0x00, 0x00};
  603|     45|      const byte exifTiffLEHeader[] = {0x49, 0x49, 0x2A};        // "MM*"
  604|     45|      const byte exifTiffBEHeader[] = {0x4D, 0x4D, 0x00, 0x2A};  // "II\0*"
  605|     45|      size_t offset = 0;
  606|     45|      bool s_header = false;
  607|     45|      bool le_header = false;
  608|     45|      bool be_header = false;
  609|     45|      size_t pos = getHeaderOffset(payload.c_data(), payload.size(), exifLongHeader.data(), 4);
  610|       |
  611|     45|      if (pos == std::string::npos) {
  ------------------
  |  Branch (611:11): [True: 42, False: 3]
  ------------------
  612|     42|        pos = getHeaderOffset(payload.c_data(), payload.size(), exifLongHeader.data(), 6);
  613|     42|        if (pos != std::string::npos) {
  ------------------
  |  Branch (613:13): [True: 0, False: 42]
  ------------------
  614|      0|          s_header = true;
  615|      0|        }
  616|     42|      }
  617|     45|      if (pos == std::string::npos) {
  ------------------
  |  Branch (617:11): [True: 42, False: 3]
  ------------------
  618|     42|        pos = getHeaderOffset(payload.c_data(), payload.size(), exifTiffLEHeader, 3);
  619|     42|        if (pos != std::string::npos) {
  ------------------
  |  Branch (619:13): [True: 5, False: 37]
  ------------------
  620|      5|          le_header = true;
  621|      5|        }
  622|     42|      }
  623|     45|      if (pos == std::string::npos) {
  ------------------
  |  Branch (623:11): [True: 37, False: 8]
  ------------------
  624|     37|        pos = getHeaderOffset(payload.c_data(), payload.size(), exifTiffBEHeader, 4);
  625|     37|        if (pos != std::string::npos) {
  ------------------
  |  Branch (625:13): [True: 11, False: 26]
  ------------------
  626|     11|          be_header = true;
  627|     11|        }
  628|     37|      }
  629|       |
  630|     45|      if (s_header) {
  ------------------
  |  Branch (630:11): [True: 0, False: 45]
  ------------------
  631|      0|        offset += 6;
  632|      0|      }
  633|     45|      if (be_header || le_header) {
  ------------------
  |  Branch (633:11): [True: 11, False: 34]
  |  Branch (633:24): [True: 5, False: 29]
  ------------------
  634|     16|        offset += 12;
  635|     16|      }
  636|       |
  637|     45|      const size_t sizePayload = Safe::add(payload.size(), offset);
  638|     45|      DataBuf rawExifData(sizePayload);
  639|       |
  640|     45|      if (s_header) {
  ------------------
  |  Branch (640:11): [True: 0, False: 45]
  ------------------
  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|     45|      if (be_header || le_header) {
  ------------------
  |  Branch (646:11): [True: 11, False: 34]
  |  Branch (646:24): [True: 5, False: 29]
  ------------------
  647|     16|        us2Data(size_buff2.data(), static_cast<uint16_t>(sizePayload - 6), bigEndian);
  648|     16|        std::copy_n(exifLongHeader.begin(), 4, rawExifData.begin());
  649|     16|        std::copy(size_buff2.begin(), size_buff2.end(), rawExifData.begin() + 4);
  650|     16|        std::copy(exifShortHeader.begin(), exifShortHeader.end(), rawExifData.begin() + 6);
  651|     16|      }
  652|       |
  653|     45|      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|     45|      if (pos != std::string::npos) {
  ------------------
  |  Branch (660:11): [True: 19, False: 26]
  ------------------
  661|     19|        XmpData xmpData;
  662|     19|        ByteOrder bo = ExifParser::decode(exifData_, payload.c_data(pos), payload.size() - pos);
  663|     19|        setByteOrder(bo);
  664|     26|      } else {
  665|     26|#ifndef SUPPRESS_WARNINGS
  666|     26|        EXV_WARNING << "Failed to decode Exif metadata." << '\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()
  ------------------
  667|     26|#endif
  668|     26|        exifData_.clear();
  669|     26|      }
  670|    507|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_XMP)) {
  ------------------
  |  Branch (670:16): [True: 38, False: 469]
  ------------------
  671|     38|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  672|     38|      xmpPacket_.assign(payload.c_str(), payload.size());
  673|     38|      if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_)) {
  ------------------
  |  Branch (673:11): [True: 38, False: 0]
  |  Branch (673:34): [True: 38, False: 0]
  ------------------
  674|     38|#ifndef SUPPRESS_WARNINGS
  675|     38|        EXV_WARNING << "Failed to decode XMP metadata." << '\n';
  ------------------
  |  |  138|     38|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 38]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     38|  LogMsg(LogMsg::warn).os()
  ------------------
  676|     38|#endif
  677|     38|      } 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|    469|    } else {
  684|    469|      io_->seek(size, BasicIo::cur);
  685|    469|    }
  686|       |
  687|  1.44k|    if (io_->tell() % 2)
  ------------------
  |  Branch (687:9): [True: 191, False: 1.25k]
  ------------------
  688|    191|      io_->seek(+1, BasicIo::cur);
  689|  1.44k|  }
  690|    132|}
_ZN5Exiv215newWebPInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  694|    143|Image::UniquePtr newWebPInstance(BasicIo::UniquePtr io, bool /*create*/) {
  695|    143|  auto image = std::make_unique<WebPImage>(std::move(io));
  696|    143|  if (!image->good()) {
  ------------------
  |  Branch (696:7): [True: 0, False: 143]
  ------------------
  697|      0|    return nullptr;
  698|      0|  }
  699|    143|  return image;
  700|    143|}
_ZN5Exiv210isWebPTypeERNS_7BasicIoEb:
  702|  17.3k|bool isWebPType(BasicIo& iIo, bool /*advance*/) {
  703|  17.3k|  if (iIo.size() < 12) {
  ------------------
  |  Branch (703:7): [True: 61, False: 17.3k]
  ------------------
  704|     61|    return false;
  705|     61|  }
  706|  17.3k|  const int32_t len = 4;
  707|  17.3k|  constexpr std::array<byte, len> RiffImageId{'R', 'I', 'F', 'F'};
  708|  17.3k|  constexpr std::array<byte, len> WebPImageId{'W', 'E', 'B', 'P'};
  709|  17.3k|  std::array<byte, len> webp;
  710|  17.3k|  std::array<byte, len> data;
  711|  17.3k|  std::array<byte, len> riff;
  712|  17.3k|  iIo.readOrThrow(riff.data(), len, Exiv2::ErrorCode::kerCorruptedMetadata);
  713|  17.3k|  iIo.readOrThrow(data.data(), len, Exiv2::ErrorCode::kerCorruptedMetadata);
  714|  17.3k|  iIo.readOrThrow(webp.data(), len, Exiv2::ErrorCode::kerCorruptedMetadata);
  715|  17.3k|  bool matched_riff = riff == RiffImageId;
  716|  17.3k|  bool matched_webp = webp == WebPImageId;
  717|  17.3k|  iIo.seek(-12, BasicIo::cur);
  718|  17.3k|  return matched_riff && matched_webp;
  ------------------
  |  Branch (718:10): [True: 1.07k, False: 16.2k]
  |  Branch (718:26): [True: 797, False: 280]
  ------------------
  719|  17.3k|}
_ZN5Exiv29WebPImage13equalsWebPTagERKNS_7DataBufEPKc:
  728|  12.2k|bool WebPImage::equalsWebPTag(const Exiv2::DataBuf& buf, const char* str) {
  729|  17.9k|  for (int i = 0; i < 4; i++)
  ------------------
  |  Branch (729:19): [True: 17.5k, False: 421]
  ------------------
  730|  17.5k|    if (toupper(buf.read_uint8(i)) != str[i])
  ------------------
  |  Branch (730:9): [True: 11.8k, False: 5.73k]
  ------------------
  731|  11.8k|      return false;
  732|    421|  return true;
  733|  12.2k|}
_ZNK5Exiv29WebPImage11inject_VP8XERNS_7BasicIoEbbbbjj:
  743|     26|                            uint32_t height) const {
  744|     26|  const byte size[4] = {0x0A, 0x00, 0x00, 0x00};
  745|     26|  byte data[10] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  746|     26|  iIo.write(reinterpret_cast<const byte*>(WEBP_CHUNK_HEADER_VP8X), WEBP_TAG_SIZE);
  747|     26|  iIo.write(size, WEBP_TAG_SIZE);
  748|       |
  749|     26|  if (has_alpha) {
  ------------------
  |  Branch (749:7): [True: 3, False: 23]
  ------------------
  750|      3|    data[0] |= WEBP_VP8X_ALPHA_BIT;
  751|      3|  }
  752|       |
  753|     26|  if (has_icc) {
  ------------------
  |  Branch (753:7): [True: 1, False: 25]
  ------------------
  754|      1|    data[0] |= WEBP_VP8X_ICC_BIT;
  755|      1|  }
  756|       |
  757|     26|  if (has_xmp) {
  ------------------
  |  Branch (757:7): [True: 3, False: 23]
  ------------------
  758|      3|    data[0] |= WEBP_VP8X_XMP_BIT;
  759|      3|  }
  760|       |
  761|     26|  if (has_exif) {
  ------------------
  |  Branch (761:7): [True: 0, False: 26]
  ------------------
  762|      0|    data[0] |= WEBP_VP8X_EXIF_BIT;
  763|      0|  }
  764|       |
  765|       |  /* set width - stored in 24bits*/
  766|     26|  Internal::enforce(width > 0, Exiv2::ErrorCode::kerCorruptedMetadata);
  767|     26|  uint32_t w = width - 1;
  768|     26|  data[4] = w & 0xFF;
  769|     26|  data[5] = (w >> 8) & 0xFF;
  770|     26|  data[6] = (w >> 16) & 0xFF;
  771|       |
  772|       |  /* set height - stored in 24bits */
  773|     26|  Internal::enforce(height > 0, Exiv2::ErrorCode::kerCorruptedMetadata);
  774|     26|  uint32_t h = height - 1;
  775|     26|  data[7] = h & 0xFF;
  776|     26|  data[8] = (h >> 8) & 0xFF;
  777|     26|  data[9] = (h >> 16) & 0xFF;
  778|       |
  779|     26|  iIo.write(data, 10);
  780|       |
  781|       |  /* Handle inject an icc profile right after VP8X chunk */
  782|     26|  if (has_icc) {
  ------------------
  |  Branch (782:7): [True: 1, False: 25]
  ------------------
  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|     26|}
_ZN5Exiv29WebPImage15getHeaderOffsetEPKhmS2_m:
  796|    166|size_t WebPImage::getHeaderOffset(const byte* data, size_t data_size, const byte* header, size_t header_size) {
  797|    166|  size_t pos = std::string::npos;  // error value
  798|    166|  if (data_size < header_size) {
  ------------------
  |  Branch (798:7): [True: 22, False: 144]
  ------------------
  799|     22|    return pos;
  800|     22|  }
  801|  4.42k|  for (size_t i = 0; i < data_size - header_size; i++) {
  ------------------
  |  Branch (801:22): [True: 4.29k, False: 125]
  ------------------
  802|  4.29k|    if (memcmp(header, &data[i], header_size) == 0) {
  ------------------
  |  Branch (802:9): [True: 19, False: 4.27k]
  ------------------
  803|     19|      pos = i;
  804|     19|      break;
  805|     19|    }
  806|  4.29k|  }
  807|    144|  return pos;
  808|    166|}

_ZN5Exiv28Xmpdatum4ImplC2ERKNS_6XmpKeyEPKNS_5ValueE:
  251|  38.2k|Xmpdatum::Impl::Impl(const XmpKey& key, const Value* pValue) : key_(key.clone()) {
  252|  38.2k|  if (pValue)
  ------------------
  |  Branch (252:7): [True: 14.8k, False: 23.3k]
  ------------------
  253|  14.8k|    value_ = pValue->clone();
  254|  38.2k|}
_ZN5Exiv28Xmpdatum4ImplC2ERKS1_:
  256|  42.0k|Xmpdatum::Impl::Impl(const Impl& rhs) {
  257|  42.0k|  if (rhs.key_)
  ------------------
  |  Branch (257:7): [True: 42.0k, False: 0]
  ------------------
  258|  42.0k|    key_ = rhs.key_->clone();  // deep copy
  259|  42.0k|  if (rhs.value_)
  ------------------
  |  Branch (259:7): [True: 42.0k, False: 0]
  ------------------
  260|  42.0k|    value_ = rhs.value_->clone();  // deep copy
  261|  42.0k|}
_ZN5Exiv28XmpdatumC2ERKNS_6XmpKeyEPKNS_5ValueE:
  275|  38.2k|Xmpdatum::Xmpdatum(const XmpKey& key, const Value* pValue) : p_(std::make_unique<Impl>(key, pValue)) {
  276|  38.2k|}
_ZN5Exiv28XmpdatumC2ERKS0_:
  278|  42.0k|Xmpdatum::Xmpdatum(const Xmpdatum& rhs) : p_(std::make_unique<Impl>(*rhs.p_)) {
  279|  42.0k|}
_ZN5Exiv28XmpdatumD2Ev:
  288|  80.2k|Xmpdatum::~Xmpdatum() = default;
_ZNK5Exiv28Xmpdatum3keyEv:
  290|  11.9M|std::string Xmpdatum::key() const {
  291|  11.9M|  return p_->key_ ? p_->key_->key() : "";
  ------------------
  |  Branch (291:10): [True: 11.9M, False: 0]
  ------------------
  292|  11.9M|}
_ZNK5Exiv28Xmpdatum9groupNameEv:
  298|  3.32k|std::string Xmpdatum::groupName() const {
  299|  3.32k|  return p_->key_ ? p_->key_->groupName() : "";
  ------------------
  |  Branch (299:10): [True: 3.32k, False: 0]
  ------------------
  300|  3.32k|}
_ZNK5Exiv28Xmpdatum7tagNameEv:
  302|  16.4k|std::string Xmpdatum::tagName() const {
  303|  16.4k|  return p_->key_ ? p_->key_->tagName() : "";
  ------------------
  |  Branch (303:10): [True: 16.4k, False: 0]
  ------------------
  304|  16.4k|}
_ZNK5Exiv28Xmpdatum6typeIdEv:
  318|  16.2k|TypeId Xmpdatum::typeId() const {
  319|  16.2k|  return p_->value_ ? p_->value_->typeId() : invalidTypeId;
  ------------------
  |  Branch (319:10): [True: 16.2k, False: 0]
  ------------------
  320|  16.2k|}
_ZNK5Exiv28Xmpdatum5countEv:
  330|  3.90k|size_t Xmpdatum::count() const {
  331|  3.90k|  return p_->value_ ? p_->value_->count() : 0;
  ------------------
  |  Branch (331:10): [True: 3.90k, False: 0]
  ------------------
  332|  3.90k|}
_ZNK5Exiv28Xmpdatum8toStringEv:
  338|    739|std::string Xmpdatum::toString() const {
  339|    739|  return p_->value_ ? p_->value_->toString() : "";
  ------------------
  |  Branch (339:10): [True: 739, False: 0]
  ------------------
  340|    739|}
_ZNK5Exiv28Xmpdatum8toStringEm:
  342|  6.59k|std::string Xmpdatum::toString(size_t n) const {
  343|  6.59k|  return p_->value_ ? p_->value_->toString(n) : "";
  ------------------
  |  Branch (343:10): [True: 6.59k, False: 0]
  ------------------
  344|  6.59k|}
_ZNK5Exiv28Xmpdatum5valueEv:
  362|  25.0k|const Value& Xmpdatum::value() const {
  363|  25.0k|  if (!p_->value_)
  ------------------
  |  Branch (363:7): [True: 0, False: 25.0k]
  ------------------
  364|      0|    throw Error(ErrorCode::kerValueNotSet, key());
  365|  25.0k|  return *p_->value_;
  366|  25.0k|}
_ZNK5Exiv28Xmpdatum5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKNS_8ExifDataE:
  372|  18.1k|std::ostream& Xmpdatum::write(std::ostream& os, const ExifData*) const {
  373|  18.1k|  return XmpProperties::printProperty(os, key(), value());
  374|  18.1k|}
_ZN5Exiv28Xmpdatum8setValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  382|   893k|int Xmpdatum::setValue(const std::string& value) {
  383|   893k|  XmpProperties::XmpLock lock;
  384|   893k|  if (!p_->value_) {
  ------------------
  |  Branch (384:7): [True: 23.3k, False: 870k]
  ------------------
  385|  23.3k|    TypeId type = xmpText;
  386|  23.3k|    if (p_->key_) {
  ------------------
  |  Branch (386:9): [True: 23.3k, False: 0]
  ------------------
  387|  23.3k|      type = XmpProperties::propertyTypeUnlocked(*p_->key_.get(), lock);
  388|  23.3k|    }
  389|  23.3k|    p_->value_ = Value::create(type);
  390|  23.3k|  }
  391|   893k|  return p_->value_->read(value);
  392|   893k|}
_ZN5Exiv27XmpDataixERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  394|   894k|Xmpdatum& XmpData::operator[](const std::string& key) {
  395|   894k|  XmpProperties::XmpLock lock;
  396|   894k|  XmpKey xmpKey(key, lock);
  397|   894k|  auto pos = std::find_if(xmpMetadata_.begin(), xmpMetadata_.end(), FindXmpdatum(xmpKey));
  398|   894k|  if (pos == xmpMetadata_.end()) {
  ------------------
  |  Branch (398:7): [True: 23.3k, False: 870k]
  ------------------
  399|  23.3k|    return xmpMetadata_.emplace_back(xmpKey);
  400|  23.3k|  }
  401|   870k|  return *pos;
  402|   894k|}
_ZN5Exiv27XmpData3addERKNS_6XmpKeyEPKNS_5ValueE:
  404|  3.07k|int XmpData::add(const XmpKey& key, const Value* value) {
  405|  3.07k|  XmpProperties::XmpLock lock;
  406|  3.07k|  return addUnlocked(key, value, lock);
  407|  3.07k|}
_ZN5Exiv27XmpData11addUnlockedERKNS_6XmpKeyEPKNS_5ValueERKNS_13XmpProperties7XmpLockE:
  409|  14.8k|int XmpData::addUnlocked(const XmpKey& key, const Value* value, const XmpProperties::XmpLock&) {
  410|  14.8k|  xmpMetadata_.emplace_back(key, value);
  411|  14.8k|  return 0;
  412|  14.8k|}
_ZNK5Exiv27XmpData7findKeyERKNS_6XmpKeyE:
  424|  4.69k|XmpData::const_iterator XmpData::findKey(const XmpKey& key) const {
  425|  4.69k|  XmpProperties::XmpLock lock;
  426|  4.69k|  return std::find_if(xmpMetadata_.begin(), xmpMetadata_.end(), FindXmpdatum(key));
  427|  4.69k|}
_ZN5Exiv27XmpData7findKeyERKNS_6XmpKeyE:
  429|  82.1k|XmpData::iterator XmpData::findKey(const XmpKey& key) {
  430|  82.1k|  XmpProperties::XmpLock lock;
  431|  82.1k|  return std::find_if(xmpMetadata_.begin(), xmpMetadata_.end(), FindXmpdatum(key));
  432|  82.1k|}
_ZN5Exiv27XmpData5clearEv:
  434|  35.0k|void XmpData::clear() {
  435|  35.0k|  XmpProperties::XmpLock lock;
  436|  35.0k|  clearUnlocked(lock);
  437|  35.0k|}
_ZN5Exiv27XmpData13clearUnlockedERKNS_13XmpProperties7XmpLockE:
  439|  39.8k|void XmpData::clearUnlocked(const XmpProperties::XmpLock&) {
  440|  39.8k|  xmpMetadata_.clear();
  441|  39.8k|  nsBindings_.clear();
  442|  39.8k|}
_ZNK5Exiv27XmpData5beginEv:
  453|    247|XmpData::const_iterator XmpData::begin() const {
  454|    247|  return xmpMetadata_.begin();
  455|    247|}
_ZNK5Exiv27XmpData3endEv:
  457|  4.93k|XmpData::const_iterator XmpData::end() const {
  458|  4.93k|  return xmpMetadata_.end();
  459|  4.93k|}
_ZNK5Exiv27XmpData5emptyEv:
  461|  2.12k|bool XmpData::empty() const {
  462|  2.12k|  XmpProperties::XmpLock lock;
  463|  2.12k|  return emptyUnlocked(lock);
  464|  2.12k|}
_ZNK5Exiv27XmpData13emptyUnlockedERKNS_13XmpProperties7XmpLockE:
  466|  21.5k|bool XmpData::emptyUnlocked(const XmpProperties::XmpLock&) const {
  467|  21.5k|  return xmpMetadata_.empty();
  468|  21.5k|}
_ZN5Exiv27XmpData5beginEv:
  479|  26.9k|XmpData::iterator XmpData::begin() {
  480|  26.9k|  return xmpMetadata_.begin();
  481|  26.9k|}
_ZN5Exiv27XmpData3endEv:
  483|   109k|XmpData::iterator XmpData::end() {
  484|   109k|  return xmpMetadata_.end();
  485|   109k|}
_ZN5Exiv227xmpToolkitEnsureInitializedEv:
  536|  25.4k|void xmpToolkitEnsureInitialized() {
  537|  25.4k|  static XmpToolkitLifetimeManager instance;
  538|  25.4k|  (void)instance;
  539|  25.4k|}
_ZN5Exiv29XmpParser14registerNsImplERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  541|  1.22k|void XmpParser::registerNsImpl(const std::string& ns, const std::string& prefix) {
  542|  1.22k|  xmpToolkitEnsureInitialized();
  543|  1.22k|  try {
  544|  1.22k|    std::string existingPrefix;
  545|  1.22k|    if (SXMPMeta::GetNamespacePrefix(ns.c_str(), &existingPrefix)) {
  ------------------
  |  Branch (545:9): [True: 1.22k, False: 3]
  ------------------
  546|  1.22k|      if (!existingPrefix.empty() && existingPrefix.back() == ':') {
  ------------------
  |  Branch (546:11): [True: 1.22k, False: 0]
  |  Branch (546:38): [True: 1.22k, False: 0]
  ------------------
  547|  1.22k|        existingPrefix.pop_back();
  548|  1.22k|      }
  549|  1.22k|      if (existingPrefix == prefix) {
  ------------------
  |  Branch (549:11): [True: 1.20k, False: 14]
  ------------------
  550|       |        // Already registered correctly, skip overhead
  551|  1.20k|        return;
  552|  1.20k|      }
  553|  1.22k|    }
  554|       |
  555|     17|    SXMPMeta::DeleteNamespace(ns.c_str());
  556|       |#ifdef EXV_ADOBE_XMPSDK
  557|       |    SXMPMeta::RegisterNamespace(ns.c_str(), prefix.c_str(), nullptr);
  558|       |#else
  559|     17|    SXMPMeta::RegisterNamespace(ns.c_str(), prefix.c_str());
  560|     17|#endif
  561|     17|  } catch (const XMP_Error& /* e */) {
  562|       |    // throw Error(ErrorCode::kerXMPToolkitError, e.GetID(), e.GetErrMsg());
  563|      0|  }
  564|  1.22k|}
_ZN5Exiv29XmpParser6decodeERNS_7XmpDataERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
  661|  5.46k|int XmpParser::decode(XmpData& xmpData, const std::string& xmpPacket) {
  662|  5.46k|  try {
  663|  5.46k|    xmpData.setPacket(xmpPacket);
  664|  5.46k|    if (xmpPacket.empty()) {
  ------------------
  |  Branch (664:9): [True: 649, False: 4.82k]
  ------------------
  665|    649|      xmpData.clear();
  666|    649|      return 0;
  667|    649|    }
  668|       |
  669|       |    // Acquire Giant Lock
  670|  4.82k|    XmpProperties::XmpLock lock;
  671|  4.82k|    try {
  672|  4.82k|      xmpToolkitEnsureInitialized();
  673|  4.82k|    } catch (const Error&) {
  674|      0|#ifndef SUPPRESS_WARNINGS
  675|      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()
  ------------------
  676|      0|#endif
  677|      0|      return 2;
  678|      0|    }
  679|       |
  680|  4.82k|    xmpData.clearUnlocked(lock);
  681|       |
  682|       |    // Make sure the unterminated substring is used
  683|  4.82k|    size_t len = xmpPacket.size();
  684|   877k|    while (len > 0 && 0 == xmpPacket[len - 1])
  ------------------
  |  Branch (684:12): [True: 877k, False: 36]
  |  Branch (684:23): [True: 872k, False: 4.78k]
  ------------------
  685|   872k|      --len;
  686|       |
  687|  4.82k|    XMLValidator::check(xmpPacket.data(), len);
  688|  4.82k|    SXMPMeta meta(xmpPacket.data(), static_cast<XMP_StringLen>(len));
  689|  4.82k|    SXMPIterator iter(meta);
  690|  4.82k|    std::string schemaNs;
  691|  4.82k|    std::string propPath;
  692|  4.82k|    std::string propValue;
  693|  4.82k|    XMP_OptionBits opt = 0;
  694|  21.1k|    while (iter.Next(&schemaNs, &propPath, &propValue, &opt)) {
  ------------------
  |  Branch (694:12): [True: 16.2k, False: 4.82k]
  ------------------
  695|  16.2k|      printNode(schemaNs, propPath, propValue, opt);
  696|  16.2k|      if (XMP_PropIsAlias(opt)) {
  ------------------
  |  Branch (696:11): [True: 0, False: 16.2k]
  ------------------
  697|      0|        throw Error(ErrorCode::kerAliasesNotSupported, schemaNs, propPath, propValue);
  698|      0|      }
  699|  16.2k|      if (XMP_NodeIsSchema(opt)) {
  ------------------
  |  Branch (699:11): [True: 4.51k, False: 11.7k]
  ------------------
  700|       |        // Register unknown namespaces with Exiv2
  701|       |        // (Namespaces are automatically registered with the XMP Toolkit)
  702|  4.51k|        std::string prefix = XmpProperties::prefixUnlocked(schemaNs, lock);
  703|  4.51k|        if (prefix.empty()) {
  ------------------
  |  Branch (703:13): [True: 3.72k, False: 783]
  ------------------
  704|  3.72k|          if (!SXMPMeta::GetNamespacePrefix(schemaNs.c_str(), &prefix))
  ------------------
  |  Branch (704:15): [True: 0, False: 3.72k]
  ------------------
  705|      0|            throw Error(ErrorCode::kerSchemaNamespaceNotRegistered, schemaNs);
  706|  3.72k|          prefix.pop_back();
  707|       |          // Hardening: a parsed packet must not silently rebind a prefix that is
  708|       |          // already globally bound -- a built-in standard prefix, or one a prior
  709|       |          // explicit registerNs() established -- to a different URI.  Letting it
  710|       |          // would poison every later write and lookup in this process (the
  711|       |          // namespace-leak bug).  The packet's own binding is still captured
  712|       |          // per-instance below, so this object round-trips faithfully; we just
  713|       |          // don't pollute the global registry on a read.
  714|  3.72k|          if (!XmpProperties::prefixIsBoundUnlocked(prefix, lock))
  ------------------
  |  Branch (714:15): [True: 5, False: 3.72k]
  ------------------
  715|      5|            XmpProperties::registerNsUnlocked(schemaNs, prefix, lock);
  716|  3.72k|        }
  717|       |        // Record the prefix->URI binding exactly as declared by THIS packet so
  718|       |        // encode() can resolve each property's URI from the data it came from,
  719|       |        // rather than from the process-global registry which another image may
  720|       |        // have rebound (e.g. to a corrupted URI).  See XmpData::nsBindings().
  721|  4.51k|        xmpData.nsBindings_[prefix] = schemaNs;
  722|  4.51k|        continue;
  723|  4.51k|      }
  724|  11.7k|      auto key = makeXmpKey(schemaNs, propPath, lock);
  725|  11.7k|      if (XMP_ArrayIsAltText(opt)) {
  ------------------
  |  Branch (725:11): [True: 191, False: 11.5k]
  ------------------
  726|       |        // Read Lang Alt property
  727|    191|        auto val = std::make_unique<LangAltValue>();
  728|    191|        XMP_Index count = meta.CountArrayItems(schemaNs.c_str(), propPath.c_str());
  729|    369|        while (count-- > 0) {
  ------------------
  |  Branch (729:16): [True: 178, False: 191]
  ------------------
  730|       |          // Get the text
  731|    178|          bool haveNext = iter.Next(&schemaNs, &propPath, &propValue, &opt);
  732|    178|          printNode(schemaNs, propPath, propValue, opt);
  733|    178|          if (!haveNext || !XMP_PropIsSimple(opt) || !XMP_PropHasLang(opt)) {
  ------------------
  |  Branch (733:15): [True: 0, False: 178]
  |  Branch (733:28): [True: 0, False: 178]
  |  Branch (733:54): [True: 0, False: 178]
  ------------------
  734|      0|            throw Error(ErrorCode::kerDecodeLangAltPropertyFailed, propPath, opt);
  735|      0|          }
  736|    178|          std::string text = propValue;
  737|       |          // Get the language qualifier
  738|    178|          haveNext = iter.Next(&schemaNs, &propPath, &propValue, &opt);
  739|    178|          printNode(schemaNs, propPath, propValue, opt);
  740|    178|          if (!haveNext || !XMP_PropIsSimple(opt) || !XMP_PropIsQualifier(opt) ||
  ------------------
  |  Branch (740:15): [True: 0, False: 178]
  |  Branch (740:15): [True: 0, False: 178]
  |  Branch (740:28): [True: 0, False: 178]
  |  Branch (740:54): [True: 0, False: 178]
  ------------------
  741|    178|              propPath.substr(propPath.size() - 8, 8) != "xml:lang") {
  ------------------
  |  Branch (741:15): [True: 0, False: 178]
  ------------------
  742|      0|            throw Error(ErrorCode::kerDecodeLangAltQualifierFailed, propPath, opt);
  743|      0|          }
  744|    178|          val->value_[propValue] = std::move(text);
  745|    178|        }
  746|    191|        xmpData.addUnlocked(*key, val.get(), lock);
  747|    191|        continue;
  748|    191|      }
  749|  11.5k|      if (XMP_PropIsArray(opt) && !XMP_PropHasQualifiers(opt) && !XMP_ArrayIsAltText(opt)) {
  ------------------
  |  Branch (749:11): [True: 873, False: 10.7k]
  |  Branch (749:35): [True: 873, False: 0]
  |  Branch (749:66): [True: 873, False: 0]
  ------------------
  750|       |        // Check if all elements are simple
  751|    873|        bool simpleArray = true;
  752|    873|        SXMPIterator aIter(meta, schemaNs.c_str(), propPath.c_str());
  753|    873|        std::string aSchemaNs;
  754|    873|        std::string aPropPath;
  755|    873|        std::string aPropValue;
  756|    873|        XMP_OptionBits aOpt = 0;
  757|  3.45k|        while (aIter.Next(&aSchemaNs, &aPropPath, &aPropValue, &aOpt)) {
  ------------------
  |  Branch (757:16): [True: 2.74k, False: 715]
  ------------------
  758|  2.74k|          if (propPath == aPropPath)
  ------------------
  |  Branch (758:15): [True: 873, False: 1.86k]
  ------------------
  759|    873|            continue;
  760|  1.86k|          if (!XMP_PropIsSimple(aOpt) || XMP_PropHasQualifiers(aOpt) || XMP_PropIsQualifier(aOpt) ||
  ------------------
  |  Branch (760:15): [True: 93, False: 1.77k]
  |  Branch (760:42): [True: 65, False: 1.70k]
  |  Branch (760:73): [True: 0, False: 1.70k]
  ------------------
  761|  1.86k|              XMP_NodeIsSchema(aOpt) || XMP_PropIsAlias(aOpt)) {
  ------------------
  |  Branch (761:15): [True: 0, False: 1.70k]
  |  Branch (761:41): [True: 0, False: 1.70k]
  ------------------
  762|    158|            simpleArray = false;
  763|    158|            break;
  764|    158|          }
  765|  1.86k|        }
  766|    873|        if (simpleArray) {
  ------------------
  |  Branch (766:13): [True: 715, False: 158]
  ------------------
  767|       |          // Read the array into an XmpArrayValue
  768|    715|          auto val = std::make_unique<XmpArrayValue>(arrayValueTypeId(opt));
  769|    715|          XMP_Index count = meta.CountArrayItems(schemaNs.c_str(), propPath.c_str());
  770|  2.42k|          while (count-- > 0) {
  ------------------
  |  Branch (770:18): [True: 1.70k, False: 715]
  ------------------
  771|  1.70k|            iter.Next(&schemaNs, &propPath, &propValue, &opt);
  772|  1.70k|            printNode(schemaNs, propPath, propValue, opt);
  773|  1.70k|            val->read(propValue);
  774|  1.70k|          }
  775|    715|          xmpData.addUnlocked(*key, val.get(), lock);
  776|    715|          continue;
  777|    715|        }
  778|    873|      }
  779|       |
  780|  10.8k|      auto val = std::make_unique<XmpTextValue>();
  781|  10.8k|      if (XMP_PropIsStruct(opt) || XMP_PropIsArray(opt)) {
  ------------------
  |  Branch (781:11): [True: 341, False: 10.5k]
  |  Branch (781:36): [True: 158, False: 10.3k]
  ------------------
  782|       |        // Create a metadatum with only XMP options
  783|    499|        val->setXmpArrayType(xmpArrayType(opt));
  784|    499|        val->setXmpStruct(xmpStruct(opt));
  785|    499|        xmpData.addUnlocked(*key, val.get(), lock);
  786|    499|        continue;
  787|    499|      }
  788|  10.3k|      if (XMP_PropIsSimple(opt) || XMP_PropIsQualifier(opt)) {
  ------------------
  |  Branch (788:11): [True: 10.3k, False: 0]
  |  Branch (788:36): [True: 0, False: 0]
  ------------------
  789|  10.3k|        val->read(propValue);
  790|  10.3k|        xmpData.addUnlocked(*key, val.get(), lock);
  791|  10.3k|        continue;
  792|  10.3k|      }
  793|       |      // Don't let any node go by unnoticed
  794|      0|      throw Error(ErrorCode::kerUnhandledXmpNode, key->key(), opt);
  795|  10.3k|    }  // iterate through all XMP nodes
  796|       |
  797|  4.82k|    return 0;
  798|  4.82k|  }
  799|  5.46k|#ifndef SUPPRESS_WARNINGS
  800|  5.46k|  catch (const Error& e) {
  801|     10|    if (e.code() == ErrorCode::kerXMPToolkitError) {
  ------------------
  |  Branch (801:9): [True: 0, False: 10]
  ------------------
  802|       |      // Initialization failures caught above, this handles other XMP errors if any wrapped in Error
  803|      0|    }
  804|     10|    throw;
  805|  2.33k|  } catch (const XMP_Error& e) {
  806|  2.33k|    EXV_ERROR << Error(ErrorCode::kerXMPToolkitError, e.GetID(), e.GetErrMsg()) << "\n";
  ------------------
  |  |  142|  2.33k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 2.33k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  2.33k|  LogMsg(LogMsg::error).os()
  ------------------
  807|  2.33k|    xmpData.clear();
  808|  2.33k|    return 3;
  809|  2.33k|  }
  810|       |#else
  811|       |  catch (const XMP_Error&) {
  812|       |    xmpData.clear();
  813|       |    return 3;
  814|       |  }
  815|       |#endif  // SUPPRESS_WARNINGS
  816|  5.46k|}  // XmpParser::decode
_ZN5Exiv29XmpParser6encodeERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_7XmpDataEtj:
  830|  19.4k|int XmpParser::encode(std::string& xmpPacket, const XmpData& xmpData, uint16_t formatFlags, uint32_t padding) {
  831|  19.4k|  try {
  832|       |    // Acquire Giant Lock
  833|  19.4k|    XmpProperties::XmpLock lock;
  834|  19.4k|    try {
  835|  19.4k|      xmpToolkitEnsureInitialized();
  836|  19.4k|    } catch (const Error&) {
  837|      0|#ifndef SUPPRESS_WARNINGS
  838|      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()
  ------------------
  839|      0|#endif
  840|      0|      return 2;
  841|      0|    }
  842|       |
  843|  19.4k|    if (xmpData.emptyUnlocked(lock)) {
  ------------------
  |  Branch (843:9): [True: 19.2k, False: 247]
  ------------------
  844|  19.2k|      xmpPacket.clear();
  845|  19.2k|      return 0;
  846|  19.2k|    }  // We are holding the Giant Lock, so we can iterate nsRegistry_ safely.
  847|       |    // XmpProperties interactions must go through Unlocked/impl methods to avoid deadlocks.
  848|  1.22k|    for (const auto& [xmp, uri] : XmpProperties::nsRegistry_) {
  ------------------
  |  Branch (848:33): [True: 1.22k, False: 247]
  ------------------
  849|       |#ifdef EXIV2_DEBUG_MESSAGES
  850|       |      std::cerr << "Registering " << uri.prefix_ << " : " << xmp << "\n";
  851|       |#endif
  852|       |      // registerNsImpl is safe since we hold the lock
  853|  1.22k|      registerNsImpl(xmp, uri.prefix_);
  854|  1.22k|    }
  855|       |
  856|       |    // Note: we deliberately do NOT re-register the per-instance bindings with
  857|       |    // the toolkit here.  Every URI they contain was already registered while its
  858|       |    // packet was parsed in decode() (custom ones are also in nsRegistry_, handled
  859|       |    // above), so SetProperty resolves them.  Re-registering would overwrite the
  860|       |    // toolkit's URI->prefix mapping whenever our preferred prefix differs from the
  861|       |    // one the file used for that URI (e.g. iptc vs Iptc4xmpCore), which breaks
  862|       |    // serialization of struct fields that still carry the file's prefix.
  863|    247|    SXMPMeta meta;
  864|  3.32k|    for (const auto& xmp : xmpData) {
  ------------------
  |  Branch (864:26): [True: 3.32k, False: 247]
  ------------------
  865|  3.32k|      const std::string ns = resolveNamespace(xmpData, xmp.groupName(), lock);
  866|  3.32k|      XMP_OptionBits options = 0;
  867|       |
  868|  3.32k|      if (xmp.typeId() == langAlt) {
  ------------------
  |  Branch (868:11): [True: 70, False: 3.25k]
  ------------------
  869|       |        // Encode Lang Alt property
  870|     70|        const auto la = dynamic_cast<const LangAltValue*>(&xmp.value());
  871|     70|        if (!la)
  ------------------
  |  Branch (871:13): [True: 0, False: 70]
  ------------------
  872|      0|          throw Error(ErrorCode::kerEncodeLangAltPropertyFailed, xmp.key());
  873|       |
  874|     70|        int idx = 1;
  875|     70|        for (const auto& [lang, specs] : la->value_) {
  ------------------
  |  Branch (875:40): [True: 66, False: 70]
  ------------------
  876|     66|          if (!specs.empty()) {  // remove lang specs with no value
  ------------------
  |  Branch (876:15): [True: 64, False: 2]
  ------------------
  877|     64|            printNode(ns, xmp.tagName(), specs, 0);
  878|     64|            meta.AppendArrayItem(ns.c_str(), xmp.tagName().c_str(), kXMP_PropArrayIsAlternate, specs.c_str());
  879|     64|            const std::string item = xmp.tagName() + "[" + toString(idx++) + "]";
  880|     64|            meta.SetQualifier(ns.c_str(), item.c_str(), kXMP_NS_XML, "lang", lang.c_str());
  881|     64|          }
  882|     66|        }
  883|     70|        continue;
  884|     70|      }
  885|       |
  886|       |      // Todo: Xmpdatum should have an XmpValue, not a Value
  887|  3.25k|      const auto val = dynamic_cast<const XmpValue*>(&xmp.value());
  888|  3.25k|      if (!val)
  ------------------
  |  Branch (888:11): [True: 0, False: 3.25k]
  ------------------
  889|      0|        throw Error(ErrorCode::kerInvalidKeyXmpValue, xmp.key(), xmp.typeName());
  890|  3.25k|      options = xmpArrayOptionBits(val->xmpArrayType()) | xmpArrayOptionBits(val->xmpStruct());
  891|  3.25k|      if (xmp.typeId() == xmpBag || xmp.typeId() == xmpSeq || xmp.typeId() == xmpAlt) {
  ------------------
  |  Branch (891:11): [True: 49, False: 3.20k]
  |  Branch (891:37): [True: 209, False: 3.00k]
  |  Branch (891:63): [True: 11, False: 2.98k]
  ------------------
  892|    269|        printNode(ns, xmp.tagName(), "", options);
  893|    269|        meta.SetProperty(ns.c_str(), xmp.tagName().c_str(), nullptr, options);
  894|    915|        for (size_t idx = 0; idx < xmp.count(); ++idx) {
  ------------------
  |  Branch (894:30): [True: 646, False: 269]
  ------------------
  895|    646|          const std::string item = xmp.tagName() + "[" + toString(idx + 1) + "]";
  896|    646|          printNode(ns, item, xmp.toString(static_cast<long>(idx)), 0);
  897|    646|          meta.SetProperty(ns.c_str(), item.c_str(), xmp.toString(static_cast<long>(idx)).c_str());
  898|    646|        }
  899|    269|        continue;
  900|    269|      }
  901|  2.98k|      if (xmp.typeId() == xmpText) {
  ------------------
  |  Branch (901:11): [True: 2.98k, False: 0]
  ------------------
  902|  2.98k|        const auto xt = dynamic_cast<const XmpTextValue*>(&xmp.value());
  903|  2.98k|        if (xmp.count() == 0 || xt->xmpStruct() != XmpValue::xsNone || xt->xmpArrayType() != XmpValue::xaNone) {
  ------------------
  |  Branch (903:13): [True: 157, False: 2.83k]
  |  Branch (903:33): [True: 123, False: 2.70k]
  |  Branch (903:72): [True: 59, False: 2.65k]
  ------------------
  904|    339|          printNode(ns, xmp.tagName(), "", options);
  905|    339|          meta.SetProperty(ns.c_str(), xmp.tagName().c_str(), nullptr, options);
  906|  2.65k|        } else {
  907|  2.65k|          printNode(ns, xmp.tagName(), xmp.toString(0), options);
  908|  2.65k|          meta.SetProperty(ns.c_str(), xmp.tagName().c_str(), xmp.toString(0).c_str(), options);
  909|  2.65k|        }
  910|  2.98k|        continue;
  911|  2.98k|      }
  912|       |      // Don't let any Xmpdatum go by unnoticed
  913|      0|      throw Error(ErrorCode::kerUnhandledXmpdatum, xmp.tagName(), xmp.typeName());
  914|  2.98k|    }
  915|    247|    std::string tmpPacket;
  916|    247|    meta.SerializeToBuffer(&tmpPacket, xmpFormatOptionBits(static_cast<XmpFormatFlags>(formatFlags)),
  917|    247|                           padding);  // throws
  918|    247|    xmpPacket = std::move(tmpPacket);
  919|       |
  920|    247|    return 0;
  921|    247|  }
  922|  19.4k|#ifndef SUPPRESS_WARNINGS
  923|  19.4k|  catch (const Error& /* e */) {
  924|      0|    throw;
  925|      0|  } catch (const XMP_Error& e) {
  926|      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()
  ------------------
  927|      0|    return 3;
  928|      0|  }
  929|       |#else
  930|       |  catch (const XMP_Error&) {
  931|       |    return 3;
  932|       |  }
  933|       |#endif  // SUPPRESS_WARNINGS
  934|  19.4k|}  // XmpParser::encode
_ZN5Exiv29XmpParser10makeXmpKeyERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKNS_13XmpProperties7XmpLockE:
 1096|  11.7k|                                                      const XmpProperties::XmpLock& lock) {
 1097|  11.7k|  std::string property;
 1098|  11.7k|  std::string::size_type idx = propPath.find(':');
 1099|  11.7k|  if (idx == std::string::npos) {
  ------------------
  |  Branch (1099:7): [True: 0, False: 11.7k]
  ------------------
 1100|      0|    throw Exiv2::Error(Exiv2::ErrorCode::kerPropertyNameIdentificationFailed, propPath, schemaNs);
 1101|      0|  }
 1102|       |  // Don't worry about out_of_range, XMP parser takes care of this
 1103|  11.7k|  property = propPath.substr(idx + 1);
 1104|  11.7k|  std::string prefix = Exiv2::XmpProperties::prefixUnlocked(schemaNs, lock);
 1105|  11.7k|  if (prefix.empty()) {
  ------------------
  |  Branch (1105:7): [True: 9.77k, False: 2.00k]
  ------------------
 1106|       |    // The namespace was intentionally not registered globally (e.g. a packet
 1107|       |    // that rebinds an already-bound prefix to a different URI -- see the
 1108|       |    // hardening in decode()).  Fall back to the prefix the toolkit parsed so
 1109|       |    // the property still gets a key; its URI is preserved per-instance.
 1110|  9.77k|    std::string toolkitPrefix;
 1111|  9.77k|    if (SXMPMeta::GetNamespacePrefix(schemaNs.c_str(), &toolkitPrefix)) {
  ------------------
  |  Branch (1111:9): [True: 9.77k, False: 0]
  ------------------
 1112|  9.77k|      toolkitPrefix.pop_back();
 1113|  9.77k|      prefix = std::move(toolkitPrefix);
 1114|  9.77k|    }
 1115|  9.77k|  }
 1116|  11.7k|  if (prefix.empty()) {
  ------------------
  |  Branch (1116:7): [True: 0, False: 11.7k]
  ------------------
 1117|      0|    throw Exiv2::Error(Exiv2::ErrorCode::kerNoPrefixForNamespace, propPath, schemaNs);
 1118|      0|  }
 1119|  11.7k|  return Exiv2::XmpKey::UniquePtr(new Exiv2::XmpKey(prefix, property, lock));
 1120|  11.7k|}  // makeXmpKey
_ZN5Exiv29XmpParser16resolveNamespaceERKNS_7XmpDataERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKNS_13XmpProperties7XmpLockE:
 1123|  3.32k|                                               const XmpProperties::XmpLock& lock) {
 1124|  3.32k|  const auto& nsBindings = xmpData.nsBindings();
 1125|  3.32k|  const auto binding = nsBindings.find(prefix);
 1126|  3.32k|  return binding != nsBindings.end() ? binding->second : XmpProperties::nsUnlocked(prefix, lock);
  ------------------
  |  Branch (1126:10): [True: 3.32k, False: 0]
  ------------------
 1127|  3.32k|}  // resolveNamespace
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|   980k|  explicit FindXmpdatum(const Exiv2::XmpKey& key) : key_(key.key()) {
  196|   980k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator5checkEPKcm:
   66|  4.82k|  static void check(const char* buf, size_t buflen) {
   67|  4.82k|    XMLValidator validator;
   68|  4.82k|    validator.check_internal(buf, buflen);
   69|  4.82k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidatorC2Ev:
   77|  4.82k|  XMLValidator() : parser_(XML_ParserCreateNS(nullptr, '@')) {
   78|  4.82k|    if (!parser_) {
  ------------------
  |  Branch (78:9): [True: 0, False: 4.82k]
  ------------------
   79|      0|      throw Error(ErrorCode::kerXMPToolkitError, "Could not create expat parser");
   80|      0|    }
   81|  4.82k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator14check_internalEPKcm:
  102|  4.82k|  void check_internal(const char* buf, size_t buflen) {
  103|  4.82k|    if (buflen > static_cast<size_t>(std::numeric_limits<int>::max())) {
  ------------------
  |  Branch (103:9): [True: 0, False: 4.82k]
  ------------------
  104|      0|      throw Error(ErrorCode::kerXMPToolkitError, "Buffer length is greater than INT_MAX");
  105|      0|    }
  106|       |
  107|  4.82k|    XML_SetUserData(parser_, this);
  108|  4.82k|    XML_SetElementHandler(parser_, startElement_cb, endElement_cb);
  109|  4.82k|    XML_SetNamespaceDeclHandler(parser_, startNamespace_cb, endNamespace_cb);
  110|  4.82k|    XML_SetStartDoctypeDeclHandler(parser_, startDTD_cb);
  111|       |
  112|  4.82k|    if (XML_Parse(parser_, buf, static_cast<int>(buflen), true) == XML_STATUS_ERROR) {
  ------------------
  |  Branch (112:9): [True: 1.70k, False: 3.11k]
  ------------------
  113|  1.70k|      setError(XML_ErrorString(XML_GetErrorCode(parser_)));
  114|  1.70k|    }
  115|       |
  116|  4.82k|    if (haserror_) {
  ------------------
  |  Branch (116:9): [True: 1.70k, False: 3.11k]
  ------------------
  117|  1.70k|      throw XMP_Error(kXMPErr_BadXML, "Error in XMLValidator");
  118|  1.70k|    }
  119|  4.82k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator15startElement_cbEPvPKcPS3_:
  158|  34.5k|  static void XMLCALL startElement_cb(void* userData, const XML_Char* name, const XML_Char** attrs) noexcept {
  159|  34.5k|    static_cast<XMLValidator*>(userData)->startElement(name, attrs);
  160|  34.5k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator12startElementEPKcPS2_:
  121|  34.5k|  void startElement(const XML_Char*, const XML_Char**) noexcept {
  122|  34.5k|    if (element_depth_ > max_recursion_limit_) {
  ------------------
  |  Branch (122:9): [True: 2.70k, False: 31.8k]
  ------------------
  123|  2.70k|      setError("Too deeply nested");
  124|  2.70k|    }
  125|  34.5k|    ++element_depth_;
  126|  34.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|  22.2k|  static void XMLCALL startNamespace_cb(void* userData, const XML_Char* prefix, const XML_Char* uri) noexcept {
  171|  22.2k|    static_cast<XMLValidator*>(userData)->startNamespace(prefix, uri);
  172|  22.2k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator14startNamespaceEPKcS2_:
  136|  22.2k|  void startNamespace(const XML_Char*, const XML_Char*) noexcept {
  137|  22.2k|    if (namespace_depth_ > max_recursion_limit_) {
  ------------------
  |  Branch (137:9): [True: 252, False: 21.9k]
  ------------------
  138|    252|      setError("Too deeply nested");
  139|    252|    }
  140|  22.2k|    ++namespace_depth_;
  141|  22.2k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator15endNamespace_cbEPvPKc:
  176|  10.2k|  static void XMLCALL endNamespace_cb(void* userData, const XML_Char* prefix) noexcept {
  177|  10.2k|    static_cast<XMLValidator*>(userData)->endNamespace(prefix);
  178|  10.2k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator12endNamespaceEPKc:
  143|  10.2k|  void endNamespace(const XML_Char*) noexcept {
  144|  10.2k|    if (namespace_depth_ > 0) {
  ------------------
  |  Branch (144:9): [True: 10.2k, False: 0]
  ------------------
  145|  10.2k|      --namespace_depth_;
  146|  10.2k|    } else {
  147|      0|      setError("Negative depth");
  148|      0|    }
  149|  10.2k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator11startDTD_cbEPvPKcS3_S3_i:
  181|     12|                                  const XML_Char* pubid, int has_internal_subset) noexcept {
  182|     12|    static_cast<XMLValidator*>(userData)->startDTD(doctypeName, sysid, pubid, has_internal_subset);
  183|     12|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator8startDTDEPKcS2_S2_i:
  151|     12|  void startDTD(const XML_Char*, const XML_Char*, const XML_Char*, int) noexcept {
  152|       |    // DOCTYPE is used for XXE attacks.
  153|     12|    setError("DOCTYPE not supported");
  154|     12|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator8setErrorEPKc:
   87|  4.67k|  void setError(const char* msg) {
   88|  4.67k|    const XML_Size errlinenum = XML_GetCurrentLineNumber(parser_);
   89|  4.67k|    const XML_Size errcolnum = XML_GetCurrentColumnNumber(parser_);
   90|  4.67k|#ifndef SUPPRESS_WARNINGS
   91|  4.67k|    EXV_INFO << "Invalid XML at line " << errlinenum << ", column " << errcolnum << ": " << msg << "\n";
  ------------------
  |  |  134|  4.67k|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 4.67k]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|  4.67k|  LogMsg(LogMsg::info).os()
  ------------------
   92|  4.67k|#endif
   93|       |    // If this is the first error, then save it.
   94|  4.67k|    if (!haserror_) {
  ------------------
  |  Branch (94:9): [True: 1.70k, False: 2.97k]
  ------------------
   95|  1.70k|      haserror_ = true;
   96|  1.70k|      errmsg_ = msg;
   97|  1.70k|      errlinenum_ = errlinenum;
   98|  1.70k|      errcolnum_ = errcolnum;
   99|  1.70k|    }
  100|  4.67k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidatorD2Ev:
   83|  4.82k|  ~XMLValidator() {
   84|  4.82k|    XML_ParserFree(parser_);
   85|  4.82k|  }
xmp.cpp:_ZN12_GLOBAL__N_19xmpStructEj:
  953|    499|Exiv2::XmpValue::XmpStruct xmpStruct(XMP_OptionBits opt) {
  954|    499|  Exiv2::XmpValue::XmpStruct var(Exiv2::XmpValue::xsNone);
  955|    499|  if (XMP_PropIsStruct(opt)) {
  ------------------
  |  Branch (955:7): [True: 341, False: 158]
  ------------------
  956|    341|    var = Exiv2::XmpValue::xsStruct;
  957|    341|  }
  958|    499|  return var;
  959|    499|}
xmp.cpp:_ZN12_GLOBAL__N_118xmpArrayOptionBitsEN5Exiv28XmpValue9XmpStructE:
  961|  3.25k|XMP_OptionBits xmpArrayOptionBits(Exiv2::XmpValue::XmpStruct xs) {
  962|  3.25k|  XMP_OptionBits var(0);
  963|  3.25k|  switch (xs) {
  ------------------
  |  Branch (963:11): [True: 3.25k, False: 0]
  ------------------
  964|  3.13k|    case Exiv2::XmpValue::xsNone:
  ------------------
  |  Branch (964:5): [True: 3.13k, False: 123]
  ------------------
  965|  3.13k|      break;
  966|    123|    case Exiv2::XmpValue::xsStruct:
  ------------------
  |  Branch (966:5): [True: 123, False: 3.13k]
  ------------------
  967|    123|      XMP_SetOption(var, kXMP_PropValueIsStruct);
  968|    123|      break;
  969|  3.25k|  }
  970|  3.25k|  return var;
  971|  3.25k|}
xmp.cpp:_ZN12_GLOBAL__N_116arrayValueTypeIdEj:
  973|  1.21k|Exiv2::TypeId arrayValueTypeId(XMP_OptionBits opt) {
  974|  1.21k|  Exiv2::TypeId typeId(Exiv2::invalidTypeId);
  975|  1.21k|  if (XMP_PropIsArray(opt)) {
  ------------------
  |  Branch (975:7): [True: 873, False: 341]
  ------------------
  976|    873|    if (XMP_ArrayIsAlternate(opt))
  ------------------
  |  Branch (976:9): [True: 36, False: 837]
  ------------------
  977|     36|      typeId = Exiv2::xmpAlt;
  978|    837|    else if (XMP_ArrayIsOrdered(opt))
  ------------------
  |  Branch (978:14): [True: 697, False: 140]
  ------------------
  979|    697|      typeId = Exiv2::xmpSeq;
  980|    140|    else if (XMP_ArrayIsUnordered(opt))
  ------------------
  |  Branch (980:14): [True: 140, False: 0]
  ------------------
  981|    140|      typeId = Exiv2::xmpBag;
  982|    873|  }
  983|  1.21k|  return typeId;
  984|  1.21k|}
xmp.cpp:_ZN12_GLOBAL__N_112xmpArrayTypeEj:
  986|    499|Exiv2::XmpValue::XmpArrayType xmpArrayType(XMP_OptionBits opt) {
  987|    499|  return Exiv2::XmpValue::xmpArrayType(arrayValueTypeId(opt));
  988|    499|}
xmp.cpp:_ZN12_GLOBAL__N_118xmpArrayOptionBitsEN5Exiv28XmpValue12XmpArrayTypeE:
  990|  3.25k|XMP_OptionBits xmpArrayOptionBits(Exiv2::XmpValue::XmpArrayType xat) {
  991|  3.25k|  XMP_OptionBits var(0);
  992|  3.25k|  switch (xat) {
  ------------------
  |  Branch (992:11): [True: 3.25k, False: 0]
  ------------------
  993|  2.93k|    case Exiv2::XmpValue::xaNone:
  ------------------
  |  Branch (993:5): [True: 2.93k, False: 328]
  ------------------
  994|  2.93k|      break;
  995|     13|    case Exiv2::XmpValue::xaAlt:
  ------------------
  |  Branch (995:5): [True: 13, False: 3.24k]
  ------------------
  996|     13|      XMP_SetOption(var, kXMP_PropValueIsArray);
  997|     13|      XMP_SetOption(var, kXMP_PropArrayIsAlternate);
  998|     13|      break;
  999|    266|    case Exiv2::XmpValue::xaSeq:
  ------------------
  |  Branch (999:5): [True: 266, False: 2.99k]
  ------------------
 1000|    266|      XMP_SetOption(var, kXMP_PropValueIsArray);
 1001|    266|      XMP_SetOption(var, kXMP_PropArrayIsOrdered);
 1002|    266|      break;
 1003|     49|    case Exiv2::XmpValue::xaBag:
  ------------------
  |  Branch (1003:5): [True: 49, False: 3.20k]
  ------------------
 1004|     49|      XMP_SetOption(var, kXMP_PropValueIsArray);
 1005|     49|      break;
 1006|  3.25k|  }
 1007|  3.25k|  return var;
 1008|  3.25k|}
xmp.cpp:_ZN12_GLOBAL__N_119xmpFormatOptionBitsEN5Exiv29XmpParser14XmpFormatFlagsE:
 1014|    247|XMP_OptionBits xmpFormatOptionBits(Exiv2::XmpParser::XmpFormatFlags flags) {
 1015|    247|  XMP_OptionBits var(0);
 1016|    247|  if (flags & Exiv2::XmpParser::omitPacketWrapper)
  ------------------
  |  Branch (1016:7): [True: 0, False: 247]
  ------------------
 1017|      0|    var |= kXMP_OmitPacketWrapper;
 1018|    247|  if (flags & Exiv2::XmpParser::readOnlyPacket)
  ------------------
  |  Branch (1018:7): [True: 0, False: 247]
  ------------------
 1019|      0|    var |= kXMP_ReadOnlyPacket;
 1020|    247|  if (flags & Exiv2::XmpParser::useCompactFormat)
  ------------------
  |  Branch (1020:7): [True: 247, False: 0]
  ------------------
 1021|    247|    var |= kXMP_UseCompactFormat;
 1022|    247|  if (flags & Exiv2::XmpParser::includeThumbnailPad)
  ------------------
  |  Branch (1022:7): [True: 0, False: 247]
  ------------------
 1023|      0|    var |= kXMP_IncludeThumbnailPad;
 1024|    247|  if (flags & Exiv2::XmpParser::exactPacketLength)
  ------------------
  |  Branch (1024:7): [True: 0, False: 247]
  ------------------
 1025|      0|    var |= kXMP_ExactPacketLength;
 1026|    247|  if (flags & Exiv2::XmpParser::writeAliasComments)
  ------------------
  |  Branch (1026:7): [True: 0, False: 247]
  ------------------
 1027|      0|    var |= kXMP_WriteAliasComments;
 1028|    247|  if (flags & Exiv2::XmpParser::omitAllFormatting)
  ------------------
  |  Branch (1028:7): [True: 45, False: 202]
  ------------------
 1029|     45|    var |= kXMP_OmitAllFormatting;
 1030|    247|  return var;
 1031|    247|}
xmp.cpp:_ZN12_GLOBAL__N_19printNodeERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_S8_j:
 1089|  22.3k|void printNode(const std::string&, const std::string&, const std::string&, XMP_OptionBits) {
 1090|  22.3k|}
_ZN5Exiv28Xmpdatum4ImplD2Ev:
  244|  80.2k|  ~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|    655|XmpSidecar::XmpSidecar(BasicIo::UniquePtr io, bool create) : Image(ImageType::xmp, mdXmp, std::move(io)) {
   30|    655|  if (create && io_->open() == 0) {
  ------------------
  |  Branch (30:7): [True: 0, False: 655]
  |  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|    655|}  // XmpSidecar::XmpSidecar
_ZN5Exiv210XmpSidecar12readMetadataEv:
   45|    655|void XmpSidecar::readMetadata() {
   46|       |#ifdef EXIV2_DEBUG_MESSAGES
   47|       |  std::cerr << "Reading XMP file " << io_->path() << "\n";
   48|       |#endif
   49|    655|  if (io_->open() != 0) {
  ------------------
  |  Branch (49:7): [True: 0, False: 655]
  ------------------
   50|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   51|      0|  }
   52|    655|  IoCloser closer(*io_);
   53|       |  // Ensure that this is the correct image type
   54|    655|  if (!isXmpType(*io_, false)) {
  ------------------
  |  Branch (54:7): [True: 0, False: 655]
  ------------------
   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|    655|  std::string xmpPacket;
   61|    655|  const long len = 64 * 1024;
   62|    655|  auto buf = std::make_unique<byte[]>(len);
   63|  1.40k|  while (auto l = io_->read(buf.get(), len)) {
  ------------------
  |  Branch (63:15): [True: 750, False: 655]
  ------------------
   64|    750|    xmpPacket.append(reinterpret_cast<char*>(buf.get()), l);
   65|    750|  }
   66|    655|  if (io_->error())
  ------------------
  |  Branch (66:7): [True: 0, False: 655]
  ------------------
   67|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
   68|    655|  clearMetadata();
   69|    655|  xmpPacket_ = std::move(xmpPacket);
   70|    655|  if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_)) {
  ------------------
  |  Branch (70:7): [True: 654, False: 1]
  |  Branch (70:30): [True: 105, False: 549]
  ------------------
   71|    105|#ifndef SUPPRESS_WARNINGS
   72|    105|    EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|    105|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 105]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    105|  LogMsg(LogMsg::warn).os()
  ------------------
   73|    105|#endif
   74|    105|  }
   75|       |
   76|       |  // #1112 - store dates to deal with loss of TZ information during conversions
   77|    655|  for (const auto& xmp : xmpData_) {
  ------------------
  |  Branch (77:24): [True: 511, False: 655]
  ------------------
   78|    511|    std::string key(xmp.key());
   79|    511|    if (Internal::contains(key, "Date")) {
  ------------------
  |  Branch (79:9): [True: 206, False: 305]
  ------------------
   80|    206|      dates_[key] = xmp.value().toString();
   81|    206|    }
   82|    511|  }
   83|       |
   84|    655|  copyXmpToIptc(xmpData_, iptcData_);
   85|    655|  copyXmpToExif(xmpData_, exifData_);
   86|    655|}  // XmpSidecar::readMetadata
_ZN5Exiv214newXmpInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  152|    655|Image::UniquePtr newXmpInstance(BasicIo::UniquePtr io, bool create) {
  153|    655|  auto image = std::make_unique<XmpSidecar>(std::move(io), create);
  154|    655|  if (!image->good()) {
  ------------------
  |  Branch (154:7): [True: 0, False: 655]
  ------------------
  155|      0|    return nullptr;
  156|      0|  }
  157|    655|  return image;
  158|    655|}
_ZN5Exiv29isXmpTypeERNS_7BasicIoEb:
  160|  12.7k|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|  12.7k|  const int32_t len = 80;
  169|  12.7k|  byte buf[len];
  170|  12.7k|  iIo.read(buf, xmlHdrCnt + 1);
  171|  12.7k|  if (iIo.eof() && 0 == strncmp(reinterpret_cast<const char*>(buf), xmlHeader, xmlHdrCnt)) {
  ------------------
  |  Branch (171:7): [True: 81, False: 12.7k]
  |  Branch (171:20): [True: 3, False: 78]
  ------------------
  172|      3|    return true;
  173|      3|  }
  174|  12.7k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (174:7): [True: 0, False: 12.7k]
  |  Branch (174:22): [True: 78, False: 12.7k]
  ------------------
  175|     78|    return false;
  176|     78|  }
  177|  12.7k|  iIo.read(buf + xmlHdrCnt + 1, len - xmlHdrCnt - 1);
  178|  12.7k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (178:7): [True: 0, False: 12.7k]
  |  Branch (178:22): [True: 29, False: 12.6k]
  ------------------
  179|     29|    return false;
  180|     29|  }
  181|       |  // Skip leading BOM
  182|  12.6k|  int32_t start = 0;
  183|  12.6k|  if (0 == strncmp(reinterpret_cast<const char*>(buf), "\xef\xbb\xbf", 3)) {
  ------------------
  |  Branch (183:7): [True: 258, False: 12.4k]
  ------------------
  184|    258|    start = 3;
  185|    258|  }
  186|  12.6k|  bool rc = false;
  187|  12.6k|  std::string head(reinterpret_cast<const char*>(buf + start), len - start);
  188|  12.6k|  if (head.starts_with("<?xml")) {
  ------------------
  |  Branch (188:7): [True: 41, False: 12.6k]
  ------------------
  189|       |    // Forward to the next tag
  190|     41|    auto it = std::find(head.begin() + 5, head.end(), '<');
  191|     41|    if (it != head.end())
  ------------------
  |  Branch (191:9): [True: 31, False: 10]
  ------------------
  192|     31|      head = head.substr(std::distance(head.begin(), it));
  193|     41|  }
  194|  12.6k|  if (head.starts_with("<?xpacket") || head.starts_with("<x:xmpmeta")) {
  ------------------
  |  Branch (194:7): [True: 42, False: 12.6k]
  |  Branch (194:40): [True: 1.92k, False: 10.7k]
  ------------------
  195|  1.96k|    rc = true;
  196|  1.96k|  }
  197|  12.6k|  if (!advance || !rc) {
  ------------------
  |  Branch (197:7): [True: 12.6k, False: 0]
  |  Branch (197:19): [True: 0, False: 0]
  ------------------
  198|  12.6k|    iIo.seek(-(len - start), BasicIo::cur);  // Swallow the BOM
  199|  12.6k|  }
  200|  12.6k|  return rc;
  201|  12.7k|}

XMP_NewExpatAdapter:
   68|  3.11k|{
   69|  3.11k|	return new ExpatAdapter;
   70|  3.11k|}	// XMP_NewExpatAdapter
_ZN12ExpatAdapterC2Ev:
   74|  3.11k|ExpatAdapter::ExpatAdapter() : parser(0)
   75|  3.11k|{
   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.11k|	this->parser = XML_ParserCreateNS ( 0, FullNameSeparator );
  ------------------
  |  |   33|  3.11k|#define FullNameSeparator	'@'
  ------------------
   85|  3.11k|	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.11k]
  ------------------
   86|       |	
   87|  3.11k|	XML_SetUserData ( this->parser, this );
   88|       |	
   89|  3.11k|	XML_SetNamespaceDeclHandler ( this->parser, StartNamespaceDeclHandler, EndNamespaceDeclHandler );
   90|  3.11k|	XML_SetElementHandler ( this->parser, StartElementHandler, EndElementHandler );
   91|       |
   92|  3.11k|	XML_SetCharacterDataHandler ( this->parser, CharacterDataHandler );
   93|  3.11k|	XML_SetCdataSectionHandler ( this->parser, StartCdataSectionHandler, EndCdataSectionHandler );
   94|       |
   95|  3.11k|	XML_SetProcessingInstructionHandler ( this->parser, ProcessingInstructionHandler );
   96|  3.11k|	XML_SetCommentHandler ( this->parser, CommentHandler );
   97|       |
   98|  3.11k|	#if BanAllEntityUsage
   99|  3.11k|		XML_SetStartDoctypeDeclHandler ( this->parser, StartDoctypeDeclHandler );
  100|  3.11k|		isAborted = false;
  101|  3.11k|	#endif
  102|       |
  103|  3.11k|	this->parseStack.push_back ( &this->tree );	// Push the XML root node.
  104|       |
  105|  3.11k|}	// ExpatAdapter::ExpatAdapter
_ZN12ExpatAdapterD2Ev:
  110|  3.11k|{
  111|       |
  112|  3.11k|	if ( this->parser != 0 ) XML_ParserFree ( this->parser );
  ------------------
  |  Branch (112:7): [True: 3.11k, False: 0]
  ------------------
  113|  3.11k|	this->parser = 0;
  114|       |
  115|  3.11k|}	// ExpatAdapter::~ExpatAdapter
_ZN12ExpatAdapter11ParseBufferEPKvmb:
  126|  3.12k|{
  127|  3.12k|	enum XML_Status status;
  128|       |	
  129|  3.12k|	if ( length == 0 ) {	// Expat does not like empty buffers.
  ------------------
  |  Branch (129:7): [True: 0, False: 3.12k]
  ------------------
  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.12k|	status = XML_Parse ( this->parser, (const char *)buffer, length, last );
  136|       |	
  137|  3.12k|	#if BanAllEntityUsage
  138|  3.12k|		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.12k]
  ------------------
  139|  3.12k|	#endif
  140|       |
  141|  3.12k|	if ( status != XML_STATUS_OK ) {
  ------------------
  |  Branch (141:7): [True: 5, False: 3.11k]
  ------------------
  142|       |	
  143|      5|		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|      5|		XMP_Throw ( errMsg, kXMPErr_BadXML );
  ------------------
  |  |  199|      5|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  167|       |
  168|      0|	}
  169|       |	
  170|  3.12k|}	// ExpatAdapter::ParseBuffer
ExpatAdapter.cpp:_ZL25StartNamespaceDeclHandlerPvPKcS1_:
  242|  10.1k|{
  243|  10.1k|	IgnoreParam(userData);
  ------------------
  |  |  117|  10.1k|#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.1k|	if ( prefix == 0 ) prefix = "_dflt_";	// Have default namespace.
  ------------------
  |  Branch (252:7): [True: 15, False: 10.1k]
  ------------------
  253|  10.1k|	if ( uri == 0 ) return;	// Ignore, have xmlns:pre="", no URI to register.
  ------------------
  |  Branch (253:7): [True: 6, False: 10.1k]
  ------------------
  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.1k|	if ( XMP_LitMatch ( uri, "http://purl.org/dc/1.1/" ) ) uri = "http://purl.org/dc/elements/1.1/";
  ------------------
  |  |   96|  10.1k|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  |  |  ------------------
  |  |  |  Branch (96:28): [True: 137, False: 10.0k]
  |  |  ------------------
  ------------------
  263|  10.1k|	XMPMeta::RegisterNamespace ( uri, prefix );
  264|       |
  265|  10.1k|}	// StartNamespaceDeclHandler
ExpatAdapter.cpp:_ZL23EndNamespaceDeclHandlerPvPKc:
  270|  10.1k|{
  271|  10.1k|	IgnoreParam(userData);
  ------------------
  |  |  117|  10.1k|#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.1k|	if ( prefix == 0 ) prefix = "_dflt_";	// Have default namespace.
  ------------------
  |  Branch (277:7): [True: 15, False: 10.1k]
  ------------------
  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.1k|}	// 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|  47.5k|	for ( XMP_StringPtr* a = attrs; *a != 0; ++a ) ++attrCount;
  ------------------
  |  Branch (298:34): [True: 29.1k, 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|  32.9k|	for ( XMP_StringPtr* attr = attrs; *attr != 0; attr += 2 ) {
  ------------------
  |  Branch (320:37): [True: 14.5k, False: 18.3k]
  ------------------
  321|       |
  322|  14.5k|		XMP_StringPtr attrName = *attr;
  323|  14.5k|		XMP_StringPtr attrValue = *(attr+1);
  324|  14.5k|		XML_Node * attrNode = new XML_Node ( elemNode, "", kAttrNode );
  325|       |
  326|  14.5k|		SetQualName ( attrName, attrNode );
  327|  14.5k|		attrNode->value = attrValue;
  328|  14.5k|		if ( attrNode->name == "xml:lang" ) NormalizeLangValue ( &attrNode->value );
  ------------------
  |  Branch (328:8): [True: 428, False: 14.1k]
  ------------------
  329|  14.5k|		elemNode->attrs.push_back ( attrNode );
  330|       |
  331|  14.5k|	}
  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: 2.95k, False: 15.4k]
  ------------------
  337|  2.95k|		thiz->rootNode = elemNode;
  338|  2.95k|		++thiz->rootCount;
  339|  2.95k|	}
  340|       |	#if XMP_DebugBuild
  341|       |		++thiz->elemNesting;
  342|       |	#endif
  343|       |
  344|  18.3k|}	// StartElementHandler
ExpatAdapter.cpp:_ZL11SetQualNamePKcP8XML_Node:
  187|  32.9k|{
  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|  32.9k|	size_t sepPos = strlen(fullName);
  199|   407k|	for ( --sepPos; sepPos > 0; --sepPos ) {
  ------------------
  |  Branch (199:18): [True: 406k, False: 1.28k]
  ------------------
  200|   406k|		if ( fullName[sepPos] == FullNameSeparator ) break;
  ------------------
  |  |   33|   406k|#define FullNameSeparator	'@'
  ------------------
  |  Branch (200:8): [True: 31.6k, False: 374k]
  ------------------
  201|   406k|	}
  202|       |
  203|  32.9k|	if ( fullName[sepPos] == FullNameSeparator ) {
  ------------------
  |  |   33|  32.9k|#define FullNameSeparator	'@'
  ------------------
  |  Branch (203:7): [True: 31.6k, False: 1.28k]
  ------------------
  204|       |
  205|  31.6k|		XMP_StringPtr prefix;
  206|  31.6k|		XMP_StringLen prefixLen;
  207|  31.6k|		XMP_StringPtr localPart = fullName + sepPos + 1;
  208|       |
  209|  31.6k|		node->ns.assign ( fullName, sepPos );
  210|  31.6k|		if ( node->ns == "http://purl.org/dc/1.1/" ) node->ns = "http://purl.org/dc/elements/1.1/";
  ------------------
  |  Branch (210:8): [True: 372, False: 31.2k]
  ------------------
  211|       |
  212|  31.6k|		bool found = XMPMeta::GetNamespacePrefix ( node->ns.c_str(), &prefix, &prefixLen );
  213|  31.6k|		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: 31.6k]
  ------------------
  214|  31.6k|		node->nsPrefixLen = prefixLen;	// ! Includes the ':'.
  215|       |		
  216|  31.6k|		node->name = prefix;
  217|  31.6k|		node->name += localPart;
  218|       |
  219|  31.6k|	} else {
  220|       |
  221|  1.28k|		node->name = fullName;	// The name is not in a namespace.
  222|       |	
  223|  1.28k|		if ( node->parent->name == "rdf:Description" ) {
  ------------------
  |  Branch (223:8): [True: 290, False: 997]
  ------------------
  224|    290|			if ( node->name == "about" ) {
  ------------------
  |  Branch (224:9): [True: 61, False: 229]
  ------------------
  225|     61|				node->ns   = kXMP_NS_RDF;
  226|     61|				node->name = "rdf:about";
  227|     61|				node->nsPrefixLen = 4;	// ! Include the ':'.
  228|    229|			} else if ( node->name == "ID" ) {
  ------------------
  |  Branch (228:16): [True: 16, False: 213]
  ------------------
  229|     16|				node->ns   = kXMP_NS_RDF;
  230|     16|				node->name = "rdf:ID";
  231|     16|				node->nsPrefixLen = 4;	// ! Include the ':'.
  232|     16|			}
  233|    290|		}
  234|       |		
  235|  1.28k|	}
  236|       |
  237|  32.9k|}	// 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|  39.9k|{
  372|  39.9k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  373|       |	
  374|  39.9k|	if ( (cData == 0) || (len == 0) ) { cData = ""; len = 0; }
  ------------------
  |  Branch (374:7): [True: 0, False: 39.9k]
  |  Branch (374:23): [True: 0, False: 39.9k]
  ------------------
  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|  39.9k|	XML_Node * parentNode = thiz->parseStack.back();
  386|  39.9k|	XML_Node * cDataNode  = new XML_Node ( parentNode, "", kCDataNode );
  387|       |	
  388|  39.9k|	cDataNode->value.assign ( cData, len );
  389|  39.9k|	parentNode->content.push_back ( cDataNode );
  390|       |	
  391|  39.9k|}	// CharacterDataHandler
ExpatAdapter.cpp:_ZL28ProcessingInstructionHandlerPvPKcS1_:
  436|  1.75k|{
  437|  1.75k|	XMP_Assert ( target != 0 );
  ------------------
  |  |  142|  1.75k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  438|  1.75k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  439|       |
  440|  1.75k|	if ( ! XMP_LitMatch ( target, "xpacket" ) ) return;	// Ignore all PIs except the XMP packet wrapper.
  ------------------
  |  |   96|  1.75k|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  |  Branch (440:7): [True: 886, False: 871]
  ------------------
  441|    871|	if ( data == 0 ) data = "";
  ------------------
  |  Branch (441:7): [True: 0, False: 871]
  ------------------
  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|    871|	XML_Node * parentNode = thiz->parseStack.back();
  451|    871|	XML_Node * piNode  = new XML_Node ( parentNode, target, kPINode );
  452|       |	
  453|    871|	piNode->value.assign ( data );
  454|    871|	parentNode->content.push_back ( piNode );
  455|       |	
  456|    871|}	// ProcessingInstructionHandler

_Z10ProcessRDFP8XMP_NodeRK8XML_Nodej:
  624|  2.89k|{
  625|  2.89k|	IgnoreParam(options);
  ------------------
  |  |  117|  2.89k|#define IgnoreParam(p)	(void)p
  ------------------
  626|       |	
  627|  2.89k|	RDF_RDF ( xmpTree, rdfNode );
  628|       |
  629|  2.89k|}	// ProcessRDF
ParseRDF.cpp:_ZL7RDF_RDFP8XMP_NodeRK8XML_Node:
  646|  2.89k|{
  647|       |
  648|  2.89k|	if ( ! xmlNode.attrs.empty() ) XMP_Throw ( "Invalid attributes of rdf:RDF element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     21|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (648:7): [True: 21, False: 2.87k]
  ------------------
  649|  2.87k|	RDF_NodeElementList ( xmpTree, xmlNode, kIsTopLevel );
  650|       |
  651|  2.87k|}	// RDF_RDF
ParseRDF.cpp:_ZL19RDF_NodeElementListP8XMP_NodeRK8XML_Nodeb:
  663|  2.87k|{
  664|  2.87k|	XMP_Assert ( isTopLevel );
  ------------------
  |  |  142|  2.87k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  665|       |	
  666|  2.87k|	XML_cNodePos currChild = xmlParent.content.begin();	// *** Change these loops to the indexed pattern.
  667|  2.87k|	XML_cNodePos endChild  = xmlParent.content.end();
  668|       |
  669|  7.29k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (669:10): [True: 4.41k, False: 2.87k]
  ------------------
  670|  4.41k|		if ( (*currChild)->IsWhitespaceNode() ) continue;
  ------------------
  |  Branch (670:8): [True: 1.51k, False: 2.90k]
  ------------------
  671|  2.90k|		RDF_NodeElement ( xmpParent, **currChild, isTopLevel );
  672|  2.90k|	}
  673|       |
  674|  2.87k|}	// RDF_NodeElementList
ParseRDF.cpp:_ZL15RDF_NodeElementP8XMP_NodeRK8XML_Nodeb:
  694|  4.13k|{
  695|  4.13k|	RDFTermKind nodeTerm = GetRDFTermKind ( xmlNode.name );
  696|  4.13k|	if ( (nodeTerm != kRDFTerm_Description) && (nodeTerm != kRDFTerm_Other) ) {
  ------------------
  |  Branch (696:7): [True: 1.34k, False: 2.78k]
  |  Branch (696:45): [True: 3, False: 1.33k]
  ------------------
  697|      3|		XMP_Throw ( "Node element must be rdf:Description or typedNode", kXMPErr_BadRDF );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  698|      0|	}
  699|       |
  700|  4.12k|	if ( isTopLevel && (nodeTerm == kRDFTerm_Other) ) {
  ------------------
  |  Branch (700:7): [True: 2.90k, False: 1.22k]
  |  Branch (700:21): [True: 116, False: 2.78k]
  ------------------
  701|    116|		XMP_Throw ( "Top level typedNode not allowed", kXMPErr_BadXMP );
  ------------------
  |  |  199|    116|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  702|  4.01k|	} else {
  703|  4.01k|		RDF_NodeElementAttrs ( xmpParent, xmlNode, isTopLevel );
  704|  4.01k|		RDF_PropertyElementList ( xmpParent, xmlNode, isTopLevel );
  705|  4.01k|	}
  706|       |
  707|  4.12k|}	// RDF_NodeElement
ParseRDF.cpp:_ZL14GetRDFTermKindRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  264|  23.0k|{
  265|  23.0k|	RDFTermKind term = kRDFTerm_Other;
  266|       |
  267|       |	// Arranged to hopefully minimize the parse time for large XMP.
  268|       |
  269|  23.0k|	if ( (name.size() > 4) && (strncmp ( name.c_str(), "rdf:", 4 ) == 0) ) {
  ------------------
  |  Branch (269:7): [True: 22.9k, False: 82]
  |  Branch (269:28): [True: 9.33k, False: 13.6k]
  ------------------
  270|       |
  271|  9.33k|		if ( name == "rdf:li" ) {
  ------------------
  |  Branch (271:8): [True: 2.43k, False: 6.90k]
  ------------------
  272|  2.43k|			term = kRDFTerm_li;
  273|  6.90k|		} else if ( name == "rdf:parseType" ) {
  ------------------
  |  Branch (273:15): [True: 24, False: 6.87k]
  ------------------
  274|     24|			term = kRDFTerm_parseType;
  275|  6.87k|		} else if ( name == "rdf:Description" ) {
  ------------------
  |  Branch (275:15): [True: 2.78k, False: 4.08k]
  ------------------
  276|  2.78k|			term = kRDFTerm_Description;
  277|  4.08k|		} else if ( name == "rdf:about" ) {
  ------------------
  |  Branch (277:15): [True: 397, False: 3.69k]
  ------------------
  278|    397|			term = kRDFTerm_about;
  279|  3.69k|		} else if ( name == "rdf:resource" ) {
  ------------------
  |  Branch (279:15): [True: 4, False: 3.68k]
  ------------------
  280|      4|			term = kRDFTerm_resource;
  281|  3.68k|		} else if ( name == "rdf:RDF" ) {
  ------------------
  |  Branch (281:15): [True: 21, False: 3.66k]
  ------------------
  282|     21|			term = kRDFTerm_RDF;
  283|  3.66k|		} else if ( name == "rdf:ID" ) {
  ------------------
  |  Branch (283:15): [True: 235, False: 3.43k]
  ------------------
  284|    235|			term = kRDFTerm_ID;
  285|  3.43k|		} else if ( name == "rdf:nodeID" ) {
  ------------------
  |  Branch (285:15): [True: 32, False: 3.39k]
  ------------------
  286|     32|			term = kRDFTerm_nodeID;
  287|  3.39k|		} else if ( name == "rdf:datatype" ) {
  ------------------
  |  Branch (287:15): [True: 3, False: 3.39k]
  ------------------
  288|      3|			term = kRDFTerm_datatype;
  289|  3.39k|		} else if ( name == "rdf:aboutEach" ) {
  ------------------
  |  Branch (289:15): [True: 18, False: 3.37k]
  ------------------
  290|     18|			term = kRDFTerm_aboutEach;
  291|  3.37k|		} else if ( name == "rdf:aboutEachPrefix" ) {
  ------------------
  |  Branch (291:15): [True: 5, False: 3.37k]
  ------------------
  292|      5|			term = kRDFTerm_aboutEachPrefix;
  293|  3.37k|		} else if ( name == "rdf:bagID" ) {
  ------------------
  |  Branch (293:15): [True: 21, False: 3.35k]
  ------------------
  294|     21|			term = kRDFTerm_bagID;
  295|     21|		}
  296|       |
  297|  9.33k|	}
  298|       |
  299|  23.0k|	return term;
  300|       |
  301|  23.0k|}	// GetRDFTermKind
ParseRDF.cpp:_ZL20RDF_NodeElementAttrsP8XMP_NodeRK8XML_Nodeb:
  731|  4.01k|{
  732|  4.01k|	XMP_OptionBits exclusiveAttrs = 0;	// Used to detect attributes that are mutually exclusive.
  733|       |
  734|  4.01k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
  735|  4.01k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
  736|       |
  737|  14.2k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (737:10): [True: 10.5k, False: 3.66k]
  ------------------
  738|       |
  739|  10.5k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
  740|       |
  741|  10.5k|		switch ( attrTerm ) {
  742|       |
  743|     52|			case kRDFTerm_ID     :
  ------------------
  |  Branch (743:4): [True: 52, False: 10.4k]
  ------------------
  744|     70|			case kRDFTerm_nodeID :
  ------------------
  |  Branch (744:4): [True: 18, False: 10.5k]
  ------------------
  745|    465|			case kRDFTerm_about  :
  ------------------
  |  Branch (745:4): [True: 395, False: 10.1k]
  ------------------
  746|       |
  747|    465|				if ( exclusiveAttrs & kExclusiveAttrMask ) XMP_Throw ( "Mutally exclusive about, ID, nodeID attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (747:10): [True: 0, False: 465]
  ------------------
  748|    465|				exclusiveAttrs |= (1 << attrTerm);
  749|       |
  750|    465|				if ( isTopLevel && (attrTerm == kRDFTerm_about) ) {
  ------------------
  |  Branch (750:10): [True: 465, False: 0]
  |  Branch (750:24): [True: 395, False: 70]
  ------------------
  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|    395|					XMP_Assert ( xmpParent->parent == 0 );	// Must be the tree root node.
  ------------------
  |  |  142|    395|	#define XMP_Assert(c)	((void) 0)
  ------------------
  754|    395|					if ( xmpParent->name.empty() ) {
  ------------------
  |  Branch (754:11): [True: 395, False: 0]
  ------------------
  755|    395|						xmpParent->name = (*currAttr)->value;
  756|    395|					} 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|    395|				}
  760|       |
  761|    465|				break;
  762|       |
  763|  10.0k|			case kRDFTerm_Other :
  ------------------
  |  Branch (763:4): [True: 10.0k, False: 551]
  ------------------
  764|  10.0k|				AddChildNode ( xmpParent, **currAttr, (*currAttr)->value.c_str(), isTopLevel );
  765|  10.0k|				break;
  766|       |
  767|     86|			default :
  ------------------
  |  Branch (767:4): [True: 86, False: 10.4k]
  ------------------
  768|     86|				XMP_Throw ( "Invalid nodeElement attribute", kXMPErr_BadRDF );
  ------------------
  |  |  199|     86|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  769|       |
  770|  10.5k|		}
  771|       |
  772|  10.5k|	}
  773|       |
  774|  4.01k|}	// RDF_NodeElementAttrs
ParseRDF.cpp:_ZL12AddChildNodeP8XMP_NodeRK8XML_NodePKcb:
  362|  16.6k|{
  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|  16.6k|	if ( xmlNode.ns.empty() ) {
  ------------------
  |  Branch (370:7): [True: 214, False: 16.4k]
  ------------------
  371|    214|		XMP_Throw ( "XML namespace required for all elements and attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|    214|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  372|      0|	}
  373|       |		
  374|  16.4k|	XMP_StringPtr  childName    = xmlNode.name.c_str();
  375|  16.4k|	const bool     isArrayItem  = (xmlNode.name == "rdf:li");
  376|  16.4k|	const bool     isValueNode  = (xmlNode.name == "rdf:value");
  377|  16.4k|	XMP_OptionBits childOptions = 0;
  378|       |	
  379|  16.4k|	if ( isTopLevel ) {
  ------------------
  |  Branch (379:7): [True: 12.8k, False: 3.55k]
  ------------------
  380|       |
  381|       |		// Lookup the schema node, adjust the XMP parent pointer.
  382|  12.8k|		XMP_Assert ( xmpParent->parent == 0 );	// Incoming parent must be the tree root.
  ------------------
  |  |  142|  12.8k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  383|  12.8k|		XMP_Node * schemaNode = FindSchemaNode ( xmpParent, xmlNode.ns.c_str(), kXMP_CreateNodes );
  ------------------
  |  |  295|  12.8k|#define kXMP_CreateNodes	true
  ------------------
  384|  12.8k|		if ( schemaNode->options & kXMP_NewImplicitNode ) schemaNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  12.8k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
              		if ( schemaNode->options & kXMP_NewImplicitNode ) schemaNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  5.07k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (384:8): [True: 5.07k, False: 7.78k]
  ------------------
  385|       |			// *** Should use "opt &= ~flag" (no conditional), need runtime check for proper 32 bit code.
  386|  12.8k|		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.8k|		if ( sRegisteredAliasMap->find ( xmlNode.name ) != sRegisteredAliasMap->end() ) {
  ------------------
  |  Branch (389:8): [True: 0, False: 12.8k]
  ------------------
  390|      0|			childOptions |= kXMP_PropIsAlias;
  391|      0|			schemaNode->parent->options |= kXMP_PropHasAliases;
  392|      0|		}
  393|       |		
  394|  12.8k|	}
  395|       |
  396|       |	// Make sure that this is not a duplicate of a named node.
  397|  16.4k|	if ( ! (isArrayItem | isValueNode) ) {
  ------------------
  |  Branch (397:7): [True: 13.9k, False: 2.47k]
  ------------------
  398|  13.9k|		if ( FindChildNode ( xmpParent, childName, kXMP_ExistingOnly ) != 0 ) {
  ------------------
  |  |  296|  13.9k|#define kXMP_ExistingOnly	false
  ------------------
  |  Branch (398:8): [True: 4, False: 13.9k]
  ------------------
  399|      4|			XMP_Throw ( "Duplicate property or field node", kXMPErr_BadXMP );
  ------------------
  |  |  199|      4|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  400|      0|		}
  401|       |		
  402|  13.9k|	}
  403|       |	
  404|       |	// Add the new child to the XMP parent node.
  405|  16.4k|	XMP_Node * newChild = new XMP_Node ( xmpParent, childName, value, childOptions );
  406|  16.4k|	if ( (! isValueNode) || xmpParent->children.empty() ) {
  ------------------
  |  Branch (406:7): [True: 16.3k, False: 60]
  |  Branch (406:26): [True: 42, False: 18]
  ------------------
  407|  16.3k|		 xmpParent->children.push_back ( newChild );
  408|  16.3k|	} else {
  409|     30|		 xmpParent->children.insert ( xmpParent->children.begin(), newChild );
  410|     30|	}
  411|  16.4k|	if ( isValueNode ) {
  ------------------
  |  Branch (411:7): [True: 60, False: 16.3k]
  ------------------
  412|     60|		if ( isTopLevel || (! (xmpParent->options & kXMP_PropValueIsStruct)) ) XMP_Throw ( "Misplaced rdf:value element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     60|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (412:8): [True: 60, False: 0]
  |  Branch (412:22): [True: 0, False: 0]
  ------------------
  413|      0|		xmpParent->options |= kRDF_HasValueElem;
  414|      0|	}
  415|       |	
  416|  16.3k|	if ( isArrayItem ) {
  ------------------
  |  Branch (416:7): [True: 2.41k, False: 13.9k]
  ------------------
  417|  2.41k|		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: 2.40k]
  ------------------
  418|  2.40k|		newChild->name = kXMP_ArrayItemName;
  ------------------
  |  |  293|  2.40k|#define kXMP_ArrayItemName	"[]"
  ------------------
  419|       |		#if 0	// *** XMP_DebugBuild
  420|       |			newChild->_namePtr = newChild->name.c_str();
  421|       |		#endif
  422|  2.40k|	}
  423|       |	
  424|  16.3k|	return newChild;
  425|       |
  426|  16.3k|}	// AddChildNode
ParseRDF.cpp:_ZL23RDF_PropertyElementListP8XMP_NodeRK8XML_Nodeb:
  786|  3.66k|{
  787|  3.66k|	XML_cNodePos currChild = xmlParent.content.begin();
  788|  3.66k|	XML_cNodePos endChild  = xmlParent.content.end();
  789|       |
  790|  20.3k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (790:10): [True: 16.7k, False: 3.62k]
  ------------------
  791|  16.7k|		if ( (*currChild)->IsWhitespaceNode() ) continue;
  ------------------
  |  Branch (791:8): [True: 11.1k, False: 5.58k]
  ------------------
  792|  5.58k|		if ( (*currChild)->kind != kElemNode ) {
  ------------------
  |  Branch (792:8): [True: 34, False: 5.54k]
  ------------------
  793|     34|			XMP_Throw ( "Expected property element node not found", kXMPErr_BadRDF );
  ------------------
  |  |  199|     34|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  794|      0|		}
  795|  5.54k|		RDF_PropertyElement ( xmpParent, **currChild, isTopLevel );
  796|  5.54k|	}
  797|       |
  798|  3.66k|}	// RDF_PropertyElementList
ParseRDF.cpp:_ZL19RDF_PropertyElementP8XMP_NodeRK8XML_Nodeb:
  853|  5.54k|{
  854|  5.54k|	RDFTermKind nodeTerm = GetRDFTermKind ( xmlNode.name );
  855|  5.54k|	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.54k]
  ------------------
  856|       |	
  857|  5.54k|	if ( xmlNode.attrs.size() > 3 ) {
  ------------------
  |  Branch (857:7): [True: 133, False: 5.41k]
  ------------------
  858|       |
  859|       |		// Only an emptyPropertyElt can have more than 3 attributes.
  860|    133|		RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  861|       |
  862|  5.41k|	} 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.41k|		XML_cNodePos currAttr = xmlNode.attrs.begin();
  868|  5.41k|		XML_cNodePos endAttr  = xmlNode.attrs.end();
  869|  5.41k|		XMP_VarString * attrName = 0;
  870|       |
  871|  5.76k|		for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (871:11): [True: 718, False: 5.04k]
  ------------------
  872|    718|			attrName = &((*currAttr)->name);
  873|    718|			if ( (*attrName != "xml:lang") && (*attrName != "rdf:ID") ) break;
  ------------------
  |  Branch (873:9): [True: 460, False: 258]
  |  Branch (873:38): [True: 364, False: 96]
  ------------------
  874|    718|		}
  875|       |
  876|  5.41k|		if ( currAttr != endAttr ) {
  ------------------
  |  Branch (876:8): [True: 364, False: 5.04k]
  ------------------
  877|       |
  878|    364|			XMP_Assert ( attrName != 0 );
  ------------------
  |  |  142|    364|	#define XMP_Assert(c)	((void) 0)
  ------------------
  879|    364|			XMP_VarString& attrValue = (*currAttr)->value;
  880|       |
  881|    364|			if ( *attrName == "rdf:datatype" ) {
  ------------------
  |  Branch (881:9): [True: 0, False: 364]
  ------------------
  882|      0|				RDF_LiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  883|    364|			} else if ( *attrName != "rdf:parseType" ) {
  ------------------
  |  Branch (883:16): [True: 353, False: 11]
  ------------------
  884|    353|				RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  885|    353|			} 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|  5.04k|		} 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|  5.04k|			if ( xmlNode.content.empty() ) {
  ------------------
  |  Branch (900:9): [True: 1.37k, False: 3.67k]
  ------------------
  901|       |
  902|  1.37k|				RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  903|       |
  904|  3.67k|			} else {
  905|       |			
  906|  3.67k|				XML_cNodePos currChild = xmlNode.content.begin();
  907|  3.67k|				XML_cNodePos endChild  = xmlNode.content.end();
  908|       |
  909|  10.1k|				for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (909:13): [True: 7.70k, False: 2.43k]
  ------------------
  910|  7.70k|					if ( (*currChild)->kind != kCDataNode ) break;
  ------------------
  |  Branch (910:11): [True: 1.24k, False: 6.46k]
  ------------------
  911|  7.70k|				}
  912|       |				
  913|  3.67k|				if ( currChild == endChild ) {
  ------------------
  |  Branch (913:10): [True: 2.43k, False: 1.24k]
  ------------------
  914|  2.43k|					RDF_LiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  915|  2.43k|				} else {
  916|  1.24k|					RDF_ResourcePropertyElement ( xmpParent, xmlNode, isTopLevel );
  917|  1.24k|				}
  918|       |			
  919|  3.67k|			}
  920|       |
  921|  5.04k|		}
  922|       |		
  923|  5.41k|	}
  924|       |
  925|  5.54k|}	// RDF_PropertyElement
ParseRDF.cpp:_ZL21IsPropertyElementNameh:
  349|  5.54k|{
  350|       |
  351|  5.54k|	if 	( (term == kRDFTerm_Description) || IsOldTerm ( term ) ) return false;
  ------------------
  |  Branch (351:8): [True: 0, False: 5.54k]
  |  Branch (351:42): [True: 0, False: 5.54k]
  ------------------
  352|  5.54k|	return (! IsCoreSyntaxTerm ( term ));
  353|       |
  354|  5.54k|}	// IsPropertyElementName
ParseRDF.cpp:_ZL9IsOldTermh:
  333|  5.54k|{
  334|       |
  335|  5.54k|	if 	( (kRDFTerm_FirstOld <= term) && (term <= kRDFTerm_LastOld) ) return true;
  ------------------
  |  Branch (335:8): [True: 0, False: 5.54k]
  |  Branch (335:39): [True: 0, False: 0]
  ------------------
  336|  5.54k|	return false;
  337|       |
  338|  5.54k|}	// IsOldTerm
ParseRDF.cpp:_ZL16IsCoreSyntaxTermh:
  316|  5.54k|{
  317|       |
  318|  5.54k|	if 	( (kRDFTerm_FirstCore <= term) && (term <= kRDFTerm_LastCore) ) return true;
  ------------------
  |  Branch (318:8): [True: 2.43k, False: 3.11k]
  |  Branch (318:40): [True: 3, False: 2.43k]
  ------------------
  319|  5.54k|	return false;
  320|       |
  321|  5.54k|}	// IsCoreSyntaxTerm
ParseRDF.cpp:_ZL24RDF_EmptyPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1189|  1.85k|{
 1190|  1.85k|	bool hasPropertyAttrs = false;
 1191|  1.85k|	bool hasResourceAttr  = false;
 1192|  1.85k|	bool hasNodeIDAttr    = false;
 1193|  1.85k|	bool hasValueAttr     = false;
 1194|       |	
 1195|  1.85k|	const XML_Node * valueNode = 0;	// ! Can come from rdf:value or rdf:resource.
 1196|       |	
 1197|  1.85k|	if ( ! xmlNode.content.empty() ) XMP_Throw ( "Nested content not allowed with rdf:resource or property attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|     11|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1197:7): [True: 11, False: 1.84k]
  ------------------
 1198|       |	
 1199|       |	// First figure out what XMP this maps to and remember the XML node for a simple value.
 1200|       |	
 1201|  1.84k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
 1202|  1.84k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
 1203|       |
 1204|  3.29k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1204:10): [True: 1.45k, False: 1.84k]
  ------------------
 1205|       |
 1206|  1.45k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
 1207|       |
 1208|  1.45k|		switch ( attrTerm ) {
 1209|       |
 1210|     96|			case kRDFTerm_ID :
  ------------------
  |  Branch (1210:4): [True: 96, False: 1.35k]
  ------------------
 1211|       |				// Nothing to do.
 1212|     96|				break;
 1213|       |
 1214|      4|			case kRDFTerm_resource :
  ------------------
  |  Branch (1214:4): [True: 4, False: 1.45k]
  ------------------
 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|      8|			case kRDFTerm_nodeID :
  ------------------
  |  Branch (1221:4): [True: 8, False: 1.44k]
  ------------------
 1222|      8|				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: 8]
  ------------------
 1223|      8|				hasNodeIDAttr = true;
 1224|      8|				break;
 1225|       |
 1226|  1.34k|			case kRDFTerm_Other :
  ------------------
  |  Branch (1226:4): [True: 1.34k, False: 111]
  ------------------
 1227|  1.34k|				if ( (*currAttr)->name == "rdf:value" ) {
  ------------------
  |  Branch (1227:10): [True: 32, False: 1.31k]
  ------------------
 1228|     32|					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: 32]
  ------------------
 1229|     32|					hasValueAttr = true;
 1230|     32|					valueNode = *currAttr;
 1231|  1.31k|				} else if ( (*currAttr)->name != "xml:lang" ) {
  ------------------
  |  Branch (1231:17): [True: 1.23k, False: 82]
  ------------------
 1232|  1.23k|					hasPropertyAttrs = true;
 1233|  1.23k|				}
 1234|  1.34k|				break;
 1235|       |
 1236|  1.34k|			default :
  ------------------
  |  Branch (1236:4): [True: 3, False: 1.45k]
  ------------------
 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.45k|		}
 1241|       |
 1242|  1.45k|	}
 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.84k|	XMP_Node * childNode = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
 1249|  1.84k|	bool childIsStruct = false;
 1250|       |	
 1251|  1.84k|	if ( hasValueAttr | hasResourceAttr ) {
  ------------------
  |  Branch (1251:7): [True: 30, False: 1.81k]
  ------------------
 1252|     30|		childNode->value = valueNode->value;
 1253|     30|		if ( ! hasValueAttr ) childNode->options |= kXMP_PropValueIsURI;	// ! Might have both rdf:value and rdf:resource.
  ------------------
  |  Branch (1253:8): [True: 1, False: 29]
  ------------------
 1254|  1.81k|	} else if ( hasPropertyAttrs ) {
  ------------------
  |  Branch (1254:14): [True: 427, False: 1.38k]
  ------------------
 1255|    427|		childNode->options |= kXMP_PropValueIsStruct;
 1256|    427|		childIsStruct = true;
 1257|    427|	}
 1258|       |		
 1259|  1.84k|	currAttr = xmlNode.attrs.begin();
 1260|  1.84k|	endAttr  = xmlNode.attrs.end();
 1261|       |
 1262|  3.23k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1262:10): [True: 1.40k, False: 1.82k]
  ------------------
 1263|       |
 1264|  1.40k|		if ( *currAttr == valueNode ) continue;	// Skip the rdf:value or rdf:resource attribute holding the value.
  ------------------
  |  Branch (1264:8): [True: 30, False: 1.37k]
  ------------------
 1265|  1.37k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
 1266|       |
 1267|  1.37k|		switch ( attrTerm ) {
 1268|       |
 1269|     87|			case kRDFTerm_ID       :
  ------------------
  |  Branch (1269:4): [True: 87, False: 1.28k]
  ------------------
 1270|     93|			case kRDFTerm_nodeID   :
  ------------------
  |  Branch (1270:4): [True: 6, False: 1.37k]
  ------------------
 1271|     93|				break;	// Ignore all rdf:ID and rdf:nodeID attributes.w
 1272|       |				
 1273|      0|			case kRDFTerm_resource :
  ------------------
  |  Branch (1273:4): [True: 0, False: 1.37k]
  ------------------
 1274|      0|				AddQualifierNode ( childNode, **currAttr );
 1275|      0|				break;
 1276|       |
 1277|  1.28k|			case kRDFTerm_Other :
  ------------------
  |  Branch (1277:4): [True: 1.28k, False: 93]
  ------------------
 1278|  1.28k|				if ( (! childIsStruct) || (*currAttr)->name == "xml:lang" ) {
  ------------------
  |  Branch (1278:10): [True: 142, False: 1.14k]
  |  Branch (1278:31): [True: 26, False: 1.11k]
  ------------------
 1279|    168|					AddQualifierNode ( childNode, **currAttr );
 1280|  1.11k|				} else {
 1281|  1.11k|					AddChildNode ( childNode, **currAttr, (*currAttr)->value.c_str(), false );
 1282|  1.11k|				}
 1283|  1.28k|				break;
 1284|       |
 1285|      0|			default :
  ------------------
  |  Branch (1285:4): [True: 0, False: 1.37k]
  ------------------
 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.37k|		}
 1290|       |
 1291|  1.37k|	}
 1292|       |
 1293|  1.84k|}	// RDF_EmptyPropertyElement
ParseRDF.cpp:_ZL16AddQualifierNodeP8XMP_NodeRK8XML_Node:
  483|    368|{
  484|    368|	if ( attr.ns.empty() ) {
  ------------------
  |  Branch (484:7): [True: 1, False: 367]
  ------------------
  485|      1|		XMP_Throw ( "XML namespace required for all elements and attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  486|      0|	}
  487|       |	
  488|    367|	return AddQualifierNode ( xmpParent, attr.name, attr.value );
  489|       |
  490|    368|}	// AddQualifierNode
ParseRDF.cpp:_ZL16AddQualifierNodeP8XMP_NodeRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  435|    394|{
  436|       |
  437|       |	#if 0
  438|       |		cout << "AddQualifierNode, parent = " << xmpParent->name << ", name = " << name;
  439|       |		cout << ", value = \"" << value << '"' << endl;
  440|       |	#endif
  441|       |	
  442|    394|	const bool isLang = (name == "xml:lang");
  443|    394|	const bool isType = (name == "rdf:type");
  444|       |
  445|    394|	XMP_Node * newQual = 0;
  446|       |
  447|    394|		newQual = new XMP_Node ( xmpParent, name, value, kXMP_PropIsQualifier );
  448|       |
  449|    394|		if ( ! (isLang | isType) ) {
  ------------------
  |  Branch (449:8): [True: 91, False: 303]
  ------------------
  450|     91|			xmpParent->qualifiers.push_back ( newQual );
  451|    303|		} else if ( isLang ) {
  ------------------
  |  Branch (451:15): [True: 276, False: 27]
  ------------------
  452|    276|			if ( xmpParent->qualifiers.empty() ) {
  ------------------
  |  Branch (452:9): [True: 276, False: 0]
  ------------------
  453|    276|				xmpParent->qualifiers.push_back ( newQual );
  454|    276|			} else {
  455|      0|				xmpParent->qualifiers.insert ( xmpParent->qualifiers.begin(), newQual );
  456|      0|			}
  457|    276|			xmpParent->options |= kXMP_PropHasLang;
  458|    276|		} else {
  459|     27|			XMP_Assert ( isType );
  ------------------
  |  |  142|     27|	#define XMP_Assert(c)	((void) 0)
  ------------------
  460|     27|			if ( xmpParent->qualifiers.empty() ) {
  ------------------
  |  Branch (460:9): [True: 27, False: 0]
  ------------------
  461|     27|				xmpParent->qualifiers.push_back ( newQual );
  462|     27|			} 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|     27|			xmpParent->options |= kXMP_PropHasType;
  468|     27|		}
  469|       |
  470|    394|		xmpParent->options |= kXMP_PropHasQualifiers;
  471|       |
  472|    394|	return newQual;
  473|       |
  474|    394|}	// AddQualifierNode
ParseRDF.cpp:_ZL26RDF_LiteralPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1014|  2.43k|{
 1015|  2.43k|	XMP_Node * newChild = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
 1016|       |	
 1017|  2.43k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
 1018|  2.43k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
 1019|       |
 1020|  2.63k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1020:10): [True: 199, False: 2.43k]
  ------------------
 1021|    199|		XMP_VarString & attrName = (*currAttr)->name;
 1022|    199|		if ( attrName == "xml:lang" ) {
  ------------------
  |  Branch (1022:8): [True: 199, False: 0]
  ------------------
 1023|    199|			AddQualifierNode ( newChild, **currAttr );
 1024|    199|		} 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|    199|	}
 1030|       |	
 1031|  2.43k|	XML_cNodePos currChild = xmlNode.content.begin();
 1032|  2.43k|	XML_cNodePos endChild  = xmlNode.content.end();
 1033|  2.43k|	size_t      textSize  = 0;
 1034|       |
 1035|  6.45k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (1035:10): [True: 4.02k, False: 2.43k]
  ------------------
 1036|  4.02k|		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: 4.02k]
  ------------------
 1037|  4.02k|		textSize += (*currChild)->value.size();
 1038|  4.02k|	}
 1039|       |	
 1040|  2.43k|	newChild->value.reserve ( textSize );
 1041|       |
 1042|  6.45k|	for ( currChild = xmlNode.content.begin(); currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (1042:45): [True: 4.02k, False: 2.43k]
  ------------------
 1043|  4.02k|		newChild->value += (*currChild)->value;
 1044|  4.02k|	}
 1045|       |
 1046|       |	#if 0	// *** XMP_DebugBuild
 1047|       |		newChild->_valuePtr = newChild->value.c_str();
 1048|       |	#endif
 1049|       |	
 1050|  2.43k|}	// 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.24k|{
  943|  1.24k|	if ( isTopLevel && (xmlNode.name == "iX:changes") ) return;	// Strip old "punchcard" chaff.
  ------------------
  |  Branch (943:7): [True: 1.23k, False: 6]
  |  Branch (943:21): [True: 0, False: 1.23k]
  ------------------
  944|       |	
  945|  1.24k|	XMP_Node * newCompound = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
  946|       |	
  947|  1.24k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
  948|  1.24k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
  949|       |
  950|  1.24k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (950:10): [True: 1, False: 1.24k]
  ------------------
  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.24k|	XML_cNodePos currChild = xmlNode.content.begin();
  962|  1.24k|	XML_cNodePos endChild  = xmlNode.content.end();
  963|       |
  964|  3.65k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (964:10): [True: 3.65k, False: 2]
  ------------------
  965|  3.65k|		if ( ! (*currChild)->IsWhitespaceNode() ) break;
  ------------------
  |  Branch (965:8): [True: 1.24k, False: 2.41k]
  ------------------
  966|  3.65k|	}
  967|  1.24k|	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.24k]
  ------------------
  968|  1.24k|	if ( (*currChild)->kind != kElemNode ) XMP_Throw ( "Children of resource property element must be XML elements", kXMPErr_BadRDF );
  ------------------
  |  |  199|     15|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (968:7): [True: 15, False: 1.22k]
  ------------------
  969|       |
  970|  1.22k|	if ( (*currChild)->name == "rdf:Bag" ) {
  ------------------
  |  Branch (970:7): [True: 135, False: 1.09k]
  ------------------
  971|    135|		newCompound->options |= kXMP_PropValueIsArray;
  972|  1.09k|	} else if ( (*currChild)->name == "rdf:Seq" ) {
  ------------------
  |  Branch (972:14): [True: 773, False: 320]
  ------------------
  973|    773|		newCompound->options |= kXMP_PropValueIsArray | kXMP_PropArrayIsOrdered;
  974|    773|	} else if ( (*currChild)->name == "rdf:Alt" ) {
  ------------------
  |  Branch (974:14): [True: 290, False: 30]
  ------------------
  975|    290|		newCompound->options |= kXMP_PropValueIsArray | kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate;
  976|    290|	} else {
  977|     30|		newCompound->options |= kXMP_PropValueIsStruct;
  978|     30|		if ( (*currChild)->name != "rdf:Description" ) {
  ------------------
  |  Branch (978:8): [True: 28, False: 2]
  ------------------
  979|     28|			XMP_VarString typeName ( (*currChild)->ns );
  980|     28|			size_t        colonPos = (*currChild)->name.find_first_of(':');
  981|     28|			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: 27]
  ------------------
  982|     27|			typeName.append ( (*currChild)->name, colonPos, XMP_VarString::npos );
  983|     27|			AddQualifierNode ( newCompound, XMP_VarString("rdf:type"), typeName );
  984|     27|		}
  985|     30|	}
  986|       |
  987|  1.22k|	RDF_NodeElement ( newCompound, **currChild, kNotTopLevel );
  988|  1.22k|	if ( newCompound->options & kRDF_HasValueElem ) {
  ------------------
  |  Branch (988:7): [True: 0, False: 1.22k]
  ------------------
  989|      0|		FixupQualifiedNode ( newCompound );
  990|  1.22k|	} else if ( newCompound->options & kXMP_PropArrayIsAlternate ) {
  ------------------
  |  Branch (990:14): [True: 282, False: 945]
  ------------------
  991|    282|		DetectAltText ( newCompound );
  992|    282|	}
  993|       |
  994|  3.33k|	for ( ++currChild; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (994:21): [True: 2.13k, False: 1.20k]
  ------------------
  995|  2.13k|		if ( ! (*currChild)->IsWhitespaceNode() ) XMP_Throw ( "Invalid child of resource property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     25|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (995:8): [True: 25, False: 2.11k]
  ------------------
  996|  2.11k|	}
  997|       |
  998|  1.22k|}	// 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|  48.8k|{
  568|  48.8k|	UTF8Unit inUnit;	// ! Don't read until we know there is input.
  569|  48.8k|	size_t unitCount = 0;
  570|       |
  571|  48.8k|	UC_Assert ( (utf8In != 0) && (cpOut != 0) && (utf8Read != 0) );
  572|  48.8k|	if ( utf8Len == 0 ) goto Done;
  ------------------
  |  Branch (572:7): [True: 0, False: 48.8k]
  ------------------
  573|  48.8k|	inUnit = *utf8In;
  574|  48.8k|	if ( inUnit >= 0x80 ) goto MultiByte;	// ! Force linear execution path for ASCII.
  ------------------
  |  Branch (574:7): [True: 48.8k, 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|  48.8k|MultiByte:
  584|  48.8k|	CodePoint_from_UTF8_Multi ( utf8In, utf8Len, cpOut, utf8Read );
  585|  48.8k|	return;
  586|       |	
  587|      0|}	// CodePoint_from_UTF8
UnicodeConversions.cpp:_ZL25CodePoint_from_UTF8_MultiPKhmPjPm:
  516|  48.8k|{
  517|  48.8k|	UTF8Unit  inUnit = *utf8In;
  518|  48.8k|	size_t    unitCount = 0;
  519|  48.8k|	UTF32Unit cp;	// ! Avoid gcc complaints about declarations after goto's.
  520|  48.8k|	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|  48.8k|	size_t bytesNeeded = 0;	// Count the leading 1 bits in the first byte.
  535|   146k|	for ( UTF8Unit temp = inUnit; temp > 0x7F; temp = temp << 1 ) ++bytesNeeded;
  ------------------
  |  Branch (535:32): [True: 97.7k, False: 48.8k]
  ------------------
  536|       |		// *** Consider CPU-specific assembly inline, e.g. cntlzw on PowerPC.
  537|       |	
  538|  48.8k|	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: 48.8k]
  |  Branch (538:28): [True: 0, False: 48.8k]
  ------------------
  539|  48.8k|	if ( bytesNeeded > utf8Len ) goto Done;	// Not enough input in this buffer.
  ------------------
  |  Branch (539:7): [True: 0, False: 48.8k]
  ------------------
  540|  48.8k|	unitCount = bytesNeeded;
  541|       |	
  542|  48.8k|	cp = inUnit & ((1 << (7-unitCount)) - 1);	// Isolate the initial data bits in the bottom of cp.
  543|       |	
  544|  48.8k|	utf8Pos = utf8In + 1;	// We've absorbed the first byte.
  545|  97.7k|	for ( --bytesNeeded; bytesNeeded > 0; --bytesNeeded, ++utf8Pos ) {
  ------------------
  |  Branch (545:23): [True: 48.9k, False: 48.8k]
  ------------------
  546|  48.9k|		inUnit = *utf8Pos;
  547|  48.9k|		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: 48.9k]
  ------------------
  548|  48.9k|		cp = (cp << 6) | (inUnit & 0x3F);
  549|  48.9k|	}
  550|       |	
  551|  48.8k|	if ( cp >= 0xD800 ) {	// Skip the next comparisons most of the time.
  ------------------
  |  Branch (551:7): [True: 11, False: 48.8k]
  ------------------
  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|  48.8k|	*cpOut = cp;	// ! Don't put after Done, don't write if no input.
  557|       |	
  558|  48.8k|Done:	
  559|  48.8k|	*utf8Read = unitCount;
  560|  48.8k|	return;
  561|       |	
  562|  48.8k|}	// CodePoint_from_UTF8_Multi

XMPCore_Impl.cpp:_ZL19VerifySimpleXMLNamePKcS0_:
   87|  44.6k|{
   88|       |
   89|  44.6k|	const XMP_Uns8 * nameStart = (const XMP_Uns8 *) _nameStart;
   90|  44.6k|	const XMP_Uns8 * nameEnd   = (const XMP_Uns8 *) _nameEnd;
   91|  44.6k|	const XMP_Uns8 * namePos   = nameStart;
   92|  44.6k|	XMP_Uns32 cp;
   93|       |	
   94|       |	// The first character is more restricted.
   95|       |	
   96|  44.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: 44.6k]
  ------------------
   97|       |
   98|  44.6k|	cp = *namePos;
   99|  44.6k|	if ( cp < 0x80 ) {
  ------------------
  |  Branch (99:7): [True: 44.5k, False: 117]
  ------------------
  100|  44.5k|		++namePos;
  101|  44.5k|		if ( ! IsStartChar_ASCII(cp) ) goto NameError;
  ------------------
  |  Branch (101:8): [True: 0, False: 44.5k]
  ------------------
  102|  44.5k|	} else {
  103|    117|		cp = GetCodePoint ( &namePos );
  104|    117|		if ( ! IsStartChar_NonASCII(cp) ) goto NameError;
  ------------------
  |  Branch (104:8): [True: 0, False: 117]
  ------------------
  105|    117|	}
  106|       |
  107|       |	// Check the rest of the name.
  108|       |	
  109|  3.19M|	while ( namePos < nameEnd ) {
  ------------------
  |  Branch (109:10): [True: 3.15M, False: 44.6k]
  ------------------
  110|  3.15M|		cp = *namePos;
  111|  3.15M|		if ( cp < 0x80 ) {
  ------------------
  |  Branch (111:8): [True: 3.12M, False: 23.9k]
  ------------------
  112|  3.12M|			++namePos;
  113|  3.12M|			if ( (! IsStartChar_ASCII(cp)) && (! IsOtherChar_ASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (113:9): [True: 108k, False: 3.02M]
  |  Branch (113:38): [True: 0, False: 108k]
  ------------------
  114|  3.12M|		} else {
  115|  23.9k|			cp = GetCodePoint ( &namePos );
  116|  23.9k|			if ( (! IsStartChar_NonASCII(cp)) && (! IsOtherChar_NonASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (116:9): [True: 19.8k, False: 4.09k]
  |  Branch (116:41): [True: 0, False: 19.8k]
  ------------------
  117|  23.9k|		}
  118|  3.15M|	}
  119|       |
  120|  44.6k|	return;
  121|       |
  122|  44.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
XMPCore_Impl.cpp:_ZL17IsStartChar_ASCIIj:
   31|  3.17M|{
   32|       |	// ASCII starting characters for an XML name.
   33|  3.17M|	if ( (('a' <= cp) && (cp <= 'z')) || (('A' <= cp) && (cp <= 'Z')) || (cp == '_') ) return true;
  ------------------
  |  Branch (33:8): [True: 2.34M, False: 834k]
  |  Branch (33:23): [True: 2.34M, False: 0]
  |  Branch (33:40): [True: 725k, False: 108k]
  |  Branch (33:55): [True: 719k, False: 6.85k]
  |  Branch (33:71): [True: 6.85k, False: 108k]
  ------------------
   34|   108k|	return false;
   35|  3.17M|}
XMPCore_Impl.cpp:_ZL12GetCodePointPPKh:
   19|  24.0k|{
   20|  24.0k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  24.0k|	XMP_Uns32 cp;
   22|  24.0k|	size_t u8Len;
   23|  24.0k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  24.0k|	*utf8Str_io = u8Ptr + u8Len;
   25|  24.0k|	return cp;
   26|  24.0k|}
XMPCore_Impl.cpp:_ZL20IsStartChar_NonASCIIj:
   40|  24.0k|{
   41|       |	// Non-ASCII starting characters for an XML name.
   42|       |	
   43|  24.0k|	if ( ((0xC0 <= cp) && (cp <= 0xD6))  || ((0xD8 <= cp) && (cp <= 0xF6)) ) return true;
  ------------------
  |  Branch (43:8): [True: 4.27k, False: 19.7k]
  |  Branch (43:24): [True: 369, False: 3.90k]
  |  Branch (43:43): [True: 3.90k, False: 19.7k]
  |  Branch (43:59): [True: 511, False: 3.39k]
  ------------------
   44|  23.1k|	if ( ((0xF8 <= cp) && (cp <= 0x2FF)) || ((0x370 <= cp) && (cp <= 0x37D)) ) return true;
  ------------------
  |  Branch (44:8): [True: 3.39k, False: 19.7k]
  |  Branch (44:24): [True: 1.63k, False: 1.76k]
  |  Branch (44:43): [True: 1.70k, False: 19.8k]
  |  Branch (44:60): [True: 0, False: 1.70k]
  ------------------
   45|       |
   46|  21.5k|	if ( ((0x37F <= cp) && (cp <= 0x1FFF))  || ((0x200C <= cp) && (cp <= 0x200D)) ) return true;
  ------------------
  |  Branch (46:8): [True: 1.70k, False: 19.8k]
  |  Branch (46:25): [True: 1.69k, False: 10]
  |  Branch (46:46): [True: 10, False: 19.8k]
  |  Branch (46:64): [True: 0, False: 10]
  ------------------
   47|  19.8k|	if ( ((0x2070 <= cp) && (cp <= 0x218F)) || ((0x2C00 <= cp) && (cp <= 0x2FEF)) ) return true;
  ------------------
  |  Branch (47:8): [True: 10, False: 19.8k]
  |  Branch (47:26): [True: 0, False: 10]
  |  Branch (47:46): [True: 10, False: 19.8k]
  |  Branch (47:64): [True: 0, False: 10]
  ------------------
   48|  19.8k|	if ( ((0x3001 <= cp) && (cp <= 0xD7FF)) || ((0xF900 <= cp) && (cp <= 0xFDCF)) ) return true;
  ------------------
  |  Branch (48:8): [True: 10, False: 19.8k]
  |  Branch (48:26): [True: 10, False: 0]
  |  Branch (48:46): [True: 0, False: 19.8k]
  |  Branch (48:64): [True: 0, False: 0]
  ------------------
   49|  19.8k|	if ( ((0xFDF0 <= cp) && (cp <= 0xFFFD)) || ((0x10000 <= cp) && (cp <= 0xEFFFF)) ) return true;
  ------------------
  |  Branch (49:8): [True: 0, False: 19.8k]
  |  Branch (49:26): [True: 0, False: 0]
  |  Branch (49:46): [True: 0, False: 19.8k]
  |  Branch (49:65): [True: 0, False: 0]
  ------------------
   50|       |
   51|  19.8k|	return false;
   52|       |
   53|  19.8k|}
XMPCore_Impl.cpp:_ZL17IsOtherChar_ASCIIj:
   58|   108k|{
   59|       |	// ASCII following characters for an XML name.
   60|   108k|	if ( (('0' <= cp) && (cp <= '9')) || (cp == '-') || (cp == '.') ) return true;
  ------------------
  |  Branch (60:8): [True: 58.7k, False: 49.6k]
  |  Branch (60:23): [True: 58.7k, False: 0]
  |  Branch (60:39): [True: 42.9k, False: 6.69k]
  |  Branch (60:54): [True: 6.69k, False: 0]
  ------------------
   61|      0|	return false;
   62|   108k|}
XMPCore_Impl.cpp:_ZL20IsOtherChar_NonASCIIj:
   67|  19.8k|{
   68|       |	// Non-ASCII following characters for an XML name.
   69|  19.8k|	if ( (cp == 0xB7) || ((0x300 <= cp) && (cp <= 0x36F))  || ((0x203F <= cp) && (cp <= 0x2040)) ) return true;
  ------------------
  |  Branch (69:7): [True: 19.7k, False: 58]
  |  Branch (69:24): [True: 58, False: 0]
  |  Branch (69:41): [True: 58, False: 0]
  |  Branch (69:61): [True: 0, False: 0]
  |  Branch (69:79): [True: 0, False: 0]
  ------------------
   70|      0|	return false;
   71|  19.8k|}
XMPMeta-GetSet.cpp:_ZL12GetCodePointPPKh:
   19|  1.42k|{
   20|  1.42k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  1.42k|	XMP_Uns32 cp;
   22|  1.42k|	size_t u8Len;
   23|  1.42k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  1.42k|	*utf8Str_io = u8Ptr + u8Len;
   25|  1.42k|	return cp;
   26|  1.42k|}
XMPMeta.cpp:_ZL19VerifySimpleXMLNamePKcS0_:
   87|  10.2k|{
   88|       |
   89|  10.2k|	const XMP_Uns8 * nameStart = (const XMP_Uns8 *) _nameStart;
   90|  10.2k|	const XMP_Uns8 * nameEnd   = (const XMP_Uns8 *) _nameEnd;
   91|  10.2k|	const XMP_Uns8 * namePos   = nameStart;
   92|  10.2k|	XMP_Uns32 cp;
   93|       |	
   94|       |	// The first character is more restricted.
   95|       |	
   96|  10.2k|	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.2k]
  ------------------
   97|       |
   98|  10.2k|	cp = *namePos;
   99|  10.2k|	if ( cp < 0x80 ) {
  ------------------
  |  Branch (99:7): [True: 10.1k, False: 74]
  ------------------
  100|  10.1k|		++namePos;
  101|  10.1k|		if ( ! IsStartChar_ASCII(cp) ) goto NameError;
  ------------------
  |  Branch (101:8): [True: 0, False: 10.1k]
  ------------------
  102|  10.1k|	} else {
  103|     74|		cp = GetCodePoint ( &namePos );
  104|     74|		if ( ! IsStartChar_NonASCII(cp) ) goto NameError;
  ------------------
  |  Branch (104:8): [True: 0, False: 74]
  ------------------
  105|     74|	}
  106|       |
  107|       |	// Check the rest of the name.
  108|       |	
  109|  2.81M|	while ( namePos < nameEnd ) {
  ------------------
  |  Branch (109:10): [True: 2.80M, False: 10.2k]
  ------------------
  110|  2.80M|		cp = *namePos;
  111|  2.80M|		if ( cp < 0x80 ) {
  ------------------
  |  Branch (111:8): [True: 2.78M, False: 23.2k]
  ------------------
  112|  2.78M|			++namePos;
  113|  2.78M|			if ( (! IsStartChar_ASCII(cp)) && (! IsOtherChar_ASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (113:9): [True: 83.6k, False: 2.70M]
  |  Branch (113:38): [True: 0, False: 83.6k]
  ------------------
  114|  2.78M|		} else {
  115|  23.2k|			cp = GetCodePoint ( &namePos );
  116|  23.2k|			if ( (! IsStartChar_NonASCII(cp)) && (! IsOtherChar_NonASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (116:9): [True: 19.7k, False: 3.49k]
  |  Branch (116:41): [True: 0, False: 19.7k]
  ------------------
  117|  23.2k|		}
  118|  2.80M|	}
  119|       |
  120|  10.2k|	return;
  121|       |
  122|  10.2k|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|  2.79M|{
   32|       |	// ASCII starting characters for an XML name.
   33|  2.79M|	if ( (('a' <= cp) && (cp <= 'z')) || (('A' <= cp) && (cp <= 'Z')) || (cp == '_') ) return true;
  ------------------
  |  Branch (33:8): [True: 2.04M, False: 748k]
  |  Branch (33:23): [True: 2.04M, False: 0]
  |  Branch (33:40): [True: 664k, False: 83.6k]
  |  Branch (33:55): [True: 658k, False: 6.30k]
  |  Branch (33:71): [True: 6.30k, False: 83.6k]
  ------------------
   34|  83.6k|	return false;
   35|  2.79M|}
XMPMeta.cpp:_ZL12GetCodePointPPKh:
   19|  23.3k|{
   20|  23.3k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  23.3k|	XMP_Uns32 cp;
   22|  23.3k|	size_t u8Len;
   23|  23.3k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  23.3k|	*utf8Str_io = u8Ptr + u8Len;
   25|  23.3k|	return cp;
   26|  23.3k|}
XMPMeta.cpp:_ZL20IsStartChar_NonASCIIj:
   40|  23.3k|{
   41|       |	// Non-ASCII starting characters for an XML name.
   42|       |	
   43|  23.3k|	if ( ((0xC0 <= cp) && (cp <= 0xD6))  || ((0xD8 <= cp) && (cp <= 0xF6)) ) return true;
  ------------------
  |  Branch (43:8): [True: 3.58k, False: 19.7k]
  |  Branch (43:24): [True: 43, False: 3.54k]
  |  Branch (43:43): [True: 3.54k, False: 19.7k]
  |  Branch (43:59): [True: 425, False: 3.11k]
  ------------------
   44|  22.8k|	if ( ((0xF8 <= cp) && (cp <= 0x2FF)) || ((0x370 <= cp) && (cp <= 0x37D)) ) return true;
  ------------------
  |  Branch (44:8): [True: 3.11k, False: 19.7k]
  |  Branch (44:24): [True: 2.25k, False: 863]
  |  Branch (44:43): [True: 849, False: 19.7k]
  |  Branch (44:60): [True: 0, False: 849]
  ------------------
   45|       |
   46|  20.6k|	if ( ((0x37F <= cp) && (cp <= 0x1FFF))  || ((0x200C <= cp) && (cp <= 0x200D)) ) return true;
  ------------------
  |  Branch (46:8): [True: 849, False: 19.7k]
  |  Branch (46:25): [True: 804, False: 45]
  |  Branch (46:46): [True: 45, False: 19.7k]
  |  Branch (46:64): [True: 0, False: 45]
  ------------------
   47|  19.7k|	if ( ((0x2070 <= cp) && (cp <= 0x218F)) || ((0x2C00 <= cp) && (cp <= 0x2FEF)) ) return true;
  ------------------
  |  Branch (47:8): [True: 45, False: 19.7k]
  |  Branch (47:26): [True: 0, False: 45]
  |  Branch (47:46): [True: 45, False: 19.7k]
  |  Branch (47:64): [True: 0, False: 45]
  ------------------
   48|  19.7k|	if ( ((0x3001 <= cp) && (cp <= 0xD7FF)) || ((0xF900 <= cp) && (cp <= 0xFDCF)) ) return true;
  ------------------
  |  Branch (48:8): [True: 45, False: 19.7k]
  |  Branch (48:26): [True: 45, False: 0]
  |  Branch (48:46): [True: 0, False: 19.7k]
  |  Branch (48:64): [True: 0, False: 0]
  ------------------
   49|  19.7k|	if ( ((0xFDF0 <= cp) && (cp <= 0xFFFD)) || ((0x10000 <= cp) && (cp <= 0xEFFFF)) ) return true;
  ------------------
  |  Branch (49:8): [True: 0, False: 19.7k]
  |  Branch (49:26): [True: 0, False: 0]
  |  Branch (49:46): [True: 0, False: 19.7k]
  |  Branch (49:65): [True: 0, False: 0]
  ------------------
   50|       |
   51|  19.7k|	return false;
   52|       |
   53|  19.7k|}
XMPMeta.cpp:_ZL17IsOtherChar_ASCIIj:
   58|  83.6k|{
   59|       |	// ASCII following characters for an XML name.
   60|  83.6k|	if ( (('0' <= cp) && (cp <= '9')) || (cp == '-') || (cp == '.') ) return true;
  ------------------
  |  Branch (60:8): [True: 39.7k, False: 43.9k]
  |  Branch (60:23): [True: 39.7k, False: 0]
  |  Branch (60:39): [True: 41.2k, False: 2.68k]
  |  Branch (60:54): [True: 2.68k, False: 0]
  ------------------
   61|      0|	return false;
   62|  83.6k|}
XMPMeta.cpp:_ZL20IsOtherChar_NonASCIIj:
   67|  19.7k|{
   68|       |	// Non-ASCII following characters for an XML name.
   69|  19.7k|	if ( (cp == 0xB7) || ((0x300 <= cp) && (cp <= 0x36F))  || ((0x203F <= cp) && (cp <= 0x2040)) ) return true;
  ------------------
  |  Branch (69:7): [True: 19.7k, False: 14]
  |  Branch (69:24): [True: 14, False: 0]
  |  Branch (69:41): [True: 14, False: 0]
  |  Branch (69:61): [True: 0, False: 0]
  |  Branch (69:79): [True: 0, False: 0]
  ------------------
   70|      0|	return false;
   71|  19.7k|}

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

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.36k|{
   78|  3.36k|	XMP_ENTER_WRAPPER ( "WXMPMeta_CTor_1" )
  ------------------
  |  |  241|  3.36k|	AnnounceEntry ( proc );									\
  |  |  242|  3.36k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  3.36k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  3.36k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  3.36k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  3.36k|	try {													\
  |  |  245|  3.36k|		XMP_AutoMutex mutex;								\
  |  |  246|  3.36k|		wResult->errMessage = 0;
  ------------------
   79|       |
   80|  3.36k|		XMPMeta * xmpObj = new XMPMeta();
   81|  3.36k|		++xmpObj->clientRefs;
   82|  3.36k|		XMP_Assert ( xmpObj->clientRefs == 1 );
  ------------------
  |  |  142|  3.36k|	#define XMP_Assert(c)	((void) 0)
  ------------------
   83|  3.36k|		wResult->ptrResult = XMPMetaRef ( xmpObj );
   84|       |
   85|  3.36k|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|  3.36k|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|  3.36k|	} 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.36k|	AnnounceExit();
  ------------------
   86|  3.36k|}
WXMPMeta_DecrementRefCount_1:
  108|  3.36k|{
  109|  3.36k|	WXMP_Result * wResult = &void_wResult;	// ! Needed to "fool" the EnterWrapper macro.
  110|  3.36k|	XMP_ENTER_WRAPPER ( "WXMPMeta_DecrementRefCount_1" )
  ------------------
  |  |  241|  3.36k|	AnnounceEntry ( proc );									\
  |  |  242|  3.36k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  3.36k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  3.36k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  3.36k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  3.36k|	try {													\
  |  |  245|  3.36k|		XMP_AutoMutex mutex;								\
  |  |  246|  3.36k|		wResult->errMessage = 0;
  ------------------
  111|       |
  112|  3.36k|		XMPMeta * thiz = (XMPMeta*)xmpRef;
  113|       |		
  114|  3.36k|		XMP_Assert ( thiz->clientRefs > 0 );
  ------------------
  |  |  142|  3.36k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  115|  3.36k|		--thiz->clientRefs;
  116|  3.36k|		if ( thiz->clientRefs <= 0 ) delete ( thiz );
  ------------------
  |  Branch (116:8): [True: 3.36k, False: 0]
  ------------------
  117|       |
  118|  3.36k|	XMP_EXIT_WRAPPER_NO_THROW
  ------------------
  |  |  258|  3.36k|	} catch ( ... )	{							\
  |  |  259|      0|		AnnounceCatch ( "no-throw catch-all" );	\
  |  |  260|      0|		/* Do nothing. */						\
  |  |  261|      0|	}											\
  |  |  262|  3.36k|	AnnounceExit();
  ------------------
  119|  3.36k|}
WXMPMeta_Unlock_1:
  207|  14.7k|{
  208|  14.7k|	WXMP_Result * wResult = &void_wResult;	// ! Needed to "fool" the EnterWrapper macro.
  209|  14.7k|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPMeta_Unlock_1" )
  ------------------
  |  |  235|  14.7k|	AnnounceNoLock ( proc );								\
  |  |  236|  14.7k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  14.7k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|  14.7k|	try {													\
  |  |  238|  14.7k|		wResult->errMessage = 0;
  ------------------
  210|       |
  211|  14.7k|		XMPMeta::Unlock ( options );
  212|       |
  213|  14.7k|	XMP_EXIT_WRAPPER_NO_THROW
  ------------------
  |  |  258|  14.7k|	} catch ( ... )	{							\
  |  |  259|      0|		AnnounceCatch ( "no-throw catch-all" );	\
  |  |  260|      0|		/* Do nothing. */						\
  |  |  261|      0|	}											\
  |  |  262|  14.7k|	AnnounceExit();
  ------------------
  214|  14.7k|}
WXMPMeta_RegisterNamespace_1:
  222|     39|{
  223|     39|	XMP_ENTER_WRAPPER ( "WXMPMeta_RegisterNamespace_1" )
  ------------------
  |  |  241|     39|	AnnounceEntry ( proc );									\
  |  |  242|     39|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|     39|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|     39|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|     39|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|     39|	try {													\
  |  |  245|     39|		XMP_AutoMutex mutex;								\
  |  |  246|     39|		wResult->errMessage = 0;
  ------------------
  224|       |
  225|     39|		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: 39]
  |  Branch (225:31): [True: 0, False: 39]
  ------------------
  226|     39|		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: 39]
  |  Branch (226:25): [True: 0, False: 39]
  ------------------
  227|       |
  228|     39|		XMPMeta::RegisterNamespace ( namespaceURI, prefix );
  229|       |
  230|     39|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|     39|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|     39|	} 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|     39|	AnnounceExit();
  ------------------
  231|     39|}
WXMPMeta_GetNamespacePrefix_1:
  240|  14.7k|{
  241|  14.7k|	XMP_ENTER_WRAPPER ( "WXMPMeta_GetNamespacePrefix_1" )
  ------------------
  |  |  241|  14.7k|	AnnounceEntry ( proc );									\
  |  |  242|  14.7k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  14.7k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  14.7k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  14.7k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  14.7k|	try {													\
  |  |  245|  14.7k|		XMP_AutoMutex mutex;								\
  |  |  246|  14.7k|		wResult->errMessage = 0;
  ------------------
  242|       |
  243|  14.7k|		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: 14.7k]
  |  Branch (243:31): [True: 0, False: 14.7k]
  ------------------
  244|       |
  245|  14.7k|		if ( namespacePrefix == 0 ) namespacePrefix = &voidStringPtr;
  ------------------
  |  Branch (245:8): [True: 0, False: 14.7k]
  ------------------
  246|  14.7k|		if ( prefixSize == 0 ) prefixSize = &voidStringLen;
  ------------------
  |  Branch (246:8): [True: 0, False: 14.7k]
  ------------------
  247|       |
  248|  14.7k|		bool found = XMPMeta::GetNamespacePrefix ( namespaceURI, namespacePrefix, prefixSize );
  249|  14.7k|		wResult->int32Result = found;
  250|       |		
  251|  14.7k|	XMP_EXIT_WRAPPER_KEEP_LOCK ( found )
  ------------------
  |  |  253|  14.7k|		if ( keep ) mutex.KeepLock();		\
  |  |  ------------------
  |  |  |  Branch (253:8): [True: 14.7k, False: 3]
  |  |  ------------------
  |  |  254|  14.7k|	XMP_CATCH_EXCEPTIONS					\
  |  |  ------------------
  |  |  |  |  265|  14.7k|	} 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|  14.7k|	AnnounceExit();
  ------------------
  252|  14.7k|}
WXMPMeta_DeleteNamespace_1:
  280|     17|{
  281|     17|	XMP_ENTER_WRAPPER ( "WXMPMeta_DeleteNamespace_1" )
  ------------------
  |  |  241|     17|	AnnounceEntry ( proc );									\
  |  |  242|     17|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|     17|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|     17|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|     17|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|     17|	try {													\
  |  |  245|     17|		XMP_AutoMutex mutex;								\
  |  |  246|     17|		wResult->errMessage = 0;
  ------------------
  282|       |
  283|     17|		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: 17]
  |  Branch (283:31): [True: 0, False: 17]
  ------------------
  284|       |
  285|     17|		XMPMeta::DeleteNamespace ( namespaceURI );
  286|       |
  287|     17|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|     17|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|     17|	} 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|     17|	AnnounceExit();
  ------------------
  288|     17|}
WXMPMeta_SetProperty_1:
  522|  3.90k|{
  523|  3.90k|	XMP_ENTER_WRAPPER ( "WXMPMeta_SetProperty_1" )
  ------------------
  |  |  241|  3.90k|	AnnounceEntry ( proc );									\
  |  |  242|  3.90k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  3.90k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  3.90k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  3.90k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  3.90k|	try {													\
  |  |  245|  3.90k|		XMP_AutoMutex mutex;								\
  |  |  246|  3.90k|		wResult->errMessage = 0;
  ------------------
  524|       |
  525|  3.90k|		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.90k]
  |  Branch (525:27): [True: 0, False: 3.90k]
  ------------------
  526|  3.90k|		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.90k]
  |  Branch (526:27): [True: 0, False: 3.90k]
  ------------------
  527|       |
  528|  3.90k|		XMPMeta * meta = WtoXMPMeta_Ptr ( xmpRef );
  ------------------
  |  |  109|  3.90k|#define WtoXMPMeta_Ptr(xmpRef)	(((xmpRef) == 0) ? 0 : (XMPMeta *)(xmpRef))
  |  |  ------------------
  |  |  |  Branch (109:33): [True: 0, False: 3.90k]
  |  |  ------------------
  ------------------
  529|  3.90k|		meta->SetProperty ( schemaNS, propName, propValue, options );
  530|       |		
  531|  3.90k|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|  3.90k|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|  3.90k|	} 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.90k|	AnnounceExit();
  ------------------
  532|  3.90k|}
WXMPMeta_AppendArrayItem_1:
  566|     64|{
  567|     64|	XMP_ENTER_WRAPPER ( "WXMPMeta_AppendArrayItem_1" )
  ------------------
  |  |  241|     64|	AnnounceEntry ( proc );									\
  |  |  242|     64|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|     64|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|     64|	try {													\
  |  |  245|     64|		XMP_AutoMutex mutex;								\
  |  |  246|     64|		wResult->errMessage = 0;
  ------------------
  568|       |
  569|     64|		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: 64]
  |  Branch (569:27): [True: 0, False: 64]
  ------------------
  570|     64|		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: 64]
  |  Branch (570:28): [True: 0, False: 64]
  ------------------
  571|       |
  572|     64|		XMPMeta * meta = WtoXMPMeta_Ptr ( xmpRef );
  ------------------
  |  |  109|     64|#define WtoXMPMeta_Ptr(xmpRef)	(((xmpRef) == 0) ? 0 : (XMPMeta *)(xmpRef))
  |  |  ------------------
  |  |  |  Branch (109:33): [True: 0, False: 64]
  |  |  ------------------
  ------------------
  573|     64|		meta->AppendArrayItem ( schemaNS, arrayName, arrayOptions, itemValue, options );
  574|       |		
  575|     64|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|     64|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|     64|	} 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|     64|	AnnounceExit();
  ------------------
  576|     64|}
WXMPMeta_SetQualifier_1:
  614|     64|{
  615|     64|	XMP_ENTER_WRAPPER ( "WXMPMeta_SetQualifier_1" )
  ------------------
  |  |  241|     64|	AnnounceEntry ( proc );									\
  |  |  242|     64|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|     64|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|     64|	try {													\
  |  |  245|     64|		XMP_AutoMutex mutex;								\
  |  |  246|     64|		wResult->errMessage = 0;
  ------------------
  616|       |
  617|     64|		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: 64]
  |  Branch (617:27): [True: 0, False: 64]
  ------------------
  618|     64|		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: 64]
  |  Branch (618:27): [True: 0, False: 64]
  ------------------
  619|     64|		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: 64]
  |  Branch (619:25): [True: 0, False: 64]
  ------------------
  620|     64|		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: 64]
  |  Branch (620:27): [True: 0, False: 64]
  ------------------
  621|       |
  622|     64|		XMPMeta * meta = WtoXMPMeta_Ptr ( xmpRef );
  ------------------
  |  |  109|     64|#define WtoXMPMeta_Ptr(xmpRef)	(((xmpRef) == 0) ? 0 : (XMPMeta *)(xmpRef))
  |  |  ------------------
  |  |  |  Branch (109:33): [True: 0, False: 64]
  |  |  ------------------
  ------------------
  623|     64|		meta->SetQualifier ( schemaNS, propName, qualNS, qualName, qualValue, options );
  624|       |		
  625|     64|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|     64|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|     64|	} 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|     64|	AnnounceExit();
  ------------------
  626|     64|}
WXMPMeta_CountArrayItems_1:
 1168|    906|{
 1169|    906|	XMP_ENTER_WRAPPER ( "WXMPMeta_CountArrayItems_1" )
  ------------------
  |  |  241|    906|	AnnounceEntry ( proc );									\
  |  |  242|    906|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|    906|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|    906|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|    906|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|    906|	try {													\
  |  |  245|    906|		XMP_AutoMutex mutex;								\
  |  |  246|    906|		wResult->errMessage = 0;
  ------------------
 1170|       |		
 1171|    906|		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: 906]
  |  Branch (1171:27): [True: 0, False: 906]
  ------------------
 1172|    906|		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: 906]
  |  Branch (1172:28): [True: 0, False: 906]
  ------------------
 1173|       |
 1174|    906|		const XMPMeta & meta = WtoXMPMeta_Ref ( xmpRef );
  ------------------
  |  |  108|    906|#define WtoXMPMeta_Ref(xmpRef)	*((const XMPMeta *)(xmpRef))
  ------------------
 1175|    906|		XMP_Index count = meta.CountArrayItems ( schemaNS, arrayName );
 1176|    906|		wResult->int32Result = count;
 1177|       |		
 1178|    906|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|    906|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|    906|	} 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|    906|	AnnounceExit();
  ------------------
 1179|    906|}
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.11k|{
 1271|  3.11k|	XMP_ENTER_WRAPPER ( "WXMPMeta_ParseFromBuffer_1" )
  ------------------
  |  |  241|  3.11k|	AnnounceEntry ( proc );									\
  |  |  242|  3.11k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  3.11k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  3.11k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  3.11k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  3.11k|	try {													\
  |  |  245|  3.11k|		XMP_AutoMutex mutex;								\
  |  |  246|  3.11k|		wResult->errMessage = 0;
  ------------------
 1272|       |
 1273|  3.11k|		XMPMeta * meta = WtoXMPMeta_Ptr ( xmpRef );
  ------------------
  |  |  109|  3.11k|#define WtoXMPMeta_Ptr(xmpRef)	(((xmpRef) == 0) ? 0 : (XMPMeta *)(xmpRef))
  |  |  ------------------
  |  |  |  Branch (109:33): [True: 0, False: 3.11k]
  |  |  ------------------
  ------------------
 1274|  3.11k|		meta->ParseFromBuffer ( buffer, bufferSize, options );
 1275|       |		
 1276|  3.11k|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|  3.11k|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|  3.11k|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|    631|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|    631|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|    631|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|    631|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 631]
  |  |  |  |  ------------------
  |  |  |  |  270|    631|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|    631|	} 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.11k|	AnnounceExit();
  ------------------
 1277|  3.11k|}
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|    154|{
  340|    154|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPUtils_ConvertToDate_1" )
  ------------------
  |  |  235|    154|	AnnounceNoLock ( proc );								\
  |  |  236|    154|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|    154|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|    154|	try {													\
  |  |  238|    154|		wResult->errMessage = 0;
  ------------------
  341|       |
  342|    154|		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: 154]
  ------------------
  343|    154|		XMPUtils::ConvertToDate ( strValue, binValue );
  344|       |
  345|    154|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|    154|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|    154|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|     92|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|     92|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|     92|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|     92|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 92]
  |  |  |  |  ------------------
  |  |  |  |  270|     92|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|     92|	} 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|    154|	AnnounceExit();
  ------------------
  346|    154|}
WXMPUtils_ConvertToLocalTime_1:
  395|     62|{
  396|     62|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPUtils_ConvertToLocalTime_1" )
  ------------------
  |  |  235|     62|	AnnounceNoLock ( proc );								\
  |  |  236|     62|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|     62|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|     62|	try {													\
  |  |  238|     62|		wResult->errMessage = 0;
  ------------------
  397|       |
  398|     62|		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: 62]
  ------------------
  399|     62|		XMPUtils::ConvertToLocalTime ( time );
  400|       |
  401|     62|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|     62|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|     62|	} 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|     62|	AnnounceExit();
  ------------------
  402|     62|}

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

_ZNK8XML_Node16IsWhitespaceNodeEv:
   39|  26.9k|{
   40|  26.9k|	if ( this->kind != kCDataNode ) return false;
  ------------------
  |  Branch (40:7): [True: 9.63k, False: 17.3k]
  ------------------
   41|       |
   42|  58.2k|	for ( size_t i = 0; i < this->value.size(); ++i ) {
  ------------------
  |  Branch (42:22): [True: 41.0k, False: 17.2k]
  ------------------
   43|  41.0k|		unsigned char ch = this->value[i];
   44|  41.0k|		if ( IsWhitespaceChar ( ch ) ) continue;
  ------------------
  |  |   45|  41.0k|#define IsWhitespaceChar(ch)	( ((ch) == ' ') || ((ch) == 0x09) || ((ch) == 0x0A) || ((ch) == 0x0D) )
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 31.6k, False: 9.40k]
  |  |  |  Branch (45:49): [True: 300, False: 9.10k]
  |  |  |  Branch (45:67): [True: 8.98k, False: 124]
  |  |  |  Branch (45:85): [True: 0, False: 124]
  |  |  ------------------
  ------------------
   45|       |		// *** Add checks for other whitespace characters.
   46|    124|		return false;	// All the checks failed, this isn't whitespace.
   47|  41.0k|	}
   48|       |
   49|  17.2k|	return true;
   50|       |
   51|  17.3k|}	// XML_Node::IsWhitespaceNode
_ZN8XML_Node11RemoveAttrsEv:
  427|  76.8k|{
  428|       |
  429|  91.4k|	for ( size_t i = 0, vLim = this->attrs.size(); i < vLim; ++i ) delete this->attrs[i];
  ------------------
  |  Branch (429:49): [True: 14.5k, False: 76.8k]
  ------------------
  430|  76.8k|	this->attrs.clear();
  431|       |
  432|  76.8k|}	// XML_Node::RemoveAttrs
_ZN8XML_Node13RemoveContentEv:
  439|  76.8k|{
  440|       |
  441|   136k|	for ( size_t i = 0, vLim = this->content.size(); i < vLim; ++i ) delete this->content[i];
  ------------------
  |  Branch (441:51): [True: 59.1k, False: 76.8k]
  ------------------
  442|  76.8k|	this->content.clear();
  443|       |
  444|  76.8k|}	// 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|  60.8k|	void XMP_EnterCriticalRegion ( XMP_Mutex & mutex ) {
  124|  60.8k|		int err = pthread_mutex_lock ( &mutex );
  125|  60.8k|		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: 60.8k]
  ------------------
  126|  60.8k|	}
_Z22XMP_ExitCriticalRegionR15pthread_mutex_t:
  128|  60.8k|	void XMP_ExitCriticalRegion ( XMP_Mutex & mutex ) {
  129|  60.8k|		int err = pthread_mutex_unlock ( &mutex );
  130|  60.8k|		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: 60.8k]
  ------------------
  131|  60.8k|	}
_Z16VerifySetOptionsjPKc:
  563|  4.15k|{
  564|       |
  565|  4.15k|	if ( options & kXMP_PropArrayIsAltText )   options |= kXMP_PropArrayIsAlternate;
  ------------------
  |  Branch (565:7): [True: 9, False: 4.14k]
  ------------------
  566|  4.15k|	if ( options & kXMP_PropArrayIsAlternate ) options |= kXMP_PropArrayIsOrdered;
  ------------------
  |  Branch (566:7): [True: 86, False: 4.06k]
  ------------------
  567|  4.15k|	if ( options & kXMP_PropArrayIsOrdered )   options |= kXMP_PropValueIsArray;
  ------------------
  |  Branch (567:7): [True: 378, False: 3.77k]
  ------------------
  568|       |	
  569|  4.15k|	if ( options & ~kXMP_AllSetOptionsMask ) {
  ------------------
  |  Branch (569:7): [True: 0, False: 4.15k]
  ------------------
  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|  4.15k|	if ( (options & kXMP_PropValueIsStruct) && (options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (573:7): [True: 123, False: 4.03k]
  |  Branch (573:45): [True: 0, False: 123]
  ------------------
  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|  4.15k|	if ( (options & kXMP_PropValueOptionsMask) && (options & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (577:7): [True: 0, False: 4.15k]
  |  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|  4.15k|	if ( (propValue != 0) && (options & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (581:7): [True: 3.42k, False: 731]
  |  Branch (581:27): [True: 0, False: 3.42k]
  ------------------
  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|  4.15k|	return options;
  586|       |
  587|  4.15k|}	// VerifySetOptions
_Z11ExpandXPathPKcS0_PNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEE:
  662|  22.6k|{
  663|  22.6k|	XMP_Assert ( (schemaNS != 0) && (propPath != 0) && (*propPath != 0) && (expandedXPath != 0) );
  ------------------
  |  |  142|  22.6k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  664|       |	
  665|  22.6k|	XMP_StringPtr	stepBegin, stepEnd;
  666|  22.6k|	XMP_StringPtr	qualName, nameEnd;
  667|  22.6k|	XMP_VarString	currStep;
  668|       |		
  669|  22.6k|	qualName = nameEnd = NULL;
  670|  22.6k|	size_t resCount = 2;	// Guess at the number of steps. At least 2, plus 1 for each '/' or '['.
  671|  3.28M|	for ( stepEnd = propPath; *stepEnd != 0; ++stepEnd ) {
  ------------------
  |  Branch (671:28): [True: 3.26M, False: 22.6k]
  ------------------
  672|  3.26M|		if ( (*stepEnd == '/') || (*stepEnd == '[') ) ++resCount;
  ------------------
  |  Branch (672:8): [True: 1.79k, False: 3.26M]
  |  Branch (672:29): [True: 6.36k, False: 3.25M]
  ------------------
  673|  3.26M|	}
  674|       |	
  675|  22.6k|	expandedXPath->clear();
  676|  22.6k|	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|  22.6k|	stepBegin = propPath;
  683|  22.6k|	stepEnd = stepBegin;
  684|  3.23M|	while ( (*stepEnd != 0) && (*stepEnd != '/') && (*stepEnd != '[') && (*stepEnd != '*') ) ++stepEnd;
  ------------------
  |  Branch (684:10): [True: 3.22M, False: 15.9k]
  |  Branch (684:29): [True: 3.22M, False: 368]
  |  Branch (684:50): [True: 3.21M, False: 6.36k]
  |  Branch (684:71): [True: 3.21M, False: 0]
  ------------------
  685|  22.6k|	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: 22.6k]
  ------------------
  686|  22.6k|	currStep.assign ( stepBegin, (stepEnd - stepBegin) );
  687|       |	
  688|  22.6k|	VerifyXPathRoot ( schemaNS, currStep.c_str(), expandedXPath );
  689|       |
  690|  22.6k|	XMP_OptionBits stepFlags = kXMP_StructFieldStep;	
  691|  22.6k|	if ( sRegisteredAliasMap->find ( (*expandedXPath)[kRootPropStep].step ) != sRegisteredAliasMap->end() ) {
  ------------------
  |  Branch (691:7): [True: 0, False: 22.6k]
  ------------------
  692|      0|		stepFlags |= kXMP_StepIsAlias;
  693|      0|	}
  694|  22.6k|	(*expandedXPath)[kRootPropStep].options |= stepFlags;
  695|       |		
  696|       |	// -----------------------------------------------------
  697|       |	// Now continue to process the rest of the XPath string.
  698|       |
  699|  30.8k|	while ( *stepEnd != 0 ) {
  ------------------
  |  Branch (699:10): [True: 8.16k, False: 22.6k]
  ------------------
  700|       |
  701|  8.16k|		stepBegin = stepEnd;
  702|  8.16k|		if ( *stepBegin == '/' ) ++stepBegin;
  ------------------
  |  Branch (702:8): [True: 1.79k, False: 6.36k]
  ------------------
  703|  8.16k|		if ( *stepBegin == '*' ) {
  ------------------
  |  Branch (703:8): [True: 0, False: 8.16k]
  ------------------
  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|  8.16k|		stepEnd = stepBegin;
  708|       |
  709|  8.16k|		if ( *stepBegin != '[' ) {
  ------------------
  |  Branch (709:8): [True: 1.79k, False: 6.36k]
  ------------------
  710|       |		
  711|       |			// A struct field or qualifier.
  712|  1.79k|			qualName = stepBegin;
  713|  29.7k|			while ( (*stepEnd != 0) && (*stepEnd != '/') && (*stepEnd != '[') && (*stepEnd != '*') ) ++stepEnd;
  ------------------
  |  Branch (713:12): [True: 27.9k, False: 1.79k]
  |  Branch (713:31): [True: 27.9k, False: 0]
  |  Branch (713:52): [True: 27.9k, False: 0]
  |  Branch (713:73): [True: 27.9k, False: 0]
  ------------------
  714|  1.79k|			nameEnd = stepEnd;
  715|  1.79k|			stepFlags = kXMP_StructFieldStep;	// ! Touch up later, also changing '@' to '?'.
  716|       |			
  717|  6.36k|		} else {
  718|       |		
  719|       |			// One of the array forms.
  720|       |		
  721|  6.36k|			++stepEnd;	// Look at the character after the leading '['.
  722|       |			
  723|  6.36k|			if ( ('0' <= *stepEnd) && (*stepEnd <= '9') ) {
  ------------------
  |  Branch (723:9): [True: 6.36k, False: 0]
  |  Branch (723:30): [True: 6.36k, False: 0]
  ------------------
  724|       |
  725|       |				// A numeric (decimal integer) array index.
  726|  12.7k|				while ( (*stepEnd != 0) && ('0' <= *stepEnd) && (*stepEnd <= '9') ) ++stepEnd;
  ------------------
  |  Branch (726:13): [True: 12.7k, False: 0]
  |  Branch (726:32): [True: 12.7k, False: 0]
  |  Branch (726:53): [True: 6.36k, False: 6.36k]
  ------------------
  727|  6.36k|				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: 6.36k]
  ------------------
  728|  6.36k|				stepFlags = kXMP_ArrayIndexStep;
  729|       |
  730|  6.36k|			} 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|  6.36k|			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: 6.36k]
  ------------------
  774|  6.36k|			++stepEnd;
  775|       |			
  776|  6.36k|		}
  777|       |
  778|  8.16k|		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: 8.16k]
  ------------------
  779|  8.16k|		currStep.assign ( stepBegin, (stepEnd - stepBegin) );
  780|       |
  781|  8.16k|		if ( GetStepKind ( stepFlags ) == kXMP_StructFieldStep ) {
  ------------------
  |  |  408|  8.16k|#define GetStepKind(f)	((f) & kXMP_StepKindMask)
  ------------------
  |  Branch (781:8): [True: 1.79k, False: 6.36k]
  ------------------
  782|       |
  783|  1.79k|			if ( currStep[0] == '@' ) {
  ------------------
  |  Branch (783:9): [True: 0, False: 1.79k]
  ------------------
  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.79k|			if ( currStep[0] == '?' ) {
  ------------------
  |  Branch (787:9): [True: 526, False: 1.27k]
  ------------------
  788|    526|				++qualName;
  789|    526|				stepFlags = kXMP_QualifierStep;
  790|    526|			}
  791|  1.79k|			VerifyQualName ( qualName, nameEnd );
  792|       |
  793|  6.36k|		} else if ( GetStepKind ( stepFlags ) == kXMP_FieldSelectorStep ) {
  ------------------
  |  |  408|  6.36k|#define GetStepKind(f)	((f) & kXMP_StepKindMask)
  ------------------
  |  Branch (793:15): [True: 0, False: 6.36k]
  ------------------
  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|  8.16k|		expandedXPath->push_back ( XPathStepInfo ( currStep, stepFlags ) );
  810|       |
  811|  8.16k|	}
  812|       |
  813|  22.6k|}	// ExpandXPath
_Z14FindSchemaNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  828|  60.3k|{
  829|  60.3k|	XMP_Node * schemaNode = 0;
  830|       |	
  831|  60.3k|	XMP_Assert ( xmpTree->parent == 0 );
  ------------------
  |  |  142|  60.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  832|       |	
  833|   261k|	for ( size_t schemaNum = 0, schemaLim = xmpTree->children.size(); schemaNum != schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (833:68): [True: 236k, False: 25.4k]
  ------------------
  834|   236k|		XMP_Node * currSchema = xmpTree->children[schemaNum];
  835|   236k|		XMP_Assert ( currSchema->parent == xmpTree );
  ------------------
  |  |  142|   236k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  836|   236k|		if ( currSchema->name == nsURI ) {
  ------------------
  |  Branch (836:8): [True: 34.9k, False: 201k]
  ------------------
  837|  34.9k|			schemaNode = currSchema;
  838|  34.9k|			if ( ptrPos != 0 ) *ptrPos = xmpTree->children.begin() + schemaNum;
  ------------------
  |  Branch (838:9): [True: 21.8k, False: 13.1k]
  ------------------
  839|  34.9k|			break;
  840|  34.9k|		}
  841|   236k|	}
  842|       |	
  843|  60.3k|	if ( (schemaNode == 0) && createNodes ) {
  ------------------
  |  Branch (843:7): [True: 25.4k, False: 34.9k]
  |  Branch (843:28): [True: 5.85k, False: 19.5k]
  ------------------
  844|       |
  845|  5.85k|		schemaNode = new XMP_Node ( xmpTree, nsURI, (kXMP_SchemaNode | kXMP_NewImplicitNode) );
  ------------------
  |  |  410|  5.85k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  846|  5.85k|		XMP_StringPtr prefixPtr;
  847|  5.85k|		XMP_StringLen prefixLen;
  848|  5.85k|        bool found = XMPMeta::GetNamespacePrefix ( nsURI, &prefixPtr, &prefixLen );	// *** Use map directly?
  849|  5.85k|		XMP_Assert ( found );
  ------------------
  |  |  142|  5.85k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  850|  5.85k|		UNUSED(found);
  851|       |
  852|  5.85k|		schemaNode->value.assign ( prefixPtr, prefixLen );
  853|  5.85k|		xmpTree->children.push_back ( schemaNode );
  854|  5.85k|		if ( ptrPos != 0 ) *ptrPos = xmpTree->children.end() - 1;
  ------------------
  |  Branch (854:8): [True: 774, False: 5.07k]
  ------------------
  855|       |
  856|       |		#if 0	// *** XMP_DebugBuild
  857|       |			schemaNode->_valuePtr = schemaNode->value.c_str();
  858|       |		#endif
  859|       |
  860|  5.85k|	}
  861|       |	
  862|  60.3k|	XMP_Assert ( (ptrPos == 0) || (schemaNode == 0) || (schemaNode == **ptrPos) );
  ------------------
  |  |  142|  60.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  863|  60.3k|	XMP_Assert ( (schemaNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  60.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  864|  60.3k|	return schemaNode;
  865|       |	
  866|  60.3k|}	// FindSchemaNode
_Z13FindChildNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  881|  38.5k|{
  882|  38.5k|	XMP_Node * childNode = 0;
  883|       |
  884|  38.5k|	if ( ! (parent->options & (kXMP_SchemaNode | kXMP_PropValueIsStruct)) ) {
  ------------------
  |  Branch (884:7): [True: 12, False: 38.5k]
  ------------------
  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|   790k|	for ( size_t childNum = 0, childLim = parent->children.size(); childNum != childLim; ++childNum ) {
  ------------------
  |  Branch (897:65): [True: 772k, False: 17.7k]
  ------------------
  898|   772k|		XMP_Node * currChild = parent->children[childNum];
  899|   772k|		XMP_Assert ( currChild->parent == parent );
  ------------------
  |  |  142|   772k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  900|   772k|		if ( currChild->name == childName ) {
  ------------------
  |  Branch (900:8): [True: 20.7k, False: 751k]
  ------------------
  901|  20.7k|			childNode = currChild;
  902|  20.7k|			if ( ptrPos != 0 ) *ptrPos = parent->children.begin() + childNum;
  ------------------
  |  Branch (902:9): [True: 20.6k, False: 120]
  ------------------
  903|  20.7k|			break;
  904|  20.7k|		}
  905|   772k|	}
  906|       |	
  907|  38.5k|	if ( (childNode == 0) && createNodes ) {
  ------------------
  |  Branch (907:7): [True: 17.7k, False: 20.7k]
  |  Branch (907:27): [True: 3.17k, False: 14.6k]
  ------------------
  908|  3.17k|		childNode = new XMP_Node ( parent, childName, kXMP_NewImplicitNode );
  ------------------
  |  |  410|  3.17k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  909|  3.17k|		parent->children.push_back ( childNode );
  910|  3.17k|		if ( ptrPos != 0 ) *ptrPos = parent->children.end() - 1;
  ------------------
  |  Branch (910:8): [True: 3.17k, False: 0]
  ------------------
  911|  3.17k|	}
  912|       |	
  913|  38.5k|	XMP_Assert ( (ptrPos == 0) || (childNode == 0) || (childNode == **ptrPos) );
  ------------------
  |  |  142|  38.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  914|  38.5k|	XMP_Assert ( (childNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  38.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  915|  38.5k|	return childNode;
  916|       |	
  917|  38.5k|}	// FindChildNode
_Z17FindQualifierNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  934|    526|{
  935|    526|	XMP_Node * qualNode = 0;
  936|       |	
  937|    526|	XMP_Assert ( *qualName != '?' );
  ------------------
  |  |  142|    526|	#define XMP_Assert(c)	((void) 0)
  ------------------
  938|       |	
  939|    720|	for ( size_t qualNum = 0, qualLim = parent->qualifiers.size(); qualNum != qualLim; ++qualNum ) {
  ------------------
  |  Branch (939:65): [True: 542, False: 178]
  ------------------
  940|    542|		XMP_Node * currQual = parent->qualifiers[qualNum];
  941|    542|		XMP_Assert ( currQual->parent == parent );
  ------------------
  |  |  142|    542|	#define XMP_Assert(c)	((void) 0)
  ------------------
  942|    542|		if ( currQual->name == qualName ) {
  ------------------
  |  Branch (942:8): [True: 348, False: 194]
  ------------------
  943|    348|			qualNode = currQual;
  944|    348|			if ( ptrPos != 0 ) *ptrPos = parent->qualifiers.begin() + qualNum;
  ------------------
  |  Branch (944:9): [True: 348, False: 0]
  ------------------
  945|    348|			break;
  946|    348|		}
  947|    542|	}
  948|       |	
  949|    526|	if ( (qualNode == 0) && createNodes ) {
  ------------------
  |  Branch (949:7): [True: 178, False: 348]
  |  Branch (949:26): [True: 178, False: 0]
  ------------------
  950|       |
  951|    178|		qualNode = new XMP_Node ( parent, qualName, (static_cast<unsigned long>(kXMP_PropIsQualifier) | static_cast<unsigned long>(kXMP_NewImplicitNode)) );
  ------------------
  |  |  410|    178|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  952|    178|		parent->options |= kXMP_PropHasQualifiers;
  953|       |
  954|    178|		const bool isLang 	 = XMP_LitMatch ( qualName, "xml:lang" );
  ------------------
  |  |   96|    178|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  955|    178|		const bool isType 	 = XMP_LitMatch ( qualName, "rdf:type" );
  ------------------
  |  |   96|    178|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  956|    178|		const bool isSpecial = isLang | isType;
  957|       |
  958|    178|		if ( isLang ) {
  ------------------
  |  Branch (958:8): [True: 120, False: 58]
  ------------------
  959|    120|			parent->options |= kXMP_PropHasLang;
  960|    120|		} else if ( isType ) {
  ------------------
  |  Branch (960:15): [True: 0, False: 58]
  ------------------
  961|      0|			parent->options |= kXMP_PropHasType;
  962|      0|		}
  963|       |		
  964|    178|		if ( parent->qualifiers.empty() || (! isSpecial) ) {
  ------------------
  |  Branch (964:8): [True: 137, False: 41]
  |  Branch (964:38): [True: 41, False: 0]
  ------------------
  965|    178|			parent->qualifiers.push_back ( qualNode );
  966|    178|			if ( ptrPos != 0 ) *ptrPos = parent->qualifiers.end() - 1;
  ------------------
  |  Branch (966:9): [True: 178, False: 0]
  ------------------
  967|    178|		} 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|    178|	}
  975|       |	
  976|    526|	XMP_Assert ( (ptrPos == 0) || (qualNode == 0) || (qualNode == **ptrPos) );
  ------------------
  |  |  142|    526|	#define XMP_Assert(c)	((void) 0)
  ------------------
  977|    526|	XMP_Assert ( (qualNode != 0) || (! createNodes) );
  ------------------
  |  |  142|    526|	#define XMP_Assert(c)	((void) 0)
  ------------------
  978|    526|	return qualNode;
  979|       |	
  980|    526|}	// FindQualifierNode
_Z8FindNodeP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEbjPNS1_11__wrap_iterIPS0_EE:
 1062|  22.5k|{
 1063|  22.5k|	XMP_Node *     currNode = 0;
 1064|  22.5k|	XMP_NodePtrPos currPos;
 1065|  22.5k|	XMP_NodePtrPos newSubPos;	// Root of implicitly created subtree. Valid only if leaf is new.
 1066|  22.5k|	bool           leafIsNew = false;
 1067|       |	
 1068|  22.5k|	XMP_Assert ( (leafOptions == 0) || createNodes );
  ------------------
  |  |  142|  22.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1069|       |
 1070|  22.5k|	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: 22.5k]
  ------------------
 1071|       |	
 1072|  22.5k|	size_t stepNum = 1;	// By default start calling FollowXPathStep for the top level property step.
 1073|  22.5k|	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|  22.5k|	if ( ! (expandedXPath[kRootPropStep].options & kXMP_StepIsAlias) ) {
  ------------------
  |  Branch (1081:7): [True: 22.5k, False: 0]
  ------------------
 1082|       |		
 1083|  22.5k|		currNode = FindSchemaNode ( xmpTree, expandedXPath[kSchemaStep].step.c_str(), createNodes, &currPos );
 1084|  22.5k|		if ( currNode == 0 ) return 0;
  ------------------
  |  Branch (1084:8): [True: 3, False: 22.5k]
  ------------------
 1085|       |
 1086|  22.5k|		if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|  22.5k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1086:8): [True: 774, False: 21.8k]
  ------------------
 1087|    774|			currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|    774|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1088|    774|			if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1088:9): [True: 774, False: 0]
  ------------------
 1089|    774|			leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1090|    774|		}
 1091|       |
 1092|  22.5k|	} 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|  22.5k|	try {
 1138|  53.2k|		for ( ; stepNum < stepLim; ++stepNum ) {
  ------------------
  |  Branch (1138:11): [True: 30.6k, False: 22.5k]
  ------------------
 1139|  30.6k|			currNode = FollowXPathStep ( currNode, expandedXPath, stepNum, createNodes, &currPos );
 1140|  30.6k|			if ( currNode == 0 ) goto EXIT;
  ------------------
  |  Branch (1140:9): [True: 61, False: 30.6k]
  ------------------
 1141|  30.6k|			if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|  30.6k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1141:9): [True: 4.10k, False: 26.5k]
  ------------------
 1142|  4.10k|				currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  4.10k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1143|  4.10k|				CheckImplicitStruct ( currNode, expandedXPath, stepNum+1, stepLim );
 1144|  4.10k|				if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1144:10): [True: 3.33k, False: 774]
  ------------------
 1145|  4.10k|				leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1146|  4.10k|			}
 1147|  30.6k|		}
 1148|  22.5k|	} 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|  22.5k|EXIT:
 1156|       |
 1157|  22.5k|	XMP_Assert ( (currNode == 0) || (currNode == *currPos) );
  ------------------
  |  |  142|  22.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1158|  22.5k|	XMP_Assert ( (currNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  22.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1159|       |
 1160|  22.5k|	if ( leafIsNew ) {
  ------------------
  |  Branch (1160:7): [True: 4.10k, False: 18.4k]
  ------------------
 1161|  4.10k|		if ( currNode != 0 ) {
  ------------------
  |  Branch (1161:8): [True: 4.10k, False: 0]
  ------------------
 1162|  4.10k|			currNode->options |= leafOptions;
 1163|  4.10k|		} else {
 1164|      0|			DeleteSubtree ( newSubPos );
 1165|      0|		}
 1166|  4.10k|	}
 1167|       |
 1168|  22.5k|	if ( (currNode != 0) && (ptrPos != 0) ) *ptrPos = currPos;
  ------------------
  |  Branch (1168:7): [True: 22.5k, False: 61]
  |  Branch (1168:26): [True: 0, False: 22.5k]
  ------------------
 1169|  22.5k|	return currNode;
 1170|       |	
 1171|  22.5k|}	// FindNode
_Z18NormalizeLangValuePNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
 1343|    548|{
 1344|    548|	char * tagStart;
 1345|    548|	char * tagEnd;
 1346|       |
 1347|       |	// Find and process the primary subtag.
 1348|       |	
 1349|    548|	tagStart = (char*) value->c_str();
 1350|  7.46k|	for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1350:27): [True: 7.36k, False: 105]
  |  Branch (1350:45): [True: 6.92k, False: 443]
  ------------------
 1351|  6.92k|		if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1351:8): [True: 3.94k, False: 2.97k]
  |  Branch (1351:28): [True: 645, False: 3.30k]
  ------------------
 1352|  6.92k|	}
 1353|       |	
 1354|       |	// Find and process the secondary subtag.
 1355|       |	
 1356|    548|	tagStart = tagEnd;
 1357|    548|	if ( *tagStart == '-' ) ++tagStart;
  ------------------
  |  Branch (1357:7): [True: 443, False: 105]
  ------------------
 1358|  22.1k|	for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1358:27): [True: 21.7k, False: 390]
  |  Branch (1358:45): [True: 21.5k, False: 158]
  ------------------
 1359|  21.5k|		if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1359:8): [True: 13.9k, False: 7.57k]
  |  Branch (1359:28): [True: 2.39k, False: 11.5k]
  ------------------
 1360|  21.5k|	}
 1361|    548|	if ( tagEnd == tagStart+2 ) {
  ------------------
  |  Branch (1361:7): [True: 29, False: 519]
  ------------------
 1362|     29|		if ( ('a' <= *tagStart) && (*tagStart <= 'z') ) *tagStart -= 0x20;
  ------------------
  |  Branch (1362:8): [True: 16, False: 13]
  |  Branch (1362:30): [True: 16, False: 0]
  ------------------
 1363|     29|		++tagStart;
 1364|     29|		if ( ('a' <= *tagStart) && (*tagStart <= 'z') ) *tagStart -= 0x20;
  ------------------
  |  Branch (1364:8): [True: 16, False: 13]
  |  Branch (1364:30): [True: 16, False: 0]
  ------------------
 1365|     29|	}
 1366|       |	
 1367|       |	// Find and process the remaining subtags.
 1368|       |	
 1369|  2.13k|	while ( true ) {
  ------------------
  |  Branch (1369:10): [True: 2.13k, Folded]
  ------------------
 1370|  2.13k|		tagStart = tagEnd;
 1371|  2.13k|		if ( *tagStart == '-' ) ++tagStart;
  ------------------
  |  Branch (1371:8): [True: 1.58k, False: 547]
  ------------------
 1372|  2.13k|		if ( *tagStart == 0 ) break;
  ------------------
  |  Branch (1372:8): [True: 548, False: 1.58k]
  ------------------
 1373|  14.8k|		for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1373:28): [True: 14.7k, False: 157]
  |  Branch (1373:46): [True: 13.2k, False: 1.42k]
  ------------------
 1374|  13.2k|			if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1374:9): [True: 6.46k, False: 6.80k]
  |  Branch (1374:29): [True: 1.65k, False: 4.80k]
  ------------------
 1375|  13.2k|		}
 1376|  1.58k|	}
 1377|       |	
 1378|    548|}	// NormalizeLangValue
_Z18NormalizeLangArrayP8XMP_Node:
 1390|    187|{
 1391|    187|	XMP_Assert ( XMP_ArrayIsAltText(array->options) );
  ------------------
  |  |  142|    187|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1392|       |	
 1393|    187|	size_t itemNum;
 1394|    187|	size_t itemLim = array->children.size();
 1395|    187|	bool   hasDefault = false;
 1396|       |	
 1397|    329|	for ( itemNum = 0; itemNum < itemLim; ++itemNum ) {
  ------------------
  |  Branch (1397:21): [True: 187, False: 142]
  ------------------
 1398|       |	
 1399|    187|		if ( array->children[itemNum]->qualifiers.empty() ||
  ------------------
  |  Branch (1399:8): [True: 0, False: 187]
  ------------------
 1400|    187|			 (array->children[itemNum]->qualifiers[0]->name != "xml:lang") ) {
  ------------------
  |  Branch (1400:5): [True: 0, False: 187]
  ------------------
 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|    187|		if ( array->children[itemNum]->qualifiers[0]->value == "x-default" ) {
  ------------------
  |  Branch (1404:8): [True: 45, False: 142]
  ------------------
 1405|     45|			hasDefault = true;
 1406|     45|			break;
 1407|     45|		}
 1408|       |
 1409|    187|	}
 1410|       |
 1411|    187|	if ( hasDefault ) {
  ------------------
  |  Branch (1411:7): [True: 45, False: 142]
  ------------------
 1412|       |
 1413|     45|		if ( itemNum != 0 ) {
  ------------------
  |  Branch (1413:8): [True: 0, False: 45]
  ------------------
 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|     45|	}
 1423|       |	
 1424|    187|}	// NormalizeLangArray
_Z13DetectAltTextP8XMP_Node:
 1434|    282|{
 1435|    282|	XMP_Assert ( XMP_ArrayIsAlternate(xmpParent->options) );
  ------------------
  |  |  142|    282|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1436|       |
 1437|    282|	size_t itemNum, itemLim;
 1438|       |	
 1439|    471|	for ( itemNum = 0, itemLim = xmpParent->children.size(); itemNum < itemLim; ++itemNum ) {
  ------------------
  |  Branch (1439:59): [True: 276, False: 195]
  ------------------
 1440|    276|		XMP_OptionBits currOptions = xmpParent->children[itemNum]->options;
 1441|    276|		if ( (currOptions & kXMP_PropCompositeMask) || (! (currOptions & kXMP_PropHasLang)) ) break;
  ------------------
  |  Branch (1441:8): [True: 21, False: 255]
  |  Branch (1441:50): [True: 66, False: 189]
  ------------------
 1442|    276|	}
 1443|       |	
 1444|    282|	if ( (itemLim != 0) && (itemNum == itemLim) ) {
  ------------------
  |  Branch (1444:7): [True: 274, False: 8]
  |  Branch (1444:25): [True: 187, False: 87]
  ------------------
 1445|    187|		xmpParent->options |= kXMP_PropArrayIsAltText;
 1446|    187|		NormalizeLangArray ( xmpParent );
 1447|    187|	}
 1448|       |
 1449|    282|}	// DetectAltText
XMPCore_Impl.cpp:_ZL15VerifyXPathRootPKcS0_PNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEE:
  154|  22.6k|{
  155|       |	// Do some basic checks on the URI and name. Try to lookup the URI. See if the name is qualified.
  156|       |	
  157|  22.6k|	XMP_Assert ( (schemaURI != 0) && (propName != 0) && (*propName != 0) );
  ------------------
  |  |  142|  22.6k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  158|  22.6k|	XMP_Assert ( (expandedXPath != 0) && (expandedXPath->empty()) );
  ------------------
  |  |  142|  22.6k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  159|       |
  160|  22.6k|	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: 22.6k]
  ------------------
  161|       |
  162|  22.6k|	if ( (*propName == '?') || (*propName == '@') ) {
  ------------------
  |  Branch (162:7): [True: 0, False: 22.6k]
  |  Branch (162:29): [True: 0, False: 22.6k]
  ------------------
  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|  3.23M|	for ( XMP_StringPtr ch = propName; *ch != 0; ++ch ) {
  ------------------
  |  Branch (165:37): [True: 3.21M, False: 22.6k]
  ------------------
  166|  3.21M|		if ( (*ch == '/') || (*ch == '[') ) {
  ------------------
  |  Branch (166:8): [True: 0, False: 3.21M]
  |  Branch (166:24): [True: 0, False: 3.21M]
  ------------------
  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|  3.21M|	}
  170|       |
  171|  22.6k|	XMP_StringMapPos uriPos = sNamespaceURIToPrefixMap->find ( XMP_VarString ( schemaURI ) );
  172|  22.6k|	if ( uriPos == sNamespaceURIToPrefixMap->end() ) {
  ------------------
  |  Branch (172:7): [True: 0, False: 22.6k]
  ------------------
  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|  22.6k|	XMP_StringPtr colonPos = propName;
  177|  2.93M|	while ( (*colonPos != 0) && (*colonPos != ':') ) ++colonPos;
  ------------------
  |  Branch (177:10): [True: 2.93M, False: 4.29k]
  |  Branch (177:30): [True: 2.91M, False: 18.3k]
  ------------------
  178|  22.6k|	VerifySimpleXMLName ( propName, colonPos );	// Verify the part before any colon.
  179|       |
  180|       |	// Verify the various URI and prefix combinations. Initialize the expanded XPath.
  181|       |	
  182|  22.6k|	if ( *colonPos == 0 ) {
  ------------------
  |  Branch (182:7): [True: 4.29k, False: 18.3k]
  ------------------
  183|       |	
  184|       |		// The propName is unqualified, use the schemaURI and associated prefix.
  185|       |		
  186|  4.29k|		expandedXPath->push_back ( XPathStepInfo ( schemaURI, kXMP_SchemaNode ) );
  187|  4.29k|		expandedXPath->push_back ( XPathStepInfo ( uriPos->second, 0 ) );
  188|  4.29k|		(*expandedXPath)[kRootPropStep].step += propName;
  189|       |	
  190|  18.3k|	} else {
  191|       |
  192|       |		// The propName is qualified. Make sure the prefix is legit. Use the associated URI and qualified name.
  193|       |
  194|  18.3k|		size_t prefixLen = colonPos - propName + 1;	// ! Include the colon.
  195|  18.3k|		VerifySimpleXMLName ( colonPos+1, colonPos+strlen(colonPos) );
  196|       |
  197|  18.3k|		XMP_VarString prefix ( propName, prefixLen );
  198|  18.3k|		XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( prefix );
  199|  18.3k|		if ( prefixPos == sNamespacePrefixToURIMap->end() ) {
  ------------------
  |  Branch (199:8): [True: 0, False: 18.3k]
  ------------------
  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|  18.3k|		if ( prefix != uriPos->second ) {
  ------------------
  |  Branch (202:8): [True: 0, False: 18.3k]
  ------------------
  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|  18.3k|		expandedXPath->push_back ( XPathStepInfo ( schemaURI, kXMP_SchemaNode ) );
  207|  18.3k|		expandedXPath->push_back ( XPathStepInfo ( propName, 0 ) );
  208|       |	
  209|  18.3k|	}
  210|       |
  211|  22.6k|}	// VerifyXPathRoot
XMPCore_Impl.cpp:_ZL14VerifyQualNamePKcS0_:
  219|  1.79k|{
  220|  1.79k|	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.79k]
  ------------------
  221|       |
  222|  1.79k|	XMP_StringPtr colonPos = qualName;
  223|  10.3k|	while ( (colonPos < nameEnd) && (*colonPos != ':') ) ++colonPos;
  ------------------
  |  Branch (223:10): [True: 10.3k, False: 0]
  |  Branch (223:34): [True: 8.53k, False: 1.79k]
  ------------------
  224|  1.79k|	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.79k]
  |  Branch (224:33): [True: 0, False: 1.79k]
  ------------------
  225|       |
  226|  1.79k|	VerifySimpleXMLName ( qualName, colonPos );
  227|  1.79k|	VerifySimpleXMLName ( colonPos+1, nameEnd );
  228|       |
  229|  1.79k|	size_t prefixLen = colonPos - qualName + 1;	// ! Include the colon.
  230|  1.79k|	XMP_VarString prefix ( qualName, prefixLen );
  231|  1.79k|	XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( prefix );
  232|  1.79k|	if ( prefixPos == sNamespacePrefixToURIMap->end() ) {
  ------------------
  |  Branch (232:7): [True: 0, False: 1.79k]
  ------------------
  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.79k|}	// VerifyQualName
XMPCore_Impl.cpp:_ZL15FollowXPathStepP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEmbPNS1_11__wrap_iterIPS0_EEb:
  394|  30.6k|{
  395|  30.6k|	XMP_Node * nextNode = 0;
  396|  30.6k|	const XPathStepInfo & nextStep = fullPath[stepNum];
  397|  30.6k|	XMP_Index      index    = 0;
  398|  30.6k|	XMP_OptionBits stepKind = nextStep.options & kXMP_StepKindMask;
  399|       |	
  400|  30.6k|	XMP_Assert ( (kXMP_StructFieldStep <= stepKind) && (stepKind <= kXMP_FieldSelectorStep) );
  ------------------
  |  |  142|  30.6k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  401|       |
  402|  30.6k|	if ( stepKind == kXMP_StructFieldStep ) {
  ------------------
  |  Branch (402:7): [True: 23.8k, False: 6.82k]
  ------------------
  403|       |
  404|  23.8k|		nextNode = FindChildNode ( parentNode, nextStep.step.c_str(), createNodes, ptrPos );
  405|       |
  406|  23.8k|	} else if ( stepKind == kXMP_QualifierStep ) {
  ------------------
  |  Branch (406:14): [True: 526, False: 6.29k]
  ------------------
  407|       |	
  408|    526|		XMP_StringPtr qualStep = nextStep.step.c_str();
  409|    526|		XMP_Assert ( *qualStep == '?' );
  ------------------
  |  |  142|    526|	#define XMP_Assert(c)	((void) 0)
  ------------------
  410|    526|		++qualStep;
  411|    526|		nextNode = FindQualifierNode ( parentNode, qualStep, createNodes, ptrPos );
  412|       |
  413|  6.29k|	} else {
  414|       |	
  415|       |		// This is an array indexing step. First get the index, then get the node.
  416|       |
  417|  6.29k|		if ( ! (parentNode->options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (417:8): [True: 0, False: 6.29k]
  ------------------
  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|  6.29k|		if ( stepKind == kXMP_ArrayIndexStep ) {
  ------------------
  |  Branch (421:8): [True: 6.29k, False: 0]
  ------------------
  422|  6.29k|			index = FindIndexedItem ( parentNode, nextStep.step, createNodes );
  423|  6.29k|		} 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|  6.29k|		if ( (0 <= index) && (index <= (XMP_Index)parentNode->children.size()) ) nextNode = parentNode->children[index];
  ------------------
  |  Branch (437:8): [True: 6.29k, False: 0]
  |  Branch (437:24): [True: 6.29k, False: 0]
  ------------------
  438|       |
  439|  6.29k|		if ( (index == -1) && createNodes && aliasedArrayItem && (stepKind == kXMP_QualSelectorStep) ) {
  ------------------
  |  Branch (439:8): [True: 0, False: 6.29k]
  |  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|  6.29k|		if ( (nextNode != 0) && (ptrPos != 0) ) *ptrPos = parentNode->children.begin() + index;
  ------------------
  |  Branch (464:8): [True: 6.29k, False: 0]
  |  Branch (464:27): [True: 6.29k, False: 0]
  ------------------
  465|       |	
  466|  6.29k|	}
  467|       |
  468|  30.6k|	if ( (nextNode != 0) && (nextNode->options & kXMP_NewImplicitNode) ) {
  ------------------
  |  |  410|  30.6k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (468:7): [True: 30.6k, False: 61]
  |  Branch (468:26): [True: 4.10k, False: 26.5k]
  ------------------
  469|  4.10k|		nextNode->options |= (nextStep.options & kXMP_PropArrayFormMask);
  470|  4.10k|	}
  471|       |	
  472|  30.6k|	XMP_Assert ( (ptrPos == 0) || (nextNode == 0) || (nextNode == **ptrPos) );
  ------------------
  |  |  142|  30.6k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  473|  30.6k|	XMP_Assert ( (nextNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  30.6k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  474|  30.6k|	return nextNode;
  475|       |	
  476|  30.6k|}	// FollowXPathStep
XMPCore_Impl.cpp:_ZL15FindIndexedItemP8XMP_NodeRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  248|  6.29k|{
  249|  6.29k|	XMP_Index index = 0;
  250|  6.29k|	size_t    chLim = indexStep.size() - 1;
  251|       |
  252|  6.29k|	XMP_Assert ( (chLim >= 2) && (indexStep[0] == '[') && (indexStep[chLim] == ']') );
  ------------------
  |  |  142|  6.29k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  253|       |	
  254|  12.5k|	for ( size_t chNum = 1; chNum != chLim; ++chNum ) {
  ------------------
  |  Branch (254:26): [True: 6.29k, False: 6.29k]
  ------------------
  255|  6.29k|		XMP_Assert ( ('0' <= indexStep[chNum]) && (indexStep[chNum] <= '9') );
  ------------------
  |  |  142|  6.29k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  256|  6.29k|		index = (index * 10) + (indexStep[chNum] - '0');
  257|  6.29k|		if ( index < 0 ) {
  ------------------
  |  Branch (257:8): [True: 0, False: 6.29k]
  ------------------
  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|  6.29k|	}
  261|       |
  262|  6.29k|	--index;	// Change to a C-style, zero based index.
  263|  6.29k|	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: 6.29k]
  ------------------
  264|       |
  265|  6.29k|	if ( (index == (XMP_Index)arrayNode->children.size()) && createNodes ) {	// Append a new last+1 node.
  ------------------
  |  Branch (265:7): [True: 755, False: 5.54k]
  |  Branch (265:59): [True: 755, False: 0]
  ------------------
  266|    755|		XMP_Node * newItem = new XMP_Node ( arrayNode, kXMP_ArrayItemName, kXMP_NewImplicitNode );
  ------------------
  |  |  293|    755|#define kXMP_ArrayItemName	"[]"
  ------------------
              		XMP_Node * newItem = new XMP_Node ( arrayNode, kXMP_ArrayItemName, kXMP_NewImplicitNode );
  ------------------
  |  |  410|    755|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  267|    755|		arrayNode->children.push_back ( newItem );
  268|    755|	}
  269|       |
  270|       |	// ! Don't throw here for a too large index. SetProperty will throw, GetProperty will not.
  271|  6.29k|	if ( index >= (XMP_Index)arrayNode->children.size() ) index = -1;
  ------------------
  |  Branch (271:7): [True: 0, False: 6.29k]
  ------------------
  272|  6.29k|	return index;
  273|       |	
  274|  6.29k|}	// FindIndexedItem
XMPCore_Impl.cpp:_ZL19CheckImplicitStructP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEmm:
  487|  4.10k|{
  488|       |
  489|  4.10k|	if ( (stepNum < stepLim) &&
  ------------------
  |  Branch (489:7): [True: 0, False: 4.10k]
  ------------------
  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|  4.10k|}	// CheckImplicitStruct

_ZN13XMP_AutoMutexC2Ev:
  222|  60.8k|	XMP_AutoMutex() : mutex(&sXMPCoreLock) { XMP_EnterCriticalRegion ( *mutex ); ReportLock(); };
  ------------------
  |  |  168|  60.8k|	#define ReportLock()			++sLockCount
  ------------------
_ZN13XMP_AutoMutexD2Ev:
  223|  60.8k|	~XMP_AutoMutex() { if ( mutex != 0 ) { ReportUnlock(); XMP_ExitCriticalRegion ( *mutex ); mutex = 0; } };
  ------------------
  |  |  169|  24.7k|	#define ReportUnlock()			--sLockCount
  ------------------
  |  Branch (223:26): [True: 24.7k, False: 36.0k]
  ------------------
_ZN13XMP_AutoMutex8KeepLockEv:
  224|  36.0k|	void KeepLock() { ReportKeepLock(); mutex = 0; };
_ZN13XPathStepInfoC2EPKcj:
  389|  41.0k|	XPathStepInfo ( XMP_StringPtr _step, XMP_OptionBits _options ) : step(_step), options(_options) {};
_ZN13XPathStepInfoC2ENSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEj:
  390|  12.4k|	XPathStepInfo ( XMP_VarString _step, XMP_OptionBits _options ) : step(_step), options(_options) {};
_ZN8XMP_NodeC2EPS_PKcj:
  434|  13.4k|		: options(_options), name(_name), parent(_parent)
  435|  13.4k|	{
  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.4k|	};
_ZN8XMP_NodeC2EPS_PKcS2_j:
  456|  16.4k|		: options(_options), name(_name), value(_value), parent(_parent)
  457|  16.4k|	{
  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|  16.4k|	};
_ZN8XMP_NodeC2EPS_RKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_j:
  467|    394|		: options(_options), name(_name), value(_value), parent(_parent)
  468|    394|	{
  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|    394|	};
_ZN8XMP_Node14RemoveChildrenEv:
  478|  34.7k|	{
  479|  60.9k|		for ( size_t i = 0, vLim = children.size(); i < vLim; ++i ) {
  ------------------
  |  Branch (479:47): [True: 26.2k, False: 34.7k]
  ------------------
  480|  26.2k|			if ( children[i] != 0 ) delete children[i];
  ------------------
  |  Branch (480:9): [True: 26.2k, False: 0]
  ------------------
  481|  26.2k|		}
  482|  34.7k|		children.clear();
  483|  34.7k|	}
_ZN8XMP_Node16RemoveQualifiersEv:
  486|  34.0k|	{
  487|  34.6k|		for ( size_t i = 0, vLim = qualifiers.size(); i < vLim; ++i ) {
  ------------------
  |  Branch (487:49): [True: 600, False: 34.0k]
  ------------------
  488|    600|			if ( qualifiers[i] != 0 ) delete qualifiers[i];
  ------------------
  |  Branch (488:9): [True: 600, False: 0]
  ------------------
  489|    600|		}
  490|  34.0k|		qualifiers.clear();
  491|  34.0k|	}
_ZN8XMP_Node9ClearNodeEv:
  494|  3.75k|	{
  495|  3.75k|		options = 0;
  496|  3.75k|		name.erase();
  497|  3.75k|		value.erase();
  498|  3.75k|		this->RemoveChildren();
  499|  3.75k|		this->RemoveQualifiers();
  500|  3.75k|	}
_ZN8XMP_NodeD2Ev:
  502|  30.2k|	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.36k|						   XMP_OptionBits  options ) : clientRefs(0), info(IterInfo(options,&xmpObj))
  428|  3.36k|{
  429|  3.36k|	if ( (options & kXMP_IterClassMask) != kXMP_IterProperties ) {
  ------------------
  |  Branch (429:7): [True: 0, False: 3.36k]
  ------------------
  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.36k|	if ( *propName != 0 ) {
  ------------------
  |  Branch (435:7): [True: 873, False: 2.48k]
  ------------------
  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|    873|		XMP_ExpandedXPath propPath;
  445|    873|		ExpandXPath ( schemaNS, propName, &propPath );
  446|    873|		XMP_Node * propNode = FindConstNode ( &xmpObj.tree, propPath );	// If not found get empty iteration.
  ------------------
  |  |  301|    873|#define FindConstNode(t,p)		FindNode ( const_cast<XMP_Node*>(t), p, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|    873|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  447|       |		
  448|    873|		if ( propNode != 0 ) {
  ------------------
  |  Branch (448:8): [True: 873, False: 0]
  ------------------
  449|       |
  450|    873|			XMP_VarString rootName ( propPath[1].step );	// The schema is [0].
  451|    873|			for ( size_t i = 2; i < propPath.size(); ++i ) {
  ------------------
  |  Branch (451:24): [True: 0, False: 873]
  ------------------
  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|    873|			propName = rootName.c_str();
  458|    873|			size_t leafOffset = rootName.size();
  459|  15.7k|			while ( (leafOffset > 0) && (propName[leafOffset] != '/') && (propName[leafOffset] != '[') ) --leafOffset;
  ------------------
  |  Branch (459:12): [True: 14.8k, False: 873]
  |  Branch (459:32): [True: 14.8k, False: 0]
  |  Branch (459:65): [True: 14.8k, False: 0]
  ------------------
  460|    873|			if ( propName[leafOffset] == '/' ) ++leafOffset;
  ------------------
  |  Branch (460:9): [True: 0, False: 873]
  ------------------
  461|       |
  462|    873|			info.tree.children.push_back ( IterNode ( propNode->options, propName, leafOffset ) );
  463|    873|			SetCurrSchema ( info, propPath[kSchemaStep].step.c_str() );
  464|    873|			if ( info.options & kXMP_IterJustChildren ) {
  ------------------
  |  Branch (464:9): [True: 0, False: 873]
  ------------------
  465|      0|				AddNodeOffspring ( info, info.tree.children.back(), propNode );
  466|      0|			}
  467|       |
  468|    873|		}
  469|       |	
  470|  2.48k|	} else if ( *schemaNS != 0 ) {
  ------------------
  |  Branch (470:14): [True: 0, False: 2.48k]
  ------------------
  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.48k|	} 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.00k|		for ( size_t schemaNum = 0, schemaLim = xmpObj.tree.children.size(); schemaNum != schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (506:72): [True: 4.51k, False: 2.48k]
  ------------------
  507|       |
  508|  4.51k|			const XMP_Node * xmpSchema = xmpObj.tree.children[schemaNum];
  509|  4.51k|			info.tree.children.push_back ( IterNode ( kXMP_SchemaNode, xmpSchema->name, 0 ) );
  510|  4.51k|			IterNode & iterSchema = info.tree.children.back();
  511|       |
  512|  4.51k|			if ( ! (info.options & kXMP_IterJustChildren) ) {
  ------------------
  |  Branch (512:9): [True: 4.51k, False: 0]
  ------------------
  513|  4.51k|				AddSchemaProps ( info, iterSchema, xmpSchema );
  514|  4.51k|				if ( info.options & kXMP_IterIncludeAliases ) AddSchemaAliases ( info, iterSchema, xmpSchema->name.c_str() );
  ------------------
  |  Branch (514:10): [True: 0, False: 4.51k]
  ------------------
  515|  4.51k|				if ( iterSchema.children.empty() ) info.tree.children.pop_back();	// No properties, remove the schema node.
  ------------------
  |  Branch (515:10): [True: 0, False: 4.51k]
  ------------------
  516|  4.51k|			}
  517|       |
  518|  4.51k|		}
  519|       |		
  520|  2.48k|		if ( info.options & kXMP_IterIncludeAliases ) {
  ------------------
  |  Branch (520:8): [True: 0, False: 2.48k]
  ------------------
  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.48k|	}
  550|       |	
  551|       |	// Set the current iteration position to the first node to be visited.
  552|       |	
  553|  3.36k|	info.currPos = info.tree.children.begin();
  554|  3.36k|	info.endPos  = info.tree.children.end();
  555|       |	
  556|  3.36k|	if ( (info.options & kXMP_IterJustChildren) && (info.currPos != info.endPos) && (*schemaNS != 0) ) {
  ------------------
  |  Branch (556:7): [True: 0, False: 3.36k]
  |  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.36k|}	// XMPIterator for XMPMeta objects
_ZN11XMPIteratorD2Ev:
  591|  3.36k|{
  592|  3.36k|	XMP_Assert ( this->clientRefs <= 0 );
  ------------------
  |  |  142|  3.36k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  593|       |	// Let everything else default.
  594|       |	
  595|  3.36k|}	// ~XMPIterator
_ZN11XMPIterator4NextEPPKcPjS2_S3_S2_S3_S3_:
  617|  24.2k|{
  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|  24.2k|	if ( info.currPos == info.endPos ) return false;	// Happens at the start of an empty iteration.
  ------------------
  |  Branch (623:7): [True: 274, False: 24.0k]
  ------------------
  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|  24.0k|	const XMP_Node * xmpNode = GetNextXMPNode ( info );
  631|  24.0k|	if ( xmpNode == 0 ) return false;
  ------------------
  |  Branch (631:7): [True: 2.91k, False: 21.0k]
  ------------------
  632|  21.0k|	bool isSchemaNode = XMP_NodeIsSchema ( info.currPos->options );
  633|       |	
  634|  21.0k|	if ( info.options & kXMP_IterJustLeafNodes ) {
  ------------------
  |  Branch (634:7): [True: 0, False: 21.0k]
  ------------------
  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|  21.0k|	*schemaNS = info.currSchema.c_str();
  644|  21.0k|	*nsSize   = info.currSchema.size();
  645|       |
  646|  21.0k|	*propOptions = info.currPos->options;
  647|       |
  648|  21.0k|	*propPath  = "";
  649|  21.0k|	*pathSize  = 0;
  650|  21.0k|	*propValue = "";
  651|  21.0k|	*valueSize = 0;
  652|       |	
  653|  21.0k|	if ( ! (*propOptions & kXMP_SchemaNode) ) {
  ------------------
  |  Branch (653:7): [True: 16.5k, False: 4.51k]
  ------------------
  654|       |
  655|  16.5k|		*propPath = info.currPos->fullPath.c_str();
  656|  16.5k|		*pathSize = info.currPos->fullPath.size();
  657|  16.5k|		if ( info.options & kXMP_IterJustLeafName ) {
  ------------------
  |  Branch (657:8): [True: 0, False: 16.5k]
  ------------------
  658|      0|			*propPath += info.currPos->leafOffset;
  659|      0|			*pathSize -= info.currPos->leafOffset;
  660|      0|		}
  661|       |		
  662|  16.5k|		if ( ! (*propOptions & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (662:8): [True: 14.2k, False: 2.37k]
  ------------------
  663|  14.2k|			*propValue = xmpNode->value.c_str();
  664|  14.2k|			*valueSize = xmpNode->value.size();
  665|  14.2k|		}
  666|       |
  667|  16.5k|	}
  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|  21.0k|	return true;
  675|       |
  676|  21.0k|}	// Next
_ZN11XMPIterator10UnlockIterEj:
  729|  21.0k|{
  730|  21.0k|	UNUSED(options);
  731|       |
  732|  21.0k|	XMPMeta::Unlock ( 0 );
  733|       |	
  734|  21.0k|}	// UnlockIter
XMPIterator.cpp:_ZL13SetCurrSchemaR8IterInfoPKc:
  181|    873|{
  182|       |
  183|    873|	info.currSchema = schemaName;
  184|       |	#if 0	// *** XMP_DebugBuild
  185|       |		info._schemaPtr = info.currSchema.c_str();
  186|       |	#endif
  187|       |
  188|    873|}	// SetCurrSchema
XMPIterator.cpp:_ZL16AddNodeOffspringR8IterInfoR8IterNodePK8XMP_Node:
  114|  16.5k|{
  115|  16.5k|	XMP_VarString currPath ( iterParent.fullPath );
  116|  16.5k|	size_t        leafOffset = iterParent.fullPath.size();
  117|       |	
  118|  16.5k|	if ( (! xmpParent->qualifiers.empty()) && (! (info.options & kXMP_IterOmitQualifiers)) ) {
  ------------------
  |  Branch (118:7): [True: 366, False: 16.2k]
  |  Branch (118:44): [True: 366, False: 0]
  ------------------
  119|       |
  120|       |		#if TraceIterators
  121|       |			printf ( "    Adding qualifiers of %s\n", currPath.c_str() );
  122|       |		#endif
  123|       |
  124|    366|		currPath += "/?";	// All qualifiers are named and use paths like "Prop/?Qual".
  125|    366|		leafOffset += 2;
  126|       |		
  127|    846|		for ( size_t qualNum = 0, qualLim = xmpParent->qualifiers.size(); qualNum != qualLim; ++qualNum ) {
  ------------------
  |  Branch (127:69): [True: 480, False: 366]
  ------------------
  128|    480|			const XMP_Node * xmpQual = xmpParent->qualifiers[qualNum];
  129|    480|			currPath += xmpQual->name;
  130|    480|			iterParent.qualifiers.push_back ( IterNode ( xmpQual->options, currPath, leafOffset ) );
  131|    480|			currPath.erase ( leafOffset );
  132|       |			#if TraceIterators
  133|       |				printf ( "        %s\n", xmpQual->name.c_str() );
  134|       |			#endif
  135|    480|		}
  136|       |		
  137|    366|		leafOffset -= 2;
  138|    366|		currPath.erase ( leafOffset );
  139|       |
  140|    366|	}
  141|       |
  142|  16.5k|	if ( ! xmpParent->children.empty() ) {
  ------------------
  |  Branch (142:7): [True: 2.35k, False: 14.2k]
  ------------------
  143|       |	
  144|       |		#if TraceIterators
  145|       |			printf ( "    Adding children of %s\n", currPath.c_str() );
  146|       |		#endif
  147|       |
  148|  2.35k|		XMP_Assert ( xmpParent->options & kXMP_PropCompositeMask );
  ------------------
  |  |  142|  2.35k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  149|       |		
  150|  2.35k|		if ( xmpParent->options & kXMP_PropValueIsStruct ) {
  ------------------
  |  Branch (150:8): [True: 434, False: 1.92k]
  ------------------
  151|    434|			currPath += '/';
  152|    434|			leafOffset += 1;
  153|    434|		}
  154|       |		
  155|  7.63k|		for ( size_t childNum = 0, childLim = xmpParent->children.size(); childNum != childLim; ++childNum ) {
  ------------------
  |  Branch (155:69): [True: 5.27k, False: 2.35k]
  ------------------
  156|  5.27k|			const XMP_Node * xmpChild = xmpParent->children[childNum];
  157|  5.27k|			if ( ! (xmpParent->options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (157:9): [True: 1.09k, False: 4.18k]
  ------------------
  158|  1.09k|				currPath += xmpChild->name;
  159|  4.18k|			} else {
  160|  4.18k|				char buffer [32];	// AUDIT: Using sizeof(buffer) below for snprintf length is safe.
  161|  4.18k|				snprintf ( buffer, sizeof(buffer), "[%lu]", static_cast<unsigned long>(childNum+1) );	// ! XPath indices are one-based.
  162|  4.18k|				currPath += buffer;
  163|  4.18k|			}
  164|  5.27k|			iterParent.children.push_back ( IterNode ( xmpChild->options, currPath, leafOffset ) );
  165|  5.27k|			currPath.erase ( leafOffset );
  166|       |			#if TraceIterators
  167|       |				printf ( "        %s\n", (iterParent.children.back().fullPath.c_str() + leafOffset) );
  168|       |			#endif
  169|  5.27k|		}
  170|       |	
  171|  2.35k|	}
  172|       |
  173|  16.5k|}	// AddNodeOffspring
XMPIterator.cpp:_ZL14AddSchemaPropsR8IterInfoR8IterNodePK8XMP_Node:
   48|  4.51k|{
   49|  4.51k|	UNUSED(info);
   50|       |	#if TraceIterators
   51|       |		printf ( "    Adding properties of %s\n", xmpSchema->name.c_str() );
   52|       |	#endif
   53|       |
   54|  14.9k|	for ( size_t propNum = 0, propLim = xmpSchema->children.size(); propNum != propLim; ++propNum ) {
  ------------------
  |  Branch (54:66): [True: 10.3k, False: 4.51k]
  ------------------
   55|  10.3k|		const XMP_Node * xmpProp = xmpSchema->children[propNum];
   56|       |		// *** set the has-aliases bit when appropriate
   57|  10.3k|		iterSchema.children.push_back ( IterNode ( xmpProp->options, xmpProp->name, 0 ) );
   58|       |		#if TraceIterators
   59|       |			printf ( "        %s\n", xmpProp->name.c_str() );
   60|       |		#endif
   61|  10.3k|	}
   62|       |
   63|  4.51k|}	// AddSchemaProps
XMPIterator.cpp:_ZL14GetNextXMPNodeR8IterInfo:
  308|  24.0k|{
  309|  24.0k|	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|  24.0k|	if ( info.currPos->visitStage != kIter_BeforeVisit ) AdvanceIterPos ( info );
  ------------------
  |  Branch (322:7): [True: 20.9k, False: 3.08k]
  ------------------
  323|       |	
  324|  24.0k|	bool isSchemaNode = false;
  325|  24.0k|	XMP_ExpandedXPath expPath;	// Keep outside the loop to avoid constant construct/destruct.
  326|       |	
  327|  24.0k|	while ( info.currPos != info.endPos ) {
  ------------------
  |  Branch (327:10): [True: 21.0k, False: 2.91k]
  ------------------
  328|       |
  329|  21.0k|		isSchemaNode = XMP_NodeIsSchema ( info.currPos->options );
  330|  21.0k|		if ( isSchemaNode ) {
  ------------------
  |  Branch (330:8): [True: 4.51k, False: 16.5k]
  ------------------
  331|  4.51k|			SetCurrSchema ( info, info.currPos->fullPath );
  332|  4.51k|			xmpNode = FindConstSchema ( &info.xmpObj->tree, info.currPos->fullPath.c_str() );
  ------------------
  |  |  298|  4.51k|#define FindConstSchema(t,u)	FindSchemaNode ( const_cast<XMP_Node*>(t), u, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|  4.51k|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  333|  4.51k|			if ( xmpNode == 0 ) xmpNode = sDummySchema;
  ------------------
  |  Branch (333:9): [True: 0, False: 4.51k]
  ------------------
  334|  16.5k|		} else {
  335|  16.5k|			ExpandXPath ( info.currSchema.c_str(), info.currPos->fullPath.c_str(), &expPath );
  336|  16.5k|			xmpNode = FindConstNode ( &info.xmpObj->tree, expPath );
  ------------------
  |  |  301|  16.5k|#define FindConstNode(t,p)		FindNode ( const_cast<XMP_Node*>(t), p, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|  16.5k|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  337|  16.5k|		}
  338|  21.0k|		if ( xmpNode != 0 ) break;	// Exit the loop, we found a live XMP node.
  ------------------
  |  Branch (338:8): [True: 21.0k, 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|  24.0k|	if ( info.currPos == info.endPos ) return 0;
  ------------------
  |  Branch (347:7): [True: 2.91k, False: 21.0k]
  ------------------
  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|  21.0k|	XMP_Assert ( info.currPos->visitStage == kIter_BeforeVisit );
  ------------------
  |  |  142|  21.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  354|       |
  355|  21.0k|	if ( info.currPos->visitStage == kIter_BeforeVisit ) {
  ------------------
  |  Branch (355:7): [True: 21.0k, False: 0]
  ------------------
  356|  21.0k|		if ( (! isSchemaNode) && (! (info.options & kXMP_IterJustChildren)) ) {
  ------------------
  |  Branch (356:8): [True: 16.5k, False: 4.51k]
  |  Branch (356:28): [True: 16.5k, False: 0]
  ------------------
  357|  16.5k|			AddNodeOffspring ( info, *info.currPos, xmpNode );
  358|  16.5k|		}
  359|  21.0k|		info.currPos->visitStage = kIter_VisitSelf;
  360|  21.0k|	}
  361|       |	
  362|  21.0k|	return xmpNode;
  363|       |
  364|  24.0k|}	// GetNextXMPNode
XMPIterator.cpp:_ZL13SetCurrSchemaR8IterInfoRNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  192|  6.81k|{
  193|       |
  194|  6.81k|	info.currSchema = schemaName;
  195|       |	#if 0	// *** XMP_DebugBuild
  196|       |		info._schemaPtr = info.currSchema.c_str();
  197|       |	#endif
  198|       |
  199|  6.81k|}	// SetCurrSchema
XMPIterator.cpp:_ZL14AdvanceIterPosR8IterInfo:
  212|  20.9k|{
  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|  48.5k|	while ( true ) {
  ------------------
  |  Branch (220:10): [True: 48.5k, Folded]
  ------------------
  221|       |	
  222|  48.5k|		if ( info.currPos == info.endPos ) {
  ------------------
  |  Branch (222:8): [True: 9.81k, False: 38.7k]
  ------------------
  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.81k|			if ( info.ancestors.empty() ) break;	// We're at the end of the schema list.
  ------------------
  |  Branch (229:9): [True: 2.91k, False: 6.89k]
  ------------------
  230|       |
  231|  6.89k|			IterPosPair & parent = info.ancestors.back();
  232|  6.89k|			info.currPos = parent.first;
  233|  6.89k|			info.endPos  = parent.second;
  234|  6.89k|			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|  38.7k|		} 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|  38.7k|			if ( info.currPos->visitStage == kIter_BeforeVisit ) {		// Visit this node now.
  ------------------
  |  Branch (252:9): [True: 10.9k, False: 27.8k]
  ------------------
  253|  10.9k|				if ( info.currPos->options & kXMP_SchemaNode ) SetCurrSchema ( info, info.currPos->fullPath );
  ------------------
  |  Branch (253:10): [True: 2.29k, False: 8.64k]
  ------------------
  254|  10.9k|				break;
  255|  10.9k|			}
  256|       |
  257|  27.8k|			if ( info.currPos->visitStage == kIter_VisitSelf ) {		// Just finished visiting the value portion.
  ------------------
  |  Branch (257:9): [True: 20.9k, False: 6.89k]
  ------------------
  258|  20.9k|				info.currPos->visitStage = kIter_VisitQualifiers;		// Start visiting the qualifiers.
  259|  20.9k|				if ( ! info.currPos->qualifiers.empty() ) {
  ------------------
  |  Branch (259:10): [True: 291, False: 20.6k]
  ------------------
  260|    291|					info.ancestors.push_back ( IterPosPair ( info.currPos, info.endPos ) );
  261|    291|					info.endPos  = info.currPos->qualifiers.end();		// ! Set the parent's endPos before changing currPos!
  262|    291|					info.currPos = info.currPos->qualifiers.begin();
  263|    291|					break;
  264|    291|				}
  265|  20.9k|			}
  266|       |
  267|  27.5k|			if ( info.currPos->visitStage == kIter_VisitQualifiers ) {	// Just finished visiting the qualifiers.
  ------------------
  |  Branch (267:9): [True: 20.9k, False: 6.60k]
  ------------------
  268|  20.9k|				info.currPos->qualifiers.clear();
  269|  20.9k|				info.currPos->visitStage = kIter_VisitChildren;			// Start visiting the children.
  270|  20.9k|				if ( ! info.currPos->children.empty() ) {
  ------------------
  |  Branch (270:10): [True: 6.77k, False: 14.1k]
  ------------------
  271|  6.77k|					info.ancestors.push_back ( IterPosPair ( info.currPos, info.endPos ) );
  272|  6.77k|					info.endPos  = info.currPos->children.end();		// ! Set the parent's endPos before changing currPos!
  273|  6.77k|					info.currPos = info.currPos->children.begin();
  274|  6.77k|					break;
  275|  6.77k|				}
  276|  20.9k|			}
  277|       |
  278|  20.7k|			if ( info.currPos->visitStage == kIter_VisitChildren ) {	// Just finished visiting the children.
  ------------------
  |  Branch (278:9): [True: 20.7k, False: 0]
  ------------------
  279|  20.7k|				info.currPos->children.clear();
  280|  20.7k|				++info.currPos;											// Move to the next sibling.
  281|  20.7k|				continue;
  282|  20.7k|			}
  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|  20.7k|		}
  292|       |
  293|  48.5k|	}	// Loop to find the next node.
  294|       |	
  295|  20.9k|	XMP_Assert ( (info.currPos == info.endPos) || (info.currPos->visitStage == kIter_BeforeVisit) );
  ------------------
  |  |  142|  20.9k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  296|       |
  297|  20.9k|}	// AdvanceIterPos

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

_ZN7XMPMeta11SetPropertyEPKcS1_S1_j:
  454|  3.96k|{
  455|  3.96k|	XMP_Assert ( (schemaNS != 0) && (propName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|  3.96k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  456|       |
  457|  3.96k|	options = VerifySetOptions ( options, propValue );
  458|       |
  459|  3.96k|	XMP_ExpandedXPath expPath;
  460|  3.96k|	ExpandXPath ( schemaNS, propName, &expPath );
  461|       |
  462|  3.96k|	XMP_Node * propNode = FindNode ( &tree, expPath, kXMP_CreateNodes, options );
  ------------------
  |  |  295|  3.96k|#define kXMP_CreateNodes	true
  ------------------
  463|  3.96k|	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.96k]
  ------------------
  464|       |	
  465|  3.96k|	SetNode ( propNode, propValue, options );
  466|       |	
  467|  3.96k|}	// SetProperty
_ZN7XMPMeta15AppendArrayItemEPKcS1_jS1_j:
  503|     64|{
  504|     64|	XMP_Assert ( (schemaNS != 0) && (arrayName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  505|       |
  506|     64|	arrayOptions = VerifySetOptions ( arrayOptions, 0 );
  507|     64|	if ( (arrayOptions & ~kXMP_PropArrayFormMask) != 0 ) {
  ------------------
  |  Branch (507:7): [True: 0, False: 64]
  ------------------
  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|     64|	XMP_ExpandedXPath arrayPath;
  515|     64|	ExpandXPath ( schemaNS, arrayName, &arrayPath );
  516|     64|	XMP_Node * arrayNode = FindNode ( &tree, arrayPath, kXMP_ExistingOnly );	// Just lookup, don't try to create.
  ------------------
  |  |  296|     64|#define kXMP_ExistingOnly	false
  ------------------
  517|       |	
  518|     64|	if ( arrayNode != 0 ) {
  ------------------
  |  Branch (518:7): [True: 0, False: 64]
  ------------------
  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|     64|	} else {
  530|       |		// The array does not exist, try to create it.
  531|     64|		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: 64]
  ------------------
  532|     64|		arrayNode = FindNode ( &tree, arrayPath, kXMP_CreateNodes, arrayOptions );
  ------------------
  |  |  295|     64|#define kXMP_CreateNodes	true
  ------------------
  533|     64|		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: 64]
  ------------------
  534|     64|	}
  535|       |	
  536|     64|	DoSetArrayItem ( arrayNode, kXMP_ArrayLastItem, itemValue, (options | kXMP_InsertAfterItem) );
  537|       |	
  538|     64|}	// AppendArrayItem
_ZN7XMPMeta12SetQualifierEPKcS1_S1_S1_S1_j:
  575|     64|{
  576|     64|	XMP_Assert ( (schemaNS != 0) && (propName != 0) && (qualNS != 0) && (qualName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  577|       |
  578|     64|	XMP_StringPtr	qualPath;
  579|     64|	XMP_StringLen	pathLen;
  580|       |
  581|     64|	XMP_ExpandedXPath expPath;
  582|     64|	ExpandXPath ( schemaNS, propName, &expPath );
  583|     64|	XMP_Node * propNode = FindNode ( &tree, expPath, kXMP_ExistingOnly );
  ------------------
  |  |  296|     64|#define kXMP_ExistingOnly	false
  ------------------
  584|     64|	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: 64]
  ------------------
  585|       |
  586|     64|	XMPUtils::ComposeQualifierPath ( schemaNS, propName, qualNS, qualName, &qualPath, &pathLen );
  587|     64|	SetProperty ( schemaNS, qualPath, qualValue, options );
  588|       |
  589|     64|}	// SetQualifier
XMPMeta-GetSet.cpp:_ZL7SetNodeP8XMP_NodePKcj:
  117|  4.03k|{
  118|  4.03k|	if ( options & kXMP_DeleteExisting ) {
  ------------------
  |  Branch (118:7): [True: 0, False: 4.03k]
  ------------------
  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|  4.03k|	node->options |= options;	// Keep options set by FindNode when creating a new node.
  127|       |
  128|  4.03k|	if ( value != 0 ) {
  ------------------
  |  Branch (128:7): [True: 3.42k, False: 608]
  ------------------
  129|       |	
  130|       |		// This is setting the value of a leaf node.
  131|  3.42k|		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: 3.42k]
  ------------------
  132|  3.42k|		XMP_Assert ( node->children.empty() );
  ------------------
  |  |  142|  3.42k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  133|  3.42k|		SetNodeValue ( node, value );
  134|       |	
  135|  3.42k|	} else {
  136|       |	
  137|       |		// This is setting up an array or struct.
  138|    608|		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: 608]
  ------------------
  139|    608|		if ( node->options & kXMP_PropCompositeMask ) {	// Can't change an array to a struct, or vice versa.
  ------------------
  |  Branch (139:8): [True: 451, False: 157]
  ------------------
  140|    451|			if ( (options & kXMP_PropCompositeMask) != (node->options & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (140:9): [True: 0, False: 451]
  ------------------
  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|    451|		}
  144|    608|		node->RemoveChildren();
  145|       |	
  146|    608|	}
  147|       |	
  148|  4.03k|}	// SetNode
XMPMeta-GetSet.cpp:_ZL14DoSetArrayItemP8XMP_NodeiPKcj:
  160|     64|{
  161|     64|	XMP_OptionBits itemLoc = options & kXMP_PropArrayLocationMask;
  162|     64|	XMP_Index      arraySize = arrayNode->children.size();
  163|       |	
  164|     64|	options &= ~kXMP_PropArrayLocationMask;
  165|     64|	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|     64|	XMP_Node * itemNode = 0;
  173|       |	
  174|     64|	if ( itemIndex == kXMP_ArrayLastItem ) itemIndex = arraySize;
  ------------------
  |  Branch (174:7): [True: 64, False: 0]
  ------------------
  175|     64|	if ( (itemIndex == 0) && (itemLoc == kXMP_InsertAfterItem) ) {
  ------------------
  |  Branch (175:7): [True: 64, False: 0]
  |  Branch (175:27): [True: 64, False: 0]
  ------------------
  176|     64|		itemIndex = 1;
  177|     64|		itemLoc = kXMP_InsertBeforeItem;
  178|     64|	}
  179|     64|	if ( (itemIndex == arraySize) && (itemLoc == kXMP_InsertAfterItem) ) {
  ------------------
  |  Branch (179:7): [True: 0, False: 64]
  |  Branch (179:35): [True: 0, False: 0]
  ------------------
  180|      0|		itemIndex += 1;
  181|      0|		itemLoc = 0;
  182|      0|	}
  183|     64|	if ( (itemIndex == arraySize+1) && (itemLoc == kXMP_InsertBeforeItem) ) itemLoc = 0;
  ------------------
  |  Branch (183:7): [True: 64, False: 0]
  |  Branch (183:37): [True: 64, False: 0]
  ------------------
  184|       |	
  185|     64|	if ( itemIndex == arraySize+1 ) {
  ------------------
  |  Branch (185:7): [True: 64, False: 0]
  ------------------
  186|       |
  187|     64|		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: 64]
  ------------------
  188|     64|		itemNode = new XMP_Node ( arrayNode, kXMP_ArrayItemName, 0 );
  ------------------
  |  |  293|     64|#define kXMP_ArrayItemName	"[]"
  ------------------
  189|     64|		arrayNode->children.push_back ( itemNode );
  190|       |
  191|     64|	} 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|     64|	SetNode ( itemNode, itemValue, options );
  207|       |	
  208|     64|}	// DoSetArrayItem
XMPMeta-GetSet.cpp:_ZL12SetNodeValueP8XMP_NodePKc:
   76|  3.42k|{
   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|  3.42k|	node->value = value;
   85|       |	
   86|  3.42k|	XMP_Uns8* chPtr = (XMP_Uns8*) node->value.c_str();	// Check for valid UTF-8, replace ASCII controls with a space.
   87|  8.25k|	while ( *chPtr != 0 ) {
  ------------------
  |  Branch (87:10): [True: 4.83k, False: 3.42k]
  ------------------
   88|   127k|		while ( (*chPtr != 0) && (*chPtr < 0x80) ) {
  ------------------
  |  Branch (88:11): [True: 124k, False: 3.40k]
  |  Branch (88:28): [True: 122k, False: 1.42k]
  ------------------
   89|   122k|			if ( *chPtr < 0x20 ) {
  ------------------
  |  Branch (89:9): [True: 1.10k, False: 121k]
  ------------------
   90|  1.10k|				if ( (*chPtr != kTab) && (*chPtr != kLF) && (*chPtr != kCR) ) *chPtr = 0x20;
  ------------------
  |  |  100|  1.10k|#define kTab ((char)0x09)
  ------------------
              				if ( (*chPtr != kTab) && (*chPtr != kLF) && (*chPtr != kCR) ) *chPtr = 0x20;
  ------------------
  |  |  101|    556|#define kLF ((char)0x0A)
  ------------------
              				if ( (*chPtr != kTab) && (*chPtr != kLF) && (*chPtr != kCR) ) *chPtr = 0x20;
  ------------------
  |  |  102|      0|#define kCR ((char)0x0D)
  ------------------
  |  Branch (90:10): [True: 556, False: 547]
  |  Branch (90:30): [True: 0, False: 556]
  |  Branch (90:49): [True: 0, False: 0]
  ------------------
   91|   121k|			} else if (*chPtr == 0x7F ) {
  ------------------
  |  Branch (91:15): [True: 0, False: 121k]
  ------------------
   92|      0|				*chPtr = 0x20;
   93|      0|			}
   94|   122k|			++chPtr;
   95|   122k|		}
   96|  4.83k|		XMP_Assert ( (*chPtr == 0) || (*chPtr >= 0x80) );
  ------------------
  |  |  142|  4.83k|	#define XMP_Assert(c)	((void) 0)
  ------------------
   97|  4.83k|		if ( *chPtr != 0 ) (void) GetCodePoint ( (const XMP_Uns8 **) &chPtr );	// Throws for bad UTF-8.
  ------------------
  |  Branch (97:8): [True: 1.42k, False: 3.40k]
  ------------------
   98|  4.83k|	}
   99|       |
  100|  3.42k|	if ( XMP_PropIsQualifier(node->options) && (node->name == "xml:lang") ) NormalizeLangValue ( &node->value );
  ------------------
  |  Branch (100:7): [True: 175, False: 3.24k]
  |  Branch (100:45): [True: 120, False: 55]
  ------------------
  101|       |
  102|       |	#if 0	// *** XMP_DebugBuild
  103|       |		node->_valuePtr = node->value.c_str();
  104|       |	#endif
  105|       |	
  106|  3.42k|}	// SetNodeValue

_ZN7XMPMeta15ParseFromBufferEPKcjj:
 1096|  3.11k|{
 1097|  3.11k|	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.11k]
  |  Branch (1097:24): [True: 0, False: 0]
  ------------------
 1098|  3.11k|	if ( xmpSize == kXMP_UseNullTermination ) xmpSize = strlen ( buffer );
  ------------------
  |  Branch (1098:7): [True: 0, False: 3.11k]
  ------------------
 1099|       |	
 1100|  3.11k|	const bool lastClientCall = ((options & kXMP_ParseMoreBuffers) == 0);	// *** Could use FlagIsSet & FlagIsClear macros.
 1101|       |	
 1102|  3.11k|	this->tree.ClearNode();	// Make sure the target XMP object is totally empty.
 1103|       |
 1104|  3.11k|	if ( this->xmlParser == 0 ) {
  ------------------
  |  Branch (1104:7): [True: 3.11k, False: 0]
  ------------------
 1105|  3.11k|		if ( (xmpSize == 0) && lastClientCall ) return;	// Tolerate empty parse. Expat complains if there are no XML elements.
  ------------------
  |  Branch (1105:8): [True: 0, False: 3.11k]
  |  Branch (1105:26): [True: 0, False: 0]
  ------------------
 1106|  3.11k|		this->xmlParser = XMP_NewExpatAdapter();
 1107|  3.11k|	}
 1108|       |	
 1109|  3.11k|	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.11k|	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.11k|		if ( parser.charEncoding == XMP_OptionBits(-1) ) {
  ------------------
  |  Branch (1126:8): [True: 3.11k, False: 0]
  ------------------
 1127|       |
 1128|  3.11k|			if ( (parser.pendingCount == 0) && (xmpSize >= kXMLPendingInputMax) ) {
  ------------------
  |  Branch (1128:9): [True: 3.11k, False: 0]
  |  Branch (1128:39): [True: 3.11k, False: 5]
  ------------------
 1129|       |
 1130|       |				// This ought to be the common case, the first buffer is big enough.
 1131|  3.11k|				parser.charEncoding = DetermineInputEncoding ( (XMP_Uns8*)buffer, xmpSize );
 1132|       |
 1133|  3.11k|			} else {
 1134|       |			
 1135|       |				// Try to fill the pendingInput buffer before calling DetermineInputEncoding.
 1136|       |
 1137|      5|				size_t pendingOverlap = kXMLPendingInputMax - parser.pendingCount;
 1138|      5|				if ( pendingOverlap > xmpSize ) pendingOverlap = xmpSize;
  ------------------
  |  Branch (1138:10): [True: 5, False: 0]
  ------------------
 1139|       |
 1140|      5|				memcpy ( &parser.pendingInput[parser.pendingCount], buffer, pendingOverlap );	// AUDIT: Count is safe.
 1141|      5|				buffer += pendingOverlap;
 1142|      5|				xmpSize -= pendingOverlap;
 1143|      5|				parser.pendingCount += pendingOverlap;
 1144|       |
 1145|      5|				if ( (! lastClientCall) && (parser.pendingCount < kXMLPendingInputMax) ) return;
  ------------------
  |  Branch (1145:10): [True: 0, False: 5]
  |  Branch (1145:32): [True: 0, False: 0]
  ------------------
 1146|      5|				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|      5|			}
 1153|       |
 1154|  3.11k|		}
 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.11k|		XMP_Assert ( parser.charEncoding != XMP_OptionBits(-1) );
  ------------------
  |  |  142|  3.11k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1160|       |
 1161|  3.11k|		if ( parser.charEncoding != kXMP_EncodeUTF8 ) {
  ------------------
  |  Branch (1161:8): [True: 0, False: 3.11k]
  ------------------
 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.11k|		} 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.12k|			while ( parser.pendingCount > 0 ) {
  ------------------
  |  Branch (1181:12): [True: 5, False: 3.11k]
  ------------------
 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|      5|				size_t pendingOverlap = kXMLPendingInputMax - parser.pendingCount;
 1189|      5|				if ( pendingOverlap > xmpSize ) pendingOverlap = xmpSize;
  ------------------
  |  Branch (1189:10): [True: 5, False: 0]
  ------------------
 1190|       |				
 1191|      5|				memcpy ( &parser.pendingInput[parser.pendingCount], buffer, pendingOverlap );	// AUDIT: Count is safe.
 1192|      5|				parser.pendingCount += pendingOverlap;
 1193|      5|				buffer += pendingOverlap;
 1194|      5|				xmpSize -= pendingOverlap;
 1195|       |
 1196|      5|				if ( (! lastClientCall) && (parser.pendingCount < kXMLPendingInputMax) ) return;
  ------------------
  |  Branch (1196:10): [True: 0, False: 5]
  |  Branch (1196:32): [True: 0, False: 0]
  ------------------
 1197|      5|				size_t bytesDone = ProcessUTF8Portion ( &parser, parser.pendingInput, parser.pendingCount, lastClientCall );
 1198|      5|				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|      5|				if ( bytesDone == parser.pendingCount ) {
  ------------------
  |  Branch (1204:10): [True: 5, False: 0]
  ------------------
 1205|       |
 1206|       |					// Done with all of the pending input, move on to the current buffer.
 1207|      5|					parser.pendingCount = 0;
 1208|       |
 1209|      5|				} 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|      5|			}
 1236|       |			
 1237|       |			// Done with the pending input, process the current buffer.
 1238|       |
 1239|  3.11k|			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.11k|			if ( bytesDone < xmpSize ) {
  ------------------
  |  Branch (1245:9): [True: 0, False: 3.11k]
  ------------------
 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.11k|		}
 1258|       |		
 1259|  3.11k|		if ( lastClientCall ) {
  ------------------
  |  Branch (1259:8): [True: 3.11k, False: 5]
  ------------------
 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.11k|			const XML_Node * xmlRoot = FindRootNode ( this, *this->xmlParser, options );
 1267|       |
 1268|  3.11k|			if ( xmlRoot != 0 ) {
  ------------------
  |  Branch (1268:9): [True: 2.89k, False: 219]
  ------------------
 1269|       |
 1270|  2.89k|				ProcessRDF ( &this->tree, *xmlRoot, options );
 1271|  2.89k|				NormalizeDCArrays ( &this->tree );
 1272|  2.89k|				if ( this->tree.options & kXMP_PropHasAliases ) MoveExplicitAliases ( &this->tree, options );
  ------------------
  |  Branch (1272:10): [True: 0, False: 2.89k]
  ------------------
 1273|  2.89k|				TouchUpDataModel ( this );
 1274|       |				
 1275|       |				// Delete empty schema nodes. Do this last, other cleanup can make empty schema.
 1276|  2.89k|				size_t schemaNum = 0;
 1277|  7.41k|				while ( schemaNum < this->tree.children.size() ) {
  ------------------
  |  Branch (1277:13): [True: 4.51k, False: 2.89k]
  ------------------
 1278|  4.51k|					XMP_Node * currSchema = this->tree.children[schemaNum];
 1279|  4.51k|					if ( currSchema->children.size() > 0 ) {
  ------------------
  |  Branch (1279:11): [True: 4.51k, False: 0]
  ------------------
 1280|  4.51k|						++schemaNum;
 1281|  4.51k|					} 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.51k|				}
 1286|       |				
 1287|  2.89k|			}
 1288|       |
 1289|  3.11k|			delete this->xmlParser;
 1290|  3.11k|			this->xmlParser = 0;
 1291|       |
 1292|  3.11k|		}
 1293|       |		
 1294|  3.11k|	} catch ( ... ) {
 1295|       |
 1296|    631|		delete this->xmlParser;
 1297|    631|		this->xmlParser = 0;
 1298|    631|		prevTkVer = 0;
 1299|    631|		this->tree.ClearNode();
 1300|    631|		throw;
 1301|       |
 1302|    631|	}
 1303|       |	
 1304|  3.11k|}	// ParseFromBuffer
XMPMeta-Parse.cpp:_ZL22DetermineInputEncodingPKhm:
  810|  3.11k|{
  811|  3.11k|	if ( length < 2 ) return kXMP_EncodeUTF8;
  ------------------
  |  Branch (811:7): [True: 0, False: 3.11k]
  ------------------
  812|       |	
  813|  3.11k|	XMP_Uns8 * uniChar = (XMP_Uns8*)buffer;	// ! Make sure comparisons are unsigned.
  814|       |	
  815|  3.11k|	if ( uniChar[0] == 0 ) {
  ------------------
  |  Branch (815:7): [True: 0, False: 3.11k]
  ------------------
  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.11k|	} else if ( uniChar[0] < 0x80 ) {
  ------------------
  |  Branch (825:14): [True: 3.11k, 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.11k|		if ( uniChar[1] != 0 )  return kXMP_EncodeUTF8;
  ------------------
  |  Branch (832:8): [True: 3.11k, 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.11k|}	// DetermineInputEncoding
XMPMeta-Parse.cpp:_ZL18ProcessUTF8PortionP16XMLParserAdapterPKhmb:
  976|  3.12k|{
  977|  3.12k|	const XMP_Uns8 * bufEnd = buffer + length;
  978|       |	
  979|  3.12k|	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.12k|	std::string copy;
  992|       |		
  993|  5.38M|	for ( spanEnd = buffer; spanEnd < bufEnd; ++spanEnd ) {
  ------------------
  |  Branch (993:26): [True: 5.37M, False: 3.12k]
  ------------------
  994|       |
  995|  5.37M|		if ( (0x20 <= *spanEnd) && (*spanEnd <= 0x7E) && (*spanEnd != '&') ) {
  ------------------
  |  Branch (995:8): [True: 5.33M, False: 44.3k]
  |  Branch (995:30): [True: 5.29M, False: 43.4k]
  |  Branch (995:52): [True: 5.26M, False: 25.0k]
  ------------------
  996|  5.26M|			copy.push_back(*spanEnd);
  997|  5.26M|			continue;	// A regular ASCII character.
  998|  5.26M|		}
  999|       |
 1000|   112k|		if ( *spanEnd >= 0x80 ) {
  ------------------
  |  Branch (1000:8): [True: 37.6k, False: 75.0k]
  ------------------
 1001|       |		
 1002|       |			// See if this is a multi-byte UTF-8 sequence, or a Latin-1 character to replace.
 1003|       |
 1004|  37.6k|			int uniLen = CountUTF8 ( spanEnd, bufEnd );
 1005|       |
 1006|  37.6k|			if ( uniLen > 0 ) {
  ------------------
  |  Branch (1006:9): [True: 37.6k, False: 0]
  ------------------
 1007|       |
 1008|       |				// A valid UTF-8 character, keep it as-is.
 1009|  37.6k|				copy.append((const char*)spanEnd, uniLen);
 1010|  37.6k|				spanEnd += uniLen - 1;	// ! The loop increment will put back the +1.
 1011|       |
 1012|  37.6k|			} 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|  75.0k|		} else if ( (*spanEnd < 0x20) || (*spanEnd == 0x7F) ) {
  ------------------
  |  Branch (1026:15): [True: 44.3k, False: 30.7k]
  |  Branch (1026:36): [True: 5.74k, False: 25.0k]
  ------------------
 1027|       |
 1028|       |			// Replace ASCII controls other than tab, LF, and CR with a space.
 1029|       |
 1030|  50.0k|			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  100|  50.0k|#define kTab ((char)0x09)
  ------------------
              			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  101|  47.4k|#define kLF ((char)0x0A)
  ------------------
              			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  102|  11.4k|#define kCR ((char)0x0D)
  ------------------
  |  Branch (1030:9): [True: 2.56k, False: 47.4k]
  |  Branch (1030:31): [True: 36.0k, False: 11.4k]
  |  Branch (1030:52): [True: 5.69k, False: 5.74k]
  ------------------
 1031|  44.3k|				copy.push_back(*spanEnd);
 1032|  44.3k|				continue;
 1033|  44.3k|			}
 1034|       |
 1035|  5.74k|			copy.push_back(' ');
 1036|       |		
 1037|  25.0k|		} else {
 1038|       |		
 1039|       |			// See if this is a numeric escape sequence for a prohibited ASCII control.
 1040|       |			
 1041|  25.0k|			XMP_Assert ( *spanEnd == '&' );
  ------------------
  |  |  142|  25.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1042|  25.0k|			int escLen = CountControlEscape ( spanEnd, bufEnd );
 1043|       |			
 1044|  25.0k|			if ( escLen < 0 ) {
  ------------------
  |  Branch (1044:9): [True: 5, False: 25.0k]
  ------------------
 1045|       |
 1046|       |				// Have a partial numeric escape in this buffer, wait for more input.
 1047|      5|				if ( last ) {
  ------------------
  |  Branch (1047:10): [True: 5, False: 0]
  ------------------
 1048|      5|					copy.push_back('&');
 1049|      5|					continue;	// No more buffers, not an escape, absorb as normal input.
 1050|      5|				}
 1051|      0|				xmlParser->ParseBuffer ( copy.c_str(), copy.size(), false );
 1052|      0|				return (spanEnd - buffer);
 1053|       |
 1054|  25.0k|			} else if ( escLen > 0 ) {
  ------------------
  |  Branch (1054:16): [True: 1.73k, False: 23.3k]
  ------------------
 1055|       |
 1056|       |				// Have a complete numeric escape to replace.
 1057|  1.73k|				copy.push_back(' ');
 1058|  1.73k|				spanEnd = spanEnd + escLen - 1;	// ! The loop continuation will increment spanEnd!
 1059|       |
 1060|  23.3k|			} else {
 1061|  23.3k|				copy.push_back('&');
 1062|  23.3k|			}
 1063|       |
 1064|  25.0k|		}
 1065|       |		
 1066|   112k|	}
 1067|       |	
 1068|  3.12k|	XMP_Assert ( spanEnd == bufEnd );
  ------------------
  |  |  142|  3.12k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1069|  3.12k|	copy.push_back(' ');
 1070|  3.12k|	xmlParser->ParseBuffer ( copy.c_str(), copy.size(), true );
 1071|  3.12k|	return length;
 1072|       |
 1073|  3.12k|}	// ProcessUTF8Portion
XMPMeta-Parse.cpp:_ZL9CountUTF8PKhS0_:
  867|  37.6k|{
  868|  37.6k|	XMP_Assert ( charStart < bufEnd );		// Catch this in debug builds.
  ------------------
  |  |  142|  37.6k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  869|  37.6k|	if ( charStart >= bufEnd ) return 0;	// Don't run-on in release builds.
  ------------------
  |  Branch (869:7): [True: 0, False: 37.6k]
  ------------------
  870|  37.6k|	if ( (*charStart & 0xC0) != 0xC0 ) return 0;	// Must have at least 2 high bits set.
  ------------------
  |  Branch (870:7): [True: 0, False: 37.6k]
  ------------------
  871|       |	
  872|  37.6k|	int byteCount = 2;
  873|  37.6k|	XMP_Uns8 firstByte = *charStart;
  874|  40.2k|	for ( firstByte = firstByte << 2; (firstByte & 0x80) != 0; firstByte = firstByte << 1 ) ++byteCount;
  ------------------
  |  Branch (874:36): [True: 2.58k, False: 37.6k]
  ------------------
  875|       |	
  876|  37.6k|	if ( (charStart + byteCount) > bufEnd ) return -byteCount;
  ------------------
  |  Branch (876:7): [True: 0, False: 37.6k]
  ------------------
  877|       |
  878|  77.9k|	for ( int i = 1; i < byteCount; ++i ) {
  ------------------
  |  Branch (878:19): [True: 40.2k, False: 37.6k]
  ------------------
  879|  40.2k|		if ( (charStart[i] & 0xC0) != 0x80 ) return 0;
  ------------------
  |  Branch (879:8): [True: 0, False: 40.2k]
  ------------------
  880|  40.2k|	}
  881|       |	
  882|  37.6k|	return byteCount;
  883|       |	
  884|  37.6k|}	// CountUTF8
XMPMeta-Parse.cpp:_ZL18CountControlEscapePKhS0_:
  897|  25.0k|{
  898|  25.0k|	XMP_Assert ( escStart < bufEnd );	// Catch this in debug builds.
  ------------------
  |  |  142|  25.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  899|  25.0k|	if ( escStart >= bufEnd ) return 0;	// Don't run-on in release builds.
  ------------------
  |  Branch (899:7): [True: 0, False: 25.0k]
  ------------------
  900|  25.0k|	XMP_Assert ( *escStart == '&' );
  ------------------
  |  |  142|  25.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  901|       |	
  902|  25.0k|	size_t tailLen = bufEnd - escStart;
  903|  25.0k|	if ( tailLen < 5 ) return -1;	// Don't need a more thorough check, we'll catch it on the next pass.
  ------------------
  |  Branch (903:7): [True: 5, False: 25.0k]
  ------------------
  904|       |	
  905|  25.0k|	if ( strncmp ( (char*)escStart, "&#x", 3 ) != 0 ) return 0;
  ------------------
  |  Branch (905:7): [True: 16.0k, False: 9.00k]
  ------------------
  906|       |	
  907|  9.00k|	XMP_Uns8 escValue = 0;
  908|  9.00k|	const XMP_Uns8 * escPos = escStart + 3;
  909|       |	
  910|  9.00k|	if ( ('0' <= *escPos) && (*escPos <= '9') ) {
  ------------------
  |  Branch (910:7): [True: 7.90k, False: 1.09k]
  |  Branch (910:27): [True: 695, False: 7.20k]
  ------------------
  911|    695|		escValue = *escPos - '0';
  912|    695|		++escPos;
  913|  8.30k|	} else if ( ('A' <= *escPos) && (*escPos <= 'F') ) {
  ------------------
  |  Branch (913:14): [True: 6.83k, False: 1.47k]
  |  Branch (913:34): [True: 4.46k, False: 2.36k]
  ------------------
  914|  4.46k|		escValue = *escPos - 'A' + 10;
  915|  4.46k|		++escPos;
  916|  4.46k|	} else if ( ('a' <= *escPos) && (*escPos <= 'f') ) {
  ------------------
  |  Branch (916:14): [True: 2.01k, False: 1.82k]
  |  Branch (916:34): [True: 1.84k, False: 174]
  ------------------
  917|  1.84k|		escValue = *escPos - 'a' + 10;
  918|  1.84k|		++escPos;
  919|  1.84k|	}
  920|       |	
  921|  9.00k|	if ( ('0' <= *escPos) && (*escPos <= '9') ) {
  ------------------
  |  Branch (921:7): [True: 7.00k, False: 1.99k]
  |  Branch (921:27): [True: 626, False: 6.37k]
  ------------------
  922|    626|		escValue = (escValue << 4) + (*escPos - '0');
  923|    626|		++escPos;
  924|  8.37k|	} else if ( ('A' <= *escPos) && (*escPos <= 'F') ) {
  ------------------
  |  Branch (924:14): [True: 4.71k, False: 3.66k]
  |  Branch (924:34): [True: 795, False: 3.91k]
  ------------------
  925|    795|		escValue = (escValue << 4) + (*escPos - 'A' + 10);
  926|    795|		++escPos;
  927|  7.57k|	} else if ( ('a' <= *escPos) && (*escPos <= 'f') ) {
  ------------------
  |  Branch (927:14): [True: 3.29k, False: 4.28k]
  |  Branch (927:34): [True: 3.03k, False: 263]
  ------------------
  928|  3.03k|		escValue = (escValue << 4) + (*escPos - 'a' + 10);
  929|  3.03k|		++escPos;
  930|  3.03k|	}
  931|       |	
  932|  9.00k|	if ( escPos == bufEnd ) return -1;	// Partial escape.
  ------------------
  |  Branch (932:7): [True: 0, False: 9.00k]
  ------------------
  933|  9.00k|	if ( *escPos != ';' ) return 0;
  ------------------
  |  Branch (933:7): [True: 5.77k, False: 3.22k]
  ------------------
  934|       |	
  935|  3.22k|	size_t escLen = escPos - escStart + 1;
  936|  3.22k|	if ( escLen < 5 ) return 0;	// ! Catch "&#x;".
  ------------------
  |  Branch (936:7): [True: 212, False: 3.01k]
  ------------------
  937|       |	
  938|  3.01k|	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  100|  3.01k|#define kTab ((char)0x09)
  ------------------
              	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  101|  2.68k|#define kLF ((char)0x0A)
  ------------------
              	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  102|  2.22k|#define kCR ((char)0x0D)
  ------------------
  |  Branch (938:7): [True: 329, False: 2.68k]
  |  Branch (938:29): [True: 463, False: 2.22k]
  |  Branch (938:50): [True: 489, False: 1.73k]
  ------------------
  939|       |	
  940|  1.73k|	return escLen;	// Found a full "prohibited" numeric escape.
  941|       |	
  942|  3.01k|}	// CountControlEscape
XMPMeta-Parse.cpp:_ZL12FindRootNodeP7XMPMetaRK16XMLParserAdapterj:
  151|  3.11k|{
  152|  3.11k|	const XML_Node * rootNode = xmlParser.rootNode;
  153|       |	
  154|  3.11k|	if ( xmlParser.rootCount > 1 ) rootNode = PickBestRoot ( xmlParser.tree, options );
  ------------------
  |  Branch (154:7): [True: 52, False: 3.06k]
  ------------------
  155|  3.11k|	if ( rootNode == 0 ) return 0;
  ------------------
  |  Branch (155:7): [True: 219, False: 2.89k]
  ------------------
  156|       |	
  157|       |	// We have a root node. Try to extract previous toolkit version number.
  158|       |	
  159|  2.89k|	XMP_StringPtr verStr = "";
  160|       |	
  161|  2.89k|		XMP_Assert ( rootNode->name == "rdf:RDF" );
  ------------------
  |  |  142|  2.89k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  162|       |	
  163|  2.89k|		if ( (options & kXMP_RequireXMPMeta) &&
  ------------------
  |  Branch (163:8): [True: 0, False: 2.89k]
  ------------------
  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.26k|		for ( size_t attrNum = 0, attrLim = rootNode->parent->attrs.size(); attrNum < attrLim; ++attrNum ) {
  ------------------
  |  Branch (167:71): [True: 558, False: 2.70k]
  ------------------
  168|    558|			const XML_Node * currAttr =rootNode->parent->attrs[attrNum];
  169|    558|			if ( (currAttr->name == "x:xmptk") || (currAttr->name == "x:xaptk") ) {
  ------------------
  |  Branch (169:9): [True: 175, False: 383]
  |  Branch (169:42): [True: 12, False: 371]
  ------------------
  170|    187|				verStr = currAttr->value.c_str();
  171|    187|				break;
  172|    187|			}
  173|    558|		}
  174|       |		
  175|       |	// Decode the version number into MMmmuubbb digits. If any part is too big, peg it at 99 or 999.
  176|       |	
  177|  2.89k|	unsigned long part;
  178|  4.26k|	while ( (*verStr != 0) && ((*verStr < '0') || (*verStr > '9')) ) ++verStr;
  ------------------
  |  Branch (178:10): [True: 1.52k, False: 2.74k]
  |  Branch (178:29): [True: 307, False: 1.21k]
  |  Branch (178:48): [True: 1.06k, False: 152]
  ------------------
  179|       |	
  180|  2.89k|	part = 0;
  181|  3.38k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (181:10): [True: 636, False: 2.74k]
  |  Branch (181:28): [True: 534, False: 102]
  |  Branch (181:48): [True: 485, False: 49]
  ------------------
  182|    485|		part = (part * 10) + (*verStr - '0');
  183|    485|		++verStr;
  184|    485|	}
  185|  2.89k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (185:7): [True: 19, False: 2.87k]
  ------------------
  186|  2.89k|	thiz->prevTkVer = part * 100*100*1000;
  187|       |	
  188|  2.89k|	part = 0;
  189|  2.89k|	if ( *verStr == '.' ) ++verStr;
  ------------------
  |  Branch (189:7): [True: 86, False: 2.80k]
  ------------------
  190|  3.37k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (190:10): [True: 632, False: 2.74k]
  |  Branch (190:28): [True: 541, False: 91]
  |  Branch (190:48): [True: 483, False: 58]
  ------------------
  191|    483|		part = (part * 10) + (*verStr - '0');
  192|    483|		++verStr;
  193|    483|	}
  194|  2.89k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (194:7): [True: 26, False: 2.86k]
  ------------------
  195|  2.89k|	thiz->prevTkVer += part * 100*1000;
  196|       |	
  197|  2.89k|	part = 0;
  198|  2.89k|	if ( *verStr == '.' ) ++verStr;
  ------------------
  |  Branch (198:7): [True: 39, False: 2.85k]
  ------------------
  199|  3.18k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (199:10): [True: 439, False: 2.74k]
  |  Branch (199:28): [True: 354, False: 85]
  |  Branch (199:48): [True: 291, False: 63]
  ------------------
  200|    291|		part = (part * 10) + (*verStr - '0');
  201|    291|		++verStr;
  202|    291|	}
  203|  2.89k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (203:7): [True: 6, False: 2.88k]
  ------------------
  204|  2.89k|	thiz->prevTkVer += part * 1000;
  205|       |	
  206|  2.89k|	part = 0;
  207|  2.89k|	if ( *verStr == '-' ) ++verStr;
  ------------------
  |  Branch (207:7): [True: 66, False: 2.82k]
  ------------------
  208|  3.29k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (208:10): [True: 512, False: 2.78k]
  |  Branch (208:28): [True: 484, False: 28]
  |  Branch (208:48): [True: 397, False: 87]
  ------------------
  209|    397|		part = (part * 10) + (*verStr - '0');
  210|    397|		++verStr;
  211|    397|	}
  212|  2.89k|	if ( part > 999 ) part = 999;
  ------------------
  |  Branch (212:7): [True: 15, False: 2.88k]
  ------------------
  213|  2.89k|	thiz->prevTkVer += part;
  214|       |	
  215|  2.89k|	return rootNode;
  216|       |	
  217|  2.89k|}	// FindRootNode
XMPMeta-Parse.cpp:_ZL12PickBestRootRK8XML_Nodej:
  111|  1.03k|{
  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|  5.86k|	for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (115:66): [True: 4.90k, False: 958]
  ------------------
  116|  4.90k|		const XML_Node * childNode = xmlParent.content[childNum];
  117|  4.90k|		if ( childNode->kind != kElemNode ) continue;
  ------------------
  |  Branch (117:8): [True: 4.36k, False: 541]
  ------------------
  118|    541|		if ( (childNode->name == "x:xmpmeta") || (childNode->name == "x:xapmeta") ) return PickBestRoot ( *childNode, 0 );
  ------------------
  |  Branch (118:8): [True: 80, False: 461]
  |  Branch (118:44): [True: 0, False: 461]
  ------------------
  119|    541|	}
  120|       |	// Look among this parent's content for a bare rdf:RDF if that is allowed.
  121|    958|	if ( ! (options & kXMP_RequireXMPMeta) ) {
  ------------------
  |  Branch (121:7): [True: 958, False: 0]
  ------------------
  122|  5.68k|		for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (122:67): [True: 4.77k, False: 912]
  ------------------
  123|  4.77k|			const XML_Node * childNode = xmlParent.content[childNum];
  124|  4.77k|			if ( childNode->kind != kElemNode ) continue;
  ------------------
  |  Branch (124:9): [True: 4.31k, False: 460]
  ------------------
  125|    460|			if ( childNode->name == "rdf:RDF" ) return childNode;
  ------------------
  |  Branch (125:9): [True: 46, False: 414]
  ------------------
  126|    460|		}
  127|    958|	}
  128|       |	
  129|       |	// Recurse into the content.
  130|  1.81k|	for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (130:66): [True: 906, False: 912]
  ------------------
  131|    906|		const XML_Node * foundRoot = PickBestRoot ( *xmlParent.content[childNum], options );
  132|    906|		if ( foundRoot != 0 ) return foundRoot;
  ------------------
  |  Branch (132:8): [True: 0, False: 906]
  ------------------
  133|    906|	}
  134|       |	
  135|    912|	return 0;
  136|       |
  137|    912|}	// PickBestRoot
XMPMeta-Parse.cpp:_ZL17NormalizeDCArraysP8XMP_Node:
  231|  2.26k|{
  232|  2.26k|	XMP_Node * dcSchema = FindSchemaNode ( xmpTree, kXMP_NS_DC, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.26k|#define kXMP_ExistingOnly	false
  ------------------
  233|  2.26k|	if ( dcSchema == 0 ) return;
  ------------------
  |  Branch (233:7): [True: 2.10k, False: 163]
  ------------------
  234|       |	
  235|    523|	for ( size_t propNum = 0, propLimit = dcSchema->children.size(); propNum < propLimit; ++propNum ) {
  ------------------
  |  Branch (235:67): [True: 360, False: 163]
  ------------------
  236|    360|		XMP_Node *     currProp  = dcSchema->children[propNum];
  237|    360|		XMP_OptionBits arrayForm = 0;
  238|       |		
  239|    360|		if ( ! XMP_PropIsSimple ( currProp->options ) ) continue;	// Nothing to do if not simple.
  ------------------
  |  Branch (239:8): [True: 103, False: 257]
  ------------------
  240|       |		
  241|    257|		if ( (currProp->name == "dc:creator" )     ||	// See if it is supposed to be an array.
  ------------------
  |  Branch (241:8): [True: 26, False: 231]
  ------------------
  242|    231|		     (currProp->name == "dc:date" ) ) {			// *** Think about an array of char* and a loop.
  ------------------
  |  Branch (242:8): [True: 0, False: 231]
  ------------------
  243|     26|			arrayForm = kXMP_PropArrayIsOrdered;
  244|    231|		} else if (
  245|    231|		     (currProp->name == "dc:description" ) ||
  ------------------
  |  Branch (245:8): [True: 9, False: 222]
  ------------------
  246|    222|		     (currProp->name == "dc:rights" )      ||
  ------------------
  |  Branch (246:8): [True: 0, False: 222]
  ------------------
  247|    222|		     (currProp->name == "dc:title" ) ) {
  ------------------
  |  Branch (247:8): [True: 0, False: 222]
  ------------------
  248|      9|			arrayForm = kXMP_PropArrayIsAltText;
  249|    222|		} else if (
  250|    222|		     (currProp->name == "dc:contributor" ) ||
  ------------------
  |  Branch (250:8): [True: 0, False: 222]
  ------------------
  251|    222|		     (currProp->name == "dc:language" )    ||
  ------------------
  |  Branch (251:8): [True: 6, False: 216]
  ------------------
  252|    216|		     (currProp->name == "dc:publisher" )   ||
  ------------------
  |  Branch (252:8): [True: 6, False: 210]
  ------------------
  253|    210|		     (currProp->name == "dc:relation" )    ||
  ------------------
  |  Branch (253:8): [True: 9, False: 201]
  ------------------
  254|    201|		     (currProp->name == "dc:subject" )     ||
  ------------------
  |  Branch (254:8): [True: 0, False: 201]
  ------------------
  255|    201|		     (currProp->name == "dc:type" ) ) {
  ------------------
  |  Branch (255:8): [True: 3, False: 198]
  ------------------
  256|     24|			arrayForm = kXMP_PropValueIsArray;
  257|     24|		}
  258|    257|		if ( arrayForm == 0 ) continue;	// Nothing to do if it isn't supposed to be an array.
  ------------------
  |  Branch (258:8): [True: 198, False: 59]
  ------------------
  259|       |		
  260|     59|		arrayForm = VerifySetOptions ( arrayForm, 0 );	// Set the implicit array bits.
  261|     59|		XMP_Node * newArray = new XMP_Node ( dcSchema, currProp->name.c_str(), arrayForm );
  262|     59|		dcSchema->children[propNum] = newArray;
  263|     59|		newArray->children.push_back ( currProp );
  264|     59|		currProp->parent = newArray;
  265|     59|		currProp->name = kXMP_ArrayItemName;
  ------------------
  |  |  293|     59|#define kXMP_ArrayItemName	"[]"
  ------------------
  266|       |		
  267|     59|		if ( XMP_ArrayIsAltText ( arrayForm ) && (! (currProp->options & kXMP_PropHasLang)) ) {
  ------------------
  |  Branch (267:8): [True: 9, False: 50]
  |  Branch (267:44): [True: 9, False: 0]
  ------------------
  268|      9|			XMP_Node * newLang = new XMP_Node ( currProp, "xml:lang", "x-default", kXMP_PropIsQualifier );
  269|      9|			currProp->options |= (kXMP_PropHasQualifiers | kXMP_PropHasLang);
  270|      9|			if ( currProp->qualifiers.empty() ) {	// *** Need a util?
  ------------------
  |  Branch (270:9): [True: 9, False: 0]
  ------------------
  271|      9|				currProp->qualifiers.push_back ( newLang );
  272|      9|			} else {
  273|      0|				currProp->qualifiers.insert ( currProp->qualifiers.begin(), newLang );
  274|      0|			}
  275|      9|		}
  276|       |
  277|     59|	}
  278|       |	
  279|    163|}	// NormalizeDCArrays
XMPMeta-Parse.cpp:_ZL16TouchUpDataModelP7XMPMeta:
  665|  2.26k|{
  666|  2.26k|	XMP_Node & tree = xmp->tree;
  667|       |	
  668|       |	// Do special case touch ups for certain schema.
  669|       |
  670|  2.26k|	XMP_Node * currSchema = 0;
  671|       |
  672|  2.26k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_EXIF, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.26k|#define kXMP_ExistingOnly	false
  ------------------
  673|  2.26k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (673:7): [True: 21, False: 2.24k]
  ------------------
  674|       |
  675|       |		// Do a special case fix for exif:GPSTimeStamp.
  676|     21|		XMP_Node * gpsDateTime = FindChildNode ( currSchema, "exif:GPSTimeStamp", kXMP_ExistingOnly );
  ------------------
  |  |  296|     21|#define kXMP_ExistingOnly	false
  ------------------
  677|     21|		if ( gpsDateTime != 0 ) FixGPSTimeStamp ( currSchema, gpsDateTime );
  ------------------
  |  Branch (677:8): [True: 0, False: 21]
  ------------------
  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|     21|		XMP_Node * userComment = FindChildNode ( currSchema, "exif:UserComment", kXMP_ExistingOnly );
  ------------------
  |  |  296|     21|#define kXMP_ExistingOnly	false
  ------------------
  682|     21|		if ( (userComment != 0) && XMP_PropIsSimple ( userComment->options ) ) {
  ------------------
  |  Branch (682:8): [True: 0, False: 21]
  |  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|     21|	}
  697|       |
  698|  2.26k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_DM, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.26k|#define kXMP_ExistingOnly	false
  ------------------
  699|  2.26k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (699:7): [True: 0, False: 2.26k]
  ------------------
  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.26k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_DC, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.26k|#define kXMP_ExistingOnly	false
  ------------------
  707|  2.26k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (707:7): [True: 163, False: 2.10k]
  ------------------
  708|       |		// Do a special case fix for dc:subject, make sure it is an unordered array.
  709|    163|		XMP_Node * dcSubject = FindChildNode ( currSchema, "dc:subject", kXMP_ExistingOnly );
  ------------------
  |  |  296|    163|#define kXMP_ExistingOnly	false
  ------------------
  710|    163|		if ( dcSubject != 0 ) {
  ------------------
  |  Branch (710:8): [True: 28, False: 135]
  ------------------
  711|     28|                        XMP_OptionBits keepMask = static_cast<XMP_OptionBits>(~(kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate | kXMP_PropArrayIsAltText));
  712|     28|			dcSubject->options &= keepMask;	// Make sure any ordered array bits are clear.
  713|     28|		}
  714|    163|	}
  715|       |	
  716|       |	// Fix any broken AltText arrays that we know about.
  717|       |	
  718|  2.26k|	RepairAltText ( tree, kXMP_NS_DC, "dc:description" );	// ! Note inclusion of prefixes for direct node lookup!
  719|  2.26k|	RepairAltText ( tree, kXMP_NS_DC, "dc:rights" );
  720|  2.26k|	RepairAltText ( tree, kXMP_NS_DC, "dc:title" );
  721|  2.26k|	RepairAltText ( tree, kXMP_NS_XMP_Rights, "xmpRights:UsageTerms" );
  722|  2.26k|	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.26k|	if ( ! tree.name.empty() ) {
  ------------------
  |  Branch (731:7): [True: 349, False: 1.92k]
  ------------------
  732|       |
  733|    349|		bool nameIsUUID = false;
  734|    349|		XMP_StringPtr nameStr = tree.name.c_str();
  735|       |
  736|    349|		if ( XMP_LitNMatch ( nameStr, "uuid:", 5 ) ) {
  ------------------
  |  |   97|    349|#define XMP_LitNMatch(s,l,n)	(std::strncmp((s),(l),(n)) == 0)
  |  |  ------------------
  |  |  |  Branch (97:30): [True: 41, False: 308]
  |  |  ------------------
  ------------------
  737|       |
  738|     41|			nameIsUUID = true;
  739|       |
  740|    308|		} else if ( tree.name.size() == 36 ) {
  ------------------
  |  Branch (740:15): [True: 226, False: 82]
  ------------------
  741|       |
  742|    226|			nameIsUUID = true;	// ! Assume true, we'll set it to false below if not.
  743|  3.25k|			for ( int i = 0;  i < 36; ++i ) {
  ------------------
  |  Branch (743:22): [True: 3.21k, False: 31]
  ------------------
  744|  3.21k|				char ch = nameStr[i];
  745|  3.21k|				if ( ch == '-' ) {
  ------------------
  |  Branch (745:10): [True: 104, False: 3.11k]
  ------------------
  746|    104|					if ( (i == 8) || (i == 13) || (i == 18) || (i == 23) ) continue;
  ------------------
  |  Branch (746:11): [True: 12, False: 92]
  |  Branch (746:23): [True: 12, False: 80]
  |  Branch (746:36): [True: 20, False: 60]
  |  Branch (746:49): [True: 22, False: 38]
  ------------------
  747|     38|					nameIsUUID = false;
  748|     38|					break;
  749|  3.11k|				} else {
  750|  3.11k|					if ( (('0' <= ch) && (ch <= '9')) || (('a' <= ch) && (ch <= 'z')) ) continue;
  ------------------
  |  Branch (750:12): [True: 3.03k, False: 81]
  |  Branch (750:27): [True: 538, False: 2.49k]
  |  Branch (750:44): [True: 2.43k, False: 139]
  |  Branch (750:59): [True: 2.42k, False: 18]
  ------------------
  751|    157|					nameIsUUID = false;
  752|    157|					break;
  753|  3.11k|				}
  754|  3.21k|			}
  755|       |
  756|    226|		}
  757|       |		
  758|    349|		if ( nameIsUUID ) {
  ------------------
  |  Branch (758:8): [True: 72, False: 277]
  ------------------
  759|       |
  760|     72|			XMP_ExpandedXPath expPath;
  761|     72|			ExpandXPath ( kXMP_NS_XMP_MM, "InstanceID", &expPath );
  762|     72|			XMP_Node * idNode = FindNode ( &tree, expPath, kXMP_CreateNodes, 0 );
  ------------------
  |  |  295|     72|#define kXMP_CreateNodes	true
  ------------------
  763|     72|			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: 72]
  ------------------
  764|       |
  765|     72|			idNode->options = 0;	// Clobber any existing xmpMM:InstanceID.
  766|     72|			idNode->value = tree.name;
  767|     72|			idNode->RemoveChildren();
  768|     72|			idNode->RemoveQualifiers();
  769|       |
  770|     72|			tree.name.erase();
  771|       |
  772|     72|		}
  773|       |
  774|    349|	}
  775|       |
  776|  2.26k|}	// TouchUpDataModel
XMPMeta-Parse.cpp:_ZL13RepairAltTextR8XMP_NodePKcS2_:
  609|  11.3k|{
  610|  11.3k|	XMP_Node * schemaNode = FindSchemaNode ( &tree, schemaNS, kXMP_ExistingOnly );
  ------------------
  |  |  296|  11.3k|#define kXMP_ExistingOnly	false
  ------------------
  611|  11.3k|	if ( schemaNode == 0 ) return;
  ------------------
  |  Branch (611:7): [True: 10.8k, False: 521]
  ------------------
  612|       |	
  613|    521|	XMP_Node * arrayNode = FindChildNode ( schemaNode, arrayName, kXMP_ExistingOnly );
  ------------------
  |  |  296|    521|#define kXMP_ExistingOnly	false
  ------------------
  614|    521|	if ( (arrayNode == 0) || XMP_ArrayIsAltText ( arrayNode->options ) ) return;	// Already OK.
  ------------------
  |  Branch (614:7): [True: 433, False: 88]
  |  Branch (614:27): [True: 55, False: 33]
  ------------------
  615|       |	
  616|     33|	if ( ! XMP_PropIsArray ( arrayNode->options ) ) return;	// ! Not even an array, leave it alone.
  ------------------
  |  Branch (616:7): [True: 0, False: 33]
  ------------------
  617|       |	// *** Should probably change simple values to LangAlt with 'x-default' item.
  618|       |	
  619|     33|	arrayNode->options |= (kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate | kXMP_PropArrayIsAltText);
  620|       |	
  621|     64|	for ( int i = arrayNode->children.size()-1; i >= 0; --i ) {	// ! Need a signed index type.
  ------------------
  |  Branch (621:46): [True: 31, False: 33]
  ------------------
  622|       |
  623|     31|		XMP_Node * currChild = arrayNode->children[i];
  624|       |
  625|     31|		if ( ! XMP_PropIsSimple ( currChild->options ) ) {
  ------------------
  |  Branch (625:8): [True: 11, False: 20]
  ------------------
  626|       |
  627|       |			// Delete non-simple children.
  628|     11|			delete ( currChild );
  629|     11|			arrayNode->children.erase ( arrayNode->children.begin() + i );
  630|       |
  631|     20|		} else if ( ! XMP_PropHasLang ( currChild->options ) ) {
  ------------------
  |  Branch (631:15): [True: 19, False: 1]
  ------------------
  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|     31|	}
  655|       |
  656|     33|}	// 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|    949|	for ( size_t schemaNum = 0, schemaLim = xmpObj.tree.children.size(); schemaNum < schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (1072:71): [True: 702, False: 247]
  ------------------
 1073|    702|		const XMP_Node * currSchema = xmpObj.tree.children[schemaNum];
 1074|    702|		outputLen += 2*(baseIndent+2)*indentLen + strlen(kRDF_SchemaStart) + treeNameLen + strlen(kRDF_SchemaEnd) + 2;
 1075|    702|		outputLen += EstimateRDFSize ( currSchema, baseIndent+2, indentLen );
 1076|    702|	}
 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.79k|{
   84|  4.79k|	size_t outputLen = 2 * (indent*indentLen + currNode->name.size() + 4);	// The property element tags.
   85|       |	
   86|  4.79k|	if ( ! currNode->qualifiers.empty() ) {
  ------------------
  |  Branch (86:7): [True: 137, False: 4.66k]
  ------------------
   87|       |		// This node has qualifiers, assume it is written using rdf:value and estimate the qualifiers.
   88|       |
   89|    137|		indent += 2;	// Everything else is indented inside the rdf:Description element.
   90|    137|		outputLen += 2 * ((indent-1)*indentLen + strlen(kRDF_StructStart) + 2);	// The rdf:Description tags.
   91|    137|		outputLen += 2 * (indent*indentLen + strlen(kRDF_ValueStart) + 2);		// The rdf:value tags.
   92|       |
   93|    315|		for ( size_t qualNum = 0, qualLim = currNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (93:68): [True: 178, False: 137]
  ------------------
   94|    178|			const XMP_Node * currQual = currNode->qualifiers[qualNum];
   95|    178|			outputLen += EstimateRDFSize ( currQual, indent, indentLen );
   96|    178|		}
   97|       |
   98|    137|	}
   99|       |	
  100|  4.79k|	if ( currNode->options & kXMP_PropValueIsStruct ) {
  ------------------
  |  Branch (100:7): [True: 123, False: 4.67k]
  ------------------
  101|    123|		indent += 1;
  102|    123|		outputLen += 2 * (indent*indentLen + strlen(kRDF_StructStart) + 2);	// The rdf:Description tags.
  103|  4.67k|	} else if ( currNode->options & kXMP_PropValueIsArray ) {
  ------------------
  |  Branch (103:14): [True: 392, False: 4.28k]
  ------------------
  104|    392|		indent += 2;
  105|    392|		outputLen += 2 * ((indent-1)*indentLen + strlen(kRDF_BagStart) + 2);		// The rdf:Bag/Seq/Alt tags.
  106|    392|		outputLen += 2 * currNode->children.size() * (strlen(kRDF_ItemStart) + 2);	// The rdf:li tags, indent counted in children.
  107|  4.28k|	} else if ( ! (currNode->options & kXMP_SchemaNode) ) {
  ------------------
  |  Branch (107:14): [True: 3.58k, False: 702]
  ------------------
  108|  3.58k|		outputLen += currNode->value.size();	// This is a leaf value node.
  109|  3.58k|	}
  110|       |
  111|  8.71k|	for ( size_t childNum = 0, childLim = currNode->children.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (111:67): [True: 3.91k, False: 4.79k]
  ------------------
  112|  3.91k|		const XMP_Node * currChild = currNode->children[childNum];
  113|  3.91k|		outputLen += EstimateRDFSize ( currChild, indent+1, indentLen );
  114|  3.91k|	}
  115|       |
  116|  4.79k|	return outputLen;
  117|       |	
  118|  4.79k|}	// 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|  46.2k|	for ( ; currPos != endPos; ++currPos ) totalLen += currPos->first.size();
  ------------------
  |  Branch (989:10): [True: 46.0k, False: 247]
  ------------------
  990|       |
  991|    247|	XMP_VarString usedNS;
  992|    247|	usedNS.reserve ( totalLen );
  993|    247|	usedNS = "xml:rdf:";
  994|       |
  995|    949|	for ( schema = 0, schemaLim = xmpTree.children.size(); schema != schemaLim; ++schema ) {
  ------------------
  |  Branch (995:57): [True: 702, False: 247]
  ------------------
  996|    702|		const XMP_Node * currSchema = xmpTree.children[schema];
  997|    702|		DeclareUsedNamespaces ( currSchema, usedNS, outputStr, newline, indentStr, baseIndent+4 );
  998|    702|	}
  999|       |	
 1000|       |	// Write the top level "attrProps" and close the rdf:Description start tag.
 1001|    247|	bool allAreAttrs = true;
 1002|    949|	for ( schema = 0, schemaLim = xmpTree.children.size(); schema != schemaLim; ++schema ) {
  ------------------
  |  Branch (1002:57): [True: 702, False: 247]
  ------------------
 1003|    702|		const XMP_Node * currSchema = xmpTree.children[schema];
 1004|    702|		allAreAttrs &= SerializeCompactRDFAttrProps ( currSchema, outputStr, newline, indentStr, baseIndent+3 );
 1005|    702|	}
 1006|    247|	if ( ! allAreAttrs ) {
  ------------------
  |  Branch (1006:7): [True: 109, False: 138]
  ------------------
 1007|    109|		outputStr += ">";
 1008|    109|		outputStr += newline;
 1009|    138|	} else {
 1010|    138|		outputStr += "/>";
 1011|    138|		outputStr += newline;
 1012|    138|		return;	// ! Done if all properties in all schema are written as attributes.
 1013|    138|	}
 1014|       |
 1015|       |	// Write the remaining properties for each schema.
 1016|    551|	for ( schema = 0, schemaLim = xmpTree.children.size(); schema != schemaLim; ++schema ) {
  ------------------
  |  Branch (1016:57): [True: 442, False: 109]
  ------------------
 1017|    442|		const XMP_Node * currSchema = xmpTree.children[schema];
 1018|    442|		SerializeCompactRDFElemProps ( currSchema, outputStr, newline, indentStr, baseIndent+3 );
 1019|    442|	}
 1020|       |	
 1021|       |	// Write the rdf:Description end tag.
 1022|       |	// *** Elide the end tag if everything (all props in all schema) is an attr.
 1023|    327|	for ( level = baseIndent+2; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (1023:30): [True: 218, False: 109]
  ------------------
 1024|    109|	outputStr += kRDF_SchemaEnd;
 1025|    109|	outputStr += newline;
 1026|       |
 1027|    109|}	// SerializeCompactRDFSchemas
XMPMeta-Serialize.cpp:_ZL21DeclareUsedNamespacesPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES9_PKcSB_i:
  191|  4.79k|{
  192|       |
  193|  4.79k|	if ( currNode->options & kXMP_SchemaNode ) {
  ------------------
  |  Branch (193:7): [True: 702, False: 4.09k]
  ------------------
  194|       |		// The schema node name is the URI, the value is the prefix.
  195|    702|		DeclareOneNamespace ( currNode->value, currNode->name, usedNS, outputStr, newline, indentStr, indent );
  196|  4.09k|	} else if ( currNode->options & kXMP_PropValueIsStruct ) {
  ------------------
  |  Branch (196:14): [True: 123, False: 3.97k]
  ------------------
  197|    471|		for ( size_t fieldNum = 0, fieldLim = currNode->children.size(); fieldNum < fieldLim; ++fieldNum ) {
  ------------------
  |  Branch (197:68): [True: 348, False: 123]
  ------------------
  198|    348|			const XMP_Node * currField = currNode->children[fieldNum];
  199|    348|			DeclareElemNamespace ( currField->name, usedNS, outputStr, newline, indentStr, indent );
  200|    348|		}
  201|    123|	}
  202|       |
  203|  8.71k|	for ( size_t childNum = 0, childLim = currNode->children.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (203:67): [True: 3.91k, False: 4.79k]
  ------------------
  204|  3.91k|		const XMP_Node * currChild = currNode->children[childNum];
  205|  3.91k|		DeclareUsedNamespaces ( currChild, usedNS, outputStr, newline, indentStr, indent );
  206|  3.91k|	}
  207|       |
  208|  4.97k|	for ( size_t qualNum = 0, qualLim = currNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (208:67): [True: 178, False: 4.79k]
  ------------------
  209|    178|		const XMP_Node * currQual = currNode->qualifiers[qualNum];
  210|    178|		DeclareElemNamespace ( currQual->name, usedNS, outputStr, newline, indentStr, indent );
  211|    178|		DeclareUsedNamespaces ( currQual, usedNS, outputStr, newline, indentStr, indent );
  212|    178|	}
  213|       |	
  214|  4.79k|}	// DeclareUsedNamespaces
XMPMeta-Serialize.cpp:_ZL19DeclareOneNamespaceRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_RS5_S8_PKcSA_i:
  133|  1.22k|{
  134|  1.22k|	size_t nsPos = usedNS.find ( nsPrefix );
  135|       |
  136|  1.22k|	if ( nsPos == XMP_VarString::npos ) {
  ------------------
  |  Branch (136:7): [True: 592, False: 636]
  ------------------
  137|       |		
  138|    592|		outputStr += newline;
  139|  2.96k|		for ( ; indent > 0; --indent ) outputStr += indentStr;
  ------------------
  |  Branch (139:11): [True: 2.36k, False: 592]
  ------------------
  140|    592|		outputStr += "xmlns:";
  141|    592|		outputStr += nsPrefix;
  142|    592|		outputStr[outputStr.size()-1] = '=';	// Change the colon to =.
  143|    592|		outputStr += '"';
  144|    592|		outputStr += nsURI;
  145|    592|		outputStr += '"';
  146|       |
  147|    592|		usedNS += nsPrefix;
  148|       |
  149|    592|	}
  150|       |
  151|  1.22k|}	// DeclareOneNamespace
XMPMeta-Serialize.cpp:_ZL20DeclareElemNamespaceRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERS5_S8_PKcSA_i:
  165|    526|{
  166|    526|	size_t colonPos = elemName.find ( ':' );
  167|       |
  168|    526|	if ( colonPos != XMP_VarString::npos ) {
  ------------------
  |  Branch (168:7): [True: 526, False: 0]
  ------------------
  169|    526|		XMP_VarString nsPrefix ( elemName.substr ( 0, colonPos+1 ) );
  170|    526|		XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( nsPrefix );
  171|    526|		XMP_Enforce ( prefixPos != sNamespacePrefixToURIMap->end() );
  ------------------
  |  |  148|    526|		if ( ! (c) ) {																				\
  |  |  ------------------
  |  |  |  Branch (148:8): [True: 0, False: 526]
  |  |  ------------------
  |  |  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|    526|		DeclareOneNamespace ( nsPrefix, prefixPos->second, usedNS, outputStr, newline, indentStr, indent );
  173|    526|	}
  174|       |
  175|    526|}	// DeclareElemNamespace
XMPMeta-Serialize.cpp:_ZL28SerializeCompactRDFAttrPropsPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcSB_i:
  682|    825|{
  683|    825|	size_t prop, propLim;
  684|    825|	bool allAreAttrs = true;
  685|       |
  686|  3.92k|	for ( prop = 0, propLim = parentNode->children.size(); prop != propLim; ++prop ) {
  ------------------
  |  Branch (686:57): [True: 3.09k, False: 825]
  ------------------
  687|       |
  688|  3.09k|		const XMP_Node * currProp = parentNode->children[prop];
  689|  3.09k|		if ( ! CanBeRDFAttrProp ( currProp ) ) {
  ------------------
  |  Branch (689:8): [True: 474, False: 2.62k]
  ------------------
  690|    474|			allAreAttrs = false;
  691|    474|			continue;
  692|    474|		}
  693|       |		
  694|  2.62k|		outputStr += newline;
  695|  11.3k|		for ( XMP_Index level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (695:35): [True: 8.76k, False: 2.62k]
  ------------------
  696|  2.62k|		outputStr += currProp->name;
  697|  2.62k|		outputStr += "=\"";
  698|  2.62k|		AppendNodeValue ( outputStr, currProp->value, kForAttribute );
  699|  2.62k|		outputStr += '"';
  700|       |
  701|  2.62k|	}
  702|       |	
  703|    825|	return allAreAttrs;
  704|       |
  705|    825|}	// SerializeCompactRDFAttrProps
XMPMeta-Serialize.cpp:_ZL16CanBeRDFAttrPropPK8XMP_Node:
  341|  6.70k|{
  342|       |	
  343|  6.70k|	if ( propNode->name[0] == '[' ) return false;
  ------------------
  |  Branch (343:7): [True: 819, False: 5.88k]
  ------------------
  344|  5.88k|	if ( ! propNode->qualifiers.empty() ) return false;
  ------------------
  |  Branch (344:7): [True: 88, False: 5.80k]
  ------------------
  345|  5.80k|	if ( propNode->options & kXMP_PropValueIsURI ) return false;
  ------------------
  |  Branch (345:7): [True: 0, False: 5.80k]
  ------------------
  346|  5.80k|	if ( propNode->options & kXMP_PropCompositeMask ) return false;
  ------------------
  |  Branch (346:7): [True: 860, False: 4.94k]
  ------------------
  347|       |	
  348|  4.94k|	return true;
  349|       |	
  350|  5.80k|}	// CanBeRDFAttrProp
XMPMeta-Serialize.cpp:_ZL15AppendNodeValueRNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERKS5_b:
  281|  3.57k|{
  282|       |
  283|  3.57k|	unsigned char * runStart = (unsigned char *) value.c_str();
  284|  3.57k|	unsigned char * runLimit  = runStart + value.size();
  285|  3.57k|	unsigned char * runEnd;
  286|  3.57k|	unsigned char   ch=0;
  287|       |	
  288|  9.78k|	while ( runStart < runLimit ) {
  ------------------
  |  Branch (288:10): [True: 6.21k, False: 3.57k]
  ------------------
  289|       |	
  290|   129k|		for ( runEnd = runStart; runEnd < runLimit; ++runEnd ) {
  ------------------
  |  Branch (290:28): [True: 125k, False: 3.39k]
  ------------------
  291|   125k|			ch = *runEnd;
  292|   125k|			if ( forAttribute && (ch == '"') ) break;
  ------------------
  |  Branch (292:9): [True: 52.0k, False: 73.8k]
  |  Branch (292:25): [True: 84, False: 51.9k]
  ------------------
  293|   125k|			if ( (ch < 0x20) || (ch == '&') || (ch == '<') || (ch == '>') ) break;
  ------------------
  |  Branch (293:9): [True: 1.10k, False: 124k]
  |  Branch (293:24): [True: 0, False: 124k]
  |  Branch (293:39): [True: 0, False: 124k]
  |  Branch (293:54): [True: 1.63k, False: 123k]
  ------------------
  294|   125k|		}
  295|       |		
  296|  6.21k|		outputStr.append ( (char *) runStart, (runEnd - runStart) );
  297|       |		
  298|  6.21k|		if ( runEnd < runLimit ) {
  ------------------
  |  Branch (298:8): [True: 2.81k, False: 3.39k]
  ------------------
  299|       |
  300|  2.81k|			if ( ch < 0x20 ) {
  ------------------
  |  Branch (300:9): [True: 1.10k, False: 1.71k]
  ------------------
  301|       |			
  302|  1.10k|				XMP_Assert ( (ch == kTab) || (ch == kLF) || (ch == kCR) );
  ------------------
  |  |  142|  1.10k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  303|       |
  304|  1.10k|				char hexBuf[16];
  305|  1.10k|				memcpy ( hexBuf, "&#xn;", 5 );
  306|  1.10k|				hexBuf[3] = kHexDigits[ch&0xF];
  ------------------
  |  |   94|  1.10k|#define kHexDigits "0123456789ABCDEF"
  ------------------
  307|  1.10k|				outputStr.append ( hexBuf, 5 );
  308|       |
  309|  1.71k|			} else {
  310|       |
  311|  1.71k|				if ( ch == '"' ) {
  ------------------
  |  Branch (311:10): [True: 84, False: 1.63k]
  ------------------
  312|     84|					outputStr += "&quot;";
  313|  1.63k|				} else if ( ch == '<' ) {
  ------------------
  |  Branch (313:17): [True: 0, False: 1.63k]
  ------------------
  314|      0|					outputStr += "&lt;";
  315|  1.63k|				} else if ( ch == '>' ) {
  ------------------
  |  Branch (315:17): [True: 1.63k, False: 0]
  ------------------
  316|  1.63k|					outputStr += "&gt;";
  317|  1.63k|				} else {
  318|      0|					XMP_Assert ( ch == '&' );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
  319|      0|					outputStr += "&amp;";
  320|      0|				}
  321|       |
  322|  1.71k|			}
  323|       |
  324|  2.81k|			++runEnd;
  325|       |
  326|  2.81k|		}
  327|       |		
  328|  6.21k|		runStart = runEnd;
  329|       |	
  330|  6.21k|	}
  331|       |
  332|  3.57k|}	// AppendNodeValue
XMPMeta-Serialize.cpp:_ZL28SerializeCompactRDFElemPropsPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcSB_i:
  753|    834|{
  754|    834|	XMP_Index level;
  755|       |
  756|  4.09k|	for ( size_t prop = 0, propLim = parentNode->children.size(); prop != propLim; ++prop ) {
  ------------------
  |  Branch (756:64): [True: 3.26k, False: 834]
  ------------------
  757|       |
  758|  3.26k|		const XMP_Node * propNode = parentNode->children[prop];
  759|  3.26k|		if ( CanBeRDFAttrProp ( propNode ) ) continue;
  ------------------
  |  Branch (759:8): [True: 1.96k, False: 1.29k]
  ------------------
  760|       |
  761|  1.29k|		bool emitEndTag = true;
  762|  1.29k|		bool indentEndTag = true;
  763|       |
  764|  1.29k|		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.29k|		XMP_StringPtr elemName = propNode->name.c_str();
  772|  1.29k|		if ( *elemName == '[' ) elemName = "rdf:li";
  ------------------
  |  Branch (772:8): [True: 819, False: 474]
  ------------------
  773|       |
  774|  6.81k|		for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (774:25): [True: 5.51k, False: 1.29k]
  ------------------
  775|  1.29k|		outputStr += '<';
  776|  1.29k|		outputStr += elemName;
  777|       |
  778|  1.29k|		#define isCompact	false
  779|  1.29k|		bool hasGeneralQualifiers = isCompact;	// Might also become true later.
  ------------------
  |  |  778|  1.29k|		#define isCompact	false
  ------------------
  780|  1.29k|		bool hasRDFResourceQual   = false;
  781|       |
  782|  1.47k|		for ( size_t qualNum = 0, qualLim = propNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (782:68): [True: 178, False: 1.29k]
  ------------------
  783|    178|			const XMP_Node * currQual = propNode->qualifiers[qualNum];
  784|    178|			if ( ! IsRDFAttrQualifier ( currQual->name ) ) {
  ------------------
  |  Branch (784:9): [True: 58, False: 120]
  ------------------
  785|     58|				hasGeneralQualifiers = true;
  786|    120|			} else {
  787|    120|				if ( currQual->name == "rdf:resource" ) hasRDFResourceQual = true;
  ------------------
  |  Branch (787:10): [True: 0, False: 120]
  ------------------
  788|    120|				outputStr += ' ';
  789|    120|				outputStr += currQual->name;
  790|    120|				outputStr += "=\"";
  791|    120|				AppendNodeValue ( outputStr, currQual->value, kForAttribute );
  792|    120|				outputStr += '"';
  793|    120|			}
  794|    178|		}
  795|       |		
  796|       |		// --------------------------------------------------------
  797|       |		// Process the property according to the standard patterns.
  798|       |	
  799|  1.29k|		if ( hasGeneralQualifiers ) {
  ------------------
  |  Branch (799:8): [True: 17, False: 1.27k]
  ------------------
  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|     75|			for ( ; qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (818:12): [True: 58, False: 17]
  ------------------
  819|     58|				const XMP_Node * currQual = propNode->qualifiers[qualNum];
  820|     58|				SerializePrettyRDFProperty ( currQual, outputStr, newline, indentStr, indent+1 );
  821|     58|			}
  822|       |			
  823|  1.27k|		} else {
  824|       |
  825|       |			// --------------------------------------------------------------------
  826|       |			// This node has only attribute qualifiers. Emit as a property element.
  827|       |			
  828|  1.27k|			if ( propForm == 0 ) {
  ------------------
  |  Branch (828:9): [True: 761, False: 515]
  ------------------
  829|       |			
  830|       |				// --------------------------
  831|       |				// This is a simple property.
  832|       |				
  833|    761|				if ( propNode->options & kXMP_PropValueIsURI ) {
  ------------------
  |  Branch (833:10): [True: 0, False: 761]
  ------------------
  834|      0|					outputStr += " rdf:resource=\"";
  835|      0|					AppendNodeValue ( outputStr, propNode->value, kForAttribute );
  836|      0|					outputStr += "\"/>";
  837|      0|					outputStr += newline;
  838|      0|					emitEndTag = false;
  839|    761|				} else if ( propNode->value.empty() ) {
  ------------------
  |  Branch (839:17): [True: 7, False: 754]
  ------------------
  840|      7|					outputStr += "/>";
  841|      7|					outputStr += newline;
  842|      7|					emitEndTag = false;
  843|    754|				} else {
  844|    754|					outputStr += '>';
  845|    754|					AppendNodeValue ( outputStr, propNode->value, kForElement );
  846|    754|					indentEndTag = false;
  847|    754|				}
  848|       |				
  849|    761|			} else if ( propForm & kXMP_PropValueIsArray ) {
  ------------------
  |  Branch (849:16): [True: 392, False: 123]
  ------------------
  850|       |
  851|       |				// -----------------
  852|       |				// This is an array.
  853|       |				
  854|    392|				outputStr += '>';
  855|    392|				outputStr += newline;
  856|    392|				EmitRDFArrayTag ( propForm, outputStr, newline, indentStr, indent+1, propNode->children.size(), kIsStartTag );
  857|       |			
  858|    392|				if ( XMP_ArrayIsAltText(propNode->options) ) NormalizeLangArray ( (XMP_Node*)propNode );
  ------------------
  |  Branch (858:10): [True: 0, False: 392]
  ------------------
  859|    392|				SerializeCompactRDFElemProps ( propNode, outputStr, newline, indentStr, indent+2 );
  860|       |
  861|    392|				EmitRDFArrayTag ( propForm, outputStr, newline, indentStr, indent+1, propNode->children.size(), kIsEndTag );
  862|       |
  863|    392|			} else {
  864|       |
  865|       |				// ----------------------
  866|       |				// This must be a struct.
  867|       |				
  868|    123|				XMP_Assert ( propForm & kXMP_PropValueIsStruct );
  ------------------
  |  |  142|    123|	#define XMP_Assert(c)	((void) 0)
  ------------------
  869|       |
  870|    123|				bool hasAttrFields = false;
  871|    123|				bool hasElemFields = false;
  872|       |			
  873|    123|				size_t field, fieldLim;
  874|    471|				for ( field = 0, fieldLim = propNode->children.size(); field != fieldLim; ++field ) {
  ------------------
  |  Branch (874:60): [True: 348, False: 123]
  ------------------
  875|    348|					XMP_Node * currField = propNode->children[field];
  876|    348|					if ( CanBeRDFAttrProp ( currField ) ) {
  ------------------
  |  Branch (876:11): [True: 348, False: 0]
  ------------------
  877|    348|						hasAttrFields = true;
  878|    348|						if ( hasElemFields ) break;	// No sense looking further.
  ------------------
  |  Branch (878:12): [True: 0, False: 348]
  ------------------
  879|    348|					} else {
  880|      0|						hasElemFields = true;
  881|      0|						if ( hasAttrFields ) break;	// No sense looking further.
  ------------------
  |  Branch (881:12): [True: 0, False: 0]
  ------------------
  882|      0|					}
  883|    348|				}
  884|       |				
  885|    123|				if ( hasRDFResourceQual && hasElemFields ) {
  ------------------
  |  Branch (885:10): [True: 0, False: 123]
  |  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|    123|				if ( propNode->children.size() == 0 ) {
  ------------------
  |  Branch (889:10): [True: 0, False: 123]
  ------------------
  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|    123|				} else if ( ! hasElemFields ) {
  ------------------
  |  Branch (897:17): [True: 123, False: 0]
  ------------------
  898|       |
  899|       |					// All fields can be attributes, use the emptyPropertyElt form.
  900|    123|					SerializeCompactRDFAttrProps ( propNode, outputStr, newline, indentStr, indent+1 );
  901|    123|					outputStr += "/>";
  902|    123|					outputStr += newline;
  903|    123|					emitEndTag = false;
  904|       |
  905|    123|				} 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|    123|			}
  930|       |
  931|  1.27k|		}
  932|       |		
  933|       |		// ----------------------------------
  934|       |		// Emit the property element end tag.
  935|       |		
  936|  1.29k|		if ( emitEndTag ) {
  ------------------
  |  Branch (936:8): [True: 1.16k, False: 130]
  ------------------
  937|  1.67k|			if ( indentEndTag ) for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (937:9): [True: 409, False: 754]
  |  Branch (937:46): [True: 1.26k, False: 409]
  ------------------
  938|  1.16k|			outputStr += "</";
  939|  1.16k|			outputStr += elemName;
  940|  1.16k|			outputStr += '>';
  941|  1.16k|			outputStr += newline;
  942|  1.16k|		}
  943|       |
  944|  1.29k|	}
  945|       |	
  946|    834|}	// SerializeCompactRDFElemProps
XMPMeta-Serialize.cpp:_ZL18IsRDFAttrQualifierNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  361|    236|{
  362|       |
  363|    816|	for ( size_t i = 0; *sAttrQualifiers[i] != 0; ++i ) {
  ------------------
  |  Branch (363:22): [True: 700, False: 116]
  ------------------
  364|    700|		if ( qualName == sAttrQualifiers[i] ) return true;
  ------------------
  |  Branch (364:8): [True: 120, False: 580]
  ------------------
  365|    700|	}
  366|       |
  367|    116|	return false;
  368|       |	
  369|    236|}	// IsRDFAttrQualifier
XMPMeta-Serialize.cpp:_ZL26SerializePrettyRDFPropertyPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcSB_ib:
  410|     75|{
  411|     75|	XMP_Index level;
  412|     75|	bool emitEndTag   = true;
  413|     75|	bool indentEndTag = true;
  414|       |
  415|     75|	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|     75|	XMP_StringPtr elemName = propNode->name.c_str();
  421|     75|	if ( emitAsRDFValue ) {
  ------------------
  |  Branch (421:7): [True: 17, False: 58]
  ------------------
  422|     17|		elemName= "rdf:value";
  423|     58|	} else if ( *elemName == '[' ) {
  ------------------
  |  Branch (423:14): [True: 0, False: 58]
  ------------------
  424|      0|		elemName = "rdf:li";
  425|      0|	}
  426|       |
  427|    525|	for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (427:24): [True: 450, False: 75]
  ------------------
  428|     75|	outputStr += '<';
  429|     75|	outputStr += elemName;
  430|       |	
  431|     75|	#define isCompact	false
  432|     75|	bool hasGeneralQualifiers = isCompact;	// Might also become true later.
  ------------------
  |  |  431|     75|	#define isCompact	false
  ------------------
  433|     75|	bool hasRDFResourceQual   = false;
  434|       |	
  435|    133|	for ( size_t qualNum = 0, qualLim = propNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (435:67): [True: 58, False: 75]
  ------------------
  436|     58|		const XMP_Node * currQual = propNode->qualifiers[qualNum];
  437|     58|		if ( ! IsRDFAttrQualifier ( currQual->name ) ) {
  ------------------
  |  Branch (437:8): [True: 58, False: 0]
  ------------------
  438|     58|			hasGeneralQualifiers = true;
  439|     58|		} 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|     58|	}
  450|       |	
  451|       |	// --------------------------------------------------------
  452|       |	// Process the property according to the standard patterns.
  453|       |	
  454|     75|	if ( hasGeneralQualifiers && (! emitAsRDFValue) ) {
  ------------------
  |  Branch (454:7): [True: 17, False: 58]
  |  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|     75|	} else {
  476|       |
  477|       |		// --------------------------------------------------------------------
  478|       |		// This node has no general qualifiers. Emit using an unqualified form.
  479|       |		
  480|     75|		if ( propForm == 0 ) {
  ------------------
  |  Branch (480:8): [True: 75, False: 0]
  ------------------
  481|       |		
  482|       |			// --------------------------
  483|       |			// This is a simple property.
  484|       |			
  485|     75|			if ( propNode->options & kXMP_PropValueIsURI ) {
  ------------------
  |  Branch (485:9): [True: 0, False: 75]
  ------------------
  486|      0|				outputStr += " rdf:resource=\"";
  487|      0|				AppendNodeValue ( outputStr, propNode->value, kForAttribute );
  488|      0|				outputStr += "\"/>";
  489|      0|				outputStr += newline;
  490|      0|				emitEndTag = false;
  491|     75|			} else if ( propNode->value.empty() ) {
  ------------------
  |  Branch (491:16): [True: 3, False: 72]
  ------------------
  492|      3|				outputStr += "/>";
  493|      3|				outputStr += newline;
  494|      3|				emitEndTag = false;
  495|     72|			} else {
  496|     72|				outputStr += '>';
  497|     72|				AppendNodeValue ( outputStr, propNode->value, kForElement );
  498|     72|				indentEndTag = false;
  499|     72|			}
  500|       |			
  501|     75|		} 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|     75|	}
  556|       |	
  557|       |	// ----------------------------------
  558|       |	// Emit the property element end tag.
  559|       |	
  560|     75|	if ( emitEndTag ) {
  ------------------
  |  Branch (560:7): [True: 72, False: 3]
  ------------------
  561|     72|		if ( indentEndTag ) for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (561:8): [True: 0, False: 72]
  |  Branch (561:45): [True: 0, False: 0]
  ------------------
  562|     72|		outputStr += "</";
  563|     72|		outputStr += elemName;
  564|     72|		outputStr += '>';
  565|     72|		outputStr += newline;
  566|     72|	}
  567|       |	
  568|     75|}	// SerializePrettyRDFProperty
XMPMeta-Serialize.cpp:_ZL15EmitRDFArrayTagjRNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPKcS8_iib:
  235|    784|{
  236|    784|	if ( (! isStartTag) && (arraySize == 0) ) return;
  ------------------
  |  Branch (236:7): [True: 392, False: 392]
  |  Branch (236:25): [True: 3, False: 389]
  ------------------
  237|       |	
  238|  3.90k|	for ( XMP_Index level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (238:34): [True: 3.12k, False: 781]
  ------------------
  239|    781|	if ( isStartTag ) {
  ------------------
  |  Branch (239:7): [True: 392, False: 389]
  ------------------
  240|    392|		outputStr += "<rdf:";
  241|    392|	} else {
  242|    389|		outputStr += "</rdf:";
  243|    389|	}
  244|       |
  245|    781|	if ( arrayForm & kXMP_PropArrayIsAlternate ) {
  ------------------
  |  Branch (245:7): [True: 154, False: 627]
  ------------------
  246|    154|		outputStr += "Alt";
  247|    627|	} else if ( arrayForm & kXMP_PropArrayIsOrdered ) {
  ------------------
  |  Branch (247:14): [True: 529, False: 98]
  ------------------
  248|    529|		outputStr += "Seq";
  249|    529|	} else {
  250|     98|		outputStr += "Bag";
  251|     98|	}
  252|       |	
  253|    781|	if ( isStartTag && (arraySize == 0) ) outputStr += '/';
  ------------------
  |  Branch (253:7): [True: 392, False: 389]
  |  Branch (253:21): [True: 3, False: 389]
  ------------------
  254|    781|	outputStr += '>';
  255|    781|	outputStr += newline;
  256|       |
  257|    781|}	// EmitRDFArrayTag

_ZN7XMPMetaC2Ev:
  588|  3.36k|XMPMeta::XMPMeta() : clientRefs(0), prevTkVer(0), tree(XMP_Node(0,"",0)), xmlParser(0)
  589|  3.36k|{
  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.36k|}	// XMPMeta
_ZN7XMPMetaD2Ev:
  599|  3.36k|{
  600|       |	#if XMP_TraceCTorDTor
  601|       |		printf ( "Destruct XMPMeta @ %.8X\n", this );
  602|       |	#endif
  603|       |
  604|  3.36k|	XMP_Assert ( this->clientRefs <= 0 );
  ------------------
  |  |  142|  3.36k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  605|  3.36k|	if ( xmlParser != 0 ) delete ( xmlParser );
  ------------------
  |  Branch (605:7): [True: 0, False: 3.36k]
  ------------------
  606|  3.36k|	xmlParser = 0;
  607|       |
  608|  3.36k|}	// ~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|  36.0k|{
  845|  36.0k|	UNUSED(options);
  846|       |
  847|       |    #if TraceXMPLocking
  848|       |    	fprintf ( xmpOut, "  Unlocking XMP toolkit, count = %d\n", sLockCount ); fflush ( xmpOut );
  849|       |	#endif
  850|  36.0k|    --sLockCount;
  851|  36.0k|    XMP_Assert ( sLockCount == 0 );
  ------------------
  |  |  142|  36.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  852|  36.0k|	XMP_ExitCriticalRegion ( sXMPCoreLock );
  853|       |
  854|  36.0k|}	// Unlock
_ZNK7XMPMeta12UnlockObjectEj:
  863|    247|{
  864|    247|	UNUSED(options);
  865|       |
  866|    247|	XMPMeta::Unlock ( 0 );
  867|       |
  868|    247|}	// UnlockObject
_ZN7XMPMeta17RegisterNamespaceEPKcS1_:
 1041|  10.2k|{
 1042|  10.2k|	if ( (*namespaceURI == 0) || (*prefix == 0) ) {
  ------------------
  |  Branch (1042:7): [True: 0, False: 10.2k]
  |  Branch (1042:31): [True: 0, False: 10.2k]
  ------------------
 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.2k|	XMP_VarString	nsURI ( namespaceURI );
 1047|  10.2k|	XMP_VarString	prfix ( prefix );
 1048|  10.2k|	if ( prfix[prfix.size()-1] != ':' ) prfix += ':';
  ------------------
  |  Branch (1048:7): [True: 10.2k, False: 0]
  ------------------
 1049|  10.2k|	VerifySimpleXMLName ( prefix, prefix+prfix.size()-1 );	// Exclude the colon.
 1050|       |	
 1051|       |        // Set the new namespace in both maps.
 1052|  10.2k|        (*sNamespaceURIToPrefixMap)[nsURI] = prfix;
 1053|  10.2k|        (*sNamespacePrefixToURIMap)[prfix] = nsURI;
 1054|       |	
 1055|  10.2k|}	// RegisterNamespace
_ZN7XMPMeta18GetNamespacePrefixEPKcPS1_Pj:
 1066|  52.2k|{
 1067|  52.2k|	bool	found	= false;
 1068|       |	
 1069|  52.2k|	XMP_Assert ( *namespaceURI != 0 ); 	// ! Enforced by wrapper.
  ------------------
  |  |  142|  52.2k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1070|  52.2k|	XMP_Assert ( (namespacePrefix != 0) && (prefixSize != 0) );	// ! Enforced by wrapper.
  ------------------
  |  |  142|  52.2k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1071|       |
 1072|  52.2k|	XMP_VarString    nsURI ( namespaceURI );
 1073|  52.2k|	XMP_StringMapPos uriPos	= sNamespaceURIToPrefixMap->find ( nsURI );
 1074|       |	
 1075|  52.2k|	if ( uriPos != sNamespaceURIToPrefixMap->end() ) {
  ------------------
  |  Branch (1075:7): [True: 52.2k, False: 3]
  ------------------
 1076|  52.2k|		*namespacePrefix = uriPos->second.c_str();
 1077|  52.2k|		*prefixSize = uriPos->second.size();
 1078|  52.2k|		found = true;
 1079|  52.2k|	}
 1080|       |	
 1081|  52.2k|	return found;
 1082|       |	
 1083|  52.2k|}	// GetNamespacePrefix
_ZN7XMPMeta15DeleteNamespaceEPKc:
 1126|     17|{
 1127|     17|	XMP_StringMapPos uriPos = sNamespaceURIToPrefixMap->find ( namespaceURI );
 1128|     17|	if ( uriPos == sNamespaceURIToPrefixMap->end() ) return;
  ------------------
  |  Branch (1128:7): [True: 3, False: 14]
  ------------------
 1129|       |
 1130|     14|	XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( uriPos->second );
 1131|     14|	if ( prefixPos == sNamespacePrefixToURIMap->end() ) return;
  ------------------
  |  Branch (1131:7): [True: 0, False: 14]
  ------------------
 1132|       |	
 1133|     14|	sNamespaceURIToPrefixMap->erase ( uriPos );
 1134|     14|	sNamespacePrefixToURIMap->erase ( prefixPos );
 1135|       |
 1136|     14|}	// DeleteNamespace
_ZNK7XMPMeta15CountArrayItemsEPKcS1_:
 1510|    906|{
 1511|    906|	XMP_Assert ( (schemaNS != 0) && (arrayName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|    906|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1512|       |
 1513|    906|	XMP_ExpandedXPath	expPath;
 1514|    906|	ExpandXPath ( schemaNS, arrayName, &expPath );
 1515|       |	
 1516|    906|	const XMP_Node * arrayNode = FindConstNode ( &tree, expPath );
  ------------------
  |  |  301|    906|#define FindConstNode(t,p)		FindNode ( const_cast<XMP_Node*>(t), p, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|    906|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
 1517|       |
 1518|    906|	if ( arrayNode == 0 ) return 0;
  ------------------
  |  Branch (1518:7): [True: 0, False: 906]
  ------------------
 1519|    906|	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: 906]
  ------------------
 1520|    906|	return arrayNode->children.size();
 1521|       |	
 1522|    906|}	// 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|     64|{
  791|     64|	XMP_Assert ( (schemaNS != 0) && (qualNS != 0) );		// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  792|     64|	XMP_Assert ( (*propName != 0) && (*qualName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  793|     64|	XMP_Assert ( (fullPath != 0) && (pathSize != 0) );		// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  794|       |
  795|     64|	XMP_ExpandedXPath expPath;	// Just for side effects to check namespace and basic path.
  796|     64|	ExpandXPath ( schemaNS, propName, &expPath );
  797|       |
  798|     64|	XMP_ExpandedXPath qualPath;
  799|     64|	ExpandXPath ( qualNS, qualName, &qualPath );
  800|     64|	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: 64]
  ------------------
  801|       |
  802|     64|	XMP_StringLen reserveLen = strlen(propName) + qualPath[kRootPropStep].step.size() + 2;
  803|       |
  804|     64|	sComposedPath->erase();
  805|     64|	sComposedPath->reserve ( reserveLen );
  806|     64|	*sComposedPath = propName;
  807|     64|	*sComposedPath += "/?";
  808|     64|	*sComposedPath += qualPath[kRootPropStep].step;
  809|       |
  810|     64|	*fullPath = sComposedPath->c_str();
  811|     64|	*pathSize = sComposedPath->size();
  812|       |
  813|     64|}	// ComposeQualifierPath
_ZN8XMPUtils13ConvertToDateEPKcP12XMP_DateTime:
 1293|    154|{
 1294|    154|	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: 154]
  |  Branch (1294:26): [True: 1, False: 153]
  ------------------
 1295|       |
 1296|    153|	size_t	 pos = 0;
 1297|    153|	XMP_Int32 temp;
 1298|       |
 1299|    153|	XMP_Assert ( sizeof(*binValue) == sizeof(XMP_DateTime) );
  ------------------
  |  |  142|    153|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1300|    153|	(void) memset ( binValue, 0, sizeof(*binValue) );	// AUDIT: Safe, using sizeof destination.
 1301|       |
 1302|    153|	bool timeOnly = ( (strValue[0] == 'T') ||
  ------------------
  |  Branch (1302:20): [True: 63, False: 90]
  ------------------
 1303|     90|					  ((strlen(strValue) >= 2) && (strValue[1] == ':')) ||
  ------------------
  |  Branch (1303:9): [True: 87, False: 3]
  |  Branch (1303:36): [True: 22, False: 65]
  ------------------
 1304|     68|					  ((strlen(strValue) >= 3) && (strValue[2] == ':')) );
  ------------------
  |  Branch (1304:9): [True: 64, False: 4]
  |  Branch (1304:36): [True: 1, False: 63]
  ------------------
 1305|       |
 1306|    153|	if ( ! timeOnly ) {
  ------------------
  |  Branch (1306:7): [True: 67, False: 86]
  ------------------
 1307|       |
 1308|     67|		if ( strValue[0] == '-' ) pos = 1;
  ------------------
  |  Branch (1308:8): [True: 35, False: 32]
  ------------------
 1309|       |
 1310|     67|		temp = GatherInt ( strValue, &pos, "Invalid year in date string" ); // Extract the year.
 1311|     67|		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: 45, False: 22]
  |  Branch (1311:32): [True: 4, False: 41]
  ------------------
 1312|     63|		if ( strValue[0] == '-' ) temp = -temp;
  ------------------
  |  Branch (1312:8): [True: 29, False: 34]
  ------------------
 1313|     63|		binValue->year = temp;
 1314|     63|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1314:8): [True: 15, False: 48]
  ------------------
 1315|       |
 1316|     48|		++pos;
 1317|     48|		temp = GatherInt ( strValue, &pos, "Invalid month in date string" );	// Extract the month.
 1318|     48|		if ( (temp < 1) || (temp > 12) ) XMP_Throw ( "Month is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      5|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1318:8): [True: 15, 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: 18, False: 25]
  |  Branch (1319:32): [True: 1, False: 17]
  ------------------
 1320|     42|		binValue->month = temp;
 1321|     42|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1321:8): [True: 12, False: 30]
  ------------------
 1322|       |
 1323|     30|		++pos;
 1324|     30|		temp = GatherInt ( strValue, &pos, "Invalid day in date string" );	// Extract the day.
 1325|     30|		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: 20, False: 10]
  |  Branch (1325:22): [True: 4, False: 6]
  ------------------
 1326|     23|		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: 21]
  |  Branch (1326:32): [True: 1, False: 1]
  ------------------
 1327|     22|		binValue->day = temp;
 1328|     22|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1328:8): [True: 4, False: 18]
  ------------------
 1329|       |
 1330|       |		// Allow year, month, and day to all be zero; implies the date portion is missing.
 1331|     18|		if ( (binValue->year != 0) || (binValue->month != 0) || (binValue->day != 0) ) {
  ------------------
  |  Branch (1331:8): [True: 18, 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|     18|	}
 1342|       |
 1343|    104|	if ( strValue[pos] == 'T' ) {
  ------------------
  |  Branch (1343:7): [True: 64, False: 40]
  ------------------
 1344|     64|		++pos;
 1345|     64|	} 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|    104|	temp = GatherInt ( strValue, &pos, "Invalid hour in date string" ); // Extract the hour.
 1350|    104|	if ( strValue[pos] != ':' ) XMP_Throw ( "Invalid date string, after hour", kXMPErr_BadParam );
  ------------------
  |  |  199|      2|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1350:7): [True: 2, False: 102]
  ------------------
 1351|    102|	if ( temp < 0 || temp > 23 ) temp = 23;	// *** 1269463: XMP_Throw ( "Hour is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1351:7): [True: 22, False: 80]
  |  Branch (1351:19): [True: 45, False: 35]
  ------------------
 1352|    102|	binValue->hour = temp;
 1353|       |	// Don't check for done, we have to work up to the time zone.
 1354|       |
 1355|    102|	++pos;
 1356|    102|	temp = GatherInt ( strValue, &pos, "Invalid minute in date string" );	// And the minute.
 1357|    102|	if ( (strValue[pos] != ':') && (strValue[pos] != 'Z') &&
  ------------------
  |  Branch (1357:7): [True: 32, False: 70]
  |  Branch (1357:33): [True: 31, False: 1]
  ------------------
 1358|    100|		 (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: 9]
  |  Branch (1358:30): [True: 10, False: 12]
  |  Branch (1358:56): [True: 2, False: 8]
  ------------------
 1359|    100|	if ( temp < 0 || temp > 59 ) temp = 59;	// *** 1269463: XMP_Throw ( "Minute is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1359:7): [True: 26, False: 74]
  |  Branch (1359:19): [True: 45, False: 29]
  ------------------
 1360|    100|	binValue->minute = temp;
 1361|       |	// Don't check for done, we have to work up to the time zone.
 1362|       |
 1363|    100|	if ( strValue[pos] == ':' ) {
  ------------------
  |  Branch (1363:7): [True: 44, False: 56]
  ------------------
 1364|       |
 1365|     44|		++pos;
 1366|     44|		temp = GatherInt ( strValue, &pos, "Invalid whole seconds in date string" );	// Extract the whole seconds.
 1367|     44|		if ( (strValue[pos] != '.') && (strValue[pos] != 'Z') &&
  ------------------
  |  Branch (1367:8): [True: 12, False: 32]
  |  Branch (1367:34): [True: 11, False: 1]
  ------------------
 1368|     11|			 (strValue[pos] != '+') && (strValue[pos] != '-') && (strValue[pos] != 0) ) {
  ------------------
  |  Branch (1368:5): [True: 10, False: 1]
  |  Branch (1368:31): [True: 7, False: 3]
  |  Branch (1368:57): [True: 3, False: 4]
  ------------------
 1369|      3|			XMP_Throw ( "Invalid date string, after whole seconds", kXMPErr_BadParam );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1370|      0|		}
 1371|     41|		if ( temp < 0 || temp > 59 ) temp = 59;	// *** 1269463: XMP_Throw ( "Whole second is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1371:8): [True: 4, False: 37]
  |  Branch (1371:20): [True: 5, False: 32]
  ------------------
 1372|     41|		binValue->second = temp;
 1373|       |		// Don't check for done, we have to work up to the time zone.
 1374|       |
 1375|     41|		if ( strValue[pos] == '.' ) {
  ------------------
  |  Branch (1375:8): [True: 28, False: 13]
  ------------------
 1376|       |
 1377|     28|			++pos;
 1378|     28|			size_t digits = pos;	// Will be the number of digits later.
 1379|       |
 1380|     28|			temp = GatherInt ( strValue, &pos, "Invalid fractional seconds in date string" );	// Extract the fractional seconds.
 1381|     28|			if ( (strValue[pos] != 'Z') && (strValue[pos] != '+') && (strValue[pos] != '-') && (strValue[pos] != 0) ) {
  ------------------
  |  Branch (1381:9): [True: 22, False: 6]
  |  Branch (1381:35): [True: 20, False: 2]
  |  Branch (1381:61): [True: 17, False: 3]
  |  Branch (1381:87): [True: 3, False: 14]
  ------------------
 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|     25|			digits = pos - digits;
 1386|    570|			for ( ; digits > 9; --digits ) temp = temp / 10;
  ------------------
  |  Branch (1386:12): [True: 545, False: 25]
  ------------------
 1387|     52|			for ( ; digits < 9; ++digits ) temp = temp * 10;
  ------------------
  |  Branch (1387:12): [True: 27, False: 25]
  ------------------
 1388|       |
 1389|     25|			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: 5, False: 20]
  |  Branch (1389:21): [True: 0, False: 20]
  ------------------
 1390|     25|			binValue->nanoSecond = temp;
 1391|       |			// Don't check for done, we have to work up to the time zone.
 1392|       |
 1393|     25|		}
 1394|       |
 1395|     41|	}
 1396|       |
 1397|     94|	if ( strValue[pos] == 'Z' ) {
  ------------------
  |  Branch (1397:7): [True: 3, False: 91]
  ------------------
 1398|       |
 1399|      3|		++pos;
 1400|       |
 1401|     91|	} else if ( strValue[pos] != 0 ) {
  ------------------
  |  Branch (1401:14): [True: 30, False: 61]
  ------------------
 1402|       |
 1403|     30|		if ( strValue[pos] == '+' ) {
  ------------------
  |  Branch (1403:8): [True: 12, False: 18]
  ------------------
 1404|     12|			binValue->tzSign = kXMP_TimeEastOfUTC;
 1405|     18|		} else if ( strValue[pos] == '-' ) {
  ------------------
  |  Branch (1405:15): [True: 18, False: 0]
  ------------------
 1406|     18|			binValue->tzSign = kXMP_TimeWestOfUTC;
 1407|     18|		} 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|      4|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1413:8): [True: 4, False: 26]
  ------------------
 1414|     26|		if ( temp < 0 || temp > 23 ) XMP_Throw ( "Time zone hour is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1414:8): [True: 6, False: 20]
  |  Branch (1414:20): [True: 3, False: 17]
  ------------------
 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|      4|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1419:8): [True: 9, False: 14]
  |  Branch (1419:20): [True: 4, False: 10]
  ------------------
 1420|     19|		binValue->tzMinute = temp;
 1421|       |
 1422|     61|	} else {
 1423|       |
 1424|     61|		XMPUtils::SetTimeZone( binValue );
 1425|       |
 1426|     61|	}
 1427|       |
 1428|     83|	if ( strValue[pos] != 0 ) XMP_Throw ( "Invalid date string, extra chars at end", kXMPErr_BadParam );
  ------------------
  |  |  199|      8|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1428:7): [True: 8, False: 75]
  ------------------
 1429|       |
 1430|     75|}	// ConvertToDate
_ZN8XMPUtils11SetTimeZoneEP12XMP_DateTime:
 1946|     88|{
 1947|     88|	XMP_Assert ( xmpTime != 0 );	// ! Enforced by wrapper.
  ------------------
  |  |  142|     88|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1948|       |
 1949|     88|	if ( (xmpTime->tzSign != 0) || (xmpTime->tzHour != 0) || (xmpTime->tzMinute != 0) ) {
  ------------------
  |  Branch (1949:7): [True: 0, False: 88]
  |  Branch (1949:33): [True: 0, False: 88]
  |  Branch (1949:59): [True: 0, False: 88]
  ------------------
 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|     88|	ansi_tt ttTime;
 1956|     88|	ansi_tm tmLocal, tmUTC;
 1957|       |
 1958|     88|	if ( (xmpTime->year == 0) && (xmpTime->month == 0) && (xmpTime->day == 0) ) {
  ------------------
  |  Branch (1958:7): [True: 57, False: 31]
  |  Branch (1958:31): [True: 56, False: 1]
  |  Branch (1958:56): [True: 56, False: 0]
  ------------------
 1959|     56|		ansi_tt now = ansi_time(0);
  ------------------
  |  |   69|     56|	#define ansi_time		time
  ------------------
 1960|     56|		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: 56]
  ------------------
 1961|     56|		ansi_localtime ( &now, &tmLocal );
  ------------------
  |  |   74|     56|	#define ansi_localtime	localtime_r
  ------------------
 1962|     56|	} else {
 1963|     32|		if (xmpTime->year < std::numeric_limits<decltype(tmLocal.tm_year)>::min() + 1900) {
  ------------------
  |  Branch (1963:7): [True: 0, False: 32]
  ------------------
 1964|      0|			XMP_Throw ( "Invalid year", kXMPErr_BadParam);
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1965|     32|		} else if (xmpTime->year > std::numeric_limits<decltype(tmLocal.tm_year)>::max()) {
  ------------------
  |  Branch (1965:14): [True: 0, False: 32]
  ------------------
 1966|      0|			XMP_Throw ( "Invalid year", kXMPErr_BadParam);
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1967|     32|		} else {
 1968|     32|			tmLocal.tm_year = xmpTime->year - 1900;
 1969|     32|		}
 1970|     32|		tmLocal.tm_mon	 = xmpTime->month - 1;
 1971|     32|		tmLocal.tm_mday	 = xmpTime->day;
 1972|     32|	}
 1973|       |
 1974|     88|	tmLocal.tm_hour = xmpTime->hour;
 1975|     88|	tmLocal.tm_min = xmpTime->minute;
 1976|     88|	tmLocal.tm_sec = xmpTime->second;
 1977|     88|	tmLocal.tm_isdst = -1;	// Don't know if daylight time is in effect.
 1978|       |
 1979|     88|	ttTime = ansi_mktime ( &tmLocal );
  ------------------
  |  |   70|     88|	#define ansi_mktime		mktime
  ------------------
 1980|     88|	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: 88]
  ------------------
 1981|       |
 1982|       |	// Convert back to a localized ansi_tm time and get the corresponding UTC ansi_tm time.
 1983|       |
 1984|     88|	ansi_localtime ( &ttTime, &tmLocal );
  ------------------
  |  |   74|     88|	#define ansi_localtime	localtime_r
  ------------------
 1985|     88|	ansi_gmtime ( &ttTime, &tmUTC );
  ------------------
  |  |   73|     88|	#define ansi_gmtime		gmtime_r
  ------------------
 1986|       |
 1987|       |	// Get the offset direction and amount.
 1988|       |
 1989|     88|	ansi_tm tmx = tmLocal;	// ! Note that mktime updates the ansi_tm parameter, messing up difftime!
 1990|     88|	ansi_tm tmy = tmUTC;
 1991|     88|	tmx.tm_isdst = tmy.tm_isdst = 0;
 1992|     88|	ansi_tt ttx = ansi_mktime ( &tmx );
  ------------------
  |  |   70|     88|	#define ansi_mktime		mktime
  ------------------
 1993|     88|	ansi_tt tty = ansi_mktime ( &tmy );
  ------------------
  |  |   70|     88|	#define ansi_mktime		mktime
  ------------------
 1994|     88|	double diffSecs;
 1995|       |
 1996|     88|	if ( (ttx != -1) && (tty != -1) ) {
  ------------------
  |  Branch (1996:7): [True: 88, False: 0]
  |  Branch (1996:22): [True: 88, False: 0]
  ------------------
 1997|     88|		diffSecs = ansi_difftime ( ttx, tty );
  ------------------
  |  |   71|     88|	#define ansi_difftime	difftime
  ------------------
 1998|     88|	} 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|     88|	if ( diffSecs > 0.0 ) {
  ------------------
  |  Branch (2017:7): [True: 0, False: 88]
  ------------------
 2018|      0|		xmpTime->tzSign = kXMP_TimeEastOfUTC;
 2019|     88|	} else if ( diffSecs == 0.0 ) {
  ------------------
  |  Branch (2019:14): [True: 88, False: 0]
  ------------------
 2020|     88|		xmpTime->tzSign = kXMP_TimeIsUTC;
 2021|     88|	} else {
 2022|      0|		xmpTime->tzSign = kXMP_TimeWestOfUTC;
 2023|      0|		diffSecs = -diffSecs;
 2024|      0|	}
 2025|     88|	xmpTime->tzHour = XMP_Int32 ( diffSecs / 3600.0 );
 2026|     88|	xmpTime->tzMinute = XMP_Int32 ( (diffSecs / 60.0) - (xmpTime->tzHour * 60.0) );
 2027|       |
 2028|       |	// *** Save the tm_isdst flag in a qualifier?
 2029|       |
 2030|     88|	XMP_Assert ( (0 <= xmpTime->tzHour) && (xmpTime->tzHour <= 23) );
  ------------------
  |  |  142|     88|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2031|     88|	XMP_Assert ( (0 <= xmpTime->tzMinute) && (xmpTime->tzMinute <= 59) );
  ------------------
  |  |  142|     88|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2032|     88|	XMP_Assert ( (-1 <= xmpTime->tzSign) && (xmpTime->tzSign <= +1) );
  ------------------
  |  |  142|     88|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2033|     88|	XMP_Assert ( (xmpTime->tzSign == 0) ? ((xmpTime->tzHour == 0) && (xmpTime->tzMinute == 0)) :
  ------------------
  |  |  142|     88|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2034|     88|										  ((xmpTime->tzHour != 0) || (xmpTime->tzMinute != 0)) );
 2035|       |
 2036|     88|}	// SetTimeZone
_ZN8XMPUtils16ConvertToUTCTimeEP12XMP_DateTime:
 2045|     62|{
 2046|     62|	XMP_Assert ( time != 0 );	// ! Enforced by wrapper.
  ------------------
  |  |  142|     62|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2047|       |
 2048|     62|	XMP_Assert ( (0 <= time->tzHour) && (time->tzHour <= 23) );
  ------------------
  |  |  142|     62|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2049|     62|	XMP_Assert ( (0 <= time->tzMinute) && (time->tzMinute <= 59) );
  ------------------
  |  |  142|     62|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2050|     62|	XMP_Assert ( (-1 <= time->tzSign) && (time->tzSign <= +1) );
  ------------------
  |  |  142|     62|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2051|     62|	XMP_Assert ( (time->tzSign == 0) ? ((time->tzHour == 0) && (time->tzMinute == 0)) :
  ------------------
  |  |  142|     62|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2052|     62|									   ((time->tzHour != 0) || (time->tzMinute != 0)) );
 2053|       |
 2054|     62|	if ( time->tzSign == kXMP_TimeEastOfUTC ) {
  ------------------
  |  Branch (2054:7): [True: 2, False: 60]
  ------------------
 2055|       |		// We are before (east of) GMT, subtract the offset from the time.
 2056|      2|		time->hour -= time->tzHour;
 2057|      2|		time->minute -= time->tzMinute;
 2058|     60|	} else if ( time->tzSign == kXMP_TimeWestOfUTC ) {
  ------------------
  |  Branch (2058:14): [True: 3, False: 57]
  ------------------
 2059|       |		// We are behind (west of) GMT, add the offset to the time.
 2060|      3|		time->hour += time->tzHour;
 2061|      3|		time->minute += time->tzMinute;
 2062|      3|	}
 2063|       |
 2064|     62|	AdjustTimeOverflow ( time );
 2065|     62|	time->tzSign = time->tzHour = time->tzMinute = 0;
 2066|       |
 2067|     62|}	// ConvertToUTCTime
_ZN8XMPUtils18ConvertToLocalTimeEP12XMP_DateTime:
 2076|     62|{
 2077|     62|	XMP_Assert ( time != 0 );	// ! Enforced by wrapper.
  ------------------
  |  |  142|     62|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2078|       |
 2079|     62|	XMP_Assert ( (0 <= time->tzHour) && (time->tzHour <= 23) );
  ------------------
  |  |  142|     62|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2080|     62|	XMP_Assert ( (0 <= time->tzMinute) && (time->tzMinute <= 59) );
  ------------------
  |  |  142|     62|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2081|     62|	XMP_Assert ( (-1 <= time->tzSign) && (time->tzSign <= +1) );
  ------------------
  |  |  142|     62|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2082|     62|	XMP_Assert ( (time->tzSign == 0) ? ((time->tzHour == 0) && (time->tzMinute == 0)) :
  ------------------
  |  |  142|     62|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2083|     62|									   ((time->tzHour != 0) || (time->tzMinute != 0)) );
 2084|       |
 2085|     62|	ConvertToUTCTime ( time );	// The existing time zone might not be the local one.
 2086|     62|	SetTimeZone ( time );		// Fill in the local timezone offset, then adjust the time.
 2087|       |
 2088|     62|	if ( time->tzSign > 0 ) {
  ------------------
  |  Branch (2088:7): [True: 0, False: 62]
  ------------------
 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|     62|	} else if ( time->tzSign < 0 ) {
  ------------------
  |  Branch (2092:14): [True: 0, False: 62]
  ------------------
 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|     62|	AdjustTimeOverflow ( time );
 2099|       |
 2100|     62|}	// ConvertToLocalTime
XMPUtils.cpp:_ZL9GatherIntPKcPmS0_:
  368|    411|{
  369|    411|	size_t	 pos   = *_pos;
  370|    411|	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|    411|	const XMP_Int32 tens_upperbound = std::numeric_limits<XMP_Int32>::max() / 10;
  378|    411|	const XMP_Int32 ones_upperbound = std::numeric_limits<XMP_Int32>::max() % 10;
  379|       |
  380|  6.14k|	for ( char ch = strValue[pos]; ('0' <= ch) && (ch <= '9'); ++pos, ch = strValue[pos] ) {
  ------------------
  |  Branch (380:33): [True: 5.93k, False: 206]
  |  Branch (380:48): [True: 5.75k, False: 179]
  ------------------
  381|  5.75k|		const XMP_Int32 digit = ch - '0';
  382|  5.75k|		if (value >= tens_upperbound) {
  ------------------
  |  Branch (382:7): [True: 48, False: 5.71k]
  ------------------
  383|     48|			if (value > tens_upperbound || digit > ones_upperbound) {
  ------------------
  |  Branch (383:8): [True: 22, False: 26]
  |  Branch (383:35): [True: 4, False: 22]
  ------------------
  384|     26|				XMP_Throw ( errMsg, kXMPErr_BadParam );
  ------------------
  |  |  199|     26|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  385|      0|			}
  386|     48|		}
  387|  5.73k|		value = (value * 10) + digit;
  388|  5.73k|	}
  389|       |
  390|    385|	if ( pos == *_pos ) XMP_Throw ( errMsg, kXMPErr_BadParam );
  ------------------
  |  |  199|     18|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (390:7): [True: 18, False: 367]
  ------------------
  391|    367|	*_pos = pos;
  392|    367|	return value;
  393|       |
  394|    385|}	// GatherInt
XMPUtils.cpp:_ZL18AdjustTimeOverflowP12XMP_DateTime:
  214|    124|{
  215|    124|	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|    124|	if ( (time->year != 0) || (time->month != 0) || (time->day != 0) ) {
  ------------------
  |  Branch (225:7): [True: 60, False: 64]
  |  Branch (225:28): [True: 1, False: 63]
  |  Branch (225:50): [True: 0, False: 63]
  ------------------
  226|       |
  227|     74|		while ( time->month < 1 ) {
  ------------------
  |  Branch (227:11): [True: 13, False: 61]
  ------------------
  228|     13|			time->year -= 1;
  229|     13|			time->month += 12;
  230|     13|		}
  231|       |
  232|     61|		while ( time->month > 12 ) {
  ------------------
  |  Branch (232:11): [True: 0, False: 61]
  ------------------
  233|      0|			time->year += 1;
  234|      0|			time->month -= 12;
  235|      0|		}
  236|       |
  237|     86|		while ( time->day < 1 ) {
  ------------------
  |  Branch (237:11): [True: 25, False: 61]
  ------------------
  238|     25|			time->month -= 1;
  239|     25|			if ( time->month < 1 ) {	// ! Keep the months in range for indexing daysInMonth!
  ------------------
  |  Branch (239:9): [True: 2, False: 23]
  ------------------
  240|      2|				time->year -= 1;
  241|      2|				time->month += 12;
  242|      2|			}
  243|     25|			time->day += DaysInMonth ( time->year, time->month );	// ! Decrement month before so index here is right!
  244|     25|		}
  245|       |
  246|     65|		while ( time->day > DaysInMonth ( time->year, time->month ) ) {
  ------------------
  |  Branch (246:11): [True: 4, False: 61]
  ------------------
  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|     61|	}
  256|       |
  257|    125|	while ( time->hour < 0 ) {
  ------------------
  |  Branch (257:10): [True: 1, False: 124]
  ------------------
  258|      1|		time->day -= 1;
  259|      1|		time->hour += 24;
  260|      1|	}
  261|       |
  262|    125|	while ( time->hour >= 24 ) {
  ------------------
  |  Branch (262:10): [True: 1, False: 124]
  ------------------
  263|      1|		time->day += 1;
  264|      1|		time->hour -= 24;
  265|      1|	}
  266|       |
  267|    126|	while ( time->minute < 0 ) {
  ------------------
  |  Branch (267:10): [True: 2, False: 124]
  ------------------
  268|      2|		time->hour -= 1;
  269|      2|		time->minute += 60;
  270|      2|	}
  271|       |
  272|    126|	while ( time->minute >= 60 ) {
  ------------------
  |  Branch (272:10): [True: 2, False: 124]
  ------------------
  273|      2|		time->hour += 1;
  274|      2|		time->minute -= 60;
  275|      2|	}
  276|       |
  277|    124|	while ( time->second < 0 ) {
  ------------------
  |  Branch (277:10): [True: 0, False: 124]
  ------------------
  278|      0|		time->minute -= 1;
  279|      0|		time->second += 60;
  280|      0|	}
  281|       |
  282|    124|	while ( time->second >= 60 ) {
  ------------------
  |  Branch (282:10): [True: 0, False: 124]
  ------------------
  283|      0|		time->minute += 1;
  284|      0|		time->second -= 60;
  285|      0|	}
  286|       |
  287|    124|	while ( time->nanoSecond < 0 ) {
  ------------------
  |  Branch (287:10): [True: 0, False: 124]
  ------------------
  288|      0|		time->second -= 1;
  289|      0|		time->nanoSecond += kBillion;
  290|      0|	}
  291|       |
  292|    124|	while ( time->nanoSecond >= kBillion ) {
  ------------------
  |  Branch (292:10): [True: 0, False: 124]
  ------------------
  293|      0|		time->second += 1;
  294|      0|		time->nanoSecond -= kBillion;
  295|      0|	}
  296|       |
  297|    124|	while ( time->second < 0 ) {
  ------------------
  |  Branch (297:10): [True: 0, False: 124]
  ------------------
  298|      0|		time->minute -= 1;
  299|      0|		time->second += 60;
  300|      0|	}
  301|       |
  302|    124|	while ( time->second >= 60 ) {
  ------------------
  |  Branch (302:10): [True: 0, False: 124]
  ------------------
  303|      0|		time->minute += 1;
  304|      0|		time->second -= 60;
  305|      0|	}
  306|       |
  307|    124|	while ( time->minute < 0 ) {
  ------------------
  |  Branch (307:10): [True: 0, False: 124]
  ------------------
  308|      0|		time->hour -= 1;
  309|      0|		time->minute += 60;
  310|      0|	}
  311|       |
  312|    124|	while ( time->minute >= 60 ) {
  ------------------
  |  Branch (312:10): [True: 0, False: 124]
  ------------------
  313|      0|		time->hour += 1;
  314|      0|		time->minute -= 60;
  315|      0|	}
  316|       |
  317|    124|	while ( time->hour < 0 ) {
  ------------------
  |  Branch (317:10): [True: 0, False: 124]
  ------------------
  318|      0|		time->day -= 1;
  319|      0|		time->hour += 24;
  320|      0|	}
  321|       |
  322|    125|	while ( time->hour >= 24 ) {
  ------------------
  |  Branch (322:10): [True: 1, False: 124]
  ------------------
  323|      1|		time->day += 1;
  324|      1|		time->hour -= 24;
  325|      1|	}
  326|       |
  327|    124|	if ( (time->year != 0) || (time->month != 0) || (time->day != 0) ) {
  ------------------
  |  Branch (327:7): [True: 59, False: 65]
  |  Branch (327:28): [True: 2, False: 63]
  |  Branch (327:50): [True: 3, False: 60]
  ------------------
  328|       |
  329|     67|		while ( time->month < 1 ) { // Make sure the months are OK first, for DaysInMonth.
  ------------------
  |  Branch (329:11): [True: 3, False: 64]
  ------------------
  330|      3|			time->year -= 1;
  331|      3|			time->month += 12;
  332|      3|		}
  333|       |
  334|     64|		while ( time->month > 12 ) {
  ------------------
  |  Branch (334:11): [True: 0, False: 64]
  ------------------
  335|      0|			time->year += 1;
  336|      0|			time->month -= 12;
  337|      0|		}
  338|       |
  339|     65|		while ( time->day < 1 ) {
  ------------------
  |  Branch (339:11): [True: 1, False: 64]
  ------------------
  340|      1|			time->month -= 1;
  341|      1|			if ( time->month < 1 ) {
  ------------------
  |  Branch (341:9): [True: 0, False: 1]
  ------------------
  342|      0|				time->year -= 1;
  343|      0|				time->month += 12;
  344|      0|			}
  345|      1|			time->day += DaysInMonth ( time->year, time->month );
  346|      1|		}
  347|       |
  348|     64|		while ( time->day > DaysInMonth ( time->year, time->month ) ) {
  ------------------
  |  Branch (348:11): [True: 0, False: 64]
  ------------------
  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|     64|	}
  358|       |
  359|    124|}	// AdjustTimeOverflow
XMPUtils.cpp:_ZL11DaysInMonthii:
  195|    159|{
  196|       |
  197|    159|	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|    159|	int days = daysInMonth [ month ];
  201|    159|	if ( (month == 2) && IsLeapYear ( year ) ) days += 1;
  ------------------
  |  Branch (201:7): [True: 56, False: 103]
  |  Branch (201:23): [True: 22, False: 34]
  ------------------
  202|       |
  203|    159|	return days;
  204|       |
  205|    159|}	// DaysInMonth
XMPUtils.cpp:_ZL10IsLeapYearl:
  176|     56|{
  177|       |	// This code uses the Gregorian calendar algorithm:
  178|       |	// https://en.wikipedia.org/wiki/Leap_year#Algorithm
  179|       |
  180|     56|	if ( (year % 4) != 0 ) return false;	// Not a multiple of 4.
  ------------------
  |  Branch (180:7): [True: 27, False: 29]
  ------------------
  181|     29|	if ( (year % 100) != 0 ) return true;	// A multiple of 4 but not a multiple of 100.
  ------------------
  |  Branch (181:7): [True: 12, False: 17]
  ------------------
  182|     17|	if ( (year % 400) == 0 ) return true;	// A multiple of 400.
  ------------------
  |  Branch (182:7): [True: 10, False: 7]
  ------------------
  183|       |
  184|      7|	return false;							// A multiple of 100 but not a multiple of 400.
  185|       |
  186|     17|}	// IsLeapYear

