LLVMFuzzerTestOneInput:
    7|  30.5k|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.5k|  Exiv2::LogMsg::setLevel(Exiv2::LogMsg::mute);
   10|       |
   11|  30.5k|  try {
   12|  30.5k|    Exiv2::DataBuf data_copy(data, size);
   13|  30.5k|    Exiv2::Image::UniquePtr image = Exiv2::ImageFactory::open(data_copy.c_data(), size);
   14|  30.5k|    assert(image.get() != 0);
   15|       |
   16|  30.5k|    image->readMetadata();
   17|  15.0M|    for (auto& md : image->exifData()) {
  ------------------
  |  Branch (17:19): [True: 15.0M, False: 30.5k]
  ------------------
   18|  15.0M|      if (md.tagName().substr(0, 2) != "0x") {
  ------------------
  |  Branch (18:11): [True: 655k, False: 14.3M]
  ------------------
   19|   655k|        md.print();
   20|   655k|        md.print(&image->exifData());
   21|   655k|      }
   22|  15.0M|    }
   23|  30.5k|    for (auto& md : image->iptcData()) {
  ------------------
  |  Branch (23:19): [True: 2.54k, False: 30.5k]
  ------------------
   24|  2.54k|      if (md.tagName().substr(0, 2) != "0x") {
  ------------------
  |  Branch (24:11): [True: 1.60k, False: 945]
  ------------------
   25|  1.60k|        md.print();
   26|  1.60k|        md.print(&image->exifData());
   27|  1.60k|      }
   28|  2.54k|    }
   29|  30.5k|    for (auto& md : image->xmpData()) {
  ------------------
  |  Branch (29:19): [True: 9.67k, False: 30.5k]
  ------------------
   30|  9.67k|      if (md.tagName().substr(0, 2) != "0x") {
  ------------------
  |  Branch (30:11): [True: 9.67k, False: 0]
  ------------------
   31|  9.67k|        md.print();
   32|  9.67k|        md.print(&image->exifData());
   33|  9.67k|      }
   34|  9.67k|    }
   35|       |
   36|       |    // Print to a std::ostringstream so that the fuzzer doesn't
   37|       |    // produce lots of garbage on stdout.
   38|  30.5k|    std::ostringstream buffer;
   39|  30.5k|    image->printStructure(buffer, Exiv2::kpsNone);
   40|  30.5k|    image->printStructure(buffer, Exiv2::kpsBasic);
   41|  30.5k|    image->printStructure(buffer, Exiv2::kpsXMP);
   42|  30.5k|    image->printStructure(buffer, Exiv2::kpsRecursive);
   43|  30.5k|    image->printStructure(buffer, Exiv2::kpsIccProfile);
   44|  30.5k|    image->printStructure(buffer, Exiv2::kpsIptcErase);
   45|       |
   46|  30.5k|    image->writeMetadata();
   47|       |
   48|  30.5k|  } catch (...) {
   49|       |    // Exiv2 throws an exception if the metadata is invalid.
   50|  28.9k|  }
   51|       |
   52|  30.5k|  return 0;
   53|  30.5k|}

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

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

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

_ZN5Exiv25ErrorC2INSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_9ErrorCodeERKT_:
  243|  2.85k|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|  2.85k|    setMsg(1);
  245|  2.85k|  }
_ZN5Exiv213toBasicStringIcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS2_IT_NS3_IS8_EENS5_IS8_EEEERKT0_:
  153|  2.85k|std::basic_string<charT> toBasicString(const T& arg) {
  154|  2.85k|  std::basic_ostringstream<charT> os;
  155|  2.85k|  os << arg;
  156|  2.85k|  return os.str();
  157|  2.85k|}
_ZN5Exiv213toBasicStringIcA4_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     92|std::basic_string<charT> toBasicString(const T& arg) {
  154|     92|  std::basic_ostringstream<charT> os;
  155|     92|  os << arg;
  156|     92|  return os.str();
  157|     92|}
_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.80k|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|  4.80k|    setMsg(1);
  245|  4.80k|  }
_ZN5Exiv213toBasicStringIcA5_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|  4.80k|std::basic_string<charT> toBasicString(const T& arg) {
  154|  4.80k|  std::basic_ostringstream<charT> os;
  155|  4.80k|  os << arg;
  156|  4.80k|  return os.str();
  157|  4.80k|}
_ZN5Exiv25ErrorC2IA4_cEENS_9ErrorCodeERKT_:
  243|     92|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     92|    setMsg(1);
  245|     92|  }
_ZN5Exiv25ErrorC2IPKcA6_cEENS_9ErrorCodeERKT_RKT0_:
  250|     19|      code_(code), arg1_(toBasicString<char>(arg1)), arg2_(toBasicString<char>(arg2)) {
  251|     19|    setMsg(2);
  252|     19|  }
_ZN5Exiv213toBasicStringIcPKcEENSt3__112basic_stringIT_NS3_11char_traitsIS5_EENS3_9allocatorIS5_EEEERKT0_:
  153|     41|std::basic_string<charT> toBasicString(const T& arg) {
  154|     41|  std::basic_ostringstream<charT> os;
  155|     41|  os << arg;
  156|     41|  return os.str();
  157|     41|}
_ZN5Exiv213toBasicStringIcA6_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|}
_ZN5Exiv25ErrorC2IPKcEENS_9ErrorCodeERKT_:
  243|     22|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     22|    setMsg(1);
  245|     22|  }
_ZN5Exiv25ErrorC2IA61_cEENS_9ErrorCodeERKT_:
  243|     14|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     14|    setMsg(1);
  245|     14|  }
_ZN5Exiv213toBasicStringIcA61_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     14|std::basic_string<charT> toBasicString(const T& arg) {
  154|     14|  std::basic_ostringstream<charT> os;
  155|     14|  os << arg;
  156|     14|  return os.str();
  157|     14|}

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

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

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

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

_ZN5Exiv29MetadatumC2Ev:
  261|  36.2M|  Metadatum() = default;
_ZN5Exiv23KeyC2Ev:
   79|  53.9M|  Key() = default;
_ZN5Exiv23KeyC2ERKS0_:
   80|   461k|  Key(const Key&) = default;

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

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

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

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

_ZN5Exiv27DataBuf5beginEv:
  150|  2.60M|  [[nodiscard]] auto begin() noexcept {
  151|  2.60M|    return pData_.begin();
  152|  2.60M|  }
_ZN5Exiv27DataBuf3endEv:
  154|  19.6k|  [[nodiscard]] auto end() noexcept {
  155|  19.6k|    return pData_.end();
  156|  19.6k|  }
_ZNK5Exiv27DataBuf5beginEv:
  158|  2.73k|  [[nodiscard]] auto begin() const noexcept {
  159|  2.73k|    return pData_.begin();
  160|  2.73k|  }
_ZNK5Exiv27DataBuf3endEv:
  162|  2.63k|  [[nodiscard]] auto end() const noexcept {
  163|  2.63k|    return pData_.end();
  164|  2.63k|  }
_ZNK5Exiv27DataBuf4sizeEv:
  166|  2.76M|  [[nodiscard]] size_t size() const {
  167|  2.76M|    return pData_.size();
  168|  2.76M|  }
_ZNK5Exiv27DataBuf5emptyEv:
  194|  19.1k|  [[nodiscard]] bool empty() const {
  195|  19.1k|    return pData_.empty();
  196|  19.1k|  }
_ZN5Exiv27DataBufC2Ev:
  126|  3.07M|  DataBuf() = default;
image.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_18RegistryENS_9ImageTypeELm30EEEPKT_RAT1__S5_RKT0_:
  447|  33.1k|const T* find(T (&src)[N], const K& key) {
  448|  33.1k|  static_assert(N > 0, "Passed zero length find");
  449|  33.1k|  auto rc = std::find(src, src + N, key);
  450|  33.1k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 33.1k]
  ------------------
  451|  33.1k|}
_ZN5Exiv28toStringItEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   137k|std::string toString(const T& arg) {
  467|   137k|  return toStringHelper(arg, std::is_integral<T>());
  468|   137k|}
_ZN5Exiv214toStringHelperItEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|   137k|std::string toStringHelper(const T& arg, std::true_type) {
  456|   137k|  return std::to_string(arg);
  457|   137k|}
_ZN5Exiv29getUShortIPKhEEtRKNS_5SliceIT_EENS_9ByteOrderE:
  227|  59.9M|uint16_t getUShort(const Slice<T>& buf, ByteOrder byteOrder) {
  228|  59.9M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (228:7): [True: 2.41M, False: 57.5M]
  ------------------
  229|  2.41M|    return static_cast<byte>(buf.at(1)) << 8 | static_cast<byte>(buf.at(0));
  230|  2.41M|  }
  231|  57.5M|  return static_cast<byte>(buf.at(0)) << 8 | static_cast<byte>(buf.at(1));
  232|  59.9M|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEhLm13EEEPKT_RAT1__S4_RKT0_:
  447|  64.1k|const T* find(T (&src)[N], const K& key) {
  448|  64.1k|  static_assert(N > 0, "Passed zero length find");
  449|  64.1k|  auto rc = std::find(src, src + N, key);
  450|  64.1k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 61.3k, False: 2.82k]
  ------------------
  451|  64.1k|}
types.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_113TypeInfoTableENS_6TypeIdELm24EEEPKT_RAT1__S5_RKT0_:
  447|  47.1M|const T* find(T (&src)[N], const K& key) {
  448|  47.1M|  static_assert(N > 0, "Passed zero length find");
  449|  47.1M|  auto rc = std::find(src, src + N, key);
  450|  47.1M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5.84M, False: 41.3M]
  ------------------
  451|  47.1M|}
_ZN5Exiv28toStringIjEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  6.71k|std::string toString(const T& arg) {
  467|  6.71k|  return toStringHelper(arg, std::is_integral<T>());
  468|  6.71k|}
_ZN5Exiv214toStringHelperIjEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  6.71k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  6.71k|  return std::to_string(arg);
  457|  6.71k|}
_ZN5Exiv28toStringINSt3__14pairIjjEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    224|std::string toString(const T& arg) {
  467|    224|  return toStringHelper(arg, std::is_integral<T>());
  468|    224|}
_ZN5Exiv214toStringHelperINSt3__14pairIjjEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|    224|std::string toStringHelper(const T& arg, std::false_type) {
  461|    224|  std::ostringstream os;
  462|    224|  os << arg;
  463|    224|  return os.str();
  464|    224|}
_ZN5Exiv28toStringIsEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  1.05k|std::string toString(const T& arg) {
  467|  1.05k|  return toStringHelper(arg, std::is_integral<T>());
  468|  1.05k|}
_ZN5Exiv214toStringHelperIsEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  1.05k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  1.05k|  return std::to_string(arg);
  457|  1.05k|}
_ZN5Exiv28toStringIiEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   227k|std::string toString(const T& arg) {
  467|   227k|  return toStringHelper(arg, std::is_integral<T>());
  468|   227k|}
_ZN5Exiv214toStringHelperIiEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|   227k|std::string toStringHelper(const T& arg, std::true_type) {
  456|   227k|  return std::to_string(arg);
  457|   227k|}
_ZN5Exiv28toStringINSt3__14pairIiiEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    278|std::string toString(const T& arg) {
  467|    278|  return toStringHelper(arg, std::is_integral<T>());
  468|    278|}
_ZN5Exiv214toStringHelperINSt3__14pairIiiEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|    278|std::string toStringHelper(const T& arg, std::false_type) {
  461|    278|  std::ostringstream os;
  462|    278|  os << arg;
  463|    278|  return os.str();
  464|    278|}
_ZN5Exiv28toStringIfEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  1.15k|std::string toString(const T& arg) {
  467|  1.15k|  return toStringHelper(arg, std::is_integral<T>());
  468|  1.15k|}
_ZN5Exiv214toStringHelperIfEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|  1.15k|std::string toStringHelper(const T& arg, std::false_type) {
  461|  1.15k|  std::ostringstream os;
  462|  1.15k|  os << arg;
  463|  1.15k|  return os.str();
  464|  1.15k|}
_ZN5Exiv28toStringIdEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   211k|std::string toString(const T& arg) {
  467|   211k|  return toStringHelper(arg, std::is_integral<T>());
  468|   211k|}
_ZN5Exiv214toStringHelperIdEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|   211k|std::string toStringHelper(const T& arg, std::false_type) {
  461|   211k|  std::ostringstream os;
  462|   211k|  os << arg;
  463|   211k|  return os.str();
  464|   211k|}
_ZN5Exiv28toStringImEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  5.11k|std::string toString(const T& arg) {
  467|  5.11k|  return toStringHelper(arg, std::is_integral<T>());
  468|  5.11k|}
_ZN5Exiv214toStringHelperImEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  5.11k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  5.11k|  return std::to_string(arg);
  457|  5.11k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm4EEEPKT_RAT1__S4_RKT0_:
  447|    368|const T* find(T (&src)[N], const K& key) {
  448|    368|  static_assert(N > 0, "Passed zero length find");
  449|    368|  auto rc = std::find(src, src + N, key);
  450|    368|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 245, False: 123]
  ------------------
  451|    368|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm6EEEPKT_RAT1__S4_RKT0_:
  447|    145|const T* find(T (&src)[N], const K& key) {
  448|    145|  static_assert(N > 0, "Passed zero length find");
  449|    145|  auto rc = std::find(src, src + N, key);
  450|    145|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 72, False: 73]
  ------------------
  451|    145|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm5EEEPKT_RAT1__S4_RKT0_:
  447|    284|const T* find(T (&src)[N], const K& key) {
  448|    284|  static_assert(N > 0, "Passed zero length find");
  449|    284|  auto rc = std::find(src, src + N, key);
  450|    284|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 187, False: 97]
  ------------------
  451|    284|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm198EEEPKT_RAT1__S4_RKT0_:
  447|  60.2k|const T* find(T (&src)[N], const K& key) {
  448|  60.2k|  static_assert(N > 0, "Passed zero length find");
  449|  60.2k|  auto rc = std::find(src, src + N, key);
  450|  60.2k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 485, False: 59.7k]
  ------------------
  451|  60.2k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm2EEEPKT_RAT1__S4_RKT0_:
  447|  1.12k|const T* find(T (&src)[N], const K& key) {
  448|  1.12k|  static_assert(N > 0, "Passed zero length find");
  449|  1.12k|  auto rc = std::find(src, src + N, key);
  450|  1.12k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 837, False: 284]
  ------------------
  451|  1.12k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm3EEEPKT_RAT1__S4_RKT0_:
  447|  2.29k|const T* find(T (&src)[N], const K& key) {
  448|  2.29k|  static_assert(N > 0, "Passed zero length find");
  449|  2.29k|  auto rc = std::find(src, src + N, key);
  450|  2.29k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.44k, False: 844]
  ------------------
  451|  2.29k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm7EEEPKT_RAT1__S4_RKT0_:
  447|  3.54k|const T* find(T (&src)[N], const K& key) {
  448|  3.54k|  static_assert(N > 0, "Passed zero length find");
  449|  3.54k|  auto rc = std::find(src, src + N, key);
  450|  3.54k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3.00k, False: 547]
  ------------------
  451|  3.54k|}
_ZN5Exiv28toStringIPKhEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_:
  466|  1.99k|std::string toString(const T& arg) {
  467|  1.99k|  return toStringHelper(arg, std::is_integral<T>());
  468|  1.99k|}
_ZN5Exiv214toStringHelperIPKhEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_NS3_17integral_constantIbLb0EEE:
  460|  1.99k|std::string toStringHelper(const T& arg, std::false_type) {
  461|  1.99k|  std::ostringstream os;
  462|  1.99k|  os << arg;
  463|  1.99k|  return os.str();
  464|  1.99k|}
_ZN5Exiv28toStringIlEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    581|std::string toString(const T& arg) {
  467|    581|  return toStringHelper(arg, std::is_integral<T>());
  468|    581|}
_ZN5Exiv214toStringHelperIlEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|    581|std::string toStringHelper(const T& arg, std::true_type) {
  456|    581|  return std::to_string(arg);
  457|    581|}
_ZN5Exiv28toStringIPhEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKT_:
  466|   629k|std::string toString(const T& arg) {
  467|   629k|  return toStringHelper(arg, std::is_integral<T>());
  468|   629k|}
_ZN5Exiv214toStringHelperIPhEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKT_NS2_17integral_constantIbLb0EEE:
  460|   629k|std::string toStringHelper(const T& arg, std::false_type) {
  461|   629k|  std::ostringstream os;
  462|   629k|  os << arg;
  463|   629k|  return os.str();
  464|   629k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm6EEEPKT_RAT1__S4_RKT0_:
  447|    121|const T* find(T (&src)[N], const K& key) {
  448|    121|  static_assert(N > 0, "Passed zero length find");
  449|    121|  auto rc = std::find(src, src + N, key);
  450|    121|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 59, False: 62]
  ------------------
  451|    121|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm32EEEPKT_RAT1__SB_RKT0_:
  447|  2.48k|const T* find(T (&src)[N], const K& key) {
  448|  2.48k|  static_assert(N > 0, "Passed zero length find");
  449|  2.48k|  auto rc = std::find(src, src + N, key);
  450|  2.48k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.24k, False: 239]
  ------------------
  451|  2.48k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm61EEEPKT_RAT1__SB_RKT0_:
  447|  2.48k|const T* find(T (&src)[N], const K& key) {
  448|  2.48k|  static_assert(N > 0, "Passed zero length find");
  449|  2.48k|  auto rc = std::find(src, src + N, key);
  450|  2.48k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.33k, False: 150]
  ------------------
  451|  2.48k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm2EEEPKT_RAT1__SB_RKT0_:
  447|    378|const T* find(T (&src)[N], const K& key) {
  448|    378|  static_assert(N > 0, "Passed zero length find");
  449|    378|  auto rc = std::find(src, src + N, key);
  450|    378|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 326, False: 52]
  ------------------
  451|    378|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm41EEEPKT_RAT1__S4_RKT0_:
  447|   148k|const T* find(T (&src)[N], const K& key) {
  448|   148k|  static_assert(N > 0, "Passed zero length find");
  449|   148k|  auto rc = std::find(src, src + N, key);
  450|   148k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 138k, False: 9.93k]
  ------------------
  451|   148k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm3EEEPKT_RAT1__S4_RKT0_:
  447|  22.2k|const T* find(T (&src)[N], const K& key) {
  448|  22.2k|  static_assert(N > 0, "Passed zero length find");
  449|  22.2k|  auto rc = std::find(src, src + N, key);
  450|  22.2k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 9.91k, False: 12.2k]
  ------------------
  451|  22.2k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm6EEEPKT_RAT1__S4_RKT0_:
  447|  3.55k|const T* find(T (&src)[N], const K& key) {
  448|  3.55k|  static_assert(N > 0, "Passed zero length find");
  449|  3.55k|  auto rc = std::find(src, src + N, key);
  450|  3.55k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.70k, False: 851]
  ------------------
  451|  3.55k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm11EEEPKT_RAT1__S4_RKT0_:
  447|  3.54k|const T* find(T (&src)[N], const K& key) {
  448|  3.54k|  static_assert(N > 0, "Passed zero length find");
  449|  3.54k|  auto rc = std::find(src, src + N, key);
  450|  3.54k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.59k, False: 954]
  ------------------
  451|  3.54k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm2EEEPKT_RAT1__S4_RKT0_:
  447|    759|const T* find(T (&src)[N], const K& key) {
  448|    759|  static_assert(N > 0, "Passed zero length find");
  449|    759|  auto rc = std::find(src, src + N, key);
  450|    759|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 226, False: 533]
  ------------------
  451|    759|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm86EEEPKT_RAT1__SB_RKT0_:
  447|   200k|const T* find(T (&src)[N], const K& key) {
  448|   200k|  static_assert(N > 0, "Passed zero length find");
  449|   200k|  auto rc = std::find(src, src + N, key);
  450|   200k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 190k, False: 10.4k]
  ------------------
  451|   200k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm17EEEPKT_RAT1__SB_RKT0_:
  447|   135k|const T* find(T (&src)[N], const K& key) {
  448|   135k|  static_assert(N > 0, "Passed zero length find");
  449|   135k|  auto rc = std::find(src, src + N, key);
  450|   135k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 134k, False: 1.17k]
  ------------------
  451|   135k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEtLm31EEEPKT_RAT1__S4_RKT0_:
  447|    808|const T* find(T (&src)[N], const K& key) {
  448|    808|  static_assert(N > 0, "Passed zero length find");
  449|    808|  auto rc = std::find(src, src + N, key);
  450|    808|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 198, False: 610]
  ------------------
  451|    808|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm16EEEPKT_RAT1__SB_RKT0_:
  447|    340|const T* find(T (&src)[N], const K& key) {
  448|    340|  static_assert(N > 0, "Passed zero length find");
  449|    340|  auto rc = std::find(src, src + N, key);
  450|    340|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 92, False: 248]
  ------------------
  451|    340|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm6EEEPKT_RAT1__S4_RKT0_:
  447|  23.6k|const T* find(T (&src)[N], const K& key) {
  448|  23.6k|  static_assert(N > 0, "Passed zero length find");
  449|  23.6k|  auto rc = std::find(src, src + N, key);
  450|  23.6k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 10.9k, False: 12.6k]
  ------------------
  451|  23.6k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm2EEEPKT_RAT1__S4_RKT0_:
  447|  34.1k|const T* find(T (&src)[N], const K& key) {
  448|  34.1k|  static_assert(N > 0, "Passed zero length find");
  449|  34.1k|  auto rc = std::find(src, src + N, key);
  450|  34.1k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 26.5k, False: 7.60k]
  ------------------
  451|  34.1k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm5EEEPKT_RAT1__S4_RKT0_:
  447|  18.7k|const T* find(T (&src)[N], const K& key) {
  448|  18.7k|  static_assert(N > 0, "Passed zero length find");
  449|  18.7k|  auto rc = std::find(src, src + N, key);
  450|  18.7k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 10.2k, False: 8.53k]
  ------------------
  451|  18.7k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm4EEEPKT_RAT1__S4_RKT0_:
  447|  21.6k|const T* find(T (&src)[N], const K& key) {
  448|  21.6k|  static_assert(N > 0, "Passed zero length find");
  449|  21.6k|  auto rc = std::find(src, src + N, key);
  450|  21.6k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 8.16k, False: 13.5k]
  ------------------
  451|  21.6k|}
_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: 5.31k, False: 5.61k]
  ------------------
  451|  10.9k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm17EEEPKT_RAT1__S4_RKT0_:
  447|  3.14k|const T* find(T (&src)[N], const K& key) {
  448|  3.14k|  static_assert(N > 0, "Passed zero length find");
  449|  3.14k|  auto rc = std::find(src, src + N, key);
  450|  3.14k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.11k, False: 2.02k]
  ------------------
  451|  3.14k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm8EEEPKT_RAT1__S4_RKT0_:
  447|  24.4k|const T* find(T (&src)[N], const K& key) {
  448|  24.4k|  static_assert(N > 0, "Passed zero length find");
  449|  24.4k|  auto rc = std::find(src, src + N, key);
  450|  24.4k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 12.9k, False: 11.4k]
  ------------------
  451|  24.4k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm3EEEPKT_RAT1__S4_RKT0_:
  447|  79.4k|const T* find(T (&src)[N], const K& key) {
  448|  79.4k|  static_assert(N > 0, "Passed zero length find");
  449|  79.4k|  auto rc = std::find(src, src + N, key);
  450|  79.4k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 50.5k, False: 28.9k]
  ------------------
  451|  79.4k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm11EEEPKT_RAT1__S4_RKT0_:
  447|  14.7k|const T* find(T (&src)[N], const K& key) {
  448|  14.7k|  static_assert(N > 0, "Passed zero length find");
  449|  14.7k|  auto rc = std::find(src, src + N, key);
  450|  14.7k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.79k, False: 9.97k]
  ------------------
  451|  14.7k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm25EEEPKT_RAT1__S4_RKT0_:
  447|  2.79k|const T* find(T (&src)[N], const K& key) {
  448|  2.79k|  static_assert(N > 0, "Passed zero length find");
  449|  2.79k|  auto rc = std::find(src, src + N, key);
  450|  2.79k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 616, False: 2.18k]
  ------------------
  451|  2.79k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm19EEEPKT_RAT1__S4_RKT0_:
  447|    514|const T* find(T (&src)[N], const K& key) {
  448|    514|  static_assert(N > 0, "Passed zero length find");
  449|    514|  auto rc = std::find(src, src + N, key);
  450|    514|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 282, False: 232]
  ------------------
  451|    514|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm81EEEPKT_RAT1__S4_RKT0_:
  447|    122|const T* find(T (&src)[N], const K& key) {
  448|    122|  static_assert(N > 0, "Passed zero length find");
  449|    122|  auto rc = std::find(src, src + N, key);
  450|    122|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 64, False: 58]
  ------------------
  451|    122|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm10EEEPKT_RAT1__S4_RKT0_:
  447|  21.5k|const T* find(T (&src)[N], const K& key) {
  448|  21.5k|  static_assert(N > 0, "Passed zero length find");
  449|  21.5k|  auto rc = std::find(src, src + N, key);
  450|  21.5k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 14.7k, False: 6.78k]
  ------------------
  451|  21.5k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm52EEEPKT_RAT1__S4_RKT0_:
  447|    142|const T* find(T (&src)[N], const K& key) {
  448|    142|  static_assert(N > 0, "Passed zero length find");
  449|    142|  auto rc = std::find(src, src + N, key);
  450|    142|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 36, False: 106]
  ------------------
  451|    142|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm18EEEPKT_RAT1__S4_RKT0_:
  447|  7.53k|const T* find(T (&src)[N], const K& key) {
  448|  7.53k|  static_assert(N > 0, "Passed zero length find");
  449|  7.53k|  auto rc = std::find(src, src + N, key);
  450|  7.53k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3.66k, False: 3.86k]
  ------------------
  451|  7.53k|}
nikonmn_int.cpp:_ZN5Exiv24findIKZNS_8Internal15Nikon3MakerNote11printLensIdERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataERKNS3_12basic_stringIcS6_NS3_9allocatorIcEEEEE8FMntLenshLm579EEEPKT_RAT1__SN_RKT0_:
  447|     79|const T* find(T (&src)[N], const K& key) {
  448|     79|  static_assert(N > 0, "Passed zero length find");
  449|     79|  auto rc = std::find(src, src + N, key);
  450|     79|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3, False: 76]
  ------------------
  451|     79|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm12EEEPKT_RAT1__S4_RKT0_:
  447|  8.25k|const T* find(T (&src)[N], const K& key) {
  448|  8.25k|  static_assert(N > 0, "Passed zero length find");
  449|  8.25k|  auto rc = std::find(src, src + N, key);
  450|  8.25k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5.18k, False: 3.06k]
  ------------------
  451|  8.25k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm13EEEPKT_RAT1__S4_RKT0_:
  447|  9.45k|const T* find(T (&src)[N], const K& key) {
  448|  9.45k|  static_assert(N > 0, "Passed zero length find");
  449|  9.45k|  auto rc = std::find(src, src + N, key);
  450|  9.45k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.95k, False: 7.50k]
  ------------------
  451|  9.45k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm34EEEPKT_RAT1__S4_RKT0_:
  447|  2.18k|const T* find(T (&src)[N], const K& key) {
  448|  2.18k|  static_assert(N > 0, "Passed zero length find");
  449|  2.18k|  auto rc = std::find(src, src + N, key);
  450|  2.18k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 470, False: 1.71k]
  ------------------
  451|  2.18k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm16EEEPKT_RAT1__S4_RKT0_:
  447|  2.52k|const T* find(T (&src)[N], const K& key) {
  448|  2.52k|  static_assert(N > 0, "Passed zero length find");
  449|  2.52k|  auto rc = std::find(src, src + N, key);
  450|  2.52k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 740, False: 1.78k]
  ------------------
  451|  2.52k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm27EEEPKT_RAT1__S4_RKT0_:
  447|  4.55k|const T* find(T (&src)[N], const K& key) {
  448|  4.55k|  static_assert(N > 0, "Passed zero length find");
  449|  4.55k|  auto rc = std::find(src, src + N, key);
  450|  4.55k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 546, False: 4.01k]
  ------------------
  451|  4.55k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm9EEEPKT_RAT1__S4_RKT0_:
  447|  14.2k|const T* find(T (&src)[N], const K& key) {
  448|  14.2k|  static_assert(N > 0, "Passed zero length find");
  449|  14.2k|  auto rc = std::find(src, src + N, key);
  450|  14.2k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 6.05k, False: 8.20k]
  ------------------
  451|  14.2k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm21EEEPKT_RAT1__S4_RKT0_:
  447|  2.21k|const T* find(T (&src)[N], const K& key) {
  448|  2.21k|  static_assert(N > 0, "Passed zero length find");
  449|  2.21k|  auto rc = std::find(src, src + N, key);
  450|  2.21k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 476, False: 1.73k]
  ------------------
  451|  2.21k|}
_ZN5Exiv24findIKNS_9GroupInfoENS_5IfdIdELm126EEEPKT_RAT1__S4_RKT0_:
  447|  49.7M|const T* find(T (&src)[N], const K& key) {
  448|  49.7M|  static_assert(N > 0, "Passed zero length find");
  449|  49.7M|  auto rc = std::find(src, src + N, key);
  450|  49.7M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 49.7M]
  ------------------
  451|  49.7M|}
_ZN5Exiv24findIKNS_9GroupInfoENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEELm126EEEPKT_RAT1__SA_RKT0_:
  447|  19.7M|const T* find(T (&src)[N], const K& key) {
  448|  19.7M|  static_assert(N > 0, "Passed zero length find");
  449|  19.7M|  auto rc = std::find(src, src + N, key);
  450|  19.7M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 19.7M]
  ------------------
  451|  19.7M|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm1EEEPKT_RAT1__S4_RKT0_:
  447|    164|const T* find(T (&src)[N], const K& key) {
  448|    164|  static_assert(N > 0, "Passed zero length find");
  449|    164|  auto rc = std::find(src, src + N, key);
  450|    164|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 138, False: 26]
  ------------------
  451|    164|}
_ZN5Exiv24findIKNS_8Internal15TiffMappingInfoENS2_3KeyELm5EEEPKT_RAT1__S5_RKT0_:
  447|  19.1M|const T* find(T (&src)[N], const K& key) {
  448|  19.1M|  static_assert(N > 0, "Passed zero length find");
  449|  19.1M|  auto rc = std::find(src, src + N, key);
  450|  19.1M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 19.1M, False: 7.23k]
  ------------------
  451|  19.1M|}
_ZN5Exiv24findIKNS_9XmpNsInfoENS1_2NsELm47EEEPKT_RAT1__S4_RKT0_:
  447|  3.66k|const T* find(T (&src)[N], const K& key) {
  448|  3.66k|  static_assert(N > 0, "Passed zero length find");
  449|  3.66k|  auto rc = std::find(src, src + N, key);
  450|  3.66k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.17k, False: 1.48k]
  ------------------
  451|  3.66k|}
_ZN5Exiv24findIKNS_9XmpNsInfoENS1_6PrefixELm47EEEPKT_RAT1__S4_RKT0_:
  447|   946k|const T* find(T (&src)[N], const K& key) {
  448|   946k|  static_assert(N > 0, "Passed zero length find");
  449|   946k|  auto rc = std::find(src, src + N, key);
  450|   946k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 946k]
  ------------------
  451|   946k|}
properties.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_112XmpPrintInfoENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm67EEEPKT_RAT1__SB_RKT0_:
  447|  18.5k|const T* find(T (&src)[N], const K& key) {
  448|  18.5k|  static_assert(N > 0, "Passed zero length find");
  449|  18.5k|  auto rc = std::find(src, src + N, key);
  450|  18.5k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 18.5k, False: 0]
  ------------------
  451|  18.5k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm533EEEPKT_RAT1__S4_RKT0_:
  447|     45|const T* find(T (&src)[N], const K& key) {
  448|     45|  static_assert(N > 0, "Passed zero length find");
  449|     45|  auto rc = std::find(src, src + N, key);
  450|     45|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 45]
  ------------------
  451|     45|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm357EEEPKT_RAT1__S4_RKT0_:
  447|    222|const T* find(T (&src)[N], const K& key) {
  448|    222|  static_assert(N > 0, "Passed zero length find");
  449|    222|  auto rc = std::find(src, src + N, key);
  450|    222|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 94, False: 128]
  ------------------
  451|    222|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm14EEEPKT_RAT1__S4_RKT0_:
  447|  10.0k|const T* find(T (&src)[N], const K& key) {
  448|  10.0k|  static_assert(N > 0, "Passed zero length find");
  449|  10.0k|  auto rc = std::find(src, src + N, key);
  450|  10.0k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 6.62k, False: 3.39k]
  ------------------
  451|  10.0k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm22EEEPKT_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.16k, False: 1.85k]
  ------------------
  451|  3.01k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm71EEEPKT_RAT1__S4_RKT0_:
  447|  5.46k|const T* find(T (&src)[N], const K& key) {
  448|  5.46k|  static_assert(N > 0, "Passed zero length find");
  449|  5.46k|  auto rc = std::find(src, src + N, key);
  450|  5.46k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 556, False: 4.90k]
  ------------------
  451|  5.46k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm38EEEPKT_RAT1__S4_RKT0_:
  447|  6.33k|const T* find(T (&src)[N], const K& key) {
  448|  6.33k|  static_assert(N > 0, "Passed zero length find");
  449|  6.33k|  auto rc = std::find(src, src + N, key);
  450|  6.33k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.36k, False: 1.96k]
  ------------------
  451|  6.33k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm75EEEPKT_RAT1__S4_RKT0_:
  447|  2.98k|const T* find(T (&src)[N], const K& key) {
  448|  2.98k|  static_assert(N > 0, "Passed zero length find");
  449|  2.98k|  auto rc = std::find(src, src + N, key);
  450|  2.98k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.02k, False: 1.96k]
  ------------------
  451|  2.98k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm35EEEPKT_RAT1__S4_RKT0_:
  447|    260|const T* find(T (&src)[N], const K& key) {
  448|    260|  static_assert(N > 0, "Passed zero length find");
  449|    260|  auto rc = std::find(src, src + N, key);
  450|    260|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 174, False: 86]
  ------------------
  451|    260|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEhLm3EEEPKT_RAT1__S4_RKT0_:
  447|    174|const T* find(T (&src)[N], const K& key) {
  448|    174|  static_assert(N > 0, "Passed zero length find");
  449|    174|  auto rc = std::find(src, src + N, key);
  450|    174|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 74, False: 100]
  ------------------
  451|    174|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm20EEEPKT_RAT1__S4_RKT0_:
  447|  1.45k|const T* find(T (&src)[N], const K& key) {
  448|  1.45k|  static_assert(N > 0, "Passed zero length find");
  449|  1.45k|  auto rc = std::find(src, src + N, key);
  450|  1.45k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 438, False: 1.01k]
  ------------------
  451|  1.45k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm33EEEPKT_RAT1__S4_RKT0_:
  447|  2.22k|const T* find(T (&src)[N], const K& key) {
  448|  2.22k|  static_assert(N > 0, "Passed zero length find");
  449|  2.22k|  auto rc = std::find(src, src + N, key);
  450|  2.22k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 420, False: 1.80k]
  ------------------
  451|  2.22k|}
_ZN5Exiv24findIKNS_8Internal14TiffMnRegistryENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEELm26EEEPKT_RAT1__S9_RKT0_:
  447|  38.9k|const T* find(T (&src)[N], const K& key) {
  448|  38.9k|  static_assert(N > 0, "Passed zero length find");
  449|  38.9k|  auto rc = std::find(src, src + N, key);
  450|  38.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.86k, False: 37.0k]
  ------------------
  451|  38.9k|}
_ZN5Exiv24findIKNS_8Internal14TiffMnRegistryENS_5IfdIdELm26EEEPKT_RAT1__S5_RKT0_:
  447|  6.56k|const T* find(T (&src)[N], const K& key) {
  448|  6.56k|  static_assert(N > 0, "Passed zero length find");
  449|  6.56k|  auto rc = std::find(src, src + N, key);
  450|  6.56k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 6.56k]
  ------------------
  451|  6.56k|}
_ZN5Exiv24findIKNS_8Internal13NikonArrayIdxENS2_3KeyELm34EEEPKT_RAT1__S5_RKT0_:
  447|    626|const T* find(T (&src)[N], const K& key) {
  448|    626|  static_assert(N > 0, "Passed zero length find");
  449|    626|  auto rc = std::find(src, src + N, key);
  450|    626|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 37, False: 589]
  ------------------
  451|    626|}
_ZN5Exiv28stringToIjEET_RKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERb:
  482|     35|T stringTo(const std::string& s, bool& ok) {
  483|     35|  std::istringstream is(s);
  484|     35|  T tmp = T();
  485|     35|  ok = static_cast<bool>(is >> tmp);
  486|     35|  std::string rest;
  487|     35|  is >> std::skipws >> rest;
  488|     35|  if (!rest.empty())
  ------------------
  |  Branch (488:7): [True: 24, False: 11]
  ------------------
  489|     24|    ok = false;
  490|     35|  return tmp;
  491|     35|}
_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.97k|const T* find(T (&src)[N], const K& key) {
  448|  3.97k|  static_assert(N > 0, "Passed zero length find");
  449|  3.97k|  auto rc = std::find(src, src + N, key);
  450|  3.97k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 624, False: 3.35k]
  ------------------
  451|  3.97k|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm5EEEPKT_RAT1__SB_RKT0_:
  447|    201|const T* find(T (&src)[N], const K& key) {
  448|    201|  static_assert(N > 0, "Passed zero length find");
  449|    201|  auto rc = std::find(src, src + N, key);
  450|    201|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 174, False: 27]
  ------------------
  451|    201|}
minoltamn_int.cpp:_ZN5Exiv24findIKZNS_8Internal22printMinoltaSonyLensIDERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEE9LensIdFctjLm6EEEPKT_RAT1__SG_RKT0_:
  447|  1.98k|const T* find(T (&src)[N], const K& key) {
  448|  1.98k|  static_assert(N > 0, "Passed zero length find");
  449|  1.98k|  auto rc = std::find(src, src + N, key);
  450|  1.98k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 688, False: 1.30k]
  ------------------
  451|  1.98k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm15EEEPKT_RAT1__S4_RKT0_:
  447|  3.65k|const T* find(T (&src)[N], const K& key) {
  448|  3.65k|  static_assert(N > 0, "Passed zero length find");
  449|  3.65k|  auto rc = std::find(src, src + N, key);
  450|  3.65k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 940, False: 2.71k]
  ------------------
  451|  3.65k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm45EEEPKT_RAT1__S4_RKT0_:
  447|  3.07k|const T* find(T (&src)[N], const K& key) {
  448|  3.07k|  static_assert(N > 0, "Passed zero length find");
  449|  3.07k|  auto rc = std::find(src, src + N, key);
  450|  3.07k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 398, False: 2.67k]
  ------------------
  451|  3.07k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm23EEEPKT_RAT1__S4_RKT0_:
  447|  1.51k|const T* find(T (&src)[N], const K& key) {
  448|  1.51k|  static_assert(N > 0, "Passed zero length find");
  449|  1.51k|  auto rc = std::find(src, src + N, key);
  450|  1.51k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 768, False: 746]
  ------------------
  451|  1.51k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm77EEEPKT_RAT1__S4_RKT0_:
  447|    340|const T* find(T (&src)[N], const K& key) {
  448|    340|  static_assert(N > 0, "Passed zero length find");
  449|    340|  auto rc = std::find(src, src + N, key);
  450|    340|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 132, False: 208]
  ------------------
  451|    340|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEmLm298EEEPKT_RAT1__S4_RKT0_:
  447|     53|const T* find(T (&src)[N], const K& key) {
  448|     53|  static_assert(N > 0, "Passed zero length find");
  449|     53|  auto rc = std::find(src, src + N, key);
  450|     53|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 53]
  ------------------
  451|     53|}
pentaxmn_int.cpp:_ZN5Exiv24findIKZNS_8InternalL13printLensTypeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEE9LensIdFctjLm14EEEPKT_RAT1__SG_RKT0_:
  447|  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: 688, False: 1.43k]
  ------------------
  451|  2.12k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm298EEEPKT_RAT1__S4_RKT0_:
  447|    584|const T* find(T (&src)[N], const K& key) {
  448|    584|  static_assert(N > 0, "Passed zero length find");
  449|    584|  auto rc = std::find(src, src + N, key);
  450|    584|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 122, False: 462]
  ------------------
  451|    584|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm147EEEPKT_RAT1__S4_RKT0_:
  447|    214|const T* find(T (&src)[N], const K& key) {
  448|    214|  static_assert(N > 0, "Passed zero length find");
  449|    214|  auto rc = std::find(src, src + N, key);
  450|    214|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 198, False: 16]
  ------------------
  451|    214|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm79EEEPKT_RAT1__S4_RKT0_:
  447|    356|const T* find(T (&src)[N], const K& key) {
  448|    356|  static_assert(N > 0, "Passed zero length find");
  449|    356|  auto rc = std::find(src, src + N, key);
  450|    356|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 114, False: 242]
  ------------------
  451|    356|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm7EEEPKT_RAT1__S4_RKT0_:
  447|    866|const T* find(T (&src)[N], const K& key) {
  448|    866|  static_assert(N > 0, "Passed zero length find");
  449|    866|  auto rc = std::find(src, src + N, key);
  450|    866|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 276, False: 590]
  ------------------
  451|    866|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm71EEEPKT_RAT1__S4_RKT0_:
  447|  4.26k|const T* find(T (&src)[N], const K& key) {
  448|  4.26k|  static_assert(N > 0, "Passed zero length find");
  449|  4.26k|  auto rc = std::find(src, src + N, key);
  450|  4.26k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 426, False: 3.84k]
  ------------------
  451|  4.26k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm20EEEPKT_RAT1__S4_RKT0_:
  447|  2.76k|const T* find(T (&src)[N], const K& key) {
  448|  2.76k|  static_assert(N > 0, "Passed zero length find");
  449|  2.76k|  auto rc = std::find(src, src + N, key);
  450|  2.76k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 570, False: 2.19k]
  ------------------
  451|  2.76k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm2EEEPKT_RAT1__S4_RKT0_:
  447|    216|const T* find(T (&src)[N], const K& key) {
  448|    216|  static_assert(N > 0, "Passed zero length find");
  449|    216|  auto rc = std::find(src, src + N, key);
  450|    216|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 168, False: 48]
  ------------------
  451|    216|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm80EEEPKT_RAT1__S4_RKT0_:
  447|  1.13k|const T* find(T (&src)[N], const K& key) {
  448|  1.13k|  static_assert(N > 0, "Passed zero length find");
  449|  1.13k|  auto rc = std::find(src, src + N, key);
  450|  1.13k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 473, False: 657]
  ------------------
  451|  1.13k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm36EEEPKT_RAT1__S4_RKT0_:
  447|  1.45k|const T* find(T (&src)[N], const K& key) {
  448|  1.45k|  static_assert(N > 0, "Passed zero length find");
  449|  1.45k|  auto rc = std::find(src, src + N, key);
  450|  1.45k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 190, False: 1.26k]
  ------------------
  451|  1.45k|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm5EEEPKT_RAT1__SB_RKT0_:
  447|    864|const T* find(T (&src)[N], const K& key) {
  448|    864|  static_assert(N > 0, "Passed zero length find");
  449|    864|  auto rc = std::find(src, src + N, key);
  450|    864|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 472, False: 392]
  ------------------
  451|    864|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm30EEEPKT_RAT1__SB_RKT0_:
  447|    522|const T* find(T (&src)[N], const K& key) {
  448|    522|  static_assert(N > 0, "Passed zero length find");
  449|    522|  auto rc = std::find(src, src + N, key);
  450|    522|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 434, False: 88]
  ------------------
  451|    522|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm16EEEPKT_RAT1__SB_RKT0_:
  447|    578|const T* find(T (&src)[N], const K& key) {
  448|    578|  static_assert(N > 0, "Passed zero length find");
  449|    578|  auto rc = std::find(src, src + N, key);
  450|    578|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 304, False: 274]
  ------------------
  451|    578|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm113EEEPKT_RAT1__S4_RKT0_:
  447|  9.80k|const T* find(T (&src)[N], const K& key) {
  448|  9.80k|  static_assert(N > 0, "Passed zero length find");
  449|  9.80k|  auto rc = std::find(src, src + N, key);
  450|  9.80k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.23k, False: 8.57k]
  ------------------
  451|  9.80k|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm19EEEPKT_RAT1__SB_RKT0_:
  447|    324|const T* find(T (&src)[N], const K& key) {
  448|    324|  static_assert(N > 0, "Passed zero length find");
  449|    324|  auto rc = std::find(src, src + N, key);
  450|    324|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 310, False: 14]
  ------------------
  451|    324|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm26EEEPKT_RAT1__S4_RKT0_:
  447|  3.13k|const T* find(T (&src)[N], const K& key) {
  448|  3.13k|  static_assert(N > 0, "Passed zero length find");
  449|  3.13k|  auto rc = std::find(src, src + N, key);
  450|  3.13k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 672, False: 2.46k]
  ------------------
  451|  3.13k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm31EEEPKT_RAT1__S4_RKT0_:
  447|  5.14k|const T* find(T (&src)[N], const K& key) {
  448|  5.14k|  static_assert(N > 0, "Passed zero length find");
  449|  5.14k|  auto rc = std::find(src, src + N, key);
  450|  5.14k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.18k, False: 3.95k]
  ------------------
  451|  5.14k|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm34EEEPKT_RAT1__SB_RKT0_:
  447|     69|const T* find(T (&src)[N], const K& key) {
  448|     69|  static_assert(N > 0, "Passed zero length find");
  449|     69|  auto rc = std::find(src, src + N, key);
  450|     69|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 58, False: 11]
  ------------------
  451|     69|}

_ZNK5Exiv25Value6typeIdEv:
   85|  56.2M|  TypeId typeId() const {
   86|  56.2M|    return type_;
   87|  56.2M|  }
_ZNK5Exiv25Value5cloneEv:
   93|  39.1M|  UniquePtr clone() const {
   94|  39.1M|    return UniquePtr(clone_());
   95|  39.1M|  }
_ZNK5Exiv25Value2okEv:
  181|  1.73k|  bool ok() const {
  182|  1.73k|    return ok_;
  183|  1.73k|  }
_ZNK5Exiv222LangAltValueComparatorclERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  795|    276|  bool operator()(const std::string& str1, const std::string& str2) const {
  796|    276|    if (str1.size() != str2.size())
  ------------------
  |  Branch (796:9): [True: 102, False: 174]
  ------------------
  797|    102|      return str1.size() > str2.size();
  798|       |
  799|    174|    auto f = [](unsigned char a, unsigned char b) { return std::tolower(a) > std::tolower(b); };
  800|    174|    return std::lexicographical_compare(str1.begin(), str1.end(), str2.begin(), str2.end(), f);
  801|    276|  }
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_5ValueE:
  242|   334k|inline std::ostream& operator<<(std::ostream& os, const Value& value) {
  243|   334k|  return value.write(os);
  244|   334k|}
_ZN5Exiv27getTypeItEENS_6TypeIdEv:
 1083|  11.2M|inline TypeId getType<uint16_t>() {
 1084|  11.2M|  return unsignedShort;
 1085|  11.2M|}
_ZN5Exiv27getTypeIjEENS_6TypeIdEv:
 1088|  30.6k|inline TypeId getType<uint32_t>() {
 1089|  30.6k|  return unsignedLong;
 1090|  30.6k|}
_ZN5Exiv27getTypeINSt3__14pairIjjEEEENS_6TypeIdEv:
 1093|  51.0k|inline TypeId getType<URational>() {
 1094|  51.0k|  return unsignedRational;
 1095|  51.0k|}
_ZN5Exiv27getTypeIsEENS_6TypeIdEv:
 1098|   319k|inline TypeId getType<int16_t>() {
 1099|   319k|  return signedShort;
 1100|   319k|}
_ZN5Exiv27getTypeIiEENS_6TypeIdEv:
 1103|  95.3k|inline TypeId getType<int32_t>() {
 1104|  95.3k|  return signedLong;
 1105|  95.3k|}
_ZN5Exiv27getTypeINSt3__14pairIiiEEEENS_6TypeIdEv:
 1108|  35.3k|inline TypeId getType<Rational>() {
 1109|  35.3k|  return signedRational;
 1110|  35.3k|}
_ZN5Exiv27getTypeIfEENS_6TypeIdEv:
 1113|  10.6k|inline TypeId getType<float>() {
 1114|  10.6k|  return tiffFloat;
 1115|  10.6k|}
_ZN5Exiv27getTypeIdEENS_6TypeIdEv:
 1118|  9.21k|inline TypeId getType<double>() {
 1119|  9.21k|  return tiffDouble;
 1120|  9.21k|}
_ZN5Exiv28getValueItEET_PKhNS_9ByteOrderE:
 1314|  12.8M|inline uint16_t getValue(const byte* buf, ByteOrder byteOrder) {
 1315|  12.8M|  return getUShort(buf, byteOrder);
 1316|  12.8M|}
_ZN5Exiv28getValueIjEET_PKhNS_9ByteOrderE:
 1319|  1.48M|inline uint32_t getValue(const byte* buf, ByteOrder byteOrder) {
 1320|  1.48M|  return getULong(buf, byteOrder);
 1321|  1.48M|}
_ZN5Exiv28getValueINSt3__14pairIjjEEEET_PKhNS_9ByteOrderE:
 1324|   489k|inline URational getValue(const byte* buf, ByteOrder byteOrder) {
 1325|   489k|  return getURational(buf, byteOrder);
 1326|   489k|}
_ZN5Exiv28getValueIsEET_PKhNS_9ByteOrderE:
 1329|  6.88M|inline int16_t getValue(const byte* buf, ByteOrder byteOrder) {
 1330|  6.88M|  return getShort(buf, byteOrder);
 1331|  6.88M|}
_ZN5Exiv28getValueIiEET_PKhNS_9ByteOrderE:
 1334|   219k|inline int32_t getValue(const byte* buf, ByteOrder byteOrder) {
 1335|   219k|  return getLong(buf, byteOrder);
 1336|   219k|}
_ZN5Exiv28getValueINSt3__14pairIiiEEEET_PKhNS_9ByteOrderE:
 1339|   433k|inline Rational getValue(const byte* buf, ByteOrder byteOrder) {
 1340|   433k|  return getRational(buf, byteOrder);
 1341|   433k|}
_ZN5Exiv28getValueIfEET_PKhNS_9ByteOrderE:
 1344|   545k|inline float getValue(const byte* buf, ByteOrder byteOrder) {
 1345|   545k|  return getFloat(buf, byteOrder);
 1346|   545k|}
_ZN5Exiv28getValueIdEET_PKhNS_9ByteOrderE:
 1349|   941k|inline double getValue(const byte* buf, ByteOrder byteOrder) {
 1350|   941k|  return getDouble(buf, byteOrder);
 1351|   941k|}
_ZN5Exiv26toDataItEEmPhT_NS_9ByteOrderE:
 1372|   706k|inline size_t toData(byte* buf, uint16_t t, ByteOrder byteOrder) {
 1373|   706k|  return us2Data(buf, t, byteOrder);
 1374|   706k|}
_ZN5Exiv26toDataIjEEmPhT_NS_9ByteOrderE:
 1380|   213k|inline size_t toData(byte* buf, uint32_t t, ByteOrder byteOrder) {
 1381|   213k|  return ul2Data(buf, t, byteOrder);
 1382|   213k|}
_ZN5Exiv26toDataINSt3__14pairIjjEEEEmPhT_NS_9ByteOrderE:
 1388|   316k|inline size_t toData(byte* buf, URational t, ByteOrder byteOrder) {
 1389|   316k|  return ur2Data(buf, t, byteOrder);
 1390|   316k|}
_ZN5Exiv26toDataIsEEmPhT_NS_9ByteOrderE:
 1396|   196k|inline size_t toData(byte* buf, int16_t t, ByteOrder byteOrder) {
 1397|   196k|  return s2Data(buf, t, byteOrder);
 1398|   196k|}
_ZN5Exiv26toDataIiEEmPhT_NS_9ByteOrderE:
 1404|  27.7k|inline size_t toData(byte* buf, int32_t t, ByteOrder byteOrder) {
 1405|  27.7k|  return l2Data(buf, t, byteOrder);
 1406|  27.7k|}
_ZN5Exiv26toDataINSt3__14pairIiiEEEEmPhT_NS_9ByteOrderE:
 1412|  64.0k|inline size_t toData(byte* buf, Rational t, ByteOrder byteOrder) {
 1413|  64.0k|  return r2Data(buf, t, byteOrder);
 1414|  64.0k|}
_ZN5Exiv26toDataIfEEmPhT_NS_9ByteOrderE:
 1420|  97.5k|inline size_t toData(byte* buf, float t, ByteOrder byteOrder) {
 1421|  97.5k|  return f2Data(buf, t, byteOrder);
 1422|  97.5k|}
_ZN5Exiv26toDataIdEEmPhT_NS_9ByteOrderE:
 1428|  44.3k|inline size_t toData(byte* buf, double t, ByteOrder byteOrder) {
 1429|  44.3k|  return d2Data(buf, t, byteOrder);
 1430|  44.3k|}
_ZNK5Exiv29ValueTypeIdE7toInt64Em:
 1548|  3.61k|inline int64_t ValueType<double>::toInt64(size_t n) const {
 1549|  3.61k|  return float_to_integer_helper<int64_t>(n);
 1550|  3.61k|}
_ZNK5Exiv29ValueTypeIdE8toUint32Em:
 1553|  2.07k|inline uint32_t ValueType<double>::toUint32(size_t n) const {
 1554|  2.07k|  return float_to_integer_helper<uint32_t>(n);
 1555|  2.07k|}
_ZNK5Exiv29ValueTypeIfE7toInt64Em:
 1558|  7.48k|inline int64_t ValueType<float>::toInt64(size_t n) const {
 1559|  7.48k|  return float_to_integer_helper<int64_t>(n);
 1560|  7.48k|}
_ZNK5Exiv29ValueTypeIfE8toUint32Em:
 1562|  6.02k|inline uint32_t ValueType<float>::toUint32(size_t n) const {
 1563|  6.02k|  return float_to_integer_helper<uint32_t>(n);
 1564|  6.02k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE7toInt64Em:
 1567|  70.0k|inline int64_t ValueType<Rational>::toInt64(size_t n) const {
 1568|  70.0k|  return rational_to_integer_helper<int64_t>(n);
 1569|  70.0k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8toUint32Em:
 1571|  32.5k|inline uint32_t ValueType<Rational>::toUint32(size_t n) const {
 1572|  32.5k|  return rational_to_integer_helper<uint32_t>(n);
 1573|  32.5k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE7toInt64Em:
 1576|  19.6k|inline int64_t ValueType<URational>::toInt64(size_t n) const {
 1577|  19.6k|  return rational_to_integer_helper<int64_t>(n);
 1578|  19.6k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8toUint32Em:
 1580|  2.74k|inline uint32_t ValueType<URational>::toUint32(size_t n) const {
 1581|  2.74k|  return rational_to_integer_helper<uint32_t>(n);
 1582|  2.74k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE7toFloatEm:
 1591|    458|inline float ValueType<Rational>::toFloat(size_t n) const {
 1592|    458|  ok_ = (value_.at(n).second != 0);
 1593|    458|  if (!ok_)
  ------------------
  |  Branch (1593:7): [True: 10, False: 448]
  ------------------
 1594|     10|    return 0.0f;
 1595|    448|  return static_cast<float>(value_.at(n).first) / value_.at(n).second;
 1596|    458|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE7toFloatEm:
 1599|  3.13k|inline float ValueType<URational>::toFloat(size_t n) const {
 1600|  3.13k|  ok_ = (value_.at(n).second != 0);
 1601|  3.13k|  if (!ok_)
  ------------------
  |  Branch (1601:7): [True: 23, False: 3.11k]
  ------------------
 1602|     23|    return 0.0f;
 1603|  3.11k|  return static_cast<float>(value_.at(n).first) / value_.at(n).second;
 1604|  3.13k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE10toRationalEm:
 1613|  2.98k|inline Rational ValueType<Rational>::toRational(size_t n) const {
 1614|  2.98k|  ok_ = true;
 1615|  2.98k|  return {value_.at(n).first, value_.at(n).second};
 1616|  2.98k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE10toRationalEm:
 1619|  13.8k|inline Rational ValueType<URational>::toRational(size_t n) const {
 1620|  13.8k|  ok_ = true;
 1621|  13.8k|  return {value_.at(n).first, value_.at(n).second};
 1622|  13.8k|}
_ZNK5Exiv29ValueTypeIfE10toRationalEm:
 1625|  3.79k|inline Rational ValueType<float>::toRational(size_t n) const {
 1626|  3.79k|  ok_ = true;
 1627|       |  // Warning: This is a very simple conversion, see floatToRationalCast()
 1628|  3.79k|  return floatToRationalCast(value_.at(n));
 1629|  3.79k|}
_ZNK5Exiv29ValueTypeIdE10toRationalEm:
 1632|  1.14k|inline Rational ValueType<double>::toRational(size_t n) const {
 1633|  1.14k|  ok_ = true;
 1634|       |  // Warning: This is a very simple conversion, see floatToRationalCast()
 1635|  1.14k|  return floatToRationalCast(static_cast<float>(value_.at(n)));
 1636|  1.14k|}
_ZNK5Exiv29ValueTypeIdE23float_to_integer_helperIlEET_m:
 1212|  3.61k|  I float_to_integer_helper(size_t n) const {
 1213|  3.61k|    const auto v = value_.at(n);
 1214|  3.61k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 3.09k, False: 523]
  ------------------
 1215|  3.09k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 1.94k, False: 1.15k]
  ------------------
 1216|  1.94k|      return static_cast<I>(std::lround(v));
 1217|  1.94k|    }
 1218|  1.67k|    return 0;
 1219|  3.61k|  }
_ZNK5Exiv29ValueTypeIdE23float_to_integer_helperIjEET_m:
 1212|  2.07k|  I float_to_integer_helper(size_t n) const {
 1213|  2.07k|    const auto v = value_.at(n);
 1214|  2.07k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 1.33k, False: 746]
  ------------------
 1215|  1.33k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 689, False: 643]
  ------------------
 1216|    689|      return static_cast<I>(std::lround(v));
 1217|    689|    }
 1218|  1.38k|    return 0;
 1219|  2.07k|  }
_ZNK5Exiv29ValueTypeIfE23float_to_integer_helperIlEET_m:
 1212|  7.48k|  I float_to_integer_helper(size_t n) const {
 1213|  7.48k|    const auto v = value_.at(n);
 1214|  7.48k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 6.27k, False: 1.21k]
  ------------------
 1215|  6.27k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 5.23k, False: 1.03k]
  ------------------
 1216|  5.23k|      return static_cast<I>(std::lround(v));
 1217|  5.23k|    }
 1218|  2.25k|    return 0;
 1219|  7.48k|  }
_ZNK5Exiv29ValueTypeIfE23float_to_integer_helperIjEET_m:
 1212|  6.02k|  I float_to_integer_helper(size_t n) const {
 1213|  6.02k|    const auto v = value_.at(n);
 1214|  6.02k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 3.69k, False: 2.33k]
  ------------------
 1215|  3.69k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 2.98k, False: 708]
  ------------------
 1216|  2.98k|      return static_cast<I>(std::lround(v));
 1217|  2.98k|    }
 1218|  3.04k|    return 0;
 1219|  6.02k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE26rational_to_integer_helperIlEET_m:
 1223|  70.0k|  I rational_to_integer_helper(size_t n) const {
 1224|  70.0k|    auto a = value_.at(n).first;
 1225|  70.0k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  70.0k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 13.5k, False: 56.4k]
  ------------------
 1229|  13.5k|      return 0;
 1230|  13.5k|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  56.4k|#ifdef __cpp_if_constexpr
 1234|  56.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|  56.4k|      const auto imin = std::numeric_limits<I>::min();
 1240|  56.4k|      const auto imax = std::numeric_limits<I>::max();
 1241|  56.4k|      if (imax < b || a < imin || imax < a) {
  ------------------
  |  Branch (1241:11): [True: 13, False: 56.3k]
  |  Branch (1241:23): [True: 0, False: 56.3k]
  |  Branch (1241:35): [True: 0, False: 56.3k]
  ------------------
 1242|      0|        return 0;
 1243|      0|      }
 1244|  56.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|  56.4k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  70.0k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE26rational_to_integer_helperIjEET_m:
 1223|  32.5k|  I rational_to_integer_helper(size_t n) const {
 1224|  32.5k|    auto a = value_.at(n).first;
 1225|  32.5k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  32.5k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 6.76k, False: 25.7k]
  ------------------
 1229|  6.76k|      return 0;
 1230|  6.76k|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  25.7k|#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|  25.7k|    } else {
 1255|       |      // conversion is from signed to unsigned
 1256|  25.7k|      const auto imax = std::numeric_limits<I>::max();
 1257|  25.7k|      if (a < 0) {
  ------------------
  |  Branch (1257:11): [True: 2.71k, False: 23.0k]
  ------------------
 1258|  2.71k|        return 0;
 1259|  2.71k|      }
 1260|       |      // Inputs are not negative so convert them to unsigned.
 1261|  23.0k|      const auto a_u = static_cast<std::make_unsigned_t<decltype(a)>>(a);
 1262|  23.0k|      const auto b_u = static_cast<std::make_unsigned_t<decltype(b)>>(b);
 1263|  23.0k|      if (imax < b_u || imax < a_u) {
  ------------------
  |  Branch (1263:11): [True: 16, False: 23.0k]
  |  Branch (1263:25): [True: 0, False: 23.0k]
  ------------------
 1264|      0|        return 0;
 1265|      0|      }
 1266|  23.0k|    }
 1267|       |
 1268|  23.0k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  32.5k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE26rational_to_integer_helperIlEET_m:
 1223|  19.6k|  I rational_to_integer_helper(size_t n) const {
 1224|  19.6k|    auto a = value_.at(n).first;
 1225|  19.6k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  19.6k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 762, False: 18.9k]
  ------------------
 1229|    762|      return 0;
 1230|    762|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  18.9k|#ifdef __cpp_if_constexpr
 1234|       |    if constexpr (std::is_signed_v<I> == std::is_signed_v<decltype(a)>) {
 1235|       |#else
 1236|       |    if (std::is_signed<I>::value == std::is_signed<decltype(a)>::value) {
 1237|       |#endif
 1238|       |      // conversion does not change sign
 1239|       |      const auto imin = std::numeric_limits<I>::min();
 1240|       |      const auto imax = std::numeric_limits<I>::max();
 1241|       |      if (imax < b || a < imin || imax < a) {
 1242|       |        return 0;
 1243|       |      }
 1244|       |#ifdef __cpp_if_constexpr
 1245|  18.9k|    } else if constexpr (std::is_signed_v<I>) {
 1246|       |#else
 1247|       |    } else if (std::is_signed<I>::value) {
 1248|       |#endif
 1249|       |      // conversion is from unsigned to signed
 1250|  18.9k|      const auto imax = static_cast<std::make_unsigned_t<I>>(std::numeric_limits<I>::max());
 1251|  18.9k|      if (imax < b || imax < a) {
  ------------------
  |  Branch (1251:11): [True: 11, False: 18.8k]
  |  Branch (1251:23): [True: 0, False: 18.8k]
  ------------------
 1252|      0|        return 0;
 1253|      0|      }
 1254|       |    } else {
 1255|       |      // conversion is from signed to unsigned
 1256|       |      const auto imax = std::numeric_limits<I>::max();
 1257|       |      if (a < 0) {
 1258|       |        return 0;
 1259|       |      }
 1260|       |      // Inputs are not negative so convert them to unsigned.
 1261|       |      const auto a_u = static_cast<std::make_unsigned_t<decltype(a)>>(a);
 1262|       |      const auto b_u = static_cast<std::make_unsigned_t<decltype(b)>>(b);
 1263|       |      if (imax < b_u || imax < a_u) {
 1264|       |        return 0;
 1265|       |      }
 1266|       |    }
 1267|       |
 1268|  18.9k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  19.6k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE26rational_to_integer_helperIjEET_m:
 1223|  2.74k|  I rational_to_integer_helper(size_t n) const {
 1224|  2.74k|    auto a = value_.at(n).first;
 1225|  2.74k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  2.74k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 111, False: 2.63k]
  ------------------
 1229|    111|      return 0;
 1230|    111|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  2.63k|#ifdef __cpp_if_constexpr
 1234|  2.63k|    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.63k|      const auto imin = std::numeric_limits<I>::min();
 1240|  2.63k|      const auto imax = std::numeric_limits<I>::max();
 1241|  2.63k|      if (imax < b || a < imin || imax < a) {
  ------------------
  |  Branch (1241:11): [True: 32, False: 2.60k]
  |  Branch (1241:23): [True: 0, False: 2.60k]
  |  Branch (1241:35): [True: 0, False: 2.60k]
  ------------------
 1242|      0|        return 0;
 1243|      0|      }
 1244|  2.63k|#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.63k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  2.74k|  }
_ZN5Exiv29ValueTypeItEC2Ev:
 1433|  11.2M|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  11.2M|}
_ZN5Exiv25ValueD2Ev:
   43|  55.6M|  virtual ~Value() = default;
_ZN5Exiv29ValueTypeItE4readEPKhmNS_9ByteOrderE:
 1467|  11.2M|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  11.2M|  value_.clear();
 1469|  11.2M|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  11.2M|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 11.2M, False: 0]
  |  Branch (1470:17): [True: 1.24k, False: 11.2M]
  ------------------
 1471|  1.24k|    len = (len / ts) * ts;
 1472|  24.1M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 12.8M, False: 11.2M]
  ------------------
 1473|  12.8M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  12.8M|  }
 1475|  11.2M|  return 0;
 1476|  11.2M|}
_ZN5Exiv29ValueTypeItE4readERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 1479|    858|int ValueType<T>::read(const std::string& buf) {
 1480|    858|  std::istringstream is(buf);
 1481|    858|  T tmp;
 1482|    858|  ValueList val;
 1483|  1.49k|  while (is >> tmp)
  ------------------
  |  Branch (1483:10): [True: 633, False: 858]
  ------------------
 1484|    633|    val.push_back(tmp);
 1485|    858|  if (!is.eof())
  ------------------
  |  Branch (1485:7): [True: 9, False: 849]
  ------------------
 1486|      9|    return 1;
 1487|    849|  value_ = std::move(val);
 1488|    849|  return 0;
 1489|    858|}
_ZN5Exiv29ValueTypeItE11setDataAreaEPKhm:
 1649|    228|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    228|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 166, False: 62]
  ------------------
 1651|    166|    pDataArea_ = Blob(buf, buf + len);
 1652|     62|  else
 1653|     62|    pDataArea_.clear();
 1654|    228|  return 0;
 1655|    228|}
_ZNK5Exiv29ValueTypeItE4copyEPhNS_9ByteOrderE:
 1492|  26.8k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  26.8k|  size_t offset = 0;
 1494|   706k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 706k, False: 26.8k]
  ------------------
 1495|   706k|    offset += toData(buf + offset, val, byteOrder);
 1496|   706k|  }
 1497|  26.8k|  return offset;
 1498|  26.8k|}
_ZNK5Exiv29ValueTypeItE5countEv:
 1501|  11.6M|size_t ValueType<T>::count() const {
 1502|  11.6M|  return value_.size();
 1503|  11.6M|}
_ZNK5Exiv29ValueTypeItE4sizeEv:
 1506|   163k|size_t ValueType<T>::size() const {
 1507|   163k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|   163k|}
_ZNK5Exiv29ValueTypeItE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  58.9k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  58.9k|  auto end = value_.end();
 1518|  58.9k|  auto i = value_.begin();
 1519|   379k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 320k, False: 58.9k]
  ------------------
 1520|   320k|    os << std::setprecision(15) << *i;
 1521|   320k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 262k, False: 58.7k]
  ------------------
 1522|   262k|      os << " ";
 1523|   320k|  }
 1524|  58.9k|  return os;
 1525|  58.9k|}
_ZNK5Exiv29ValueTypeItE8toStringEm:
 1528|  1.07k|std::string ValueType<T>::toString(size_t n) const {
 1529|  1.07k|  ok_ = true;
 1530|  1.07k|  return Exiv2::toString<T>(value_.at(n));
 1531|  1.07k|}
_ZNK5Exiv29ValueTypeItE7toInt64Em:
 1535|   291k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|   291k|  ok_ = true;
 1537|   291k|  return static_cast<int64_t>(value_.at(n));
 1538|   291k|}
_ZNK5Exiv29ValueTypeItE8toUint32Em:
 1540|  48.8k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  48.8k|  ok_ = true;
 1542|  48.8k|  return static_cast<uint32_t>(value_.at(n));
 1543|  48.8k|}
_ZNK5Exiv29ValueTypeItE7toFloatEm:
 1585|  12.9k|float ValueType<T>::toFloat(size_t n) const {
 1586|  12.9k|  ok_ = true;
 1587|  12.9k|  return static_cast<float>(value_.at(n));
 1588|  12.9k|}
_ZNK5Exiv29ValueTypeItE10toRationalEm:
 1607|    180|Rational ValueType<T>::toRational(size_t n) const {
 1608|    180|  ok_ = true;
 1609|    180|  return {value_.at(n), 1};
 1610|    180|}
_ZNK5Exiv29ValueTypeItE12sizeDataAreaEv:
 1639|  1.67k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.67k|  return pDataArea_.size();
 1641|  1.67k|}
_ZNK5Exiv29ValueTypeItE8dataAreaEv:
 1644|    154|DataBuf ValueType<T>::dataArea() const {
 1645|    154|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    154|}
_ZNK5Exiv29ValueTypeItE6clone_Ev:
 1511|  22.4M|ValueType<T>* ValueType<T>::clone_() const {
 1512|  22.4M|  return new ValueType<T>(*this);
 1513|  22.4M|}
_ZN5Exiv29ValueTypeItEC2ERKS1_:
 1447|  22.4M|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  22.4M|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 154, False: 22.4M]
  ------------------
 1449|    154|    pDataArea_ = rhs.pDataArea_;
 1450|  22.4M|}
_ZN5Exiv25ValueC2ERKS0_:
  225|  14.9M|  Value(const Value&) = default;
_ZN5Exiv29ValueTypeIjE4readEPKhmNS_9ByteOrderE:
 1467|   240k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|   240k|  value_.clear();
 1469|   240k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|   240k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 240k, False: 0]
  |  Branch (1470:17): [True: 153, False: 240k]
  ------------------
 1471|    153|    len = (len / ts) * ts;
 1472|  1.72M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 1.48M, False: 240k]
  ------------------
 1473|  1.48M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  1.48M|  }
 1475|   240k|  return 0;
 1476|   240k|}
_ZN5Exiv29ValueTypeIjE11setDataAreaEPKhm:
 1649|    285|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    285|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 174, False: 111]
  ------------------
 1651|    174|    pDataArea_ = Blob(buf, buf + len);
 1652|    111|  else
 1653|    111|    pDataArea_.clear();
 1654|    285|  return 0;
 1655|    285|}
_ZNK5Exiv29ValueTypeIjE4copyEPhNS_9ByteOrderE:
 1492|  53.9k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  53.9k|  size_t offset = 0;
 1494|   213k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 213k, False: 53.9k]
  ------------------
 1495|   213k|    offset += toData(buf + offset, val, byteOrder);
 1496|   213k|  }
 1497|  53.9k|  return offset;
 1498|  53.9k|}
_ZNK5Exiv29ValueTypeIjE5countEv:
 1501|   402k|size_t ValueType<T>::count() const {
 1502|   402k|  return value_.size();
 1503|   402k|}
_ZNK5Exiv29ValueTypeIjE4sizeEv:
 1506|   326k|size_t ValueType<T>::size() const {
 1507|   326k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|   326k|}
_ZNK5Exiv29ValueTypeIjE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  65.5k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  65.5k|  auto end = value_.end();
 1518|  65.5k|  auto i = value_.begin();
 1519|   566k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 500k, False: 65.5k]
  ------------------
 1520|   500k|    os << std::setprecision(15) << *i;
 1521|   500k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 435k, False: 65.2k]
  ------------------
 1522|   435k|      os << " ";
 1523|   500k|  }
 1524|  65.5k|  return os;
 1525|  65.5k|}
_ZNK5Exiv29ValueTypeIjE8toStringEm:
 1528|    244|std::string ValueType<T>::toString(size_t n) const {
 1529|    244|  ok_ = true;
 1530|    244|  return Exiv2::toString<T>(value_.at(n));
 1531|    244|}
_ZNK5Exiv29ValueTypeIjE7toInt64Em:
 1535|  37.1k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  37.1k|  ok_ = true;
 1537|  37.1k|  return static_cast<int64_t>(value_.at(n));
 1538|  37.1k|}
_ZNK5Exiv29ValueTypeIjE8toUint32Em:
 1540|  9.59k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  9.59k|  ok_ = true;
 1542|  9.59k|  return static_cast<uint32_t>(value_.at(n));
 1543|  9.59k|}
_ZNK5Exiv29ValueTypeIjE7toFloatEm:
 1585|    116|float ValueType<T>::toFloat(size_t n) const {
 1586|    116|  ok_ = true;
 1587|    116|  return static_cast<float>(value_.at(n));
 1588|    116|}
_ZNK5Exiv29ValueTypeIjE10toRationalEm:
 1607|    480|Rational ValueType<T>::toRational(size_t n) const {
 1608|    480|  ok_ = true;
 1609|    480|  return {value_.at(n), 1};
 1610|    480|}
_ZNK5Exiv29ValueTypeIjE12sizeDataAreaEv:
 1639|  1.72k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.72k|  return pDataArea_.size();
 1641|  1.72k|}
_ZNK5Exiv29ValueTypeIjE8dataAreaEv:
 1644|    198|DataBuf ValueType<T>::dataArea() const {
 1645|    198|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    198|}
_ZNK5Exiv29ValueTypeIjE6clone_Ev:
 1511|   576k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   576k|  return new ValueType<T>(*this);
 1513|   576k|}
_ZN5Exiv29ValueTypeIjEC2ERKS1_:
 1447|   576k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   576k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 180, False: 576k]
  ------------------
 1449|    180|    pDataArea_ = rhs.pDataArea_;
 1450|   576k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEEC2Ev:
 1433|  51.0k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  51.0k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEE4readEPKhmNS_9ByteOrderE:
 1467|  51.0k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  51.0k|  value_.clear();
 1469|  51.0k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  51.0k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 51.0k, False: 0]
  |  Branch (1470:17): [True: 0, False: 51.0k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   540k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 489k, False: 51.0k]
  ------------------
 1473|   489k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   489k|  }
 1475|  51.0k|  return 0;
 1476|  51.0k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEE11setDataAreaEPKhm:
 1649|    285|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    285|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 185, False: 100]
  ------------------
 1651|    185|    pDataArea_ = Blob(buf, buf + len);
 1652|    100|  else
 1653|    100|    pDataArea_.clear();
 1654|    285|  return 0;
 1655|    285|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE4copyEPhNS_9ByteOrderE:
 1492|  22.0k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  22.0k|  size_t offset = 0;
 1494|   316k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 316k, False: 22.0k]
  ------------------
 1495|   316k|    offset += toData(buf + offset, val, byteOrder);
 1496|   316k|  }
 1497|  22.0k|  return offset;
 1498|  22.0k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE5countEv:
 1501|   105k|size_t ValueType<T>::count() const {
 1502|   105k|  return value_.size();
 1503|   105k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE4sizeEv:
 1506|  66.9k|size_t ValueType<T>::size() const {
 1507|  66.9k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  66.9k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE5writeERNS1_13basic_ostreamIcNS1_11char_traitsIcEEEE:
 1516|  3.94k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  3.94k|  auto end = value_.end();
 1518|  3.94k|  auto i = value_.begin();
 1519|   270k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 266k, False: 3.94k]
  ------------------
 1520|   266k|    os << std::setprecision(15) << *i;
 1521|   266k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 262k, False: 3.75k]
  ------------------
 1522|   262k|      os << " ";
 1523|   266k|  }
 1524|  3.94k|  return os;
 1525|  3.94k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8toStringEm:
 1528|    224|std::string ValueType<T>::toString(size_t n) const {
 1529|    224|  ok_ = true;
 1530|    224|  return Exiv2::toString<T>(value_.at(n));
 1531|    224|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE12sizeDataAreaEv:
 1639|    781|size_t ValueType<T>::sizeDataArea() const {
 1640|    781|  return pDataArea_.size();
 1641|    781|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8dataAreaEv:
 1644|     91|DataBuf ValueType<T>::dataArea() const {
 1645|     91|  return {pDataArea_.data(), pDataArea_.size()};
 1646|     91|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE6clone_Ev:
 1511|   132k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   132k|  return new ValueType<T>(*this);
 1513|   132k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEEC2ERKS4_:
 1447|   132k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   132k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 157, False: 132k]
  ------------------
 1449|    157|    pDataArea_ = rhs.pDataArea_;
 1450|   132k|}
_ZN5Exiv29ValueTypeIsEC2Ev:
 1433|   319k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|   319k|}
_ZN5Exiv29ValueTypeIsE4readEPKhmNS_9ByteOrderE:
 1467|   316k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|   316k|  value_.clear();
 1469|   316k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|   316k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 316k, False: 0]
  |  Branch (1470:17): [True: 497, False: 315k]
  ------------------
 1471|    497|    len = (len / ts) * ts;
 1472|  7.20M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 6.88M, False: 316k]
  ------------------
 1473|  6.88M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  6.88M|  }
 1475|   316k|  return 0;
 1476|   316k|}
_ZN5Exiv29ValueTypeIsE4readERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 1479|  3.39k|int ValueType<T>::read(const std::string& buf) {
 1480|  3.39k|  std::istringstream is(buf);
 1481|  3.39k|  T tmp;
 1482|  3.39k|  ValueList val;
 1483|  9.06k|  while (is >> tmp)
  ------------------
  |  Branch (1483:10): [True: 5.66k, False: 3.39k]
  ------------------
 1484|  5.66k|    val.push_back(tmp);
 1485|  3.39k|  if (!is.eof())
  ------------------
  |  Branch (1485:7): [True: 0, False: 3.39k]
  ------------------
 1486|      0|    return 1;
 1487|  3.39k|  value_ = std::move(val);
 1488|  3.39k|  return 0;
 1489|  3.39k|}
_ZN5Exiv29ValueTypeIsE11setDataAreaEPKhm:
 1649|    214|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    214|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 102, False: 112]
  ------------------
 1651|    102|    pDataArea_ = Blob(buf, buf + len);
 1652|    112|  else
 1653|    112|    pDataArea_.clear();
 1654|    214|  return 0;
 1655|    214|}
_ZNK5Exiv29ValueTypeIsE4copyEPhNS_9ByteOrderE:
 1492|  8.75k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  8.75k|  size_t offset = 0;
 1494|   196k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 196k, False: 8.75k]
  ------------------
 1495|   196k|    offset += toData(buf + offset, val, byteOrder);
 1496|   196k|  }
 1497|  8.75k|  return offset;
 1498|  8.75k|}
_ZNK5Exiv29ValueTypeIsE5countEv:
 1501|  12.3M|size_t ValueType<T>::count() const {
 1502|  12.3M|  return value_.size();
 1503|  12.3M|}
_ZNK5Exiv29ValueTypeIsE4sizeEv:
 1506|  29.3k|size_t ValueType<T>::size() const {
 1507|  29.3k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  29.3k|}
_ZNK5Exiv29ValueTypeIsE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  11.2k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  11.2k|  auto end = value_.end();
 1518|  11.2k|  auto i = value_.begin();
 1519|   147k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 135k, False: 11.2k]
  ------------------
 1520|   135k|    os << std::setprecision(15) << *i;
 1521|   135k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 124k, False: 11.0k]
  ------------------
 1522|   124k|      os << " ";
 1523|   135k|  }
 1524|  11.2k|  return os;
 1525|  11.2k|}
_ZNK5Exiv29ValueTypeIsE8toStringEm:
 1528|     74|std::string ValueType<T>::toString(size_t n) const {
 1529|     74|  ok_ = true;
 1530|     74|  return Exiv2::toString<T>(value_.at(n));
 1531|     74|}
_ZNK5Exiv29ValueTypeIsE7toInt64Em:
 1535|  11.9M|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  11.9M|  ok_ = true;
 1537|  11.9M|  return static_cast<int64_t>(value_.at(n));
 1538|  11.9M|}
_ZNK5Exiv29ValueTypeIsE8toUint32Em:
 1540|  11.3k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  11.3k|  ok_ = true;
 1542|  11.3k|  return static_cast<uint32_t>(value_.at(n));
 1543|  11.3k|}
_ZNK5Exiv29ValueTypeIsE7toFloatEm:
 1585|    221|float ValueType<T>::toFloat(size_t n) const {
 1586|    221|  ok_ = true;
 1587|    221|  return static_cast<float>(value_.at(n));
 1588|    221|}
_ZNK5Exiv29ValueTypeIsE10toRationalEm:
 1607|    246|Rational ValueType<T>::toRational(size_t n) const {
 1608|    246|  ok_ = true;
 1609|    246|  return {value_.at(n), 1};
 1610|    246|}
_ZNK5Exiv29ValueTypeIsE12sizeDataAreaEv:
 1639|  3.45k|size_t ValueType<T>::sizeDataArea() const {
 1640|  3.45k|  return pDataArea_.size();
 1641|  3.45k|}
_ZNK5Exiv29ValueTypeIsE8dataAreaEv:
 1644|     30|DataBuf ValueType<T>::dataArea() const {
 1645|     30|  return {pDataArea_.data(), pDataArea_.size()};
 1646|     30|}
_ZNK5Exiv29ValueTypeIsE6clone_Ev:
 1511|   654k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   654k|  return new ValueType<T>(*this);
 1513|   654k|}
_ZN5Exiv29ValueTypeIsEC2ERKS1_:
 1447|   654k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   654k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 104, False: 654k]
  ------------------
 1449|    104|    pDataArea_ = rhs.pDataArea_;
 1450|   654k|}
_ZN5Exiv29ValueTypeIiEC2Ev:
 1433|  95.3k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  95.3k|}
_ZN5Exiv29ValueTypeIiE4readEPKhmNS_9ByteOrderE:
 1467|  95.3k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  95.3k|  value_.clear();
 1469|  95.3k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  95.3k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 95.3k, False: 0]
  |  Branch (1470:17): [True: 1.13k, False: 94.1k]
  ------------------
 1471|  1.13k|    len = (len / ts) * ts;
 1472|   315k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 219k, False: 95.3k]
  ------------------
 1473|   219k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   219k|  }
 1475|  95.3k|  return 0;
 1476|  95.3k|}
_ZN5Exiv29ValueTypeIiE11setDataAreaEPKhm:
 1649|    207|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    207|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 101, False: 106]
  ------------------
 1651|    101|    pDataArea_ = Blob(buf, buf + len);
 1652|    106|  else
 1653|    106|    pDataArea_.clear();
 1654|    207|  return 0;
 1655|    207|}
_ZNK5Exiv29ValueTypeIiE4copyEPhNS_9ByteOrderE:
 1492|  4.51k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  4.51k|  size_t offset = 0;
 1494|  27.7k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 27.7k, False: 4.51k]
  ------------------
 1495|  27.7k|    offset += toData(buf + offset, val, byteOrder);
 1496|  27.7k|  }
 1497|  4.51k|  return offset;
 1498|  4.51k|}
_ZNK5Exiv29ValueTypeIiE5countEv:
 1501|   135k|size_t ValueType<T>::count() const {
 1502|   135k|  return value_.size();
 1503|   135k|}
_ZNK5Exiv29ValueTypeIiE4sizeEv:
 1506|  17.8k|size_t ValueType<T>::size() const {
 1507|  17.8k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  17.8k|}
_ZNK5Exiv29ValueTypeIiE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  4.86k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  4.86k|  auto end = value_.end();
 1518|  4.86k|  auto i = value_.begin();
 1519|  65.7k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 60.8k, False: 4.86k]
  ------------------
 1520|  60.8k|    os << std::setprecision(15) << *i;
 1521|  60.8k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 56.2k, False: 4.66k]
  ------------------
 1522|  56.2k|      os << " ";
 1523|  60.8k|  }
 1524|  4.86k|  return os;
 1525|  4.86k|}
_ZNK5Exiv29ValueTypeIiE8toStringEm:
 1528|    162|std::string ValueType<T>::toString(size_t n) const {
 1529|    162|  ok_ = true;
 1530|    162|  return Exiv2::toString<T>(value_.at(n));
 1531|    162|}
_ZNK5Exiv29ValueTypeIiE7toInt64Em:
 1535|  22.9k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  22.9k|  ok_ = true;
 1537|  22.9k|  return static_cast<int64_t>(value_.at(n));
 1538|  22.9k|}
_ZNK5Exiv29ValueTypeIiE8toUint32Em:
 1540|  2.50k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  2.50k|  ok_ = true;
 1542|  2.50k|  return static_cast<uint32_t>(value_.at(n));
 1543|  2.50k|}
_ZNK5Exiv29ValueTypeIiE7toFloatEm:
 1585|     88|float ValueType<T>::toFloat(size_t n) const {
 1586|     88|  ok_ = true;
 1587|     88|  return static_cast<float>(value_.at(n));
 1588|     88|}
_ZNK5Exiv29ValueTypeIiE10toRationalEm:
 1607|    220|Rational ValueType<T>::toRational(size_t n) const {
 1608|    220|  ok_ = true;
 1609|    220|  return {value_.at(n), 1};
 1610|    220|}
_ZNK5Exiv29ValueTypeIiE12sizeDataAreaEv:
 1639|  2.27k|size_t ValueType<T>::sizeDataArea() const {
 1640|  2.27k|  return pDataArea_.size();
 1641|  2.27k|}
_ZNK5Exiv29ValueTypeIiE8dataAreaEv:
 1644|    256|DataBuf ValueType<T>::dataArea() const {
 1645|    256|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    256|}
_ZNK5Exiv29ValueTypeIiE6clone_Ev:
 1511|   200k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   200k|  return new ValueType<T>(*this);
 1513|   200k|}
_ZN5Exiv29ValueTypeIiEC2ERKS1_:
 1447|   200k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   200k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 117, False: 200k]
  ------------------
 1449|    117|    pDataArea_ = rhs.pDataArea_;
 1450|   200k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEEC2Ev:
 1433|  35.3k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  35.3k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEE4readEPKhmNS_9ByteOrderE:
 1467|  35.3k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  35.3k|  value_.clear();
 1469|  35.3k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  35.3k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 35.3k, False: 0]
  |  Branch (1470:17): [True: 0, False: 35.3k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   468k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 433k, False: 35.3k]
  ------------------
 1473|   433k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   433k|  }
 1475|  35.3k|  return 0;
 1476|  35.3k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEE11setDataAreaEPKhm:
 1649|  1.51k|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|  1.51k|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 893, False: 622]
  ------------------
 1651|    893|    pDataArea_ = Blob(buf, buf + len);
 1652|    622|  else
 1653|    622|    pDataArea_.clear();
 1654|  1.51k|  return 0;
 1655|  1.51k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE4copyEPhNS_9ByteOrderE:
 1492|  12.3k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  12.3k|  size_t offset = 0;
 1494|  64.0k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 64.0k, False: 12.3k]
  ------------------
 1495|  64.0k|    offset += toData(buf + offset, val, byteOrder);
 1496|  64.0k|  }
 1497|  12.3k|  return offset;
 1498|  12.3k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE5countEv:
 1501|   103k|size_t ValueType<T>::count() const {
 1502|   103k|  return value_.size();
 1503|   103k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE4sizeEv:
 1506|  37.2k|size_t ValueType<T>::size() const {
 1507|  37.2k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  37.2k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE5writeERNS1_13basic_ostreamIcNS1_11char_traitsIcEEEE:
 1516|  8.06k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  8.06k|  auto end = value_.end();
 1518|  8.06k|  auto i = value_.begin();
 1519|  55.0k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 46.9k, False: 8.06k]
  ------------------
 1520|  46.9k|    os << std::setprecision(15) << *i;
 1521|  46.9k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 38.9k, False: 8.03k]
  ------------------
 1522|  38.9k|      os << " ";
 1523|  46.9k|  }
 1524|  8.06k|  return os;
 1525|  8.06k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8toStringEm:
 1528|    278|std::string ValueType<T>::toString(size_t n) const {
 1529|    278|  ok_ = true;
 1530|    278|  return Exiv2::toString<T>(value_.at(n));
 1531|    278|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE12sizeDataAreaEv:
 1639|  2.31k|size_t ValueType<T>::sizeDataArea() const {
 1640|  2.31k|  return pDataArea_.size();
 1641|  2.31k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8dataAreaEv:
 1644|     53|DataBuf ValueType<T>::dataArea() const {
 1645|     53|  return {pDataArea_.data(), pDataArea_.size()};
 1646|     53|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE6clone_Ev:
 1511|  88.2k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  88.2k|  return new ValueType<T>(*this);
 1513|  88.2k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEEC2ERKS4_:
 1447|  88.2k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  88.2k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 1.46k, False: 86.8k]
  ------------------
 1449|  1.46k|    pDataArea_ = rhs.pDataArea_;
 1450|  88.2k|}
_ZN5Exiv29ValueTypeIfEC2Ev:
 1433|  10.6k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  10.6k|}
_ZN5Exiv29ValueTypeIfE4readEPKhmNS_9ByteOrderE:
 1467|  10.6k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  10.6k|  value_.clear();
 1469|  10.6k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  10.6k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 10.6k, False: 0]
  |  Branch (1470:17): [True: 0, False: 10.6k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   556k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 545k, False: 10.6k]
  ------------------
 1473|   545k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   545k|  }
 1475|  10.6k|  return 0;
 1476|  10.6k|}
_ZN5Exiv29ValueTypeIfE11setDataAreaEPKhm:
 1649|    608|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    608|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 271, False: 337]
  ------------------
 1651|    271|    pDataArea_ = Blob(buf, buf + len);
 1652|    337|  else
 1653|    337|    pDataArea_.clear();
 1654|    608|  return 0;
 1655|    608|}
_ZNK5Exiv29ValueTypeIfE4copyEPhNS_9ByteOrderE:
 1492|  6.02k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  6.02k|  size_t offset = 0;
 1494|  97.5k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 97.5k, False: 6.02k]
  ------------------
 1495|  97.5k|    offset += toData(buf + offset, val, byteOrder);
 1496|  97.5k|  }
 1497|  6.02k|  return offset;
 1498|  6.02k|}
_ZNK5Exiv29ValueTypeIfE5countEv:
 1501|  34.3k|size_t ValueType<T>::count() const {
 1502|  34.3k|  return value_.size();
 1503|  34.3k|}
_ZNK5Exiv29ValueTypeIfE4sizeEv:
 1506|  20.7k|size_t ValueType<T>::size() const {
 1507|  20.7k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  20.7k|}
_ZNK5Exiv29ValueTypeIfE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  2.89k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  2.89k|  auto end = value_.end();
 1518|  2.89k|  auto i = value_.begin();
 1519|   481k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 478k, False: 2.89k]
  ------------------
 1520|   478k|    os << std::setprecision(15) << *i;
 1521|   478k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 475k, False: 2.86k]
  ------------------
 1522|   475k|      os << " ";
 1523|   478k|  }
 1524|  2.89k|  return os;
 1525|  2.89k|}
_ZNK5Exiv29ValueTypeIfE8toStringEm:
 1528|    482|std::string ValueType<T>::toString(size_t n) const {
 1529|    482|  ok_ = true;
 1530|    482|  return Exiv2::toString<T>(value_.at(n));
 1531|    482|}
_ZNK5Exiv29ValueTypeIfE7toFloatEm:
 1585|    116|float ValueType<T>::toFloat(size_t n) const {
 1586|    116|  ok_ = true;
 1587|    116|  return static_cast<float>(value_.at(n));
 1588|    116|}
_ZNK5Exiv29ValueTypeIfE12sizeDataAreaEv:
 1639|  1.30k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.30k|  return pDataArea_.size();
 1641|  1.30k|}
_ZNK5Exiv29ValueTypeIfE8dataAreaEv:
 1644|    105|DataBuf ValueType<T>::dataArea() const {
 1645|    105|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    105|}
_ZNK5Exiv29ValueTypeIfE6clone_Ev:
 1511|  32.6k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  32.6k|  return new ValueType<T>(*this);
 1513|  32.6k|}
_ZN5Exiv29ValueTypeIfEC2ERKS1_:
 1447|  32.6k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  32.6k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 199, False: 32.4k]
  ------------------
 1449|    199|    pDataArea_ = rhs.pDataArea_;
 1450|  32.6k|}
_ZN5Exiv29ValueTypeIdEC2Ev:
 1433|  9.21k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  9.21k|}
_ZN5Exiv29ValueTypeIdE4readEPKhmNS_9ByteOrderE:
 1467|  9.21k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  9.21k|  value_.clear();
 1469|  9.21k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  9.21k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 9.21k, False: 0]
  |  Branch (1470:17): [True: 0, False: 9.21k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   950k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 941k, False: 9.21k]
  ------------------
 1473|   941k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   941k|  }
 1475|  9.21k|  return 0;
 1476|  9.21k|}
_ZN5Exiv29ValueTypeIdE11setDataAreaEPKhm:
 1649|    281|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    281|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 147, False: 134]
  ------------------
 1651|    147|    pDataArea_ = Blob(buf, buf + len);
 1652|    134|  else
 1653|    134|    pDataArea_.clear();
 1654|    281|  return 0;
 1655|    281|}
_ZNK5Exiv29ValueTypeIdE4copyEPhNS_9ByteOrderE:
 1492|  7.58k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  7.58k|  size_t offset = 0;
 1494|  44.3k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 44.3k, False: 7.58k]
  ------------------
 1495|  44.3k|    offset += toData(buf + offset, val, byteOrder);
 1496|  44.3k|  }
 1497|  7.58k|  return offset;
 1498|  7.58k|}
_ZNK5Exiv29ValueTypeIdE5countEv:
 1501|  23.0k|size_t ValueType<T>::count() const {
 1502|  23.0k|  return value_.size();
 1503|  23.0k|}
_ZNK5Exiv29ValueTypeIdE4sizeEv:
 1506|  25.4k|size_t ValueType<T>::size() const {
 1507|  25.4k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  25.4k|}
_ZNK5Exiv29ValueTypeIdE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  1.45k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  1.45k|  auto end = value_.end();
 1518|  1.45k|  auto i = value_.begin();
 1519|  8.53k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 7.08k, False: 1.45k]
  ------------------
 1520|  7.08k|    os << std::setprecision(15) << *i;
 1521|  7.08k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 5.78k, False: 1.29k]
  ------------------
 1522|  5.78k|      os << " ";
 1523|  7.08k|  }
 1524|  1.45k|  return os;
 1525|  1.45k|}
_ZNK5Exiv29ValueTypeIdE8toStringEm:
 1528|     82|std::string ValueType<T>::toString(size_t n) const {
 1529|     82|  ok_ = true;
 1530|     82|  return Exiv2::toString<T>(value_.at(n));
 1531|     82|}
_ZNK5Exiv29ValueTypeIdE7toFloatEm:
 1585|    186|float ValueType<T>::toFloat(size_t n) const {
 1586|    186|  ok_ = true;
 1587|    186|  return static_cast<float>(value_.at(n));
 1588|    186|}
_ZNK5Exiv29ValueTypeIdE12sizeDataAreaEv:
 1639|  5.46k|size_t ValueType<T>::sizeDataArea() const {
 1640|  5.46k|  return pDataArea_.size();
 1641|  5.46k|}
_ZNK5Exiv29ValueTypeIdE8dataAreaEv:
 1644|    595|DataBuf ValueType<T>::dataArea() const {
 1645|    595|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    595|}
_ZNK5Exiv29ValueTypeIdE6clone_Ev:
 1511|  30.7k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  30.7k|  return new ValueType<T>(*this);
 1513|  30.7k|}
_ZN5Exiv29ValueTypeIdEC2ERKS1_:
 1447|  30.7k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  30.7k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 122, False: 30.6k]
  ------------------
 1449|    122|    pDataArea_ = rhs.pDataArea_;
 1450|  30.7k|}
_ZZNK5Exiv222LangAltValueComparatorclERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_ENKUlhhE_clEhh:
  799|  2.32k|    auto f = [](unsigned char a, unsigned char b) { return std::tolower(a) > std::tolower(b); };
_ZN5Exiv29ValueTypeIjEC2Ev:
 1433|  30.6k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  30.6k|}

_ZNK5Exiv27XmpData9usePacketEv:
  215|  9.45k|  [[nodiscard]] bool usePacket() const {
  216|  9.45k|    return usePacket_;
  217|  9.45k|  }
_ZN5Exiv27XmpData9usePacketEb:
  220|  7.09k|  bool usePacket(bool b) {
  221|  7.09k|    bool r = usePacket_;
  222|  7.09k|    usePacket_ = b;
  223|  7.09k|    return r;
  224|  7.09k|  }
_ZN5Exiv27XmpData9setPacketENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  226|  6.07k|  void setPacket(std::string xmpPacket) {
  227|  6.07k|    xmpPacket_ = std::move(xmpPacket);
  228|  6.07k|    usePacket(false);
  229|  6.07k|  }
_ZN5Exiv27XmpDataC2Ev:
  139|  40.5k|  XmpData() = default;
_ZN5Exiv28XmpdatumaSINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEERS0_RKT_:
  366|  9.97k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|  9.97k|    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|       |    setValue(Exiv2::toString(value));
  375|  9.97k|  return *this;
  376|  9.97k|}
_ZN5Exiv28XmpdatumaSIdEERS0_RKT_:
  366|   211k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|   211k|    setValue(Exiv2::toString(value));
  375|   211k|  return *this;
  376|   211k|}
_ZN5Exiv28XmpdatumaSImEERS0_RKT_:
  366|  4.35k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|  4.35k|    setValue(Exiv2::toString(value));
  375|  4.35k|  return *this;
  376|  4.35k|}
_ZN5Exiv28XmpdatumaSIjEERS0_RKT_:
  366|  6.47k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|  6.47k|    setValue(Exiv2::toString(value));
  375|  6.47k|  return *this;
  376|  6.47k|}
_ZN5Exiv28XmpdatumaSIPKhEERS0_RKT_:
  366|  1.99k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|  1.99k|    setValue(Exiv2::toString(value));
  375|  1.99k|  return *this;
  376|  1.99k|}
_ZN5Exiv28XmpdatumaSIA4_cEERS0_RKT_:
  366|    742|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|    742|    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|       |    setValue(Exiv2::toString(value));
  375|    742|  return *this;
  376|    742|}
_ZN5Exiv28XmpdatumaSIlEERS0_RKT_:
  366|    581|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|    581|    setValue(Exiv2::toString(value));
  375|    581|  return *this;
  376|    581|}
_ZN5Exiv28XmpdatumaSIfEERS0_RKT_:
  366|    669|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|    669|    setValue(Exiv2::toString(value));
  375|    669|  return *this;
  376|    669|}
_ZN5Exiv28XmpdatumaSIA18_cEERS0_RKT_:
  366|    219|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|    219|    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|       |    setValue(Exiv2::toString(value));
  375|    219|  return *this;
  376|    219|}
_ZN5Exiv28XmpdatumaSItEERS0_RKT_:
  366|   136k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|   136k|    setValue(Exiv2::toString(value));
  375|   136k|  return *this;
  376|   136k|}
_ZN5Exiv28XmpdatumaSIsEERS0_RKT_:
  366|    984|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|    984|    setValue(Exiv2::toString(value));
  375|    984|  return *this;
  376|    984|}
_ZN5Exiv28XmpdatumaSIPhEERS0_RKT_:
  366|   218k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|   218k|    setValue(Exiv2::toString(value));
  375|   218k|  return *this;
  376|   218k|}
_ZN5Exiv28XmpdatumaSIPKcEERS0_RKT_:
  366|  20.2k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|  20.2k|    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|       |    setValue(Exiv2::toString(value));
  375|  20.2k|  return *this;
  376|  20.2k|}
_ZN5Exiv28XmpdatumaSIiEERS0_RKT_:
  366|   227k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|   227k|    setValue(Exiv2::toString(value));
  375|   227k|  return *this;
  376|   227k|}
_ZN5Exiv28XmpdatumaSIA12_cEERS0_RKT_:
  366|      4|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|      4|    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|       |    setValue(Exiv2::toString(value));
  375|      4|  return *this;
  376|      4|}

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

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

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

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

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

_ZN5Exiv28Internal14CanonMakerNote7tagListEv:
   38|   320k|  static constexpr auto tagList() {
   39|   320k|    return tagInfo_;
   40|   320k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListCsEv:
   42|  5.77M|  static constexpr auto tagListCs() {
   43|  5.77M|    return tagInfoCs_;
   44|  5.77M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListSiEv:
   46|  1.17M|  static constexpr auto tagListSi() {
   47|  1.17M|    return tagInfoSi_;
   48|  1.17M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListCfEv:
   54|    608|  static constexpr auto tagListCf() {
   55|    608|    return tagInfoCf_;
   56|    608|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPiEv:
   58|  2.06M|  static constexpr auto tagListPi() {
   59|  2.06M|    return tagInfoPi_;
   60|  2.06M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListTiEv:
   62|  36.3k|  static constexpr auto tagListTi() {
   63|  36.3k|    return tagInfoTi_;
   64|  36.3k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListFiEv:
   66|   294k|  static constexpr auto tagListFi() {
   67|   294k|    return tagInfoFi_;
   68|   294k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPaEv:
   50|   132k|  static constexpr auto tagListPa() {
   51|   132k|    return tagInfoPa_;
   52|   132k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPrEv:
   70|  1.93k|  static constexpr auto tagListPr() {
   71|  1.93k|    return tagInfoPr_;
   72|  1.93k|  }
_ZN5Exiv28Internal14CanonMakerNote14tagListVigCor2Ev:
  134|    259|  static constexpr auto tagListVigCor2() {
  135|    259|    return tagInfoVigCor2_;
  136|    259|  }
_ZN5Exiv28Internal14CanonMakerNote11tagListLiOpEv:
  138|  3.19k|  static constexpr auto tagListLiOp() {
  139|  3.19k|    return tagInfoLiOp_;
  140|  3.19k|  }
_ZN5Exiv28Internal14CanonMakerNote14tagListAfMiAdjEv:
  126|    322|  static constexpr auto tagListAfMiAdj() {
  127|    322|    return tagInfoAfMiAdj_;
  128|    322|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListLeEv:
  142|    540|  static constexpr auto tagListLe() {
  143|    540|    return tagInfoLe_;
  144|    540|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListAmEv:
  146|  2.75k|  static constexpr auto tagListAm() {
  147|  2.75k|    return tagInfoAm_;
  148|  2.75k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListFilEv:
  154|  15.0k|  static constexpr auto tagListFil() {
  155|  15.0k|    return tagInfoFil_;
  156|  15.0k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListMeEv:
  150|  1.86k|  static constexpr auto tagListMe() {
  151|  1.86k|    return tagInfoMe_;
  152|  1.86k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListHdrEv:
  158|  1.09k|  static constexpr auto tagListHdr() {
  159|  1.09k|    return tagInfoHdr_;
  160|  1.09k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListAfCEv:
  162|  22.2k|  static constexpr auto tagListAfC() {
  163|  22.2k|    return tagInfoAfC_;
  164|  22.2k|  }
_ZN5Exiv28Internal14CanonMakerNote11tagListRawBEv:
  166|    311|  static constexpr auto tagListRawB() {
  167|    311|    return tagInfoRawB_;
  168|    311|  }

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

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

_ZN5Exiv29ConverterC2ERNS_8ExifDataERNS_7XmpDataE:
  495|    654|    exifData_(&exifData), iptcData_(nullptr), xmpData_(&xmpData), iptcCharset_(nullptr) {
  496|    654|}
_ZN5Exiv29ConverterC2ERNS_8IptcDataERNS_7XmpDataEPKc:
  499|    654|    exifData_(nullptr), iptcData_(&iptcData), xmpData_(&xmpData), iptcCharset_(iptcCharset) {
  500|    654|}
_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: 136k, False: 28.7k]
  |  Branch (512:37): [True: 68.0k, False: 68.0k]
  |  Branch (512:52): [True: 28.7k, False: 68.0k]
  |  Branch (512:79): [True: 14.3k, False: 14.3k]
  ------------------
  513|  82.4k|      std::invoke(c.key2ToKey1_, *this, c.key2_, c.key1_);
  514|  82.4k|    }
  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|    158|bool Converter::prepareIptcTarget(const char* to, bool force) {
  532|    158|  auto pos = iptcData_->findKey(IptcKey(to));
  533|    158|  if (pos == iptcData_->end())
  ------------------
  |  Branch (533:7): [True: 158, False: 0]
  ------------------
  534|    158|    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.8k|void Converter::cnvXmpValue(const char* from, const char* to) {
  845|  58.8k|  auto pos = xmpData_->findKey(XmpKey(from));
  846|  58.8k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (846:7): [True: 58.8k, False: 9]
  ------------------
  847|  58.8k|    return;
  848|      9|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (848:7): [True: 0, False: 9]
  ------------------
  849|      0|    return;
  850|      9|  std::string value;
  851|      9|  if (!getTextValue(value, pos)) {
  ------------------
  |  Branch (851:7): [True: 0, False: 9]
  ------------------
  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|      9|  ExifKey key(to);
  859|      9|  if (auto ed = Exifdatum(key); ed.setValue(value) == 0) {
  ------------------
  |  Branch (859:33): [True: 0, False: 9]
  ------------------
  860|      0|    exifData_->add(ed);
  861|      0|  }
  862|      9|  if (erase_)
  ------------------
  |  Branch (862:7): [True: 0, False: 9]
  ------------------
  863|      0|    xmpData_->erase(pos);
  864|      9|}
_ZN5Exiv29Converter13cnvXmpCommentEPKcS2_:
  866|    654|void Converter::cnvXmpComment(const char* from, const char* to) {
  867|    654|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (867:7): [True: 0, False: 654]
  ------------------
  868|      0|    return;
  869|    654|  auto pos = xmpData_->findKey(XmpKey(from));
  870|    654|  if (pos == xmpData_->end())
  ------------------
  |  Branch (870:7): [True: 654, False: 0]
  ------------------
  871|    654|    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|    654|void Converter::cnvXmpArray(const char* from, const char* to) {
  886|    654|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (886:7): [True: 0, False: 654]
  ------------------
  887|      0|    return;
  888|    654|  auto pos = xmpData_->findKey(XmpKey(from));
  889|    654|  if (pos == xmpData_->end())
  ------------------
  |  Branch (889:7): [True: 654, False: 0]
  ------------------
  890|    654|    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.61k|void Converter::cnvXmpDate(const char* from, const char* to) {
  910|  2.61k|  auto pos = xmpData_->findKey(XmpKey(from));
  911|  2.61k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (911:7): [True: 2.45k, False: 158]
  ------------------
  912|  2.45k|    return;
  913|    158|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (913:7): [True: 0, False: 158]
  ------------------
  914|      0|    return;
  915|    158|#ifdef EXV_HAVE_XMP_TOOLKIT
  916|    158|  std::string value = pos->toString();
  917|    158|  if (!pos->value().ok()) {
  ------------------
  |  Branch (917:7): [True: 0, False: 158]
  ------------------
  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|    158|  XMP_DateTime datetime;
  924|    158|  try {
  925|    158|    SXMPUtils::ConvertToDate(value, &datetime);
  926|    158|    if (std::string(to) != "Exif.GPSInfo.GPSTimeStamp") {
  ------------------
  |  Branch (926:9): [True: 57, False: 101]
  ------------------
  927|     57|      SXMPUtils::ConvertToLocalTime(&datetime);
  928|       |
  929|     57|      (*exifData_)[to] = stringFormat("{:4}:{:02}:{:02} {:02}:{:02}:{:02}", datetime.year, datetime.month, datetime.day,
  ------------------
  |  |   18|     57|#define stringFormat std::format
  ------------------
  930|     57|                                      datetime.hour, datetime.minute, datetime.second);
  931|       |
  932|     57|      if (datetime.nanoSecond) {
  ------------------
  |  Branch (932:11): [True: 4, False: 53]
  ------------------
  933|      4|        const char* subsecTag = nullptr;
  934|      4|        if (std::string(to) == "Exif.Image.DateTime") {
  ------------------
  |  Branch (934:13): [True: 0, False: 4]
  ------------------
  935|      0|          subsecTag = "Exif.Photo.SubSecTime";
  936|      4|        } else if (std::string(to) == "Exif.Photo.DateTimeOriginal") {
  ------------------
  |  Branch (936:20): [True: 0, False: 4]
  ------------------
  937|      0|          subsecTag = "Exif.Photo.SubSecTimeOriginal";
  938|      4|        } else if (std::string(to) == "Exif.Photo.DateTimeDigitized") {
  ------------------
  |  Branch (938:20): [True: 4, False: 0]
  ------------------
  939|      4|          subsecTag = "Exif.Photo.SubSecTimeDigitized";
  940|      4|        }
  941|      4|        if (subsecTag) {
  ------------------
  |  Branch (941:13): [True: 4, False: 0]
  ------------------
  942|      4|          prepareExifTarget(subsecTag, true);
  943|      4|          (*exifData_)[subsecTag] = std::to_string(datetime.nanoSecond);
  944|      4|        }
  945|      4|      }
  946|    101|    } else {  // "Exif.GPSInfo.GPSTimeStamp"
  947|       |      // Ignore the time zone, assuming the time is in UTC as it should be
  948|       |
  949|    101|      URational rhour(datetime.hour, 1);
  950|    101|      URational rmin(datetime.minute, 1);
  951|    101|      URational rsec(datetime.second, 1);
  952|    101|      if (datetime.nanoSecond != 0) {
  ------------------
  |  Branch (952:11): [True: 0, False: 101]
  ------------------
  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|    101|      std::ostringstream array;
  964|    101|      array << rhour << " " << rmin << " " << rsec;
  965|    101|      (*exifData_)[to] = array.str();
  966|       |
  967|    101|      prepareExifTarget("Exif.GPSInfo.GPSDateStamp", true);
  968|    101|      (*exifData_)["Exif.GPSInfo.GPSDateStamp"] =
  969|    101|          stringFormat("{:4}:{:02}:{:02}", datetime.year, datetime.month, datetime.day);
  ------------------
  |  |   18|    101|#define stringFormat std::format
  ------------------
  970|    101|    }
  971|    158|  }
  972|    158|#ifndef SUPPRESS_WARNINGS
  973|    158|  catch (const XMP_Error& e) {
  974|    101|    EXV_WARNING << "Failed to convert " << from << " to " << to << " (" << e.GetErrMsg() << ")\n";
  ------------------
  |  |  138|    101|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 101]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    101|  LogMsg(LogMsg::warn).os()
  ------------------
  975|    101|    return;
  976|    101|  }
  977|       |#else
  978|       |  catch (const XMP_Error&) {
  979|       |    return;
  980|       |  }
  981|       |#endif  // SUPPRESS_WARNINGS
  982|       |
  983|     57|  if (erase_)
  ------------------
  |  Branch (983:7): [True: 0, False: 57]
  ------------------
  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|     57|}
_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|    654|void Converter::cnvXmpGPSVersion(const char* from, const char* to) {
 1013|    654|  auto pos = xmpData_->findKey(XmpKey(from));
 1014|    654|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1014:7): [True: 654, False: 0]
  ------------------
 1015|    654|    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|    654|void Converter::cnvXmpFlash(const char* from, const char* to) {
 1033|    654|  auto pos = xmpData_->findKey(XmpKey(std::string(from) + "/exif:Fired"));
 1034|    654|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1034:7): [True: 654, False: 0]
  ------------------
 1035|    654|    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.61k|void Converter::cnvXmpGPSCoord(const char* from, const char* to) {
 1103|  2.61k|  auto pos = xmpData_->findKey(XmpKey(from));
 1104|  2.61k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1104:7): [True: 2.61k, False: 0]
  ------------------
 1105|  2.61k|    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.2k, False: 158]
  ------------------
 1196|  14.2k|    return;
 1197|    158|  if (!prepareIptcTarget(to))
  ------------------
  |  Branch (1197:7): [True: 0, False: 158]
  ------------------
 1198|      0|    return;
 1199|       |
 1200|    158|  if (pos->typeId() == langAlt || pos->typeId() == xmpText) {
  ------------------
  |  Branch (1200:7): [True: 0, False: 158]
  |  Branch (1200:35): [True: 158, False: 0]
  ------------------
 1201|    158|    std::string value;
 1202|    158|    if (!getTextValue(value, pos)) {
  ------------------
  |  Branch (1202:9): [True: 0, False: 158]
  ------------------
 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|    158|    (*iptcData_)[to] = value;
 1209|    158|    (*iptcData_)["Iptc.Envelope.CharacterSet"] = "\033%G";  // indicate UTF-8 encoding
 1210|    158|    if (erase_)
  ------------------
  |  Branch (1210:9): [True: 0, False: 158]
  ------------------
 1211|      0|      xmpData_->erase(pos);
 1212|    158|    return;
 1213|    158|  }
 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|    654|void copyXmpToExif(const XmpData& xmpData, ExifData& exifData) {
 1331|    654|  Converter converter(exifData, const_cast<XmpData&>(xmpData));
 1332|    654|  converter.cnvFromXmp();
 1333|    654|}
_ZN5Exiv213copyXmpToIptcERKNS_7XmpDataERNS_8IptcDataE:
 1368|    654|void copyXmpToIptc(const XmpData& xmpData, IptcData& iptcData) {
 1369|    654|  Converter converter(iptcData, const_cast<XmpData&>(xmpData));
 1370|    654|  converter.cnvFromXmp();
 1371|    654|}
_ZN5Exiv220convertStringCharsetERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKcS9_:
 1380|  3.88k|bool convertStringCharset([[maybe_unused]] std::string& str, const char* from, const char* to) {
 1381|  3.88k|  if (0 == strcmp(from, to))
  ------------------
  |  Branch (1381:7): [True: 54, False: 3.83k]
  ------------------
 1382|     54|    return true;  // nothing to do
 1383|  3.83k|#ifdef EXV_HAVE_ICONV
 1384|  3.83k|  return convertStringCharsetIconv(str, from, to);
 1385|       |#elif defined _WIN32
 1386|       |  return convertStringCharsetWindows(str, from, to);
 1387|       |#else
 1388|       |#ifndef SUPPRESS_WARNINGS
 1389|       |  EXV_WARNING << "Charset conversion required but no character mapping functionality available.\n";
 1390|       |#endif
 1391|       |  return false;
 1392|       |#endif
 1393|  3.88k|}
convert.cpp:_ZN12_GLOBAL__N_125convertStringCharsetIconvERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS0_17basic_string_viewIcS3_EES9_:
 1402|  3.83k|bool convertStringCharsetIconv(std::string& str, std::string_view from, std::string_view to) {
 1403|  3.83k|  if (from == to)
  ------------------
  |  Branch (1403:7): [True: 0, False: 3.83k]
  ------------------
 1404|      0|    return true;  // nothing to do
 1405|       |
 1406|  3.83k|  bool ret = true;
 1407|  3.83k|  auto cd = iconv_open(to.data(), from.data());
 1408|  3.83k|  if (cd == iconv_t(-1)) {
  ------------------
  |  Branch (1408:7): [True: 0, False: 3.83k]
  ------------------
 1409|      0|#ifndef SUPPRESS_WARNINGS
 1410|      0|    EXV_WARNING << "iconv_open: " << strError() << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1411|      0|#endif
 1412|      0|    return false;
 1413|      0|  }
 1414|  3.83k|  std::string outstr;
 1415|       |#ifdef WINICONV_CONST
 1416|       |  auto inptr = (WINICONV_CONST char*)(str.c_str());
 1417|       |#else
 1418|  3.83k|  auto inptr = (EXV_ICONV_CONST char*)(str.c_str());
 1419|  3.83k|#endif
 1420|  3.83k|  size_t inbytesleft = str.length();
 1421|  8.10k|  while (inbytesleft) {
  ------------------
  |  Branch (1421:10): [True: 6.57k, False: 1.53k]
  ------------------
 1422|  6.57k|    char outbuf[256];
 1423|  6.57k|    char* outptr = outbuf;
 1424|  6.57k|    size_t outbytesleft = sizeof(outbuf);
 1425|  6.57k|    size_t rc = iconv(cd, &inptr, &inbytesleft, &outptr, &outbytesleft);
 1426|  6.57k|    const size_t outbytesProduced = sizeof(outbuf) - outbytesleft;
 1427|  6.57k|    if (rc == std::numeric_limits<size_t>::max() && errno != E2BIG) {
  ------------------
  |  Branch (1427:9): [True: 5.48k, False: 1.09k]
  |  Branch (1427:53): [True: 2.30k, False: 3.18k]
  ------------------
 1428|  2.30k|#ifndef SUPPRESS_WARNINGS
 1429|  2.30k|      EXV_WARNING << "iconv: " << strError() << " inbytesleft = " << inbytesleft << "\n";
  ------------------
  |  |  138|  2.30k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 2.30k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  2.30k|  LogMsg(LogMsg::warn).os()
  ------------------
 1430|  2.30k|#endif
 1431|  2.30k|      ret = false;
 1432|  2.30k|      break;
 1433|  2.30k|    }
 1434|  4.27k|    outstr.append(std::string(outbuf, outbytesProduced));
 1435|  4.27k|  }
 1436|       |
 1437|  3.83k|  if (cd)
  ------------------
  |  Branch (1437:7): [True: 3.83k, False: 0]
  ------------------
 1438|  3.83k|    iconv_close(cd);
 1439|       |
 1440|  3.83k|  if (ret)
  ------------------
  |  Branch (1440:7): [True: 1.53k, False: 2.30k]
  ------------------
 1441|  1.53k|    str = std::move(outstr);
 1442|  3.83k|  return ret;
 1443|  3.83k|}
convert.cpp:_ZN12_GLOBAL__N_112getTextValueERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS0_11__wrap_iterIPN5Exiv28XmpdatumEEE:
 1592|    167|bool getTextValue(std::string& value, XmpData::iterator pos) {
 1593|    167|  if (pos->typeId() == langAlt) {
  ------------------
  |  Branch (1593:7): [True: 0, False: 167]
  ------------------
 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|    167|  } else {
 1610|    167|    value = pos->toString();
 1611|    167|  }
 1612|    167|  return pos->value().ok();
 1613|    167|}

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

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

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

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

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

_ZN5Exiv212IptcDataSets10dataSetIdxEtt:
  377|   112k|int IptcDataSets::dataSetIdx(uint16_t number, uint16_t recordId) {
  378|   112k|  if (recordId != envelope && recordId != application2)
  ------------------
  |  Branch (378:7): [True: 93.6k, False: 18.9k]
  |  Branch (378:31): [True: 79.1k, False: 14.5k]
  ------------------
  379|  79.1k|    return -1;
  380|  33.4k|  const DataSet* dataSet = records_[recordId];
  381|  33.4k|  int idx;
  382|   634k|  for (idx = 0; dataSet[idx].number_ != number; ++idx) {
  ------------------
  |  Branch (382:17): [True: 617k, False: 17.0k]
  ------------------
  383|   617k|    if (dataSet[idx].number_ == 0xffff)
  ------------------
  |  Branch (383:9): [True: 16.4k, False: 601k]
  ------------------
  384|  16.4k|      return -1;
  385|   617k|  }
  386|  17.0k|  return idx;
  387|  33.4k|}
_ZN5Exiv212IptcDataSets10dataSetIdxERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEt:
  389|    474|int IptcDataSets::dataSetIdx(const std::string& dataSetName, uint16_t recordId) {
  390|    474|  if (recordId != envelope && recordId != application2)
  ------------------
  |  Branch (390:7): [True: 316, False: 158]
  |  Branch (390:31): [True: 0, False: 316]
  ------------------
  391|      0|    return -1;
  392|    474|  const DataSet* dataSet = records_[recordId];
  393|    474|  int idx;
  394|  9.95k|  for (idx = 0; dataSet[idx].name_ != dataSetName; ++idx) {
  ------------------
  |  Branch (394:17): [True: 9.48k, False: 474]
  ------------------
  395|  9.48k|    if (dataSet[idx].number_ == 0xffff)
  ------------------
  |  Branch (395:9): [True: 0, False: 9.48k]
  ------------------
  396|      0|      return -1;
  397|  9.48k|  }
  398|    474|  return idx;
  399|    474|}
_ZN5Exiv212IptcDataSets11dataSetTypeEtt:
  401|  36.4k|TypeId IptcDataSets::dataSetType(uint16_t number, uint16_t recordId) {
  402|  36.4k|  int idx = dataSetIdx(number, recordId);
  403|  36.4k|  if (idx == -1)
  ------------------
  |  Branch (403:7): [True: 31.2k, False: 5.15k]
  ------------------
  404|  31.2k|    return unknownDataSet.type_;
  405|  5.15k|  return records_[recordId][idx].type_;
  406|  36.4k|}
_ZN5Exiv212IptcDataSets11dataSetNameEtt:
  408|  40.1k|std::string IptcDataSets::dataSetName(uint16_t number, uint16_t recordId) {
  409|  40.1k|  if (int idx = dataSetIdx(number, recordId); idx != -1)
  ------------------
  |  Branch (409:47): [True: 7.05k, False: 33.0k]
  ------------------
  410|  7.05k|    return records_[recordId][idx].name_;
  411|       |
  412|  33.0k|  return stringFormat("0x{:04x}", number);
  ------------------
  |  |   18|  33.0k|#define stringFormat std::format
  ------------------
  413|  40.1k|}
_ZN5Exiv212IptcDataSets17dataSetRepeatableEtt:
  436|  36.0k|bool IptcDataSets::dataSetRepeatable(uint16_t number, uint16_t recordId) {
  437|  36.0k|  int idx = dataSetIdx(number, recordId);
  438|  36.0k|  if (idx == -1)
  ------------------
  |  Branch (438:7): [True: 31.2k, False: 4.80k]
  ------------------
  439|  31.2k|    return unknownDataSet.repeatable_;
  440|  4.80k|  return records_[recordId][idx].repeatable_;
  441|  36.0k|}
_ZN5Exiv212IptcDataSets7dataSetERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEt:
  443|    474|uint16_t IptcDataSets::dataSet(const std::string& dataSetName, uint16_t recordId) {
  444|    474|  if (int idx = dataSetIdx(dataSetName, recordId); idx != -1) {
  ------------------
  |  Branch (444:52): [True: 474, False: 0]
  ------------------
  445|       |    // dataSetIdx checks the range of recordId
  446|    474|    return records_[recordId][idx].number_;
  447|    474|  }
  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|  36.5k|std::string IptcDataSets::recordName(uint16_t recordId) {
  454|  36.5k|  if (recordId == envelope || recordId == application2) {
  ------------------
  |  Branch (454:7): [True: 6.22k, False: 30.3k]
  |  Branch (454:31): [True: 4.43k, False: 25.8k]
  ------------------
  455|  10.6k|    return recordInfo_[recordId].name_;
  456|  10.6k|  }
  457|       |
  458|  25.8k|  return stringFormat("0x{:04x}", recordId);
  ------------------
  |  |   18|  25.8k|#define stringFormat std::format
  ------------------
  459|  36.5k|}
_ZN5Exiv212IptcDataSets8recordIdERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  468|    474|uint16_t IptcDataSets::recordId(const std::string& recordName) {
  469|    474|  uint16_t i;
  470|    632|  for (i = IptcDataSets::application2; i > 0; --i) {
  ------------------
  |  Branch (470:40): [True: 632, False: 0]
  ------------------
  471|    632|    if (recordInfo_[i].name_ == recordName)
  ------------------
  |  Branch (471:9): [True: 474, False: 158]
  ------------------
  472|    474|      break;
  473|    632|  }
  474|    474|  if (i == 0) {
  ------------------
  |  Branch (474:7): [True: 0, False: 474]
  ------------------
  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|    474|  return i;
  480|    474|}
_ZN5Exiv27IptcKeyC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  490|    474|IptcKey::IptcKey(std::string key) : tag_(0), record_(0), key_(std::move(key)) {
  491|    474|  decomposeKey();
  492|    474|}
_ZN5Exiv27IptcKeyC2Ett:
  494|  36.0k|IptcKey::IptcKey(uint16_t tag, uint16_t record) : tag_(tag), record_(record) {
  495|  36.0k|  makeKey();
  496|  36.0k|}
_ZNK5Exiv27IptcKey7tagNameEv:
  510|  2.54k|std::string IptcKey::tagName() const {
  511|  2.54k|  return IptcDataSets::dataSetName(tag_, record_);
  512|  2.54k|}
_ZNK5Exiv27IptcKey3tagEv:
  522|  82.4k|uint16_t IptcKey::tag() const {
  523|  82.4k|  return tag_;
  524|  82.4k|}
_ZNK5Exiv27IptcKey6recordEv:
  530|   618k|uint16_t IptcKey::record() const {
  531|   618k|  return record_;
  532|   618k|}
_ZNK5Exiv27IptcKey5cloneEv:
  534|   461k|IptcKey::UniquePtr IptcKey::clone() const {
  535|   461k|  return UniquePtr(clone_());
  536|   461k|}
_ZNK5Exiv27IptcKey6clone_Ev:
  538|   461k|IptcKey* IptcKey::clone_() const {
  539|   461k|  return new IptcKey(*this);
  540|   461k|}
_ZN5Exiv27IptcKey12decomposeKeyEv:
  542|    474|void IptcKey::decomposeKey() {
  543|       |  // Check that the key has the expected format with RE
  544|    474|  auto posDot1 = key_.find('.');
  545|    474|  auto posDot2 = key_.find('.', posDot1 + 1);
  546|       |
  547|    474|  if (posDot1 == std::string::npos || posDot2 == std::string::npos) {
  ------------------
  |  Branch (547:7): [True: 0, False: 474]
  |  Branch (547:39): [True: 0, False: 474]
  ------------------
  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|    474|  const std::string familyName = key_.substr(0, posDot1);
  553|    474|  if (familyName != familyName_)
  ------------------
  |  Branch (553:7): [True: 0, False: 474]
  ------------------
  554|      0|    throw Error(ErrorCode::kerInvalidKey, key_);
  555|       |
  556|    474|  std::string recordName = key_.substr(posDot1 + 1, posDot2 - posDot1 - 1);
  557|    474|  std::string dataSetName = key_.substr(posDot2 + 1);
  558|       |
  559|       |  // Use the parts of the key to find dataSet and recordId
  560|    474|  uint16_t recId = IptcDataSets::recordId(recordName);
  561|    474|  uint16_t dataSet = IptcDataSets::dataSet(dataSetName, recId);
  562|       |
  563|       |  // Possibly translate hex name parts (0xabcd) to real names
  564|    474|  recordName = IptcDataSets::recordName(recId);
  565|    474|  dataSetName = IptcDataSets::dataSetName(dataSet, recId);
  566|       |
  567|    474|  tag_ = dataSet;
  568|    474|  record_ = recId;
  569|    474|  key_ = familyName + "." + recordName + "." + dataSetName;
  570|    474|}
_ZN5Exiv27IptcKey7makeKeyEv:
  572|  36.0k|void IptcKey::makeKey() {
  573|  36.0k|  key_ = std::string(familyName_) + "." + IptcDataSets::recordName(record_) + "." +
  574|  36.0k|         IptcDataSets::dataSetName(tag_, record_);
  575|  36.0k|}

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

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

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

_ZN5Exiv29ExifdatumC2ERKNS_7ExifKeyEPKNS_5ValueE:
  157|  16.4M|Exifdatum::Exifdatum(const ExifKey& key, const Value* pValue) : key_(key.clone()) {
  158|  16.4M|  if (pValue)
  ------------------
  |  Branch (158:7): [True: 16.4M, False: 30.0k]
  ------------------
  159|  16.4M|    value_ = pValue->clone();
  160|  16.4M|}
_ZN5Exiv29ExifdatumC2ERKS0_:
  162|  19.3M|Exifdatum::Exifdatum(const Exifdatum& rhs) {
  163|  19.3M|  if (rhs.key_)
  ------------------
  |  Branch (163:7): [True: 19.3M, False: 0]
  ------------------
  164|  19.3M|    key_ = rhs.key_->clone();  // deep copy
  165|  19.3M|  if (rhs.value_)
  ------------------
  |  Branch (165:7): [True: 19.3M, False: 0]
  ------------------
  166|  19.3M|    value_ = rhs.value_->clone();  // deep copy
  167|  19.3M|}
_ZN5Exiv29ExifdatumD2Ev:
  169|  35.8M|Exifdatum::~Exifdatum() = default;
_ZNK5Exiv29Exifdatum5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKNS_8ExifDataE:
  171|  1.32M|std::ostream& Exifdatum::write(std::ostream& os, const ExifData* pMetadata) const {
  172|  1.32M|  if (value().count() == 0)
  ------------------
  |  Branch (172:7): [True: 561k, False: 759k]
  ------------------
  173|   561k|    return os;
  174|       |
  175|   759k|  PrintFct fct = printValue;
  176|       |  // be careful with comments (User.Photo.UserComment, GPSAreaInfo etc).
  177|   759k|  if (auto ti = Internal::tagInfo(tag(), ifdId())) {
  ------------------
  |  Branch (177:12): [True: 759k, False: 0]
  ------------------
  178|   759k|    fct = ti->printFct_;
  179|   759k|    if (ti->typeId_ == comment) {
  ------------------
  |  Branch (179:9): [True: 1.42k, False: 758k]
  ------------------
  180|  1.42k|      os << value().toString();
  181|  1.42k|      fct = nullptr;
  182|  1.42k|    }
  183|   759k|  }
  184|   759k|  if (fct) {
  ------------------
  |  Branch (184:7): [True: 758k, False: 1.42k]
  ------------------
  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|   758k|    try {
  192|   758k|      fct(os, value(), pMetadata);
  193|   758k|    } catch (const std::out_of_range&) {
  194|    554|      os << "Bad value";
  195|       |#ifdef EXIV2_DEBUG_MESSAGES
  196|       |      std::cerr << "Caught std::out_of_range exception in Exifdatum::write().\n";
  197|       |#endif
  198|    554|    }
  199|   758k|  }
  200|   759k|  return os;
  201|   759k|}
_ZNK5Exiv29Exifdatum5valueEv:
  203|  2.20M|const Value& Exifdatum::value() const {
  204|  2.20M|  if (!value_)
  ------------------
  |  Branch (204:7): [True: 0, False: 2.20M]
  ------------------
  205|      0|    throw Error(ErrorCode::kerValueNotSet, key());
  206|  2.20M|  return *value_;
  207|  2.20M|}
_ZN5Exiv29ExifdatumaSERKS0_:
  209|  10.0k|Exifdatum& Exifdatum::operator=(const Exifdatum& rhs) {
  210|  10.0k|  if (this == &rhs)
  ------------------
  |  Branch (210:7): [True: 0, False: 10.0k]
  ------------------
  211|      0|    return *this;
  212|       |
  213|  10.0k|  key_.reset();
  214|  10.0k|  if (rhs.key_)
  ------------------
  |  Branch (214:7): [True: 10.0k, False: 0]
  ------------------
  215|  10.0k|    key_ = rhs.key_->clone();  // deep copy
  216|       |
  217|  10.0k|  value_.reset();
  218|  10.0k|  if (rhs.value_)
  ------------------
  |  Branch (218:7): [True: 10.0k, False: 0]
  ------------------
  219|  10.0k|    value_ = rhs.value_->clone();  // deep copy
  220|       |
  221|  10.0k|  return *this;
  222|  10.0k|}  // Exifdatum::operator=
_ZN5Exiv29ExifdatumaSERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  224|  30.4k|Exifdatum& Exifdatum::operator=(const std::string& value) {
  225|  30.4k|  setValue(value);
  226|  30.4k|  return *this;
  227|  30.4k|}
_ZN5Exiv29ExifdatumaSERKt:
  229|      7|Exifdatum& Exifdatum::operator=(const uint16_t& value) {
  230|      7|  return Exiv2::setValue(*this, value);
  231|      7|}
_ZN5Exiv29ExifdatumaSERKj:
  233|  30.6k|Exifdatum& Exifdatum::operator=(const uint32_t& value) {
  234|  30.6k|  return Exiv2::setValue(*this, value);
  235|  30.6k|}
_ZN5Exiv29ExifdatumaSERKNS_5ValueE:
  253|  4.24k|Exifdatum& Exifdatum::operator=(const Value& value) {
  254|  4.24k|  setValue(&value);
  255|  4.24k|  return *this;
  256|  4.24k|}
_ZN5Exiv29Exifdatum8setValueEPKNS_5ValueE:
  258|  4.24k|void Exifdatum::setValue(const Value* pValue) {
  259|  4.24k|  value_.reset();
  260|  4.24k|  if (pValue)
  ------------------
  |  Branch (260:7): [True: 4.24k, False: 0]
  ------------------
  261|  4.24k|    value_ = pValue->clone();
  262|  4.24k|}
_ZN5Exiv29Exifdatum8setValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  264|  30.4k|int Exifdatum::setValue(const std::string& value) {
  265|  30.4k|  if (!value_) {
  ------------------
  |  Branch (265:7): [True: 14.6k, False: 15.8k]
  ------------------
  266|  14.6k|    TypeId type = key_->defaultTypeId();
  267|  14.6k|    value_ = Value::create(type);
  268|  14.6k|  }
  269|  30.4k|  return value_->read(value);
  270|  30.4k|}
_ZNK5Exiv29Exifdatum11setDataAreaEPKhm:
  272|      7|int Exifdatum::setDataArea(const byte* buf, size_t len) const {
  273|      7|  return value_ ? value_->setDataArea(buf, len) : -1;
  ------------------
  |  Branch (273:10): [True: 7, False: 0]
  ------------------
  274|      7|}
_ZNK5Exiv29Exifdatum3keyEv:
  276|   171M|std::string Exifdatum::key() const {
  277|   171M|  return key_ ? key_->key() : "";
  ------------------
  |  Branch (277:10): [True: 171M, False: 0]
  ------------------
  278|   171M|}
_ZNK5Exiv29Exifdatum9groupNameEv:
  284|  3.49M|std::string Exifdatum::groupName() const {
  285|  3.49M|  return key_ ? key_->groupName() : "";
  ------------------
  |  Branch (285:10): [True: 3.49M, False: 0]
  ------------------
  286|  3.49M|}
_ZNK5Exiv29Exifdatum7tagNameEv:
  288|  15.0M|std::string Exifdatum::tagName() const {
  289|  15.0M|  return key_ ? key_->tagName() : "";
  ------------------
  |  Branch (289:10): [True: 15.0M, False: 0]
  ------------------
  290|  15.0M|}
_ZNK5Exiv29Exifdatum3tagEv:
  300|  9.23M|uint16_t Exifdatum::tag() const {
  301|  9.23M|  return key_ ? key_->tag() : 0xffff;
  ------------------
  |  Branch (301:10): [True: 9.23M, False: 0]
  ------------------
  302|  9.23M|}
_ZNK5Exiv29Exifdatum5ifdIdEv:
  304|  19.6M|IfdId Exifdatum::ifdId() const {
  305|  19.6M|  return key_ ? key_->ifdId() : IfdId::ifdIdNotSet;
  ------------------
  |  Branch (305:10): [True: 19.6M, False: 0]
  ------------------
  306|  19.6M|}
_ZNK5Exiv29Exifdatum3idxEv:
  312|  2.87M|int Exifdatum::idx() const {
  313|  2.87M|  return key_ ? key_->idx() : 0;
  ------------------
  |  Branch (313:10): [True: 2.87M, False: 0]
  ------------------
  314|  2.87M|}
_ZNK5Exiv29Exifdatum4copyEPhNS_9ByteOrderE:
  316|     30|size_t Exifdatum::copy(byte* buf, ByteOrder byteOrder) const {
  317|     30|  return value_ ? value_->copy(buf, byteOrder) : 0;
  ------------------
  |  Branch (317:10): [True: 30, False: 0]
  ------------------
  318|     30|}
_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|     54|size_t Exifdatum::typeSize() const {
  329|     54|  return TypeInfo::typeSize(typeId());
  330|     54|}
_ZNK5Exiv29Exifdatum5countEv:
  332|  32.9k|size_t Exifdatum::count() const {
  333|  32.9k|  return value_ ? value_->count() : 0;
  ------------------
  |  Branch (333:10): [True: 32.9k, False: 0]
  ------------------
  334|  32.9k|}
_ZNK5Exiv29Exifdatum4sizeEv:
  336|  5.28M|size_t Exifdatum::size() const {
  337|  5.28M|  return value_ ? value_->size() : 0;
  ------------------
  |  Branch (337:10): [True: 5.28M, False: 0]
  ------------------
  338|  5.28M|}
_ZNK5Exiv29Exifdatum8toStringEv:
  340|  23.0k|std::string Exifdatum::toString() const {
  341|  23.0k|  return value_ ? value_->toString() : "";
  ------------------
  |  Branch (341:10): [True: 23.0k, False: 0]
  ------------------
  342|  23.0k|}
_ZNK5Exiv29Exifdatum8toStringEm:
  344|  5.17k|std::string Exifdatum::toString(size_t n) const {
  345|  5.17k|  return value_ ? value_->toString(n) : "";
  ------------------
  |  Branch (345:10): [True: 5.17k, False: 0]
  ------------------
  346|  5.17k|}
_ZNK5Exiv29Exifdatum7toInt64Em:
  348|  34.0k|int64_t Exifdatum::toInt64(size_t n) const {
  349|  34.0k|  return value_ ? value_->toInt64(n) : -1;
  ------------------
  |  Branch (349:10): [True: 34.0k, False: 0]
  ------------------
  350|  34.0k|}
_ZNK5Exiv29Exifdatum7toFloatEm:
  352|    395|float Exifdatum::toFloat(size_t n) const {
  353|    395|  return value_ ? value_->toFloat(n) : -1;
  ------------------
  |  Branch (353:10): [True: 395, False: 0]
  ------------------
  354|    395|}
_ZNK5Exiv29Exifdatum8getValueEv:
  360|  2.75M|Value::UniquePtr Exifdatum::getValue() const {
  361|  2.75M|  return value_ ? value_->clone() : nullptr;
  ------------------
  |  Branch (361:10): [True: 2.75M, False: 0]
  ------------------
  362|  2.75M|}
_ZNK5Exiv29Exifdatum12sizeDataAreaEv:
  364|     31|size_t Exifdatum::sizeDataArea() const {
  365|     31|  return value_ ? value_->sizeDataArea() : 0;
  ------------------
  |  Branch (365:10): [True: 31, False: 0]
  ------------------
  366|     31|}
_ZNK5Exiv29Exifdatum8dataAreaEv:
  368|      9|DataBuf Exifdatum::dataArea() const {
  369|      9|  return value_ ? value_->dataArea() : DataBuf(nullptr, 0);
  ------------------
  |  Branch (369:10): [True: 9, False: 0]
  ------------------
  370|      9|}
_ZN5Exiv210ExifThumbCC2ERKNS_8ExifDataE:
  372|      7|ExifThumbC::ExifThumbC(const ExifData& exifData) : exifData_(exifData) {
  373|      7|}
_ZN5Exiv29ExifThumbC2ERNS_8ExifDataE:
  411|      7|ExifThumb::ExifThumb(ExifData& exifData) : ExifThumbC(exifData), exifData_(exifData) {
  412|      7|}
_ZN5Exiv29ExifThumb16setJpegThumbnailEPKhm:
  435|      7|void ExifThumb::setJpegThumbnail(const byte* buf, size_t size) {
  436|      7|  exifData_["Exif.Thumbnail.Compression"] = std::uint16_t{6};
  437|      7|  Exifdatum& format = exifData_["Exif.Thumbnail.JPEGInterchangeFormat"];
  438|      7|  format = 0U;
  439|      7|  format.setDataArea(buf, size);
  440|      7|  exifData_["Exif.Thumbnail.JPEGInterchangeFormatLength"] = static_cast<uint32_t>(size);
  441|      7|}
_ZN5Exiv28ExifDataixERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  447|  70.8k|Exifdatum& ExifData::operator[](const std::string& key) {
  448|  70.8k|  ExifKey exifKey(key);
  449|  70.8k|  auto pos = findKey(exifKey);
  450|  70.8k|  if (pos == end()) {
  ------------------
  |  Branch (450:7): [True: 30.0k, False: 40.7k]
  ------------------
  451|  30.0k|    return exifMetadata_.emplace_back(exifKey);
  452|  30.0k|  }
  453|  40.7k|  return *pos;
  454|  70.8k|}
_ZN5Exiv28ExifData3addERKNS_7ExifKeyEPKNS_5ValueE:
  456|  16.4M|void ExifData::add(const ExifKey& key, const Value* pValue) {
  457|  16.4M|  add(Exifdatum(key, pValue));
  458|  16.4M|}
_ZN5Exiv28ExifData3addERKNS_9ExifdatumE:
  460|  16.5M|void ExifData::add(const Exifdatum& exifdatum) {
  461|       |  // allow duplicates
  462|  16.5M|  exifMetadata_.push_back(exifdatum);
  463|  16.5M|}
_ZNK5Exiv28ExifData7findKeyERKNS_7ExifKeyE:
  465|   158k|ExifData::const_iterator ExifData::findKey(const ExifKey& key) const {
  466|   158k|  return std::find_if(exifMetadata_.begin(), exifMetadata_.end(), FindExifdatumByKey(key.key()));
  467|   158k|}
_ZN5Exiv28ExifData7findKeyERKNS_7ExifKeyE:
  469|   381k|ExifData::iterator ExifData::findKey(const ExifKey& key) {
  470|   381k|  return std::find_if(exifMetadata_.begin(), exifMetadata_.end(), FindExifdatumByKey(key.key()));
  471|   381k|}
_ZN5Exiv28ExifData5clearEv:
  473|  31.7k|void ExifData::clear() {
  474|  31.7k|  exifMetadata_.clear();
  475|  31.7k|}
_ZN5Exiv28ExifData5eraseENSt3__115__list_iteratorINS_9ExifdatumEPvEES5_:
  485|  54.9k|ExifData::iterator ExifData::erase(ExifData::iterator beg, ExifData::iterator end) {
  486|  54.9k|  return exifMetadata_.erase(beg, end);
  487|  54.9k|}
_ZN5Exiv28ExifData5eraseENSt3__115__list_iteratorINS_9ExifdatumEPvEE:
  489|  14.2k|ExifData::iterator ExifData::erase(ExifData::iterator pos) {
  490|  14.2k|  return exifMetadata_.erase(pos);
  491|  14.2k|}
_ZN5Exiv210ExifParser6decodeERNS_8ExifDataEPKhm:
  493|    713|ByteOrder ExifParser::decode(ExifData& exifData, const byte* pData, size_t size) {
  494|    713|  IptcData iptcData;
  495|    713|  XmpData xmpData;
  496|    713|  ByteOrder bo = TiffParser::decode(exifData, iptcData, xmpData, pData, size);
  497|    713|#ifndef SUPPRESS_WARNINGS
  498|    713|  if (!iptcData.empty()) {
  ------------------
  |  Branch (498:7): [True: 3, False: 710]
  ------------------
  499|      3|    EXV_WARNING << "Ignoring IPTC information encoded in the Exif data.\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()
  ------------------
  500|      3|  }
  501|    713|  if (!xmpData.empty()) {
  ------------------
  |  Branch (501:7): [True: 0, False: 713]
  ------------------
  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|    713|#endif
  505|    713|  return bo;
  506|    713|}
_ZN5Exiv210ExifParser6encodeERNSt3__16vectorIhNS1_9allocatorIhEEEEPKhmNS_9ByteOrderERNS_8ExifDataE:
  512|  3.84k|WriteMethod ExifParser::encode(Blob& blob, const byte* pData, size_t size, ByteOrder byteOrder, ExifData& exifData) {
  513|       |  // Delete IFD0 tags that are "not recorded" in compressed images
  514|       |  // Reference: Exif 2.2 specs, 4.6.8 Tag Support Levels, section A
  515|  3.84k|  static constexpr auto filteredIfd0Tags = std::array{
  516|  3.84k|      "Exif.Image.PhotometricInterpretation",
  517|  3.84k|      "Exif.Image.StripOffsets",
  518|  3.84k|      "Exif.Image.RowsPerStrip",
  519|  3.84k|      "Exif.Image.StripByteCounts",
  520|  3.84k|      "Exif.Image.JPEGInterchangeFormat",
  521|  3.84k|      "Exif.Image.JPEGInterchangeFormatLength",
  522|  3.84k|      "Exif.Image.SubIFDs",
  523|       |      // Issue 981.  Never allow manufactured data to be written
  524|  3.84k|      "Exif.Canon.AFInfoSize",
  525|  3.84k|      "Exif.Canon.AFAreaMode",
  526|  3.84k|      "Exif.Canon.AFNumPoints",
  527|  3.84k|      "Exif.Canon.AFValidPoints",
  528|  3.84k|      "Exif.Canon.AFCanonImageWidth",
  529|  3.84k|      "Exif.Canon.AFCanonImageHeight",
  530|  3.84k|      "Exif.Canon.AFImageWidth",
  531|  3.84k|      "Exif.Canon.AFImageHeight",
  532|  3.84k|      "Exif.Canon.AFAreaWidths",
  533|  3.84k|      "Exif.Canon.AFAreaHeights",
  534|  3.84k|      "Exif.Canon.AFXPositions",
  535|  3.84k|      "Exif.Canon.AFYPositions",
  536|  3.84k|      "Exif.Canon.AFPointsInFocus",
  537|  3.84k|      "Exif.Canon.AFPointsSelected",
  538|  3.84k|      "Exif.Canon.AFPointsUnusable",
  539|  3.84k|      "Exif.Canon.AFFineRotation",
  540|  3.84k|  };
  541|  88.3k|  for (auto&& filteredIfd0Tag : filteredIfd0Tags) {
  ------------------
  |  Branch (541:31): [True: 88.3k, False: 3.84k]
  ------------------
  542|  88.3k|    auto pos = exifData.findKey(ExifKey(filteredIfd0Tag));
  543|  88.3k|    if (pos != exifData.end()) {
  ------------------
  |  Branch (543:9): [True: 1.19k, False: 87.1k]
  ------------------
  544|       |#ifdef EXIV2_DEBUG_MESSAGES
  545|       |      std::cerr << "Warning: Exif tag " << pos->key() << " not encoded\n";
  546|       |#endif
  547|  1.19k|      exifData.erase(pos);
  548|  1.19k|    }
  549|  88.3k|  }
  550|       |
  551|       |  // Delete IFDs which do not occur in JPEGs
  552|  3.84k|  static constexpr auto filteredIfds = std::array{
  553|  3.84k|      IfdId::subImage1Id, IfdId::subImage2Id, IfdId::subImage3Id, IfdId::subImage4Id, IfdId::subImage5Id,
  554|  3.84k|      IfdId::subImage6Id, IfdId::subImage7Id, IfdId::subImage8Id, IfdId::subImage9Id, IfdId::subThumb1Id,
  555|  3.84k|      IfdId::panaRawId,   IfdId::ifd2Id,      IfdId::ifd3Id,
  556|  3.84k|  };
  557|  49.9k|  for (auto&& filteredIfd : filteredIfds) {
  ------------------
  |  Branch (557:27): [True: 49.9k, False: 3.84k]
  ------------------
  558|       |#ifdef EXIV2_DEBUG_MESSAGES
  559|       |    std::cerr << "Warning: Exif IFD " << filteredIfd << " not encoded\n";
  560|       |#endif
  561|  49.9k|    eraseIfd(exifData, filteredIfd);
  562|  49.9k|  }
  563|       |
  564|       |  // IPTC and XMP are stored elsewhere, not in the Exif APP1 segment.
  565|  3.84k|  IptcData emptyIptc;
  566|  3.84k|  XmpData emptyXmp;
  567|       |
  568|       |  // Encode and check if the result fits into a JPEG Exif APP1 segment
  569|  3.84k|  MemIo mio1;
  570|  3.84k|  TiffHeader header(byteOrder, 0x00000008, false);
  571|  3.84k|  WriteMethod wm = TiffParserWorker::encode(mio1, pData, size, exifData, emptyIptc, emptyXmp, Tag::root,
  572|  3.84k|                                            TiffMapping::findEncoder, &header, nullptr);
  573|  3.84k|  if (mio1.size() <= 65527) {
  ------------------
  |  Branch (573:7): [True: 1.45k, False: 2.38k]
  ------------------
  574|  1.45k|    append(blob, mio1.mmap(), mio1.size());
  575|  1.45k|    return wm;
  576|  1.45k|  }
  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|  65.0k|  for (auto&& [ptt, key] : filteredPvTags) {
  ------------------
  |  Branch (614:26): [True: 65.0k, False: 2.38k]
  ------------------
  615|  65.0k|    switch (ptt) {
  ------------------
  |  Branch (615:13): [True: 65.0k, False: 0]
  ------------------
  616|  34.8k|      case pttLen: {
  ------------------
  |  Branch (616:7): [True: 34.8k, False: 30.2k]
  ------------------
  617|  34.8k|        delTags = false;
  618|  34.8k|        if (auto pos = exifData.findKey(ExifKey(key)); pos != exifData.end() && sumToLong(*pos) > 32768) {
  ------------------
  |  Branch (618:56): [True: 2.03k, False: 32.8k]
  |  Branch (618:56): [True: 15, False: 34.8k]
  |  Branch (618:81): [True: 15, False: 2.01k]
  ------------------
  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.8k|        break;
  626|      0|      }
  627|  20.9k|      case pttTag: {
  ------------------
  |  Branch (627:7): [True: 20.9k, False: 44.1k]
  ------------------
  628|  20.9k|        if (delTags) {
  ------------------
  |  Branch (628:13): [True: 22, False: 20.8k]
  ------------------
  629|     22|          if (auto pos = exifData.findKey(ExifKey(key)); pos != exifData.end()) {
  ------------------
  |  Branch (629:58): [True: 10, False: 12]
  ------------------
  630|     10|#ifndef SUPPRESS_WARNINGS
  631|     10|            EXV_WARNING << "Exif tag " << pos->key() << " not encoded\n";
  ------------------
  |  |  138|     10|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 10]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     10|  LogMsg(LogMsg::warn).os()
  ------------------
  632|     10|#endif
  633|     10|            exifData.erase(pos);
  634|     10|          }
  635|     22|        }
  636|  20.9k|        break;
  637|      0|      }
  638|  9.29k|      case pttIfd:
  ------------------
  |  Branch (638:7): [True: 9.29k, False: 55.7k]
  ------------------
  639|  9.29k|        if (delTags) {
  ------------------
  |  Branch (639:13): [True: 1, False: 9.29k]
  ------------------
  640|      1|#ifndef SUPPRESS_WARNINGS
  641|      1|          EXV_WARNING << "Exif IFD " << key << " not encoded\n";
  ------------------
  |  |  138|      1|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      1|  LogMsg(LogMsg::warn).os()
  ------------------
  642|      1|#endif
  643|      1|          eraseIfd(exifData, Internal::groupId(key));
  644|      1|        }
  645|  9.29k|        break;
  646|  65.0k|    }
  647|  65.0k|  }
  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|   171M|  bool operator()(const Exiv2::Exifdatum& exifdatum) const {
   46|   171M|    return key_ == exifdatum.key();
   47|   171M|  }
exif.cpp:_ZN12_GLOBAL__N_118FindExifdatumByKeyC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   39|   540k|  explicit FindExifdatumByKey(std::string key) : key_(std::move(key)) {
   40|   540k|  }
exif.cpp:_ZZN5Exiv210ExifParser6encodeERNSt3__16vectorIhNS1_9allocatorIhEEEEPKhmNS_9ByteOrderERNS_8ExifDataEENK3$_0clINS_9ExifdatumEEEDaRKT_:
  650|  1.25M|  auto f = [](const auto& tag) { return (tag.size() > 4096 && tag.tagName().starts_with("0x")) || tag.size() > 20480; };
  ------------------
  |  Branch (650:42): [True: 218, False: 1.25M]
  |  Branch (650:63): [True: 121, False: 97]
  |  Branch (650:99): [True: 20, False: 1.25M]
  ------------------
exif.cpp:_ZN12_GLOBAL__N_19sumToLongERKN5Exiv29ExifdatumE:
  734|  2.03k|int64_t sumToLong(const Exiv2::Exifdatum& md) {
  735|  2.03k|  int64_t sum = 0;
  736|  13.0k|  for (size_t i = 0; i < md.count(); ++i) {
  ------------------
  |  Branch (736:22): [True: 11.0k, False: 2.03k]
  ------------------
  737|  11.0k|    sum = Safe::add(sum, md.toInt64(i));
  738|  11.0k|  }
  739|  2.03k|  return sum;
  740|  2.03k|}
exif.cpp:_ZN12_GLOBAL__N_18eraseIfdERN5Exiv28ExifDataENS0_5IfdIdE:
  742|  49.9k|void eraseIfd(Exiv2::ExifData& ed, Exiv2::IfdId ifdId) {
  743|  49.9k|  ed.erase(std::remove_if(ed.begin(), ed.end(), Exiv2::FindExifdatum(ifdId)), ed.end());
  744|  49.9k|}
_ZN5Exiv28setValueItEERNS_9ExifdatumES2_RKT_:
  150|      7|Exiv2::Exifdatum& setValue(Exiv2::Exifdatum& exifDatum, const T& value) {
  151|      7|  auto v = std::make_unique<Exiv2::ValueType<T>>();
  152|      7|  v->value_.push_back(value);
  153|      7|  exifDatum.value_ = std::move(v);
  154|      7|  return exifDatum;
  155|      7|}
_ZN5Exiv28setValueIjEERNS_9ExifdatumES2_RKT_:
  150|  30.6k|Exiv2::Exifdatum& setValue(Exiv2::Exifdatum& exifDatum, const T& value) {
  151|  30.6k|  auto v = std::make_unique<Exiv2::ValueType<T>>();
  152|  30.6k|  v->value_.push_back(value);
  153|  30.6k|  exifDatum.value_ = std::move(v);
  154|  30.6k|  return exifDatum;
  155|  30.6k|}

fujimn_int.cpp:_ZN5Exiv28InternalL29printFujiWhiteBalanceFineTuneERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   97|    150|static std::ostream& printFujiWhiteBalanceFineTune(std::ostream& os, const Value& value, const ExifData*) {
   98|    150|  if (value.typeId() == signedLong && value.size() == 8) {
  ------------------
  |  Branch (98:7): [True: 146, False: 4]
  |  Branch (98:39): [True: 100, False: 46]
  ------------------
   99|    100|    if (auto longValue = dynamic_cast<const LongValue*>(&value)) {
  ------------------
  |  Branch (99:14): [True: 100, False: 0]
  ------------------
  100|    100|      if (longValue->toInt64(0) % 20 == 0 && longValue->toInt64(1) % 20 == 0) {
  ------------------
  |  Branch (100:11): [True: 56, False: 44]
  |  Branch (100:46): [True: 18, False: 38]
  ------------------
  101|     18|        auto redShift = longValue->toInt64(0) / 20;
  102|     18|        auto blueShift = longValue->toInt64(1) / 20;
  103|     18|        os << "R: " << redShift << " B: " << blueShift;
  104|     18|        return os;
  105|     18|      }
  106|    100|    }
  107|    100|  }
  108|    132|  os << "(" << value << ")";
  109|    132|  return os;
  110|    150|}
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: 46, False: 62]
  |  Branch (230:41): [True: 38, False: 8]
  ------------------
  231|     38|    os << (value.toFloat() / 8);
  232|     38|  }
  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|    174|static std::ostream& printFujiDriveSetting(std::ostream& os, const Value& value, const ExifData*) {
  290|    174|  auto valint = value.toUint32();
  291|    174|  auto byte1 = static_cast<byte>(valint);
  292|    174|  auto byte2 = static_cast<byte>(valint >> 8);
  293|    174|  auto byte3 = static_cast<byte>(valint >> 16);
  294|    174|  auto fps = valint >> 24;
  295|       |
  296|    174|  if (auto setting = Exiv2::find(fujiDriveSettingByte1, byte1)) {
  ------------------
  |  Branch (296:12): [True: 100, False: 74]
  ------------------
  297|    100|    os << _(setting->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  298|    100|  } else {
  299|     74|    os << "(" << +byte1 << ")";
  300|     74|  }
  301|       |
  302|    174|  if (fps != 0) {
  ------------------
  |  Branch (302:7): [True: 54, False: 120]
  ------------------
  303|     54|    os << ", " << fps << " fps";
  304|     54|  }
  305|       |
  306|    174|  if (byte1 != 0) {
  ------------------
  |  Branch (306:7): [True: 140, False: 34]
  ------------------
  307|    140|    os << ", (" << +byte2 << ", " << +byte3 << ")";  // unknown values
  308|    140|  }
  309|    174|  return os;
  310|    174|}
fujimn_int.cpp:_ZN5Exiv28InternalL25printFujiFaceElementTypesERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  420|    138|static std::ostream& printFujiFaceElementTypes(std::ostream& os, const Value& value, const ExifData*) {
  421|    138|  if (value.typeId() == asciiString || value.typeId() == unsignedShort) {
  ------------------
  |  Branch (421:7): [True: 72, False: 66]
  |  Branch (421:40): [True: 56, False: 10]
  ------------------
  422|    128|    auto elements = value.count();
  423|       |
  424|    128|    if (value.typeId() == asciiString && elements > 0) {
  ------------------
  |  Branch (424:9): [True: 72, False: 56]
  |  Branch (424:42): [True: 72, False: 0]
  ------------------
  425|     72|      elements -= 1;  // null escaped
  426|     72|    }
  427|       |
  428|  18.6k|    for (size_t n = 0; n < elements; n++) {
  ------------------
  |  Branch (428:24): [True: 18.4k, False: 128]
  ------------------
  429|  18.4k|      auto longValue = value.toInt64(n);
  430|       |
  431|  18.4k|      if (value.typeId() == asciiString) {
  ------------------
  |  Branch (431:11): [True: 1.95k, False: 16.5k]
  ------------------
  432|  1.95k|        longValue -= '0';
  433|  1.95k|      }
  434|       |
  435|  18.4k|      if (n != 0) {
  ------------------
  |  Branch (435:11): [True: 18.3k, False: 106]
  ------------------
  436|  18.3k|        os << " ";
  437|  18.3k|      }
  438|  18.4k|      if (auto td = Exiv2::find(fujiFaceElementType, longValue)) {
  ------------------
  |  Branch (438:16): [True: 686, False: 17.8k]
  ------------------
  439|    686|        os << _(td->label_);
  ------------------
  |  |   40|    686|#define _(String) (String)
  ------------------
  440|  17.8k|      } else {
  441|  17.8k|        os << "(" << value.toInt64(n) << ")";
  442|  17.8k|      }
  443|  18.4k|    }
  444|    128|  } else {
  445|     10|    os << "(" << value << ")";
  446|     10|  }
  447|    138|  return os;
  448|    138|}

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

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

_Z24string_from_unterminatedPKcm:
   13|  66.4k|std::string string_from_unterminated(const char* data, size_t data_length) {
   14|  66.4k|  if (data_length == 0) {
  ------------------
  |  Branch (14:7): [True: 4.13k, False: 62.2k]
  ------------------
   15|  4.13k|    return {};
   16|  4.13k|  }
   17|  62.2k|  const size_t StringLength = strnlen(data, data_length);
   18|  62.2k|  return {data, StringLength};
   19|  66.4k|}
_ZN5Exiv212readQWORDTagERKNSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEE:
   22|  1.85k|uint64_t readQWORDTag(const BasicIo::UniquePtr& io) {
   23|  1.85k|  Internal::enforce(QWORD <= io->size() - io->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
   24|  1.85k|  auto FieldBuf = io->read(QWORD);
   25|  1.85k|  return FieldBuf.read_uint64(0, littleEndian);
   26|  1.85k|}
_ZN5Exiv212readDWORDTagERKNSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEE:
   28|  33.8k|uint32_t readDWORDTag(const BasicIo::UniquePtr& io) {
   29|  33.8k|  Internal::enforce(DWORD <= io->size() - io->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
   30|  33.8k|  DataBuf FieldBuf = io->read(DWORD);
   31|  33.8k|  return FieldBuf.read_uint32(0, littleEndian);
   32|  33.8k|}
_ZN5Exiv211readWORDTagERKNSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEE:
   34|  11.4k|uint16_t readWORDTag(const BasicIo::UniquePtr& io) {
   35|  11.4k|  Internal::enforce(WORD <= io->size() - io->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
   36|  11.4k|  DataBuf FieldBuf = io->read(WORD);
   37|  11.4k|  return FieldBuf.read_uint16(0, littleEndian);
   38|  11.4k|}
_ZN5Exiv218readStringWcharTagERKNSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEm:
   40|  2.07k|std::string readStringWcharTag(const BasicIo::UniquePtr& io, size_t length) {
   41|  2.07k|  Internal::enforce(length <= io->size() - io->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
   42|  2.07k|  DataBuf FieldBuf(length + 1);
   43|  2.07k|  io->readOrThrow(FieldBuf.data(), length, ErrorCode::kerFailedToReadImageData);
   44|  2.07k|  std::string wst(FieldBuf.begin(), FieldBuf.end() - 3);
   45|  2.07k|  if (wst.size() % 2 != 0)
  ------------------
  |  Branch (45:7): [True: 1.03k, False: 1.04k]
  ------------------
   46|  1.03k|    Exiv2::convertStringCharset(wst, "UCS-2LE", "UTF-8");
   47|  2.07k|  Exiv2::convertStringCharset(wst, "UCS-2LE", "UTF-8");
   48|  2.07k|  return wst;
   49|  2.07k|}
_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.33k|std::string getAspectRatio(uint64_t width, uint64_t height) {
   59|  1.33k|  if (height == 0 || width == 0)
  ------------------
  |  Branch (59:7): [True: 38, False: 1.29k]
  |  Branch (59:22): [True: 4, False: 1.29k]
  ------------------
   60|     42|    return std::to_string(width) + ":" + std::to_string(height);
   61|       |
   62|  1.29k|  auto ratioWidth = width / std::gcd(width, height);
   63|  1.29k|  auto ratioHeight = height / std::gcd(width, height);
   64|  1.29k|  return std::to_string(ratioWidth) + ":" + std::to_string(ratioHeight);
   65|  1.33k|}

_ZN5Exiv25ImageC2ENS_9ImageTypeEtNSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEE:
  140|  33.2k|    io_(std::move(io)), imageType_(type), supportedMetadata_(supportedMetadata) {
  141|  33.2k|}
_ZN5Exiv25ImageD2Ev:
  143|  33.2k|Image::~Image() = default;
_ZN5Exiv25Image14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  145|  2.67k|void Image::printStructure(std::ostream&, PrintStructureOption, size_t /*depth*/) {
  146|  2.67k|  throw Error(ErrorCode::kerUnsupportedImageType, io_->path());
  147|  2.67k|}
_ZN5Exiv25Image12isStringTypeEt:
  149|  28.4k|bool Image::isStringType(uint16_t type) {
  150|  28.4k|  return type == Exiv2::asciiString || type == Exiv2::unsignedByte || type == Exiv2::signedByte ||
  ------------------
  |  Branch (150:10): [True: 898, False: 27.5k]
  |  Branch (150:40): [True: 300, False: 27.2k]
  |  Branch (150:71): [True: 2.34k, False: 24.8k]
  ------------------
  151|  24.8k|         type == Exiv2::undefined;
  ------------------
  |  Branch (151:10): [True: 4.22k, False: 20.6k]
  ------------------
  152|  28.4k|}
_ZN5Exiv25Image11isShortTypeEt:
  153|  14.9k|bool Image::isShortType(uint16_t type) {
  154|  14.9k|  return type == Exiv2::unsignedShort || type == Exiv2::signedShort;
  ------------------
  |  Branch (154:10): [True: 954, False: 13.9k]
  |  Branch (154:42): [True: 2.93k, False: 11.0k]
  ------------------
  155|  14.9k|}
_ZN5Exiv25Image10isLongTypeEt:
  156|  11.0k|bool Image::isLongType(uint16_t type) {
  157|  11.0k|  return type == Exiv2::unsignedLong || type == Exiv2::signedLong;
  ------------------
  |  Branch (157:10): [True: 4.35k, False: 6.67k]
  |  Branch (157:41): [True: 552, False: 6.12k]
  ------------------
  158|  11.0k|}
_ZN5Exiv25Image14isLongLongTypeEt:
  159|     19|bool Image::isLongLongType(uint16_t type) {
  160|     19|  return type == Exiv2::unsignedLongLong || type == Exiv2::signedLongLong;
  ------------------
  |  Branch (160:10): [True: 0, False: 19]
  |  Branch (160:45): [True: 0, False: 19]
  ------------------
  161|     19|}
_ZN5Exiv25Image14isRationalTypeEt:
  162|  5.05k|bool Image::isRationalType(uint16_t type) {
  163|  5.05k|  return type == Exiv2::unsignedRational || type == Exiv2::signedRational;
  ------------------
  |  Branch (163:10): [True: 1.91k, False: 3.14k]
  |  Branch (163:45): [True: 121, False: 3.01k]
  ------------------
  164|  5.05k|}
_ZN5Exiv25Image11is2ByteTypeEt:
  165|  6.52k|bool Image::is2ByteType(uint16_t type) {
  166|  6.52k|  return isShortType(type);
  167|  6.52k|}
_ZN5Exiv25Image11is4ByteTypeEt:
  168|  4.57k|bool Image::is4ByteType(uint16_t type) {
  169|  4.57k|  return isLongType(type) || type == Exiv2::tiffFloat || type == Exiv2::tiffIfd;
  ------------------
  |  Branch (169:10): [True: 2.45k, False: 2.11k]
  |  Branch (169:30): [True: 85, False: 2.03k]
  |  Branch (169:58): [True: 989, False: 1.04k]
  ------------------
  170|  4.57k|}
_ZN5Exiv25Image11is8ByteTypeEt:
  171|  1.04k|bool Image::is8ByteType(uint16_t type) {
  172|  1.04k|  return isRationalType(type) || isLongLongType(type) || type == Exiv2::tiffIfd8 || type == Exiv2::tiffDouble;
  ------------------
  |  Branch (172:10): [True: 1.02k, False: 19]
  |  Branch (172:34): [True: 0, False: 19]
  |  Branch (172:58): [True: 0, False: 19]
  |  Branch (172:85): [True: 19, False: 0]
  ------------------
  173|  1.04k|}
_ZN5Exiv25Image10isPrintXMPEtNS_20PrintStructureOptionE:
  174|  16.8k|bool Image::isPrintXMP(uint16_t type, Exiv2::PrintStructureOption option) {
  175|  16.8k|  return type == 700 && option == kpsXMP;
  ------------------
  |  Branch (175:10): [True: 0, False: 16.8k]
  |  Branch (175:25): [True: 0, False: 0]
  ------------------
  176|  16.8k|}
_ZN5Exiv25Image10isPrintICCEtNS_20PrintStructureOptionE:
  177|  16.8k|bool Image::isPrintICC(uint16_t type, Exiv2::PrintStructureOption option) {
  178|  16.8k|  return type == 0x8773 && option == kpsIccProfile;
  ------------------
  |  Branch (178:10): [True: 1, False: 16.8k]
  |  Branch (178:28): [True: 0, False: 1]
  ------------------
  179|  16.8k|}
_ZN5Exiv25Image19isBigEndianPlatformEv:
  181|  2.64k|bool Image::isBigEndianPlatform() {
  182|  2.64k|  return std::endian::native == std::endian::big;
  183|  2.64k|}
_ZN5Exiv25Image22isLittleEndianPlatformEv:
  184|  16.3k|bool Image::isLittleEndianPlatform() {
  185|  16.3k|  return std::endian::native == std::endian::little;
  186|  16.3k|}
_ZN5Exiv25Image8byteSwapEjb:
  205|  49.9k|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|  49.9k|  uint32_t result = 0;
  212|  49.9k|  result |= (value & 0x000000FFU) << 24;
  213|  49.9k|  result |= (value & 0x0000FF00U) << 8;
  214|  49.9k|  result |= (value & 0x00FF0000U) >> 8;
  215|  49.9k|  result |= (value & 0xFF000000U) >> 24;
  216|  49.9k|  return bSwap ? result : value;
  ------------------
  |  Branch (216:10): [True: 38.4k, False: 11.4k]
  ------------------
  217|  49.9k|#endif
  218|  49.9k|}
_ZN5Exiv25Image8byteSwapEtb:
  220|  38.8k|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|  38.8k|  uint16_t result = 0;
  227|  38.8k|  result |= (value & 0x00FFU) << 8;
  228|  38.8k|  result |= (value & 0xFF00U) >> 8;
  229|  38.8k|  return bSwap ? result : value;
  ------------------
  |  Branch (229:10): [True: 30.4k, False: 8.36k]
  ------------------
  230|  38.8k|#endif
  231|  38.8k|}
_ZN5Exiv25Image9byteSwap2ERKNS_7DataBufEmb:
  233|  38.8k|uint16_t Image::byteSwap2(const DataBuf& buf, size_t offset, bool bSwap) {
  234|  38.8k|  uint16_t v = 0;
  235|  38.8k|  auto p = reinterpret_cast<char*>(&v);
  236|  38.8k|  p[0] = buf.read_uint8(offset);
  237|  38.8k|  p[1] = buf.read_uint8(offset + 1);
  238|  38.8k|  return Image::byteSwap(v, bSwap);
  239|  38.8k|}
_ZN5Exiv25Image9byteSwap4ERKNS_7DataBufEmb:
  241|  49.4k|uint32_t Image::byteSwap4(const DataBuf& buf, size_t offset, bool bSwap) {
  242|  49.4k|  uint32_t v = 0;
  243|  49.4k|  auto p = reinterpret_cast<char*>(&v);
  244|  49.4k|  p[0] = buf.read_uint8(offset);
  245|  49.4k|  p[1] = buf.read_uint8(offset + 1);
  246|  49.4k|  p[2] = buf.read_uint8(offset + 2);
  247|  49.4k|  p[3] = buf.read_uint8(offset + 3);
  248|  49.4k|  return Image::byteSwap(v, bSwap);
  249|  49.4k|}
_ZN5Exiv25Image8typeNameEt:
  262|  8.39k|const char* Image::typeName(uint16_t tag) {
  263|       |  //! List of TIFF image tags
  264|  8.39k|  const char* result = nullptr;
  265|  8.39k|  switch (tag) {
  266|     72|    case Exiv2::unsignedByte:
  ------------------
  |  Branch (266:5): [True: 72, False: 8.32k]
  ------------------
  267|     72|      result = "BYTE";
  268|     72|      break;
  269|    202|    case Exiv2::asciiString:
  ------------------
  |  Branch (269:5): [True: 202, False: 8.19k]
  ------------------
  270|    202|      result = "ASCII";
  271|    202|      break;
  272|    473|    case Exiv2::unsignedShort:
  ------------------
  |  Branch (272:5): [True: 473, False: 7.92k]
  ------------------
  273|    473|      result = "SHORT";
  274|    473|      break;
  275|  2.17k|    case Exiv2::unsignedLong:
  ------------------
  |  Branch (275:5): [True: 2.17k, False: 6.22k]
  ------------------
  276|  2.17k|      result = "LONG";
  277|  2.17k|      break;
  278|    951|    case Exiv2::unsignedRational:
  ------------------
  |  Branch (278:5): [True: 951, False: 7.44k]
  ------------------
  279|    951|      result = "RATIONAL";
  280|    951|      break;
  281|    586|    case Exiv2::signedByte:
  ------------------
  |  Branch (281:5): [True: 586, False: 7.80k]
  ------------------
  282|    586|      result = "SBYTE";
  283|    586|      break;
  284|  1.05k|    case Exiv2::undefined:
  ------------------
  |  Branch (284:5): [True: 1.05k, False: 7.34k]
  ------------------
  285|  1.05k|      result = "UNDEFINED";
  286|  1.05k|      break;
  287|  1.46k|    case Exiv2::signedShort:
  ------------------
  |  Branch (287:5): [True: 1.46k, False: 6.93k]
  ------------------
  288|  1.46k|      result = "SSHORT";
  289|  1.46k|      break;
  290|    275|    case Exiv2::signedLong:
  ------------------
  |  Branch (290:5): [True: 275, False: 8.12k]
  ------------------
  291|    275|      result = "SLONG";
  292|    275|      break;
  293|     58|    case Exiv2::signedRational:
  ------------------
  |  Branch (293:5): [True: 58, False: 8.33k]
  ------------------
  294|     58|      result = "SRATIONAL";
  295|     58|      break;
  296|     83|    case Exiv2::tiffFloat:
  ------------------
  |  Branch (296:5): [True: 83, False: 8.31k]
  ------------------
  297|     83|      result = "FLOAT";
  298|     83|      break;
  299|     15|    case Exiv2::tiffDouble:
  ------------------
  |  Branch (299:5): [True: 15, False: 8.38k]
  ------------------
  300|     15|      result = "DOUBLE";
  301|     15|      break;
  302|    988|    case Exiv2::tiffIfd:
  ------------------
  |  Branch (302:5): [True: 988, False: 7.40k]
  ------------------
  303|    988|      result = "IFD";
  304|    988|      break;
  305|      0|    default:
  ------------------
  |  Branch (305:5): [True: 0, False: 8.39k]
  ------------------
  306|      0|      result = "unknown";
  307|      0|      break;
  308|  8.39k|  }
  309|  8.39k|  return result;
  310|  8.39k|}
_ZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcm:
  319|  18.9k|                              bool bSwap, char c, size_t depth) {
  320|  18.9k|  if (depth == 1)
  ------------------
  |  Branch (320:7): [True: 2.52k, False: 16.4k]
  ------------------
  321|  2.52k|    visits.clear();
  322|  18.9k|  bool bFirst = true;
  323|       |
  324|       |  // buffer
  325|  18.9k|  const size_t dirSize = 32;
  326|  18.9k|  DataBuf dir(dirSize);
  327|  18.9k|  bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (327:17): [True: 16.3k, False: 2.55k]
  |  Branch (327:39): [True: 2.54k, False: 3]
  ------------------
  328|       |
  329|  18.9k|  do {
  330|       |    // Read top of directory
  331|  18.9k|    io.seekOrThrow(start, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  332|  18.9k|    io.readOrThrow(dir.data(), 2, ErrorCode::kerCorruptedMetadata);
  333|  18.9k|    uint16_t dirLength = byteSwap2(dir, 0, bSwap);
  334|       |    // Prevent infinite loops. (GHSA-m479-7frc-gqqg)
  335|  18.9k|    Internal::enforce(dirLength > 0, ErrorCode::kerCorruptedMetadata);
  336|       |
  337|  18.9k|    if (dirLength > 500)  // tooBig
  ------------------
  |  Branch (337:9): [True: 17, False: 18.9k]
  ------------------
  338|     17|      throw Error(ErrorCode::kerTiffDirectoryTooLarge);
  339|       |
  340|  18.9k|    if (bFirst && bPrint) {
  ------------------
  |  Branch (340:9): [True: 18.7k, False: 175]
  |  Branch (340:19): [True: 18.7k, False: 3]
  ------------------
  341|  18.7k|      out << Internal::indent(depth) << stringFormat("STRUCTURE OF TIFF FILE ({}{}): {}\n", c, c, io.path());
  ------------------
  |  |   18|  18.7k|#define stringFormat std::format
  ------------------
  342|  18.7k|    }
  343|       |
  344|       |    // Read the dictionary
  345|  27.3k|    for (int i = 0; i < dirLength; i++) {
  ------------------
  |  Branch (345:21): [True: 24.6k, False: 2.68k]
  ------------------
  346|  24.6k|      if (visits.contains(io.tell())) {  // #547
  ------------------
  |  Branch (346:11): [True: 15.9k, False: 8.69k]
  ------------------
  347|  15.9k|        throw Error(ErrorCode::kerCorruptedMetadata);
  348|  15.9k|      }
  349|  8.69k|      visits.insert(io.tell());
  350|       |
  351|  8.69k|      if (bFirst && bPrint) {
  ------------------
  |  Branch (351:11): [True: 2.78k, False: 5.90k]
  |  Branch (351:21): [True: 2.78k, False: 0]
  ------------------
  352|  2.78k|        out << Internal::indent(depth) << " address |    tag                              |     "
  353|  2.78k|            << " type |    count |    offset | value\n";
  354|  2.78k|      }
  355|  8.69k|      bFirst = false;
  356|       |
  357|  8.69k|      io.readOrThrow(dir.data(), 12, ErrorCode::kerCorruptedMetadata);
  358|  8.69k|      uint16_t tag = byteSwap2(dir, 0, bSwap);
  359|  8.69k|      uint16_t type = byteSwap2(dir, 2, bSwap);
  360|  8.69k|      uint32_t count = byteSwap4(dir, 4, bSwap);
  361|  8.69k|      uint32_t offset = byteSwap4(dir, 8, bSwap);
  362|       |
  363|       |      // Break for unknown tag types else we may segfault.
  364|  8.69k|      if (!typeValid(type)) {
  ------------------
  |  Branch (364:11): [True: 210, False: 8.48k]
  ------------------
  365|    210|        EXV_ERROR << "invalid type in tiff structure" << type << '\n';
  ------------------
  |  |  142|    210|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 210]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    210|  LogMsg(LogMsg::error).os()
  ------------------
  366|    210|        throw Error(ErrorCode::kerInvalidTypeValue);
  367|    210|      }
  368|       |
  369|       |      // prepare to print the value
  370|  8.48k|      uint32_t kount = [=] {
  371|       |        // haul in all the data
  372|  8.48k|        if (isPrintXMP(tag, option))
  373|  8.48k|          return count;
  374|       |        // ditto
  375|  8.48k|        if (isPrintICC(tag, option))
  376|  8.48k|          return count;
  377|       |        // restrict long arrays
  378|  8.48k|        if (isStringType(type)) {
  379|  8.48k|          return std::min(count, 32u);
  380|  8.48k|        }
  381|  8.48k|        return std::min(count, 5u);
  382|  8.48k|      }();
  383|  8.48k|      uint32_t pad = isStringType(type) ? 1 : 0;
  ------------------
  |  Branch (383:22): [True: 1.95k, False: 6.53k]
  ------------------
  384|  8.48k|      size_t size = [=] {
  385|  8.48k|        if (isStringType(type))
  386|  8.48k|          return 1;
  387|  8.48k|        if (is2ByteType(type))
  388|  8.48k|          return 2;
  389|  8.48k|        if (is4ByteType(type))
  390|  8.48k|          return 4;
  391|  8.48k|        if (is8ByteType(type))
  392|  8.48k|          return 8;
  393|  8.48k|        return 1;
  394|  8.48k|      }();
  395|       |
  396|       |      // if ( offset > io.size() ) offset = 0; // Denial of service?
  397|       |
  398|       |      // #55 and #56 memory allocation crash test/data/POC8
  399|  8.48k|      const size_t allocate64 = (size * count) + pad + 20;
  400|  8.48k|      if (allocate64 > io.size()) {
  ------------------
  |  Branch (400:11): [True: 65, False: 8.41k]
  ------------------
  401|     65|        throw Error(ErrorCode::kerInvalidMalloc);
  402|     65|      }
  403|  8.41k|      DataBuf buf(allocate64);                       // allocate a buffer
  404|  8.41k|      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|  8.41k|      const size_t count_x_size = count * size;
  408|  8.41k|      const bool bOffsetIsPointer = count_x_size > 4;
  409|       |
  410|  8.41k|      if (bOffsetIsPointer) {                                                       // read into buffer
  ------------------
  |  Branch (410:11): [True: 3.92k, False: 4.49k]
  ------------------
  411|  3.92k|        const size_t restore = io.tell();                                           // save
  412|  3.92k|        io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);      // position
  413|  3.92k|        io.readOrThrow(buf.data(), count_x_size, ErrorCode::kerCorruptedMetadata);  // read
  414|  3.92k|        io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);     // restore
  415|  3.92k|      }
  416|       |
  417|  8.41k|      if (bPrint) {
  ------------------
  |  Branch (417:11): [True: 8.39k, False: 24]
  ------------------
  418|  8.39k|        const size_t address = start + 2 + (i * 12);
  419|  8.39k|        const std::string offsetString = bOffsetIsPointer ? stringFormat("{:9}", offset) : "";
  ------------------
  |  |   18|  3.91k|#define stringFormat std::format
  ------------------
  |  Branch (419:42): [True: 3.91k, False: 4.48k]
  ------------------
  420|  8.39k|        std::string sp;  // output spacer
  421|       |
  422|  8.39k|        out << Internal::indent(depth)
  423|  8.39k|            << stringFormat("{:8} | {:#06x} {:<28} | {:>9} | {:>8} | {:9} | ", address, tag, tagName(tag),
  ------------------
  |  |   18|  8.39k|#define stringFormat std::format
  ------------------
  424|  8.39k|                            typeName(type), count, offsetString);
  425|  8.39k|        if (isShortType(type)) {
  ------------------
  |  Branch (425:13): [True: 1.93k, False: 6.45k]
  ------------------
  426|  4.51k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (426:30): [True: 2.57k, False: 1.93k]
  ------------------
  427|  2.57k|            out << sp << byteSwap2(buf, k * size, bSwap);
  428|  2.57k|            sp = " ";
  429|  2.57k|          }
  430|  6.45k|        } else if (isLongType(type)) {
  ------------------
  |  Branch (430:20): [True: 2.44k, False: 4.00k]
  ------------------
  431|  8.90k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (431:30): [True: 6.45k, False: 2.44k]
  ------------------
  432|  6.45k|            out << sp << byteSwap4(buf, k * size, bSwap);
  433|  6.45k|            sp = " ";
  434|  6.45k|          }
  435|       |
  436|  4.00k|        } else if (isRationalType(type)) {
  ------------------
  |  Branch (436:20): [True: 1.00k, False: 3.00k]
  ------------------
  437|  3.14k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (437:30): [True: 2.13k, False: 1.00k]
  ------------------
  438|  2.13k|            uint32_t a = byteSwap4(buf, (k * size) + 0, bSwap);
  439|  2.13k|            uint32_t b = byteSwap4(buf, (k * size) + 4, bSwap);
  440|  2.13k|            out << sp << a << "/" << b;
  441|  2.13k|            sp = " ";
  442|  2.13k|          }
  443|  3.00k|        } else if (isStringType(type)) {
  ------------------
  |  Branch (443:20): [True: 1.91k, False: 1.08k]
  ------------------
  444|  1.91k|          out << sp << Internal::binaryToString(makeSlice(buf, 0, kount));
  445|  1.91k|        }
  446|       |
  447|  8.39k|        sp = kount == count ? "" : " ...";
  ------------------
  |  Branch (447:14): [True: 6.21k, False: 2.18k]
  ------------------
  448|  8.39k|        out << sp << '\n';
  449|       |
  450|  8.39k|        if (option == kpsRecursive && (tag == 0x8769 /* ExifTag */ || tag == 0x014a /*SubIFDs*/ || type == tiffIfd)) {
  ------------------
  |  Branch (450:13): [True: 8.04k, False: 353]
  |  Branch (450:40): [True: 20, False: 8.02k]
  |  Branch (450:71): [True: 147, False: 7.87k]
  |  Branch (450:100): [True: 980, False: 6.89k]
  ------------------
  451|  1.16k|          for (size_t k = 0; k < count; k++) {
  ------------------
  |  Branch (451:30): [True: 17, False: 1.14k]
  ------------------
  452|     17|            const size_t restore = io.tell();
  453|     17|            offset = byteSwap4(buf, k * size, bSwap);
  454|     17|            printIFDStructure(io, out, option, offset, bSwap, c, depth + 1);
  455|     17|            io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  456|     17|          }
  457|  7.24k|        } else if (option == kpsRecursive && tag == 0x83bb /* IPTCNAA */) {
  ------------------
  |  Branch (457:20): [True: 6.89k, False: 353]
  |  Branch (457:46): [True: 1.21k, False: 5.67k]
  ------------------
  458|  1.21k|          if (count > 0) {
  ------------------
  |  Branch (458:15): [True: 569, False: 647]
  ------------------
  459|    569|            if (static_cast<size_t>(Safe::add(count, offset)) > io.size()) {
  ------------------
  |  Branch (459:17): [True: 1, False: 568]
  ------------------
  460|      1|              throw Error(ErrorCode::kerCorruptedMetadata);
  461|      1|            }
  462|       |
  463|    568|            const size_t restore = io.tell();
  464|    568|            io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  465|    568|            auto bytes = std::make_unique<byte[]>(count);                           // allocate memory
  466|    568|            io.readOrThrow(bytes.get(), count, ErrorCode::kerCorruptedMetadata);
  467|    568|            io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  468|    568|            IptcData::printStructure(out, makeSliceUntil(bytes.get(), count), depth);
  469|    568|          }
  470|  6.03k|        } else if (option == kpsRecursive && tag == 0x927c /* MakerNote */ && count > 10) {
  ------------------
  |  Branch (470:20): [True: 5.67k, False: 353]
  |  Branch (470:46): [True: 978, False: 4.70k]
  |  Branch (470:79): [True: 3, False: 975]
  ------------------
  471|      3|          const size_t restore = io.tell();  // save
  472|       |
  473|      3|          uint32_t jump = 10;
  474|      3|          byte bytes[20];
  475|      3|          const auto chars = reinterpret_cast<const char*>(&bytes[0]);
  476|      3|          io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  477|      3|          io.readOrThrow(bytes, jump, ErrorCode::kerCorruptedMetadata);           // read
  478|      3|          bytes[jump] = 0;
  479|       |
  480|      3|          bool bNikon = ::strcmp("Nikon", chars) == 0;
  481|      3|          bool bSony = ::strcmp("SONY DSC ", chars) == 0;
  482|       |
  483|      3|          if (bNikon) {
  ------------------
  |  Branch (483:15): [True: 0, False: 3]
  ------------------
  484|       |            // tag is an embedded tiff
  485|      0|            const long byteslen = count - jump;
  486|      0|            auto b = DataBuf(byteslen);                                           // allocate a buffer
  487|      0|            io.readOrThrow(b.data(), byteslen, ErrorCode::kerCorruptedMetadata);  // read
  488|      0|            MemIo memIo(b.c_data(), byteslen);                                    // create a file
  489|      0|            printTiffStructure(memIo, out, option, depth + 1);
  490|      3|          } else {
  491|       |            // tag is an IFD
  492|      3|            uint32_t punt = bSony ? 12 : 0;
  ------------------
  |  Branch (492:29): [True: 1, False: 2]
  ------------------
  493|      3|            io.seekOrThrow(0, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  494|      3|            printIFDStructure(io, out, option, offset + punt, bSwap, c, depth + 1);
  495|      3|          }
  496|       |
  497|      3|          io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // restore
  498|      3|        }
  499|  8.39k|      }
  500|       |
  501|  8.41k|      if (isPrintXMP(tag, option)) {
  ------------------
  |  Branch (501:11): [True: 0, False: 8.41k]
  ------------------
  502|      0|        buf.write_uint8(count, 0);
  503|      0|        out << buf.c_str();
  504|      0|      }
  505|  8.41k|      if (isPrintICC(tag, option)) {
  ------------------
  |  Branch (505:11): [True: 0, False: 8.41k]
  ------------------
  506|      0|        out.write(buf.c_str(), count);
  507|      0|      }
  508|  8.41k|    }
  509|  2.68k|    if (start) {
  ------------------
  |  Branch (509:9): [True: 2.48k, False: 199]
  ------------------
  510|  2.48k|      io.readOrThrow(dir.data(), 4, ErrorCode::kerCorruptedMetadata);
  511|  2.48k|      start = byteSwap4(dir, 0, bSwap);
  512|  2.48k|    }
  513|  2.68k|  } while (start);
  ------------------
  |  Branch (513:12): [True: 24, False: 2.66k]
  ------------------
  514|       |
  515|  2.66k|  if (bPrint) {
  ------------------
  |  Branch (515:7): [True: 2.46k, False: 200]
  ------------------
  516|  2.46k|    out << Internal::indent(depth) << "END " << io.path() << '\n';
  517|  2.46k|  }
  518|  2.66k|  out.flush();
  519|  2.66k|}
_ZN5Exiv25Image18printTiffStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmm:
  522|  35.3k|                               size_t offset /*=0*/) {
  523|  35.3k|  if (option == kpsBasic || option == kpsXMP || option == kpsRecursive || option == kpsIccProfile) {
  ------------------
  |  Branch (523:7): [True: 16.3k, False: 18.9k]
  |  Branch (523:29): [True: 3, False: 18.9k]
  |  Branch (523:49): [True: 2.54k, False: 16.3k]
  |  Branch (523:75): [True: 0, False: 16.3k]
  ------------------
  524|       |    // buffer
  525|  18.9k|    const size_t dirSize = 32;
  526|  18.9k|    DataBuf dir(dirSize);
  527|       |
  528|       |    // read header (we already know for certain that we have a Tiff file)
  529|  18.9k|    io.readOrThrow(dir.data(), 8, ErrorCode::kerCorruptedMetadata);
  530|  18.9k|    auto c = dir.read_uint8(0);
  531|  18.9k|    bool bSwap = (c == 'M' && isLittleEndianPlatform()) || (c == 'I' && isBigEndianPlatform());
  ------------------
  |  Branch (531:19): [True: 16.3k, False: 2.54k]
  |  Branch (531:31): [True: 16.3k, False: 0]
  |  Branch (531:61): [True: 2.50k, False: 17]
  |  Branch (531:73): [True: 0, False: 2.50k]
  ------------------
  532|  18.9k|    size_t start = byteSwap4(dir, 4, bSwap);
  533|  18.9k|    printIFDStructure(io, out, option, start + offset, bSwap, c, depth);
  534|  18.9k|  }
  535|  35.3k|}
_ZN5Exiv25Image13clearMetadataEv:
  537|  31.6k|void Image::clearMetadata() {
  538|  31.6k|  clearExifData();
  539|  31.6k|  clearIptcData();
  540|  31.6k|  clearXmpPacket();
  541|  31.6k|  clearXmpData();
  542|  31.6k|  clearComment();
  543|  31.6k|  clearIccProfile();
  544|  31.6k|}
_ZN5Exiv25Image8exifDataEv:
  546|   720k|ExifData& Image::exifData() {
  547|   720k|  return exifData_;
  548|   720k|}
_ZN5Exiv25Image8iptcDataEv:
  550|  53.5k|IptcData& Image::iptcData() {
  551|  53.5k|  return iptcData_;
  552|  53.5k|}
_ZN5Exiv25Image7xmpDataEv:
  554|  62.9k|XmpData& Image::xmpData() {
  555|  62.9k|  return xmpData_;
  556|  62.9k|}
_ZN5Exiv25Image9xmpPacketEv:
  558|    111|std::string& Image::xmpPacket() {
  559|       |  // Serialize the current XMP
  560|    111|  if (!xmpData_.empty() && !writeXmpFromPacket()) {
  ------------------
  |  Branch (560:7): [True: 0, False: 111]
  |  Branch (560:28): [True: 0, False: 0]
  ------------------
  561|      0|    XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting);
  562|      0|  }
  563|    111|  return xmpPacket_;
  564|    111|}
_ZN5Exiv25Image13clearExifDataEv:
  586|  31.6k|void Image::clearExifData() {
  587|  31.6k|  exifData_.clear();
  588|  31.6k|}
_ZN5Exiv25Image13clearIptcDataEv:
  594|  31.6k|void Image::clearIptcData() {
  595|  31.6k|  iptcData_.clear();
  596|  31.6k|}
_ZN5Exiv25Image14clearXmpPacketEv:
  602|  31.6k|void Image::clearXmpPacket() {
  603|  31.6k|  xmpPacket_.clear();
  604|  31.6k|  writeXmpFromPacket(true);
  605|  31.6k|}
_ZN5Exiv25Image12clearXmpDataEv:
  614|  31.6k|void Image::clearXmpData() {
  615|  31.6k|  xmpData_.clear();
  616|  31.6k|  writeXmpFromPacket(false);
  617|  31.6k|}
_ZN5Exiv25Image18writeXmpFromPacketEb:
  625|  63.3k|void Image::writeXmpFromPacket(bool flag) {
  626|  63.3k|  writeXmpFromPacket_ = flag;
  627|  63.3k|}
_ZN5Exiv25Image12clearCommentEv:
  633|  31.6k|void Image::clearComment() {
  634|  31.6k|  comment_.erase();
  635|  31.6k|}
_ZN5Exiv25Image10setCommentERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  637|     57|void Image::setComment(const std::string& comment) {
  638|     57|  comment_ = comment;
  639|     57|}
_ZN5Exiv25Image13setIccProfileEONS_7DataBufEb:
  641|    107|void Image::setIccProfile(Exiv2::DataBuf&& iccProfile, bool bTestValid) {
  642|    107|  iccProfile_ = std::move(iccProfile);
  643|    107|  if (bTestValid) {
  ------------------
  |  Branch (643:7): [True: 107, False: 0]
  ------------------
  644|    107|    checkIccProfile();
  645|    107|  }
  646|    107|}
_ZN5Exiv25Image16appendIccProfileEPKhmb:
  648|  1.24k|void Image::appendIccProfile(const uint8_t* bytes, size_t size, bool bTestValid) {
  649|  1.24k|  if (size == 0) {
  ------------------
  |  Branch (649:7): [True: 81, False: 1.16k]
  ------------------
  650|     81|    return;
  651|     81|  }
  652|  1.16k|  const size_t start = iccProfile_.size();
  653|  1.16k|  iccProfile_.resize(Safe::add(start, size));
  654|  1.16k|  memcpy(iccProfile_.data(start), bytes, size);
  655|  1.16k|  if (bTestValid) {
  ------------------
  |  Branch (655:7): [True: 20, False: 1.14k]
  ------------------
  656|     20|    checkIccProfile();
  657|     20|  }
  658|  1.16k|}
_ZNK5Exiv25Image15checkIccProfileEv:
  660|    127|void Image::checkIccProfile() const {
  661|    127|  if (iccProfile_.size() < sizeof(long)) {
  ------------------
  |  Branch (661:7): [True: 3, False: 124]
  ------------------
  662|      3|    throw Error(ErrorCode::kerInvalidIccProfile);
  663|      3|  }
  664|    124|  const size_t size = iccProfile_.read_uint32(0, bigEndian);
  665|    124|  if (size != iccProfile_.size()) {
  ------------------
  |  Branch (665:7): [True: 10, False: 114]
  ------------------
  666|     10|    throw Error(ErrorCode::kerInvalidIccProfile);
  667|     10|  }
  668|    124|}
_ZN5Exiv25Image15clearIccProfileEv:
  670|  31.6k|void Image::clearIccProfile() {
  671|  31.6k|  iccProfile_.reset();
  672|  31.6k|}
_ZN5Exiv25Image12setByteOrderENS_9ByteOrderE:
  674|  18.7k|void Image::setByteOrder(ByteOrder byteOrder) {
  675|  18.7k|  byteOrder_ = byteOrder;
  676|  18.7k|}
_ZNK5Exiv25Image9byteOrderEv:
  678|  1.25k|ByteOrder Image::byteOrder() const {
  679|  1.25k|  return byteOrder_;
  680|  1.25k|}
_ZNK5Exiv25Image10pixelWidthEv:
  682|    352|uint32_t Image::pixelWidth() const {
  683|    352|  return pixelWidth_;
  684|    352|}
_ZNK5Exiv25Image11pixelHeightEv:
  686|    352|uint32_t Image::pixelHeight() const {
  687|    352|  return pixelHeight_;
  688|    352|}
_ZNK5Exiv25Image8exifDataEv:
  690|  99.5k|const ExifData& Image::exifData() const {
  691|  99.5k|  return exifData_;
  692|  99.5k|}
_ZNK5Exiv25Image7xmpDataEv:
  698|  2.41k|const XmpData& Image::xmpData() const {
  699|  2.41k|  return xmpData_;
  700|  2.41k|}
_ZNK5Exiv25Image7commentEv:
  702|    195|std::string Image::comment() const {
  703|    195|  return comment_;
  704|    195|}
_ZNK5Exiv25Image2ioEv:
  710|  42.8k|BasicIo& Image::io() const {
  711|  42.8k|  return *io_;
  712|  42.8k|}
_ZNK5Exiv25Image18writeXmpFromPacketEv:
  714|  7.73k|bool Image::writeXmpFromPacket() const {
  715|  7.73k|  return writeXmpFromPacket_;
  716|  7.73k|}
_ZNK5Exiv25Image14nativePreviewsEv:
  718|  9.96k|const NativePreviewList& Image::nativePreviews() const {
  719|  9.96k|  return nativePreviews_;
  720|  9.96k|}
_ZNK5Exiv25Image4goodEv:
  722|  33.1k|bool Image::good() const {
  723|  33.1k|  if (io_->open() != 0)
  ------------------
  |  Branch (723:7): [True: 0, False: 33.1k]
  ------------------
  724|      0|    return false;
  725|  33.1k|  IoCloser closer(*io_);
  726|  33.1k|  return ImageFactory::checkType(imageType_, *io_, false);
  727|  33.1k|}
_ZN5Exiv25Image7tagNameEt:
  738|  8.39k|const std::string& Image::tagName(uint16_t tag) {
  739|  8.39k|  if (init_) {
  ------------------
  |  Branch (739:7): [True: 195, False: 8.20k]
  ------------------
  740|    195|    int idx;
  741|    195|    const TagInfo* ti;
  742|    585|    for (ti = Internal::mnTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (742:47): [True: 390, False: 195]
  ------------------
  743|    390|      tags_[ti[idx].tag_] = ti[idx].name_;
  744|  1.17k|    for (ti = Internal::iopTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (744:48): [True: 975, False: 195]
  ------------------
  745|    975|      tags_[ti[idx].tag_] = ti[idx].name_;
  746|  6.43k|    for (ti = Internal::gpsTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (746:48): [True: 6.24k, False: 195]
  ------------------
  747|  6.24k|      tags_[ti[idx].tag_] = ti[idx].name_;
  748|  50.1k|    for (ti = Internal::ifdTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (748:48): [True: 49.9k, False: 195]
  ------------------
  749|  49.9k|      tags_[ti[idx].tag_] = ti[idx].name_;
  750|  17.5k|    for (ti = Internal::exifTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (750:49): [True: 17.3k, False: 195]
  ------------------
  751|  17.3k|      tags_[ti[idx].tag_] = ti[idx].name_;
  752|  3.90k|    for (ti = Internal::mpfTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (752:48): [True: 3.70k, False: 195]
  ------------------
  753|  3.70k|      tags_[ti[idx].tag_] = ti[idx].name_;
  754|  3.31k|    for (ti = Internal::Nikon1MakerNote::tagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (754:62): [True: 3.12k, False: 195]
  ------------------
  755|  3.12k|      tags_[ti[idx].tag_] = ti[idx].name_;
  756|    195|  }
  757|  8.39k|  init_ = false;
  758|       |
  759|  8.39k|  return tags_[tag];
  760|  8.39k|}
_ZN5Exiv212ImageFactory9checkTypeENS_9ImageTypeERNS_7BasicIoEb:
  777|  33.1k|bool ImageFactory::checkType(ImageType type, BasicIo& io, bool advance) {
  778|  33.1k|  if (auto r = Exiv2::find(registry, type))
  ------------------
  |  Branch (778:12): [True: 33.1k, False: 0]
  ------------------
  779|  33.1k|    return r->isThisType_(io, advance);
  780|      0|  return false;
  781|  33.1k|}
_ZN5Exiv212ImageFactory4openEPKhm:
  863|  33.6k|Image::UniquePtr ImageFactory::open(const byte* data, size_t size) {
  864|  33.6k|  auto image = open(std::make_unique<MemIo>(data, size));  // may throw
  865|  33.6k|  if (!image)
  ------------------
  |  Branch (865:7): [True: 403, False: 33.2k]
  ------------------
  866|    403|    throw Error(ErrorCode::kerMemoryContainsUnknownImageType);
  867|  33.2k|  return image;
  868|  33.6k|}
_ZN5Exiv212ImageFactory4openENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  870|  33.6k|Image::UniquePtr ImageFactory::open(BasicIo::UniquePtr io) {
  871|  33.6k|  if (io->open() != 0) {
  ------------------
  |  Branch (871:7): [True: 0, False: 33.6k]
  ------------------
  872|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io->path(), strError());
  873|      0|  }
  874|   485k|  for (const auto& r : registry) {
  ------------------
  |  Branch (874:22): [True: 485k, False: 507]
  ------------------
  875|   485k|    if (r.isThisType_(*io, false)) {
  ------------------
  |  Branch (875:9): [True: 33.1k, False: 452k]
  ------------------
  876|  33.1k|      return r.newInstance_(std::move(io), false);
  877|  33.1k|    }
  878|   485k|  }
  879|    507|  return nullptr;
  880|  33.6k|}
_ZN5Exiv26appendERNSt3__16vectorIhNS0_9allocatorIhEEEEPKhm:
  918|  65.3k|void append(Blob& blob, const byte* buf, size_t len) {
  919|  65.3k|  if (len != 0) {
  ------------------
  |  Branch (919:7): [True: 64.3k, False: 1.04k]
  ------------------
  920|  64.3k|    Blob::size_type size = blob.size();
  921|  64.3k|    if (blob.capacity() - size < len) {
  ------------------
  |  Branch (921:9): [True: 4.51k, False: 59.8k]
  ------------------
  922|  4.51k|      blob.reserve(size + 65536);
  923|  4.51k|    }
  924|  64.3k|    blob.resize(size + len);
  925|  64.3k|    std::copy_n(buf, len, blob.begin() + size);
  926|  64.3k|  }
  927|  65.3k|}  // append
image.cpp:_ZN5Exiv2L9typeValidEt:
  312|  8.68k|static bool typeValid(uint16_t type) {
  313|  8.68k|  return type >= 1 && type <= 13;
  ------------------
  |  Branch (313:10): [True: 8.63k, False: 49]
  |  Branch (313:23): [True: 8.47k, False: 161]
  ------------------
  314|  8.68k|}
image.cpp:_ZZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcmENK3$_0clEv:
  370|  8.47k|      uint32_t kount = [=] {
  371|       |        // haul in all the data
  372|  8.47k|        if (isPrintXMP(tag, option))
  ------------------
  |  Branch (372:13): [True: 0, False: 8.47k]
  ------------------
  373|      0|          return count;
  374|       |        // ditto
  375|  8.47k|        if (isPrintICC(tag, option))
  ------------------
  |  Branch (375:13): [True: 0, False: 8.47k]
  ------------------
  376|      0|          return count;
  377|       |        // restrict long arrays
  378|  8.47k|        if (isStringType(type)) {
  ------------------
  |  Branch (378:13): [True: 1.95k, False: 6.52k]
  ------------------
  379|  1.95k|          return std::min(count, 32u);
  380|  1.95k|        }
  381|  6.52k|        return std::min(count, 5u);
  382|  8.47k|      }();
image.cpp:_ZZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcmENK3$_1clEv:
  384|  8.47k|      size_t size = [=] {
  385|  8.47k|        if (isStringType(type))
  ------------------
  |  Branch (385:13): [True: 1.95k, False: 6.52k]
  ------------------
  386|  1.95k|          return 1;
  387|  6.52k|        if (is2ByteType(type))
  ------------------
  |  Branch (387:13): [True: 1.94k, False: 4.57k]
  ------------------
  388|  1.94k|          return 2;
  389|  4.57k|        if (is4ByteType(type))
  ------------------
  |  Branch (389:13): [True: 3.53k, False: 1.04k]
  ------------------
  390|  3.53k|          return 4;
  391|  1.04k|        if (is8ByteType(type))
  ------------------
  |  Branch (391:13): [True: 1.04k, False: 0]
  ------------------
  392|  1.04k|          return 8;
  393|      0|        return 1;
  394|  1.04k|      }();
image.cpp:_ZNK12_GLOBAL__N_18RegistryeqERKN5Exiv29ImageTypeE:
   66|   471k|  bool operator==(const ImageType& imageType) const {
   67|   471k|    return imageType == imageType_;
   68|   471k|  }

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

_ZN5Exiv28Internal14binaryToStringIPhEEDaONS_5SliceIT_EE:
   95|  38.1k|constexpr auto binaryToString(Slice<T>&& sl) noexcept {
   96|  38.1k|  return binaryToStringHelper<T>(std::move(sl));
   97|  38.1k|}
_ZN5Exiv28Internal20binaryToStringHelperIPhEC2EONS_5SliceIS2_EE:
   64|  38.1k|  explicit constexpr binaryToStringHelper(Slice<T>&& myBuf) noexcept : buf_(std::move(myBuf)) {
   65|  38.1k|  }
_ZN5Exiv28InternallsIPhEERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEES8_RKNS0_20binaryToStringHelperIT_EE:
   49|  38.1k|std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper<T>& binToStr) noexcept {
   50|   941k|  for (size_t i = 0; i < binToStr.buf_.size(); ++i) {
  ------------------
  |  Branch (50:22): [True: 903k, False: 38.1k]
  ------------------
   51|   903k|    auto c = static_cast<unsigned char>(binToStr.buf_.at(i));
   52|   903k|    if (c != 0 || i != binToStr.buf_.size() - 1) {
  ------------------
  |  Branch (52:9): [True: 686k, False: 216k]
  |  Branch (52:19): [True: 197k, False: 18.8k]
  ------------------
   53|   884k|      if (c < 32 || c > 126)
  ------------------
  |  Branch (53:11): [True: 271k, False: 613k]
  |  Branch (53:21): [True: 109k, False: 503k]
  ------------------
   54|   381k|        stream.put('.');
   55|   503k|      else
   56|   503k|        stream.put(static_cast<char>(c));
   57|   884k|    }
   58|   903k|  }
   59|  38.1k|  return stream;
   60|  38.1k|}
_ZN5Exiv28Internal14binaryToStringIKNS_5SliceIPhEEEEDaONS2_IT_EE:
   95|  1.02k|constexpr auto binaryToString(Slice<T>&& sl) noexcept {
   96|  1.02k|  return binaryToStringHelper<T>(std::move(sl));
   97|  1.02k|}
_ZN5Exiv28Internal20binaryToStringHelperIKNS_5SliceIPhEEEC2EONS2_IS5_EE:
   64|  1.02k|  explicit constexpr binaryToStringHelper(Slice<T>&& myBuf) noexcept : buf_(std::move(myBuf)) {
   65|  1.02k|  }
_ZN5Exiv28InternallsIKNS_5SliceIPhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS0_20binaryToStringHelperIT_EE:
   49|  1.02k|std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper<T>& binToStr) noexcept {
   50|  7.16k|  for (size_t i = 0; i < binToStr.buf_.size(); ++i) {
  ------------------
  |  Branch (50:22): [True: 6.14k, False: 1.02k]
  ------------------
   51|  6.14k|    auto c = static_cast<unsigned char>(binToStr.buf_.at(i));
   52|  6.14k|    if (c != 0 || i != binToStr.buf_.size() - 1) {
  ------------------
  |  Branch (52:9): [True: 4.42k, False: 1.71k]
  |  Branch (52:19): [True: 1.33k, False: 377]
  ------------------
   53|  5.76k|      if (c < 32 || c > 126)
  ------------------
  |  Branch (53:11): [True: 2.14k, False: 3.61k]
  |  Branch (53:21): [True: 831, False: 2.78k]
  ------------------
   54|  2.97k|        stream.put('.');
   55|  2.78k|      else
   56|  2.78k|        stream.put(static_cast<char>(c));
   57|  5.76k|    }
   58|  6.14k|  }
   59|  1.02k|  return stream;
   60|  1.02k|}

_ZN5Exiv29IptcdatumC2ERKNS_7IptcKeyEPKNS_5ValueE:
   56|  36.3k|Iptcdatum::Iptcdatum(const IptcKey& key, const Value* pValue) : key_(key.clone()) {
   57|  36.3k|  if (pValue)
  ------------------
  |  Branch (57:7): [True: 36.0k, False: 316]
  ------------------
   58|  36.0k|    value_ = pValue->clone();
   59|  36.3k|}
_ZN5Exiv29IptcdatumC2ERKS0_:
   61|   262k|Iptcdatum::Iptcdatum(const Iptcdatum& rhs) {
   62|   262k|  if (rhs.key_)
  ------------------
  |  Branch (62:7): [True: 262k, False: 0]
  ------------------
   63|   262k|    key_ = rhs.key_->clone();  // deep copy
   64|   262k|  if (rhs.value_)
  ------------------
  |  Branch (64:7): [True: 262k, False: 0]
  ------------------
   65|   262k|    value_ = rhs.value_->clone();  // deep copy
   66|   262k|}
_ZN5Exiv29IptcdatumD2Ev:
   68|   299k|Iptcdatum::~Iptcdatum() = default;
_ZNK5Exiv29Iptcdatum5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKNS_8ExifDataE:
   74|  3.20k|std::ostream& Iptcdatum::write(std::ostream& os, const ExifData*) const {
   75|  3.20k|  return os << value();
   76|  3.20k|}
_ZNK5Exiv29Iptcdatum6recordEv:
   86|   618k|uint16_t Iptcdatum::record() const {
   87|   618k|  return key_ ? key_->record() : 0;
  ------------------
  |  Branch (87:10): [True: 618k, False: 0]
  ------------------
   88|   618k|}
_ZNK5Exiv29Iptcdatum7tagNameEv:
   98|  2.54k|std::string Iptcdatum::tagName() const {
   99|  2.54k|  return key_ ? key_->tagName() : "";
  ------------------
  |  Branch (99:10): [True: 2.54k, False: 0]
  ------------------
  100|  2.54k|}
_ZNK5Exiv29Iptcdatum3tagEv:
  110|  82.0k|uint16_t Iptcdatum::tag() const {
  111|  82.0k|  return key_ ? key_->tag() : 0;
  ------------------
  |  Branch (111:10): [True: 82.0k, False: 0]
  ------------------
  112|  82.0k|}
_ZNK5Exiv29Iptcdatum4sizeEv:
  130|  60.8k|size_t Iptcdatum::size() const {
  131|  60.8k|  return value_ ? value_->size() : 0;
  ------------------
  |  Branch (131:10): [True: 60.8k, False: 0]
  ------------------
  132|  60.8k|}
_ZNK5Exiv29Iptcdatum5valueEv:
  158|  33.6k|const Value& Iptcdatum::value() const {
  159|  33.6k|  if (!value_)
  ------------------
  |  Branch (159:7): [True: 0, False: 33.6k]
  ------------------
  160|      0|    throw Error(ErrorCode::kerValueNotSet, key());
  161|  33.6k|  return *value_;
  162|  33.6k|}
_ZN5Exiv29IptcdatumaSERKS0_:
  164|   162k|Iptcdatum& Iptcdatum::operator=(const Iptcdatum& rhs) {
  165|   162k|  if (this == &rhs)
  ------------------
  |  Branch (165:7): [True: 0, False: 162k]
  ------------------
  166|      0|    return *this;
  167|       |
  168|   162k|  key_.reset();
  169|   162k|  if (rhs.key_)
  ------------------
  |  Branch (169:7): [True: 162k, False: 0]
  ------------------
  170|   162k|    key_ = rhs.key_->clone();  // deep copy
  171|       |
  172|   162k|  value_.reset();
  173|   162k|  if (rhs.value_)
  ------------------
  |  Branch (173:7): [True: 162k, False: 0]
  ------------------
  174|   162k|    value_ = rhs.value_->clone();  // deep copy
  175|       |
  176|   162k|  return *this;
  177|   162k|}  // Iptcdatum::operator=
_ZN5Exiv29IptcdatumaSERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  186|    316|Iptcdatum& Iptcdatum::operator=(const std::string& value) {
  187|    316|  setValue(value);
  188|    316|  return *this;
  189|    316|}
_ZN5Exiv29Iptcdatum8setValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  202|    316|int Iptcdatum::setValue(const std::string& value) {
  203|    316|  if (!value_) {
  ------------------
  |  Branch (203:7): [True: 316, False: 0]
  ------------------
  204|    316|    TypeId type = IptcDataSets::dataSetType(tag(), record());
  205|    316|    value_ = Value::create(type);
  206|    316|  }
  207|    316|  return value_->read(value);
  208|    316|}
_ZN5Exiv28IptcDataixERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  210|    316|Iptcdatum& IptcData::operator[](const std::string& key) {
  211|    316|  IptcKey iptcKey(key);
  212|    316|  auto pos = findKey(iptcKey);
  213|    316|  if (pos == end()) {
  ------------------
  |  Branch (213:7): [True: 316, False: 0]
  ------------------
  214|    316|    return iptcMetadata_.emplace_back(iptcKey);
  215|    316|  }
  216|      0|  return *pos;
  217|    316|}
_ZNK5Exiv28IptcData4sizeEv:
  219|    345|size_t IptcData::size() const {
  220|    345|  size_t newSize = 0;
  221|  30.4k|  for (auto&& iptc : iptcMetadata_) {
  ------------------
  |  Branch (221:20): [True: 30.4k, False: 345]
  ------------------
  222|       |    // marker, record Id, dataset num, first 2 bytes of size
  223|  30.4k|    newSize += 5;
  224|  30.4k|    size_t dataSize = iptc.size();
  225|  30.4k|    newSize += dataSize;
  226|  30.4k|    if (dataSize > 32767) {
  ------------------
  |  Branch (226:9): [True: 0, False: 30.4k]
  ------------------
  227|       |      // extended dataset (we always use 4 bytes)
  228|      0|      newSize += 4;
  229|      0|    }
  230|  30.4k|  }
  231|    345|  return newSize;
  232|    345|}
_ZN5Exiv28IptcData3addERKNS_7IptcKeyEPKNS_5ValueE:
  234|  36.0k|int IptcData::add(const IptcKey& key, const Value* value) {
  235|  36.0k|  return add(Iptcdatum(key, value));
  236|  36.0k|}
_ZN5Exiv28IptcData3addERKNS_9IptcdatumE:
  238|  36.0k|int IptcData::add(const Iptcdatum& iptcDatum) {
  239|  36.0k|  if (!IptcDataSets::dataSetRepeatable(iptcDatum.tag(), iptcDatum.record()) &&
  ------------------
  |  Branch (239:7): [True: 3.26k, False: 32.7k]
  |  Branch (239:7): [True: 2.36k, False: 33.6k]
  ------------------
  240|  3.26k|      findId(iptcDatum.tag(), iptcDatum.record()) != end()) {
  ------------------
  |  Branch (240:7): [True: 2.36k, False: 893]
  ------------------
  241|  2.36k|    return 6;
  242|  2.36k|  }
  243|       |  // allow duplicates
  244|  33.6k|  iptcMetadata_.push_back(iptcDatum);
  245|  33.6k|  return 0;
  246|  36.0k|}
_ZN5Exiv28IptcData7findKeyERKNS_7IptcKeyE:
  252|    474|IptcData::iterator IptcData::findKey(const IptcKey& key) {
  253|    474|  return std::find_if(iptcMetadata_.begin(), iptcMetadata_.end(), FindIptcdatum(key.tag(), key.record()));
  254|    474|}
_ZN5Exiv28IptcData6findIdEtt:
  260|  3.26k|IptcData::iterator IptcData::findId(uint16_t dataset, uint16_t record) {
  261|  3.26k|  return std::find_if(iptcMetadata_.begin(), iptcMetadata_.end(), FindIptcdatum(dataset, record));
  262|  3.26k|}
_ZN5Exiv28IptcData14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5SliceIPhEEm:
  278|  3.13k|void IptcData::printStructure(std::ostream& out, const Slice<byte*>& bytes, size_t depth) {
  279|  3.13k|  if (bytes.size() < 3) {
  ------------------
  |  Branch (279:7): [True: 72, False: 3.06k]
  ------------------
  280|     72|    return;
  281|     72|  }
  282|  3.06k|  size_t i = 0;
  283|  63.3k|  while (i < bytes.size() - 3 && bytes.at(i) != 0x1c)
  ------------------
  |  Branch (283:10): [True: 61.2k, False: 2.06k]
  |  Branch (283:34): [True: 60.2k, False: 998]
  ------------------
  284|  60.2k|    i++;
  285|  3.06k|  out << Internal::indent(++depth) << "Record | DataSet | Name                     | Length | Data" << '\n';
  286|  4.11k|  while (i < bytes.size() - 3) {
  ------------------
  |  Branch (286:10): [True: 1.72k, False: 2.39k]
  ------------------
  287|  1.72k|    if (bytes.at(i) != 0x1c) {
  ------------------
  |  Branch (287:9): [True: 672, False: 1.04k]
  ------------------
  288|    672|      break;
  289|    672|    }
  290|  1.04k|    uint16_t record = bytes.at(i + 1);
  291|  1.04k|    uint16_t dataset = bytes.at(i + 2);
  292|  1.04k|    Internal::enforce(bytes.size() - i >= 5, ErrorCode::kerCorruptedMetadata);
  293|  1.04k|    uint16_t len = getUShort(bytes.subSlice(i + 3, bytes.size()), bigEndian);
  294|       |
  295|  1.04k|    Internal::enforce(bytes.size() - i >= 5 + static_cast<size_t>(len), ErrorCode::kerCorruptedMetadata);
  296|  1.04k|    out << stringFormat("  {:6} | {:7} | {:<24} | {:6} | ", record, dataset,
  ------------------
  |  |   18|  1.04k|#define stringFormat std::format
  ------------------
  297|  1.04k|                        Exiv2::IptcDataSets::dataSetName(dataset, record), len);
  298|  1.04k|    out << Internal::binaryToString(makeSlice(bytes, i + 5, i + 5 + std::min<uint16_t>(40, len)))
  299|  1.04k|        << (len > 40 ? "...\n" : "\n");
  ------------------
  |  Branch (299:13): [True: 31, False: 1.01k]
  ------------------
  300|  1.04k|    i += 5 + len;
  301|  1.04k|  }
  302|  3.06k|}
_ZN5Exiv210IptcParser6decodeERNS_8IptcDataEPKhm:
  362|    925|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|    925|  auto pRead = pData;
  367|    925|  const auto pEnd = pData + size;
  368|    925|  iptcData.clear();
  369|       |
  370|    925|  uint16_t record = 0;
  371|    925|  uint16_t dataSet = 0;
  372|    925|  uint32_t sizeData = 0;
  373|    925|  byte extTest = 0;
  374|       |
  375|   717k|  while (6 <= static_cast<size_t>(pEnd - pRead)) {
  ------------------
  |  Branch (375:10): [True: 716k, False: 713]
  ------------------
  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|   716k|    if (*pRead++ != marker_)
  ------------------
  |  Branch (379:9): [True: 680k, False: 36.3k]
  ------------------
  380|   680k|      continue;
  381|  36.3k|    record = *pRead++;
  382|  36.3k|    dataSet = *pRead++;
  383|       |
  384|  36.3k|    extTest = *pRead;
  385|  36.3k|    if (extTest & 0x80) {
  ------------------
  |  Branch (385:9): [True: 289, False: 36.0k]
  ------------------
  386|       |      // extended dataset
  387|    289|      uint16_t sizeOfSize = (getUShort(pRead, bigEndian) & 0x7FFF);
  388|    289|      if (sizeOfSize > 4)
  ------------------
  |  Branch (388:11): [True: 43, False: 246]
  ------------------
  389|     43|        return 5;
  390|    246|      pRead += 2;
  391|    246|      if (sizeOfSize > pEnd - pRead)
  ------------------
  |  Branch (391:11): [True: 4, False: 242]
  ------------------
  392|      4|        return 6;
  393|    242|      sizeData = 0;
  394|    862|      for (; sizeOfSize > 0; --sizeOfSize) {
  ------------------
  |  Branch (394:14): [True: 620, False: 242]
  ------------------
  395|    620|        sizeData |= *pRead++ << (8 * (sizeOfSize - 1));
  396|    620|      }
  397|  36.0k|    } else {
  398|       |      // standard dataset
  399|  36.0k|      sizeData = getUShort(pRead, bigEndian);
  400|  36.0k|      pRead += 2;
  401|  36.0k|    }
  402|  36.2k|    if (sizeData <= static_cast<size_t>(pEnd - pRead)) {
  ------------------
  |  Branch (402:9): [True: 36.0k, False: 165]
  ------------------
  403|  36.0k|      int rc = readData(iptcData, dataSet, record, pRead, sizeData);
  404|  36.0k|      if (rc != 0) {
  ------------------
  |  Branch (404:11): [True: 0, False: 36.0k]
  ------------------
  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|  36.0k|    } else {
  410|    165|#ifndef SUPPRESS_WARNINGS
  411|    165|      EXV_WARNING << "IPTC dataset " << IptcKey(dataSet, record) << " has invalid size " << sizeData << "; skipped.\n";
  ------------------
  |  |  138|    165|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 165]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    165|  LogMsg(LogMsg::warn).os()
  ------------------
  412|    165|#endif
  413|    165|      return 7;
  414|    165|    }
  415|  36.0k|    pRead += sizeData;
  416|  36.0k|  }
  417|       |
  418|    713|  return 0;
  419|    925|}  // IptcParser::decode
_ZN5Exiv210IptcParser6encodeERKNS_8IptcDataE:
  421|  10.0k|DataBuf IptcParser::encode(const IptcData& iptcData) {
  422|  10.0k|  DataBuf buf;
  423|  10.0k|  if (iptcData.empty())
  ------------------
  |  Branch (423:7): [True: 9.66k, False: 345]
  ------------------
  424|  9.66k|    return buf;
  425|       |
  426|    345|  buf = DataBuf(iptcData.size());
  427|    345|  byte* pWrite = buf.data();
  428|       |
  429|       |  // Copy the iptc data sets and sort them by record but preserve the order of datasets
  430|    345|  IptcMetadata sortedIptcData(iptcData.begin(), iptcData.end());
  431|    345|  std::stable_sort(sortedIptcData.begin(), sortedIptcData.end(),
  432|    345|                   [](const auto& l, const auto& r) { return l.record() < r.record(); });
  433|       |
  434|  30.4k|  for (const auto& iter : sortedIptcData) {
  ------------------
  |  Branch (434:25): [True: 30.4k, False: 345]
  ------------------
  435|       |    // marker, record Id, dataset num
  436|  30.4k|    *pWrite++ = marker_;
  437|  30.4k|    *pWrite++ = static_cast<byte>(iter.record());
  438|  30.4k|    *pWrite++ = static_cast<byte>(iter.tag());
  439|       |
  440|       |    // extended or standard dataset?
  441|  30.4k|    if (size_t dataSize = iter.size(); dataSize > 32767) {
  ------------------
  |  Branch (441:40): [True: 0, False: 30.4k]
  ------------------
  442|       |      // always use 4 bytes for extended length
  443|      0|      uint16_t sizeOfSize = 4 | 0x8000;
  444|      0|      us2Data(pWrite, sizeOfSize, bigEndian);
  445|      0|      pWrite += 2;
  446|      0|      ul2Data(pWrite, static_cast<uint32_t>(dataSize), bigEndian);
  447|      0|      pWrite += 4;
  448|  30.4k|    } else {
  449|  30.4k|      us2Data(pWrite, static_cast<uint16_t>(dataSize), bigEndian);
  450|  30.4k|      pWrite += 2;
  451|  30.4k|    }
  452|  30.4k|    pWrite += iter.value().copy(pWrite, bigEndian);
  453|  30.4k|  }
  454|       |
  455|    345|  return buf;
  456|  10.0k|}  // IptcParser::encode
iptc.cpp:_ZNK12_GLOBAL__N_113FindIptcdatumclERKN5Exiv29IptcdatumE:
   41|  11.9k|  bool operator()(const Exiv2::Iptcdatum& iptcdatum) const {
   42|  11.9k|    return dataset_ == iptcdatum.tag() && record_ == iptcdatum.record();
  ------------------
  |  Branch (42:12): [True: 4.23k, False: 7.70k]
  |  Branch (42:43): [True: 2.36k, False: 1.86k]
  ------------------
   43|  11.9k|  }
iptc.cpp:_ZN12_GLOBAL__N_113FindIptcdatumC2Ett:
   35|  3.73k|  FindIptcdatum(uint16_t dataset, uint16_t record) : dataset_(dataset), record_(record) {
   36|  3.73k|  }
iptc.cpp:_ZN12_GLOBAL__N_18readDataERN5Exiv28IptcDataEttPKhj:
  463|  36.0k|int readData(Exiv2::IptcData& iptcData, uint16_t dataSet, uint16_t record, const Exiv2::byte* data, uint32_t sizeData) {
  464|  36.0k|  Exiv2::TypeId type = Exiv2::IptcDataSets::dataSetType(dataSet, record);
  465|  36.0k|  auto value = Exiv2::Value::create(type);
  466|  36.0k|  int rc = value->read(data, sizeData, Exiv2::bigEndian);
  467|  36.0k|  if (0 == rc) {
  ------------------
  |  Branch (467:7): [True: 32.3k, False: 3.72k]
  ------------------
  468|  32.3k|    Exiv2::IptcKey key(dataSet, record);
  469|  32.3k|    iptcData.add(key, value.get());
  470|  32.3k|  } else if (1 == rc) {
  ------------------
  |  Branch (470:14): [True: 3.68k, False: 37]
  ------------------
  471|       |    // If the first attempt failed, try with a string value
  472|  3.68k|    value = Exiv2::Value::create(Exiv2::string);
  473|  3.68k|    rc = value->read(data, sizeData, Exiv2::bigEndian);
  474|  3.68k|    if (0 == rc) {
  ------------------
  |  Branch (474:9): [True: 3.68k, False: 0]
  ------------------
  475|  3.68k|      Exiv2::IptcKey key(dataSet, record);
  476|  3.68k|      iptcData.add(key, value.get());
  477|  3.68k|    }
  478|  3.68k|  }
  479|  36.0k|  return rc;
  480|  36.0k|}
iptc.cpp:_ZZN5Exiv210IptcParser6encodeERKNS_8IptcDataEENK3$_0clINS_9IptcdatumES6_EEDaRKT_RKT0_:
  432|   271k|                   [](const auto& l, const auto& r) { return l.record() < r.record(); });

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

_ZN5Exiv28Internal18isValidBoxFileTypeERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
   13|    127|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|    127|  if (boxData.size() < 8 || ((boxData.size() - 8u) % 4u) != 0) {
  ------------------
  |  Branch (15:7): [True: 4, False: 123]
  |  Branch (15:29): [True: 1, False: 122]
  ------------------
   16|      5|    return false;
   17|      5|  }
   18|       |
   19|    122|  const size_t N = (boxData.size() - 8u) / 4u;
   20|    122|  const uint32_t brand = getULong(boxData.data(), bigEndian);
   21|    122|  const uint32_t minorVersion = getULong(boxData.data() + 4, bigEndian);
   22|       |
   23|    122|  bool clWithRightBrand = false;
   24|    695|  for (size_t i = 0; i < N; i++) {
  ------------------
  |  Branch (24:22): [True: 667, False: 28]
  ------------------
   25|    667|    uint32_t compatibilityList = getULong(boxData.data() + 8 + (i * 4), bigEndian);
   26|    667|    if ((brand == brandJp2 && compatibilityList == brandJp2) || (brand == brandJph && compatibilityList == brandJph)) {
  ------------------
  |  Branch (26:10): [True: 404, False: 263]
  |  Branch (26:31): [True: 78, False: 326]
  |  Branch (26:66): [True: 99, False: 490]
  |  Branch (26:87): [True: 16, False: 83]
  ------------------
   27|     94|      clWithRightBrand = true;
   28|     94|      break;
   29|     94|    }
   30|    667|  }
   31|    122|  return (minorVersion == 0 && clWithRightBrand);
  ------------------
  |  Branch (31:11): [True: 98, False: 24]
  |  Branch (31:32): [True: 91, False: 7]
  ------------------
   32|    127|}

_ZN5Exiv28JpegBaseC2ENS_9ImageTypeENSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEEbPKhm:
  116|  1.71k|    Image(type, mdExif | mdIptc | mdXmp | mdComment, std::move(io)) {
  117|  1.71k|  if (create) {
  ------------------
  |  Branch (117:7): [True: 0, False: 1.71k]
  ------------------
  118|      0|    initImage(initData, dataSize);
  119|      0|  }
  120|  1.71k|}
_ZNK5Exiv28JpegBase15advanceToMarkerENS_9ErrorCodeE:
  133|   257k|byte JpegBase::advanceToMarker(ErrorCode err) const {
  134|   257k|  int c = -1;
  135|       |  // Skips potential padding between markers
  136|  10.1M|  while ((c = io_->getb()) != 0xff) {
  ------------------
  |  Branch (136:10): [True: 9.94M, False: 256k]
  ------------------
  137|  9.94M|    if (c == EOF)
  ------------------
  |  Branch (137:9): [True: 393, False: 9.94M]
  ------------------
  138|    393|      throw Error(err);
  139|  9.94M|  }
  140|       |
  141|       |  // Markers can start with any number of 0xff
  142|   312k|  while ((c = io_->getb()) == 0xff) {
  ------------------
  |  Branch (142:10): [True: 55.2k, False: 256k]
  ------------------
  143|  55.2k|  }
  144|   256k|  if (c == EOF)
  ------------------
  |  Branch (144:7): [True: 48, False: 256k]
  ------------------
  145|     48|    throw Error(err);
  146|       |
  147|   256k|  return static_cast<byte>(c);
  148|   256k|}
_ZN5Exiv28JpegBase12readMetadataEv:
  150|  2.53k|void JpegBase::readMetadata() {
  151|  2.53k|  int rc = 0;  // Todo: this should be the return value
  152|       |
  153|  2.53k|  if (io_->open() != 0)
  ------------------
  |  Branch (153:7): [True: 0, False: 2.53k]
  ------------------
  154|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  155|  2.53k|  IoCloser closer(*io_);
  156|       |  // Ensure that this is the correct image type
  157|  2.53k|  if (!isThisType(*io_, true)) {
  ------------------
  |  Branch (157:7): [True: 116, False: 2.41k]
  ------------------
  158|    116|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (158:9): [True: 0, False: 116]
  |  Branch (158:25): [True: 0, False: 116]
  ------------------
  159|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  160|    116|    throw Error(ErrorCode::kerNotAJpeg);
  161|    116|  }
  162|  2.41k|  clearMetadata();
  163|  2.41k|  int search = 6;  // Exif, ICC, XMP, Comment, IPTC, SOF
  164|  2.41k|  Blob psBlob;
  165|  2.41k|  bool foundCompletePsData = false;
  166|  2.41k|  bool foundExifData = false;
  167|  2.41k|  bool foundXmpData = false;
  168|  2.41k|  bool foundIccData = false;
  169|       |
  170|       |  // Read section marker
  171|  2.41k|  byte marker = advanceToMarker(ErrorCode::kerNotAJpeg);
  172|       |
  173|  66.2k|  while (marker != sos_ && marker != eoi_ && search > 0) {
  ------------------
  |  Branch (173:10): [True: 65.8k, False: 396]
  |  Branch (173:28): [True: 64.3k, False: 1.48k]
  |  Branch (173:46): [True: 64.3k, False: 13]
  ------------------
  174|  64.3k|    const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  175|       |
  176|       |    // Read the rest of the segment.
  177|  64.3k|    DataBuf buf(size);
  178|       |    // check if the segment is not empty
  179|  64.3k|    if (size > 2) {
  ------------------
  |  Branch (179:9): [True: 55.0k, False: 9.23k]
  ------------------
  180|  55.0k|      io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  181|  55.0k|      std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  182|  55.0k|    }
  183|       |
  184|  64.3k|    if (auto itSofMarker = Exiv2::find(jpegProcessMarkerTags, marker)) {
  ------------------
  |  Branch (184:14): [True: 2.82k, False: 61.5k]
  ------------------
  185|  2.82k|      sof_encoding_process_ = itSofMarker->label_;
  186|  2.82k|      if (size >= 7 && buf.c_data(7)) {
  ------------------
  |  Branch (186:11): [True: 2.16k, False: 659]
  |  Branch (186:24): [True: 1.82k, False: 338]
  ------------------
  187|  1.82k|        num_color_components_ = *buf.c_data(7);
  188|  1.82k|      }
  189|  2.82k|    }
  190|       |
  191|  64.3k|    if (!foundExifData && marker == app1_ && size >= 8  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (191:9): [True: 56.6k, False: 7.67k]
  |  Branch (191:27): [True: 5.43k, False: 51.2k]
  |  Branch (191:46): [True: 3.94k, False: 1.48k]
  ------------------
  192|  3.94k|        && buf.cmpBytes(2, exifId_.data(), 6) == 0) {
  ------------------
  |  Branch (192:12): [True: 688, False: 3.26k]
  ------------------
  193|    688|      ByteOrder bo = ExifParser::decode(exifData_, buf.c_data(8), size - 8);
  194|    688|      setByteOrder(bo);
  195|    688|      if (size > 8 && byteOrder() == invalidByteOrder) {
  ------------------
  |  Branch (195:11): [True: 669, False: 19]
  |  Branch (195:23): [True: 0, False: 669]
  ------------------
  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|    688|      --search;
  202|    688|      foundExifData = true;
  203|  63.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: 694]
  |  Branch (203:33): [True: 8.59k, False: 54.3k]
  |  Branch (203:52): [True: 6.97k, False: 1.62k]
  ------------------
  204|  6.97k|               && buf.cmpBytes(2, xmpId_.data(), 29) == 0) {
  ------------------
  |  Branch (204:19): [True: 172, False: 6.80k]
  ------------------
  205|    172|      xmpPacket_.assign(buf.c_str(31), size - 31);
  206|    172|      if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_)) {
  ------------------
  |  Branch (206:11): [True: 171, False: 1]
  |  Branch (206:34): [True: 80, False: 91]
  ------------------
  207|     80|#ifndef SUPPRESS_WARNINGS
  208|     80|        EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|     80|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 80]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     80|  LogMsg(LogMsg::warn).os()
  ------------------
  209|     80|#endif
  210|     80|      }
  211|    172|      --search;
  212|    172|      foundXmpData = true;
  213|  63.4k|    } else if (!foundCompletePsData && marker == app13_ &&
  ------------------
  |  Branch (213:16): [True: 62.8k, False: 612]
  |  Branch (213:40): [True: 35.8k, False: 27.0k]
  ------------------
  214|  35.8k|               size >= 16  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (214:16): [True: 35.2k, False: 573]
  ------------------
  215|  35.2k|               && buf.cmpBytes(2, Photoshop::ps3Id_, 14) == 0) {
  ------------------
  |  Branch (215:19): [True: 23.9k, False: 11.3k]
  ------------------
  216|       |#ifdef EXIV2_DEBUG_MESSAGES
  217|       |      std::cerr << "Found app13 segment, size = " << size << "\n";
  218|       |#endif
  219|  23.9k|      if (buf.size() > 16) {  // Append to psBlob
  ------------------
  |  Branch (219:11): [True: 21.8k, False: 2.10k]
  ------------------
  220|  21.8k|        append(psBlob, buf.c_data(16), size - 16);
  221|  21.8k|      }
  222|       |      // Check whether psBlob is complete
  223|  23.9k|      if (!psBlob.empty() && Photoshop::valid(psBlob.data(), psBlob.size())) {
  ------------------
  |  Branch (223:11): [True: 23.0k, False: 917]
  |  Branch (223:30): [True: 84, False: 22.9k]
  ------------------
  224|     84|        --search;
  225|     84|        foundCompletePsData = true;
  226|     84|      }
  227|  39.5k|    } else if (marker == com_ && comment_.empty()) {
  ------------------
  |  Branch (227:16): [True: 2.09k, False: 37.4k]
  |  Branch (227:34): [True: 812, False: 1.28k]
  ------------------
  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|    812|      comment_.assign(buf.c_str(2), size - 2);
  232|  2.06k|      while (!comment_.empty() && comment_.back() == '\0') {
  ------------------
  |  Branch (232:14): [True: 1.87k, False: 192]
  |  Branch (232:35): [True: 1.25k, False: 620]
  ------------------
  233|  1.25k|        comment_.pop_back();
  234|  1.25k|      }
  235|    812|      --search;
  236|  38.7k|    } else if (marker == app2_ && size >= 13  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (236:16): [True: 3.65k, False: 35.0k]
  |  Branch (236:35): [True: 3.02k, False: 625]
  ------------------
  237|  3.02k|               && buf.cmpBytes(2, iccId_, 11) == 0) {
  ------------------
  |  Branch (237:19): [True: 1.27k, False: 1.75k]
  ------------------
  238|  1.27k|      if (size < 2 + 14 + 4) {
  ------------------
  |  Branch (238:11): [True: 13, False: 1.25k]
  ------------------
  239|     13|        rc = 8;
  240|     13|        break;
  241|     13|      }
  242|       |      // ICC profile
  243|  1.25k|      if (!foundIccData) {
  ------------------
  |  Branch (243:11): [True: 88, False: 1.16k]
  ------------------
  244|     88|        foundIccData = true;
  245|     88|        --search;
  246|     88|      }
  247|  1.25k|      auto chunk = static_cast<int>(buf.read_uint8(2 + 12));
  248|  1.25k|      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.25k|      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.25k|      size_t icc_size = size - 2 - 14;
  260|  1.25k|      if (chunk == 1 && chunks == 1) {
  ------------------
  |  Branch (260:11): [True: 934, False: 323]
  |  Branch (260:25): [True: 103, False: 831]
  ------------------
  261|    103|        enforce(s <= static_cast<uint32_t>(icc_size), ErrorCode::kerInvalidIccProfile);
  262|    103|        icc_size = s;
  263|    103|      }
  264|       |
  265|  1.25k|      appendIccProfile(buf.c_data(2 + 14), icc_size, chunk == chunks);
  266|  37.4k|    } else if (pixelHeight_ == 0 && inRange2(marker, sof0_, sof3_, sof5_, sof15_)) {
  ------------------
  |  Branch (266:16): [True: 29.9k, False: 7.46k]
  |  Branch (266:37): [True: 254, False: 29.7k]
  ------------------
  267|       |      // We hit a SOFn (start-of-frame) marker
  268|    254|      if (size < 8) {
  ------------------
  |  Branch (268:11): [True: 56, False: 198]
  ------------------
  269|     56|        rc = 7;
  270|     56|        break;
  271|     56|      }
  272|    198|      pixelHeight_ = buf.read_uint16(3, bigEndian);
  273|    198|      pixelWidth_ = buf.read_uint16(5, bigEndian);
  274|    198|      if (pixelHeight_ != 0)
  ------------------
  |  Branch (274:11): [True: 94, False: 104]
  ------------------
  275|     94|        --search;
  276|    198|    }
  277|       |
  278|       |    // Read the beginning of the next segment
  279|  64.2k|    try {
  280|  64.2k|      marker = advanceToMarker(ErrorCode::kerFailedToReadImageData);
  281|  64.2k|    } catch (const Error&) {
  282|    224|      rc = 5;
  283|    224|      break;
  284|    224|    }
  285|  64.2k|  }  // while there are segments to process
  286|       |
  287|  2.18k|  if (!psBlob.empty()) {
  ------------------
  |  Branch (287:7): [True: 452, False: 1.73k]
  ------------------
  288|       |    // Find actual IPTC data within the psBlob
  289|    452|    Blob iptcBlob;
  290|    452|    const byte* record = nullptr;
  291|    452|    uint32_t sizeIptc = 0;
  292|    452|    uint32_t sizeHdr = 0;
  293|    452|    const byte* pCur = psBlob.data();
  294|    452|    const byte* pEnd = pCur + psBlob.size();
  295|  19.1k|    while (pCur < pEnd && 0 == Photoshop::locateIptcIrb(pCur, pEnd - pCur, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (295:12): [True: 19.0k, False: 10]
  |  Branch (295:27): [True: 18.6k, False: 442]
  ------------------
  296|       |#ifdef EXIV2_DEBUG_MESSAGES
  297|       |      std::cerr << "Found IPTC IRB, size = " << sizeIptc << "\n";
  298|       |#endif
  299|  18.6k|      if (sizeIptc) {
  ------------------
  |  Branch (299:11): [True: 18.6k, False: 7]
  ------------------
  300|  18.6k|        append(iptcBlob, record + sizeHdr, sizeIptc);
  301|  18.6k|      }
  302|  18.6k|      pCur = record + sizeHdr + sizeIptc + (sizeIptc & 1);
  303|  18.6k|    }
  304|    452|    if (!iptcBlob.empty() && IptcParser::decode(iptcData_, iptcBlob.data(), iptcBlob.size())) {
  ------------------
  |  Branch (304:9): [True: 86, False: 366]
  |  Branch (304:30): [True: 13, False: 73]
  ------------------
  305|     13|#ifndef SUPPRESS_WARNINGS
  306|     13|      EXV_WARNING << "Failed to decode IPTC metadata.\n";
  ------------------
  |  |  138|     13|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 13]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     13|  LogMsg(LogMsg::warn).os()
  ------------------
  307|     13|#endif
  308|     13|      iptcData_.clear();
  309|     13|    }
  310|    452|  }
  311|       |
  312|  2.18k|  if (rc != 0) {
  ------------------
  |  Branch (312:7): [True: 293, False: 1.88k]
  ------------------
  313|    293|#ifndef SUPPRESS_WARNINGS
  314|    293|    EXV_WARNING << "JPEG format error, rc = " << rc << "\n";
  ------------------
  |  |  138|    293|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 293]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    293|  LogMsg(LogMsg::warn).os()
  ------------------
  315|    293|#endif
  316|    293|  }
  317|  2.18k|}  // JpegBase::readMetadata
_ZN5Exiv28JpegBase14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  323|  7.26k|void JpegBase::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
  324|  7.26k|  if (io_->open() != 0)
  ------------------
  |  Branch (324:7): [True: 0, False: 7.26k]
  ------------------
  325|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  326|       |  // Ensure that this is the correct image type
  327|  7.26k|  if (!isThisType(*io_, false)) {
  ------------------
  |  Branch (327:7): [True: 0, False: 7.26k]
  ------------------
  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.26k|  bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (333:17): [True: 1.35k, False: 5.90k]
  |  Branch (333:39): [True: 1.17k, False: 4.72k]
  ------------------
  334|  7.26k|  std::vector<std::pair<size_t, size_t>> iptcDataSegs;
  335|       |
  336|  7.26k|  if (bPrint || option == kpsXMP || option == kpsIccProfile || option == kpsIptcErase) {
  ------------------
  |  Branch (336:7): [True: 2.53k, False: 4.72k]
  |  Branch (336:17): [True: 1.18k, False: 3.54k]
  |  Branch (336:37): [True: 1.09k, False: 2.45k]
  |  Branch (336:64): [True: 1.09k, False: 1.35k]
  ------------------
  337|       |    // mnemonic for markers
  338|  5.90k|    std::string nm[256];
  339|  5.90k|    nm[0xd8] = "SOI";
  340|  5.90k|    nm[0xd9] = "EOI";
  341|  5.90k|    nm[0xda] = "SOS";
  342|  5.90k|    nm[0xdb] = "DQT";
  343|  5.90k|    nm[0xdd] = "DRI";
  344|  5.90k|    nm[0xfe] = "COM";
  345|       |
  346|       |    // 0xe0 .. 0xef are APPn
  347|       |    // 0xc0 .. 0xcf are SOFn (except 4)
  348|  5.90k|    nm[0xc4] = "DHT";
  349|   100k|    for (int i = 0; i <= 15; i++) {
  ------------------
  |  Branch (349:21): [True: 94.4k, False: 5.90k]
  ------------------
  350|  94.4k|      nm[0xe0 + i] = stringFormat("APP{}", i);
  ------------------
  |  |   18|  94.4k|#define stringFormat std::format
  ------------------
  351|  94.4k|      if (i != 4) {
  ------------------
  |  Branch (351:11): [True: 88.5k, False: 5.90k]
  ------------------
  352|  88.5k|        nm[0xc0 + i] = stringFormat("SOF{}", i);
  ------------------
  |  |   18|  88.5k|#define stringFormat std::format
  ------------------
  353|  88.5k|      }
  354|  94.4k|    }
  355|       |
  356|       |    // Container for the signature
  357|  5.90k|    bool bExtXMP = false;
  358|       |
  359|       |    // Read section marker
  360|  5.90k|    byte marker = advanceToMarker(ErrorCode::kerNotAJpeg);
  361|       |
  362|  5.90k|    bool done = false;
  363|  5.90k|    bool first = true;
  364|   109k|    while (!done) {
  ------------------
  |  Branch (364:12): [True: 103k, False: 5.90k]
  ------------------
  365|       |      // print marker bytes
  366|   103k|      if (first && bPrint) {
  ------------------
  |  Branch (366:11): [True: 5.90k, False: 97.5k]
  |  Branch (366:20): [True: 2.53k, False: 3.36k]
  ------------------
  367|  2.53k|        out << "STRUCTURE OF JPEG FILE: " << io_->path() << '\n';
  368|  2.53k|        out << " address | marker       |  length | data" << '\n';
  369|  2.53k|        REPORT_MARKER;
  ------------------
  |  |  320|  2.53k|  if ((option == kpsBasic || option == kpsRecursive)) \
  |  |  ------------------
  |  |  |  Branch (320:8): [True: 1.35k, False: 1.17k]
  |  |  |  Branch (320:30): [True: 1.17k, False: 0]
  |  |  ------------------
  |  |  321|  2.53k|  out << stringFormat("{:8} | 0xff{:02x} {:<5}", io_->tell() - 2, marker, nm[marker].c_str())
  |  |  ------------------
  |  |  |  |   18|  2.53k|#define stringFormat std::format
  |  |  ------------------
  ------------------
  370|  2.53k|      }
  371|   103k|      first = false;
  372|   103k|      bool bLF = bPrint;
  373|       |
  374|   103k|      const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  375|       |
  376|       |      // Read the rest of the segment if not empty.
  377|   103k|      DataBuf buf(size);
  378|   103k|      if (size > 2) {
  ------------------
  |  Branch (378:11): [True: 71.0k, False: 32.3k]
  ------------------
  379|  71.0k|        io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  380|  71.0k|        std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  381|  71.0k|      }
  382|       |
  383|   103k|      if (bPrint && markerHasLength(marker))
  ------------------
  |  Branch (383:11): [True: 47.3k, False: 56.1k]
  |  Branch (383:21): [True: 35.5k, False: 11.7k]
  ------------------
  384|  35.5k|        out << stringFormat(" | {:7} ", size);
  ------------------
  |  |   18|  35.5k|#define stringFormat std::format
  ------------------
  385|       |
  386|       |      // print signature for APPn
  387|   103k|      if (marker >= app0_ && marker <= (app0_ | 0x0F)) {
  ------------------
  |  Branch (387:11): [True: 70.1k, False: 33.3k]
  |  Branch (387:30): [True: 65.6k, False: 4.47k]
  ------------------
  388|       |        // http://www.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMPSpecificationPart3.pdf p75
  389|  65.6k|        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|  65.6k|        if (option == kpsXMP && signature.starts_with("http://ns.adobe.com/x")) {
  ------------------
  |  Branch (398:13): [True: 15.3k, False: 50.2k]
  |  Branch (398:33): [True: 494, False: 14.8k]
  ------------------
  399|       |          // extract XMP
  400|    494|          const char* xmp = buf.c_str();
  401|    494|          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|    494|          if (!bExtXMP) {
  ------------------
  |  Branch (410:15): [True: 103, False: 391]
  ------------------
  411|  3.86k|            while (start < size && xmp[start]) {
  ------------------
  |  Branch (411:20): [True: 3.86k, False: 1]
  |  Branch (411:36): [True: 3.76k, False: 102]
  ------------------
  412|  3.76k|              start++;
  413|  3.76k|            }
  414|    103|            start++;
  415|    103|            if (start < size) {
  ------------------
  |  Branch (415:17): [True: 102, False: 1]
  ------------------
  416|    102|              const std::string xmp_from_start = string_from_unterminated(&xmp[start], size - start);
  417|    102|              if (xmp_from_start.find("HasExtendedXMP", start) != std::string::npos) {
  ------------------
  |  Branch (417:19): [True: 12, False: 90]
  ------------------
  418|     12|                start = size;  // ignore this packet, we'll get on the next time around
  419|     12|                bExtXMP = true;
  420|     12|              }
  421|    102|            }
  422|    391|          } else {
  423|    391|            start = 2 + 35 + 32 + 4 + 4;  // Adobe Spec, p19
  424|    391|          }
  425|       |
  426|    494|          enforce(start <= size, ErrorCode::kerInvalidXmpText);
  427|    494|          out.write(&xmp[start], size - start);
  428|    494|          done = !bExtXMP;
  429|  65.1k|        } else if (option == kpsIccProfile && signature == iccId_) {
  ------------------
  |  Branch (429:20): [True: 10.1k, False: 55.0k]
  |  Branch (429:47): [True: 758, False: 9.37k]
  ------------------
  430|       |          // extract ICCProfile
  431|    758|          if (size >= 16) {
  ------------------
  |  Branch (431:15): [True: 758, False: 0]
  ------------------
  432|    758|            out.write(buf.c_str(16), size - 16);
  433|       |#ifdef EXIV2_DEBUG_MESSAGES
  434|       |            std::cout << "iccProfile size = " << size - 16 << '\n';
  435|       |#endif
  436|    758|          }
  437|  64.3k|        } else if (option == kpsIptcErase && signature == "Photoshop 3.0") {
  ------------------
  |  Branch (437:20): [True: 10.1k, False: 54.2k]
  |  Branch (437:46): [True: 2.28k, False: 7.84k]
  ------------------
  438|       |          // delete IPTC data segment from JPEG
  439|  2.28k|          iptcDataSegs.emplace_back(io_->tell() - size, io_->tell());
  440|  62.1k|        } else if (bPrint) {
  ------------------
  |  Branch (440:20): [True: 30.0k, False: 32.0k]
  ------------------
  441|  30.0k|          const size_t start = 2;
  442|  30.0k|          const auto end = std::min<size_t>(34, size);
  443|  30.0k|          out << "| ";
  444|  30.0k|          if (start < end)
  ------------------
  |  Branch (444:15): [True: 27.8k, False: 2.12k]
  ------------------
  445|  27.8k|            out << Internal::binaryToString(makeSlice(buf, start, end));
  446|  30.0k|          if (signature == iccId_) {
  ------------------
  |  Branch (446:15): [True: 1.67k, False: 28.3k]
  ------------------
  447|       |            // extract the chunk information from the buffer
  448|       |            //
  449|       |            // the buffer looks like this in this branch
  450|       |            // ICC_PROFILE\0AB
  451|       |            // where A & B are bytes (the variables chunk & chunks)
  452|       |            //
  453|       |            // We cannot extract the variables A and B from the signature string, as they are beyond the
  454|       |            // null termination (and signature ends there).
  455|       |            // => Read the chunk info from the DataBuf directly
  456|  1.67k|            enforce<std::out_of_range>(size >= 16, "Buffer too small to extract chunk information.");
  457|  1.67k|            const int chunk = buf.read_uint8(2 + 12);
  458|  1.67k|            const int chunks = buf.read_uint8(2 + 13);
  459|  1.67k|            out << stringFormat(" chunk {}/{}", chunk, chunks);
  ------------------
  |  |   18|  1.67k|#define stringFormat std::format
  ------------------
  460|  1.67k|          }
  461|  30.0k|        }
  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|  65.6k|        bool bFlir = option == kpsRecursive && marker == (app0_ + 1) && signature == "FLIR";
  ------------------
  |  Branch (465:22): [True: 13.7k, False: 51.9k]
  |  Branch (465:48): [True: 6.12k, False: 7.59k]
  |  Branch (465:73): [True: 1.30k, False: 4.81k]
  ------------------
  466|  65.6k|        bool bExif = option == kpsRecursive && marker == (app0_ + 1) && signature == "Exif";
  ------------------
  |  Branch (466:22): [True: 13.7k, False: 51.9k]
  |  Branch (466:48): [True: 6.12k, False: 7.59k]
  |  Branch (466:73): [True: 1.52k, False: 4.59k]
  ------------------
  467|  65.6k|        bool bMPF = option == kpsRecursive && marker == (app0_ + 2) && signature == "MPF";
  ------------------
  |  Branch (467:21): [True: 13.7k, False: 51.9k]
  |  Branch (467:47): [True: 2.88k, False: 10.8k]
  |  Branch (467:72): [True: 395, False: 2.49k]
  ------------------
  468|  65.6k|        bool bPS = option == kpsRecursive && signature == "Photoshop 3.0";
  ------------------
  |  Branch (468:20): [True: 13.7k, False: 51.9k]
  |  Branch (468:46): [True: 2.38k, False: 11.3k]
  ------------------
  469|  65.6k|        if (bFlir || bExif || bMPF || bPS) {
  ------------------
  |  Branch (469:13): [True: 1.30k, False: 64.3k]
  |  Branch (469:22): [True: 1.52k, False: 62.8k]
  |  Branch (469:31): [True: 395, False: 62.4k]
  |  Branch (469:39): [True: 2.38k, False: 60.0k]
  ------------------
  470|       |          // extract Exif data block which is tiff formatted
  471|  5.60k|          out << '\n';
  472|       |
  473|       |          //                        const byte* exif = buf.c_data();
  474|  5.60k|          uint32_t start = signature == "Exif" ? 8 : 6;
  ------------------
  |  Branch (474:28): [True: 1.52k, False: 4.08k]
  ------------------
  475|  5.60k|          uint32_t max = static_cast<uint32_t>(size) - 1;
  476|       |
  477|       |          // is this an fff block?
  478|  5.60k|          if (bFlir) {
  ------------------
  |  Branch (478:15): [True: 1.30k, False: 4.29k]
  ------------------
  479|  1.30k|            start = 2;
  480|  1.30k|            bFlir = false;
  481|  51.4k|            while (start + 3 <= max) {
  ------------------
  |  Branch (481:20): [True: 51.4k, False: 18]
  ------------------
  482|  51.4k|              if (std::strcmp(buf.c_str(start), "FFF") == 0) {
  ------------------
  |  Branch (482:19): [True: 1.28k, False: 50.1k]
  ------------------
  483|  1.28k|                bFlir = true;
  484|  1.28k|                break;
  485|  1.28k|              }
  486|  50.1k|              start++;
  487|  50.1k|            }
  488|  1.30k|          }
  489|       |
  490|       |          // there is a header in FLIR, followed by a tiff block
  491|       |          // Hunt down the tiff using brute force
  492|  5.60k|          if (bFlir) {
  ------------------
  |  Branch (492:15): [True: 1.28k, False: 4.31k]
  ------------------
  493|       |            // FLIRFILEHEAD* pFFF = (FLIRFILEHEAD*) (exif+start) ;
  494|  45.5k|            while (start < max) {
  ------------------
  |  Branch (494:20): [True: 45.2k, False: 292]
  ------------------
  495|  45.2k|              if (buf.read_uint8(start) == 'I' && buf.read_uint8(start + 1) == 'I')
  ------------------
  |  Branch (495:19): [True: 382, False: 44.8k]
  |  Branch (495:51): [True: 4, False: 378]
  ------------------
  496|      4|                break;
  497|  45.2k|              if (buf.read_uint8(start) == 'M' && buf.read_uint8(start + 1) == 'M')
  ------------------
  |  Branch (497:19): [True: 1.50k, False: 43.7k]
  |  Branch (497:51): [True: 990, False: 510]
  ------------------
  498|    990|                break;
  499|  44.2k|              start++;
  500|  44.2k|            }
  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.28k|          }
  507|       |
  508|  5.60k|          if (bPS) {
  ------------------
  |  Branch (508:15): [True: 2.38k, False: 3.22k]
  ------------------
  509|  2.38k|            IptcData::printStructure(out, makeSlice(buf, 0, size), depth);
  510|  3.22k|          } else {
  511|  3.22k|            if (start < max) {
  ------------------
  |  Branch (511:17): [True: 2.52k, False: 694]
  ------------------
  512|       |              // create a copy on write memio object with the data, then print the structure
  513|  2.52k|              MemIo p(buf.c_data(start), size - start);
  514|  2.52k|              printTiffStructure(p, out, option, depth + 1);
  515|  2.52k|            }
  516|  3.22k|          }
  517|       |
  518|       |          // restore and clean up
  519|  5.60k|          bLF = false;
  520|  5.60k|        }
  521|  65.6k|      }
  522|       |
  523|       |      // print COM marker
  524|   103k|      if (bPrint && marker == com_) {
  ------------------
  |  Branch (524:11): [True: 47.2k, False: 56.2k]
  |  Branch (524:21): [True: 1.88k, False: 45.3k]
  ------------------
  525|       |        // size includes 2 for the two bytes for size!
  526|  1.88k|        const auto n = std::min<size_t>(32, size - 2);
  527|       |        // start after the two bytes
  528|  1.88k|        out << "| "
  529|  1.88k|            << Internal::binaryToString(makeSlice(buf, 2, n + 2 /* cannot overflow as n is at most size - 2 */));
  530|  1.88k|      }
  531|       |
  532|   103k|      if (bLF)
  ------------------
  |  Branch (532:11): [True: 41.6k, False: 61.7k]
  ------------------
  533|  41.6k|        out << '\n';
  534|       |
  535|   103k|      if (marker != sos_) {
  ------------------
  |  Branch (535:11): [True: 103k, False: 104]
  ------------------
  536|       |        // Read the beginning of the next segment
  537|   103k|        marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  538|   103k|        REPORT_MARKER;
  ------------------
  |  |  320|   103k|  if ((option == kpsBasic || option == kpsRecursive)) \
  |  |  ------------------
  |  |  |  Branch (320:8): [True: 26.2k, False: 77.0k]
  |  |  |  Branch (320:30): [True: 20.9k, False: 56.1k]
  |  |  ------------------
  |  |  321|   103k|  out << stringFormat("{:8} | 0xff{:02x} {:<5}", io_->tell() - 2, marker, nm[marker].c_str())
  |  |  ------------------
  |  |  |  |   18|  47.0k|#define stringFormat std::format
  |  |  ------------------
  ------------------
  539|   103k|      }
  540|   103k|      done |= marker == eoi_ || marker == sos_;
  ------------------
  |  Branch (540:15): [True: 4.98k, False: 98.4k]
  |  Branch (540:33): [True: 857, False: 97.5k]
  ------------------
  541|   103k|      if (done && bPrint)
  ------------------
  |  Branch (541:11): [True: 5.64k, False: 97.8k]
  |  Branch (541:19): [True: 2.27k, False: 3.36k]
  ------------------
  542|  2.27k|        out << '\n';
  543|   103k|    }
  544|  5.90k|  }
  545|  7.26k|  if (option == kpsIptcErase && !iptcDataSegs.empty()) {
  ------------------
  |  Branch (545:7): [True: 1.09k, False: 6.17k]
  |  Branch (545:33): [True: 823, False: 271]
  ------------------
  546|       |    // Add a sentinel to the end of iptcDataSegs
  547|    823|    iptcDataSegs.emplace_back(io_->size(), 0);
  548|       |
  549|       |    // $ dd bs=1 skip=$((0)) count=$((13164)) if=ETH0138028.jpg of=E1.jpg
  550|       |    // $ dd bs=1 skip=$((49304)) count=2000000  if=ETH0138028.jpg of=E2.jpg
  551|       |    // cat E1.jpg E2.jpg > E.jpg
  552|       |    // exiv2 -pS E.jpg
  553|       |
  554|       |    // binary copy io_ to a temporary file
  555|    823|    MemIo tempIo;
  556|    823|    size_t start = 0;
  557|  3.11k|    for (const auto& [l, s] : iptcDataSegs) {
  ------------------
  |  Branch (557:29): [True: 3.11k, False: 823]
  ------------------
  558|  3.11k|      const size_t length = l - start;
  559|  3.11k|      io_->seekOrThrow(start, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  560|  3.11k|      DataBuf buf(length);
  561|  3.11k|      io_->readOrThrow(buf.data(), buf.size(), ErrorCode::kerFailedToReadImageData);
  562|  3.11k|      tempIo.write(buf.c_data(), buf.size());
  563|  3.11k|      start = s + 2;  // skip the 2 byte marker
  564|  3.11k|    }
  565|       |
  566|    823|    io_->seekOrThrow(0, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  567|    823|    io_->transfer(tempIo);  // may throw
  568|    823|    io_->seekOrThrow(0, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  569|       |
  570|       |    // Check that the result is correctly formatted.
  571|    823|    readMetadata();
  572|    823|  }
  573|  7.26k|}  // JpegBase::printStructure
_ZN5Exiv28JpegBase13writeMetadataEv:
  575|  1.02k|void JpegBase::writeMetadata() {
  576|  1.02k|  if (io_->open() != 0) {
  ------------------
  |  Branch (576:7): [True: 0, False: 1.02k]
  ------------------
  577|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  578|      0|  }
  579|  1.02k|  IoCloser closer(*io_);
  580|  1.02k|  MemIo tempIo;
  581|       |
  582|  1.02k|  doWriteMetadata(tempIo);  // may throw
  583|  1.02k|  io_->close();
  584|  1.02k|  io_->transfer(tempIo);  // may throw
  585|  1.02k|}
_ZN5Exiv28JpegBase15readNextSegmentEh:
  587|  80.3k|DataBuf JpegBase::readNextSegment(byte marker) {
  588|  80.3k|  const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  589|       |
  590|       |  // Read the rest of the segment if not empty.
  591|  80.3k|  DataBuf buf(size);
  592|  80.3k|  if (size > 0) {
  ------------------
  |  Branch (592:7): [True: 73.2k, False: 7.11k]
  ------------------
  593|  73.2k|    std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  594|  73.2k|    if (size > 2) {
  ------------------
  |  Branch (594:9): [True: 72.0k, False: 1.20k]
  ------------------
  595|  72.0k|      io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  596|  72.0k|    }
  597|  73.2k|  }
  598|  80.3k|  return buf;
  599|  80.3k|}
_ZN5Exiv28JpegBase15doWriteMetadataERNS_7BasicIoE:
  601|  1.02k|void JpegBase::doWriteMetadata(BasicIo& outIo) {
  602|  1.02k|  if (!io_->isopen())
  ------------------
  |  Branch (602:7): [True: 0, False: 1.02k]
  ------------------
  603|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  604|  1.02k|  if (!outIo.isopen())
  ------------------
  |  Branch (604:7): [True: 0, False: 1.02k]
  ------------------
  605|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  606|       |
  607|       |  // Ensure that this is the correct image type
  608|  1.02k|  if (!isThisType(*io_, true)) {
  ------------------
  |  Branch (608:7): [True: 0, False: 1.02k]
  ------------------
  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.02k|  static const size_t notfound = std::numeric_limits<size_t>::max();
  616|       |
  617|  1.02k|  const size_t seek = io_->tell();
  618|  1.02k|  size_t count = 0;
  619|  1.02k|  size_t search = 0;
  620|  1.02k|  size_t insertPos = 0;
  621|  1.02k|  size_t comPos = 0;
  622|  1.02k|  size_t skipApp1Exif = notfound;
  623|  1.02k|  size_t skipApp1Xmp = notfound;
  624|  1.02k|  bool foundCompletePsData = false;
  625|  1.02k|  bool foundIccData = false;
  626|  1.02k|  std::vector<size_t> skipApp13Ps3;
  627|  1.02k|  std::vector<size_t> skipApp2Icc;
  628|  1.02k|  size_t skipCom = notfound;
  629|  1.02k|  Blob psBlob;
  630|  1.02k|  DataBuf rawExif;
  631|  1.02k|  xmpData().usePacket(writeXmpFromPacket());
  632|       |
  633|       |  // Write image header
  634|  1.02k|  if (writeHeader(outIo))
  ------------------
  |  Branch (634:7): [True: 0, False: 1.02k]
  ------------------
  635|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  636|       |
  637|       |  // Read section marker
  638|  1.02k|  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|  44.3k|  while (marker != sos_ && marker != eoi_ && search < 6) {
  ------------------
  |  Branch (643:10): [True: 43.9k, False: 339]
  |  Branch (643:28): [True: 43.2k, False: 682]
  |  Branch (643:46): [True: 43.2k, False: 0]
  ------------------
  644|  43.2k|    DataBuf buf = readNextSegment(marker);
  645|       |
  646|  43.2k|    if (marker == app0_) {
  ------------------
  |  Branch (646:9): [True: 272, False: 43.0k]
  ------------------
  647|    272|      insertPos = count + 1;
  648|  43.0k|    } else if (skipApp1Exif == notfound && marker == app1_ &&
  ------------------
  |  Branch (648:16): [True: 40.8k, False: 2.16k]
  |  Branch (648:44): [True: 2.41k, False: 38.4k]
  ------------------
  649|  2.41k|               buf.size() >= 8 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (649:16): [True: 1.96k, False: 454]
  ------------------
  650|  1.96k|               buf.cmpBytes(2, exifId_.data(), 6) == 0) {
  ------------------
  |  Branch (650:16): [True: 596, False: 1.36k]
  ------------------
  651|    596|      skipApp1Exif = count;
  652|    596|      ++search;
  653|    596|      if (buf.size() > 8) {
  ------------------
  |  Branch (653:11): [True: 590, False: 6]
  ------------------
  654|    590|        rawExif.alloc(buf.size() - 8);
  655|    590|        std::copy_n(buf.begin() + 8, rawExif.size(), rawExif.begin());
  656|    590|      }
  657|  42.4k|    } else if (skipApp1Xmp == notfound && marker == app1_ &&
  ------------------
  |  Branch (657:16): [True: 42.0k, False: 395]
  |  Branch (657:43): [True: 2.46k, False: 39.5k]
  ------------------
  658|  2.46k|               buf.size() >= 31 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (658:16): [True: 1.92k, False: 540]
  ------------------
  659|  1.92k|               buf.cmpBytes(2, xmpId_.data(), 29) == 0) {
  ------------------
  |  Branch (659:16): [True: 91, False: 1.83k]
  ------------------
  660|     91|      skipApp1Xmp = count;
  661|     91|      ++search;
  662|  42.3k|    } else if (marker == app2_ && buf.size() >= 13 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (662:16): [True: 2.76k, False: 39.5k]
  |  Branch (662:35): [True: 2.15k, False: 609]
  ------------------
  663|  2.15k|               buf.cmpBytes(2, iccId_, 11) == 0) {
  ------------------
  |  Branch (663:16): [True: 730, False: 1.42k]
  ------------------
  664|    730|      skipApp2Icc.push_back(count);
  665|    730|      if (!foundIccData) {
  ------------------
  |  Branch (665:11): [True: 47, False: 683]
  ------------------
  666|     47|        ++search;
  667|     47|        foundIccData = true;
  668|     47|      }
  669|  41.6k|    } else if (!foundCompletePsData && marker == app13_ &&
  ------------------
  |  Branch (669:16): [True: 41.2k, False: 337]
  |  Branch (669:40): [True: 30.2k, False: 11.0k]
  ------------------
  670|  30.2k|               buf.size() >= 16 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (670:16): [True: 29.6k, False: 546]
  ------------------
  671|  29.6k|               buf.cmpBytes(2, Photoshop::ps3Id_, 14) == 0) {
  ------------------
  |  Branch (671:16): [True: 20.2k, False: 9.42k]
  ------------------
  672|       |#ifdef EXIV2_DEBUG_MESSAGES
  673|       |      std::cerr << "Found APP13 Photoshop PS3 segment\n";
  674|       |#endif
  675|  20.2k|      skipApp13Ps3.push_back(count);
  676|       |      // Append to psBlob
  677|  20.2k|      append(psBlob, buf.c_data(16), buf.size() - 16);
  678|       |      // Check whether psBlob is complete
  679|  20.2k|      if (!psBlob.empty() && Photoshop::valid(psBlob.data(), psBlob.size())) {
  ------------------
  |  Branch (679:11): [True: 19.9k, False: 326]
  |  Branch (679:30): [True: 62, False: 19.8k]
  ------------------
  680|     62|        foundCompletePsData = true;
  681|     62|      }
  682|  21.3k|    } else if (marker == com_ && skipCom == notfound) {
  ------------------
  |  Branch (682:16): [True: 817, False: 20.5k]
  |  Branch (682:34): [True: 272, False: 545]
  ------------------
  683|       |      // Jpegs can have multiple comments, but for now only handle
  684|       |      // the first one (most jpegs only have one anyway).
  685|    272|      skipCom = count;
  686|    272|      ++search;
  687|    272|    }
  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|  43.2k|    if (comPos == 0 && inRange2(marker, sof0_, sof3_, sof5_, sof15_)) {
  ------------------
  |  Branch (694:9): [True: 41.5k, False: 1.73k]
  |  Branch (694:24): [True: 65, False: 41.4k]
  ------------------
  695|     65|      comPos = count;
  696|     65|      ++search;
  697|     65|    }
  698|  43.2k|    marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  699|  43.2k|    ++count;
  700|  43.2k|  }
  701|       |
  702|  1.02k|  if (!foundCompletePsData && !psBlob.empty())
  ------------------
  |  Branch (702:7): [True: 925, False: 96]
  |  Branch (702:31): [True: 11, False: 914]
  ------------------
  703|     11|    throw Error(ErrorCode::kerNoImageInInputData);
  704|  1.01k|  search += skipApp13Ps3.size() + skipApp2Icc.size();
  705|       |
  706|  1.01k|  if (comPos == 0) {
  ------------------
  |  Branch (706:7): [True: 933, False: 77]
  ------------------
  707|    933|    if (marker == eoi_)
  ------------------
  |  Branch (707:9): [True: 655, False: 278]
  ------------------
  708|    655|      comPos = count;
  709|    278|    else
  710|    278|      comPos = insertPos;
  711|    933|    ++search;
  712|    933|  }
  713|  1.01k|  if (!exifData_.empty())
  ------------------
  |  Branch (713:7): [True: 585, False: 425]
  ------------------
  714|    585|    ++search;
  715|  1.01k|  if (!writeXmpFromPacket() && !xmpData_.empty())
  ------------------
  |  Branch (715:7): [True: 971, False: 39]
  |  Branch (715:32): [True: 50, False: 921]
  ------------------
  716|     50|    ++search;
  717|  1.01k|  if (writeXmpFromPacket() && !xmpPacket_.empty())
  ------------------
  |  Branch (717:7): [True: 0, False: 1.01k]
  |  Branch (717:31): [True: 0, False: 0]
  ------------------
  718|      0|    ++search;
  719|  1.01k|  if (foundCompletePsData || !iptcData_.empty())
  ------------------
  |  Branch (719:7): [True: 96, False: 914]
  |  Branch (719:30): [True: 0, False: 914]
  ------------------
  720|     57|    ++search;
  721|  1.01k|  if (!comment_.empty())
  ------------------
  |  Branch (721:7): [True: 261, False: 749]
  ------------------
  722|    261|    ++search;
  723|       |
  724|  1.01k|  io_->seekOrThrow(seek, BasicIo::beg, ErrorCode::kerNoImageInInputData);
  725|  1.01k|  count = 0;
  726|  1.01k|  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|  37.4k|  while (marker != sos_ && search > 0) {
  ------------------
  |  Branch (732:10): [True: 37.1k, False: 301]
  |  Branch (732:28): [True: 37.0k, False: 104]
  ------------------
  733|  37.0k|    DataBuf buf = readNextSegment(marker);
  734|       |
  735|  37.0k|    if (insertPos == count) {
  ------------------
  |  Branch (735:9): [True: 962, False: 36.0k]
  ------------------
  736|       |      // Write Exif data first so that - if there is no app0 - we
  737|       |      // create "Exif images" according to the Exif standard.
  738|    962|      if (!exifData_.empty()) {
  ------------------
  |  Branch (738:11): [True: 585, False: 377]
  ------------------
  739|    585|        Blob blob;
  740|    585|        ByteOrder bo = byteOrder();
  741|    585|        if (bo == invalidByteOrder) {
  ------------------
  |  Branch (741:13): [True: 0, False: 585]
  ------------------
  742|      0|          bo = littleEndian;
  743|      0|          setByteOrder(bo);
  744|      0|        }
  745|    585|        const byte* pExifData = rawExif.c_data();
  746|    585|        size_t exifSize = rawExif.size();
  747|    585|        if (ExifParser::encode(blob, pExifData, exifSize, bo, exifData_) == wmIntrusive) {
  ------------------
  |  Branch (747:13): [True: 483, False: 102]
  ------------------
  748|    483|          pExifData = !blob.empty() ? blob.data() : nullptr;
  ------------------
  |  Branch (748:23): [True: 465, False: 18]
  ------------------
  749|    483|          exifSize = blob.size();
  750|    483|        }
  751|    585|        if (exifSize > 0) {
  ------------------
  |  Branch (751:13): [True: 505, False: 80]
  ------------------
  752|    505|          std::array<byte, 10> tmpBuf;
  753|       |          // Write APP1 marker, size of APP1 field, Exif id and Exif data
  754|    505|          tmpBuf[0] = 0xff;
  755|    505|          tmpBuf[1] = app1_;
  756|       |
  757|    505|          if (exifSize > 0xffff - 8)
  ------------------
  |  Branch (757:15): [True: 77, False: 428]
  ------------------
  758|     77|            throw Error(ErrorCode::kerTooLargeJpegSegment, "Exif");
  759|    428|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(exifSize + 8), bigEndian);
  760|    428|          std::copy(exifId_.begin(), exifId_.end(), tmpBuf.begin() + 4);
  761|    428|          if (outIo.write(tmpBuf.data(), 10) != 10)
  ------------------
  |  Branch (761:15): [True: 0, False: 428]
  ------------------
  762|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  763|       |
  764|       |          // Write new Exif data buffer
  765|    428|          if (outIo.write(pExifData, exifSize) != exifSize)
  ------------------
  |  Branch (765:15): [True: 0, False: 428]
  ------------------
  766|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  767|    428|          if (outIo.error())
  ------------------
  |  Branch (767:15): [True: 0, False: 428]
  ------------------
  768|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  769|    428|          --search;
  770|    428|        }
  771|    585|      }
  772|    885|      if (!writeXmpFromPacket() &&
  ------------------
  |  Branch (772:11): [True: 823, False: 62]
  ------------------
  773|    823|          XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting) > 1) {
  ------------------
  |  Branch (773:11): [True: 0, False: 823]
  ------------------
  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|    885|      if (!xmpPacket_.empty()) {
  ------------------
  |  Branch (778:11): [True: 50, False: 835]
  ------------------
  779|     50|        std::array<byte, 33> tmpBuf;
  780|       |        // Write APP1 marker, size of APP1 field, XMP id and XMP packet
  781|     50|        tmpBuf[0] = 0xff;
  782|     50|        tmpBuf[1] = app1_;
  783|       |
  784|     50|        if (xmpPacket_.size() > 0xffff - 31)
  ------------------
  |  Branch (784:13): [True: 0, False: 50]
  ------------------
  785|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "XMP");
  786|     50|        us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(xmpPacket_.size() + 31), bigEndian);
  787|     50|        std::copy(xmpId_.begin(), xmpId_.end(), tmpBuf.begin() + 4);
  788|     50|        if (outIo.write(tmpBuf.data(), 33) != 33)
  ------------------
  |  Branch (788:13): [True: 0, False: 50]
  ------------------
  789|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  790|       |
  791|       |        // Write new XMP packet
  792|     50|        if (outIo.write(reinterpret_cast<const byte*>(xmpPacket_.data()), xmpPacket_.size()) != xmpPacket_.size())
  ------------------
  |  Branch (792:13): [True: 0, False: 50]
  ------------------
  793|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  794|     50|        if (outIo.error())
  ------------------
  |  Branch (794:13): [True: 0, False: 50]
  ------------------
  795|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  796|     50|        --search;
  797|     50|      }
  798|       |
  799|    885|      if (iccProfileDefined()) {
  ------------------
  |  Branch (799:11): [True: 36, False: 849]
  ------------------
  800|     36|        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|     36|        tmpBuf[0] = 0xff;
  804|     36|        tmpBuf[1] = app2_;
  805|       |
  806|     36|        const size_t chunk_size = (256 * 256) - 40;  // leave bytes for marker, header and padding
  807|     36|        size_t size = iccProfile_.size();
  808|     36|        if (size >= 255 * chunk_size)
  ------------------
  |  Branch (808:13): [True: 0, False: 36]
  ------------------
  809|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "IccProfile");
  810|     36|        const size_t chunks = 1 + ((size - 1) / chunk_size);
  811|     72|        for (size_t chunk = 0; chunk < chunks; chunk++) {
  ------------------
  |  Branch (811:32): [True: 36, False: 36]
  ------------------
  812|     36|          auto bytes = std::min<size_t>(size, chunk_size);  // bytes to write
  813|     36|          size -= bytes;
  814|       |
  815|       |          // write JPEG marker (2 bytes)
  816|     36|          if (outIo.write(tmpBuf.data(), 2) != 2)
  ------------------
  |  Branch (816:15): [True: 0, False: 36]
  ------------------
  817|      0|            throw Error(ErrorCode::kerImageWriteFailed);  // JPEG Marker
  818|       |          // write length (2 bytes).  length includes the 2 bytes for the length
  819|     36|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(2 + 14 + bytes), bigEndian);
  820|     36|          if (outIo.write(tmpBuf.data() + 2, 2) != 2)
  ------------------
  |  Branch (820:15): [True: 0, False: 36]
  ------------------
  821|      0|            throw Error(ErrorCode::kerImageWriteFailed);  // JPEG Length
  822|       |
  823|       |          // write the ICC_PROFILE header (14 bytes)
  824|     36|          uint8_t pad[2];
  825|     36|          pad[0] = static_cast<uint8_t>(chunk + 1);
  826|     36|          pad[1] = static_cast<uint8_t>(chunks);
  827|     36|          outIo.write(reinterpret_cast<const byte*>(iccId_), 12);
  828|     36|          outIo.write(reinterpret_cast<const byte*>(pad), 2);
  829|     36|          if (outIo.write(iccProfile_.c_data(chunk * chunk_size), bytes) != bytes)
  ------------------
  |  Branch (829:15): [True: 0, False: 36]
  ------------------
  830|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  831|     36|          if (outIo.error())
  ------------------
  |  Branch (831:15): [True: 0, False: 36]
  ------------------
  832|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  833|     36|        }
  834|     36|        --search;
  835|     36|      }
  836|       |
  837|    885|      if (foundCompletePsData || !iptcData_.empty()) {
  ------------------
  |  Branch (837:11): [True: 119, False: 766]
  |  Branch (837:34): [True: 0, False: 766]
  ------------------
  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|     57|        DataBuf newPsData = Photoshop::setIptcIrb(psBlob.data(), psBlob.size(), iptcData_);
  841|     57|        const size_t maxChunkSize = 0xffff - 16;
  842|     57|        const byte* chunkStart = newPsData.empty() ? nullptr : newPsData.c_data();
  ------------------
  |  Branch (842:34): [True: 1, False: 56]
  ------------------
  843|     57|        const byte* chunkEnd = newPsData.empty() ? nullptr : newPsData.c_data(newPsData.size() - 1);
  ------------------
  |  Branch (843:32): [True: 1, False: 56]
  ------------------
  844|    113|        while (chunkStart < chunkEnd) {
  ------------------
  |  Branch (844:16): [True: 56, False: 57]
  ------------------
  845|       |          // Determine size of next chunk
  846|     56|          size_t chunkSize = (chunkEnd + 1 - chunkStart);
  847|     56|          if (chunkSize > maxChunkSize) {
  ------------------
  |  Branch (847:15): [True: 3, False: 53]
  ------------------
  848|      3|            chunkSize = maxChunkSize;
  849|       |            // Don't break at a valid IRB boundary
  850|      3|            const auto writtenSize = chunkStart - newPsData.c_data();
  851|      3|            if (Photoshop::valid(newPsData.c_data(), writtenSize + chunkSize)) {
  ------------------
  |  Branch (851:17): [True: 0, False: 3]
  ------------------
  852|       |              // Since an IRB has minimum size 12,
  853|       |              // (chunkSize - 8) can't be also a IRB boundary
  854|      0|              chunkSize -= 8;
  855|      0|            }
  856|      3|          }
  857|       |
  858|       |          // Write APP13 marker, chunk size, and ps3Id
  859|     56|          std::array<byte, 18> tmpBuf;
  860|     56|          tmpBuf[0] = 0xff;
  861|     56|          tmpBuf[1] = app13_;
  862|     56|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(chunkSize + 16), bigEndian);
  863|     56|          std::copy_n(Photoshop::ps3Id_, 14, tmpBuf.begin() + 4);
  864|     56|          if (outIo.write(tmpBuf.data(), 18) != 18)
  ------------------
  |  Branch (864:15): [True: 0, False: 56]
  ------------------
  865|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  866|     56|          if (outIo.error())
  ------------------
  |  Branch (866:15): [True: 0, False: 56]
  ------------------
  867|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  868|       |
  869|       |          // Write next chunk of the Photoshop IRB data buffer
  870|     56|          if (outIo.write(chunkStart, chunkSize) != chunkSize)
  ------------------
  |  Branch (870:15): [True: 0, False: 56]
  ------------------
  871|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  872|     56|          if (outIo.error())
  ------------------
  |  Branch (872:15): [True: 0, False: 56]
  ------------------
  873|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  874|       |
  875|     56|          chunkStart += chunkSize;
  876|     56|        }
  877|     57|        --search;
  878|     57|      }
  879|    885|    }
  880|  36.9k|    if (comPos == count) {
  ------------------
  |  Branch (880:9): [True: 822, False: 36.1k]
  ------------------
  881|    822|      if (!comment_.empty()) {
  ------------------
  |  Branch (881:11): [True: 140, False: 682]
  ------------------
  882|    140|        std::array<byte, 4> tmpBuf;
  883|       |        // Write COM marker, size of comment, and string
  884|    140|        tmpBuf[0] = 0xff;
  885|    140|        tmpBuf[1] = com_;
  886|       |
  887|    140|        if (comment_.length() > 0xffff - 3)
  ------------------
  |  Branch (887:13): [True: 0, False: 140]
  ------------------
  888|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "JPEG comment");
  889|    140|        us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(comment_.length() + 3), bigEndian);
  890|       |
  891|    140|        if (outIo.write(tmpBuf.data(), 4) != 4)
  ------------------
  |  Branch (891:13): [True: 0, False: 140]
  ------------------
  892|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  893|    140|        if (outIo.write(reinterpret_cast<byte*>(comment_.data()), comment_.length()) != comment_.length())
  ------------------
  |  Branch (893:13): [True: 0, False: 140]
  ------------------
  894|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  895|    140|        if (outIo.putb(0) == EOF)
  ------------------
  |  Branch (895:13): [True: 0, False: 140]
  ------------------
  896|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  897|    140|        if (outIo.error())
  ------------------
  |  Branch (897:13): [True: 0, False: 140]
  ------------------
  898|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  899|    140|        --search;
  900|    140|      }
  901|    822|      --search;
  902|    822|    }
  903|  36.9k|    if (marker == eoi_) {
  ------------------
  |  Branch (903:9): [True: 528, False: 36.4k]
  ------------------
  904|    528|      break;
  905|    528|    }
  906|  36.4k|    if (skipApp1Exif == count || skipApp1Xmp == count ||
  ------------------
  |  Branch (906:9): [True: 516, False: 35.9k]
  |  Branch (906:9): [True: 20.3k, False: 16.0k]
  |  Branch (906:34): [True: 89, False: 35.8k]
  ------------------
  907|  35.8k|        std::find(skipApp13Ps3.begin(), skipApp13Ps3.end(), count) != skipApp13Ps3.end() ||
  ------------------
  |  Branch (907:9): [True: 18.9k, False: 16.8k]
  ------------------
  908|  20.3k|        std::find(skipApp2Icc.begin(), skipApp2Icc.end(), count) != skipApp2Icc.end() || skipCom == count) {
  ------------------
  |  Branch (908:9): [True: 716, False: 16.1k]
  |  Branch (908:90): [True: 146, False: 15.9k]
  ------------------
  909|  20.3k|      --search;
  910|  20.3k|    } else {
  911|  16.0k|      std::array<byte, 2> tmpBuf;
  912|       |      // Write marker and a copy of the segment.
  913|  16.0k|      tmpBuf[0] = 0xff;
  914|  16.0k|      tmpBuf[1] = marker;
  915|  16.0k|      if (outIo.write(tmpBuf.data(), 2) != 2)
  ------------------
  |  Branch (915:11): [True: 0, False: 16.0k]
  ------------------
  916|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  917|  16.0k|      if (outIo.write(buf.c_data(), buf.size()) != buf.size())
  ------------------
  |  Branch (917:11): [True: 0, False: 16.0k]
  ------------------
  918|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  919|  16.0k|      if (outIo.error())
  ------------------
  |  Branch (919:11): [True: 0, False: 16.0k]
  ------------------
  920|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  921|  16.0k|    }
  922|       |
  923|       |    // Next marker
  924|  36.4k|    marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  925|  36.4k|    ++count;
  926|  36.4k|  }
  927|       |
  928|       |  // Populate the fake data, only make sense for remoteio, httpio and sshio.
  929|       |  // it avoids allocating memory for parts of the file that contain image-date.
  930|    933|  io_->populateFakeData();
  931|       |
  932|       |  // Write the final marker, then copy rest of the Io.
  933|    933|  byte tmpBuf[2];
  934|    933|  tmpBuf[0] = 0xff;
  935|    933|  tmpBuf[1] = marker;
  936|    933|  if (outIo.write(tmpBuf, 2) != 2)
  ------------------
  |  Branch (936:7): [True: 0, False: 933]
  ------------------
  937|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  938|       |
  939|    933|  DataBuf buf(4096);
  940|    933|  size_t readSize = io_->read(buf.data(), buf.size());
  941|  1.76k|  while (readSize != 0) {
  ------------------
  |  Branch (941:10): [True: 832, False: 933]
  ------------------
  942|    832|    if (outIo.write(buf.c_data(), readSize) != readSize)
  ------------------
  |  Branch (942:9): [True: 0, False: 832]
  ------------------
  943|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  944|    832|    readSize = io_->read(buf.data(), buf.size());
  945|    832|  }
  946|    933|  if (outIo.error())
  ------------------
  |  Branch (946:7): [True: 0, False: 933]
  ------------------
  947|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  948|       |
  949|    933|}  // JpegBase::doWriteMetadata
_ZN5Exiv29JpegImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
  968|  1.70k|    JpegBase(ImageType::jpeg, std::move(io), create, blank_, sizeof(blank_)) {
  969|  1.70k|}
_ZNK5Exiv29JpegImage11writeHeaderERNS_7BasicIoE:
  975|  1.02k|int JpegImage::writeHeader(BasicIo& outIo) const {
  976|       |  // Jpeg header
  977|  1.02k|  byte tmpBuf[2];
  978|  1.02k|  tmpBuf[0] = 0xff;
  979|  1.02k|  tmpBuf[1] = soi_;
  980|  1.02k|  if (outIo.write(tmpBuf, 2) != 2)
  ------------------
  |  Branch (980:7): [True: 0, False: 1.02k]
  ------------------
  981|      0|    return 4;
  982|  1.02k|  if (outIo.error())
  ------------------
  |  Branch (982:7): [True: 0, False: 1.02k]
  ------------------
  983|      0|    return 4;
  984|  1.02k|  return 0;
  985|  1.02k|}
_ZNK5Exiv29JpegImage10isThisTypeERNS_7BasicIoEb:
  987|  10.8k|bool JpegImage::isThisType(BasicIo& iIo, bool advance) const {
  988|  10.8k|  return isJpegType(iIo, advance);
  989|  10.8k|}
_ZN5Exiv215newJpegInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  991|  1.58k|Image::UniquePtr newJpegInstance(BasicIo::UniquePtr io, bool create) {
  992|  1.58k|  auto image = std::make_unique<JpegImage>(std::move(io), create);
  993|  1.58k|  if (!image->good()) {
  ------------------
  |  Branch (993:7): [True: 0, False: 1.58k]
  ------------------
  994|      0|    return nullptr;
  995|      0|  }
  996|  1.58k|  return image;
  997|  1.58k|}
_ZN5Exiv210isJpegTypeERNS_7BasicIoEb:
  999|  46.0k|bool isJpegType(BasicIo& iIo, bool advance) {
 1000|  46.0k|  bool result = true;
 1001|  46.0k|  byte tmpBuf[2];
 1002|  46.0k|  iIo.read(tmpBuf, 2);
 1003|  46.0k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (1003:7): [True: 0, False: 46.0k]
  |  Branch (1003:22): [True: 10, False: 46.0k]
  ------------------
 1004|     10|    return false;
 1005|       |
 1006|  46.0k|  if (0xff != tmpBuf[0] || soi_ != tmpBuf[1]) {
  ------------------
  |  Branch (1006:7): [True: 32.1k, False: 13.9k]
  |  Branch (1006:28): [True: 54, False: 13.8k]
  ------------------
 1007|  32.2k|    result = false;
 1008|  32.2k|  }
 1009|  46.0k|  if (!advance || !result)
  ------------------
  |  Branch (1009:7): [True: 42.5k, False: 3.54k]
  |  Branch (1009:19): [True: 116, False: 3.42k]
  ------------------
 1010|  42.6k|    iIo.seek(-2, BasicIo::cur);
 1011|  46.0k|  return result;
 1012|  46.0k|}
_ZN5Exiv28ExvImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
 1015|     10|    JpegBase(ImageType::exv, std::move(io), create, blank_, sizeof(blank_)) {
 1016|     10|}
_ZNK5Exiv28ExvImage10isThisTypeERNS_7BasicIoEb:
 1033|     14|bool ExvImage::isThisType(BasicIo& iIo, bool advance) const {
 1034|     14|  return isExvType(iIo, advance);
 1035|     14|}
_ZN5Exiv214newExvInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
 1037|     10|Image::UniquePtr newExvInstance(BasicIo::UniquePtr io, bool create) {
 1038|     10|  auto image = std::make_unique<ExvImage>(std::move(io), create);
 1039|     10|  if (!image->good())
  ------------------
  |  Branch (1039:7): [True: 0, False: 10]
  ------------------
 1040|      0|    return nullptr;
 1041|     10|  return image;
 1042|     10|}
_ZN5Exiv29isExvTypeERNS_7BasicIoEb:
 1044|  32.1k|bool isExvType(BasicIo& iIo, bool advance) {
 1045|  32.1k|  bool result = true;
 1046|  32.1k|  byte tmpBuf[7];
 1047|  32.1k|  iIo.read(tmpBuf, 7);
 1048|  32.1k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (1048:7): [True: 0, False: 32.1k]
  |  Branch (1048:22): [True: 43, False: 32.0k]
  ------------------
 1049|     43|    return false;
 1050|       |
 1051|  32.0k|  if (0xff != tmpBuf[0] || 0x01 != tmpBuf[1] || memcmp(tmpBuf + 2, ExvImage::exiv2Id_, 5) != 0) {
  ------------------
  |  Branch (1051:7): [True: 32.0k, False: 61]
  |  Branch (1051:28): [True: 17, False: 44]
  |  Branch (1051:49): [True: 10, False: 34]
  ------------------
 1052|  32.0k|    result = false;
 1053|  32.0k|  }
 1054|  32.0k|  if (!advance || !result)
  ------------------
  |  Branch (1054:7): [True: 32.0k, False: 10]
  |  Branch (1054:19): [True: 0, False: 10]
  ------------------
 1055|  32.0k|    iIo.seek(-7, BasicIo::cur);
 1056|  32.0k|  return result;
 1057|  32.1k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_115readSegmentSizeEhRNS_7BasicIoE:
  103|   248k|std::pair<std::array<byte, 2>, uint16_t> readSegmentSize(const byte marker, BasicIo& io) {
  104|   248k|  std::array<byte, 2> buf{0, 0};  // 2-byte buffer for reading the size.
  105|   248k|  uint16_t size{0};               // Size of the segment, including the 2-byte size field
  106|   248k|  if (markerHasLength(marker)) {
  ------------------
  |  Branch (106:7): [True: 206k, False: 41.6k]
  ------------------
  107|   206k|    io.readOrThrow(buf.data(), buf.size(), ErrorCode::kerFailedToReadImageData);
  108|   206k|    size = getUShort(buf.data(), bigEndian);
  109|   206k|    enforce(size >= 2, ErrorCode::kerFailedToReadImageData);
  110|   206k|  }
  111|   248k|  return {buf, size};
  112|   248k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_18inRange2Eiiiii:
   91|  71.5k|constexpr bool inRange2(int value, int lo1, int hi1, int lo2, int hi2) {
   92|  71.5k|  return inRange(lo1, value, hi1) || inRange(lo2, value, hi2);
  ------------------
  |  Branch (92:10): [True: 104, False: 71.4k]
  |  Branch (92:38): [True: 215, False: 71.2k]
  ------------------
   93|  71.5k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_17inRangeEiii:
   87|   142k|constexpr bool inRange(int lo, int value, int hi) {
   88|   142k|  return lo <= value && value <= hi;
  ------------------
  |  Branch (88:10): [True: 140k, False: 2.68k]
  |  Branch (88:25): [True: 319, False: 139k]
  ------------------
   89|   142k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_115markerHasLengthEh:
   98|   295k|bool markerHasLength(byte m) {
   99|   295k|  bool markerWithoutLength = m >= rst1_ && m <= eoi_;
  ------------------
  |  Branch (99:30): [True: 280k, False: 15.3k]
  |  Branch (99:44): [True: 53.4k, False: 226k]
  ------------------
  100|   295k|  return !markerWithoutLength;
  101|   295k|}

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

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

_ZN5Exiv213MatroskaVideoC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  599|  1.23k|MatroskaVideo::MatroskaVideo(BasicIo::UniquePtr io) : Image(ImageType::mkv, mdNone, std::move(io)) {
  600|  1.23k|}  // MatroskaVideo::MatroskaVideo
_ZNK5Exiv213MatroskaVideo8mimeTypeEv:
  602|  1.23k|std::string MatroskaVideo::mimeType() const {
  603|  1.23k|  return "video/matroska";
  604|  1.23k|}
_ZN5Exiv213MatroskaVideo12readMetadataEv:
  609|  1.23k|void MatroskaVideo::readMetadata() {
  610|  1.23k|  if (io_->open() != 0)
  ------------------
  |  Branch (610:7): [True: 0, False: 1.23k]
  ------------------
  611|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  612|       |
  613|       |  // Ensure that this is the correct image type
  614|  1.23k|  if (!isMkvType(*io_, false)) {
  ------------------
  |  Branch (614:7): [True: 0, False: 1.23k]
  ------------------
  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.23k|  IoCloser closer(*io_);
  621|  1.23k|  clearMetadata();
  622|  1.23k|  continueTraversing_ = true;
  623|  1.23k|  height_ = width_ = 1;
  624|       |
  625|  1.23k|  xmpData_["Xmp.video.FileSize"] = io_->size() / bytesMB;
  626|  1.23k|  xmpData_["Xmp.video.MimeType"] = mimeType();
  627|       |
  628|  62.1k|  while (continueTraversing_)
  ------------------
  |  Branch (628:10): [True: 60.9k, False: 1.23k]
  ------------------
  629|  60.9k|    decodeBlock();
  630|       |
  631|  1.23k|  xmpData_["Xmp.video.AspectRatio"] = getAspectRatio(width_, height_);
  632|  1.23k|}
_ZN5Exiv213MatroskaVideo11decodeBlockEv:
  634|  60.9k|void MatroskaVideo::decodeBlock() {
  635|  60.9k|  byte buf[8];
  636|  60.9k|  io_->read(buf, 1);
  637|       |
  638|  60.9k|  if (io_->eof()) {
  ------------------
  |  Branch (638:7): [True: 549, False: 60.3k]
  ------------------
  639|    549|    continueTraversing_ = false;
  640|    549|    return;
  641|    549|  }
  642|       |
  643|  60.3k|  uint32_t block_size = findBlockSize(buf[0]);  // 0-8
  644|  60.3k|  if (block_size > 0)
  ------------------
  |  Branch (644:7): [True: 60.2k, False: 151]
  ------------------
  645|  60.2k|    io_->read(buf + 1, block_size - 1);
  646|       |
  647|  60.3k|  auto tag_id = returnTagValue(buf, block_size);
  648|  60.3k|  const MatroskaTag* tag = Exiv2::find(matroskaTags, tag_id);
  649|       |
  650|  60.3k|  if (!tag) {
  ------------------
  |  Branch (650:7): [True: 485, False: 59.8k]
  ------------------
  651|    485|    continueTraversing_ = false;
  652|    485|    return;
  653|    485|  }
  654|       |
  655|       |  // tag->dump(std::cout);
  656|       |
  657|  59.8k|  if (tag->_id == Cues || tag->_id == Cluster) {
  ------------------
  |  Branch (657:7): [True: 152, False: 59.7k]
  |  Branch (657:27): [True: 0, False: 59.7k]
  ------------------
  658|      1|    continueTraversing_ = false;
  659|      1|    return;
  660|      1|  }
  661|       |
  662|  59.8k|  io_->read(buf, 1);
  663|  59.8k|  block_size = findBlockSize(buf[0]);  // 0-8
  664|       |
  665|  59.8k|  if (block_size > 0)
  ------------------
  |  Branch (665:7): [True: 59.7k, False: 173]
  ------------------
  666|  59.7k|    io_->read(buf + 1, block_size - 1);
  667|  59.8k|  size_t size = returnTagValue(buf, block_size);
  668|       |
  669|  59.8k|  if (tag->isComposite() && !tag->isSkipped())
  ------------------
  |  Branch (669:7): [True: 36.4k, False: 23.4k]
  |  Branch (669:29): [True: 36.4k, False: 0]
  ------------------
  670|  36.4k|    return;
  671|       |
  672|  23.4k|  const size_t bufMaxSize = 200;
  673|       |
  674|  23.4k|#ifndef SUPPRESS_WARNINGS
  675|  23.4k|  if (!tag->isSkipped() && size > bufMaxSize) {
  ------------------
  |  Branch (675:7): [True: 22.2k, False: 1.16k]
  |  Branch (675:28): [True: 71, False: 22.1k]
  ------------------
  676|     71|    EXV_WARNING << "Size " << size << " of Matroska tag 0x" << std::hex << tag->_id << std::dec << " is greater than "
  ------------------
  |  |  138|     71|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 71]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     71|  LogMsg(LogMsg::warn).os()
  ------------------
  677|      0|                << bufMaxSize << ": ignoring it.\n";
  678|     71|  }
  679|  23.4k|#endif
  680|  23.4k|  if (tag->isSkipped() || size > bufMaxSize) {
  ------------------
  |  Branch (680:7): [True: 1.16k, False: 22.2k]
  |  Branch (680:27): [True: 71, False: 22.1k]
  ------------------
  681|  1.06k|    io_->seek(size, BasicIo::cur);
  682|  1.06k|    return;
  683|  1.06k|  }
  684|       |
  685|  22.3k|  DataBuf buf2(bufMaxSize + 1);
  686|  22.3k|  io_->read(buf2.data(), size);
  687|  22.3k|  switch (tag->_type) {
  688|  2.87k|    case InternalField:
  ------------------
  |  Branch (688:5): [True: 2.87k, False: 19.4k]
  ------------------
  689|  2.87k|      decodeInternalTags(tag, buf2.data());
  690|  2.87k|      break;
  691|  2.22k|    case String:
  ------------------
  |  Branch (691:5): [True: 2.22k, False: 20.1k]
  ------------------
  692|  2.22k|    case Utf8:
  ------------------
  |  Branch (692:5): [True: 0, False: 22.3k]
  ------------------
  693|  2.22k|      decodeStringTags(tag, buf2.data());
  694|  2.22k|      break;
  695|  7.43k|    case Integer:
  ------------------
  |  Branch (695:5): [True: 7.43k, False: 14.9k]
  ------------------
  696|  9.26k|    case UInteger:
  ------------------
  |  Branch (696:5): [True: 1.83k, False: 20.5k]
  ------------------
  697|  9.26k|      decodeIntegerTags(tag, buf2.data());
  698|  9.26k|      break;
  699|  6.62k|    case Boolean:
  ------------------
  |  Branch (699:5): [True: 6.62k, False: 15.7k]
  ------------------
  700|  6.62k|      decodeBooleanTags(tag, buf2.data());
  701|  6.62k|      break;
  702|    646|    case Date:
  ------------------
  |  Branch (702:5): [True: 646, False: 21.7k]
  ------------------
  703|    646|      decodeDateTags(tag, buf2.data(), size);
  704|    646|      break;
  705|    550|    case Float:
  ------------------
  |  Branch (705:5): [True: 550, False: 21.8k]
  ------------------
  706|    550|      decodeFloatTags(tag, buf2.data());
  707|    550|      break;
  708|      0|    case Binary:
  ------------------
  |  Branch (708:5): [True: 0, False: 22.3k]
  ------------------
  709|      0|      break;
  710|      0|    case Master:
  ------------------
  |  Branch (710:5): [True: 0, False: 22.3k]
  ------------------
  711|      0|      break;
  712|      0|    default:
  ------------------
  |  Branch (712:5): [True: 0, False: 22.3k]
  ------------------
  713|      0|      break;
  714|  22.3k|  }
  715|  22.3k|}  // MatroskaVideo::decodeBlock
_ZN5Exiv213MatroskaVideo18decodeInternalTagsEPKNS_8Internal11MatroskaTagEPKh:
  717|  2.87k|void MatroskaVideo::decodeInternalTags(const MatroskaTag* tag, const byte* buf) {
  718|  2.87k|  uint64_t key = getULongLong(buf, bigEndian);
  719|  2.87k|  if (!key)
  ------------------
  |  Branch (719:7): [True: 172, False: 2.70k]
  ------------------
  720|    172|    return;
  721|       |
  722|  2.70k|  auto internalMt = [=]() -> const MatroskaTag* {
  723|  2.70k|    switch (tag->_id) {
  724|  2.70k|      case Xmp_video_VideoScanTpye:
  725|  2.70k|        return Exiv2::find(videoScanType, key);
  726|  2.70k|      case Xmp_audio_ChannelType:
  727|  2.70k|        return Exiv2::find(audioChannels, key);
  728|  2.70k|      case Xmp_video_ContentCompressAlgo:
  729|  2.70k|        return Exiv2::find(compressionAlgorithm, key);
  730|  2.70k|      case Xmp_video_ContentEncryptAlgo:
  731|  2.70k|        return Exiv2::find(encryptionAlgorithm, key);
  732|  2.70k|      case Xmp_video_ContentSignAlgo_1:
  733|  2.70k|      case Xmp_video_ContentSignAlgo_2:
  734|  2.70k|        return Exiv2::find(contentSignatureAlgorithm, key);
  735|  2.70k|      case Xmp_video_ContentSignHashAlgo_1:
  736|  2.70k|      case Xmp_video_ContentSignHashAlgo_2:
  737|  2.70k|        return Exiv2::find(contentSignatureHashAlgorithm, key);
  738|  2.70k|      case Xmp_video_ContentEncodingType:
  739|  2.70k|        return Exiv2::find(encodingType, key);
  740|  2.70k|      case Xmp_video_DisplayUnit:
  741|  2.70k|        return Exiv2::find(displayUnit, key);
  742|  2.70k|      case Xmp_video_AspectRatioType:
  743|  2.70k|        return Exiv2::find(aspectRatioType, key);
  744|  2.70k|      case Xmp_video_PhysicalEquivalent:
  745|  2.70k|        return Exiv2::find(chapterPhysicalEquivalent, key);
  746|  2.70k|      case Xmp_video_TranslateCodec:
  747|  2.70k|        return Exiv2::find(chapterTranslateCodec, key);
  748|  2.70k|      case Video_Audio_CodecID:
  749|  2.70k|        return Exiv2::find(trackCodec, key);
  750|  2.70k|      case Video_Audio_CodecName:
  751|  2.70k|        return Exiv2::find(codecInfo, key);
  752|  2.70k|      case CodecDownloadURL:
  753|  2.70k|      case CodecInfoURL:
  754|  2.70k|        return Exiv2::find(codecDownloadUrl, key);
  755|  2.70k|    }
  756|  2.70k|    return nullptr;
  757|  2.70k|  }();
  758|  2.70k|  if (internalMt) {
  ------------------
  |  Branch (758:7): [True: 865, False: 1.83k]
  ------------------
  759|    865|    xmpData_[tag->_label] = internalMt->_label;
  760|  1.83k|  } else {
  761|  1.83k|    xmpData_[tag->_label] = key;
  762|  1.83k|  }
  763|  2.70k|}
_ZN5Exiv213MatroskaVideo16decodeStringTagsEPKNS_8Internal11MatroskaTagEPKh:
  765|  2.22k|void MatroskaVideo::decodeStringTags(const MatroskaTag* tag, const byte* buf) {
  766|  2.22k|  if (tag->_id == TrackNumber) {
  ------------------
  |  Branch (766:7): [True: 228, False: 1.99k]
  ------------------
  767|    228|    track_count_++;
  768|    228|    xmpData_[tag->_label] = track_count_;
  769|  1.99k|  } else {
  770|  1.99k|    xmpData_[tag->_label] = buf;
  771|  1.99k|  }
  772|  2.22k|}
_ZN5Exiv213MatroskaVideo17decodeIntegerTagsEPKNS_8Internal11MatroskaTagEPKh:
  774|  9.26k|void MatroskaVideo::decodeIntegerTags(const MatroskaTag* tag, const byte* buf) {
  775|  9.26k|  uint64_t value = getULongLong(buf, bigEndian);
  776|  9.26k|  if (!value)
  ------------------
  |  Branch (776:7): [True: 7.59k, False: 1.66k]
  ------------------
  777|  7.59k|    return;
  778|       |
  779|  1.66k|  if (tag->_id == Xmp_video_Width_1 || tag->_id == Xmp_video_Width_2)
  ------------------
  |  Branch (779:7): [True: 955, False: 714]
  |  Branch (779:40): [True: 94, False: 620]
  ------------------
  780|  1.04k|    width_ = value;
  781|  1.66k|  if (tag->_id == Xmp_video_Height_1 || tag->_id == Xmp_video_Height_2)
  ------------------
  |  Branch (781:7): [True: 510, False: 1.15k]
  |  Branch (781:41): [True: 34, False: 1.12k]
  ------------------
  782|    544|    height_ = value;
  783|  1.66k|  xmpData_[tag->_label] = value;
  784|  1.66k|}
_ZN5Exiv213MatroskaVideo17decodeBooleanTagsEPKNS_8Internal11MatroskaTagEPKh:
  786|  6.62k|void MatroskaVideo::decodeBooleanTags(const MatroskaTag* tag, const byte* buf) {
  787|  6.62k|  const MatroskaTag* internalMt = nullptr;
  788|  6.62k|  uint64_t key = getULongLong(buf, bigEndian);
  789|  6.62k|  if (!key)
  ------------------
  |  Branch (789:7): [True: 1.98k, False: 4.64k]
  ------------------
  790|  1.98k|    return;
  791|       |
  792|  4.64k|  switch (tag->_id) {
  793|  2.77k|    case TrackType:  // this tags is used internally only to deduce the type of track (video or audio)
  ------------------
  |  Branch (793:5): [True: 2.77k, False: 1.87k]
  ------------------
  794|  2.77k|      if (auto f = Exiv2::find(matroskaTrackType, key)) {
  ------------------
  |  Branch (794:16): [True: 160, False: 2.61k]
  ------------------
  795|    160|        stream_ = f->_id;
  796|    160|      }
  797|  2.77k|      break;
  798|    124|    case TrackUsed:
  ------------------
  |  Branch (798:5): [True: 124, False: 4.52k]
  ------------------
  799|    124|      internalMt = Exiv2::find(trackEnable, key);
  800|    124|      break;
  801|    662|    case TrackDefault:
  ------------------
  |  Branch (801:5): [True: 662, False: 3.98k]
  ------------------
  802|    662|      internalMt = Exiv2::find(defaultOn, key);
  803|    662|      break;
  804|    561|    case TrackForced:
  ------------------
  |  Branch (804:5): [True: 561, False: 4.08k]
  ------------------
  805|    561|      internalMt = Exiv2::find(trackForced, key);
  806|    561|      break;
  807|    100|    case TrackLacing:
  ------------------
  |  Branch (807:5): [True: 100, False: 4.54k]
  ------------------
  808|    100|      internalMt = Exiv2::find(trackLacing, key);
  809|    100|      break;
  810|    357|    case CodecDecodeAll:
  ------------------
  |  Branch (810:5): [True: 357, False: 4.28k]
  ------------------
  811|    357|      internalMt = Exiv2::find(codecDecodeAll, key);
  812|    357|      break;
  813|     60|    case CodecSettings:
  ------------------
  |  Branch (813:5): [True: 60, False: 4.58k]
  ------------------
  814|     60|      internalMt = Exiv2::find(codecSettings, key);
  815|     60|      break;
  816|     10|    case Xmp_video_TagDefault:
  ------------------
  |  Branch (816:5): [True: 10, False: 4.63k]
  ------------------
  817|     10|      internalMt = tag;
  818|     10|      break;
  819|      0|    default:
  ------------------
  |  Branch (819:5): [True: 0, False: 4.64k]
  ------------------
  820|      0|      break;
  821|  4.64k|  }
  822|       |
  823|  4.64k|  if (internalMt) {
  ------------------
  |  Branch (823:7): [True: 739, False: 3.90k]
  ------------------
  824|    739|    xmpData_[internalMt->_label] = "Yes";
  825|    739|  }
  826|  4.64k|}
_ZN5Exiv213MatroskaVideo14decodeDateTagsEPKNS_8Internal11MatroskaTagEPKhm:
  828|    646|void MatroskaVideo::decodeDateTags(const MatroskaTag* tag, const byte* buf, size_t size) {
  829|    646|  int64_t duration_in_ms = 0;
  830|    646|  uint64_t value;
  831|    646|  switch (tag->_id) {
  832|    389|    case Xmp_video_Duration:
  ------------------
  |  Branch (832:5): [True: 389, False: 257]
  ------------------
  833|    389|      if (size <= 4) {
  ------------------
  |  Branch (833:11): [True: 176, False: 213]
  ------------------
  834|    176|        duration_in_ms = std::llround(getFloat(buf, bigEndian) * time_code_scale_ * 1000.0);
  835|    213|      } else {
  836|    213|        duration_in_ms = std::llround(getDouble(buf, bigEndian) * time_code_scale_ * 1000);
  837|    213|      }
  838|    389|      xmpData_[tag->_label] = duration_in_ms;
  839|    389|      break;
  840|    207|    case Xmp_video_DateUTC:
  ------------------
  |  Branch (840:5): [True: 207, False: 439]
  ------------------
  841|    207|      value = getULongLong(buf, bigEndian);
  842|    207|      if (!value)
  ------------------
  |  Branch (842:11): [True: 44, False: 163]
  ------------------
  843|     44|        return;
  844|    163|      duration_in_ms = value / 1000000000;
  845|    163|      xmpData_[tag->_label] = duration_in_ms;
  846|    163|      break;
  847|       |
  848|     50|    case TimecodeScale:
  ------------------
  |  Branch (848:5): [True: 50, False: 596]
  ------------------
  849|     50|      value = getULongLong(buf, bigEndian);
  850|     50|      if (!value)
  ------------------
  |  Branch (850:11): [True: 29, False: 21]
  ------------------
  851|     29|        return;
  852|     21|      time_code_scale_ = static_cast<double>(value) / static_cast<double>(1000000000);
  853|     21|      xmpData_[tag->_label] = time_code_scale_;
  854|     21|      break;
  855|      0|    default:
  ------------------
  |  Branch (855:5): [True: 0, False: 646]
  ------------------
  856|      0|      break;
  857|    646|  }
  858|    646|}
_ZN5Exiv213MatroskaVideo15decodeFloatTagsEPKNS_8Internal11MatroskaTagEPKh:
  860|    550|void MatroskaVideo::decodeFloatTags(const MatroskaTag* tag, const byte* buf) {
  861|    550|  xmpData_[tag->_label] = getFloat(buf, bigEndian);
  862|       |
  863|    550|  switch (tag->_id) {
  864|     75|    case Xmp_audio_SampleRate:
  ------------------
  |  Branch (864:5): [True: 75, False: 475]
  ------------------
  865|    119|    case Xmp_audio_OutputSampleRate:
  ------------------
  |  Branch (865:5): [True: 44, False: 506]
  ------------------
  866|    119|      xmpData_[tag->_label] = getFloat(buf, bigEndian);
  867|    119|      break;
  868|      0|    case VideoFrameRate_DefaultDuration:
  ------------------
  |  Branch (868:5): [True: 0, False: 550]
  ------------------
  869|    431|    case Xmp_video_FrameRate: {
  ------------------
  |  Branch (869:5): [True: 431, False: 119]
  ------------------
  870|    431|      uint64_t key = getULongLong(buf, bigEndian);
  871|    431|      if (!key)
  ------------------
  |  Branch (871:11): [True: 8, False: 423]
  ------------------
  872|      8|        return;
  873|    423|      if (auto internalMt = Exiv2::find(streamRate, key)) {
  ------------------
  |  Branch (873:16): [True: 214, False: 209]
  ------------------
  874|    214|        double frame_rate = 0;
  875|    214|        switch (stream_) {
  876|     14|          case 1:  // video
  ------------------
  |  Branch (876:11): [True: 14, False: 200]
  ------------------
  877|     14|            frame_rate = 1000000000.0 / static_cast<double>(key);
  878|     14|            break;
  879|     18|          case 2:  // audio
  ------------------
  |  Branch (879:11): [True: 18, False: 196]
  ------------------
  880|     18|            frame_rate = static_cast<double>(key) / 1000;
  881|     18|            break;
  882|    182|          default:
  ------------------
  |  Branch (882:11): [True: 182, False: 32]
  ------------------
  883|    182|            break;
  884|    214|        }
  885|    214|        if (std::isgreater(frame_rate, 0.0))
  ------------------
  |  Branch (885:13): [True: 32, False: 182]
  ------------------
  886|     32|          xmpData_[internalMt->_label] = frame_rate;
  887|    214|      } else
  888|    209|        xmpData_[tag->_label] = "Variable Bit Rate";
  889|    423|    } break;
  890|    423|    default:
  ------------------
  |  Branch (890:5): [True: 0, False: 550]
  ------------------
  891|      0|      xmpData_[tag->_label] = getFloat(buf, bigEndian);
  892|      0|      break;
  893|    550|  }
  894|    550|}
_ZN5Exiv213MatroskaVideo13findBlockSizeEh:
  896|   120k|uint32_t MatroskaVideo::findBlockSize(byte b) {
  897|   120k|  if (b & 128)
  ------------------
  |  Branch (897:7): [True: 105k, False: 14.7k]
  ------------------
  898|   105k|    return 1;
  899|  14.7k|  if (b & 64)
  ------------------
  |  Branch (899:7): [True: 8.35k, False: 6.40k]
  ------------------
  900|  8.35k|    return 2;
  901|  6.40k|  if (b & 32)
  ------------------
  |  Branch (901:7): [True: 2.13k, False: 4.26k]
  ------------------
  902|  2.13k|    return 3;
  903|  4.26k|  if (b & 16)
  ------------------
  |  Branch (903:7): [True: 2.82k, False: 1.44k]
  ------------------
  904|  2.82k|    return 4;
  905|  1.44k|  if (b & 8)
  ------------------
  |  Branch (905:7): [True: 472, False: 969]
  ------------------
  906|    472|    return 5;
  907|    969|  if (b & 4)
  ------------------
  |  Branch (907:7): [True: 121, False: 848]
  ------------------
  908|    121|    return 6;
  909|    848|  if (b & 2)
  ------------------
  |  Branch (909:7): [True: 414, False: 434]
  ------------------
  910|    414|    return 7;
  911|    434|  if (b & 1)
  ------------------
  |  Branch (911:7): [True: 261, False: 173]
  ------------------
  912|    261|    return 8;
  913|    173|  return 0;
  914|    434|}
_ZN5Exiv214newMkvInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  916|  1.23k|Image::UniquePtr newMkvInstance(BasicIo::UniquePtr io, bool /*create*/) {
  917|  1.23k|  auto image = std::make_unique<MatroskaVideo>(std::move(io));
  918|  1.23k|  if (!image->good()) {
  ------------------
  |  Branch (918:7): [True: 0, False: 1.23k]
  ------------------
  919|      0|    return nullptr;
  920|      0|  }
  921|  1.23k|  return image;
  922|  1.23k|}
_ZN5Exiv29isMkvTypeERNS_7BasicIoEb:
  924|  9.36k|bool isMkvType(BasicIo& iIo, bool advance) {
  925|  9.36k|  bool result = true;
  926|  9.36k|  byte tmpBuf[4];
  927|  9.36k|  iIo.read(tmpBuf, 4);
  928|       |
  929|  9.36k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (929:7): [True: 0, False: 9.36k]
  |  Branch (929:22): [True: 144, False: 9.22k]
  ------------------
  930|    144|    return false;
  931|       |
  932|  9.22k|  if (0x1a != tmpBuf[0] || 0x45 != tmpBuf[1] || 0xdf != tmpBuf[2] || 0xa3 != tmpBuf[3]) {
  ------------------
  |  Branch (932:7): [True: 5.49k, False: 3.72k]
  |  Branch (932:28): [True: 10, False: 3.71k]
  |  Branch (932:49): [True: 7, False: 3.70k]
  |  Branch (932:70): [True: 10, False: 3.69k]
  ------------------
  933|  5.52k|    result = false;
  934|  5.52k|  }
  935|       |
  936|  9.22k|  if (!advance || !result)
  ------------------
  |  Branch (936:7): [True: 9.22k, False: 0]
  |  Branch (936:19): [True: 0, False: 0]
  ------------------
  937|  9.22k|    iIo.seek(0, BasicIo::beg);
  938|  9.22k|  return result;
  939|  9.36k|}
matroskavideo.cpp:_ZN5Exiv28InternalL14returnTagValueEPKhm:
  582|   120k|[[nodiscard]] static size_t returnTagValue(const byte* buf, size_t size) {
  583|   120k|  enforce(size > 0 && size <= 8, Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (583:11): [True: 119k, False: 173]
  |  Branch (583:23): [True: 119k, False: 0]
  ------------------
  584|       |
  585|   120k|  size_t b0 = buf[0] & (0xff >> size);
  586|   120k|  size_t tag = b0 << ((size - 1) * 8);
  587|   148k|  for (size_t i = 1; i < size; ++i) {
  ------------------
  |  Branch (587:22): [True: 27.9k, False: 120k]
  ------------------
  588|  27.9k|    tag |= static_cast<size_t>(buf[i]) << ((size - i - 1) * 8);
  589|  27.9k|  }
  590|       |
  591|   120k|  return tag;
  592|   120k|}
matroskavideo.cpp:_ZZN5Exiv213MatroskaVideo18decodeInternalTagsEPKNS_8Internal11MatroskaTagEPKhENK3$_0clEv:
  722|  2.70k|  auto internalMt = [=]() -> const MatroskaTag* {
  723|  2.70k|    switch (tag->_id) {
  ------------------
  |  Branch (723:13): [True: 2.70k, False: 0]
  ------------------
  724|    328|      case Xmp_video_VideoScanTpye:
  ------------------
  |  Branch (724:7): [True: 328, False: 2.37k]
  ------------------
  725|    328|        return Exiv2::find(videoScanType, key);
  726|    178|      case Xmp_audio_ChannelType:
  ------------------
  |  Branch (726:7): [True: 178, False: 2.52k]
  ------------------
  727|    178|        return Exiv2::find(audioChannels, key);
  728|    190|      case Xmp_video_ContentCompressAlgo:
  ------------------
  |  Branch (728:7): [True: 190, False: 2.51k]
  ------------------
  729|    190|        return Exiv2::find(compressionAlgorithm, key);
  730|    145|      case Xmp_video_ContentEncryptAlgo:
  ------------------
  |  Branch (730:7): [True: 145, False: 2.55k]
  ------------------
  731|    145|        return Exiv2::find(encryptionAlgorithm, key);
  732|     82|      case Xmp_video_ContentSignAlgo_1:
  ------------------
  |  Branch (732:7): [True: 82, False: 2.61k]
  ------------------
  733|    194|      case Xmp_video_ContentSignAlgo_2:
  ------------------
  |  Branch (733:7): [True: 112, False: 2.58k]
  ------------------
  734|    194|        return Exiv2::find(contentSignatureAlgorithm, key);
  735|     27|      case Xmp_video_ContentSignHashAlgo_1:
  ------------------
  |  Branch (735:7): [True: 27, False: 2.67k]
  ------------------
  736|    256|      case Xmp_video_ContentSignHashAlgo_2:
  ------------------
  |  Branch (736:7): [True: 229, False: 2.47k]
  ------------------
  737|    256|        return Exiv2::find(contentSignatureHashAlgorithm, key);
  738|     51|      case Xmp_video_ContentEncodingType:
  ------------------
  |  Branch (738:7): [True: 51, False: 2.64k]
  ------------------
  739|     51|        return Exiv2::find(encodingType, key);
  740|    284|      case Xmp_video_DisplayUnit:
  ------------------
  |  Branch (740:7): [True: 284, False: 2.41k]
  ------------------
  741|    284|        return Exiv2::find(displayUnit, key);
  742|    150|      case Xmp_video_AspectRatioType:
  ------------------
  |  Branch (742:7): [True: 150, False: 2.55k]
  ------------------
  743|    150|        return Exiv2::find(aspectRatioType, key);
  744|    778|      case Xmp_video_PhysicalEquivalent:
  ------------------
  |  Branch (744:7): [True: 778, False: 1.92k]
  ------------------
  745|    778|        return Exiv2::find(chapterPhysicalEquivalent, key);
  746|    125|      case Xmp_video_TranslateCodec:
  ------------------
  |  Branch (746:7): [True: 125, False: 2.57k]
  ------------------
  747|    125|        return Exiv2::find(chapterTranslateCodec, key);
  748|      0|      case Video_Audio_CodecID:
  ------------------
  |  Branch (748:7): [True: 0, False: 2.70k]
  ------------------
  749|      0|        return Exiv2::find(trackCodec, key);
  750|     13|      case Video_Audio_CodecName:
  ------------------
  |  Branch (750:7): [True: 13, False: 2.68k]
  ------------------
  751|     13|        return Exiv2::find(codecInfo, key);
  752|      2|      case CodecDownloadURL:
  ------------------
  |  Branch (752:7): [True: 2, False: 2.69k]
  ------------------
  753|      8|      case CodecInfoURL:
  ------------------
  |  Branch (753:7): [True: 6, False: 2.69k]
  ------------------
  754|      8|        return Exiv2::find(codecDownloadUrl, key);
  755|  2.70k|    }
  756|      0|    return nullptr;
  757|  2.70k|  }();

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

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

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

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

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

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

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

_ZN5Exiv28Internal16OlympusMakerNote7tagListEv:
   33|   249k|  static constexpr auto tagList() {
   34|   249k|    return tagInfo_;
   35|   249k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListCsEv:
   37|   108k|  static constexpr auto tagListCs() {
   38|   108k|    return tagInfoCs_;
   39|   108k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListEqEv:
   41|  9.42k|  static constexpr auto tagListEq() {
   42|  9.42k|    return tagInfoEq_;
   43|  9.42k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListRdEv:
   45|  7.90k|  static constexpr auto tagListRd() {
   46|  7.90k|    return tagInfoRd_;
   47|  7.90k|  }
_ZN5Exiv28Internal16OlympusMakerNote10tagListRd2Ev:
   49|  8.07k|  static constexpr auto tagListRd2() {
   50|  8.07k|    return tagInfoRd2_;
   51|  8.07k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListIpEv:
   53|  6.60k|  static constexpr auto tagListIp() {
   54|  6.60k|    return tagInfoIp_;
   55|  6.60k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListFiEv:
   57|  7.89k|  static constexpr auto tagListFi() {
   58|  7.89k|    return tagInfoFi_;
   59|  7.89k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListFeEv:
   61|  8.02k|  static constexpr auto tagListFe() {
   62|  8.02k|    return tagInfoFe_;
   63|  8.02k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListRiEv:
   65|  11.6k|  static constexpr auto tagListRi() {
   66|  11.6k|    return tagInfoRi_;
   67|  11.6k|  }

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

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

_ZN5Exiv28Internal18PanasonicMakerNote11print0x000fERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  559|  1.30k|std::ostream& PanasonicMakerNote::print0x000f(std::ostream& os, const Value& value, const ExifData*) {
  560|  1.30k|  if (value.count() < 2 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (560:7): [True: 350, False: 952]
  |  Branch (560:28): [True: 86, False: 866]
  ------------------
  561|    436|    return os << value;
  562|    436|  }
  563|    866|  const auto l0 = value.toInt64(0);
  564|    866|  const auto l1 = value.toInt64(1);
  565|    866|  if (l0 == 0 && l1 == 1)
  ------------------
  |  Branch (565:7): [True: 246, False: 620]
  |  Branch (565:18): [True: 64, False: 182]
  ------------------
  566|     64|    os << _("Spot mode on or 9 area");
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  567|    802|  else if (l0 == 0 && l1 == 16)
  ------------------
  |  Branch (567:12): [True: 182, False: 620]
  |  Branch (567:23): [True: 30, False: 152]
  ------------------
  568|     30|    os << _("Spot mode off or 3-area (high speed)");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  569|    772|  else if (l0 == 0 && l1 == 23)
  ------------------
  |  Branch (569:12): [True: 152, False: 620]
  |  Branch (569:23): [True: 36, False: 116]
  ------------------
  570|     36|    os << _("23-area");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  571|    736|  else if (l0 == 0 && l1 == 49)
  ------------------
  |  Branch (571:12): [True: 116, False: 620]
  |  Branch (571:23): [True: 32, False: 84]
  ------------------
  572|     32|    os << _("49-area");
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  573|    704|  else if (l0 == 0 && l1 == 225)
  ------------------
  |  Branch (573:12): [True: 84, False: 620]
  |  Branch (573:23): [True: 18, False: 66]
  ------------------
  574|     18|    os << _("225-area");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  575|    686|  else if (l0 == 1 && l1 == 0)
  ------------------
  |  Branch (575:12): [True: 128, False: 558]
  |  Branch (575:23): [True: 34, False: 94]
  ------------------
  576|     34|    os << _("Spot focusing");
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  577|    652|  else if (l0 == 1 && l1 == 1)
  ------------------
  |  Branch (577:12): [True: 94, False: 558]
  |  Branch (577:23): [True: 16, False: 78]
  ------------------
  578|     16|    os << _("5-area");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  579|    636|  else if (l0 == 16 && l1 == 0)
  ------------------
  |  Branch (579:12): [True: 102, False: 534]
  |  Branch (579:24): [True: 66, False: 36]
  ------------------
  580|     66|    os << _("1-area");
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  581|    570|  else if (l0 == 16 && l1 == 16)
  ------------------
  |  Branch (581:12): [True: 36, False: 534]
  |  Branch (581:24): [True: 30, False: 6]
  ------------------
  582|     30|    os << _("1-area (high speed)");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  583|    540|  else if (l0 == 32 && l1 == 0)
  ------------------
  |  Branch (583:12): [True: 162, False: 378]
  |  Branch (583:24): [True: 74, False: 88]
  ------------------
  584|     74|    os << _("3-area (auto)");
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  585|    466|  else if (l0 == 32 && l1 == 1)
  ------------------
  |  Branch (585:12): [True: 88, False: 378]
  |  Branch (585:24): [True: 18, False: 70]
  ------------------
  586|     18|    os << _("3-area (left)");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  587|    448|  else if (l0 == 32 && l1 == 2)
  ------------------
  |  Branch (587:12): [True: 70, False: 378]
  |  Branch (587:24): [True: 22, False: 48]
  ------------------
  588|     22|    os << _("3-area (center)");
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  589|    426|  else if (l0 == 32 && l1 == 3)
  ------------------
  |  Branch (589:12): [True: 48, False: 378]
  |  Branch (589:24): [True: 18, False: 30]
  ------------------
  590|     18|    os << _("3-area (right)");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  591|    408|  else if (l0 == 64 && l1 == 0)
  ------------------
  |  Branch (591:12): [True: 46, False: 362]
  |  Branch (591:24): [True: 14, False: 32]
  ------------------
  592|     14|    os << _("Face Detect");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  593|    394|  else if (l0 == 128 && l1 == 0)
  ------------------
  |  Branch (593:12): [True: 92, False: 302]
  |  Branch (593:25): [True: 62, False: 30]
  ------------------
  594|     62|    os << _("Spot Focusing 2");
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  595|    332|  else if (l0 == 240 && l1 == 0)
  ------------------
  |  Branch (595:12): [True: 22, False: 310]
  |  Branch (595:25): [True: 6, False: 16]
  ------------------
  596|      6|    os << _("Tracking");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  597|    326|  else
  598|    326|    os << value;
  599|    866|  return os;
  600|  1.30k|}  // PanasonicMakerNote::print0x000f
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0023ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  603|    104|std::ostream& PanasonicMakerNote::print0x0023(std::ostream& os, const Value& value, const ExifData*) {
  604|    104|  return os << stringFormat("{:1}{}", value.toInt64() / 3, _(" EV"));
  ------------------
  |  |   18|    104|#define stringFormat std::format
  ------------------
                return os << stringFormat("{:1}{}", value.toInt64() / 3, _(" EV"));
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  605|    104|}  // PanasonicMakerNote::print0x0023
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0029ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  608|     96|std::ostream& PanasonicMakerNote::print0x0029(std::ostream& os, const Value& value, const ExifData*) {
  609|     96|  auto time = value.toInt64();
  610|     96|  return os << stringFormat("{:02}:{:02}:{:02}.{:02}", time / 360000, (time % 360000) / 6000, (time % 6000) / 100,
  ------------------
  |  |   18|     96|#define stringFormat std::format
  ------------------
  611|     96|                            time % 100);
  612|       |
  613|     96|}  // PanasonicMakerNote::print0x0029
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0033ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  616|    286|std::ostream& PanasonicMakerNote::print0x0033(std::ostream& os, const Value& value, const ExifData*) {
  617|    286|  if (value.toString() == "9999:99:99 00:00:00") {
  ------------------
  |  Branch (617:7): [True: 0, False: 286]
  ------------------
  618|      0|    os << N_("not set");
  ------------------
  |  |   41|      0|#define N_(String) String
  ------------------
  619|    286|  } else {
  620|    286|    os << value;
  621|    286|  }
  622|    286|  return os;
  623|    286|}  // PanasonicMakerNote::print0x0033
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0036ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  626|     40|std::ostream& PanasonicMakerNote::print0x0036(std::ostream& os, const Value& value, const ExifData*) {
  627|     40|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (627:7): [True: 10, False: 30]
  ------------------
  628|     10|    os << N_("not set");
  ------------------
  |  |   41|     10|#define N_(String) String
  ------------------
  629|     30|  else
  630|     30|    os << value;
  631|     40|  return os;
  632|     40|}  // PanasonicMakerNote::print0x0036
_ZN5Exiv28Internal18PanasonicMakerNote11print0x003cERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  635|    148|std::ostream& PanasonicMakerNote::print0x003c(std::ostream& os, const Value& value, const ExifData*) {
  636|    148|  switch (value.toInt64()) {
  637|     34|    case 65534:
  ------------------
  |  Branch (637:5): [True: 34, False: 114]
  ------------------
  638|     34|      os << N_("Intelligent ISO");
  ------------------
  |  |   41|     34|#define N_(String) String
  ------------------
  639|     34|      break;
  640|     30|    case 65535:
  ------------------
  |  Branch (640:5): [True: 30, False: 118]
  ------------------
  641|     30|      os << N_("n/a");
  ------------------
  |  |   41|     30|#define N_(String) String
  ------------------
  642|     30|      break;
  643|     84|    default:
  ------------------
  |  Branch (643:5): [True: 84, False: 64]
  ------------------
  644|     84|      os << value;
  645|     84|      break;
  646|    148|  }
  647|    148|  return os;
  648|    148|}  // PanasonicMakerNote::print0x003c
_ZN5Exiv28Internal18PanasonicMakerNote18printPanasonicTextERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  650|    220|std::ostream& PanasonicMakerNote::printPanasonicText(std::ostream& os, const Value& value, const ExifData*) {
  651|    220|  if (value.size() > 0 && value.typeId() == undefined) {
  ------------------
  |  Branch (651:7): [True: 220, False: 0]
  |  Branch (651:27): [True: 48, False: 172]
  ------------------
  652|    666|    for (size_t i = 0; i < value.size(); i++) {
  ------------------
  |  Branch (652:24): [True: 660, False: 6]
  ------------------
  653|    660|      if (value.toInt64(i) == 0) {
  ------------------
  |  Branch (653:11): [True: 42, False: 618]
  ------------------
  654|     42|        break;
  655|     42|      }
  656|    618|      os << static_cast<char>(value.toInt64(i));
  657|    618|    }
  658|     48|    return os;
  659|     48|  }
  660|       |
  661|    172|  return os << value;
  662|    220|}  // PanasonicMakerNote::printPanasonicText
_ZN5Exiv28Internal18PanasonicMakerNote13printPressureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  665|     86|std::ostream& PanasonicMakerNote::printPressure(std::ostream& os, const Value& value, const ExifData*) {
  666|     86|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (666:7): [True: 14, False: 72]
  ------------------
  667|     14|    os << N_("infinite");
  ------------------
  |  |   41|     14|#define N_(String) String
  ------------------
  668|     72|  else
  669|     72|    os << value << N_(" hPa");
  ------------------
  |  |   41|     72|#define N_(String) String
  ------------------
  670|     86|  return os;
  671|     86|}  // PanasonicMakerNote::printPressure
_ZN5Exiv28Internal18PanasonicMakerNote18printAccelerometerERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  673|     46|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|     46|  const auto i = static_cast<int16_t>(value.toInt64());
  676|     46|  return os << i;
  677|     46|}  // PanasonicMakerNote::printAccelerometer
_ZN5Exiv28Internal18PanasonicMakerNote14printRollAngleERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  679|     44|std::ostream& PanasonicMakerNote::printRollAngle(std::ostream& os, const Value& value, const ExifData*) {
  680|       |  // value is stored as unsigned int, but should be read as int16_t.
  681|     44|  const auto i = static_cast<int16_t>(value.toInt64());
  682|     44|  return os << stringFormat("{:.1f}", i / 10.0);
  ------------------
  |  |   18|     44|#define stringFormat std::format
  ------------------
  683|     44|}  // PanasonicMakerNote::printRollAngle
_ZN5Exiv28Internal18PanasonicMakerNote15printPitchAngleERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  685|     22|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|     22|  const auto i = static_cast<int16_t>(value.toInt64());
  688|     22|  return os << stringFormat("{:.1f}", -i / 10.0);
  ------------------
  |  |   18|     22|#define stringFormat std::format
  ------------------
  689|     22|}  // PanasonicMakerNote::printPitchAngle

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

_ZN5Exiv28Internal15PentaxMakerNote12printVersionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  953|  5.66k|std::ostream& PentaxMakerNote::printVersion(std::ostream& os, const Value& value, const ExifData*) {
  954|  5.66k|  std::string val = value.toString();
  955|  5.66k|  std::replace(val.begin(), val.end(), ' ', '.');
  956|  5.66k|  os << val;
  957|  5.66k|  return os;
  958|  5.66k|}
_ZN5Exiv28Internal15PentaxMakerNote15printResolutionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  960|  1.34k|std::ostream& PentaxMakerNote::printResolution(std::ostream& os, const Value& value, const ExifData*) {
  961|  1.34k|  std::string val = value.toString();
  962|  1.34k|  std::replace(val.begin(), val.end(), ' ', 'x');
  963|  1.34k|  os << val;
  964|  1.34k|  return os;
  965|  1.34k|}
_ZN5Exiv28Internal15PentaxMakerNote9printDateERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  967|    354|std::ostream& PentaxMakerNote::printDate(std::ostream& os, const Value& value, const ExifData*) {
  968|       |  /* I choose same format as is used inside EXIF itself */
  969|    354|  return os << stringFormat("{}:{:02}:{:02}", ((static_cast<uint16_t>(value.toInt64(0)) << 8) + value.toInt64(1)),
  ------------------
  |  |   18|    354|#define stringFormat std::format
  ------------------
  970|    354|                            value.toInt64(2), value.toInt64(3));
  971|    354|}
_ZN5Exiv28Internal15PentaxMakerNote9printTimeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  973|    402|std::ostream& PentaxMakerNote::printTime(std::ostream& os, const Value& value, const ExifData*) {
  974|    402|  return os << stringFormat("{:02}:{:02}:{:02}", value.toInt64(0), value.toInt64(1), value.toInt64(2));
  ------------------
  |  |   18|    402|#define stringFormat std::format
  ------------------
  975|    402|}
_ZN5Exiv28Internal15PentaxMakerNote13printExposureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  977|     60|std::ostream& PentaxMakerNote::printExposure(std::ostream& os, const Value& value, const ExifData*) {
  978|     60|  return os << stringFormat("{:g} ms", static_cast<float>(value.toInt64()) / 100);
  ------------------
  |  |   18|     60|#define stringFormat std::format
  ------------------
  979|     60|}
_ZN5Exiv28Internal15PentaxMakerNote11printFValueERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  981|     44|std::ostream& PentaxMakerNote::printFValue(std::ostream& os, const Value& value, const ExifData*) {
  982|     44|  return os << stringFormat("F{:.2g}", static_cast<float>(value.toInt64()) / 10);
  ------------------
  |  |   18|     44|#define stringFormat std::format
  ------------------
  983|     44|}
_ZN5Exiv28Internal15PentaxMakerNote16printFocalLengthERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  985|     80|std::ostream& PentaxMakerNote::printFocalLength(std::ostream& os, const Value& value, const ExifData*) {
  986|     80|  return os << stringFormat("{:.1f} mm", static_cast<float>(value.toInt64()) / 100);
  ------------------
  |  |   18|     80|#define stringFormat std::format
  ------------------
  987|     80|}
_ZN5Exiv28Internal15PentaxMakerNote17printCompensationERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  989|    150|std::ostream& PentaxMakerNote::printCompensation(std::ostream& os, const Value& value, const ExifData*) {
  990|    150|  return os << stringFormat("{:.2g} EV", (static_cast<float>(value.toInt64()) - 50) / 10);
  ------------------
  |  |   18|    150|#define stringFormat std::format
  ------------------
  991|    150|}
_ZN5Exiv28Internal15PentaxMakerNote16printTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  993|     30|std::ostream& PentaxMakerNote::printTemperature(std::ostream& os, const Value& value, const ExifData*) {
  994|     30|  return os << stringFormat("{} C", value.toInt64());
  ------------------
  |  |   18|     30|#define stringFormat std::format
  ------------------
  995|     30|}
_ZN5Exiv28Internal15PentaxMakerNote22printFlashCompensationERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  997|     82|std::ostream& PentaxMakerNote::printFlashCompensation(std::ostream& os, const Value& value, const ExifData*) {
  998|     82|  return os << stringFormat("{:.2g} EV", static_cast<float>(value.toInt64()) / 256);
  ------------------
  |  |   18|     82|#define stringFormat std::format
  ------------------
  999|     82|}
_ZN5Exiv28Internal15PentaxMakerNote15printBracketingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1001|    318|std::ostream& PentaxMakerNote::printBracketing(std::ostream& os, const Value& value, const ExifData*) {
 1002|    318|  std::ios::fmtflags f(os.flags());
 1003|    318|  if (auto l0 = value.toUint32(0); l0 < 10) {
  ------------------
  |  Branch (1003:36): [True: 202, False: 116]
  ------------------
 1004|    202|    os << std::setprecision(2) << static_cast<float>(l0) / 3 << " EV";
 1005|    202|  } else {
 1006|    116|    os << std::setprecision(2) << static_cast<float>(l0) - 9.5F << " EV";
 1007|    116|  }
 1008|       |
 1009|    318|  if (value.count() == 2) {
  ------------------
  |  Branch (1009:7): [True: 252, False: 66]
  ------------------
 1010|    252|    const auto l1 = value.toUint32(1);
 1011|    252|    os << " (";
 1012|    252|    if (l1 == 0) {
  ------------------
  |  Branch (1012:9): [True: 38, False: 214]
  ------------------
 1013|     38|      os << _("No extended bracketing");
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
 1014|    214|    } else {
 1015|    214|      auto type = l1 >> 8;
 1016|    214|      auto range = static_cast<byte>(l1);
 1017|    214|      switch (type) {
 1018|     14|        case 1:
  ------------------
  |  Branch (1018:9): [True: 14, False: 200]
  ------------------
 1019|     14|          os << _("WB-BA");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 1020|     14|          break;
 1021|     16|        case 2:
  ------------------
  |  Branch (1021:9): [True: 16, False: 198]
  ------------------
 1022|     16|          os << _("WB-GM");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
 1023|     16|          break;
 1024|     66|        case 3:
  ------------------
  |  Branch (1024:9): [True: 66, False: 148]
  ------------------
 1025|     66|          os << _("Saturation");
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
 1026|     66|          break;
 1027|     16|        case 4:
  ------------------
  |  Branch (1027:9): [True: 16, False: 198]
  ------------------
 1028|     16|          os << _("Sharpness");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
 1029|     16|          break;
 1030|     60|        case 5:
  ------------------
  |  Branch (1030:9): [True: 60, False: 154]
  ------------------
 1031|     60|          os << _("Contrast");
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
 1032|     60|          break;
 1033|     42|        default:
  ------------------
  |  Branch (1033:9): [True: 42, False: 172]
  ------------------
 1034|     42|          os << _("Unknown ") << type;
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
 1035|     42|          break;
 1036|    214|      }
 1037|    214|      os << " " << +range;
 1038|    214|    }
 1039|    252|    os << ")";
 1040|    252|  }
 1041|    318|  os.flags(f);
 1042|    318|  return os;
 1043|    318|}
_ZN5Exiv28Internal15PentaxMakerNote17printShutterCountERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1045|    540|std::ostream& PentaxMakerNote::printShutterCount(std::ostream& os, const Value& value, const ExifData* metadata) {
 1046|    540|  if (!metadata)
  ------------------
  |  Branch (1046:7): [True: 270, False: 270]
  ------------------
 1047|    270|    return os << "undefined";
 1048|       |
 1049|    270|  auto dateIt = metadata->findKey(ExifKey("Exif.PentaxDng.Date"));
 1050|    270|  if (dateIt == metadata->end()) {
  ------------------
  |  Branch (1050:7): [True: 57, False: 213]
  ------------------
 1051|     57|    dateIt = metadata->findKey(ExifKey("Exif.Pentax.Date"));
 1052|     57|  }
 1053|       |
 1054|    270|  auto timeIt = metadata->findKey(ExifKey("Exif.PentaxDng.Time"));
 1055|    270|  if (timeIt == metadata->end()) {
  ------------------
  |  Branch (1055:7): [True: 98, False: 172]
  ------------------
 1056|     98|    timeIt = metadata->findKey(ExifKey("Exif.Pentax.Time"));
 1057|     98|  }
 1058|       |
 1059|    270|  if (dateIt == metadata->end() || dateIt->size() != 4 || timeIt == metadata->end() || timeIt->size() != 3 ||
  ------------------
  |  Branch (1059:7): [True: 57, False: 213]
  |  Branch (1059:7): [True: 208, False: 62]
  |  Branch (1059:36): [True: 15, False: 198]
  |  Branch (1059:59): [True: 52, False: 146]
  |  Branch (1059:88): [True: 35, False: 111]
  ------------------
 1060|    208|      value.size() != 4) {
  ------------------
  |  Branch (1060:7): [True: 49, False: 62]
  ------------------
 1061|    208|    os << "undefined";
 1062|    208|    return os;
 1063|    208|  }
 1064|     62|  const uint32_t date = (dateIt->toUint32(0) << 24) + (dateIt->toUint32(1) << 16) + (dateIt->toUint32(2) << 8) +
 1065|     62|                        (dateIt->toUint32(3) << 0);
 1066|     62|  const uint32_t time = (timeIt->toUint32(0) << 24) + (timeIt->toUint32(1) << 16) + (timeIt->toUint32(2) << 8);
 1067|     62|  const uint32_t countEnc =
 1068|     62|      (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|     62|  const uint32_t count = countEnc ^ date ^ (~time);
 1074|     62|  os << count;
 1075|     62|  return os;
 1076|    270|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1259|  2.30k|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.30k|  static constexpr struct LensIdFct {
 1262|  2.30k|    uint32_t id_;   //!< Lens id
 1263|  2.30k|    PrintFct fct_;  //!< Pretty-print function
 1264|       |    //! Comparison operator for find template
 1265|  2.30k|    bool operator==(uint32_t id) const {
 1266|  2.30k|      return id_ == id;
 1267|  2.30k|    }
 1268|  2.30k|  } lensIdFct[] = {
 1269|  2.30k|      {0x0317, resolveLensType}, {0x0319, resolveLens0x319}, {0x031b, resolveLensType},  {0x031c, resolveLensType},
 1270|  2.30k|      {0x031d, resolveLensType}, {0x031f, resolveLensType},  {0x0329, resolveLensType},  {0x032c, resolveLens0x32c},
 1271|  2.30k|      {0x032e, resolveLensType}, {0x0334, resolveLensType},  {0x03ff, resolveLens0x3ff}, {0x041a, resolveLensType},
 1272|  2.30k|      {0x042d, resolveLensType}, {0x08ff, resolveLens0x8ff},
 1273|  2.30k|  };
 1274|       |  // #1034
 1275|  2.30k|  const std::string undefined("undefined");
 1276|  2.30k|  const std::string section("pentax");
 1277|  2.30k|  if (Internal::readExiv2Config(section, value.toString(), undefined) != undefined) {
  ------------------
  |  Branch (1277:7): [True: 0, False: 2.30k]
  ------------------
 1278|      0|    return os << Internal::readExiv2Config(section, value.toString(), undefined);
 1279|      0|  }
 1280|       |
 1281|  2.30k|  const auto index = (value.toUint32(0) * 256) + value.toUint32(1);
 1282|       |
 1283|       |  // std::cout << '\n' << "printLensType value =" << value.toLong() << " index = " << index << '\n';
 1284|  2.30k|  auto lif = Exiv2::find(lensIdFct, index);
 1285|  2.30k|  if (!lif)
  ------------------
  |  Branch (1285:7): [True: 688, False: 1.61k]
  ------------------
 1286|    688|    return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    688|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1287|  1.61k|  if (metadata && lif->fct_)
  ------------------
  |  Branch (1287:7): [True: 716, False: 900]
  |  Branch (1287:19): [True: 716, False: 0]
  ------------------
 1288|    716|    return lif->fct_(os, value, metadata);
 1289|    900|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (1289:7): [True: 818, False: 82]
  |  Branch (1289:42): [True: 0, False: 82]
  ------------------
 1290|    634|    return os << "(" << value << ")";
 1291|    266|  return os << value;
 1292|    900|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL15resolveLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1254|    124|static std::ostream& resolveLensType(std::ostream& os, const Value& value, const ExifData* metadata) {
 1255|    124|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    124|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1256|    124|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x319ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1224|     94|{
 1225|     94|  try {
 1226|     94|    unsigned long index = 0;
 1227|       |
 1228|     94|    const auto lensInfo = findLensInfo(metadata);
 1229|     94|    if (value.count() == 4) {
  ------------------
  |  Branch (1229:9): [True: 23, False: 71]
  ------------------
 1230|     23|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1231|     23|      if (model.starts_with("PENTAX K-3") && lensInfo->count() == 128 && lensInfo->toUint32(1) == 131 &&
  ------------------
  |  Branch (1231:11): [True: 0, False: 23]
  |  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|     23|    }
 1235|     94|    if (value.count() == 2) {
  ------------------
  |  Branch (1235:9): [True: 45, False: 49]
  ------------------
 1236|     45|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1237|     45|      if (model.starts_with("PENTAX K100D") && lensInfo->count() == 44)
  ------------------
  |  Branch (1237:11): [True: 10, False: 35]
  |  Branch (1237:48): [True: 0, False: 10]
  ------------------
 1238|      0|        index = 6;
 1239|     45|      if (model.starts_with("PENTAX *ist DL") && lensInfo->count() == 36)
  ------------------
  |  Branch (1239:11): [True: 6, False: 39]
  |  Branch (1239:50): [True: 0, False: 6]
  ------------------
 1240|      0|        index = 6;
 1241|     45|    }
 1242|       |
 1243|     94|    if (index > 0) {
  ------------------
  |  Branch (1243:9): [True: 0, False: 94]
  ------------------
 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|     94|  } catch (...) {
 1249|     26|  }
 1250|     94|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     94|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1251|     94|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL12findLensInfoEPKNS_8ExifDataE:
 1096|    577|static ExifData::const_iterator findLensInfo(const ExifData* metadata) {
 1097|    577|  const auto dngLensInfo = metadata->findKey(ExifKey("Exif.PentaxDng.LensInfo"));
 1098|    577|  if (dngLensInfo != metadata->end()) {
  ------------------
  |  Branch (1098:7): [True: 447, False: 130]
  ------------------
 1099|    447|    return dngLensInfo;
 1100|    447|  }
 1101|    130|  const auto lensInfo = metadata->findKey(ExifKey("Exif.Pentax.LensInfo"));
 1102|    130|  if (lensInfo != metadata->end()) {
  ------------------
  |  Branch (1102:7): [True: 23, False: 107]
  ------------------
 1103|     23|    return lensInfo;
 1104|     23|  }
 1105|    107|  throw LensInfoNotFound();
 1106|    130|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL12getKeyStringERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
 1079|    185|static std::string getKeyString(const std::string& key, const ExifData* metadata) {
 1080|    185|  std::string result;
 1081|    185|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1081:7): [True: 138, False: 47]
  ------------------
 1082|    138|    result = metadata->findKey(ExifKey(key))->toString();
 1083|    138|  }
 1084|    185|  return result;
 1085|    185|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x32cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1109|     15|static std::ostream& resolveLens0x32c(std::ostream& os, const Value& value, const ExifData* metadata) {
 1110|     15|  try {
 1111|     15|    unsigned long index = 0;
 1112|       |
 1113|     15|    long focalLength = getKeyLong("Exif.Photo.FocalLength", metadata);
 1114|     15|    bool bFL10_20 = 10 <= focalLength && focalLength <= 20;
  ------------------
  |  Branch (1114:21): [True: 0, False: 15]
  |  Branch (1114:42): [True: 0, False: 0]
  ------------------
 1115|       |
 1116|       |    // std::cout << "model,focalLength = " << model << "," << focalLength << '\n';
 1117|     15|    if (bFL10_20) {
  ------------------
  |  Branch (1117:9): [True: 0, False: 15]
  ------------------
 1118|      0|      index = 1;
 1119|      0|    }
 1120|       |
 1121|     15|    if (index > 0) {
  ------------------
  |  Branch (1121:9): [True: 0, False: 15]
  ------------------
 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|     15|  } catch (...) {
 1127|      0|  }
 1128|     15|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     15|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1129|     15|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL10getKeyLongERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
 1087|     15|static long getKeyLong(const std::string& key, const ExifData* metadata) {
 1088|     15|  long result = -1;
 1089|     15|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1089:7): [True: 0, False: 15]
  ------------------
 1090|      0|    result = static_cast<long>(metadata->findKey(ExifKey(key))->toFloat(0));
 1091|      0|  }
 1092|     15|  return result;
 1093|     15|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x3ffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1136|    306|{
 1137|    306|  try {
 1138|    306|    unsigned long index = 0;
 1139|       |
 1140|       |    // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Pentax.html#LensData
 1141|    306|    const auto lensInfo = findLensInfo(metadata);
 1142|    306|    if (lensInfo->count() < 5)
  ------------------
  |  Branch (1142:9): [True: 39, False: 267]
  ------------------
 1143|     39|      return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     39|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1144|       |
 1145|    267|    if (value.count() == 2) {
  ------------------
  |  Branch (1145:9): [True: 86, False: 181]
  ------------------
 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|     86|      unsigned long base = 1;
 1152|       |
 1153|     86|      unsigned int autoAperture = lensInfo->toUint32(base + 1) & 0x01;
 1154|     86|      unsigned int minAperture = lensInfo->toUint32(base + 2) & 0x06;
 1155|     86|      unsigned int minFocusDistance = lensInfo->toUint32(base + 3) & 0xf8;
 1156|       |
 1157|     86|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 4) == 148)
  ------------------
  |  Branch (1157:11): [True: 68, False: 18]
  |  Branch (1157:34): [True: 55, False: 13]
  |  Branch (1157:56): [True: 38, False: 17]
  |  Branch (1157:84): [True: 10, False: 28]
  ------------------
 1158|     10|        index = 8;
 1159|     86|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 5) == 110)
  ------------------
  |  Branch (1159:11): [True: 68, False: 18]
  |  Branch (1159:34): [True: 55, False: 13]
  |  Branch (1159:56): [True: 38, False: 17]
  |  Branch (1159:84): [True: 10, False: 28]
  ------------------
 1160|     10|        index = 7;
 1161|     86|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 4) == 110)
  ------------------
  |  Branch (1161:11): [True: 68, False: 18]
  |  Branch (1161:34): [True: 55, False: 13]
  |  Branch (1161:56): [True: 38, False: 17]
  |  Branch (1161:84): [True: 10, False: 28]
  ------------------
 1162|     10|        index = 7;
 1163|       |
 1164|    181|    } else if (value.count() == 3) {
  ------------------
  |  Branch (1164:16): [True: 56, False: 125]
  ------------------
 1165|       |      // http://dev.exiv2.org/attachments/download/858/_IGP9032.DNG
 1166|       |      // $ exiv2 -pv --grep Lens ~/Downloads/_IGP9032.DNG
 1167|       |      // 0x003f PentaxDng    LensType  Byte        3    3 255   0
 1168|       |      // 0x0207 PentaxDng    LensInfo  Undefined  69  131   0   0 255 0  40 148  68 244 ...
 1169|       |      //                                                0   1   2   3 4   5   6
 1170|     56|      if (lensInfo->toUint32(4) == 0 && lensInfo->toUint32(5) == 40 && lensInfo->toUint32(6) == 148)
  ------------------
  |  Branch (1170:11): [True: 38, False: 18]
  |  Branch (1170:41): [True: 20, False: 18]
  |  Branch (1170:72): [True: 10, False: 10]
  ------------------
 1171|     10|        index = 8;
 1172|       |
 1173|    125|    } else if (value.count() == 4) {
  ------------------
  |  Branch (1173:16): [True: 69, False: 56]
  ------------------
 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|     69|      if (lensInfo->count() == 128 && lensInfo->toUint32(1) == 131 && lensInfo->toUint32(2) == 128)
  ------------------
  |  Branch (1177:11): [True: 28, False: 41]
  |  Branch (1177:39): [True: 16, False: 12]
  |  Branch (1177:71): [True: 6, False: 10]
  ------------------
 1178|      6|        index = 8;
 1179|       |      // #1155
 1180|     69|      if (lensInfo->toUint32(6) == 5)
  ------------------
  |  Branch (1180:11): [True: 11, False: 58]
  ------------------
 1181|     11|        index = 7;
 1182|     69|    }
 1183|       |
 1184|    267|    if (index > 0) {
  ------------------
  |  Branch (1184:9): [True: 47, False: 220]
  ------------------
 1185|     47|      const unsigned long lensID = 0x3ff;
 1186|     47|      auto td = Exiv2::find(pentaxLensType, lensID);
 1187|     47|      return os << _(td[index].label_);
  ------------------
  |  |   40|     47|#define _(String) (String)
  ------------------
 1188|     47|    }
 1189|    267|  } catch (...) {
 1190|     51|  }
 1191|    220|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    220|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1192|    306|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x8ffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1198|    177|{
 1199|    177|  try {
 1200|    177|    unsigned long index = 0;
 1201|       |
 1202|    177|    const auto lensInfo = findLensInfo(metadata);
 1203|    177|    if (value.count() == 4) {
  ------------------
  |  Branch (1203:9): [True: 117, False: 60]
  ------------------
 1204|    117|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1205|    117|      if (model.starts_with("PENTAX K-3") && lensInfo->count() == 128 && lensInfo->toUint32(1) == 168 &&
  ------------------
  |  Branch (1205:11): [True: 36, False: 81]
  |  Branch (1205:46): [True: 18, False: 18]
  |  Branch (1205:74): [True: 12, False: 6]
  ------------------
 1206|     12|          lensInfo->toUint32(2) == 144)
  ------------------
  |  Branch (1206:11): [True: 6, False: 6]
  ------------------
 1207|      6|        index = 7;
 1208|    117|    }
 1209|       |
 1210|    177|    if (index > 0) {
  ------------------
  |  Branch (1210:9): [True: 6, False: 171]
  ------------------
 1211|      6|      const unsigned long lensID = 0x8ff;
 1212|      6|      auto td = Exiv2::find(pentaxLensType, lensID);
 1213|      6|      return os << _(td[index].label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1214|      6|    }
 1215|    177|  } catch (...) {
 1216|     35|  }
 1217|    171|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    171|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1218|    177|}
pentaxmn_int.cpp:_ZZN5Exiv28InternalL13printLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK9LensIdFcteqEj:
 1265|  23.7k|    bool operator==(uint32_t id) const {
 1266|  23.7k|      return id_ == id;
 1267|  23.7k|    }
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm298ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLensTypeEELi2ELi1ELi2EEERNSt3__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: 1.09k, False: 258]
  ------------------
   36|  1.09k|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 0, False: 1.09k]
  |  Branch (36:51): [True: 140, False: 953]
  ------------------
   37|    140|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    140|    return printValue(os, value, metadata);
   39|    140|  }
   40|  1.21k|  uint32_t l = 0;
   41|  2.50k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 1.91k, False: 584]
  ------------------
   42|  1.91k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 130, False: 1.78k]
  |  Branch (42:33): [True: 497, False: 1.29k]
  ------------------
   43|    627|      return printValue(os, value, metadata);
   44|    627|    }
   45|  1.29k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  1.29k|  }
   47|       |
   48|    584|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 462, False: 122]
  ------------------
   49|    462|    os << _(td->label_);
  ------------------
  |  |   40|    462|#define _(String) (String)
  ------------------
   50|    462|  } 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|    584|  os.flags(f);
   55|    584|  return os;
   56|  1.21k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21pentaxImageProcessingEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.84k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.84k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.84k|  std::ios::fmtflags f(os.flags());
   35|  1.84k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 216, False: 1.62k]
  ------------------
   36|    216|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 100, False: 116]
  |  Branch (36:51): [True: 116, False: 0]
  ------------------
   37|    216|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    216|    return printValue(os, value, metadata);
   39|    216|  }
   40|  1.62k|  uint32_t l = 0;
   41|  6.23k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 5.36k, False: 866]
  ------------------
   42|  5.36k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 342, False: 5.02k]
  |  Branch (42:33): [True: 420, False: 4.60k]
  ------------------
   43|    762|      return printValue(os, value, metadata);
   44|    762|    }
   45|  4.60k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  4.60k|  }
   47|       |
   48|    866|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 590, False: 276]
  ------------------
   49|    590|    os << _(td->label_);
  ------------------
  |  |   40|    590|#define _(String) (String)
  ------------------
   50|    590|  } else {
   51|    276|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    276|#define _(String) (String)
  ------------------
   52|    276|  }
   53|       |
   54|    866|  os.flags(f);
   55|    866|  return os;
   56|  1.62k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17pentaxPictureModeEELi3ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  5.15k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  5.15k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  5.15k|  std::ios::fmtflags f(os.flags());
   35|  5.15k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 214, False: 4.94k]
  ------------------
   36|    214|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 88, False: 126]
  |  Branch (36:51): [True: 126, False: 0]
  ------------------
   37|    214|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    214|    return printValue(os, value, metadata);
   39|    214|  }
   40|  4.94k|  uint32_t l = 0;
   41|  18.3k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 14.0k, False: 4.26k]
  ------------------
   42|  14.0k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 326, False: 13.7k]
  |  Branch (42:33): [True: 350, False: 13.4k]
  ------------------
   43|    676|      return printValue(os, value, metadata);
   44|    676|    }
   45|  13.4k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  13.4k|  }
   47|       |
   48|  4.26k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 3.84k, False: 426]
  ------------------
   49|  3.84k|    os << _(td->label_);
  ------------------
  |  |   40|  3.84k|#define _(String) (String)
  ------------------
   50|  3.84k|  } else {
   51|    426|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    426|#define _(String) (String)
  ------------------
   52|    426|  }
   53|       |
   54|  4.26k|  os.flags(f);
   55|  4.26k|  return os;
   56|  4.94k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxDriveModeEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  4.65k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  4.65k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  4.65k|  std::ios::fmtflags f(os.flags());
   35|  4.65k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 244, False: 4.40k]
  ------------------
   36|    244|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 140, False: 104]
  |  Branch (36:51): [True: 104, False: 0]
  ------------------
   37|    244|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    244|    return printValue(os, value, metadata);
   39|    244|  }
   40|  4.40k|  uint32_t l = 0;
   41|  17.5k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 14.8k, False: 2.76k]
  ------------------
   42|  14.8k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 712, False: 14.1k]
  |  Branch (42:33): [True: 934, False: 13.1k]
  ------------------
   43|  1.64k|      return printValue(os, value, metadata);
   44|  1.64k|    }
   45|  13.1k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  13.1k|  }
   47|       |
   48|  2.76k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 2.19k, False: 570]
  ------------------
   49|  2.19k|    os << _(td->label_);
  ------------------
  |  |   40|  2.19k|#define _(String) (String)
  ------------------
   50|  2.19k|  } else {
   51|    570|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    570|#define _(String) (String)
  ------------------
   52|    570|  }
   53|       |
   54|  2.76k|  os.flags(f);
   55|  2.76k|  return os;
   56|  4.40k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxDynamicRangeExpansionEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.21k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.21k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.21k|  std::ios::fmtflags f(os.flags());
   35|  1.21k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 184, False: 1.03k]
  ------------------
   36|    184|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 58, False: 126]
  |  Branch (36:51): [True: 126, False: 0]
  ------------------
   37|    184|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    184|    return printValue(os, value, metadata);
   39|    184|  }
   40|  1.03k|  uint32_t l = 0;
   41|  2.85k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 2.63k, False: 216]
  ------------------
   42|  2.63k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 306, False: 2.33k]
  |  Branch (42:33): [True: 508, False: 1.82k]
  ------------------
   43|    814|      return printValue(os, value, metadata);
   44|    814|    }
   45|  1.82k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  1.82k|  }
   47|       |
   48|    216|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 48, False: 168]
  ------------------
   49|     48|    os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
   50|    168|  } else {
   51|    168|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    168|#define _(String) (String)
  ------------------
   52|    168|  }
   53|       |
   54|    216|  os.flags(f);
   55|    216|  return os;
   56|  1.03k|}

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

_ZN5Exiv28PgfImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   53|    142|    Image(ImageType::pgf, mdExif | mdIptc | mdXmp | mdComment, std::move(io)), bSwap_(isBigEndianPlatform()) {
   54|    142|  if (create && io_->open() == 0) {
  ------------------
  |  Branch (54:7): [True: 0, False: 142]
  |  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|    142|}  // PgfImage::PgfImage
_ZN5Exiv28PgfImage12readMetadataEv:
   67|    142|void PgfImage::readMetadata() {
   68|       |#ifdef EXIV2_DEBUG_MESSAGES
   69|       |  std::cerr << "Exiv2::PgfImage::readMetadata: Reading PGF file " << io_->path() << "\n";
   70|       |#endif
   71|    142|  if (io_->open() != 0) {
  ------------------
  |  Branch (71:7): [True: 0, False: 142]
  ------------------
   72|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   73|      0|  }
   74|    142|  IoCloser closer(*io_);
   75|       |  // Ensure that this is the correct image type
   76|    142|  if (!isPgfType(*io_, true)) {
  ------------------
  |  Branch (76:7): [True: 0, False: 142]
  ------------------
   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|    142|  clearMetadata();
   82|       |
   83|    142|  readPgfMagicNumber(*io_);
   84|       |
   85|    142|  size_t headerSize = readPgfHeaderSize(*io_);
   86|    142|  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|    142|  Internal::enforce(headerSize <= std::numeric_limits<size_t>::max() - 8, ErrorCode::kerCorruptedMetadata);
   91|    142|  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|    142|  if (size > io_->size())
  ------------------
  |  Branch (97:7): [True: 47, False: 95]
  ------------------
   98|     47|    throw Error(ErrorCode::kerInputDataReadFailed);
   99|     95|  if (size == 0)
  ------------------
  |  Branch (99:7): [True: 11, False: 84]
  ------------------
  100|     11|    return;
  101|       |
  102|     84|  DataBuf imgData(size);
  103|     84|  const size_t bufRead = io_->read(imgData.data(), imgData.size());
  104|     84|  if (io_->error())
  ------------------
  |  Branch (104:7): [True: 0, False: 84]
  ------------------
  105|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  106|     84|  if (bufRead != imgData.size())
  ------------------
  |  Branch (106:7): [True: 11, False: 73]
  ------------------
  107|     11|    throw Error(ErrorCode::kerInputDataReadFailed);
  108|       |
  109|     73|  auto image = Exiv2::ImageFactory::open(imgData.c_data(), imgData.size());
  110|     73|  image->readMetadata();
  111|     73|  exifData() = image->exifData();
  112|     73|  iptcData() = image->iptcData();
  113|     73|  xmpData() = image->xmpData();
  114|     73|}
_ZN5Exiv28PgfImage18readPgfMagicNumberERNS_7BasicIoE:
  218|    142|byte PgfImage::readPgfMagicNumber(BasicIo& iIo) {
  219|    142|  auto b = static_cast<byte>(iIo.getb());
  220|    142|  if (iIo.error())
  ------------------
  |  Branch (220:7): [True: 0, False: 142]
  ------------------
  221|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  222|       |
  223|    142|  if (b < 0x36)  // 0x36 = '6'.
  ------------------
  |  Branch (223:7): [True: 32, False: 110]
  ------------------
  224|     32|  {
  225|       |    // Not right Magick version.
  226|       |#ifdef EXIV2_DEBUG_MESSAGES
  227|       |    std::cout << "Exiv2::PgfImage::readMetadata: wrong Magick number\n";
  228|       |#endif
  229|     32|  }
  230|       |
  231|    142|  return b;
  232|    142|}  // PgfImage::readPgfMagicNumber
_ZNK5Exiv28PgfImage17readPgfHeaderSizeERNS_7BasicIoE:
  234|    142|size_t PgfImage::readPgfHeaderSize(BasicIo& iIo) const {
  235|    142|  DataBuf buffer(4);
  236|    142|  const size_t bufRead = iIo.read(buffer.data(), buffer.size());
  237|    142|  if (iIo.error())
  ------------------
  |  Branch (237:7): [True: 0, False: 142]
  ------------------
  238|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  239|    142|  if (bufRead != buffer.size())
  ------------------
  |  Branch (239:7): [True: 0, False: 142]
  ------------------
  240|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  241|       |
  242|    142|  auto headerSize = static_cast<size_t>(byteSwap_(buffer, 0, bSwap_));
  243|    142|  if (headerSize == 0)
  ------------------
  |  Branch (243:7): [True: 3, False: 139]
  ------------------
  244|      3|    throw Error(ErrorCode::kerNoImageInInputData);
  245|       |
  246|       |#ifdef EXIV2_DEBUG_MESSAGES
  247|       |  std::cout << "Exiv2::PgfImage: PGF header size : " << headerSize << " bytes\n";
  248|       |#endif
  249|       |
  250|    139|  return headerSize;
  251|    142|}
_ZNK5Exiv28PgfImage22readPgfHeaderStructureERNS_7BasicIoERjS3_:
  253|    139|DataBuf PgfImage::readPgfHeaderStructure(BasicIo& iIo, uint32_t& width, uint32_t& height) const {
  254|    139|  DataBuf header(16);
  255|    139|  size_t bufRead = iIo.read(header.data(), header.size());
  256|    139|  if (iIo.error())
  ------------------
  |  Branch (256:7): [True: 0, False: 139]
  ------------------
  257|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  258|    139|  if (bufRead != header.size())
  ------------------
  |  Branch (258:7): [True: 0, False: 139]
  ------------------
  259|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  260|       |
  261|    139|  DataBuf work(header.data(), 8);  // don't disturb the binary data - doWriteMetadata reuses it
  262|    139|  width = byteSwap_(work, 0, bSwap_);
  263|    139|  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|    139|  if (header.read_uint8(12) == 2)  // Indexed color image. We pass color table (256 * 3 bytes).
  ------------------
  |  Branch (272:7): [True: 9, False: 130]
  ------------------
  273|      9|  {
  274|      9|    header.alloc(16 + (256 * 3));
  275|       |
  276|      9|    bufRead = iIo.read(header.data(16), 256 * 3);
  277|      9|    if (iIo.error())
  ------------------
  |  Branch (277:9): [True: 0, False: 9]
  ------------------
  278|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  279|      9|    if (bufRead != 256 * 3)
  ------------------
  |  Branch (279:9): [True: 8, False: 1]
  ------------------
  280|      8|      throw Error(ErrorCode::kerInputDataReadFailed);
  281|      9|  }
  282|       |
  283|    131|  return header;
  284|    139|}  // PgfImage::readPgfHeaderStructure
_ZN5Exiv214newPgfInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  288|    142|Image::UniquePtr newPgfInstance(BasicIo::UniquePtr io, bool create) {
  289|    142|  auto image = std::make_unique<PgfImage>(std::move(io), create);
  290|    142|  if (!image->good()) {
  ------------------
  |  Branch (290:7): [True: 0, False: 142]
  ------------------
  291|      0|    return nullptr;
  292|      0|  }
  293|    142|  return image;
  294|    142|}
_ZN5Exiv29isPgfTypeERNS_7BasicIoEb:
  296|  13.2k|bool isPgfType(BasicIo& iIo, bool advance) {
  297|  13.2k|  const int32_t len = 3;
  298|  13.2k|  std::array<byte, len> buf;
  299|  13.2k|  iIo.read(buf.data(), len);
  300|  13.2k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (300:7): [True: 0, False: 13.2k]
  |  Branch (300:22): [True: 0, False: 13.2k]
  ------------------
  301|      0|    return false;
  302|      0|  }
  303|  13.2k|  bool rc = buf == pgfSignature;
  304|  13.2k|  if (!advance || !rc) {
  ------------------
  |  Branch (304:7): [True: 13.0k, False: 142]
  |  Branch (304:19): [True: 0, False: 142]
  ------------------
  305|  13.0k|    iIo.seek(-len, BasicIo::cur);
  306|  13.0k|  }
  307|       |
  308|  13.2k|  return rc;
  309|  13.2k|}
pgfimage.cpp:_ZN5Exiv2L9byteSwap_ERNS_7DataBufEmb:
   39|    420|static uint32_t byteSwap_(Exiv2::DataBuf& buf, size_t offset, bool bSwap) {
   40|    420|  uint32_t v = 0;
   41|    420|  auto p = reinterpret_cast<byte*>(&v);
   42|    420|  int i;
   43|  2.10k|  for (i = 0; i < 4; i++)
  ------------------
  |  Branch (43:15): [True: 1.68k, False: 420]
  ------------------
   44|  1.68k|    p[i] = buf.read_uint8(offset + i);
   45|    420|  uint32_t result = Image::byteSwap(v, bSwap);
   46|    420|  p = reinterpret_cast<byte*>(&result);
   47|  2.10k|  for (i = 0; i < 4; i++)
  ------------------
  |  Branch (47:15): [True: 1.68k, False: 420]
  ------------------
   48|  1.68k|    buf.write_uint8(offset + i, p[i]);
   49|    420|  return result;
   50|    420|}

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

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

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

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

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

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

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

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

_ZN5Exiv29RiffVideoC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  364|    298|RiffVideo::RiffVideo(BasicIo::UniquePtr io) : Image(ImageType::riff, mdNone, std::move(io)) {
  365|    298|}  // RiffVideo::RiffVideo
_ZNK5Exiv29RiffVideo8mimeTypeEv:
  367|    298|std::string RiffVideo::mimeType() const {
  368|    298|  return "video/riff";
  369|    298|}
_ZN5Exiv29RiffVideo12readMetadataEv:
  374|    298|void RiffVideo::readMetadata() {
  375|    298|  if (io_->open() != 0)
  ------------------
  |  Branch (375:7): [True: 0, False: 298]
  ------------------
  376|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  377|       |
  378|       |  // Ensure that this is the correct image type
  379|    298|  if (!isRiffType(*io_, false)) {
  ------------------
  |  Branch (379:7): [True: 0, False: 298]
  ------------------
  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|    298|  IoCloser closer(*io_);
  386|    298|  clearMetadata();
  387|       |
  388|    298|  xmpData_["Xmp.video.FileSize"] = io_->size();
  389|    298|  xmpData_["Xmp.video.MimeType"] = mimeType();
  390|       |
  391|    298|  HeaderReader header(io_);
  392|    298|  xmpData_["Xmp.video.Container"] = header.getId();
  393|       |
  394|    298|  xmpData_["Xmp.video.FileType"] = readStringTag(io_);
  395|       |
  396|    298|  decodeBlocks();
  397|    298|}  // RiffVideo::readMetadata
_ZN5Exiv29RiffVideo12HeaderReaderC2ERKNSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEE:
  399|  29.2k|RiffVideo::HeaderReader::HeaderReader(const BasicIo::UniquePtr& io) {
  400|  29.2k|  Internal::enforce(io->size() > io->tell() + DWORD + DWORD, Exiv2::ErrorCode::kerCorruptedMetadata);
  401|  29.2k|  id_ = readStringTag(io);
  402|  29.2k|  size_ = readDWORDTag(io);
  403|  29.2k|}
_ZN5Exiv29RiffVideo5equalERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  405|   309k|bool RiffVideo::equal(const std::string& str1, const std::string& str2) {
  406|   309k|  if (str1.size() != str2.size())
  ------------------
  |  Branch (406:7): [True: 304k, False: 5.64k]
  ------------------
  407|   304k|    return false;
  408|       |
  409|  5.64k|  return Internal::upper(str1) == str2;
  410|   309k|}
_ZN5Exiv29RiffVideo8readListERKNS0_12HeaderReaderE:
  412|    255|void RiffVideo::readList(const HeaderReader& header_) {
  413|    255|  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|    255|  if (equal(chunk_type, CHUNK_ID_INFO))
  ------------------
  |  Branch (420:7): [True: 134, False: 121]
  ------------------
  421|    134|    readInfoListChunk(header_.getSize());
  422|    121|  else if (equal(chunk_type, CHUNK_ID_MOVI)) {
  ------------------
  |  Branch (422:12): [True: 2, False: 119]
  ------------------
  423|      2|    readMoviList(header_.getSize());
  424|      2|  }
  425|    255|}
_ZN5Exiv29RiffVideo9readChunkERKNS0_12HeaderReaderE:
  427|  28.6k|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.6k|  if (equal(header_.getId(), CHUNK_ID_AVIH))
  ------------------
  |  Branch (434:7): [True: 137, False: 28.4k]
  ------------------
  435|    137|    readAviHeader();
  436|  28.4k|  else if (equal(header_.getId(), CHUNK_ID_STRH))
  ------------------
  |  Branch (436:12): [True: 110, False: 28.3k]
  ------------------
  437|    110|    readStreamHeader();
  438|  28.3k|  else if (equal(header_.getId(), CHUNK_ID_STRF))
  ------------------
  |  Branch (438:12): [True: 29, False: 28.3k]
  ------------------
  439|     29|    readStreamFormat(header_.getSize());
  440|  28.3k|  else if (equal(header_.getId(), CHUNK_ID_FMT)) {
  ------------------
  |  Branch (440:12): [True: 534, False: 27.8k]
  ------------------
  441|    534|    streamType_ = Audio;
  442|    534|    readStreamFormat(header_.getSize());
  443|  27.8k|  } else if (equal(header_.getId(), CHUNK_ID_STRD))
  ------------------
  |  Branch (443:14): [True: 6, False: 27.8k]
  ------------------
  444|      6|    readStreamData(header_.getSize());
  445|  27.8k|  else if (equal(header_.getId(), CHUNK_ID_STRN))
  ------------------
  |  Branch (445:12): [True: 2, False: 27.8k]
  ------------------
  446|      2|    StreamName(header_.getSize());
  447|  27.8k|  else if (equal(header_.getId(), CHUNK_ID_VPRP))
  ------------------
  |  Branch (447:12): [True: 10, False: 27.7k]
  ------------------
  448|     10|    readVPRPChunk(header_.getSize());
  449|  27.7k|  else if (equal(header_.getId(), CHUNK_ID_IDX1))
  ------------------
  |  Branch (449:12): [True: 3, False: 27.7k]
  ------------------
  450|      3|    readIndexChunk(header_.getSize());
  451|  27.7k|  else if (equal(header_.getId(), CHUNK_ID_DATA))
  ------------------
  |  Branch (451:12): [True: 47, False: 27.7k]
  ------------------
  452|     47|    readDataChunk(header_.getSize());
  453|  27.7k|  else if (equal(header_.getId(), CHUNK_ID_JUNK))
  ------------------
  |  Branch (453:12): [True: 10, False: 27.7k]
  ------------------
  454|     10|    readJunk(header_.getSize());
  455|  27.7k|  else {
  456|       |#ifdef EXIV2_DEBUG_MESSAGES
  457|       |    if (header_.getSize())
  458|       |      EXV_WARNING << "--> Ignoring Chunk : " << header_.getId() << "] size= " << header_.getSize() << "(" << io_->tell()
  459|       |                  << "/" << io_->size() << ")" << '\n';
  460|       |#endif
  461|  27.7k|    io_->seekOrThrow(io_->tell() + header_.getSize(), BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  462|  27.7k|  }
  463|  28.6k|}
_ZN5Exiv29RiffVideo12decodeBlocksEv:
  465|    298|void RiffVideo::decodeBlocks() {
  466|  28.9k|  do {
  467|  28.9k|    if (HeaderReader header(io_); equal(header.getId(), CHUNK_ID_LIST)) {
  ------------------
  |  Branch (467:35): [True: 255, False: 28.6k]
  ------------------
  468|    255|      readList(header);
  469|  28.6k|    } else {
  470|  28.6k|      readChunk(header);
  471|  28.6k|    }
  472|  28.9k|  } while (!io_->eof() && io_->tell() < io_->size());
  ------------------
  |  Branch (472:12): [True: 28.6k, False: 284]
  |  Branch (472:27): [True: 28.6k, False: 14]
  ------------------
  473|    298|}  // RiffVideo::decodeBlock
_ZN5Exiv29RiffVideo13readAviHeaderEv:
  475|    137|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|    137|  uint32_t TimeBetweenFrames = readDWORDTag(io_);
  496|    137|  xmpData_["Xmp.video.MicroSecPerFrame"] = TimeBetweenFrames;
  497|    137|  double frame_rate = 1000000. / TimeBetweenFrames;
  498|       |
  499|    137|  xmpData_["Xmp.video.MaxDataRate"] = readDWORDTag(io_);  // MaximumDataRate
  500|       |
  501|    137|  io_->seekOrThrow(io_->tell() + (DWORD * 2), BasicIo::beg,
  502|    137|                   ErrorCode::kerFailedToReadImageData);  // ignore PaddingGranularity and Flags
  503|       |
  504|    137|  uint32_t frame_count = readDWORDTag(io_);  // TotalNumberOfFrames
  505|    137|  xmpData_["Xmp.video.FrameCount"] = frame_count;
  506|       |
  507|    137|  io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg,
  508|    137|                   ErrorCode::kerFailedToReadImageData);  // ignore NumberOfInitialFrames
  509|       |
  510|    137|  xmpData_["Xmp.audio.ChannelType"] = getStreamType(readDWORDTag(io_));  // NumberOfStreams
  511|       |
  512|    137|  xmpData_["Xmp.video.StreamCount"] = readDWORDTag(io_);  // SuggestedBufferSize
  513|       |
  514|    137|  uint32_t width = readDWORDTag(io_);
  515|    137|  xmpData_["Xmp.video.Width"] = width;
  516|       |
  517|    137|  uint32_t height = readDWORDTag(io_);
  518|    137|  xmpData_["Xmp.video.Height"] = height;
  519|       |
  520|    137|  io_->seekOrThrow(io_->tell() + (DWORD * 4), BasicIo::beg,
  521|    137|                   ErrorCode::kerFailedToReadImageData);  // TimeScale, DataRate, StartTime, DataLength
  522|       |
  523|    137|  xmpData_["Xmp.video.AspectRatio"] = getAspectRatio(width, height);
  524|       |
  525|    137|  fillDuration(frame_rate, frame_count);
  526|    137|}
_ZN5Exiv29RiffVideo16readStreamHeaderEv:
  528|    110|void RiffVideo::readStreamHeader() {
  529|    110|  std::string stream = readStringTag(io_);
  530|    110|  streamType_ = (equal(stream, "VIDS")) ? Video : Audio;
  ------------------
  |  Branch (530:17): [True: 31, False: 79]
  ------------------
  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|    110|  xmpData_["Xmp.video.Codec"] = readStringTag(io_);  // DataHandler
  555|       |
  556|    110|  io_->seekOrThrow(io_->tell() + (DWORD * 2) + (WORD * 2), BasicIo::beg,
  557|    110|                   ErrorCode::kerFailedToReadImageData);  // dwFlags, wPriority, wLanguage, dwInitialFrames
  558|       |
  559|    110|  uint32_t divisor = readDWORDTag(io_);  // TimeScale
  560|       |
  561|    110|  if (divisor) {
  ------------------
  |  Branch (561:7): [True: 95, False: 15]
  ------------------
  562|     95|    auto rate = static_cast<double>(readDWORDTag(io_)) / divisor;
  563|     95|    xmpData_[(streamType_ == Video) ? "Xmp.video.FrameRate" : "Xmp.audio.SampleRate"] = rate;
  ------------------
  |  Branch (563:14): [True: 30, False: 65]
  ------------------
  564|     95|  }
  565|    110|  io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // dwStart
  566|       |
  567|    110|  if (divisor) {
  ------------------
  |  Branch (567:7): [True: 94, False: 16]
  ------------------
  568|     94|    auto frame_count = static_cast<double>(readDWORDTag(io_)) / divisor;  // DataLength
  569|     94|    xmpData_[(streamType_ == Video) ? "Xmp.video.FrameCount" : "Xmp.audio.FrameCount"] = frame_count;
  ------------------
  |  Branch (569:14): [True: 30, False: 64]
  ------------------
  570|     94|  }
  571|       |
  572|    110|  io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // dwSuggestedBufferSize
  573|       |
  574|    110|  xmpData_[(streamType_ == Video) ? "Xmp.video.VideoQuality" : "Xmp.video.StreamQuality"] = readDWORDTag(io_);
  ------------------
  |  Branch (574:12): [True: 30, False: 80]
  ------------------
  575|       |
  576|    110|  xmpData_[(streamType_ == Video) ? "Xmp.video.VideoSampleSize" : "Xmp.video.StreamSampleSize"] = readDWORDTag(io_);
  ------------------
  |  Branch (576:12): [True: 28, False: 82]
  ------------------
  577|    110|  io_->seekOrThrow(io_->tell() + (DWORD * 2), BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  578|    110|}
_ZN5Exiv29RiffVideo16readStreamFormatEm:
  580|    563|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|    563|  if (streamType_ == Video) {
  ------------------
  |  Branch (611:7): [True: 18, False: 545]
  ------------------
  612|     18|    io_->seekOrThrow(io_->tell() + (DWORD * 3), BasicIo::beg,
  613|     18|                     ErrorCode::kerFailedToReadImageData);  // ignore biSize, biWidth, biHeight
  614|     18|    xmpData_["Xmp.video.Planes"] = readWORDTag(io_);
  615|     18|    xmpData_["Xmp.video.PixelDepth"] = readWORDTag(io_);
  616|     18|    xmpData_["Xmp.video.Compressor"] = readStringTag(io_);
  617|     18|    xmpData_["Xmp.video.ImageLength"] = readDWORDTag(io_);
  618|     18|    xmpData_["Xmp.video.PixelPerMeterX"] = readQWORDTag(io_);
  619|     18|    xmpData_["Xmp.video.PixelPerMeterY"] = readQWORDTag(io_);
  620|     18|    if (uint32_t NumOfColours = readDWORDTag(io_))
  ------------------
  |  Branch (620:18): [True: 13, False: 5]
  ------------------
  621|     13|      xmpData_["Xmp.video.NumOfColours"] = NumOfColours;
  622|      5|    else
  623|      5|      xmpData_["Xmp.video.NumOfColours"] = "Unspecified";
  624|     18|    if (uint32_t NumIfImpColours = readDWORDTag(io_))
  ------------------
  |  Branch (624:18): [True: 11, False: 7]
  ------------------
  625|     11|      xmpData_["Xmp.video.NumIfImpColours"] = NumIfImpColours;
  626|      7|    else
  627|      7|      xmpData_["Xmp.video.NumIfImpColours"] = "All";
  628|    545|  } else if (streamType_ == Audio) {
  ------------------
  |  Branch (628:14): [True: 535, False: 10]
  ------------------
  629|    535|    uint16_t format_tag = readWORDTag(io_);
  630|    535|    if (auto it = Internal::audioEncodingValues.find(format_tag); it != Internal::audioEncodingValues.end())
  ------------------
  |  Branch (630:67): [True: 90, False: 445]
  ------------------
  631|     90|      xmpData_["Xmp.audio.Compressor"] = it->second;
  632|    445|    else
  633|    445|      xmpData_["Xmp.audio.Compressor"] = format_tag;
  634|       |
  635|    535|    xmpData_["Xmp.audio.ChannelType"] = getStreamType(readDWORDTag(io_));
  636|    535|    xmpData_["Xmp.audio.SampleRate"] = readDWORDTag(io_);                                      // nSamplesPerSec
  637|    535|    io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // nAvgBytesPerSec
  638|    535|    xmpData_["Xmp.audio.SampleType"] = readDWORDTag(io_);                                      // nBlockAlign
  639|    535|    xmpData_["Xmp.audio.BitsPerSample"] = readDWORDTag(io_);                                   // wBitsPerSample
  640|    535|    if (xmpData_["Xmp.video.FileType"].toString() == "AVI ")
  ------------------
  |  Branch (640:9): [True: 29, False: 506]
  ------------------
  641|     29|      io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // cbSize
  642|    535|  } else {
  643|     10|    io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  644|     10|  }
  645|    563|}
_ZNK5Exiv29RiffVideo14readStreamDataEm:
  647|      6|void RiffVideo::readStreamData(uint64_t size_) const {
  648|      6|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  649|      6|}
_ZNK5Exiv29RiffVideo10StreamNameEm:
  651|      2|void RiffVideo::StreamName(uint64_t size_) const {
  652|       |  // This element contains a name for the stream. That stream name should only use plain ASCII, especially not UTF-8.
  653|      2|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  654|      2|}
_ZN5Exiv29RiffVideo17readInfoListChunkEm:
  656|    134|void RiffVideo::readInfoListChunk(uint64_t size_) {
  657|    134|  uint64_t current_size = DWORD;
  658|    935|  while (current_size < size_) {
  ------------------
  |  Branch (658:10): [True: 801, False: 134]
  ------------------
  659|    801|    std::string type = readStringTag(io_);
  660|    801|    size_t size = readDWORDTag(io_);
  661|    801|    std::string content = readStringTag(io_, size);
  662|    801|    if (auto it = Internal::infoTags.find(type); it != Internal::infoTags.end())
  ------------------
  |  Branch (662:50): [True: 58, False: 743]
  ------------------
  663|     58|      xmpData_[it->second] = content;
  664|    801|    current_size += DWORD * 2;
  665|    801|    current_size += size;
  666|    801|  }
  667|    134|}
_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|      3|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|      3|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  717|      3|}
_ZNK5Exiv29RiffVideo13readDataChunkEm:
  719|     47|void RiffVideo::readDataChunk(uint64_t size_) const {
  720|       |#ifdef EXIV2_DEBUG_MESSAGES
  721|       |  EXV_INFO << "--> Data               = " << readStringTag(io_, static_cast<size_t>(size_)) << '\n';
  722|       |  uint64_t readed_size = size_;
  723|       |  if (size_ % 2 != 0) {
  724|       |    EXV_INFO << "--> pad byte          = " << readStringTag(io_, 1) << '\n';
  725|       |    readed_size += 1;
  726|       |  }
  727|       |  if (LogMsg::info >= LogMsg::level() && LogMsg::handler())
  728|       |    io_->seekOrThrow(io_->tell() - readed_size, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  729|       |#endif
  730|     47|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  731|     47|  if (size_ % 2 != 0)
  ------------------
  |  Branch (731:7): [True: 40, False: 7]
  ------------------
  732|     40|    io_->seekOrThrow(io_->tell() + 1, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  733|     47|}
_ZNK5Exiv29RiffVideo8readJunkEm:
  735|     10|void RiffVideo::readJunk(uint64_t size_) const {
  736|     10|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  737|     10|}
_ZN5Exiv29RiffVideo13getStreamTypeEj:
  739|    664|std::string RiffVideo::getStreamType(uint32_t stream) {
  740|    664|  if (stream == 1)
  ------------------
  |  Branch (740:7): [True: 35, False: 629]
  ------------------
  741|     35|    return "Mono";
  742|    629|  if (stream == 2)
  ------------------
  |  Branch (742:7): [True: 8, False: 621]
  ------------------
  743|      8|    return "Stereo";
  744|    621|  if (stream == 5)
  ------------------
  |  Branch (744:7): [True: 120, False: 501]
  ------------------
  745|    120|    return "5.1 Surround Sound";
  746|    501|  if (stream == 7)
  ------------------
  |  Branch (746:7): [True: 3, False: 498]
  ------------------
  747|      3|    return "7.1 Surround Sound";
  748|    498|  return "Mono";
  749|    501|}
_ZN5Exiv29RiffVideo12fillDurationEdm:
  751|    124|void RiffVideo::fillDuration(double frame_rate, size_t frame_count) {
  752|    124|  if (frame_rate == 0)
  ------------------
  |  Branch (752:7): [True: 0, False: 124]
  ------------------
  753|      0|    return;
  754|       |
  755|    124|  auto duration = static_cast<uint64_t>(frame_count * 1000. / frame_rate);
  756|    124|  xmpData_["Xmp.video.FileDataRate"] = io_->size() / (1048576. * duration);
  757|    124|  xmpData_["Xmp.video.Duration"] = duration;  // Duration in number of seconds
  758|    124|}  // RiffVideo::fillDuration
_ZN5Exiv215newRiffInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  760|    298|Image::UniquePtr newRiffInstance(BasicIo::UniquePtr io, bool /*create*/) {
  761|    298|  auto image = std::make_unique<RiffVideo>(std::move(io));
  762|    298|  if (!image->good()) {
  ------------------
  |  Branch (762:7): [True: 0, False: 298]
  ------------------
  763|      0|    return nullptr;
  764|      0|  }
  765|    298|  return image;
  766|    298|}
_ZN5Exiv210isRiffTypeERNS_7BasicIoEb:
  768|  7.79k|bool isRiffType(BasicIo& iIo, bool advance) {
  769|  7.79k|  constexpr int len = 4;
  770|  7.79k|  const std::array<byte, len> RiffVideoId{'R', 'I', 'F', 'F'};
  771|  7.79k|  std::array<byte, len> buf;
  772|  7.79k|  iIo.read(buf.data(), len);
  773|  7.79k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (773:7): [True: 0, False: 7.79k]
  |  Branch (773:22): [True: 144, False: 7.65k]
  ------------------
  774|    144|    return false;
  775|    144|  }
  776|  7.65k|  bool matched = buf == RiffVideoId;
  777|  7.65k|  if (!advance || !matched) {
  ------------------
  |  Branch (777:7): [True: 7.65k, False: 0]
  |  Branch (777:19): [True: 0, False: 0]
  ------------------
  778|  7.65k|    iIo.seek(-1 * len, BasicIo::cur);
  779|  7.65k|  }
  780|  7.65k|  return matched;
  781|  7.79k|}

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

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

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

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

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

_ZN5Exiv28Internal14SigmaMakerNote15printStripLabelERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   71|    342|std::ostream& SigmaMakerNote::printStripLabel(std::ostream& os, const Value& value, const ExifData*) {
   72|    342|  std::string v = value.toString();
   73|    342|  if (auto pos = v.find(':'); pos != std::string::npos) {
  ------------------
  |  Branch (73:31): [True: 164, False: 178]
  ------------------
   74|    164|    if (v.at(pos + 1) == ' ')
  ------------------
  |  Branch (74:9): [True: 50, False: 114]
  ------------------
   75|     50|      ++pos;
   76|    164|    v = v.substr(pos + 1);
   77|    164|  }
   78|    342|  return os << v;
   79|    342|}
_ZN5Exiv28Internal14SigmaMakerNote11print0x0008ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   81|    444|std::ostream& SigmaMakerNote::print0x0008(std::ostream& os, const Value& value, const ExifData*) {
   82|    444|  std::string v = value.toString();
   83|    444|  if (v.empty()) {
  ------------------
  |  Branch (83:7): [True: 76, False: 368]
  ------------------
   84|     76|    return os;
   85|     76|  }
   86|    368|  switch (v.front()) {
   87|     12|    case 'P':
  ------------------
  |  Branch (87:5): [True: 12, False: 356]
  ------------------
   88|     12|      return os << _("Program");
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
   89|     66|    case 'A':
  ------------------
  |  Branch (89:5): [True: 66, False: 302]
  ------------------
   90|     66|      return os << _("Aperture priority");
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
   91|     34|    case 'S':
  ------------------
  |  Branch (91:5): [True: 34, False: 334]
  ------------------
   92|     34|      return os << _("Shutter priority");
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
   93|     16|    case 'M':
  ------------------
  |  Branch (93:5): [True: 16, False: 352]
  ------------------
   94|     16|      return os << _("Manual");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
   95|    240|    default:
  ------------------
  |  Branch (95:5): [True: 240, False: 128]
  ------------------
   96|    240|      return os << "(" << value << ")";
   97|    368|  }
   98|    368|}
_ZN5Exiv28Internal14SigmaMakerNote11print0x0009ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  100|    528|std::ostream& SigmaMakerNote::print0x0009(std::ostream& os, const Value& value, const ExifData*) {
  101|    528|  std::string v = value.toString();
  102|    528|  if (v.empty()) {
  ------------------
  |  Branch (102:7): [True: 118, False: 410]
  ------------------
  103|    118|    return os;
  104|    118|  }
  105|    410|  switch (v.front()) {
  106|     74|    case 'A':
  ------------------
  |  Branch (106:5): [True: 74, False: 336]
  ------------------
  107|     74|      return os << _("Average");
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  108|     70|    case 'C':
  ------------------
  |  Branch (108:5): [True: 70, False: 340]
  ------------------
  109|     70|      return os << _("Center");
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  110|     38|    case '8':
  ------------------
  |  Branch (110:5): [True: 38, False: 372]
  ------------------
  111|     38|      return os << _("8-Segment");
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  112|    228|    default:
  ------------------
  |  Branch (112:5): [True: 228, False: 182]
  ------------------
  113|    228|      return os << "(" << value << ")";
  114|    410|  }
  115|    410|}

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

_ZN5Exiv28Internal13SonyMakerNote25printWhiteBalanceFineTuneERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  919|    134|std::ostream& SonyMakerNote::printWhiteBalanceFineTune(std::ostream& os, const Value& value, const ExifData*) {
  920|    134|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (920:7): [True: 72, False: 62]
  |  Branch (920:29): [True: 42, False: 20]
  ------------------
  921|    114|    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|     20|  return os << static_cast<int32_t>(value.toUint32(0));
  926|    134|}
_ZN5Exiv28Internal13SonyMakerNote19printMultiBurstModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  928|    900|std::ostream& SonyMakerNote::printMultiBurstMode(std::ostream& os, const Value& value, const ExifData* metadata) {
  929|    900|  if (value.count() != 1 || value.typeId() != undefined)
  ------------------
  |  Branch (929:7): [True: 774, False: 126]
  |  Branch (929:29): [True: 126, False: 0]
  ------------------
  930|    900|    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|    900|}
_ZN5Exiv28Internal13SonyMakerNote19printMultiBurstSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  938|    176|std::ostream& SonyMakerNote::printMultiBurstSize(std::ostream& os, const Value& value, const ExifData*) {
  939|    176|  if (value.count() != 1 || value.typeId() != unsignedShort)
  ------------------
  |  Branch (939:7): [True: 138, False: 38]
  |  Branch (939:29): [True: 30, False: 8]
  ------------------
  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|      8|  return os << value.toUint32(0);
  946|    176|}
_ZN5Exiv28Internal13SonyMakerNote15printAutoHDRStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  948|    440|std::ostream& SonyMakerNote::printAutoHDRStd(std::ostream& os, const Value& value, const ExifData* metadata) {
  949|    440|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (949:7): [True: 34, False: 406]
  |  Branch (949:29): [True: 46, False: 360]
  ------------------
  950|     80|    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|    440|}
_ZN5Exiv28Internal13SonyMakerNote16printWBShiftABGMERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  963|    396|std::ostream& SonyMakerNote::printWBShiftABGM(std::ostream& os, const Value& value, const ExifData*) {
  964|    396|  if (value.count() != 2 || value.typeId() != signedLong)
  ------------------
  |  Branch (964:7): [True: 54, False: 342]
  |  Branch (964:29): [True: 38, False: 304]
  ------------------
  965|     92|    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|    304|  const auto v0 = value.toInt64(0);
  972|    304|  const auto v1 = value.toInt64(1);
  973|       |
  974|    304|  os << "A/B: ";
  975|    304|  if (v0 == 0) {
  ------------------
  |  Branch (975:7): [True: 28, False: 276]
  ------------------
  976|     28|    os << 0;
  977|    276|  } else if (v0 < 0) {
  ------------------
  |  Branch (977:14): [True: 112, False: 164]
  ------------------
  978|    112|    os << "A" << -v0;
  979|    164|  } else {
  980|    164|    os << "B" << v0;
  981|    164|  }
  982|       |
  983|    304|  os << ", G/M: ";
  984|    304|  if (v1 == 0)
  ------------------
  |  Branch (984:7): [True: 38, False: 266]
  ------------------
  985|     38|    return os << 0;
  986|       |
  987|    266|  if (v1 < 0)
  ------------------
  |  Branch (987:7): [True: 98, False: 168]
  ------------------
  988|     98|    return os << "G" << -v1;
  989|       |
  990|    168|  return os << "M" << v1;
  991|    266|}
_ZN5Exiv28Internal13SonyMakerNote15printFocusMode2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  993|  3.00k|std::ostream& SonyMakerNote::printFocusMode2(std::ostream& os, const Value& value, const ExifData* metadata) {
  994|  3.00k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (994:7): [True: 201, False: 2.80k]
  |  Branch (994:29): [True: 102, False: 2.69k]
  |  Branch (994:63): [True: 1.33k, False: 1.36k]
  ------------------
  995|  1.63k|    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.36k|  std::string model;
 1000|  1.36k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1000:7): [True: 246, False: 1.12k]
  ------------------
 1001|    246|    return os << "(" << value << ")";
 1002|       |
 1003|  1.12k|  const auto v0 = value.toUint32(0);
 1004|       |
 1005|  1.12k|  constexpr std::array models{"DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2"};
 1006|  1.12k|  if (!model.starts_with("DSC-") ||
  ------------------
  |  Branch (1006:7): [True: 277, False: 843]
  ------------------
 1007|    843|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1007:7): [True: 534, False: 309]
  ------------------
 1008|    811|    return EXV_PRINT_TAG(sonyFocusMode2)(os, v0, metadata);
  ------------------
  |  |  199|    811|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1009|       |
 1010|    309|  return os << _("n/a");
  ------------------
  |  |   40|    309|#define _(String) (String)
  ------------------
 1011|  1.12k|}
_ZN5Exiv28Internal13SonyMakerNote22printAFAreaModeSettingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1013|  5.53k|std::ostream& SonyMakerNote::printAFAreaModeSetting(std::ostream& os, const Value& value, const ExifData* metadata) {
 1014|  5.53k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1014:7): [True: 470, False: 5.06k]
  |  Branch (1014:29): [True: 92, False: 4.97k]
  |  Branch (1014:63): [True: 987, False: 3.98k]
  ------------------
 1015|  1.54k|    return os << "(" << value << ")";
 1016|       |
 1017|       |  // Tag only valid for certain camera models. See
 1018|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1139
 1019|  3.98k|  std::string model;
 1020|  3.98k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1020:7): [True: 94, False: 3.89k]
  ------------------
 1021|     94|    return os << "(" << value << ")";
 1022|       |
 1023|  3.89k|  const auto v0 = value.toUint32(0);
 1024|       |
 1025|  3.89k|  for (auto m : {"SLT-", "HV"})
  ------------------
  |  Branch (1025:15): [True: 7.26k, False: 3.33k]
  ------------------
 1026|  7.26k|    if (model.starts_with(m))
  ------------------
  |  Branch (1026:9): [True: 557, False: 6.70k]
  ------------------
 1027|    557|      return EXV_PRINT_TAG(sonyAFAreaModeSettingSet1)(os, v0, metadata);
  ------------------
  |  |  199|    557|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1028|       |
 1029|  3.33k|  constexpr std::array models2{
 1030|  3.33k|      "NEX-", "ILCE-", "ILME-", "DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2",
 1031|  3.33k|  };
 1032|  3.33k|  if (std::any_of(models2.begin(), models2.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1032:7): [True: 1.09k, False: 2.24k]
  ------------------
 1033|  1.09k|    return EXV_PRINT_TAG(sonyAFAreaModeSettingSet2)(os, v0, metadata);
  ------------------
  |  |  199|  1.09k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1034|       |
 1035|  2.24k|  if (model.starts_with("ILCA-"))
  ------------------
  |  Branch (1035:7): [True: 1.46k, False: 774]
  ------------------
 1036|  1.46k|    return EXV_PRINT_TAG(sonyAFAreaModeSettingSet3)(os, v0, metadata);
  ------------------
  |  |  199|  1.46k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1037|       |
 1038|    774|  return os << _("n/a");
  ------------------
  |  |   40|    774|#define _(String) (String)
  ------------------
 1039|  2.24k|}
_ZN5Exiv28Internal13SonyMakerNote25printFlexibleSpotPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1041|  2.02k|std::ostream& SonyMakerNote::printFlexibleSpotPosition(std::ostream& os, const Value& value, const ExifData* metadata) {
 1042|  2.02k|  if (value.count() != 2 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1042:7): [True: 160, False: 1.86k]
  |  Branch (1042:29): [True: 68, False: 1.79k]
  |  Branch (1042:64): [True: 898, False: 898]
  ------------------
 1043|  1.12k|    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|    898|  std::string model;
 1048|    898|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1048:7): [True: 93, False: 805]
  ------------------
 1049|     93|    return os << "(" << value << ")";
 1050|       |
 1051|    805|  constexpr std::array models{
 1052|    805|      "NEX-", "ILCE-", "ILME-", "DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2",
 1053|    805|  };
 1054|    805|  if (std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1054:7): [True: 375, False: 430]
  ------------------
 1055|    375|    return os << value.toUint32(0) << ", " << value.toUint32(1);
 1056|       |
 1057|    430|  return os << _("n/a");
  ------------------
  |  |   40|    430|#define _(String) (String)
  ------------------
 1058|    805|}
_ZN5Exiv28Internal13SonyMakerNote20printAFPointSelectedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1060|  9.83k|std::ostream& SonyMakerNote::printAFPointSelected(std::ostream& os, const Value& value, const ExifData* metadata) {
 1061|  9.83k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1061:7): [True: 24, False: 9.80k]
  |  Branch (1061:29): [True: 274, False: 9.53k]
  |  Branch (1061:63): [True: 4.76k, False: 4.76k]
  ------------------
 1062|  5.06k|    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.76k|  std::string model;
 1067|  4.76k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1067:7): [True: 324, False: 4.44k]
  ------------------
 1068|    324|    return os << "(" << value << ")";
 1069|       |
 1070|  4.44k|  uint32_t aFAreaModeSetting = 0;
 1071|  4.44k|  const auto status = getAFAreaModeSetting(metadata, aFAreaModeSetting);
 1072|       |
 1073|  4.44k|  for (auto m : {"SLT-", "HV-"})
  ------------------
  |  Branch (1073:15): [True: 8.33k, False: 3.83k]
  ------------------
 1074|  8.33k|    if (model.starts_with(m))
  ------------------
  |  Branch (1074:9): [True: 608, False: 7.72k]
  ------------------
 1075|    608|      return EXV_PRINT_TAG(sonyAFPointSelectedSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    608|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1076|       |
 1077|  3.83k|  for (auto m : {"ILCE-", "ILME-"})
  ------------------
  |  Branch (1077:15): [True: 7.54k, False: 3.54k]
  ------------------
 1078|  7.54k|    if (model.starts_with(m) && status && aFAreaModeSetting == 4)
  ------------------
  |  Branch (1078:9): [True: 967, False: 6.57k]
  |  Branch (1078:33): [True: 495, False: 472]
  |  Branch (1078:43): [True: 294, False: 201]
  ------------------
 1079|    294|      return EXV_PRINT_TAG(sonyAFPointSelectedSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    294|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1080|       |
 1081|  3.54k|  for (auto m : {"ILCA-68", "ILCA-77M2"})
  ------------------
  |  Branch (1081:15): [True: 6.50k, False: 2.70k]
  ------------------
 1082|  6.50k|    if (model.starts_with(m) && status && aFAreaModeSetting != 8)
  ------------------
  |  Branch (1082:9): [True: 1.21k, False: 5.28k]
  |  Branch (1082:33): [True: 990, False: 224]
  |  Branch (1082:43): [True: 839, False: 151]
  ------------------
 1083|    839|      return EXV_PRINT_TAG(sonyAFPointSelectedSet2)(os, value, metadata);
  ------------------
  |  |  199|    839|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1084|       |
 1085|  2.70k|  if (model.starts_with("ILCA-99M2") && status && aFAreaModeSetting != 8)
  ------------------
  |  Branch (1085:7): [True: 514, False: 2.18k]
  |  Branch (1085:41): [True: 441, False: 73]
  |  Branch (1085:51): [True: 291, False: 150]
  ------------------
 1086|    291|    return EXV_PRINT_TAG(sonyAFPointSelectedSet3)(os, value, metadata);
  ------------------
  |  |  199|    291|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1087|       |
 1088|  2.41k|  if (model.starts_with("ILCA-") && status && aFAreaModeSetting == 8)
  ------------------
  |  Branch (1088:7): [True: 658, False: 1.75k]
  |  Branch (1088:37): [True: 355, False: 303]
  |  Branch (1088:47): [True: 301, False: 54]
  ------------------
 1089|    301|    return EXV_PRINT_TAG(sonyAFPointSelectedSet4)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    301|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1090|       |
 1091|  2.11k|  for (auto m : {"NEX-", "ILCE-", "ILME-"})
  ------------------
  |  Branch (1091:15): [True: 5.61k, False: 1.33k]
  ------------------
 1092|  5.61k|    if (model.starts_with(m))
  ------------------
  |  Branch (1092:9): [True: 772, False: 4.84k]
  ------------------
 1093|    772|      return EXV_PRINT_TAG(sonyAFPointSelectedSet5)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    772|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1094|       |
 1095|  1.33k|  return os << _("n/a");
  ------------------
  |  |   40|  1.33k|#define _(String) (String)
  ------------------
 1096|  2.11k|}
_ZN5Exiv28Internal13SonyMakerNote17printAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1098|  1.16k|std::ostream& SonyMakerNote::printAFPointsUsed(std::ostream& os, const Value& value, const ExifData* metadata) {
 1099|  1.16k|  if (value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1099:7): [True: 112, False: 1.05k]
  |  Branch (1099:41): [True: 525, False: 525]
  ------------------
 1100|    637|    return os << "(" << value << ")";
 1101|       |
 1102|    525|  std::string model;
 1103|    525|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1103:7): [True: 58, False: 467]
  ------------------
 1104|     58|    return os << "(" << value << ")";
 1105|       |
 1106|    467|  constexpr std::array models1{"ILCA-", "DSC-"};
 1107|    467|  if (std::none_of(models1.begin(), models1.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1107:7): [True: 203, False: 264]
  ------------------
 1108|    203|    return EXV_PRINT_TAG_BITLIST_ALL_LE(sonyAFPointsUsedSet1)(os, value, metadata);
  ------------------
  |  |  289|    203|#define EXV_PRINT_TAG_BITLIST_ALL_LE(array) printTagBitlistAllLE<std::size(array), array>
  ------------------
 1109|       |
 1110|    264|  for (auto m : {"ILCA-68", "ILCA-77M2"})
  ------------------
  |  Branch (1110:15): [True: 500, False: 164]
  ------------------
 1111|    500|    if (model.starts_with(m))
  ------------------
  |  Branch (1111:9): [True: 100, False: 400]
  ------------------
 1112|    100|      return EXV_PRINT_TAG_BITLIST_ALL_LE(sonyAFPointsUsedSet2)(os, value, metadata);
  ------------------
  |  |  289|    100|#define EXV_PRINT_TAG_BITLIST_ALL_LE(array) printTagBitlistAllLE<std::size(array), array>
  ------------------
 1113|       |
 1114|    164|  return os << _("n/a");
  ------------------
  |  |   40|    164|#define _(String) (String)
  ------------------
 1115|    264|}
_ZN5Exiv28Internal13SonyMakerNote15printAFTrackingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1117|  2.24k|std::ostream& SonyMakerNote::printAFTracking(std::ostream& os, const Value& value, const ExifData* metadata) {
 1118|  2.24k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1118:7): [True: 70, False: 2.17k]
  |  Branch (1118:29): [True: 112, False: 2.06k]
  |  Branch (1118:63): [True: 1.03k, False: 1.03k]
  ------------------
 1119|  1.21k|    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.03k|  std::string model;
 1124|  1.03k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1124:7): [True: 132, False: 899]
  ------------------
 1125|    132|    return os << "(" << value << ")";
 1126|       |
 1127|    899|  constexpr std::array models{"DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2"};
 1128|    899|  if (!model.starts_with("DSC-") ||
  ------------------
  |  Branch (1128:7): [True: 207, False: 692]
  ------------------
 1129|    692|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1129:7): [True: 378, False: 314]
  ------------------
 1130|    585|    return EXV_PRINT_TAG(sonyAFTracking)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    585|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1131|       |
 1132|    314|  return os << _("n/a");
  ------------------
  |  |   40|    314|#define _(String) (String)
  ------------------
 1133|    899|}
_ZN5Exiv28Internal13SonyMakerNote27printFocalPlaneAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1135|    134|std::ostream& SonyMakerNote::printFocalPlaneAFPointsUsed(std::ostream& os, const Value& value, const ExifData*) {
 1136|    134|  if (value.typeId() != unsignedByte)
  ------------------
  |  Branch (1136:7): [True: 76, False: 58]
  ------------------
 1137|     76|    return os << "(" << value << ")";
 1138|       |
 1139|     58|  if (value.toUint32(0) == 0)
  ------------------
  |  Branch (1139:7): [True: 14, False: 44]
  ------------------
 1140|     14|    return os << _("None");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 1141|       |
 1142|     44|  return os << "(" << value << ")";
 1143|     58|}
_ZN5Exiv28Internal13SonyMakerNote23printWBShiftABGMPreciseERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1145|    126|std::ostream& SonyMakerNote::printWBShiftABGMPrecise(std::ostream& os, const Value& value, const ExifData*) {
 1146|    126|  if (value.count() != 2 || value.typeId() != signedLong)
  ------------------
  |  Branch (1146:7): [True: 32, False: 94]
  |  Branch (1146:29): [True: 38, False: 56]
  ------------------
 1147|     70|    return os << "(" << value << ")";
 1148|       |
 1149|     56|  std::ios::fmtflags f(os.flags());
 1150|       |
 1151|     56|  const auto temp0 = static_cast<double>(value.toInt64(0)) / 1000.0;
 1152|     56|  const auto temp1 = static_cast<double>(value.toInt64(1)) / 1000.0;
 1153|       |
 1154|     56|  os << "A/B: ";
 1155|     56|  if (temp0 == 0) {
  ------------------
  |  Branch (1155:7): [True: 18, False: 38]
  ------------------
 1156|     18|    os << 0;
 1157|     38|  } else if (temp0 < 0) {
  ------------------
  |  Branch (1157:14): [True: 20, False: 18]
  ------------------
 1158|     20|    os << "A" << std::fixed << std::setprecision(2) << -temp0;
 1159|     20|  } else {
 1160|     18|    os << "B" << std::fixed << std::setprecision(2) << temp0;
 1161|     18|  }
 1162|     56|  os << ", G/M: ";
 1163|     56|  if (temp1 == 0) {
  ------------------
  |  Branch (1163:7): [True: 14, False: 42]
  ------------------
 1164|     14|    os << 0;
 1165|     42|  } else if (temp1 < 0) {
  ------------------
  |  Branch (1165:14): [True: 14, False: 28]
  ------------------
 1166|     14|    os << "G" << std::fixed << std::setprecision(2) << -temp1;
 1167|     28|  } else {
 1168|     28|    os << "M" << std::fixed << std::setprecision(2) << temp1;
 1169|     28|  }
 1170|       |
 1171|     56|  os.flags(f);
 1172|     56|  return os;
 1173|    126|}
_ZN5Exiv28Internal13SonyMakerNote31printExposureStandardAdjustmentERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1175|     94|std::ostream& SonyMakerNote::printExposureStandardAdjustment(std::ostream& os, const Value& value, const ExifData*) {
 1176|     94|  if (value.count() != 1 || value.typeId() != signedRational) {
  ------------------
  |  Branch (1176:7): [True: 20, False: 74]
  |  Branch (1176:29): [True: 18, False: 56]
  ------------------
 1177|     38|    return os << "(" << value << ")";
 1178|     38|  }
 1179|       |
 1180|     56|  const auto [r, s] = value.toRational();
 1181|     56|  return os << stringFormat("{:.1f}", static_cast<double>(r) / static_cast<double>(s));
  ------------------
  |  |   18|     56|#define stringFormat std::format
  ------------------
 1182|     94|}
_ZN5Exiv28Internal13SonyMakerNote19printPixelShiftInfoERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1184|    310|std::ostream& SonyMakerNote::printPixelShiftInfo(std::ostream& os, const Value& value, const ExifData*) {
 1185|    310|  if (value.count() != 6 || value.typeId() != undefined)
  ------------------
  |  Branch (1185:7): [True: 80, False: 230]
  |  Branch (1185:29): [True: 136, False: 94]
  ------------------
 1186|    216|    return os << "(" << value << ")";
 1187|       |
 1188|       |  // Tag format:
 1189|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1504
 1190|     94|  if (value.toString() == "0 0 0 0 0 0")
  ------------------
  |  Branch (1190:7): [True: 30, False: 64]
  ------------------
 1191|     30|    return os << _("n/a");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 1192|       |
 1193|       |  // Convert from little endian format
 1194|     64|  auto groupID = (value.toUint32(3) << 24) + (value.toUint32(2) << 16) + (value.toUint32(1) << 8) + value.toUint32(0);
 1195|       |
 1196|     64|  return os << stringFormat("Group {:02}{:02}{:02}{:02}, Shot {}/{} (0x{:x})", (groupID >> 17) & 0x1f,
  ------------------
  |  |   18|     64|#define stringFormat std::format
  ------------------
 1197|     64|                            (groupID >> 12) & 0x1f, (groupID >> 6) & 0x3f, groupID & 0x3f, value.toUint32(4),
 1198|     64|                            value.toUint32(5), (groupID >> 22));
 1199|     94|}
_ZN5Exiv28Internal13SonyMakerNote19printFocusFrameSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1201|    196|std::ostream& SonyMakerNote::printFocusFrameSize(std::ostream& os, const Value& value, const ExifData*) {
 1202|    196|  if (value.count() != 6 || value.typeId() != undefined)
  ------------------
  |  Branch (1202:7): [True: 104, False: 92]
  |  Branch (1202:29): [True: 14, False: 78]
  ------------------
 1203|    118|    return os << "(" << value << ")";
 1204|       |
 1205|       |  // Tag is written as undefined type but is used as unsignedShort. See
 1206|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1578
 1207|       |
 1208|     78|  if (value.toUint32(4) == 0 && value.toUint32(5) == 0)
  ------------------
  |  Branch (1208:7): [True: 60, False: 18]
  |  Branch (1208:33): [True: 30, False: 30]
  ------------------
 1209|     30|    return os << _("n/a");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 1210|       |
 1211|       |  // Convert from little endian format
 1212|     48|  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|    114|std::ostream& SonyMakerNote::printColorTemperature(std::ostream& os, const Value& value, const ExifData*) {
 1216|    114|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1216:7): [True: 20, False: 94]
  |  Branch (1216:29): [True: 42, False: 52]
  ------------------
 1217|     62|    return os << "(" << value << ")";
 1218|       |
 1219|     52|  auto v0 = value.toUint32(0);
 1220|     52|  if (v0 == 0)
  ------------------
  |  Branch (1220:7): [True: 18, False: 34]
  ------------------
 1221|     18|    return os << _("Auto");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
 1222|       |
 1223|     34|  if (v0 == 0xffffffff)
  ------------------
  |  Branch (1223:7): [True: 6, False: 28]
  ------------------
 1224|      6|    return os << _("n/a");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1225|       |
 1226|     28|  return os << v0 << " K";
 1227|     34|}
_ZN5Exiv28Internal13SonyMakerNote28printColorCompensationFilterERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1229|    120|std::ostream& SonyMakerNote::printColorCompensationFilter(std::ostream& os, const Value& value, const ExifData*) {
 1230|    120|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1230:7): [True: 60, False: 60]
  |  Branch (1230:29): [True: 14, False: 46]
  ------------------
 1231|     74|    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|     46|  int64_t temp = static_cast<int32_t>(value.toUint32(0));
 1237|     46|  os << "G/M: ";
 1238|     46|  if (temp == 0)
  ------------------
  |  Branch (1238:7): [True: 20, False: 26]
  ------------------
 1239|     20|    return os << "0";
 1240|       |
 1241|     26|  if (temp < 0)
  ------------------
  |  Branch (1241:7): [True: 16, False: 10]
  ------------------
 1242|     16|    return os << "G" << -temp;
 1243|       |
 1244|     10|  return os << "M" << temp;
 1245|     26|}
_ZN5Exiv28Internal13SonyMakerNote13printLensSpecERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1286|    820|std::ostream& SonyMakerNote::printLensSpec(std::ostream& os, const Value& value, const ExifData*) {
 1287|    820|  if (value.count() != 8 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (1287:7): [True: 34, False: 786]
  |  Branch (1287:29): [True: 48, False: 738]
  ------------------
 1288|     82|    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|    738|  const auto focalLenMin = value.toUint32(2);
 1313|    738|  const auto focalLenMax1 = value.toUint32(3);
 1314|    738|  const auto focalLenMax2 = value.toUint32(4);
 1315|    738|  const auto appertureMin = value.toUint32(5);
 1316|    738|  const auto apertureMax = value.toUint32(6);
 1317|       |
 1318|    738|  if (value.toString() == "0 0 0 0 0 0 0 0" || focalLenMin == 0 || appertureMin == 0)
  ------------------
  |  Branch (1318:7): [True: 76, False: 662]
  |  Branch (1318:7): [True: 214, False: 524]
  |  Branch (1318:48): [True: 90, False: 572]
  |  Branch (1318:68): [True: 48, False: 524]
  ------------------
 1319|    214|    return os << _("Unknown");
  ------------------
  |  |   40|    214|#define _(String) (String)
  ------------------
 1320|       |
 1321|    524|  std::string flagsStart;
 1322|    524|  std::string flagsEnd;
 1323|    524|  findLensSpecFlags(value, flagsStart, flagsEnd);
 1324|       |
 1325|       |  // Output <Flgs 1>
 1326|    524|  if (!flagsStart.empty())
  ------------------
  |  Branch (1326:7): [True: 396, False: 128]
  ------------------
 1327|    396|    os << flagsStart << " ";
 1328|       |
 1329|       |  // Output <Focal len min>
 1330|    524|  auto temp = ((focalLenMin >> 4) & 0x0f);
 1331|    524|  if (temp != 0)  // Remove leading zero
  ------------------
  |  Branch (1331:7): [True: 352, False: 172]
  ------------------
 1332|    352|    os << temp;
 1333|       |
 1334|    524|  os << (focalLenMin & 0x0f);
 1335|       |
 1336|    524|  if (focalLenMax1 != 0 || focalLenMax2 != 0) {
  ------------------
  |  Branch (1336:7): [True: 382, False: 142]
  |  Branch (1336:28): [True: 66, False: 76]
  ------------------
 1337|    434|    os << "-";
 1338|    434|  }
 1339|       |
 1340|    524|  if (focalLenMax1 != 0) {
  ------------------
  |  Branch (1340:7): [True: 368, False: 156]
  ------------------
 1341|       |    // Output <Focal len max 1>
 1342|    368|    temp = ((focalLenMax1 >> 4) & 0x0f);
 1343|    368|    if (temp != 0)  // Remove leading zero
  ------------------
  |  Branch (1343:9): [True: 198, False: 170]
  ------------------
 1344|    198|      os << temp;
 1345|    368|    os << (focalLenMax1 & 0x0f);
 1346|       |
 1347|       |    // Output <Focal len max 2>
 1348|    368|    os << ((focalLenMax2 >> 4) & 0x0f) << (focalLenMax2 & 0x0f);
 1349|    368|  } else {
 1350|       |    // Output <Focal len max 2>
 1351|    156|    if (focalLenMax2 != 0)
  ------------------
  |  Branch (1351:9): [True: 66, False: 90]
  ------------------
 1352|     66|      os << ((focalLenMax2 >> 4) & 0x0f) << (focalLenMax2 & 0x0f);
 1353|    156|  }
 1354|       |
 1355|    524|  os << "mm";
 1356|       |
 1357|       |  // Output <Aperture min>
 1358|    524|  os << " F" << ((appertureMin >> 4) & 0x0f) << "." << (appertureMin & 0x0f);
 1359|       |
 1360|       |  // Output <Aperture max>
 1361|    524|  if (apertureMax != 0)
  ------------------
  |  Branch (1361:7): [True: 328, False: 196]
  ------------------
 1362|    328|    os << "-" << ((apertureMax >> 4) & 0x0f) << "." << (apertureMax & 0x0f);
 1363|       |
 1364|       |  // Output <Flags 3>
 1365|    524|  if (!flagsEnd.empty())
  ------------------
  |  Branch (1365:7): [True: 382, False: 142]
  ------------------
 1366|    382|    os << " " << flagsEnd;
 1367|    524|  return os;
 1368|    738|}
_ZN5Exiv28Internal13SonyMakerNote14printImageSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1370|    134|std::ostream& SonyMakerNote::printImageSize(std::ostream& os, const Value& value, const ExifData*) {
 1371|    134|  if (value.count() != 2 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1371:7): [True: 122, False: 12]
  |  Branch (1371:29): [True: 6, False: 6]
  ------------------
 1372|    128|    return os << "(" << value << ")";
 1373|       |
 1374|       |  // Values are stored as Height then Width
 1375|      6|  return os << value.toString(1) << " x " << value.toString(0);
 1376|    134|}
_ZN5Exiv28Internal13SonyMakerNote14printFocusModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1378|    452|std::ostream& SonyMakerNote::printFocusMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1379|    452|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1379:7): [True: 186, False: 266]
  |  Branch (1379:29): [True: 38, False: 228]
  |  Branch (1379:64): [True: 114, False: 114]
  ------------------
 1380|    338|    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|    114|  if (std::string metaVersion; !getMetaVersion(metadata, metaVersion) || metaVersion != "DC7303320222000")
  ------------------
  |  Branch (1385:32): [True: 71, False: 43]
  |  Branch (1385:74): [True: 28, False: 15]
  ------------------
 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|     15|  return os << _("n/a");
  ------------------
  |  |   40|     15|#define _(String) (String)
  ------------------
 1389|    114|}
_ZN5Exiv28Internal13SonyMakerNote11printAFModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1391|    854|std::ostream& SonyMakerNote::printAFMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1392|    854|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1392:7): [True: 32, False: 822]
  |  Branch (1392:29): [True: 38, False: 784]
  |  Branch (1392:64): [True: 392, False: 392]
  ------------------
 1393|    462|    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|    392|  if (std::string metaVersion; !getMetaVersion(metadata, metaVersion) || metaVersion != "DC7303320222000")
  ------------------
  |  Branch (1397:32): [True: 142, False: 250]
  |  Branch (1397:74): [True: 52, False: 198]
  ------------------
 1398|    194|    return EXV_PRINT_TAG(sonyAFModeSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    194|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1399|       |
 1400|    198|  if (uint32_t focusMode2 = 0; getFocusMode2(metadata, focusMode2) && focusMode2 != 0)
  ------------------
  |  Branch (1400:32): [True: 133, False: 65]
  |  Branch (1400:71): [True: 109, False: 24]
  ------------------
 1401|    109|    return EXV_PRINT_TAG(sonyAFModeSet2)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    109|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1402|       |
 1403|     89|  return os << _("n/a");
  ------------------
  |  |   40|     89|#define _(String) (String)
  ------------------
 1404|    198|}
_ZN5Exiv28Internal13SonyMakerNote15printFocusMode3ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1406|    904|std::ostream& SonyMakerNote::printFocusMode3(std::ostream& os, const Value& value, const ExifData* metadata) {
 1407|    904|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1407:7): [True: 14, False: 890]
  |  Branch (1407:29): [True: 228, False: 662]
  |  Branch (1407:64): [True: 331, False: 331]
  ------------------
 1408|    573|    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|    331|  if (std::string metaVersion; getMetaVersion(metadata, metaVersion) && metaVersion == "DC7303320222000")
  ------------------
  |  Branch (1412:32): [True: 139, False: 192]
  |  Branch (1412:73): [True: 40, False: 99]
  ------------------
 1413|     40|    return EXV_PRINT_TAG(sonyFocusMode3)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     40|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1414|       |
 1415|    291|  return os << _("n/a");
  ------------------
  |  |   40|    291|#define _(String) (String)
  ------------------
 1416|    331|}
_ZN5Exiv28Internal13SonyMakerNote27printHighISONoiseReduction2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1419|    952|                                                         const ExifData* metadata) {
 1420|    952|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1420:7): [True: 94, False: 858]
  |  Branch (1420:29): [True: 36, False: 822]
  |  Branch (1420:64): [True: 411, False: 411]
  ------------------
 1421|    541|    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|    411|  std::string model;
 1426|    411|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1426:7): [True: 100, False: 311]
  ------------------
 1427|    100|    return os << "(" << value << ")";
 1428|       |
 1429|    311|  if (model.starts_with("DSC-") || model.starts_with("Stellar"))
  ------------------
  |  Branch (1429:7): [True: 178, False: 133]
  |  Branch (1429:36): [True: 18, False: 115]
  ------------------
 1430|    196|    return EXV_PRINT_TAG(sonyHighISONoiseReduction2)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    196|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1431|       |
 1432|    115|  return os << _("n/a");
  ------------------
  |  |   40|    115|#define _(String) (String)
  ------------------
 1433|    311|}
_ZN5Exiv28Internal13SonyMakerNote30printSony2FpAmbientTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1870|    244|                                                            const ExifData* metadata) {
 1871|    244|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1871:7): [True: 0, False: 244]
  |  Branch (1871:29): [True: 122, False: 122]
  ------------------
 1872|    122|    return os << "(" << value << ")";
 1873|       |
 1874|    122|  auto pos = metadata->findKey(ExifKey("Exif.Sony2Fp.0x0002"));
 1875|    122|  if (pos != metadata->end() && pos->count() == 1 && pos->toInt64() == 255)
  ------------------
  |  Branch (1875:7): [True: 122, False: 0]
  |  Branch (1875:7): [True: 11, False: 111]
  |  Branch (1875:33): [True: 122, False: 0]
  |  Branch (1875:54): [True: 11, False: 111]
  ------------------
 1876|     11|    return os << value << " °C";
 1877|       |
 1878|    111|  return os << N_("n/a");
  ------------------
  |  |   41|    111|#define N_(String) String
  ------------------
 1879|    122|}
_ZN5Exiv28Internal13SonyMakerNote21printSony2FpFocusModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1881|    226|std::ostream& SonyMakerNote::printSony2FpFocusMode(std::ostream& os, const Value& value, const ExifData*) {
 1882|    226|  if (value.count() != 1)
  ------------------
  |  Branch (1882:7): [True: 0, False: 226]
  ------------------
 1883|      0|    return os << value;
 1884|       |
 1885|    226|  const auto val = (value.toInt64() & 0x7F);
 1886|    226|  switch (val) {
  ------------------
  |  Branch (1886:11): [True: 132, False: 94]
  ------------------
 1887|     46|    case 0:
  ------------------
  |  Branch (1887:5): [True: 46, False: 180]
  ------------------
 1888|     46|      return os << N_("Manual");
  ------------------
  |  |   41|     46|#define N_(String) String
  ------------------
 1889|     26|    case 2:
  ------------------
  |  Branch (1889:5): [True: 26, False: 200]
  ------------------
 1890|     26|      return os << N_("AF-S");
  ------------------
  |  |   41|     26|#define N_(String) String
  ------------------
 1891|     44|    case 3:
  ------------------
  |  Branch (1891:5): [True: 44, False: 182]
  ------------------
 1892|     44|      return os << N_("AF-C");
  ------------------
  |  |   41|     44|#define N_(String) String
  ------------------
 1893|     14|    case 4:
  ------------------
  |  Branch (1893:5): [True: 14, False: 212]
  ------------------
 1894|     14|      return os << N_("AF-A");
  ------------------
  |  |   41|     14|#define N_(String) String
  ------------------
 1895|      2|    case 6:
  ------------------
  |  Branch (1895:5): [True: 2, False: 224]
  ------------------
 1896|      2|      return os << N_("DMF");
  ------------------
  |  |   41|      2|#define N_(String) String
  ------------------
 1897|    226|  }
 1898|       |
 1899|     94|  return os << "(" << val << ")";
 1900|    226|}
_ZN5Exiv28Internal13SonyMakerNote26printSony2FpFocusPosition2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1903|    222|                                                        const ExifData* metadata) {
 1904|    222|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1904:7): [True: 0, False: 222]
  |  Branch (1904:29): [True: 111, False: 111]
  ------------------
 1905|    111|    return os << "(" << value << ")";
 1906|       |
 1907|    111|  std::string model;
 1908|    111|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1908:7): [True: 42, False: 69]
  ------------------
 1909|     42|    return os << "(" << value << ")";
 1910|       |
 1911|       |  // Ranges of models that do not support this tag
 1912|     69|  for (const auto& m : {"DSC-", "Stellar"})
  ------------------
  |  Branch (1912:22): [True: 125, False: 51]
  ------------------
 1913|    125|    if (model.starts_with(m))
  ------------------
  |  Branch (1913:9): [True: 18, False: 107]
  ------------------
 1914|     18|      return os << N_("n/a");
  ------------------
  |  |   41|     18|#define N_(String) String
  ------------------
 1915|       |
 1916|     51|  const auto val = value.toInt64();
 1917|     51|  if (val == 255)
  ------------------
  |  Branch (1917:7): [True: 4, False: 47]
  ------------------
 1918|      4|    return os << N_("Infinity");
  ------------------
  |  |   41|      4|#define N_(String) String
  ------------------
 1919|       |
 1920|     47|  return os << val;
 1921|     51|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc1CameraTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1933|     70|                                                             const ExifData* metadata) {
 1934|     70|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1934:7): [True: 0, False: 70]
  |  Branch (1934:29): [True: 35, False: 35]
  ------------------
 1935|     35|    return os << "(" << value << ")";
 1936|       |
 1937|     35|  auto pos = metadata->findKey(ExifKey("Exif.SonyMisc1.0x0004"));
 1938|     35|  if (pos != metadata->end() && pos->count() == 1 && pos->toInt64() != 0 && pos->toInt64() < 100)
  ------------------
  |  Branch (1938:7): [True: 35, False: 0]
  |  Branch (1938:7): [True: 4, False: 31]
  |  Branch (1938:33): [True: 35, False: 0]
  |  Branch (1938:54): [True: 13, False: 22]
  |  Branch (1938:77): [True: 4, False: 9]
  ------------------
 1939|      4|    return os << value << " °C";
 1940|       |
 1941|     31|  return os << N_("n/a");
  ------------------
  |  |   41|     31|#define N_(String) String
  ------------------
 1942|     35|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc2bLensZoomPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1997|     62|                                                             const ExifData* metadata) {
 1998|     62|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1998:7): [True: 0, False: 62]
  |  Branch (1998:29): [True: 31, False: 31]
  ------------------
 1999|     31|    return os << "(" << value << ")";
 2000|       |
 2001|     31|  std::string model;
 2002|     31|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2002:7): [True: 6, False: 25]
  ------------------
 2003|      6|    return os << "(" << value << ")";
 2004|       |
 2005|       |  // Models that do not support this tag
 2006|     25|  for (auto m : {"SLT-", "HV", "ILCA-"})
  ------------------
  |  Branch (2006:15): [True: 70, False: 20]
  ------------------
 2007|     70|    if (Internal::contains(model, m))
  ------------------
  |  Branch (2007:9): [True: 5, False: 65]
  ------------------
 2008|      5|      return os << N_("n/a");
  ------------------
  |  |   41|      5|#define N_(String) String
  ------------------
 2009|       |
 2010|     20|  return os << stringFormat("{}%", std::lround(value.toInt64() / 10.24));
  ------------------
  |  |   18|     20|#define stringFormat std::format
  ------------------
 2011|     25|}
_ZN5Exiv28Internal13SonyMakerNote29printSonyMisc2bFocusPosition2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2014|     62|                                                           const ExifData* metadata) {
 2015|     62|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (2015:7): [True: 0, False: 62]
  |  Branch (2015:29): [True: 31, False: 31]
  ------------------
 2016|     31|    return os << "(" << value << ")";
 2017|       |
 2018|     31|  std::string model;
 2019|     31|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2019:7): [True: 6, False: 25]
  ------------------
 2020|      6|    return os << "(" << value << ")";
 2021|       |
 2022|       |  // Models that do not support this tag
 2023|     25|  for (auto m : {"SLT-", "HV", "ILCA-"})
  ------------------
  |  Branch (2023:15): [True: 70, False: 20]
  ------------------
 2024|     70|    if (Internal::contains(model, m))
  ------------------
  |  Branch (2024:9): [True: 5, False: 65]
  ------------------
 2025|      5|      return os << N_("n/a");
  ------------------
  |  |   41|      5|#define N_(String) String
  ------------------
 2026|       |
 2027|     20|  return os << value;
 2028|     25|}
_ZN5Exiv28Internal13SonyMakerNote37printSonyMisc3cShotNumberSincePowerUpERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2106|    280|                                                                   const ExifData* metadata) {
 2107|    280|  if (value.count() != 1 || value.typeId() != unsignedLong || !metadata)
  ------------------
  |  Branch (2107:7): [True: 0, False: 280]
  |  Branch (2107:29): [True: 48, False: 232]
  |  Branch (2107:63): [True: 116, False: 116]
  ------------------
 2108|    164|    return os << "(" << value << ")";
 2109|       |
 2110|    116|  std::string model;
 2111|    116|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2111:7): [True: 47, False: 69]
  ------------------
 2112|     47|    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|     69|  static constexpr const char* models[] = {
 2117|     69|      "ILCA-68",     "ILCA-77M2",   "ILCA-99M2",   "ILCE-5000",  "ILCE-5100", "ILCE-6000",  "ILCE-6300",
 2118|     69|      "ILCE-6500",   "ILCE-7",      "ILCE-7M2",    "ILCE-7R",    "ILCE-7RM2", "ILCE-7S",    "ILCE-7SM2",
 2119|     69|      "ILCE-7SM5",   "ILCE-QX1",    "DSC-HX350",   "DSC-HX400V", "DSC-HX60V", "DSC-HX80",   "DSC-HX90",
 2120|     69|      "DSC-HX90V",   "DSC-QX30",    "DSC-RX0",     "DSC-RX1RM2", "DSC-RX10",  "DSC-RX10M2", "DSC-RX10M3",
 2121|     69|      "DSC-RX100M3", "DSC-RX100M4", "DSC-RX100M5", "DSC-WX220",  "DSC-WX350", "DSC-WX500",
 2122|     69|  };
 2123|       |
 2124|     69|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2124:7): [True: 11, False: 58]
  ------------------
 2125|     11|    return os << value.toInt64();
 2126|       |
 2127|     58|  return os << N_("n/a");
  ------------------
  |  |   41|     58|#define N_(String) String
  ------------------
 2128|     69|}
_ZN5Exiv28Internal13SonyMakerNote29printSonyMisc3cSequenceNumberERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2130|    550|std::ostream& SonyMakerNote::printSonyMisc3cSequenceNumber(std::ostream& os, const Value& value, const ExifData*) {
 2131|    550|  return (value.count() != 1 || value.typeId() != unsignedLong) ? os << "(" << value << ")"
  ------------------
  |  Branch (2131:11): [True: 0, False: 550]
  |  Branch (2131:33): [True: 96, False: 454]
  ------------------
 2132|    550|                                                                : os << (value.toInt64() + 1);
 2133|    550|}
_ZN5Exiv28Internal13SonyMakerNote23printSonyMisc3cQuality2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2135|    262|std::ostream& SonyMakerNote::printSonyMisc3cQuality2(std::ostream& os, const Value& value, const ExifData* metadata) {
 2136|    262|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (2136:7): [True: 0, False: 262]
  |  Branch (2136:29): [True: 0, False: 262]
  |  Branch (2136:63): [True: 131, False: 131]
  ------------------
 2137|    131|    return os << "(" << value << ")";
 2138|       |
 2139|    131|  std::string model;
 2140|    131|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2140:7): [True: 42, False: 89]
  ------------------
 2141|     42|    return os << "(" << value << ")";
 2142|       |
 2143|     89|  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|     89|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2148|       |
 2149|     89|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2149:7): [True: 18, False: 71]
  ------------------
 2150|     18|    return EXV_PRINT_TAG(sonyMisc3cQuality2a)(os, val, metadata);
  ------------------
  |  |  199|     18|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2151|       |
 2152|     71|  return EXV_PRINT_TAG(sonyMisc3cQuality2b)(os, val, metadata);
  ------------------
  |  |  199|     71|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2153|     89|}
_ZN5Exiv28Internal13SonyMakerNote30printSonyMisc3cSonyImageHeightERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2156|    172|                                                            const ExifData* metadata) {
 2157|    172|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (2157:7): [True: 0, False: 172]
  |  Branch (2157:29): [True: 48, False: 124]
  |  Branch (2157:64): [True: 62, False: 62]
  ------------------
 2158|    110|    return os << "(" << value << ")";
 2159|       |
 2160|     62|  std::string model;
 2161|     62|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2161:7): [True: 16, False: 46]
  ------------------
 2162|     16|    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|     46|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2167|       |
 2168|     46|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2168:7): [True: 5, False: 41]
  ------------------
 2169|      5|    return os << N_("n/a");
  ------------------
  |  |   41|      5|#define N_(String) String
  ------------------
 2170|       |
 2171|     41|  const auto val = value.toInt64();
 2172|     41|  if (val > 0)
  ------------------
  |  Branch (2172:7): [True: 26, False: 15]
  ------------------
 2173|     26|    return os << (8 * val);
 2174|     15|  return os << N_("n/a");
  ------------------
  |  |   41|     15|#define N_(String) String
  ------------------
 2175|     41|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc3cModelReleaseYearERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2178|    144|                                                             const ExifData* metadata) {
 2179|    144|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (2179:7): [True: 0, False: 144]
  |  Branch (2179:29): [True: 0, False: 144]
  |  Branch (2179:63): [True: 72, False: 72]
  ------------------
 2180|     72|    return os << "(" << value << ")";
 2181|       |
 2182|     72|  std::string model;
 2183|     72|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2183:7): [True: 12, False: 60]
  ------------------
 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|     60|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2189|       |
 2190|     60|  if (Exiv2::find(models, model)) {
  ------------------
  |  Branch (2190:7): [True: 4, False: 56]
  ------------------
 2191|      4|    return os << N_("n/a");
  ------------------
  |  |   41|      4|#define N_(String) String
  ------------------
 2192|      4|  }
 2193|       |
 2194|     56|  const auto val = value.toInt64();
 2195|     56|  if (val > 99)
  ------------------
  |  Branch (2195:7): [True: 20, False: 36]
  ------------------
 2196|     20|    return os << "(" << val << ")";
 2197|       |
 2198|     36|  if (val == 0)
  ------------------
  |  Branch (2198:7): [True: 11, False: 25]
  ------------------
 2199|     11|    return os << "2000";
 2200|       |
 2201|     25|  return os << "20" << val;
 2202|     36|}
_ZN5Exiv28Internal15sonyTagDecipherEtPKhmPNS0_13TiffComponentE:
 2331|    762|DataBuf sonyTagDecipher(uint16_t tag, const byte* bytes, size_t size, TiffComponent* object) {
 2332|    762|  return sonyTagCipher(tag, bytes, size, object, true);
 2333|    762|}
_ZN5Exiv28Internal15sonyTagEncipherEtPKhmPNS0_13TiffComponentE:
 2334|     35|DataBuf sonyTagEncipher(uint16_t tag, const byte* bytes, size_t size, TiffComponent* object) {
 2335|     35|  return sonyTagCipher(tag, bytes, size, object, false);
 2336|     35|}
sonymn_int.cpp:_ZN5Exiv28InternalL8getModelEPKNS_8ExifDataERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  814|  13.5k|static auto getModel(const ExifData* metadata, std::string& val) {
  815|  13.5k|  auto pos = metadata->findKey(ExifKey("Exif.Image.Model"));
  816|  13.5k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == asciiString) {
  ------------------
  |  Branch (816:7): [True: 6.22k, False: 7.31k]
  |  Branch (816:7): [True: 5.17k, False: 8.35k]
  |  Branch (816:33): [True: 5.50k, False: 714]
  |  Branch (816:53): [True: 5.17k, False: 329]
  ------------------
  817|  5.17k|    val = pos->toString(0);
  818|  5.17k|    return true;
  819|  5.17k|  }
  820|       |
  821|       |  // NOTE: As using the translated SonyModelID value, need to be synchronized with the array format
  822|  8.35k|  pos = metadata->findKey(ExifKey("Exif.Sony1.SonyModelID"));
  823|  8.35k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedShort) {
  ------------------
  |  Branch (823:7): [True: 538, False: 7.82k]
  |  Branch (823:7): [True: 360, False: 7.99k]
  |  Branch (823:33): [True: 404, False: 134]
  |  Branch (823:53): [True: 360, False: 44]
  ------------------
  824|    360|    if (auto temp = pos->print(metadata); !Internal::contains(temp, ' ')) {
  ------------------
  |  Branch (824:43): [True: 314, False: 46]
  ------------------
  825|    314|      val = std::move(temp);
  826|    314|      return true;
  827|    314|    }
  828|     46|    val = "";
  829|     46|    return false;
  830|    360|  }
  831|  7.99k|  pos = metadata->findKey(ExifKey("Exif.Sony2.SonyModelID"));
  832|  7.99k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedShort) {
  ------------------
  |  Branch (832:7): [True: 7.14k, False: 857]
  |  Branch (832:7): [True: 6.93k, False: 1.06k]
  |  Branch (832:33): [True: 7.04k, False: 101]
  |  Branch (832:53): [True: 6.93k, False: 106]
  ------------------
  833|  6.93k|    if (auto temp = pos->print(metadata); !Internal::contains(temp, ' ')) {
  ------------------
  |  Branch (833:43): [True: 6.82k, False: 108]
  ------------------
  834|  6.82k|      val = std::move(temp);
  835|  6.82k|      return true;
  836|  6.82k|    }
  837|    108|    val = "";
  838|    108|    return false;
  839|  6.93k|  }
  840|       |
  841|  1.06k|  val = "";
  842|  1.06k|  return false;
  843|  7.99k|}
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote15printFocusMode2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1007|  3.69k|      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|  24.1k|  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.86k|  if (std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
sonymn_int.cpp:_ZN5Exiv28InternalL20getAFAreaModeSettingEPKNS_8ExifDataERj:
  845|  4.44k|static auto getAFAreaModeSetting(const ExifData* metadata, uint32_t& val) {
  846|  4.44k|  auto pos = metadata->findKey(ExifKey("Exif.Sony1.AFAreaModeSetting"));
  847|  4.44k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (847:7): [True: 955, False: 3.48k]
  |  Branch (847:7): [True: 534, False: 3.90k]
  |  Branch (847:33): [True: 612, False: 343]
  |  Branch (847:53): [True: 534, False: 78]
  ------------------
  848|    534|    std::ostringstream oss;
  849|    534|    pos->write(oss, metadata);
  850|    534|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|    534|#define _(String) (String)
  ------------------
  |  Branch (850:9): [True: 40, False: 494]
  ------------------
  851|     40|      val = 0;
  852|     40|      return false;
  853|     40|    }
  854|       |
  855|    494|    val = pos->toUint32(0);
  856|    494|    return true;
  857|    534|  }
  858|  3.90k|  pos = metadata->findKey(ExifKey("Exif.Sony2.AFAreaModeSetting"));
  859|  3.90k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (859:7): [True: 3.00k, False: 909]
  |  Branch (859:7): [True: 2.76k, False: 1.14k]
  |  Branch (859:33): [True: 2.89k, False: 104]
  |  Branch (859:53): [True: 2.76k, False: 131]
  ------------------
  860|  2.76k|    std::ostringstream oss;
  861|  2.76k|    pos->write(oss, metadata);
  862|  2.76k|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|  2.76k|#define _(String) (String)
  ------------------
  |  Branch (862:9): [True: 560, False: 2.20k]
  ------------------
  863|    560|      val = 0;
  864|    560|      return false;
  865|    560|    }
  866|       |
  867|  2.20k|    val = pos->toUint32(0);
  868|  2.20k|    return true;
  869|  2.76k|  }
  870|       |
  871|  1.14k|  val = 0;
  872|  1.14k|  return false;
  873|  3.90k|}
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote17printAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1107|    821|  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|  3.17k|      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|    524|static void findLensSpecFlags(const Value& value, std::string& flagsStart, std::string& flagsEnd) {
 1248|    524|  static constexpr struct LensSpecFlags {
 1249|    524|    int64_t mask;  // Contains all the bits set in the flags.val_ array values
 1250|    524|    TagDetails flags[4];
 1251|    524|    bool prepend;
 1252|    524|  } lSFArray[] = {
 1253|    524|      {0x4000, {{0x4000, "PZ"}}, true},
 1254|    524|      {0x0300, {{0x0100, "DT"}, {0x0200, "FE"}, {0x0300, "E"}}, true},
 1255|    524|      {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    524|#define N_(String) String
  ------------------
                    {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    524|#define N_(String) String
  ------------------
                    {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    524|#define N_(String) String
  ------------------
 1256|    524|      {0x000c, {{0x0004, "ZA"}, {0x0008, "G"}}, false},
 1257|    524|      {0x0003, {{0x0001, "SSM"}, {0x0002, "SAM"}}, false},
 1258|    524|      {0x8000, {{0x8000, "OSS"}}, false},
 1259|    524|      {0x2000, {{0x2000, "LE"}}, false},
 1260|    524|      {0x0800, {{0x0800, "II"}}, false},
 1261|    524|  };
 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|    524|  const auto joinedV0V7 = ((value.toUint32(0) << 8) + value.toUint32(7));
 1270|  4.13k|  for (const auto& i : lSFArray) {
  ------------------
  |  Branch (1270:22): [True: 4.13k, False: 510]
  ------------------
 1271|  4.13k|    if (auto temp = i.mask & joinedV0V7) {  // Check if a flag matches in the current LensSpecFlags
  ------------------
  |  Branch (1271:14): [True: 2.21k, False: 1.91k]
  ------------------
 1272|  2.21k|      if (auto f = Exiv2::find(i.flags, temp)) {
  ------------------
  |  Branch (1272:16): [True: 2.20k, False: 14]
  ------------------
 1273|  2.20k|        if (i.prepend)
  ------------------
  |  Branch (1273:13): [True: 578, False: 1.62k]
  ------------------
 1274|    578|          flagsStart = flagsStart.empty() ? f->label_ : stringFormat("{} {}", f->label_, flagsStart);
  ------------------
  |  |   18|    175|#define stringFormat std::format
  ------------------
  |  Branch (1274:24): [True: 403, False: 175]
  ------------------
 1275|  1.62k|        else
 1276|  1.62k|          flagsEnd = flagsEnd.empty() ? f->label_ : stringFormat("{} {}", flagsEnd, f->label_);
  ------------------
  |  |   18|  1.23k|#define stringFormat std::format
  ------------------
  |  Branch (1276:22): [True: 393, False: 1.23k]
  ------------------
 1277|  2.20k|        continue;
 1278|  2.20k|      }
 1279|       |      // Should never get in here. LensSpecFlags.mask should contain all the
 1280|       |      // bits in all the LensSpecFlags.flags.val_ entries
 1281|     14|      throw Error(ErrorCode::kerErrorMessage, "LensSpecFlags mask doesn't match the bits in the flags array");
 1282|  2.21k|    }
 1283|  4.13k|  }
 1284|    524|}
sonymn_int.cpp:_ZN5Exiv28InternalL14getMetaVersionEPKNS_8ExifDataERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  875|    837|static auto getMetaVersion(const ExifData* metadata, std::string& val) {
  876|    837|  const auto pos = metadata->findKey(ExifKey("Exif.SonySInfo1.MetaVersion"));
  877|       |
  878|    837|  if (pos != metadata->end() && pos->typeId() == asciiString) {
  ------------------
  |  Branch (878:7): [True: 512, False: 325]
  |  Branch (878:7): [True: 512, False: 325]
  |  Branch (878:33): [True: 512, False: 0]
  ------------------
  879|    512|    std::string temp = pos->toString();
  880|    512|    if (!temp.empty()) {
  ------------------
  |  Branch (880:9): [True: 432, False: 80]
  ------------------
  881|    432|      val = std::move(temp);
  882|    432|      return true;
  883|    432|    }
  884|    512|  }
  885|    405|  val = "";
  886|    405|  return false;
  887|    837|}
sonymn_int.cpp:_ZN5Exiv28InternalL13getFocusMode2EPKNS_8ExifDataERj:
  889|    198|static auto getFocusMode2(const ExifData* metadata, uint32_t& val) {
  890|    198|  auto pos = metadata->findKey(ExifKey("Exif.Sony1.FocusMode2"));
  891|       |
  892|    198|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (892:7): [True: 0, False: 198]
  |  Branch (892:7): [True: 0, False: 198]
  |  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|    198|  pos = metadata->findKey(ExifKey("Exif.Sony2.FocusMode2"));
  904|    198|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (904:7): [True: 179, False: 19]
  |  Branch (904:7): [True: 143, False: 55]
  |  Branch (904:33): [True: 161, False: 18]
  |  Branch (904:53): [True: 143, False: 18]
  ------------------
  905|    143|    std::ostringstream oss;
  906|    143|    pos->write(oss, metadata);
  907|    143|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|    143|#define _(String) (String)
  ------------------
  |  Branch (907:9): [True: 10, False: 133]
  ------------------
  908|     10|      val = 0;
  909|     10|      return false;
  910|     10|    }
  911|    133|    val = pos->toUint32(0);
  912|    133|    return true;
  913|    143|  }
  914|       |
  915|     55|  val = 0;
  916|     55|  return false;
  917|    198|}
sonymn_int.cpp:_ZN5Exiv28InternalL13sonyTagCipherEtPKhmPKNS0_13TiffComponentEb:
 2307|    797|                             bool bDecipher) {
 2308|    797|  DataBuf b(bytes, size);  // copy the data
 2309|       |
 2310|       |  // initialize the code table
 2311|    797|  byte code[256];
 2312|   199k|  for (uint32_t i = 0; i < 249; i++) {
  ------------------
  |  Branch (2312:24): [True: 198k, False: 797]
  ------------------
 2313|   198k|    if (bDecipher) {
  ------------------
  |  Branch (2313:9): [True: 189k, False: 8.71k]
  ------------------
 2314|   189k|      code[(i * i * i) % 249] = static_cast<byte>(i);
 2315|   189k|    } else {
 2316|  8.71k|      code[i] = (i * i * i) % 249;
 2317|  8.71k|    }
 2318|   198k|  }
 2319|  6.37k|  for (uint32_t i = 249; i < 256; i++) {
  ------------------
  |  Branch (2319:26): [True: 5.57k, False: 797]
  ------------------
 2320|  5.57k|    code[i] = static_cast<byte>(i);
 2321|  5.57k|  }
 2322|       |
 2323|       |  // code byte-by-byte
 2324|  1.62M|  for (uint32_t i = 0; i < size; i++) {
  ------------------
  |  Branch (2324:24): [True: 1.62M, False: 797]
  ------------------
 2325|  1.62M|    b.write_uint8(i, code[bytes[i]]);
 2326|  1.62M|  }
 2327|       |
 2328|    797|  return b;
 2329|    797|}

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

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

_ZN5Exiv28Internal10ifdTagListEv:
 1767|  2.17M|const TagInfo* ifdTagList() {
 1768|  2.17M|  return ifdTagInfo;
 1769|  2.17M|}
_ZN5Exiv28Internal11exifTagListEv:
 2166|  77.7k|const TagInfo* exifTagList() {
 2167|  77.7k|  return exifTagInfo;
 2168|  77.7k|}
_ZN5Exiv28Internal10gpsTagListEv:
 2382|  62.0k|const TagInfo* gpsTagList() {
 2383|  62.0k|  return gpsTagInfo;
 2384|  62.0k|}
_ZN5Exiv28Internal10mpfTagListEv:
 2431|    195|const TagInfo* mpfTagList() {
 2432|    195|  return mpfTagInfo;
 2433|    195|}
_ZN5Exiv28Internal10iopTagListEv:
 2457|  15.5k|const TagInfo* iopTagList() {
 2458|  15.5k|  return iopTagInfo;
 2459|  15.5k|}
_ZN5Exiv28Internal9mnTagListEv:
 2473|   179k|const TagInfo* mnTagList() {
 2474|   179k|  return mnTagInfo;
 2475|   179k|}
_ZN5Exiv28Internal10isMakerIfdENS_5IfdIdE:
 2477|  15.1M|bool isMakerIfd(IfdId ifdId) {
 2478|  15.1M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2478:12): [True: 15.1M, False: 0]
  ------------------
 2479|  15.1M|    return std::string_view("Makernote") == ii->ifdName_;
 2480|      0|  return false;
 2481|  15.1M|}
_ZN5Exiv28Internal9isExifIfdENS_5IfdIdE:
 2483|  16.9M|bool isExifIfd(IfdId ifdId) {
 2484|  16.9M|  switch (ifdId) {
 2485|  1.03M|    case IfdId::ifd0Id:
  ------------------
  |  Branch (2485:5): [True: 1.03M, False: 15.9M]
  ------------------
 2486|  1.08M|    case IfdId::exifId:
  ------------------
  |  Branch (2486:5): [True: 54.6k, False: 16.9M]
  ------------------
 2487|  1.13M|    case IfdId::gpsId:
  ------------------
  |  Branch (2487:5): [True: 48.7k, False: 16.9M]
  ------------------
 2488|  1.14M|    case IfdId::iopId:
  ------------------
  |  Branch (2488:5): [True: 13.1k, False: 16.9M]
  ------------------
 2489|  1.17M|    case IfdId::ifd1Id:
  ------------------
  |  Branch (2489:5): [True: 25.7k, False: 16.9M]
  ------------------
 2490|  1.18M|    case IfdId::ifd2Id:
  ------------------
  |  Branch (2490:5): [True: 13.1k, False: 16.9M]
  ------------------
 2491|  1.18M|    case IfdId::ifd3Id:
  ------------------
  |  Branch (2491:5): [True: 2.12k, False: 16.9M]
  ------------------
 2492|  1.18M|    case IfdId::mpfId:
  ------------------
  |  Branch (2492:5): [True: 0, False: 16.9M]
  ------------------
 2493|  1.33M|    case IfdId::subImage1Id:
  ------------------
  |  Branch (2493:5): [True: 150k, False: 16.8M]
  ------------------
 2494|  1.46M|    case IfdId::subImage2Id:
  ------------------
  |  Branch (2494:5): [True: 124k, False: 16.8M]
  ------------------
 2495|  1.57M|    case IfdId::subImage3Id:
  ------------------
  |  Branch (2495:5): [True: 110k, False: 16.8M]
  ------------------
 2496|  1.68M|    case IfdId::subImage4Id:
  ------------------
  |  Branch (2496:5): [True: 107k, False: 16.8M]
  ------------------
 2497|  1.70M|    case IfdId::subImage5Id:
  ------------------
  |  Branch (2497:5): [True: 19.6k, False: 16.9M]
  ------------------
 2498|  1.71M|    case IfdId::subImage6Id:
  ------------------
  |  Branch (2498:5): [True: 14.4k, False: 16.9M]
  ------------------
 2499|  1.73M|    case IfdId::subImage7Id:
  ------------------
  |  Branch (2499:5): [True: 17.3k, False: 16.9M]
  ------------------
 2500|  1.74M|    case IfdId::subImage8Id:
  ------------------
  |  Branch (2500:5): [True: 16.3k, False: 16.9M]
  ------------------
 2501|  1.76M|    case IfdId::subImage9Id:
  ------------------
  |  Branch (2501:5): [True: 18.1k, False: 16.9M]
  ------------------
 2502|  1.77M|    case IfdId::subThumb1Id:
  ------------------
  |  Branch (2502:5): [True: 11.4k, False: 16.9M]
  ------------------
 2503|  1.84M|    case IfdId::panaRawId:
  ------------------
  |  Branch (2503:5): [True: 69.9k, False: 16.9M]
  ------------------
 2504|  1.84M|      return true;
 2505|  15.1M|    default:
  ------------------
  |  Branch (2505:5): [True: 15.1M, False: 1.84M]
  ------------------
 2506|  15.1M|      return false;
 2507|  16.9M|  }
 2508|  16.9M|}
_ZN5Exiv28Internal7tagListENS_5IfdIdE:
 2518|  18.2M|const TagInfo* tagList(IfdId ifdId) {
 2519|  18.2M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2519:12): [True: 18.2M, False: 0]
  ------------------
 2520|  18.2M|    if (ii->tagList_)
  ------------------
  |  Branch (2520:9): [True: 18.2M, False: 0]
  ------------------
 2521|  18.2M|      return ii->tagList_();
 2522|      0|  return nullptr;
 2523|  18.2M|}  // tagList
_ZN5Exiv28Internal7tagInfoEtNS_5IfdIdE:
 2525|  17.7M|const TagInfo* tagInfo(uint16_t tag, IfdId ifdId) {
 2526|  17.7M|  if (auto ti = tagList(ifdId)) {
  ------------------
  |  Branch (2526:12): [True: 17.7M, False: 0]
  ------------------
 2527|  17.7M|    int idx = 0;
 2528|   798M|    for (idx = 0; ti[idx].tag_ != 0xffff; ++idx) {
  ------------------
  |  Branch (2528:19): [True: 783M, False: 15.1M]
  ------------------
 2529|   783M|      if (ti[idx].tag_ == tag)
  ------------------
  |  Branch (2529:11): [True: 2.59M, False: 780M]
  ------------------
 2530|  2.59M|        break;
 2531|   783M|    }
 2532|  17.7M|    return ti + idx;
 2533|  17.7M|  }
 2534|      0|  return nullptr;
 2535|  17.7M|}  // tagInfo
_ZN5Exiv28Internal7tagInfoERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5IfdIdE:
 2537|   528k|const TagInfo* tagInfo(const std::string& tagName, IfdId ifdId) {
 2538|   528k|  if (tagName.empty())
  ------------------
  |  Branch (2538:7): [True: 0, False: 528k]
  ------------------
 2539|      0|    return nullptr;
 2540|   528k|  if (auto ti = tagList(ifdId)) {
  ------------------
  |  Branch (2540:12): [True: 528k, False: 0]
  ------------------
 2541|  26.4M|    for (int idx = 0; ti[idx].tag_ != 0xffff; ++idx) {
  ------------------
  |  Branch (2541:23): [True: 26.3M, False: 35.3k]
  ------------------
 2542|  26.3M|      if (tagName == ti[idx].name_) {
  ------------------
  |  Branch (2542:11): [True: 493k, False: 25.8M]
  ------------------
 2543|   493k|        return ti + idx;
 2544|   493k|      }
 2545|  26.3M|    }
 2546|   528k|  }
 2547|  35.3k|  return nullptr;
 2548|   528k|}  // tagInfo
_ZN5Exiv28Internal7groupIdERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 2550|  19.7M|IfdId groupId(const std::string& groupName) {
 2551|  19.7M|  if (auto ii = Exiv2::find(groupInfo, groupName))
  ------------------
  |  Branch (2551:12): [True: 19.7M, False: 0]
  ------------------
 2552|  19.7M|    return IfdId{ii->ifdId_};
 2553|      0|  return IfdId::ifdIdNotSet;
 2554|  19.7M|}
_ZN5Exiv28Internal9groupNameENS_5IfdIdE:
 2562|  16.3M|const char* groupName(IfdId ifdId) {
 2563|  16.3M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2563:12): [True: 16.3M, False: 0]
  ------------------
 2564|  16.3M|    return ii->groupName_;
 2565|      0|  return groupInfo[0].groupName_;
 2566|  16.3M|}
_ZN5Exiv28Internal10printValueERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2568|   293k|std::ostream& printValue(std::ostream& os, const Value& value, const ExifData*) {
 2569|   293k|  return os << value;
 2570|   293k|}
_ZN5Exiv28Internal12printBitmaskERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2572|  2.41k|std::ostream& printBitmask(std::ostream& os, const Value& value, const ExifData* metadata) {
 2573|  2.41k|  if (value.typeId() == Exiv2::unsignedShort || value.typeId() == Exiv2::signedShort) {
  ------------------
  |  Branch (2573:7): [True: 420, False: 1.99k]
  |  Branch (2573:49): [True: 1.37k, False: 626]
  ------------------
 2574|  1.79k|    uint16_t bit = 0;
 2575|  1.79k|    uint16_t comma = 0;
 2576|  11.9M|    for (size_t i = 0; i < value.count(); i++) {  // for each element in value array
  ------------------
  |  Branch (2576:24): [True: 11.9M, False: 1.79k]
  ------------------
 2577|  11.9M|      auto bits = static_cast<uint16_t>(value.toInt64(i));
 2578|   203M|      for (uint16_t b = 0; b < 16; ++b) {  // for every bit
  ------------------
  |  Branch (2578:28): [True: 191M, False: 11.9M]
  ------------------
 2579|   191M|        if (bits & (1 << b)) {
  ------------------
  |  Branch (2579:13): [True: 166M, False: 24.8M]
  ------------------
 2580|   166M|          if (comma++) {
  ------------------
  |  Branch (2580:15): [True: 166M, False: 4.23k]
  ------------------
 2581|   166M|            os << ",";
 2582|   166M|          }
 2583|   166M|          os << bit;
 2584|   166M|        }
 2585|   191M|        bit++;
 2586|   191M|      }
 2587|  11.9M|    }
 2588|       |    // if no bits are set, print "(none)"
 2589|  1.79k|    if (!comma)
  ------------------
  |  Branch (2589:9): [True: 44, False: 1.74k]
  ------------------
 2590|     44|      os << N_("(none)");
  ------------------
  |  |   41|     44|#define N_(String) String
  ------------------
 2591|  1.79k|  } else {
 2592|    626|    printValue(os, value, metadata);
 2593|    626|  }
 2594|  2.41k|  return os;
 2595|  2.41k|}
_ZN5Exiv28Internal7fnumberEf:
 2597|  13.9k|float fnumber(float apertureValue) {
 2598|  13.9k|  float result = std::exp2(apertureValue / 2.F);
 2599|  13.9k|  if (std::abs(result - 3.5F) < 0.1F) {
  ------------------
  |  Branch (2599:7): [True: 107, False: 13.7k]
  ------------------
 2600|    107|    result = 3.5F;
 2601|    107|  }
 2602|  13.9k|  return result;
 2603|  13.9k|}
_ZN5Exiv28Internal12exposureTimeEf:
 2605|  1.87k|URational exposureTime(float shutterSpeedValue) {
 2606|  1.87k|  URational ur(1, 1);
 2607|  1.87k|  const double tmp = std::exp2(shutterSpeedValue);
 2608|  1.87k|  if (tmp > 1) {
  ------------------
  |  Branch (2608:7): [True: 1.15k, False: 722]
  ------------------
 2609|  1.15k|    const double x = std::round(tmp);
 2610|       |    // Check that x is within the range of a uint32_t before casting.
 2611|  1.15k|    if (x <= std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (2611:9): [True: 600, False: 556]
  ------------------
 2612|    600|      ur.second = static_cast<uint32_t>(x);
 2613|    600|    }
 2614|  1.15k|  } else {
 2615|    722|    const double x = std::round(1 / tmp);
 2616|       |    // Check that x is within the range of a uint32_t before casting.
 2617|    722|    if (0 <= x && x <= std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (2617:9): [True: 722, False: 0]
  |  Branch (2617:19): [True: 556, False: 166]
  ------------------
 2618|    556|      ur.first = static_cast<uint32_t>(x);
 2619|    556|    }
 2620|    722|  }
 2621|  1.87k|  return ur;
 2622|  1.87k|}
_ZN5Exiv28Internal9tagNumberERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5IfdIdE:
 2624|   528k|uint16_t tagNumber(const std::string& tagName, IfdId ifdId) {
 2625|   528k|  auto ti = tagInfo(tagName, ifdId);
 2626|   528k|  if (ti && ti->tag_ != 0xffff)
  ------------------
  |  Branch (2626:7): [True: 493k, False: 35.3k]
  |  Branch (2626:13): [True: 493k, False: 0]
  ------------------
 2627|   493k|    return ti->tag_;
 2628|  35.3k|  if (!isHex(tagName, 4, "0x"))
  ------------------
  |  Branch (2628:7): [True: 0, False: 35.3k]
  ------------------
 2629|      0|    throw Error(ErrorCode::kerInvalidTag, tagName, ifdId);
 2630|  35.3k|  return static_cast<uint16_t>(std::stoi(tagName, nullptr, 16));
 2631|  35.3k|}  // tagNumber
_ZN5Exiv28Internal10printInt64ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2633|  2.86k|std::ostream& printInt64(std::ostream& os, const Value& value, const ExifData*) {
 2634|  2.86k|  Rational r = value.toRational();
 2635|  2.86k|  if (r.second > 0)
  ------------------
  |  Branch (2635:7): [True: 2.71k, False: 154]
  ------------------
 2636|  2.71k|    return os << static_cast<int64_t>(r.first) / r.second;
 2637|    154|  return os << "(" << value << ")";
 2638|  2.86k|}  // printLong
_ZN5Exiv28Internal10printFloatERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2640|  1.81k|std::ostream& printFloat(std::ostream& os, const Value& value, const ExifData*) {
 2641|  1.81k|  Rational r = value.toRational();
 2642|  1.81k|  if (r.second != 0) {
  ------------------
  |  Branch (2642:7): [True: 1.72k, False: 82]
  ------------------
 2643|  1.72k|    os << value.toFloat();
 2644|  1.72k|  } else {
 2645|     82|    os << "(" << value << ")";
 2646|     82|  }
 2647|  1.81k|  return os;
 2648|  1.81k|}  // printFloat
_ZN5Exiv28Internal12printDegreesERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2650|  1.19k|std::ostream& printDegrees(std::ostream& os, const Value& value, const ExifData*) {
 2651|  1.19k|  std::ios::fmtflags f(os.flags());
 2652|  1.19k|  if (value.count() == 3) {
  ------------------
  |  Branch (2652:7): [True: 900, False: 290]
  ------------------
 2653|    900|    Rational deg = value.toRational(0);
 2654|    900|    Rational min = value.toRational(1);
 2655|    900|    Rational sec = value.toRational(2);
 2656|    900|    if ((deg.second != 1) || (min.second <= 0) || (sec.second <= 0)) {
  ------------------
  |  Branch (2656:9): [True: 228, False: 672]
  |  Branch (2656:30): [True: 158, False: 514]
  |  Branch (2656:51): [True: 134, False: 380]
  ------------------
 2657|    520|      return os << "(" << value << ")";
 2658|    520|    }
 2659|    380|    const int32_t dd = deg.first;
 2660|    380|    const int32_t mm = min.first / min.second;
 2661|    380|    const int32_t rem = min.first % min.second;
 2662|    380|    if ((min.second > 1) && (rem > 0)) {
  ------------------
  |  Branch (2662:9): [True: 128, False: 252]
  |  Branch (2662:29): [True: 106, False: 22]
  ------------------
 2663|    106|      if ((sec.first == 0) && (sec.second == 1) && (rem <= std::numeric_limits<int32_t>::max() / 60)) {
  ------------------
  |  Branch (2663:11): [True: 44, False: 62]
  |  Branch (2663:31): [True: 40, False: 4]
  |  Branch (2663:52): [True: 36, False: 4]
  ------------------
 2664|     36|        sec.first = 60 * rem;
 2665|     36|        sec.second = min.second;
 2666|     70|      } else {
 2667|     70|        return os << "(" << value << ")";
 2668|     70|      }
 2669|    106|    }
 2670|    310|    const float ss = static_cast<float>(sec.first) / sec.second;
 2671|    310|    os << dd << " deg ";
 2672|    310|    os << mm << "' ";
 2673|    310|    std::ostringstream oss;
 2674|    310|    oss.copyfmt(os);
 2675|    310|    os << std::fixed << std::setprecision(sec.second > 1 ? 2 : 0) << ss << "\"";
  ------------------
  |  Branch (2675:43): [True: 78, False: 232]
  ------------------
 2676|    310|    os.copyfmt(oss);
 2677|    310|  } else {
 2678|    290|    os << "(" << value << ")";
 2679|    290|  }
 2680|    600|  os.flags(f);
 2681|    600|  return os;
 2682|  1.19k|}  // printDegrees
_ZN5Exiv28Internal9printUcs2ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2684|    704|std::ostream& printUcs2(std::ostream& os, const Value& value, const ExifData*) {
 2685|    704|  bool cnv = false;
 2686|    704|  if (value.typeId() == unsignedByte && value.size() > 0) {
  ------------------
  |  Branch (2686:7): [True: 558, False: 146]
  |  Branch (2686:41): [True: 558, False: 0]
  ------------------
 2687|    558|    DataBuf buf(value.size());
 2688|    558|    value.copy(buf.data(), invalidByteOrder);
 2689|       |    // Strip trailing odd byte due to failing UCS-2 conversion
 2690|    558|    if (buf.size() % 2 == 1) {
  ------------------
  |  Branch (2690:9): [True: 256, False: 302]
  ------------------
 2691|    256|      buf.resize(buf.size() - 1);
 2692|    256|    }
 2693|       |
 2694|       |    // Strip trailing UCS-2 0-characters
 2695|  1.64k|    while (buf.size() >= 2) {
  ------------------
  |  Branch (2695:12): [True: 1.57k, False: 78]
  ------------------
 2696|  1.57k|      if (buf.read_uint8(buf.size() - 1) != 0 || buf.read_uint8(buf.size() - 2) != 0)
  ------------------
  |  Branch (2696:11): [True: 330, False: 1.24k]
  |  Branch (2696:50): [True: 150, False: 1.09k]
  ------------------
 2697|    480|        break;
 2698|  1.09k|      buf.resize(buf.size() - 2);
 2699|  1.09k|    }
 2700|       |
 2701|    558|    std::string str(buf.c_str(), buf.size());
 2702|    558|    cnv = convertStringCharset(str, "UCS-2LE", "UTF-8");
 2703|    558|    if (cnv)
  ------------------
  |  Branch (2703:9): [True: 414, False: 144]
  ------------------
 2704|    414|      os << str;
 2705|    558|  }
 2706|    704|  if (!cnv)
  ------------------
  |  Branch (2706:7): [True: 290, False: 414]
  ------------------
 2707|    290|    os << value;
 2708|    704|  return os;
 2709|    704|}
_ZN5Exiv28Internal13printExifUnitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2711|    480|std::ostream& printExifUnit(std::ostream& os, const Value& value, const ExifData* metadata) {
 2712|    480|  return EXV_PRINT_TAG(exifUnit)(os, value, metadata);
  ------------------
  |  |  199|    480|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2713|    480|}
_ZN5Exiv28Internal22printLensSpecificationERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2715|  1.08k|std::ostream& printLensSpecification(std::ostream& os, const Value& value, const ExifData*) {
 2716|  1.08k|  std::ios::fmtflags f(os.flags());
 2717|       |  // check type and count of values
 2718|  1.08k|  if (value.typeId() != unsignedRational || value.count() != 4 ||
  ------------------
  |  Branch (2718:7): [True: 26, False: 1.06k]
  |  Branch (2718:7): [True: 262, False: 824]
  |  Branch (2718:45): [True: 18, False: 1.04k]
  ------------------
 2719|       |      // divisor may be zero only if dividend is not zero
 2720|  1.04k|      (value.toRational(0).first != 0 && value.toRational(0).second == 0) ||
  ------------------
  |  Branch (2720:8): [True: 846, False: 196]
  |  Branch (2720:42): [True: 60, False: 786]
  ------------------
 2721|    982|      (value.toRational(1).first != 0 && value.toRational(1).second == 0) ||
  ------------------
  |  Branch (2721:8): [True: 656, False: 326]
  |  Branch (2721:42): [True: 58, False: 598]
  ------------------
 2722|    924|      (value.toRational(2).first != 0 && value.toRational(2).second == 0) ||
  ------------------
  |  Branch (2722:8): [True: 688, False: 236]
  |  Branch (2722:42): [True: 36, False: 652]
  ------------------
 2723|    888|      (value.toRational(3).first != 0 && value.toRational(3).second == 0)) {
  ------------------
  |  Branch (2723:8): [True: 684, False: 204]
  |  Branch (2723:42): [True: 64, False: 620]
  ------------------
 2724|    262|    return os << "(" << value << ")";
 2725|    262|  }
 2726|       |  // values numerically are ok, so they can be converted
 2727|       |  // here first and second can be zero, so initialise float with 0.0f
 2728|    824|  float focalLength1 = 0.0f;
 2729|    824|  if (value.toRational(0).first != 0)
  ------------------
  |  Branch (2729:7): [True: 648, False: 176]
  ------------------
 2730|    648|    focalLength1 = value.toFloat(0);
 2731|    824|  float focalLength2 = 0.0f;
 2732|    824|  if (value.toRational(1).first != 0)
  ------------------
  |  Branch (2732:7): [True: 514, False: 310]
  ------------------
 2733|    514|    focalLength2 = value.toFloat(1);
 2734|    824|  float fNumber1 = 0.0f;
 2735|    824|  if (value.toRational(2).first != 0)
  ------------------
  |  Branch (2735:7): [True: 604, False: 220]
  ------------------
 2736|    604|    fNumber1 = value.toFloat(2);
 2737|    824|  float fNumber2 = 0.0f;
 2738|    824|  if (value.toRational(3).first != 0)
  ------------------
  |  Branch (2738:7): [True: 620, False: 204]
  ------------------
 2739|    620|    fNumber2 = value.toFloat(3);
 2740|       |
 2741|       |  // first value must not be bigger than second
 2742|    824|  if ((std::isgreater(focalLength1, focalLength2) && std::isgreater(focalLength2, 0.0f)) ||
  ------------------
  |  Branch (2742:8): [True: 346, False: 478]
  |  Branch (2742:54): [True: 172, False: 174]
  ------------------
 2743|    652|      (std::isgreater(fNumber1, fNumber2) && std::isgreater(fNumber2, 0.0f))) {
  ------------------
  |  Branch (2743:8): [True: 178, False: 474]
  |  Branch (2743:46): [True: 128, False: 50]
  ------------------
 2744|    300|    return os << "(" << value << ")";
 2745|    300|  }
 2746|       |
 2747|       |  // no lens specification available
 2748|    524|  if (focalLength1 == 0.0f && focalLength2 == 0.0f && fNumber1 == 0.0f && fNumber2 == 0.0f)
  ------------------
  |  Branch (2748:7): [True: 170, False: 354]
  |  Branch (2748:31): [True: 136, False: 34]
  |  Branch (2748:55): [True: 88, False: 48]
  |  Branch (2748:75): [True: 70, False: 18]
  ------------------
 2749|     70|    return os << _("n/a");
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
 2750|       |
 2751|       |  // lens specification available - at least parts
 2752|    454|  if (focalLength1 == 0.0f)
  ------------------
  |  Branch (2752:7): [True: 100, False: 354]
  ------------------
 2753|    100|    os << _("n/a");
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
 2754|    354|  else
 2755|    354|    os << std::setprecision(5) << focalLength1;
 2756|    454|  if (focalLength1 != focalLength2) {
  ------------------
  |  Branch (2756:7): [True: 332, False: 122]
  ------------------
 2757|    332|    if (focalLength2 == 0.0f)
  ------------------
  |  Branch (2757:9): [True: 162, False: 170]
  ------------------
 2758|    162|      os << "-n/a ";
 2759|    170|    else
 2760|    170|      os << "-" << std::setprecision(5) << focalLength2;
 2761|    332|  }
 2762|    454|  os << "mm";
 2763|    454|  std::ostringstream oss;
 2764|    454|  oss.copyfmt(os);
 2765|       |
 2766|    454|  if (std::isgreater(fNumber1, 0.0f) || std::isgreater(fNumber2, 0.0f)) {
  ------------------
  |  Branch (2766:7): [True: 304, False: 150]
  |  Branch (2766:41): [True: 74, False: 76]
  ------------------
 2767|    378|    os << " F";
 2768|    378|    if (fNumber1 == 0.0f)
  ------------------
  |  Branch (2768:9): [True: 74, False: 304]
  ------------------
 2769|     74|      os << " n/a";
 2770|    304|    else
 2771|    304|      os << std::setprecision(2) << fNumber1;
 2772|    378|    if (fNumber1 != fNumber2) {
  ------------------
  |  Branch (2772:9): [True: 290, False: 88]
  ------------------
 2773|    290|      if (fNumber2 == 0.0f)
  ------------------
  |  Branch (2773:11): [True: 50, False: 240]
  ------------------
 2774|     50|        os << "-n/a";
 2775|    240|      else
 2776|    240|        os << "-" << std::setprecision(2) << fNumber2;
 2777|    290|    }
 2778|    378|  }
 2779|    454|  os.copyfmt(oss);
 2780|    454|  os.flags(f);
 2781|    454|  return os;
 2782|    524|}
_ZN5Exiv28Internal11print0x0000ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2784|  1.44k|std::ostream& print0x0000(std::ostream& os, const Value& value, const ExifData*) {
 2785|  1.44k|  if (value.size() != 4 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (2785:7): [True: 1.35k, False: 84]
  |  Branch (2785:28): [True: 54, False: 30]
  ------------------
 2786|  1.41k|    return os << value;
 2787|  1.41k|  }
 2788|       |
 2789|    120|  for (int i = 0; i < 3; i++) {
  ------------------
  |  Branch (2789:19): [True: 90, False: 30]
  ------------------
 2790|     90|    os << value.toInt64(i);
 2791|     90|    os << ".";
 2792|     90|  }
 2793|     30|  os << value.toInt64(3);
 2794|       |
 2795|     30|  return os;
 2796|  1.44k|}
_ZN5Exiv28Internal11print0x0005ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2798|    150|std::ostream& print0x0005(std::ostream& os, const Value& value, const ExifData* metadata) {
 2799|    150|  return EXV_PRINT_TAG(exifGPSAltitudeRef)(os, value, metadata);
  ------------------
  |  |  199|    150|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2800|    150|}
_ZN5Exiv28Internal11print0x0006ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2802|    260|std::ostream& print0x0006(std::ostream& os, const Value& value, const ExifData*) {
 2803|    260|  std::ios::fmtflags f(os.flags());
 2804|    260|  std::ostringstream oss;
 2805|    260|  oss.copyfmt(os);
 2806|    260|  const int32_t d = value.toRational().second;
 2807|    260|  if (d == 0)
  ------------------
  |  Branch (2807:7): [True: 26, False: 234]
  ------------------
 2808|     26|    return os << "(" << value << ")";
 2809|    234|  const int p = d > 1 ? 1 : 0;
  ------------------
  |  Branch (2809:17): [True: 46, False: 188]
  ------------------
 2810|    234|  os << std::fixed << std::setprecision(p) << value.toFloat() << " m";
 2811|    234|  os.copyfmt(oss);
 2812|       |
 2813|    234|  os.flags(f);
 2814|    234|  return os;
 2815|    260|}
_ZN5Exiv28Internal11print0x0007ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2817|    582|std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*) {
 2818|    582|  std::ios::fmtflags f(os.flags());
 2819|    582|  if (value.count() == 3) {
  ------------------
  |  Branch (2819:7): [True: 444, False: 138]
  ------------------
 2820|  1.43k|    for (int i = 0; i < 3; ++i) {
  ------------------
  |  Branch (2820:21): [True: 1.15k, False: 286]
  ------------------
 2821|  1.15k|      if (value.toRational(i).second == 0) {
  ------------------
  |  Branch (2821:11): [True: 158, False: 992]
  ------------------
 2822|    158|        return os << "(" << value << ")";
 2823|    158|      }
 2824|  1.15k|    }
 2825|    286|    std::ostringstream oss;
 2826|    286|    oss.copyfmt(os);
 2827|    286|    const double t = (3600.0 * value.toInt64(0)) + (60.0 * value.toInt64(1)) + value.toFloat(2);
 2828|    286|    enforce<std::overflow_error>(std::isfinite(t), "Non-finite time value");
 2829|    286|    int p = 0;
 2830|    286|    const double fraction = std::fmod(t, 1);
 2831|    286|    if (fraction != 0)
  ------------------
  |  Branch (2831:9): [True: 164, False: 122]
  ------------------
 2832|    164|      p = 1;
 2833|    286|    const double ss = std::fmod(t, 60);
 2834|    286|    const double minutes = (t - ss) / 60;
 2835|    286|    const auto mm = static_cast<int>(std::fmod(minutes, 60));
 2836|    286|    const double hours = (minutes - mm) / 60;
 2837|    286|    const auto hh = static_cast<int>(std::fmod(hours, 24));
 2838|       |
 2839|    286|    os << std::setw(2) << std::setfill('0') << std::right << hh << ":" << std::setw(2) << std::setfill('0')
 2840|    286|       << std::right << mm << ":" << std::setw(2 + (p * 2)) << std::setfill('0') << std::right << std::fixed
 2841|    286|       << std::setprecision(p) << ss;
 2842|       |
 2843|    286|    os.copyfmt(oss);
 2844|    286|  } else {
 2845|    138|    os << value;
 2846|    138|  }
 2847|       |
 2848|    424|  os.flags(f);
 2849|    424|  return os;
 2850|    582|}
_ZN5Exiv28Internal11print0x0009ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2852|     84|std::ostream& print0x0009(std::ostream& os, const Value& value, const ExifData* metadata) {
 2853|     84|  return EXV_PRINT_TAG(exifGPSStatus)(os, value, metadata);
  ------------------
  |  |  199|     84|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2854|     84|}
_ZN5Exiv28Internal11print0x000aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2856|     80|std::ostream& print0x000a(std::ostream& os, const Value& value, const ExifData* metadata) {
 2857|     80|  return EXV_PRINT_TAG(exifGPSMeasureMode)(os, value, metadata);
  ------------------
  |  |  199|     80|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2858|     80|}
_ZN5Exiv28Internal11print0x000cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2860|    272|std::ostream& print0x000c(std::ostream& os, const Value& value, const ExifData* metadata) {
 2861|    272|  return EXV_PRINT_TAG(exifGPSSpeedRef)(os, value, metadata);
  ------------------
  |  |  199|    272|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2862|    272|}
_ZN5Exiv28Internal11print0x0019ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2864|    226|std::ostream& print0x0019(std::ostream& os, const Value& value, const ExifData* metadata) {
 2865|    226|  return EXV_PRINT_TAG(exifGPSDestDistanceRef)(os, value, metadata);
  ------------------
  |  |  199|    226|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2866|    226|}
_ZN5Exiv28Internal11print0x001eERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2868|    234|std::ostream& print0x001e(std::ostream& os, const Value& value, const ExifData* metadata) {
 2869|    234|  return EXV_PRINT_TAG(exifGPSDifferential)(os, value, metadata);
  ------------------
  |  |  199|    234|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2870|    234|}
_ZN5Exiv28Internal11print0x0112ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2872|  1.28k|std::ostream& print0x0112(std::ostream& os, const Value& value, const ExifData* metadata) {
 2873|  1.28k|  return EXV_PRINT_TAG(exifOrientation)(os, value, metadata);
  ------------------
  |  |  199|  1.28k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2874|  1.28k|}
_ZN5Exiv28Internal11print0x0213ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2881|    324|std::ostream& print0x0213(std::ostream& os, const Value& value, const ExifData* metadata) {
 2882|    324|  return EXV_PRINT_TAG(exifYCbCrPositioning)(os, value, metadata);
  ------------------
  |  |  199|    324|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2883|    324|}
_ZN5Exiv28Internal11print0x8298ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2885|    206|std::ostream& print0x8298(std::ostream& os, const Value& value, const ExifData*) {
 2886|       |  // Print the copyright information in the format Photographer, Editor
 2887|    206|  std::string val = value.toString();
 2888|    206|  std::string::size_type pos = val.find('\0');
 2889|    206|  if (pos != std::string::npos) {
  ------------------
  |  Branch (2889:7): [True: 0, False: 206]
  ------------------
 2890|      0|    std::string photographer(val, 0, pos);
 2891|      0|    if (photographer != " ")
  ------------------
  |  Branch (2891:9): [True: 0, False: 0]
  ------------------
 2892|      0|      os << photographer;
 2893|      0|    std::string editor(val, pos + 1);
 2894|      0|    if (!editor.empty()) {
  ------------------
  |  Branch (2894:9): [True: 0, False: 0]
  ------------------
 2895|      0|      if (photographer != " ")
  ------------------
  |  Branch (2895:11): [True: 0, False: 0]
  ------------------
 2896|      0|        os << ", ";
 2897|      0|      os << editor;
 2898|      0|    }
 2899|    206|  } else {
 2900|    206|    os << val;
 2901|    206|  }
 2902|    206|  return os;
 2903|    206|}
_ZN5Exiv28Internal11print0x829aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2905|    644|std::ostream& print0x829a(std::ostream& os, const Value& value, const ExifData*) {
 2906|    644|  if (value.count() == 0)
  ------------------
  |  Branch (2906:7): [True: 0, False: 644]
  ------------------
 2907|      0|    return os;
 2908|    644|  if (value.typeId() != unsignedRational)
  ------------------
  |  Branch (2908:7): [True: 44, False: 600]
  ------------------
 2909|     44|    return os << "(" << value << ")";
 2910|       |
 2911|    600|  using Exiv2::operator<<;
 2912|    600|  URational t = value.toRational();
 2913|    600|  if (t.first == 0 || t.second == 0) {
  ------------------
  |  Branch (2913:7): [True: 82, False: 518]
  |  Branch (2913:23): [True: 68, False: 450]
  ------------------
 2914|    150|    os << "(" << t << ")";
 2915|    450|  } else if (t.second == t.first) {
  ------------------
  |  Branch (2915:14): [True: 78, False: 372]
  ------------------
 2916|     78|    os << "1 s";
 2917|    372|  } else if (t.second % t.first == 0) {
  ------------------
  |  Branch (2917:14): [True: 194, False: 178]
  ------------------
 2918|    194|    t.second = t.second / t.first;
 2919|    194|    t.first = 1;
 2920|    194|    os << t << " s";
 2921|    194|  } else {
 2922|    178|    os << static_cast<float>(t.first) / t.second << " s";
 2923|    178|  }
 2924|    600|  return os;
 2925|    644|}
_ZN5Exiv28Internal11print0x829dERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2927|    410|std::ostream& print0x829d(std::ostream& os, const Value& value, const ExifData*) {
 2928|    410|  Rational fnumber = value.toRational();
 2929|    410|  if (fnumber.second != 0)
  ------------------
  |  Branch (2929:7): [True: 298, False: 112]
  ------------------
 2930|    298|    return os << stringFormat("F{:.2g}", static_cast<float>(fnumber.first) / fnumber.second);
  ------------------
  |  |   18|    298|#define stringFormat std::format
  ------------------
 2931|    112|  return os << "(" << value << ")";
 2932|    410|}
_ZN5Exiv28Internal11print0x8822ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2941|  1.08k|std::ostream& print0x8822(std::ostream& os, const Value& value, const ExifData* metadata) {
 2942|  1.08k|  return EXV_PRINT_TAG(exifExposureProgram)(os, value, metadata);
  ------------------
  |  |  199|  1.08k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2943|  1.08k|}
_ZN5Exiv28Internal11print0x8827ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2945|    292|std::ostream& print0x8827(std::ostream& os, const Value& value, const ExifData*) {
 2946|    292|  return os << value.toInt64();
 2947|    292|}
_ZN5Exiv28Internal11print0x9101ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2949|    242|std::ostream& print0x9101(std::ostream& os, const Value& value, const ExifData*) {
 2950|   221k|  for (size_t i = 0; i < value.count(); ++i) {
  ------------------
  |  Branch (2950:22): [True: 220k, False: 242]
  ------------------
 2951|   220k|    const auto l = value.toInt64(i);
 2952|   220k|    switch (l) {
 2953|   119k|      case 0:
  ------------------
  |  Branch (2953:7): [True: 119k, False: 101k]
  ------------------
 2954|   119k|        break;
 2955|  8.77k|      case 1:
  ------------------
  |  Branch (2955:7): [True: 8.77k, False: 212k]
  ------------------
 2956|  8.77k|        os << "Y";
 2957|  8.77k|        break;
 2958|  5.31k|      case 2:
  ------------------
  |  Branch (2958:7): [True: 5.31k, False: 215k]
  ------------------
 2959|  5.31k|        os << "Cb";
 2960|  5.31k|        break;
 2961|  6.21k|      case 3:
  ------------------
  |  Branch (2961:7): [True: 6.21k, False: 214k]
  ------------------
 2962|  6.21k|        os << "Cr";
 2963|  6.21k|        break;
 2964|  2.78k|      case 4:
  ------------------
  |  Branch (2964:7): [True: 2.78k, False: 218k]
  ------------------
 2965|  2.78k|        os << "R";
 2966|  2.78k|        break;
 2967|  2.47k|      case 5:
  ------------------
  |  Branch (2967:7): [True: 2.47k, False: 218k]
  ------------------
 2968|  2.47k|        os << "G";
 2969|  2.47k|        break;
 2970|  1.25k|      case 6:
  ------------------
  |  Branch (2970:7): [True: 1.25k, False: 219k]
  ------------------
 2971|  1.25k|        os << "B";
 2972|  1.25k|        break;
 2973|  74.6k|      default:
  ------------------
  |  Branch (2973:7): [True: 74.6k, False: 146k]
  ------------------
 2974|  74.6k|        os << "(" << l << ")";
 2975|  74.6k|        break;
 2976|   220k|    }
 2977|   220k|  }
 2978|    242|  return os;
 2979|    242|}
_ZN5Exiv28Internal11print0x9201ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2981|  1.40k|std::ostream& print0x9201(std::ostream& os, const Value& value, const ExifData*) {
 2982|  1.40k|  Rational r = value.toRational();
 2983|  1.40k|  if (!value.ok() || r.second == 0)
  ------------------
  |  Branch (2983:7): [True: 0, False: 1.40k]
  |  Branch (2983:22): [True: 198, False: 1.20k]
  ------------------
 2984|    198|    return os << "(" << value << ")";
 2985|       |
 2986|  1.20k|  URational ur = exposureTime(static_cast<float>(r.first) / r.second);
 2987|  1.20k|  os << ur.first;
 2988|  1.20k|  if (ur.second > 1) {
  ------------------
  |  Branch (2988:7): [True: 316, False: 892]
  ------------------
 2989|    316|    os << "/" << ur.second;
 2990|    316|  }
 2991|  1.20k|  return os << " s";
 2992|  1.40k|}
_ZN5Exiv28Internal11print0x9202ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2994|  1.16k|std::ostream& print0x9202(std::ostream& os, const Value& value, const ExifData*) {
 2995|  1.16k|  if (value.count() == 0 || value.toRational().second == 0)
  ------------------
  |  Branch (2995:7): [True: 0, False: 1.16k]
  |  Branch (2995:7): [True: 132, False: 1.03k]
  |  Branch (2995:29): [True: 132, False: 1.03k]
  ------------------
 2996|    132|    return os << "(" << value << ")";
 2997|  1.03k|  return os << stringFormat("F{:.2g}", fnumber(value.toFloat()));
  ------------------
  |  |   18|  1.03k|#define stringFormat std::format
  ------------------
 2998|  1.16k|}
_ZN5Exiv28Internal11print0x9204ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3000|  1.07k|std::ostream& print0x9204(std::ostream& os, const Value& value, const ExifData*) {
 3001|  1.07k|  Rational bias = value.toRational();
 3002|       |
 3003|  1.07k|  if (bias.first == 0 || bias.first == std::numeric_limits<std::int32_t>::min()) {
  ------------------
  |  Branch (3003:7): [True: 118, False: 952]
  |  Branch (3003:26): [True: 20, False: 932]
  ------------------
 3004|    138|    os << "0 EV";
 3005|    932|  } else if (bias.second <= 0) {
  ------------------
  |  Branch (3005:14): [True: 130, False: 802]
  ------------------
 3006|    130|    os << "(" << bias.first << "/" << bias.second << ")";
 3007|    802|  } else {
 3008|    802|    int32_t d = std::gcd(bias.first, bias.second);
 3009|    802|    int32_t num = std::abs(bias.first) / d;
 3010|    802|    int32_t den = bias.second / d;
 3011|    802|    os << (bias.first < 0 ? "-" : "+") << num;
  ------------------
  |  Branch (3011:12): [True: 366, False: 436]
  ------------------
 3012|    802|    if (den != 1) {
  ------------------
  |  Branch (3012:9): [True: 540, False: 262]
  ------------------
 3013|    540|      os << "/" << den;
 3014|    540|    }
 3015|    802|    os << " EV";
 3016|    802|  }
 3017|  1.07k|  return os;
 3018|  1.07k|}
_ZN5Exiv28Internal11print0x9206ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3020|    346|std::ostream& print0x9206(std::ostream& os, const Value& value, const ExifData*) {
 3021|    346|  Rational distance = value.toRational();
 3022|    346|  if (distance.first == 0)
  ------------------
  |  Branch (3022:7): [True: 40, False: 306]
  ------------------
 3023|     40|    return os << _("Unknown");
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
 3024|    306|  if (static_cast<uint32_t>(distance.first) == std::numeric_limits<uint32_t>::max())
  ------------------
  |  Branch (3024:7): [True: 30, False: 276]
  ------------------
 3025|     30|    return os << _("Infinity");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 3026|    276|  if (distance.second != 0)
  ------------------
  |  Branch (3026:7): [True: 234, False: 42]
  ------------------
 3027|    234|    return os << stringFormat("{:.2f} m", static_cast<float>(distance.first) / distance.second);
  ------------------
  |  |   18|    234|#define stringFormat std::format
  ------------------
 3028|     42|  return os << "(" << value << ")";
 3029|    276|}
_ZN5Exiv28Internal11print0x9207ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3038|  2.95k|std::ostream& print0x9207(std::ostream& os, const Value& value, const ExifData* metadata) {
 3039|  2.95k|  return EXV_PRINT_TAG(exifMeteringMode)(os, value, metadata);
  ------------------
  |  |  199|  2.95k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3040|  2.95k|}
_ZN5Exiv28Internal11print0x9208ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3042|  2.19k|std::ostream& print0x9208(std::ostream& os, const Value& value, const ExifData* metadata) {
 3043|  2.19k|  return EXV_PRINT_TAG(exifLightSource)(os, value, metadata);
  ------------------
  |  |  199|  2.19k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3044|  2.19k|}
_ZN5Exiv28Internal11print0x920aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3046|  1.08k|std::ostream& print0x920a(std::ostream& os, const Value& value, const ExifData*) {
 3047|  1.08k|  Rational length = value.toRational();
 3048|  1.08k|  if (length.second != 0)
  ------------------
  |  Branch (3048:7): [True: 954, False: 134]
  ------------------
 3049|    954|    return os << stringFormat("{:.1f} mm", static_cast<float>(length.first) / length.second);
  ------------------
  |  |   18|    954|#define stringFormat std::format
  ------------------
 3050|    134|  return os << "(" << value << ")";
 3051|  1.08k|}
_ZN5Exiv28Internal11print0xa001ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3060|    250|std::ostream& print0xa001(std::ostream& os, const Value& value, const ExifData* metadata) {
 3061|    250|  return EXV_PRINT_TAG(exifColorSpace)(os, value, metadata);
  ------------------
  |  |  199|    250|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3062|    250|}
_ZN5Exiv28Internal11print0xa217ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3075|    500|std::ostream& print0xa217(std::ostream& os, const Value& value, const ExifData* metadata) {
 3076|    500|  return EXV_PRINT_TAG(exifSensingMethod)(os, value, metadata);
  ------------------
  |  |  199|    500|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3077|    500|}
_ZN5Exiv28Internal11print0xa300ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3086|    210|std::ostream& print0xa300(std::ostream& os, const Value& value, const ExifData* metadata) {
 3087|    210|  return EXV_PRINT_TAG(exifFileSource)(os, value, metadata);
  ------------------
  |  |  199|    210|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3088|    210|}
_ZN5Exiv28Internal11print0xa301ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3095|    100|std::ostream& print0xa301(std::ostream& os, const Value& value, const ExifData* metadata) {
 3096|    100|  return EXV_PRINT_TAG(exifSceneType)(os, value, metadata);
  ------------------
  |  |  199|    100|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3097|    100|}
_ZN5Exiv28Internal11print0xa401ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3105|    210|std::ostream& print0xa401(std::ostream& os, const Value& value, const ExifData* metadata) {
 3106|    210|  return EXV_PRINT_TAG(exifCustomRendered)(os, value, metadata);
  ------------------
  |  |  199|    210|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3107|    210|}
_ZN5Exiv28Internal11print0xa402ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3116|    366|std::ostream& print0xa402(std::ostream& os, const Value& value, const ExifData* metadata) {
 3117|    366|  return EXV_PRINT_TAG(exifExposureMode)(os, value, metadata);
  ------------------
  |  |  199|    366|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3118|    366|}
_ZN5Exiv28Internal11print0xa403ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3126|    390|std::ostream& print0xa403(std::ostream& os, const Value& value, const ExifData* metadata) {
 3127|    390|  return EXV_PRINT_TAG(exifWhiteBalance)(os, value, metadata);
  ------------------
  |  |  199|    390|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3128|    390|}
_ZN5Exiv28Internal11print0xa404ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3130|    180|std::ostream& print0xa404(std::ostream& os, const Value& value, const ExifData*) {
 3131|    180|  Rational zoom = value.toRational();
 3132|    180|  if (zoom.second == 0)
  ------------------
  |  Branch (3132:7): [True: 20, False: 160]
  ------------------
 3133|     20|    return os << _("Digital zoom not used");
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
 3134|    160|  return os << stringFormat("{:.1f}", static_cast<float>(zoom.first) / zoom.second);
  ------------------
  |  |   18|    160|#define stringFormat std::format
  ------------------
 3135|    180|}
_ZN5Exiv28Internal11print0xa405ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3137|     62|std::ostream& print0xa405(std::ostream& os, const Value& value, const ExifData*) {
 3138|     62|  if (auto length = value.toInt64(); length != 0)
  ------------------
  |  Branch (3138:38): [True: 26, False: 36]
  ------------------
 3139|     26|    return os << length << ".0 mm";
 3140|     36|  return os << _("Unknown");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
 3141|     62|}
_ZN5Exiv28Internal11print0xa406ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3151|    548|std::ostream& print0xa406(std::ostream& os, const Value& value, const ExifData* metadata) {
 3152|    548|  return EXV_PRINT_TAG(exifSceneCaptureType)(os, value, metadata);
  ------------------
  |  |  199|    548|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3153|    548|}
_ZN5Exiv28Internal11print0xa407ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3161|    690|std::ostream& print0xa407(std::ostream& os, const Value& value, const ExifData* metadata) {
 3162|    690|  return EXV_PRINT_TAG(exifGainControl)(os, value, metadata);
  ------------------
  |  |  199|    690|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3163|    690|}
_ZN5Exiv28Internal11print0xa409ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3172|    300|std::ostream& print0xa409(std::ostream& os, const Value& value, const ExifData* metadata) {
 3173|    300|  return EXV_PRINT_TAG(exifSaturation)(os, value, metadata);
  ------------------
  |  |  199|    300|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3174|    300|}
_ZN5Exiv28Internal11print0xa40cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3184|    210|std::ostream& print0xa40c(std::ostream& os, const Value& value, const ExifData* metadata) {
 3185|    210|  return EXV_PRINT_TAG(exifSubjectDistanceRange)(os, value, metadata);
  ------------------
  |  |  199|    210|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3186|    210|}
_ZN5Exiv28Internal14printGPSDirRefERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3188|    118|std::ostream& printGPSDirRef(std::ostream& os, const Value& value, const ExifData* metadata) {
 3189|    118|  return EXV_PRINT_TAG(exifGPSDirRef)(os, value, metadata);
  ------------------
  |  |  199|    118|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3190|    118|}
_ZN5Exiv28Internal19printNormalSoftHardERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3199|    280|std::ostream& printNormalSoftHard(std::ostream& os, const Value& value, const ExifData* metadata) {
 3200|    280|  return EXV_PRINT_TAG(exifNormalSoftHard)(os, value, metadata);
  ------------------
  |  |  199|    280|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3201|    280|}
_ZN5Exiv28Internal16printExifVersionERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3203|  4.46k|std::ostream& printExifVersion(std::ostream& os, const Value& value, const ExifData*) {
 3204|  4.46k|  if (value.size() != 4 || value.typeId() != undefined) {
  ------------------
  |  Branch (3204:7): [True: 2.47k, False: 1.98k]
  |  Branch (3204:28): [True: 684, False: 1.30k]
  ------------------
 3205|  3.15k|    return os << "(" << value << ")";
 3206|  3.15k|  }
 3207|       |
 3208|  1.30k|  char s[5];
 3209|  6.52k|  for (int i = 0; i < 4; ++i) {
  ------------------
  |  Branch (3209:19): [True: 5.21k, False: 1.30k]
  ------------------
 3210|  5.21k|    s[i] = static_cast<char>(value.toInt64(i));
 3211|  5.21k|  }
 3212|  1.30k|  s[4] = '\0';
 3213|       |
 3214|  1.30k|  return printVersion(os, s);
 3215|  4.46k|}
_ZN5Exiv28Internal7tagListERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 3244|  4.24k|const TagInfo* tagList(const std::string& groupName) {
 3245|  4.24k|  auto ii = Exiv2::find(groupInfo, groupName);
 3246|  4.24k|  if (!ii || !ii->tagList_) {
  ------------------
  |  Branch (3246:7): [True: 0, False: 4.24k]
  |  Branch (3246:14): [True: 0, False: 4.24k]
  ------------------
 3247|      0|    return nullptr;
 3248|      0|  }
 3249|  4.24k|  return ii->tagList_();
 3250|  4.24k|}
tags_int.cpp:_ZN12_GLOBAL__N_112printVersionERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS0_17basic_string_viewIcS3_EE:
   33|  1.30k|std::ostream& printVersion(std::ostream& os, std::string_view str) {
   34|  1.30k|  if (str.size() != 4) {
  ------------------
  |  Branch (34:7): [True: 80, False: 1.22k]
  ------------------
   35|     80|    return os << "(" << str << ")";
   36|     80|  }
   37|  1.22k|  if (str.front() != '0')
  ------------------
  |  Branch (37:7): [True: 94, False: 1.13k]
  ------------------
   38|     94|    os << str.front();
   39|  1.22k|  return os << str[1] << "." << str[2] << str[3];
   40|  1.30k|}

_ZNK5Exiv28Internal10TagDetailseqEl:
   50|  10.6M|  bool operator==(int64_t key) const {
   51|  10.6M|    return key == val_;
   52|  10.6M|  }
_ZNK5Exiv28Internal16StringTagDetailseqENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   64|  30.1k|  bool operator==(std::string_view key) const {
   65|  30.1k|    return key == val_;
   66|  30.1k|  }
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13nikon2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    442|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    442|  static_assert(N > 0, "Passed zero length printTag");
  195|    442|  return printTag<N, array>(os, value.toInt64(), data);
  196|    442|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13nikon2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    442|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    442|  static_assert(N > 0, "Passed zero length printTag");
  183|    442|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 282, False: 160]
  ------------------
  184|    282|    return os << _(td->label_);
  ------------------
  |  |   40|    282|#define _(String) (String)
  ------------------
  185|    160|  return os << "(" << value << ")";
  186|    442|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikon2ColorModeEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikon2ColorModeEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikon2ImageAdjustmentEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    748|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    748|  static_assert(N > 0, "Passed zero length printTag");
  195|    748|  return printTag<N, array>(os, value.toInt64(), data);
  196|    748|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikon2ImageAdjustmentEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    748|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    748|  static_assert(N > 0, "Passed zero length printTag");
  183|    748|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 490, False: 258]
  ------------------
  184|    490|    return os << _(td->label_);
  ------------------
  |  |   40|    490|#define _(String) (String)
  ------------------
  185|    258|  return os << "(" << value << ")";
  186|    748|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikon2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    948|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    948|  static_assert(N > 0, "Passed zero length printTag");
  195|    948|  return printTag<N, array>(os, value.toInt64(), data);
  196|    948|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikon2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    948|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    948|  static_assert(N > 0, "Passed zero length printTag");
  183|    948|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 534, False: 414]
  ------------------
  184|    534|    return os << _(td->label_);
  ------------------
  |  |   40|    534|#define _(String) (String)
  ------------------
  185|    414|  return os << "(" << value << ")";
  186|    948|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikon2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.12k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.12k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.12k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.12k|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikon2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.12k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.12k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.12k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 664, False: 458]
  ------------------
  184|    664|    return os << _(td->label_);
  ------------------
  |  |   40|    664|#define _(String) (String)
  ------------------
  185|    458|  return os << "(" << value << ")";
  186|  1.12k|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashCompEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    806|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    806|  static_assert(N > 0, "Passed zero length printTag");
  195|    806|  return printTag<N, array>(os, value.toInt64(), data);
  196|    806|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashCompEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    806|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    806|  static_assert(N > 0, "Passed zero length printTag");
  183|    806|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 672, False: 134]
  ------------------
  184|    672|    return os << _(td->label_);
  ------------------
  |  |   40|    672|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    806|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    172|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    172|  static_assert(N > 0, "Passed zero length printTag");
  195|    172|  return printTag<N, array>(os, value.toInt64(), data);
  196|    172|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    172|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    172|  static_assert(N > 0, "Passed zero length printTag");
  183|    172|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 80]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    172|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    172|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    172|  static_assert(N > 0, "Passed zero length printTag");
  195|    172|  return printTag<N, array>(os, value.toInt64(), data);
  196|    172|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    172|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    172|  static_assert(N > 0, "Passed zero length printTag");
  183|    172|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 114]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    172|}
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: 226, False: 64]
  ------------------
  184|    226|    return os << _(td->label_);
  ------------------
  |  |   40|    226|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    290|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9nikonOlnhEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9nikonOlnhEEEERNSt3__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: 142, False: 42]
  ------------------
  184|    142|    return os << _(td->label_);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    184|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonShutterModesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    348|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    348|  static_assert(N > 0, "Passed zero length printTag");
  195|    348|  return printTag<N, array>(os, value.toInt64(), data);
  196|    348|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonShutterModesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    348|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    348|  static_assert(N > 0, "Passed zero length printTag");
  183|    348|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 236, False: 112]
  ------------------
  184|    236|    return os << _(td->label_);
  ------------------
  |  |   40|    236|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    348|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashModeEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashModeEEEERNSt3__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: 480, False: 130]
  ------------------
  184|    480|    return os << _(td->label_);
  ------------------
  |  |   40|    480|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    610|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonAutoBracketReleaseEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonAutoBracketReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    164|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    164|  static_assert(N > 0, "Passed zero length printTag");
  183|    164|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 120, False: 44]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    164|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19nikonNefCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    670|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    670|  static_assert(N > 0, "Passed zero length printTag");
  195|    670|  return printTag<N, array>(os, value.toInt64(), data);
  196|    670|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19nikonNefCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    670|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    670|  static_assert(N > 0, "Passed zero length printTag");
  183|    670|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 282, False: 388]
  ------------------
  184|    282|    return os << _(td->label_);
  ------------------
  |  |   40|    282|#define _(String) (String)
  ------------------
  185|    388|  return os << "(" << value << ")";
  186|    670|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26nikonHighISONoiseReductionEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26nikonHighISONoiseReductionEEEERNSt3__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: 212, False: 68]
  ------------------
  184|    212|    return os << _(td->label_);
  ------------------
  |  |   40|    212|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    280|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOnOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     12|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     12|  static_assert(N > 0, "Passed zero length printTag");
  195|     12|  return printTag<N, array>(os, value.toInt64(), data);
  196|     12|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOnOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     12|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     12|  static_assert(N > 0, "Passed zero length printTag");
  183|     12|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 6]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     12|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonAdjustEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonAdjustEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     82|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     82|  static_assert(N > 0, "Passed zero length printTag");
  183|     82|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 64]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|     82|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFilterEffectEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFilterEffectEEEERNSt3__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: 36, False: 36]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|     72|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonToningEffectEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonToningEffectEEEERNSt3__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: 24, False: 48]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|     72|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8aftOnOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     92|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     92|  static_assert(N > 0, "Passed zero length printTag");
  195|     92|  return printTag<N, array>(os, value.toInt64(), data);
  196|     92|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8aftOnOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     92|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     92|  static_assert(N > 0, "Passed zero length printTag");
  183|     92|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 70]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|     92|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonYesNoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    154|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    154|  static_assert(N > 0, "Passed zero length printTag");
  195|    154|  return printTag<N, array>(os, value.toInt64(), data);
  196|    154|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonYesNoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    154|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    154|  static_assert(N > 0, "Passed zero length printTag");
  183|    154|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 128]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    154|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonDateDisplayFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     68|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     68|  static_assert(N > 0, "Passed zero length printTag");
  195|     68|  return printTag<N, array>(os, value.toInt64(), data);
  196|     68|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonDateDisplayFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     68|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     68|  static_assert(N > 0, "Passed zero length printTag");
  183|     68|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 52]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|     68|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonIsoExpansionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     38|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     38|  static_assert(N > 0, "Passed zero length printTag");
  195|     38|  return printTag<N, array>(os, value.toInt64(), data);
  196|     38|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonIsoExpansionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     38|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     38|  static_assert(N > 0, "Passed zero length printTag");
  183|     38|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8, False: 30]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     38|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonAfAreaModeEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonAfAreaModeEEEERNSt3__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: 64, False: 42]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    106|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12nikonAfPointEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12nikonAfPointEEEERNSt3__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: 58, False: 42]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    100|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonPhaseDetectAFEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonPhaseDetectAFEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonMultiExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     10|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     10|  static_assert(N > 0, "Passed zero length printTag");
  195|     10|  return printTag<N, array>(os, value.toInt64(), data);
  196|     10|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonMultiExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     10|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     10|  static_assert(N > 0, "Passed zero length printTag");
  183|     10|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 4]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|      4|  return os << "(" << value << ")";
  186|     10|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16nikonFlashSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    138|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    138|  static_assert(N > 0, "Passed zero length printTag");
  195|    138|  return printTag<N, array>(os, value.toInt64(), data);
  196|    138|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16nikonFlashSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    138|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    138|  static_assert(N > 0, "Passed zero length printTag");
  183|    138|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 98]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    138|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonFlashFirmwareEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    126|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    126|  static_assert(N > 0, "Passed zero length printTag");
  195|    126|  return printTag<N, array>(os, value.toInt64(), data);
  196|    126|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonFlashFirmwareEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    126|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    126|  static_assert(N > 0, "Passed zero length printTag");
  183|    126|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 62, False: 64]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    126|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonExternalFlashFlagsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     38|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     38|  static_assert(N > 0, "Passed zero length printTag");
  195|     38|  return printTag<N, array>(os, value.toInt64(), data);
  196|     38|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonExternalFlashFlagsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     38|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     38|  static_assert(N > 0, "Passed zero length printTag");
  183|     38|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 14]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|     38|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm81ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonFlashGNDistanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    122|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    122|  static_assert(N > 0, "Passed zero length printTag");
  195|    122|  return printTag<N, array>(os, value.toInt64(), data);
  196|    122|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm81ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonFlashGNDistanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    122|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    122|  static_assert(N > 0, "Passed zero length printTag");
  183|    122|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 64]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    122|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashControlModeEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashColorFilterEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashColorFilterEEEERNSt3__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: 26, False: 70]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|     96|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFlashAWLModeEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFlashAWLModeEEEERNSt3__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: 22, False: 10]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     10|  return os << "(" << value << ")";
  186|     32|}
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|    142|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    142|  static_assert(N > 0, "Passed zero length printTag");
  195|    142|  return printTag<N, array>(os, value.toInt64(), data);
  196|    142|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm52ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonZMountLensIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    142|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    142|  static_assert(N > 0, "Passed zero length printTag");
  183|    142|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 106, False: 36]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    142|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L35nikonAf2AreaModeContrastDetectAfOffEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L35nikonAf2AreaModeContrastDetectAfOffEEEERNSt3__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: 55, False: 5]
  ------------------
  184|     55|    return os << _(td->label_);
  ------------------
  |  |   40|     55|#define _(String) (String)
  ------------------
  185|      5|  return os << "(" << value << ")";
  186|     60|}
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|     98|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|     98|  static_assert(N > 0, "Passed zero length printTag");
  208|     98|  const auto val = value.toUint32();
  209|     98|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 4, False: 94]
  ------------------
  210|      4|    auto [mask, label] = *array;
  211|      4|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 4]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      4|  }
  214|     98|  bool sep = false;
  215|  1.07k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.07k, False: 98]
  ------------------
  216|  1.07k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 294, False: 784]
  ------------------
  217|    294|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 202, False: 92]
  ------------------
  218|    202|        os << ", " << _(label);
  ------------------
  |  |   40|    202|#define _(String) (String)
  ------------------
  219|    202|      } else {
  220|     92|        os << _(label);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  221|     92|        sep = true;
  222|     92|      }
  223|    294|    }
  224|  1.07k|  }
  225|     98|  return os;
  226|     98|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20nikonShootingModeD70EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    132|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    132|  static_assert(N > 0, "Passed zero length printTag");
  208|    132|  const auto val = value.toUint32();
  209|    132|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 132]
  ------------------
  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|    132|  bool sep = false;
  215|    924|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 924, False: 132]
  ------------------
  216|    924|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 270, False: 654]
  ------------------
  217|    270|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 163, False: 107]
  ------------------
  218|    163|        os << ", " << _(label);
  ------------------
  |  |   40|    163|#define _(String) (String)
  ------------------
  219|    163|      } else {
  220|    107|        os << _(label);
  ------------------
  |  |   40|    107|#define _(String) (String)
  ------------------
  221|    107|        sep = true;
  222|    107|      }
  223|    270|    }
  224|    924|  }
  225|    132|  return os;
  226|    132|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L17nikonShootingModeEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    542|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    542|  static_assert(N > 0, "Passed zero length printTag");
  208|    542|  const auto val = value.toUint32();
  209|    542|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 542]
  ------------------
  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|    542|  bool sep = false;
  215|  4.87k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 4.87k, False: 542]
  ------------------
  216|  4.87k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 1.55k, False: 3.31k]
  ------------------
  217|  1.55k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 1.03k, False: 525]
  ------------------
  218|  1.03k|        os << ", " << _(label);
  ------------------
  |  |   40|  1.03k|#define _(String) (String)
  ------------------
  219|  1.03k|      } else {
  220|    525|        os << _(label);
  ------------------
  |  |   40|    525|#define _(String) (String)
  ------------------
  221|    525|        sep = true;
  222|    525|      }
  223|  1.55k|    }
  224|  4.87k|  }
  225|    542|  return os;
  226|    542|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm3ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L18nikonFlashAdaptorsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|     50|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|     50|  static_assert(N > 0, "Passed zero length printTag");
  208|     50|  const auto val = value.toUint32();
  209|     50|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 50]
  ------------------
  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|     50|  bool sep = false;
  215|    150|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 150, False: 50]
  ------------------
  216|    150|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 64, False: 86]
  ------------------
  217|     64|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 24, False: 40]
  ------------------
  218|     24|        os << ", " << _(label);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  219|     40|      } else {
  220|     40|        os << _(label);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  221|     40|        sep = true;
  222|     40|      }
  223|     64|    }
  224|    150|  }
  225|     50|  return os;
  226|     50|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashControlModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    374|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    374|  static_assert(N > 0, "Passed zero length printTag");
  183|    374|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 300, False: 74]
  ------------------
  184|    300|    return os << _(td->label_);
  ------------------
  |  |   40|    300|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    374|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonFlashExposureCompEEEERNSt3__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: 42, False: 0]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|      0|  return os << "(" << value << ")";
  186|     42|}
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|  5.35k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.35k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.35k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.35k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNewSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.35k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.35k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.35k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 5.08k, False: 272]
  ------------------
  184|  5.08k|    return os << _(td->label_);
  ------------------
  |  |   40|  5.08k|#define _(String) (String)
  ------------------
  185|    272|  return os << "(" << value << ")";
  186|  5.35k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifSubfileTypeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifSubfileTypeEEEERNSt3__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: 116, False: 364]
  ------------------
  184|    116|    return os << _(td->label_);
  ------------------
  |  |   40|    116|#define _(String) (String)
  ------------------
  185|    364|  return os << "(" << value << ")";
  186|    480|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm34ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.18k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.18k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.18k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.18k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm34ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.18k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.18k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.18k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.71k, False: 470]
  ------------------
  184|  1.71k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.71k|#define _(String) (String)
  ------------------
  185|    470|  return os << "(" << value << ")";
  186|  2.18k|}
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: 574, False: 246]
  ------------------
  184|    574|    return os << _(td->label_);
  ------------------
  |  |   40|    574|#define _(String) (String)
  ------------------
  185|    246|  return os << "(" << value << ")";
  186|    820|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifThresholdingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    330|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    330|  static_assert(N > 0, "Passed zero length printTag");
  195|    330|  return printTag<N, array>(os, value.toInt64(), data);
  196|    330|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifThresholdingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    330|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    330|  static_assert(N > 0, "Passed zero length printTag");
  183|    330|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 132, False: 198]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|    198|  return os << "(" << value << ")";
  186|    330|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23exifPlanarConfigurationEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23exifPlanarConfigurationEEEERNSt3__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: 106, False: 32]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    138|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    506|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    506|  static_assert(N > 0, "Passed zero length printTag");
  195|    506|  return printTag<N, array>(os, value.toInt64(), data);
  196|    506|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    506|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    506|  static_assert(N > 0, "Passed zero length printTag");
  183|    506|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 270, False: 236]
  ------------------
  184|    270|    return os << _(td->label_);
  ------------------
  |  |   40|    270|#define _(String) (String)
  ------------------
  185|    236|  return os << "(" << value << ")";
  186|    506|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10exifInkSetEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10exifInkSetEEEERNSt3__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: 178, False: 158]
  ------------------
  184|    178|    return os << _(td->label_);
  ------------------
  |  |   40|    178|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|    336|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifSampleFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    452|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    452|  static_assert(N > 0, "Passed zero length printTag");
  195|    452|  return printTag<N, array>(os, value.toInt64(), data);
  196|    452|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifSampleFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    452|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    452|  static_assert(N > 0, "Passed zero length printTag");
  183|    452|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 316, False: 136]
  ------------------
  184|    316|    return os << _(td->label_);
  ------------------
  |  |   40|    316|#define _(String) (String)
  ------------------
  185|    136|  return os << "(" << value << ")";
  186|    452|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11exifIndexedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    130|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    130|  static_assert(N > 0, "Passed zero length printTag");
  195|    130|  return printTag<N, array>(os, value.toInt64(), data);
  196|    130|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11exifIndexedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    130|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    130|  static_assert(N > 0, "Passed zero length printTag");
  183|    130|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 76]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    130|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25exifJpegLosslessPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.71k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.71k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.71k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.71k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25exifJpegLosslessPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.71k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.71k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.71k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 860, False: 858]
  ------------------
  184|    860|    return os << _(td->label_);
  ------------------
  |  |   40|    860|#define _(String) (String)
  ------------------
  185|    858|  return os << "(" << value << ")";
  186|  1.71k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm27ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9exifFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.55k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.55k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.55k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.55k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm27ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9exifFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.55k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.55k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.55k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.01k, False: 546]
  ------------------
  184|  4.01k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.01k|#define _(String) (String)
  ------------------
  185|    546|  return os << "(" << value << ")";
  186|  4.55k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28tiffFocalPlaneResolutionUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    628|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    628|  static_assert(N > 0, "Passed zero length printTag");
  195|    628|  return printTag<N, array>(os, value.toInt64(), data);
  196|    628|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28tiffFocalPlaneResolutionUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    628|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    628|  static_assert(N > 0, "Passed zero length printTag");
  183|    628|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 218, False: 410]
  ------------------
  184|    218|    return os << _(td->label_);
  ------------------
  |  |   40|    218|#define _(String) (String)
  ------------------
  185|    410|  return os << "(" << value << ")";
  186|    628|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17tiffSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    846|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    846|  static_assert(N > 0, "Passed zero length printTag");
  195|    846|  return printTag<N, array>(os, value.toInt64(), data);
  196|    846|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17tiffSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    846|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    846|  static_assert(N > 0, "Passed zero length printTag");
  183|    846|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 636, False: 210]
  ------------------
  184|    636|    return os << _(td->label_);
  ------------------
  |  |   40|    636|#define _(String) (String)
  ------------------
  185|    210|  return os << "(" << value << ")";
  186|    846|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12dngCfaLayoutEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12dngCfaLayoutEEEERNSt3__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: 374, False: 160]
  ------------------
  184|    374|    return os << _(td->label_);
  ------------------
  |  |   40|    374|#define _(String) (String)
  ------------------
  185|    160|  return os << "(" << value << ")";
  186|    534|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngMakerNoteSafetyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    552|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    552|  static_assert(N > 0, "Passed zero length printTag");
  195|    552|  return printTag<N, array>(os, value.toInt64(), data);
  196|    552|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngMakerNoteSafetyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    552|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    552|  static_assert(N > 0, "Passed zero length printTag");
  183|    552|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 304, False: 248]
  ------------------
  184|    304|    return os << _(td->label_);
  ------------------
  |  |   40|    304|#define _(String) (String)
  ------------------
  185|    248|  return os << "(" << value << ")";
  186|    552|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24dngColorimetricReferenceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    226|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    226|  static_assert(N > 0, "Passed zero length printTag");
  195|    226|  return printTag<N, array>(os, value.toInt64(), data);
  196|    226|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24dngColorimetricReferenceEEEERNSt3__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: 144, False: 82]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    226|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngProfileEmbedPolicyEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngProfileEmbedPolicyEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20dngPreviewColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    396|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    396|  static_assert(N > 0, "Passed zero length printTag");
  195|    396|  return printTag<N, array>(os, value.toInt64(), data);
  196|    396|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20dngPreviewColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    396|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    396|  static_assert(N > 0, "Passed zero length printTag");
  183|    396|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 314, False: 82]
  ------------------
  184|    314|    return os << _(td->label_);
  ------------------
  |  |   40|    314|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    396|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngProfileEncodingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     96|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     96|  static_assert(N > 0, "Passed zero length printTag");
  195|     96|  return printTag<N, array>(os, value.toInt64(), data);
  196|     96|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngProfileEncodingEEEERNSt3__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: 62, False: 34]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     96|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngDefaultBlackRenderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     34|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     34|  static_assert(N > 0, "Passed zero length printTag");
  195|     34|  return printTag<N, array>(os, value.toInt64(), data);
  196|     34|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngDefaultBlackRenderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     34|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     34|  static_assert(N > 0, "Passed zero length printTag");
  183|     34|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 20]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     34|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14dngDepthFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14dngDepthFormatEEEERNSt3__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: 100, False: 50]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    150|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13dngDepthUnitsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     86|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     86|  static_assert(N > 0, "Passed zero length printTag");
  195|     86|  return printTag<N, array>(os, value.toInt64(), data);
  196|     86|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13dngDepthUnitsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     86|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     86|  static_assert(N > 0, "Passed zero length printTag");
  183|     86|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 60, False: 26]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     86|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19dngDepthMeasureTypeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19dngDepthMeasureTypeEEEERNSt3__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: 96, False: 26]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|    122|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCompositeImageEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCompositeImageEEEERNSt3__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: 68, False: 38]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    106|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSLatitudeRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    194|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    194|  static_assert(N > 0, "Passed zero length printTag");
  195|    194|  return printTag<N, array>(os, value.toInt64(), data);
  196|    194|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSLatitudeRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    194|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    194|  static_assert(N > 0, "Passed zero length printTag");
  183|    194|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 80, False: 114]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    194|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSLongitudeRefEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSLongitudeRefEEEERNSt3__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: 20, False: 32]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|     52|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm21ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.21k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.21k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.21k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.21k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm21ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.21k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.21k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.21k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.73k, False: 476]
  ------------------
  184|  1.73k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.73k|#define _(String) (String)
  ------------------
  185|    476|  return os << "(" << value << ")";
  186|  2.21k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8exifUnitEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8exifUnitEEEERNSt3__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: 344, False: 136]
  ------------------
  184|    344|    return os << _(td->label_);
  ------------------
  |  |   40|    344|#define _(String) (String)
  ------------------
  185|    136|  return os << "(" << value << ")";
  186|    480|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSAltitudeRefEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSAltitudeRefEEEERNSt3__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: 78, False: 72]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    150|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSStatusEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSStatusEEEERNSt3__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: 26, False: 58]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|     84|}
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: 40, False: 40]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     80|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGPSSpeedRefEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGPSSpeedRefEEEERNSt3__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: 134, False: 138]
  ------------------
  184|    134|    return os << _(td->label_);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  185|    138|  return os << "(" << value << ")";
  186|    272|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22exifGPSDestDistanceRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    226|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    226|  static_assert(N > 0, "Passed zero length printTag");
  195|    226|  return printTag<N, array>(os, value.toInt64(), data);
  196|    226|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22exifGPSDestDistanceRefEEEERNSt3__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: 140, False: 86]
  ------------------
  184|    140|    return os << _(td->label_);
  ------------------
  |  |   40|    140|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    226|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSDifferentialEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    234|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    234|  static_assert(N > 0, "Passed zero length printTag");
  195|    234|  return printTag<N, array>(os, value.toInt64(), data);
  196|    234|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSDifferentialEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    234|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    234|  static_assert(N > 0, "Passed zero length printTag");
  183|    234|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 144, False: 90]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    234|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.28k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.28k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.28k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.28k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.28k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.28k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.28k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 848, False: 440]
  ------------------
  184|    848|    return os << _(td->label_);
  ------------------
  |  |   40|    848|#define _(String) (String)
  ------------------
  185|    440|  return os << "(" << value << ")";
  186|  1.28k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifYCbCrPositioningEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    324|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    324|  static_assert(N > 0, "Passed zero length printTag");
  195|    324|  return printTag<N, array>(os, value.toInt64(), data);
  196|    324|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifYCbCrPositioningEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    324|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    324|  static_assert(N > 0, "Passed zero length printTag");
  183|    324|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 294, False: 30]
  ------------------
  184|    294|    return os << _(td->label_);
  ------------------
  |  |   40|    294|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    324|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.08k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.08k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.08k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.08k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.08k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.08k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.08k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 902, False: 182]
  ------------------
  184|    902|    return os << _(td->label_);
  ------------------
  |  |   40|    902|#define _(String) (String)
  ------------------
  185|    182|  return os << "(" << value << ")";
  186|  1.08k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.95k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.95k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.95k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.95k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.95k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.95k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.95k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.68k, False: 274]
  ------------------
  184|  2.68k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.68k|#define _(String) (String)
  ------------------
  185|    274|  return os << "(" << value << ")";
  186|  2.95k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    250|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    250|  static_assert(N > 0, "Passed zero length printTag");
  195|    250|  return printTag<N, array>(os, value.toInt64(), data);
  196|    250|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    250|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    250|  static_assert(N > 0, "Passed zero length printTag");
  183|    250|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 208, False: 42]
  ------------------
  184|    208|    return os << _(td->label_);
  ------------------
  |  |   40|    208|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    250|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17exifSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    500|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    500|  static_assert(N > 0, "Passed zero length printTag");
  195|    500|  return printTag<N, array>(os, value.toInt64(), data);
  196|    500|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17exifSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    500|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    500|  static_assert(N > 0, "Passed zero length printTag");
  183|    500|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 390, False: 110]
  ------------------
  184|    390|    return os << _(td->label_);
  ------------------
  |  |   40|    390|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    500|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifFileSourceEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifFileSourceEEEERNSt3__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: 74, False: 136]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|    136|  return os << "(" << value << ")";
  186|    210|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifSceneTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    100|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    100|  static_assert(N > 0, "Passed zero length printTag");
  195|    100|  return printTag<N, array>(os, value.toInt64(), data);
  196|    100|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifSceneTypeEEEERNSt3__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: 12, False: 88]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    100|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCustomRenderedEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCustomRenderedEEEERNSt3__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: 158, False: 52]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    210|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifExposureModeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifExposureModeEEEERNSt3__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: 312, False: 54]
  ------------------
  184|    312|    return os << _(td->label_);
  ------------------
  |  |   40|    312|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    366|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifWhiteBalanceEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifWhiteBalanceEEEERNSt3__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: 198, False: 192]
  ------------------
  184|    198|    return os << _(td->label_);
  ------------------
  |  |   40|    198|#define _(String) (String)
  ------------------
  185|    192|  return os << "(" << value << ")";
  186|    390|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifSceneCaptureTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    548|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    548|  static_assert(N > 0, "Passed zero length printTag");
  195|    548|  return printTag<N, array>(os, value.toInt64(), data);
  196|    548|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifSceneCaptureTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    548|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    548|  static_assert(N > 0, "Passed zero length printTag");
  183|    548|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 296, False: 252]
  ------------------
  184|    296|    return os << _(td->label_);
  ------------------
  |  |   40|    296|#define _(String) (String)
  ------------------
  185|    252|  return os << "(" << value << ")";
  186|    548|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGainControlEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGainControlEEEERNSt3__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: 586, False: 104]
  ------------------
  184|    586|    return os << _(td->label_);
  ------------------
  |  |   40|    586|#define _(String) (String)
  ------------------
  185|    104|  return os << "(" << value << ")";
  186|    690|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifSaturationEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifSaturationEEEERNSt3__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: 170, False: 130]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    300|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24exifSubjectDistanceRangeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24exifSubjectDistanceRangeEEEERNSt3__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: 120, False: 90]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    210|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSDirRefEEEERNSt3__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_L13exifGPSDirRefEEEERNSt3__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: 60, False: 58]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    118|}
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: 260, False: 20]
  ------------------
  184|    260|    return os << _(td->label_);
  ------------------
  |  |   40|    260|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|    280|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm533ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     45|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     45|  static_assert(N > 0, "Passed zero length printTag");
  195|     45|  return printTag<N, array>(os, value.toInt64(), data);
  196|     45|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm533ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     45|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     45|  static_assert(N > 0, "Passed zero length printTag");
  183|     45|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 45, False: 0]
  ------------------
  184|     45|    return os << _(td->label_);
  ------------------
  |  |   40|     45|#define _(String) (String)
  ------------------
  185|      0|  return os << "(" << value << ")";
  186|     45|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm357ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonModelIdEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm357ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonModelIdEEEERNSt3__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: 128, False: 94]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    222|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSerialNumberFormatEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSerialNumberFormatEEEERNSt3__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: 80, False: 16]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|     16|  return os << "(" << value << ")";
  186|     96|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonSuperMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    172|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    172|  static_assert(N > 0, "Passed zero length printTag");
  195|    172|  return printTag<N, array>(os, value.toInt64(), data);
  196|    172|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonSuperMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    172|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    172|  static_assert(N > 0, "Passed zero length printTag");
  183|    172|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 84, False: 88]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    172|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonDateStampModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    200|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    200|  static_assert(N > 0, "Passed zero length printTag");
  195|    200|  return printTag<N, array>(os, value.toInt64(), data);
  196|    200|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonDateStampModeEEEERNSt3__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: 162, False: 38]
  ------------------
  184|    162|    return os << _(td->label_);
  ------------------
  |  |   40|    162|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    200|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonColorSpaceEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonColorSpaceEEEERNSt3__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: 66, False: 94]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    160|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.06k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.06k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.06k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.06k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.06k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.06k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.06k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 864, False: 204]
  ------------------
  184|    864|    return os << _(td->label_);
  ------------------
  |  |   40|    864|#define _(String) (String)
  ------------------
  185|    204|  return os << "(" << value << ")";
  186|  1.06k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonPictureStyleEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonPictureStyleEEEERNSt3__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: 222, False: 180]
  ------------------
  184|    222|    return os << _(td->label_);
  ------------------
  |  |   40|    222|#define _(String) (String)
  ------------------
  185|    180|  return os << "(" << value << ")";
  186|    402|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonSiWhiteBalanceEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonSiWhiteBalanceEEEERNSt3__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: 148, False: 258]
  ------------------
  184|    148|    return os << _(td->label_);
  ------------------
  |  |   40|    148|#define _(String) (String)
  ------------------
  185|    258|  return os << "(" << value << ")";
  186|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonAFMicroAdjModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     20|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     20|  static_assert(N > 0, "Passed zero length printTag");
  195|     20|  return printTag<N, array>(os, value.toInt64(), data);
  196|     20|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonAFMicroAdjModeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    774|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    774|  static_assert(N > 0, "Passed zero length printTag");
  195|    774|  return printTag<N, array>(os, value.toInt64(), data);
  196|    774|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    774|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    774|  static_assert(N > 0, "Passed zero length printTag");
  183|    774|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 114, False: 660]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|    660|  return os << "(" << value << ")";
  186|    774|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAutoLightingOptimizerEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAutoLightingOptimizerEEEERNSt3__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: 22, False: 98]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    120|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonLongExposureNoiseReductionEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonLongExposureNoiseReductionEEEERNSt3__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: 10, False: 108]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    118|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonHighISONoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    112|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    112|  static_assert(N > 0, "Passed zero length printTag");
  195|    112|  return printTag<N, array>(os, value.toInt64(), data);
  196|    112|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonHighISONoiseReductionEEEERNSt3__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: 24, False: 88]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    112|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonDigitalLensOptimizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    112|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    112|  static_assert(N > 0, "Passed zero length printTag");
  195|    112|  return printTag<N, array>(os, value.toInt64(), data);
  196|    112|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonDigitalLensOptimizerEEEERNSt3__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: 20, False: 92]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    112|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonDualPixelRawEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    112|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    112|  static_assert(N > 0, "Passed zero length printTag");
  195|    112|  return printTag<N, array>(os, value.toInt64(), data);
  196|    112|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonDualPixelRawEEEERNSt3__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: 20, False: 92]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    112|}
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|    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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonMultiExposureEEEERNSt3__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: 24, False: 168]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|    168|  return os << "(" << value << ")";
  186|    192|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonMultiExposureControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonMultiExposureControlEEEERNSt3__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: 8, False: 96]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    104|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonFilterInfoEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonFilterInfoEEEERNSt3__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: 14, False: 50]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|     64|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonMiniatureFilterOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     12|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     12|  static_assert(N > 0, "Passed zero length printTag");
  195|     12|  return printTag<N, array>(os, value.toInt64(), data);
  196|     12|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonMiniatureFilterOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     12|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     12|  static_assert(N > 0, "Passed zero length printTag");
  183|     12|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4, False: 8]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|     12|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8canonHdrEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8canonHdrEEEERNSt3__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: 10, False: 42]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|     52|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonHdrEffectEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonHdrEffectEEEERNSt3__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: 10, False: 42]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|     52|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAIServoFirstImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAIServoFirstImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 418]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|    418|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAIServoSecondImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAIServoSecondImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 384]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    384|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonUSMLensElectronicMFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonUSMLensElectronicMFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 390]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    390|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonAFAssistBeamEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonAFAssistBeamEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 394]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    394|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21canonOneShotAFReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21canonOneShotAFReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 408]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    408|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAutoAFPointSelEOSiTRAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAutoAFPointSelEOSiTRAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 408]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    408|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonLensDriveWhenAFImpossibleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonLensDriveWhenAFImpossibleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 384]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    384|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonSelectAFAreaSelectionModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonSelectAFAreaSelectionModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 382]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|    382|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAFAreaSelectionMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAFAreaSelectionMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 394]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    394|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonOrientationLinkedAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonOrientationLinkedAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 390]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    390|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28canonManualAFPointSelPatternEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28canonManualAFPointSelPatternEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 390]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    390|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonAFPointDisplayDuringFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonAFPointDisplayDuringFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 400]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    400|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAVFDisplayIlluminationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAVFDisplayIlluminationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 400]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    400|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAFStatusViewfinderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAFStatusViewfinderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 408]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    408|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonInitialAFPointInServoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    384|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    384|  static_assert(N > 0, "Passed zero length printTag");
  195|    384|  return printTag<N, array>(os, value.toInt64(), data);
  196|    384|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonInitialAFPointInServoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    384|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    384|  static_assert(N > 0, "Passed zero length printTag");
  183|    384|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 352]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    352|  return os << "(" << value << ")";
  186|    384|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonCsMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.49k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.49k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.49k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.49k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonCsMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.49k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.49k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.49k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 5.46k]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|  5.46k|  return os << "(" << value << ")";
  186|  5.49k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.86k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.86k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.86k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.86k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.86k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.86k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.86k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 574, False: 5.29k]
  ------------------
  184|    574|    return os << _(td->label_);
  ------------------
  |  |   40|    574|#define _(String) (String)
  ------------------
  185|  5.29k|  return os << "(" << value << ")";
  186|  5.86k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.46k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.46k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.46k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.46k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.21k, False: 3.25k]
  ------------------
  184|  2.21k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.21k|#define _(String) (String)
  ------------------
  185|  3.25k|  return os << "(" << value << ")";
  186|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsDriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.46k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.46k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsDriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.46k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.46k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 472, False: 4.99k]
  ------------------
  184|    472|    return os << _(td->label_);
  ------------------
  |  |   40|    472|#define _(String) (String)
  ------------------
  185|  4.99k|  return os << "(" << value << ")";
  186|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.46k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.46k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.46k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.46k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.62k, False: 838]
  ------------------
  184|  4.62k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.62k|#define _(String) (String)
  ------------------
  185|    838|  return os << "(" << value << ")";
  186|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonCsRecordModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.46k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.46k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonCsRecordModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.46k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.46k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 194, False: 5.26k]
  ------------------
  184|    194|    return os << _(td->label_);
  ------------------
  |  |   40|    194|#define _(String) (String)
  ------------------
  185|  5.26k|  return os << "(" << value << ")";
  186|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.46k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.46k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.46k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.46k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.22k, False: 3.23k]
  ------------------
  184|  2.22k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.22k|#define _(String) (String)
  ------------------
  185|  3.23k|  return os << "(" << value << ")";
  186|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsEasyModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.46k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.46k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsEasyModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.46k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.46k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.46k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.90k, False: 556]
  ------------------
  184|  4.90k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.90k|#define _(String) (String)
  ------------------
  185|    556|  return os << "(" << value << ")";
  186|  5.46k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.45k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.45k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.45k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.45k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.45k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.45k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.45k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.41k, False: 1.04k]
  ------------------
  184|  4.41k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.41k|#define _(String) (String)
  ------------------
  185|  1.04k|  return os << "(" << value << ")";
  186|  5.45k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonCsLnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  16.3k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  16.3k|  static_assert(N > 0, "Passed zero length printTag");
  195|  16.3k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  16.3k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonCsLnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  16.3k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  16.3k|  static_assert(N > 0, "Passed zero length printTag");
  183|  16.3k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 5.40k, False: 10.9k]
  ------------------
  184|  5.40k|    return os << _(td->label_);
  ------------------
  |  |   40|  5.40k|#define _(String) (String)
  ------------------
  185|  10.9k|  return os << "(" << value << ")";
  186|  16.3k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsISOSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.45k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.45k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.45k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.45k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsISOSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.45k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.45k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.45k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.27k, False: 4.17k]
  ------------------
  184|  1.27k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.27k|#define _(String) (String)
  ------------------
  185|  4.17k|  return os << "(" << value << ")";
  186|  5.45k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonCsMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.44k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.44k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.44k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.44k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonCsMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.44k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.44k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.44k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.82k, False: 3.62k]
  ------------------
  184|  1.82k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.82k|#define _(String) (String)
  ------------------
  185|  3.62k|  return os << "(" << value << ")";
  186|  5.44k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.44k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.44k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.44k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.44k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.44k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.44k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.44k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.86k, False: 2.58k]
  ------------------
  184|  2.86k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.86k|#define _(String) (String)
  ------------------
  185|  2.58k|  return os << "(" << value << ")";
  186|  5.44k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.44k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.44k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.44k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.44k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.44k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.44k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.44k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 5.40k]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|  5.40k|  return os << "(" << value << ")";
  186|  5.44k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.39k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.39k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.39k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.39k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.39k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.39k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.39k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.60k, False: 1.78k]
  ------------------
  184|  3.60k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.60k|#define _(String) (String)
  ------------------
  185|  1.78k|  return os << "(" << value << ")";
  186|  5.39k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20canonCsFlashActivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.27k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.27k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.27k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.27k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20canonCsFlashActivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.27k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.27k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.27k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 464, False: 4.80k]
  ------------------
  184|    464|    return os << _(td->label_);
  ------------------
  |  |   40|    464|#define _(String) (String)
  ------------------
  185|  4.80k|  return os << "(" << value << ")";
  186|  5.27k|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L19canonCsFlashDetailsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|  5.26k|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|  5.26k|  static_assert(N > 0, "Passed zero length printTag");
  208|  5.26k|  const auto val = value.toUint32();
  209|  5.26k|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 2.35k, False: 2.91k]
  ------------------
  210|  2.35k|    auto [mask, label] = *array;
  211|  2.35k|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 2.35k]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|  2.35k|  }
  214|  5.26k|  bool sep = false;
  215|  47.3k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 47.3k, False: 5.26k]
  ------------------
  216|  47.3k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 13.2k, False: 34.1k]
  ------------------
  217|  13.2k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 10.3k, False: 2.83k]
  ------------------
  218|  10.3k|        os << ", " << _(label);
  ------------------
  |  |   40|  10.3k|#define _(String) (String)
  ------------------
  219|  10.3k|      } else {
  220|  2.83k|        os << _(label);
  ------------------
  |  |   40|  2.83k|#define _(String) (String)
  ------------------
  221|  2.83k|        sep = true;
  222|  2.83k|      }
  223|  13.2k|    }
  224|  47.3k|  }
  225|  5.26k|  return os;
  226|  5.26k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsFocusContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.20k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.20k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.20k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.20k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsFocusContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.20k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.20k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.20k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.41k, False: 2.78k]
  ------------------
  184|  2.41k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.41k|#define _(String) (String)
  ------------------
  185|  2.78k|  return os << "(" << value << ")";
  186|  5.20k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsAESettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.20k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.20k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.20k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.20k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsAESettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.20k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.20k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.20k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.11k, False: 1.08k]
  ------------------
  184|  4.11k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.11k|#define _(String) (String)
  ------------------
  185|  1.08k|  return os << "(" << value << ")";
  186|  5.20k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonCsImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.20k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.20k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.20k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.20k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonCsImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.20k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.20k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.20k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.38k, False: 2.81k]
  ------------------
  184|  2.38k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.38k|#define _(String) (String)
  ------------------
  185|  2.81k|  return os << "(" << value << ")";
  186|  5.20k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonCsSpotMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.10k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.10k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.10k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonCsSpotMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.10k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.10k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.15k, False: 952]
  ------------------
  184|  4.15k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.15k|#define _(String) (String)
  ------------------
  185|    952|  return os << "(" << value << ")";
  186|  5.10k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsPhotoEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.10k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.10k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.10k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsPhotoEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.10k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.10k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.11k, False: 2.99k]
  ------------------
  184|  2.11k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.11k|#define _(String) (String)
  ------------------
  185|  2.99k|  return os << "(" << value << ")";
  186|  5.10k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsSRAWQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.71k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.71k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.71k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.71k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsSRAWQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.71k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.71k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.71k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.40k, False: 1.30k]
  ------------------
  184|  4.40k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.40k|#define _(String) (String)
  ------------------
  185|  1.30k|  return os << "(" << value << ")";
  186|  5.71k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11slowShutterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    362|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    362|  static_assert(N > 0, "Passed zero length printTag");
  195|    362|  return printTag<N, array>(os, value.toInt64(), data);
  196|    362|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11slowShutterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    362|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    362|  static_assert(N > 0, "Passed zero length printTag");
  183|    362|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 98, False: 264]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|    264|  return os << "(" << value << ")";
  186|    362|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonSiFlashBiasEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    358|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    358|  static_assert(N > 0, "Passed zero length printTag");
  195|    358|  return printTag<N, array>(os, value.toInt64(), data);
  196|    358|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonSiFlashBiasEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    358|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    358|  static_assert(N > 0, "Passed zero length printTag");
  183|    358|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 266]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    266|  return os << "(" << value << ")";
  186|    358|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22autoExposureBracketingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    358|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    358|  static_assert(N > 0, "Passed zero length printTag");
  195|    358|  return printTag<N, array>(os, value.toInt64(), data);
  196|    358|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22autoExposureBracketingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    358|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    358|  static_assert(N > 0, "Passed zero length printTag");
  183|    358|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 124, False: 234]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|    234|  return os << "(" << value << ")";
  186|    358|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10cameraTypeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10cameraTypeEEEERNSt3__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: 134, False: 150]
  ------------------
  184|    134|    return os << _(td->label_);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  185|    150|  return os << "(" << value << ")";
  186|    284|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10autoRotateEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10autoRotateEEEERNSt3__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: 66, False: 206]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    206|  return os << "(" << value << ")";
  186|    272|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8ndRotateEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8ndRotateEEEERNSt3__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: 140, False: 132]
  ------------------
  184|    140|    return os << _(td->label_);
  ------------------
  |  |   40|    140|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    272|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10selfTimer2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    264|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    264|  static_assert(N > 0, "Passed zero length printTag");
  195|    264|  return printTag<N, array>(os, value.toInt64(), data);
  196|    264|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10selfTimer2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    264|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    264|  static_assert(N > 0, "Passed zero length printTag");
  183|    264|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 104, False: 160]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|    160|  return os << "(" << value << ")";
  186|    264|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonPaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     24|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     24|  static_assert(N > 0, "Passed zero length printTag");
  195|     24|  return printTag<N, array>(os, value.toInt64(), data);
  196|     24|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonPaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     24|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     24|  static_assert(N > 0, "Passed zero length printTag");
  183|     24|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 14]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|     24|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L19canonPiAFPointsUsedEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    128|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    128|  static_assert(N > 0, "Passed zero length printTag");
  208|    128|  const auto val = value.toUint32();
  209|    128|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 4, False: 124]
  ------------------
  210|      4|    auto [mask, label] = *array;
  211|      4|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 4]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      4|  }
  214|    128|  bool sep = false;
  215|    896|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 896, False: 128]
  ------------------
  216|    896|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 384, False: 512]
  ------------------
  217|    384|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 262, False: 122]
  ------------------
  218|    262|        os << ", " << _(label);
  ------------------
  |  |   40|    262|#define _(String) (String)
  ------------------
  219|    262|      } else {
  220|    122|        os << _(label);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  221|    122|        sep = true;
  222|    122|      }
  223|    384|    }
  224|    896|  }
  225|    128|  return os;
  226|    128|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L22canonPiAFPointsUsed20DEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    128|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    128|  static_assert(N > 0, "Passed zero length printTag");
  208|    128|  const auto val = value.toUint32();
  209|    128|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 8, False: 120]
  ------------------
  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|    128|  bool sep = false;
  215|  1.15k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.15k, False: 128]
  ------------------
  216|  1.15k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 442, False: 710]
  ------------------
  217|    442|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 324, False: 118]
  ------------------
  218|    324|        os << ", " << _(label);
  ------------------
  |  |   40|    324|#define _(String) (String)
  ------------------
  219|    324|      } else {
  220|    118|        os << _(label);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  221|    118|        sep = true;
  222|    118|      }
  223|    442|    }
  224|  1.15k|  }
  225|    128|  return os;
  226|    128|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonBracketModeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonBracketModeEEEERNSt3__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: 120, False: 328]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|    328|  return os << "(" << value << ")";
  186|    448|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRawJpgSizeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRawJpgSizeEEEERNSt3__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: 170, False: 218]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|    218|  return os << "(" << value << ")";
  186|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonNoiseReductionEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonNoiseReductionEEEERNSt3__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: 112, False: 276]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    276|  return os << "(" << value << ")";
  186|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonWBBracketModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonWBBracketModeEEEERNSt3__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: 142, False: 246]
  ------------------
  184|    142|    return os << _(td->label_);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  185|    246|  return os << "(" << value << ")";
  186|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonFilterEffectEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonFilterEffectEEEERNSt3__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: 116, False: 272]
  ------------------
  184|    116|    return os << _(td->label_);
  ------------------
  |  |   40|    116|#define _(String) (String)
  ------------------
  185|    272|  return os << "(" << value << ")";
  186|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    370|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    370|  static_assert(N > 0, "Passed zero length printTag");
  195|    370|  return printTag<N, array>(os, value.toInt64(), data);
  196|    370|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    370|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    370|  static_assert(N > 0, "Passed zero length printTag");
  183|    370|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 96, False: 274]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|    274|  return os << "(" << value << ")";
  186|    370|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRFLensTypeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRFLensTypeEEEERNSt3__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: 46, False: 132]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    178|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonToneCurveEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonToneCurveEEEERNSt3__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: 16, False: 32]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|     48|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSharpnessFrequencyEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSharpnessFrequencyEEEERNSt3__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: 20, False: 28]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|     48|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm35ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonTimeZoneCityEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm35ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonTimeZoneCityEEEERNSt3__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: 86, False: 174]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    174|  return os << "(" << value << ")";
  186|    260|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm3ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L18canonSiAFPointUsedEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    294|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    294|  static_assert(N > 0, "Passed zero length printTag");
  208|    294|  const auto val = value.toUint32();
  209|    294|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 294]
  ------------------
  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|    294|  bool sep = false;
  215|    882|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 882, False: 294]
  ------------------
  216|    882|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 434, False: 448]
  ------------------
  217|    434|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 210, False: 224]
  ------------------
  218|    210|        os << ", " << _(label);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
  219|    224|      } else {
  220|    224|        os << _(label);
  ------------------
  |  |   40|    224|#define _(String) (String)
  ------------------
  221|    224|        sep = true;
  222|    224|      }
  223|    434|    }
  224|    882|  }
  225|    294|  return os;
  226|    294|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casioRecordingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    668|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    668|  static_assert(N > 0, "Passed zero length printTag");
  195|    668|  return printTag<N, array>(os, value.toInt64(), data);
  196|    668|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casioRecordingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    668|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    668|  static_assert(N > 0, "Passed zero length printTag");
  183|    668|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 476, False: 192]
  ------------------
  184|    476|    return os << _(td->label_);
  ------------------
  |  |   40|    476|#define _(String) (String)
  ------------------
  185|    192|  return os << "(" << value << ")";
  186|    668|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casioQualityEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casioQualityEEEERNSt3__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: 116, False: 146]
  ------------------
  184|    116|    return os << _(td->label_);
  ------------------
  |  |   40|    116|#define _(String) (String)
  ------------------
  185|    146|  return os << "(" << value << ")";
  186|    262|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFocusModeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFocusModeEEEERNSt3__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: 104, False: 152]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|    152|  return os << "(" << value << ")";
  186|    256|}
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: 314, False: 158]
  ------------------
  184|    314|    return os << _(td->label_);
  ------------------
  |  |   40|    314|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|    472|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioFlashIntensityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    740|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    740|  static_assert(N > 0, "Passed zero length printTag");
  195|    740|  return printTag<N, array>(os, value.toInt64(), data);
  196|    740|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioFlashIntensityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    740|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    740|  static_assert(N > 0, "Passed zero length printTag");
  183|    740|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 286, False: 454]
  ------------------
  184|    286|    return os << _(td->label_);
  ------------------
  |  |   40|    286|#define _(String) (String)
  ------------------
  185|    454|  return os << "(" << value << ")";
  186|    740|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casioWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    786|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    786|  static_assert(N > 0, "Passed zero length printTag");
  195|    786|  return printTag<N, array>(os, value.toInt64(), data);
  196|    786|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casioWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    786|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    786|  static_assert(N > 0, "Passed zero length printTag");
  183|    786|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 480, False: 306]
  ------------------
  184|    480|    return os << _(td->label_);
  ------------------
  |  |   40|    480|#define _(String) (String)
  ------------------
  185|    306|  return os << "(" << value << ")";
  186|    786|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioDigitalZoomEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioDigitalZoomEEEERNSt3__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: 126, False: 56]
  ------------------
  184|    126|    return os << _(td->label_);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    182|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    164|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    164|  static_assert(N > 0, "Passed zero length printTag");
  195|    164|  return printTag<N, array>(os, value.toInt64(), data);
  196|    164|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioSharpnessEEEERNSt3__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: 106, False: 58]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    164|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casioContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    326|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    326|  static_assert(N > 0, "Passed zero length printTag");
  195|    326|  return printTag<N, array>(os, value.toInt64(), data);
  196|    326|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casioContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    326|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    326|  static_assert(N > 0, "Passed zero length printTag");
  183|    326|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 244, False: 82]
  ------------------
  184|    244|    return os << _(td->label_);
  ------------------
  |  |   40|    244|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    326|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casioSaturationEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casioSaturationEEEERNSt3__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: 346, False: 300]
  ------------------
  184|    346|    return os << _(td->label_);
  ------------------
  |  |   40|    346|#define _(String) (String)
  ------------------
  185|    300|  return os << "(" << value << ")";
  186|    646|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioEnhancementEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioEnhancementEEEERNSt3__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: 150, False: 192]
  ------------------
  184|    150|    return os << _(td->label_);
  ------------------
  |  |   40|    150|#define _(String) (String)
  ------------------
  185|    192|  return os << "(" << value << ")";
  186|    342|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioColorFilterEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioColorFilterEEEERNSt3__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: 258, False: 108]
  ------------------
  184|    258|    return os << _(td->label_);
  ------------------
  |  |   40|    258|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    366|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20casioFlashIntensity2EEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20casioFlashIntensity2EEEERNSt3__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: 172, False: 90]
  ------------------
  184|    172|    return os << _(td->label_);
  ------------------
  |  |   40|    172|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    262|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioCCDSensitivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    198|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    198|  static_assert(N > 0, "Passed zero length printTag");
  195|    198|  return printTag<N, array>(os, value.toInt64(), data);
  196|    198|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioCCDSensitivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    198|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    198|  static_assert(N > 0, "Passed zero length printTag");
  183|    198|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 154, False: 44]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    198|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2QualityModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    192|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    192|  static_assert(N > 0, "Passed zero length printTag");
  195|    192|  return printTag<N, array>(os, value.toInt64(), data);
  196|    192|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2QualityModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    192|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    192|  static_assert(N > 0, "Passed zero length printTag");
  183|    192|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 94, False: 98]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    192|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    380|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    380|  static_assert(N > 0, "Passed zero length printTag");
  195|    380|  return printTag<N, array>(os, value.toInt64(), data);
  196|    380|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    380|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    380|  static_assert(N > 0, "Passed zero length printTag");
  183|    380|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 328, False: 52]
  ------------------
  184|    328|    return os << _(td->label_);
  ------------------
  |  |   40|    328|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    380|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2FocusModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2FocusModeEEEERNSt3__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: 98, False: 48]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|    146|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2IsoSpeedEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2IsoSpeedEEEERNSt3__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: 166, False: 180]
  ------------------
  184|    166|    return os << _(td->label_);
  ------------------
  |  |   40|    166|#define _(String) (String)
  ------------------
  185|    180|  return os << "(" << value << ")";
  186|    346|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    358|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    358|  static_assert(N > 0, "Passed zero length printTag");
  195|    358|  return printTag<N, array>(os, value.toInt64(), data);
  196|    358|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    358|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    358|  static_assert(N > 0, "Passed zero length printTag");
  183|    358|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 284, False: 74]
  ------------------
  184|    284|    return os << _(td->label_);
  ------------------
  |  |   40|    284|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    358|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2SaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    292|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    292|  static_assert(N > 0, "Passed zero length printTag");
  195|    292|  return printTag<N, array>(os, value.toInt64(), data);
  196|    292|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2SaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    292|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    292|  static_assert(N > 0, "Passed zero length printTag");
  183|    292|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 154, False: 138]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|    138|  return os << "(" << value << ")";
  186|    292|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2ContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    212|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    212|  static_assert(N > 0, "Passed zero length printTag");
  195|    212|  return printTag<N, array>(os, value.toInt64(), data);
  196|    212|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2ContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    212|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    212|  static_assert(N > 0, "Passed zero length printTag");
  183|    212|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 186, False: 26]
  ------------------
  184|    186|    return os << _(td->label_);
  ------------------
  |  |   40|    186|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|    212|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2SharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    268|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    268|  static_assert(N > 0, "Passed zero length printTag");
  195|    268|  return printTag<N, array>(os, value.toInt64(), data);
  196|    268|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2SharpnessEEEERNSt3__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: 192, False: 76]
  ------------------
  184|    192|    return os << _(td->label_);
  ------------------
  |  |   40|    192|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    268|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casio2WhiteBalance2EEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casio2WhiteBalance2EEEERNSt3__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: 292, False: 96]
  ------------------
  184|    292|    return os << _(td->label_);
  ------------------
  |  |   40|    292|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    388|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    190|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    190|  static_assert(N > 0, "Passed zero length printTag");
  195|    190|  return printTag<N, array>(os, value.toInt64(), data);
  196|    190|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    190|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    190|  static_assert(N > 0, "Passed zero length printTag");
  183|    190|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 128, False: 62]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    190|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2QualityEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2QualityEEEERNSt3__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: 84, False: 72]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    156|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2FocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    234|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    234|  static_assert(N > 0, "Passed zero length printTag");
  195|    234|  return printTag<N, array>(os, value.toInt64(), data);
  196|    234|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2FocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    234|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    234|  static_assert(N > 0, "Passed zero length printTag");
  183|    234|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 182, False: 52]
  ------------------
  184|    182|    return os << _(td->label_);
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    234|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2AutoISOEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2AutoISOEEEERNSt3__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: 78, False: 70]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    148|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casio2AFModeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casio2AFModeEEEERNSt3__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: 158, False: 42]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    200|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     86|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     86|  static_assert(N > 0, "Passed zero length printTag");
  195|     86|  return printTag<N, array>(os, value.toInt64(), data);
  196|     86|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     86|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     86|  static_assert(N > 0, "Passed zero length printTag");
  183|     86|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 30]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     86|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2EnhancementEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2EnhancementEEEERNSt3__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: 92, False: 14]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|    106|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ColorFilterEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ColorFilterEEEERNSt3__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: 102, False: 20]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|    122|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2ArtModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    698|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    698|  static_assert(N > 0, "Passed zero length printTag");
  195|    698|  return printTag<N, array>(os, value.toInt64(), data);
  196|    698|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2ArtModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    698|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    698|  static_assert(N > 0, "Passed zero length printTag");
  183|    698|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 662, False: 36]
  ------------------
  184|    662|    return os << _(td->label_);
  ------------------
  |  |   40|    662|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    698|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2LightingModeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2LightingModeEEEERNSt3__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: 40, False: 78]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    118|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21casio2PortraitRefinerEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21casio2PortraitRefinerEEEERNSt3__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: 146, False: 70]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    216|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26casio2SpecialEffectSettingEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26casio2SpecialEffectSettingEEEERNSt3__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: 170, False: 36]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    206|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2DriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    410|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    410|  static_assert(N > 0, "Passed zero length printTag");
  195|    410|  return printTag<N, array>(os, value.toInt64(), data);
  196|    410|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2DriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    410|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    410|  static_assert(N > 0, "Passed zero length printTag");
  183|    410|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 380, False: 30]
  ------------------
  184|    380|    return os << _(td->label_);
  ------------------
  |  |   40|    380|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    410|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2VideoQualityEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2VideoQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     76|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     76|  static_assert(N > 0, "Passed zero length printTag");
  183|     76|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 52, False: 24]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|     76|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    276|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    276|  static_assert(N > 0, "Passed zero length printTag");
  195|    276|  return printTag<N, array>(os, value.toInt64(), data);
  196|    276|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiSharpnessEEEERNSt3__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: 162, False: 114]
  ------------------
  184|    162|    return os << _(td->label_);
  ------------------
  |  |   40|    162|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    276|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    894|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    894|  static_assert(N > 0, "Passed zero length printTag");
  195|    894|  return printTag<N, array>(os, value.toInt64(), data);
  196|    894|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    894|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    894|  static_assert(N > 0, "Passed zero length printTag");
  183|    894|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 510, False: 384]
  ------------------
  184|    510|    return os << _(td->label_);
  ------------------
  |  |   40|    510|#define _(String) (String)
  ------------------
  185|    384|  return os << "(" << value << ")";
  186|    894|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    552|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    552|  static_assert(N > 0, "Passed zero length printTag");
  195|    552|  return printTag<N, array>(os, value.toInt64(), data);
  196|    552|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    552|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    552|  static_assert(N > 0, "Passed zero length printTag");
  183|    552|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 196, False: 356]
  ------------------
  184|    196|    return os << _(td->label_);
  ------------------
  |  |   40|    196|#define _(String) (String)
  ------------------
  185|    356|  return os << "(" << value << ")";
  186|    552|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8fujiToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    370|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    370|  static_assert(N > 0, "Passed zero length printTag");
  195|    370|  return printTag<N, array>(os, value.toInt64(), data);
  196|    370|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8fujiToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    370|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    370|  static_assert(N > 0, "Passed zero length printTag");
  183|    370|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 114, False: 256]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|    256|  return os << "(" << value << ")";
  186|    370|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiContrastEEEERNSt3__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_L12fujiContrastEEEERNSt3__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: 96, False: 216]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|    216|  return os << "(" << value << ")";
  186|    312|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiNoiseReductionEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiNoiseReductionEEEERNSt3__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: 40, False: 234]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    234|  return os << "(" << value << ")";
  186|    274|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiHighIsoNREEEERNSt3__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:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiHighIsoNREEEERNSt3__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: 134, False: 182]
  ------------------
  184|    134|    return os << _(td->label_);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  185|    182|  return os << "(" << value << ")";
  186|    316|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiClarityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    344|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    344|  static_assert(N > 0, "Passed zero length printTag");
  195|    344|  return printTag<N, array>(os, value.toInt64(), data);
  196|    344|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiClarityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    344|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    344|  static_assert(N > 0, "Passed zero length printTag");
  183|    344|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 298]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    298|  return os << "(" << value << ")";
  186|    344|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFlashModeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFlashModeEEEERNSt3__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: 122, False: 156]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|    156|  return os << "(" << value << ")";
  186|    278|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiOffOnEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiOffOnEEEERNSt3__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: 74, False: 188]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|    188|  return os << "(" << value << ")";
  186|    262|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusModeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusModeEEEERNSt3__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: 38, False: 68]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    106|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusAreaEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    272|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    272|  static_assert(N > 0, "Passed zero length printTag");
  195|    272|  return printTag<N, array>(os, value.toInt64(), data);
  196|    272|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusAreaEEEERNSt3__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: 88, False: 184]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|    184|  return os << "(" << value << ")";
  186|    272|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiPictureModeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiPictureModeEEEERNSt3__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.79k, False: 368]
  ------------------
  184|  1.79k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.79k|#define _(String) (String)
  ------------------
  185|    368|  return os << "(" << value << ")";
  186|  2.15k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiExrModeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiExrModeEEEERNSt3__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: 38, False: 76]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    114|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10fujiSHToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    564|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    564|  static_assert(N > 0, "Passed zero length printTag");
  195|    564|  return printTag<N, array>(os, value.toInt64(), data);
  196|    564|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10fujiSHToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    564|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    564|  static_assert(N > 0, "Passed zero length printTag");
  183|    564|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 348, False: 216]
  ------------------
  184|    348|    return os << _(td->label_);
  ------------------
  |  |   40|    348|#define _(String) (String)
  ------------------
  185|    216|  return os << "(" << value << ")";
  186|    564|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiOff0Weak32Strong64EEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiOff0Weak32Strong64EEEERNSt3__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: 114, False: 252]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|    252|  return os << "(" << value << ")";
  186|    366|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiCropModeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiCropModeEEEERNSt3__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: 158, False: 64]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    222|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiShutterTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    368|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    368|  static_assert(N > 0, "Passed zero length printTag");
  195|    368|  return printTag<N, array>(os, value.toInt64(), data);
  196|    368|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiShutterTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    368|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    368|  static_assert(N > 0, "Passed zero length printTag");
  183|    368|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 286, False: 82]
  ------------------
  184|    286|    return os << _(td->label_);
  ------------------
  |  |   40|    286|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    368|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14fujiContinuousEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14fujiContinuousEEEERNSt3__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: 256, False: 64]
  ------------------
  184|    256|    return os << _(td->label_);
  ------------------
  |  |   40|    256|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    320|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21fujiPanoramaDirectionEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21fujiPanoramaDirectionEEEERNSt3__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: 102, False: 86]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    188|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiAdvancedFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    744|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    744|  static_assert(N > 0, "Passed zero length printTag");
  195|    744|  return printTag<N, array>(os, value.toInt64(), data);
  196|    744|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiAdvancedFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    744|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    744|  static_assert(N > 0, "Passed zero length printTag");
  183|    744|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 202, False: 542]
  ------------------
  184|    202|    return os << _(td->label_);
  ------------------
  |  |   40|    202|#define _(String) (String)
  ------------------
  185|    542|  return os << "(" << value << ")";
  186|    744|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiFinePixColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     92|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     92|  static_assert(N > 0, "Passed zero length printTag");
  195|     92|  return printTag<N, array>(os, value.toInt64(), data);
  196|     92|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiFinePixColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     92|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     92|  static_assert(N > 0, "Passed zero length printTag");
  183|     92|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 44]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|     92|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiDynamicRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    324|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    324|  static_assert(N > 0, "Passed zero length printTag");
  195|    324|  return printTag<N, array>(os, value.toInt64(), data);
  196|    324|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiDynamicRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    324|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    324|  static_assert(N > 0, "Passed zero length printTag");
  183|    324|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 298]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    298|  return os << "(" << value << ")";
  186|    324|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.29k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.29k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.29k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.29k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.29k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.29k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.29k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 834, False: 464]
  ------------------
  184|    834|    return os << _(td->label_);
  ------------------
  |  |   40|    834|#define _(String) (String)
  ------------------
  185|    464|  return os << "(" << value << ")";
  186|  1.29k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDynamicRangeSettingEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDynamicRangeSettingEEEERNSt3__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: 152, False: 190]
  ------------------
  184|    152|    return os << _(td->label_);
  ------------------
  |  |   40|    152|#define _(String) (String)
  ------------------
  185|    190|  return os << "(" << value << ")";
  186|    342|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20fujiSceneRecognitionEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20fujiSceneRecognitionEEEERNSt3__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: 236, False: 446]
  ------------------
  184|    236|    return os << _(td->label_);
  ------------------
  |  |   40|    236|#define _(String) (String)
  ------------------
  185|    446|  return os << "(" << value << ")";
  186|    682|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19fujiImageGenerationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     68|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     68|  static_assert(N > 0, "Passed zero length printTag");
  195|     68|  return printTag<N, array>(os, value.toInt64(), data);
  196|     68|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19fujiImageGenerationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     68|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     68|  static_assert(N > 0, "Passed zero length printTag");
  183|     68|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 30]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     68|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiDRangePriorityEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiDRangePriorityEEEERNSt3__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: 74, False: 32]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    106|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDRangePriorityFixedEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDRangePriorityFixedEEEERNSt3__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: 44, False: 106]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    150|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiDRangePriorityAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     48|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     48|  static_assert(N > 0, "Passed zero length printTag");
  195|     48|  return printTag<N, array>(os, value.toInt64(), data);
  196|     48|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiDRangePriorityAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     48|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     48|  static_assert(N > 0, "Passed zero length printTag");
  183|     48|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 18]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     48|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16minoltaColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    648|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    648|  static_assert(N > 0, "Passed zero length printTag");
  195|    648|  return printTag<N, array>(os, value.toInt64(), data);
  196|    648|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16minoltaColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    648|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    648|  static_assert(N > 0, "Passed zero length printTag");
  183|    648|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 476, False: 172]
  ------------------
  184|    476|    return os << _(td->label_);
  ------------------
  |  |   40|    476|#define _(String) (String)
  ------------------
  185|    172|  return os << "(" << value << ")";
  186|    648|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    562|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    562|  static_assert(N > 0, "Passed zero length printTag");
  195|    562|  return printTag<N, array>(os, value.toInt64(), data);
  196|    562|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    562|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    562|  static_assert(N > 0, "Passed zero length printTag");
  183|    562|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 428, False: 134]
  ------------------
  184|    428|    return os << _(td->label_);
  ------------------
  |  |   40|    428|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    562|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25minoltaImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     90|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     90|  static_assert(N > 0, "Passed zero length printTag");
  195|     90|  return printTag<N, array>(os, value.toInt64(), data);
  196|     90|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25minoltaImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     90|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     90|  static_assert(N > 0, "Passed zero length printTag");
  183|     90|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 44]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|     90|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28minoltaWhiteBalanceStd0x0115EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    662|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    662|  static_assert(N > 0, "Passed zero length printTag");
  195|    662|  return printTag<N, array>(os, value.toInt64(), data);
  196|    662|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28minoltaWhiteBalanceStd0x0115EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    662|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    662|  static_assert(N > 0, "Passed zero length printTag");
  183|    662|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 544, False: 118]
  ------------------
  184|    544|    return os << _(td->label_);
  ------------------
  |  |   40|    544|#define _(String) (String)
  ------------------
  185|    118|  return os << "(" << value << ")";
  186|    662|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaExposureModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    662|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    662|  static_assert(N > 0, "Passed zero length printTag");
  195|    662|  return printTag<N, array>(os, value.toInt64(), data);
  196|    662|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaExposureModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    662|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    662|  static_assert(N > 0, "Passed zero length printTag");
  183|    662|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 620]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    620|  return os << "(" << value << ")";
  186|    662|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFlashModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    662|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    662|  static_assert(N > 0, "Passed zero length printTag");
  195|    662|  return printTag<N, array>(os, value.toInt64(), data);
  196|    662|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFlashModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    662|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    662|  static_assert(N > 0, "Passed zero length printTag");
  183|    662|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 142, False: 520]
  ------------------
  184|    142|    return os << _(td->label_);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  185|    520|  return os << "(" << value << ")";
  186|    662|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    658|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    658|  static_assert(N > 0, "Passed zero length printTag");
  195|    658|  return printTag<N, array>(os, value.toInt64(), data);
  196|    658|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    658|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    658|  static_assert(N > 0, "Passed zero length printTag");
  183|    658|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 88, False: 570]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|    570|  return os << "(" << value << ")";
  186|    658|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageSizeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    658|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    658|  static_assert(N > 0, "Passed zero length printTag");
  195|    658|  return printTag<N, array>(os, value.toInt64(), data);
  196|    658|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageSizeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    658|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    658|  static_assert(N > 0, "Passed zero length printTag");
  183|    658|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 76, False: 582]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|    582|  return os << "(" << value << ")";
  186|    658|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaImageQualityStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    658|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    658|  static_assert(N > 0, "Passed zero length printTag");
  195|    658|  return printTag<N, array>(os, value.toInt64(), data);
  196|    658|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaImageQualityStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    658|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    658|  static_assert(N > 0, "Passed zero length printTag");
  183|    658|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 196, False: 462]
  ------------------
  184|    196|    return os << _(td->label_);
  ------------------
  |  |   40|    196|#define _(String) (String)
  ------------------
  185|    462|  return os << "(" << value << ")";
  186|    658|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    658|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    658|  static_assert(N > 0, "Passed zero length printTag");
  195|    658|  return printTag<N, array>(os, value.toInt64(), data);
  196|    658|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    658|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    658|  static_assert(N > 0, "Passed zero length printTag");
  183|    658|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 82, False: 576]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|    576|  return os << "(" << value << ")";
  186|    658|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaMeteringModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    658|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    658|  static_assert(N > 0, "Passed zero length printTag");
  195|    658|  return printTag<N, array>(os, value.toInt64(), data);
  196|    658|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaMeteringModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    658|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    658|  static_assert(N > 0, "Passed zero length printTag");
  183|    658|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 592]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    592|  return os << "(" << value << ")";
  186|    658|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDigitalZoomStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDigitalZoomStdEEEERNSt3__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: 74, False: 540]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|    540|  return os << "(" << value << ")";
  186|    614|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaBracketStepStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaBracketStepStdEEEERNSt3__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: 68, False: 546]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|    546|  return os << "(" << value << ")";
  186|    614|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.44k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.44k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.44k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.44k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.44k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.44k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.44k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 220, False: 1.22k]
  ------------------
  184|    220|    return os << _(td->label_);
  ------------------
  |  |   40|    220|#define _(String) (String)
  ------------------
  185|  1.22k|  return os << "(" << value << ")";
  186|  1.44k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSharpnessStdEEEERNSt3__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_L19minoltaSharpnessStdEEEERNSt3__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: 86, False: 502]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    502|  return os << "(" << value << ")";
  186|    588|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24minoltaSubjectProgramStdEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24minoltaSubjectProgramStdEEEERNSt3__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: 104, False: 484]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|    484|  return os << "(" << value << ")";
  186|    588|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaISOSettingStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    578|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    578|  static_assert(N > 0, "Passed zero length printTag");
  195|    578|  return printTag<N, array>(os, value.toInt64(), data);
  196|    578|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaISOSettingStdEEEERNSt3__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: 80, False: 498]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|    498|  return os << "(" << value << ")";
  186|    578|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaModelStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    578|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    578|  static_assert(N > 0, "Passed zero length printTag");
  195|    578|  return printTag<N, array>(os, value.toInt64(), data);
  196|    578|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaModelStdEEEERNSt3__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: 100, False: 478]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|    478|  return os << "(" << value << ")";
  186|    578|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaIntervalModeStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaIntervalModeStdEEEERNSt3__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: 76, False: 498]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|    498|  return os << "(" << value << ")";
  186|    574|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaFolderNameStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaFolderNameStdEEEERNSt3__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: 46, False: 528]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    528|  return os << "(" << value << ")";
  186|    574|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorModeStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorModeStdEEEERNSt3__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: 100, False: 474]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|    474|  return os << "(" << value << ")";
  186|    574|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaWideFocusZoneStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    570|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    570|  static_assert(N > 0, "Passed zero length printTag");
  195|    570|  return printTag<N, array>(os, value.toInt64(), data);
  196|    570|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaWideFocusZoneStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    570|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    570|  static_assert(N > 0, "Passed zero length printTag");
  183|    570|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 504]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    504|  return os << "(" << value << ")";
  186|    570|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusModeStdEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusModeStdEEEERNSt3__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: 50, False: 586]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    586|  return os << "(" << value << ")";
  186|    636|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusAreaStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    570|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    570|  static_assert(N > 0, "Passed zero length printTag");
  195|    570|  return printTag<N, array>(os, value.toInt64(), data);
  196|    570|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusAreaStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    570|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    570|  static_assert(N > 0, "Passed zero length printTag");
  183|    570|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 44, False: 526]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    526|  return os << "(" << value << ")";
  186|    570|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDECPositionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    570|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    570|  static_assert(N > 0, "Passed zero length printTag");
  195|    570|  return printTag<N, array>(os, value.toInt64(), data);
  196|    570|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDECPositionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    570|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    570|  static_assert(N > 0, "Passed zero length printTag");
  183|    570|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 80, False: 490]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|    490|  return os << "(" << value << ")";
  186|    570|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaColorProfileStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    570|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    570|  static_assert(N > 0, "Passed zero length printTag");
  195|    570|  return printTag<N, array>(os, value.toInt64(), data);
  196|    570|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaColorProfileStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    570|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    570|  static_assert(N > 0, "Passed zero length printTag");
  183|    570|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 64, False: 506]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|    506|  return os << "(" << value << ")";
  186|    570|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDataImprintStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    570|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    570|  static_assert(N > 0, "Passed zero length printTag");
  195|    570|  return printTag<N, array>(os, value.toInt64(), data);
  196|    570|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDataImprintStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    570|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    570|  static_assert(N > 0, "Passed zero length printTag");
  183|    570|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 100, False: 470]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|    470|  return os << "(" << value << ")";
  186|    570|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaFlashMeteringStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    626|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    626|  static_assert(N > 0, "Passed zero length printTag");
  195|    626|  return printTag<N, array>(os, value.toInt64(), data);
  196|    626|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaFlashMeteringStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    626|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    626|  static_assert(N > 0, "Passed zero length printTag");
  183|    626|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 104, False: 522]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|    522|  return os << "(" << value << ")";
  186|    626|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode7DEEEERNSt3__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: 44, False: 108]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    152|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize7DEEEERNSt3__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: 44, False: 102]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 106]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 90]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusMode7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    142|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    142|  static_assert(N > 0, "Passed zero length printTag");
  195|    142|  return printTag<N, array>(os, value.toInt64(), data);
  196|    142|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusMode7DEEEERNSt3__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: 34, False: 108]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    142|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaAFPoints7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaAFPoints7DEEEERNSt3__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: 26, False: 112]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    138|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting7DEEEERNSt3__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: 42, False: 64]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    106|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace7DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace7DEEEERNSt3__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: 36, False: 58]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|     94|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation7DEEEERNSt3__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: 12, False: 62]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|     74|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode5DEEEERNSt3__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: 64, False: 226]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|    226|  return os << "(" << value << ")";
  186|    290|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize5DEEEERNSt3__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: 58, False: 74]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    132|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality5DEEEERNSt3__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: 48, False: 84]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    132|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance5DEEEERNSt3__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: 118, False: 168]
  ------------------
  184|    118|    return os << _(td->label_);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  185|    168|  return os << "(" << value << ")";
  186|    286|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaFocusPosition5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaFocusPosition5DEEEERNSt3__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: 38, False: 88]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    126|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusArea5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusArea5DEEEERNSt3__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: 34, False: 92]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    126|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaMeteringMode5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaMeteringMode5DEEEERNSt3__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: 40, False: 86]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    126|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting5DEEEERNSt3__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: 52, False: 74]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    126|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace5DEEEERNSt3__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: 44, False: 52]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|     96|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation5DEEEERNSt3__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: 10, False: 56]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|     66|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaPictureFinish5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaPictureFinish5DEEEERNSt3__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: 38, False: 28]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|     66|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaAFMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     52|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     52|  static_assert(N > 0, "Passed zero length printTag");
  195|     52|  return printTag<N, array>(os, value.toInt64(), data);
  196|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaAFMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     52|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     52|  static_assert(N > 0, "Passed zero length printTag");
  183|     52|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 34]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyDriveMode2A100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    154|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    154|  static_assert(N > 0, "Passed zero length printTag");
  195|    154|  return printTag<N, array>(os, value.toInt64(), data);
  196|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyDriveMode2A100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    154|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    154|  static_assert(N > 0, "Passed zero length printTag");
  183|    154|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 112]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFocusModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    154|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    154|  static_assert(N > 0, "Passed zero length printTag");
  195|    154|  return printTag<N, array>(os, value.toInt64(), data);
  196|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFocusModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    154|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    154|  static_assert(N > 0, "Passed zero length printTag");
  183|    154|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 134]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    154|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    154|  static_assert(N > 0, "Passed zero length printTag");
  195|    154|  return printTag<N, array>(os, value.toInt64(), data);
  196|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    154|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    154|  static_assert(N > 0, "Passed zero length printTag");
  183|    154|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 122]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyMeteringModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    154|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    154|  static_assert(N > 0, "Passed zero length printTag");
  195|    154|  return printTag<N, array>(os, value.toInt64(), data);
  196|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyMeteringModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    154|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    154|  static_assert(N > 0, "Passed zero length printTag");
  183|    154|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 128]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyZoneMatchingModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    154|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    154|  static_assert(N > 0, "Passed zero length printTag");
  195|    154|  return printTag<N, array>(os, value.toInt64(), data);
  196|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyZoneMatchingModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    154|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    154|  static_assert(N > 0, "Passed zero length printTag");
  183|    154|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 122]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyColorSpaceA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    154|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    154|  static_assert(N > 0, "Passed zero length printTag");
  195|    154|  return printTag<N, array>(os, value.toInt64(), data);
  196|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyColorSpaceA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    154|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    154|  static_assert(N > 0, "Passed zero length printTag");
  183|    154|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 126]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    126|  return os << "(" << value << ")";
  186|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyDriveModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    154|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    154|  static_assert(N > 0, "Passed zero length printTag");
  195|    154|  return printTag<N, array>(os, value.toInt64(), data);
  196|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyDriveModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    154|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    154|  static_assert(N > 0, "Passed zero length printTag");
  183|    154|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 106]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonySelfTimerTimeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    154|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    154|  static_assert(N > 0, "Passed zero length printTag");
  195|    154|  return printTag<N, array>(os, value.toInt64(), data);
  196|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonySelfTimerTimeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    154|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    154|  static_assert(N > 0, "Passed zero length printTag");
  183|    154|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 124]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyContinuousBracketingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyContinuousBracketingA100EEEERNSt3__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: 6, False: 146]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|    146|  return os << "(" << value << ")";
  186|    152|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29sonySingleFrameBracketingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29sonySingleFrameBracketingA100EEEERNSt3__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: 4, False: 148]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|    148|  return os << "(" << value << ")";
  186|    152|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyWhiteBalanceBracketingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyWhiteBalanceBracketingA100EEEERNSt3__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: 6, False: 146]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|    146|  return os << "(" << value << ")";
  186|    152|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyWhiteBalanceSettingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyWhiteBalanceSettingA100EEEERNSt3__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: 50, False: 102]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    152|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyPresetWhiteBalanceA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyPresetWhiteBalanceA100EEEERNSt3__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: 12, False: 140]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|    140|  return os << "(" << value << ")";
  186|    152|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31sonyColorTemperatureSettingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31sonyColorTemperatureSettingA100EEEERNSt3__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: 34, False: 118]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    118|  return os << "(" << value << ")";
  186|    152|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyCustomWBSettingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyCustomWBSettingA100EEEERNSt3__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: 28, False: 124]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    152|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyCustomWBErrorA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyCustomWBErrorA100EEEERNSt3__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: 32, False: 120]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    152|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyImageSizeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    150|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    150|  static_assert(N > 0, "Passed zero length printTag");
  195|    150|  return printTag<N, array>(os, value.toInt64(), data);
  196|    150|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyImageSizeA100EEEERNSt3__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: 28, False: 122]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    150|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyInstantPlaybackSetupA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    150|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    150|  static_assert(N > 0, "Passed zero length printTag");
  195|    150|  return printTag<N, array>(os, value.toInt64(), data);
  196|    150|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyInstantPlaybackSetupA100EEEERNSt3__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: 34, False: 116]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    150|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyFlashDefaultA100EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyFlashDefaultA100EEEERNSt3__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: 26, False: 82]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyAutoBracketOrderA100EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyAutoBracketOrderA100EEEERNSt3__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: 22, False: 86]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusHoldButtonA100EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusHoldButtonA100EEEERNSt3__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: 22, False: 86]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAELButtonA100EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAELButtonA100EEEERNSt3__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: 26, False: 82]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyControlDialSetA100EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyControlDialSetA100EEEERNSt3__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: 26, False: 82]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyExposureCompensationModeA100EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyExposureCompensationModeA100EEEERNSt3__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: 28, False: 80]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyAFAreaIlluminationA100EEEERNSt3__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_L26sonyAFAreaIlluminationA100EEEERNSt3__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: 28, False: 80]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMonitorDisplayOffA100EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMonitorDisplayOffA100EEEERNSt3__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: 30, False: 78]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyRecordDisplayA100EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyRecordDisplayA100EEEERNSt3__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: 24, False: 84]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyPlayDisplayA100EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyPlayDisplayA100EEEERNSt3__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: 22, False: 86]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyExposureIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    442|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    442|  static_assert(N > 0, "Passed zero length printTag");
  195|    442|  return printTag<N, array>(os, value.toInt64(), data);
  196|    442|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyExposureIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    442|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    442|  static_assert(N > 0, "Passed zero length printTag");
  183|    442|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 108, False: 334]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    334|  return os << "(" << value << ")";
  186|    442|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L33sonyMeteringOffScaleIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L33sonyMeteringOffScaleIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 38]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusModeSwitchA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusModeSwitchA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 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_L17sonyFlashTypeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashTypeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 42]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyBatteryLevelA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyBatteryLevelA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 52]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm205ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaSonyLensIDEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm205ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaSonyLensIDEEEERNSt3__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.22k, False: 624]
  ------------------
  184|  3.22k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.22k|#define _(String) (String)
  ------------------
  185|    624|  return os << "(" << value << ")";
  186|  3.84k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    154|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    154|  static_assert(N > 0, "Passed zero length printTag");
  195|    154|  return printTag<N, array>(os, value.toInt64(), data);
  196|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    154|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    154|  static_assert(N > 0, "Passed zero length printTag");
  183|    154|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 62, False: 92]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    154|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyBoolFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.91k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.91k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.91k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.91k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyBoolFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.91k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.91k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.91k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 760, False: 2.15k]
  ------------------
  184|    760|    return os << _(td->label_);
  ------------------
  |  |   40|    760|#define _(String) (String)
  ------------------
  185|  2.15k|  return os << "(" << value << ")";
  186|  2.91k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30minoltaSonyBoolInverseFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    786|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    786|  static_assert(N > 0, "Passed zero length printTag");
  195|    786|  return printTag<N, array>(os, value.toInt64(), data);
  196|    786|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30minoltaSonyBoolInverseFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    786|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    786|  static_assert(N > 0, "Passed zero length printTag");
  183|    786|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 190, False: 596]
  ------------------
  184|    190|    return os << _(td->label_);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  185|    596|  return os << "(" << value << ")";
  186|    786|}
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: 130, False: 458]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|    458|  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: 76, False: 512]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|    512|  return os << "(" << value << ")";
  186|    588|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L36minoltaSonyDynamicRangeOptimizerModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    740|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    740|  static_assert(N > 0, "Passed zero length printTag");
  195|    740|  return printTag<N, array>(os, value.toInt64(), data);
  196|    740|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L36minoltaSonyDynamicRangeOptimizerModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    740|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    740|  static_assert(N > 0, "Passed zero length printTag");
  183|    740|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 196, False: 544]
  ------------------
  184|    196|    return os << _(td->label_);
  ------------------
  |  |   40|    196|#define _(String) (String)
  ------------------
  185|    544|  return os << "(" << value << ")";
  186|    740|}
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: 144, False: 364]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|    364|  return os << "(" << value << ")";
  186|    508|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyQualityCsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    438|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    438|  static_assert(N > 0, "Passed zero length printTag");
  195|    438|  return printTag<N, array>(os, value.toInt64(), data);
  196|    438|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyQualityCsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    438|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    438|  static_assert(N > 0, "Passed zero length printTag");
  183|    438|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 328]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    328|  return os << "(" << value << ")";
  186|    438|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSonyRotationEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSonyRotationEEEERNSt3__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: 80, False: 410]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|    410|  return os << "(" << value << ")";
  186|    490|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonySceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.48k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.48k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.48k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.48k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonySceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.48k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.48k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.48k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.05k, False: 430]
  ------------------
  184|  2.05k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.05k|#define _(String) (String)
  ------------------
  185|    430|  return os << "(" << value << ")";
  186|  2.48k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29minoltaSonyTeleconverterModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    442|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    442|  static_assert(N > 0, "Passed zero length printTag");
  195|    442|  return printTag<N, array>(os, value.toInt64(), data);
  196|    442|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29minoltaSonyTeleconverterModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    442|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    442|  static_assert(N > 0, "Passed zero length printTag");
  183|    442|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 332, False: 110]
  ------------------
  184|    332|    return os << _(td->label_);
  ------------------
  |  |   40|    332|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    442|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyZoneMatchingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    174|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    174|  static_assert(N > 0, "Passed zero length printTag");
  195|    174|  return printTag<N, array>(os, value.toInt64(), data);
  196|    174|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyZoneMatchingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    174|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    174|  static_assert(N > 0, "Passed zero length printTag");
  183|    174|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 100]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    174|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14olympusQualityEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14olympusQualityEEEERNSt3__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: 298, False: 236]
  ------------------
  184|    298|    return os << _(td->label_);
  ------------------
  |  |   40|    298|#define _(String) (String)
  ------------------
  185|    236|  return os << "(" << value << ")";
  186|    534|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    584|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    584|  static_assert(N > 0, "Passed zero length printTag");
  195|    584|  return printTag<N, array>(os, value.toInt64(), data);
  196|    584|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    584|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    584|  static_assert(N > 0, "Passed zero length printTag");
  183|    584|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 326, False: 258]
  ------------------
  184|    326|    return os << _(td->label_);
  ------------------
  |  |   40|    326|#define _(String) (String)
  ------------------
  185|    258|  return os << "(" << value << ")";
  186|    584|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusOffOnEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusOffOnEEEERNSt3__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: 302, False: 86]
  ------------------
  184|    302|    return os << _(td->label_);
  ------------------
  |  |   40|    302|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    388|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusOneTouchWbEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusOneTouchWbEEEERNSt3__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: 214, False: 62]
  ------------------
  184|    214|    return os << _(td->label_);
  ------------------
  |  |   40|    214|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    276|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm45ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.07k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.07k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.07k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.07k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm45ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.07k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.07k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.07k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.67k, False: 398]
  ------------------
  184|  2.67k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.67k|#define _(String) (String)
  ------------------
  185|    398|  return os << "(" << value << ")";
  186|  3.07k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusFlashDeviceEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusFlashDeviceEEEERNSt3__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: 78, False: 24]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|    102|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusFocusRangeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusFocusRangeEEEERNSt3__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: 48, False: 30]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     78|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     72|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     72|  static_assert(N > 0, "Passed zero length printTag");
  195|     72|  return printTag<N, array>(os, value.toInt64(), data);
  196|     72|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     72|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     72|  static_assert(N > 0, "Passed zero length printTag");
  183|     72|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 34]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     72|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSharpnessEEEERNSt3__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: 24, False: 8]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|     32|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    172|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    172|  static_assert(N > 0, "Passed zero length printTag");
  195|    172|  return printTag<N, array>(os, value.toInt64(), data);
  196|    172|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    172|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    172|  static_assert(N > 0, "Passed zero length printTag");
  183|    172|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 106, False: 66]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    172|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusCCDScanModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusCCDScanModeEEEERNSt3__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: 28, False: 18]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     46|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusNoYesEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusNoYesEEEERNSt3__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: 188, False: 110]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    298|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    370|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    370|  static_assert(N > 0, "Passed zero length printTag");
  195|    370|  return printTag<N, array>(os, value.toInt64(), data);
  196|    370|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    370|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    370|  static_assert(N > 0, "Passed zero length printTag");
  183|    370|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 112, False: 258]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    258|  return os << "(" << value << ")";
  186|    370|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusMeteringModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusMeteringModeEEEERNSt3__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: 108, False: 164]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    164|  return os << "(" << value << ")";
  186|    272|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusMacroModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusMacroModeEEEERNSt3__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: 146, False: 128]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    274|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusFocusProcessEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusFocusProcessEEEERNSt3__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: 138, False: 46]
  ------------------
  184|    138|    return os << _(td->label_);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|    184|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusAFSearchEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusAFSearchEEEERNSt3__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: 78, False: 38]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    116|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L16olympusFlashModeEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    862|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    862|  static_assert(N > 0, "Passed zero length printTag");
  208|    862|  const auto val = value.toUint32();
  209|    862|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 206, False: 656]
  ------------------
  210|    206|    auto [mask, label] = *array;
  211|    206|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 206, False: 0]
  ------------------
  212|    206|      return os << _(label);
  ------------------
  |  |   40|    206|#define _(String) (String)
  ------------------
  213|    206|  }
  214|    656|  bool sep = false;
  215|  4.59k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 4.59k, False: 656]
  ------------------
  216|  4.59k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 1.47k, False: 3.11k]
  ------------------
  217|  1.47k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 820, False: 654]
  ------------------
  218|    820|        os << ", " << _(label);
  ------------------
  |  |   40|    820|#define _(String) (String)
  ------------------
  219|    820|      } else {
  220|    654|        os << _(label);
  ------------------
  |  |   40|    654|#define _(String) (String)
  ------------------
  221|    654|        sep = true;
  222|    654|      }
  223|  1.47k|    }
  224|  4.59k|  }
  225|    656|  return os;
  226|    862|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusFlashRemoteControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    990|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    990|  static_assert(N > 0, "Passed zero length printTag");
  195|    990|  return printTag<N, array>(os, value.toInt64(), data);
  196|    990|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusFlashRemoteControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    990|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    990|  static_assert(N > 0, "Passed zero length printTag");
  183|    990|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 716, False: 274]
  ------------------
  184|    716|    return os << _(td->label_);
  ------------------
  |  |   40|    716|#define _(String) (String)
  ------------------
  185|    274|  return os << "(" << value << ")";
  186|    990|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusFlashControlModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    122|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    122|  static_assert(N > 0, "Passed zero length printTag");
  195|    122|  return printTag<N, array>(os, value.toInt64(), data);
  196|    122|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusFlashControlModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    122|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    122|  static_assert(N > 0, "Passed zero length printTag");
  183|    122|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 80, False: 42]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    122|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.23k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.23k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.23k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.23k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.23k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.23k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.23k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 618, False: 616]
  ------------------
  184|    618|    return os << _(td->label_);
  ------------------
  |  |   40|    618|#define _(String) (String)
  ------------------
  185|    616|  return os << "(" << value << ")";
  186|  1.23k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusModifiedSaturationEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusModifiedSaturationEEEERNSt3__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: 182, False: 92]
  ------------------
  184|    182|    return os << _(td->label_);
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    274|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusColorSpaceEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusColorSpaceEEEERNSt3__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: 86, False: 34]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    120|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm4ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L21olympusNoiseReductionEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    244|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    244|  static_assert(N > 0, "Passed zero length printTag");
  208|    244|  const auto val = value.toUint32();
  209|    244|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 38, False: 206]
  ------------------
  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|    244|  bool sep = false;
  215|    976|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 976, False: 244]
  ------------------
  216|    976|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 340, False: 636]
  ------------------
  217|    340|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 136, False: 204]
  ------------------
  218|    136|        os << ", " << _(label);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  219|    204|      } else {
  220|    204|        os << _(label);
  ------------------
  |  |   40|    204|#define _(String) (String)
  ------------------
  221|    204|        sep = true;
  222|    204|      }
  223|    340|    }
  224|    976|  }
  225|    244|  return os;
  226|    244|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    930|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    930|  static_assert(N > 0, "Passed zero length printTag");
  195|    930|  return printTag<N, array>(os, value.toInt64(), data);
  196|    930|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    930|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    930|  static_assert(N > 0, "Passed zero length printTag");
  183|    930|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 676, False: 254]
  ------------------
  184|    676|    return os << _(td->label_);
  ------------------
  |  |   40|    676|#define _(String) (String)
  ------------------
  185|    254|  return os << "(" << value << ")";
  186|    930|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26olympusPictureModeBWFilterEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26olympusPictureModeBWFilterEEEERNSt3__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: 222, False: 76]
  ------------------
  184|    222|    return os << _(td->label_);
  ------------------
  |  |   40|    222|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    298|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusPictureModeToneEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusPictureModeToneEEEERNSt3__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: 188, False: 66]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    254|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     72|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     72|  static_assert(N > 0, "Passed zero length printTag");
  195|     72|  return printTag<N, array>(os, value.toInt64(), data);
  196|     72|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusCsQualityEEEERNSt3__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: 52, False: 20]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     72|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusImageStabilizationEEEERNSt3__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_L25olympusImageStabilizationEEEERNSt3__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: 94, False: 32]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    126|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusEqFlashTypeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusEqFlashTypeEEEERNSt3__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: 408, False: 480]
  ------------------
  184|    408|    return os << _(td->label_);
  ------------------
  |  |   40|    408|#define _(String) (String)
  ------------------
  185|    480|  return os << "(" << value << ")";
  186|    888|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusEqFlashModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    264|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    264|  static_assert(N > 0, "Passed zero length printTag");
  195|    264|  return printTag<N, array>(os, value.toInt64(), data);
  196|    264|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusEqFlashModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    264|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    264|  static_assert(N > 0, "Passed zero length printTag");
  183|    264|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 234, False: 30]
  ------------------
  184|    234|    return os << _(td->label_);
  ------------------
  |  |   40|    234|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    264|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdColorSpaceEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdColorSpaceEEEERNSt3__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: 208, False: 106]
  ------------------
  184|    208|    return os << _(td->label_);
  ------------------
  |  |   40|    208|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    314|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusRdEngineEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusRdEngineEEEERNSt3__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: 250, False: 100]
  ------------------
  184|    250|    return os << _(td->label_);
  ------------------
  |  |   40|    250|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    350|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdEditStatusEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdEditStatusEEEERNSt3__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: 102, False: 94]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    196|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm8ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L17olympusRdSettingsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|  1.01k|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|  1.01k|  static_assert(N > 0, "Passed zero length printTag");
  208|  1.01k|  const auto val = value.toUint32();
  209|  1.01k|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 36, False: 980]
  ------------------
  210|     36|    auto [mask, label] = *array;
  211|     36|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 36]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|     36|  }
  214|  1.01k|  bool sep = false;
  215|  8.12k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 8.12k, False: 1.01k]
  ------------------
  216|  8.12k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 2.69k, False: 5.43k]
  ------------------
  217|  2.69k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 1.79k, False: 900]
  ------------------
  218|  1.79k|        os << ", " << _(label);
  ------------------
  |  |   40|  1.79k|#define _(String) (String)
  ------------------
  219|  1.79k|      } else {
  220|    900|        os << _(label);
  ------------------
  |  |   40|    900|#define _(String) (String)
  ------------------
  221|    900|        sep = true;
  222|    900|      }
  223|  2.69k|    }
  224|  8.12k|  }
  225|  1.01k|  return os;
  226|  1.01k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusRd2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     42|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     42|  static_assert(N > 0, "Passed zero length printTag");
  195|     42|  return printTag<N, array>(os, value.toInt64(), data);
  196|     42|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusRd2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     42|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     42|  static_assert(N > 0, "Passed zero length printTag");
  183|     42|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 20]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     42|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRd2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    284|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    284|  static_assert(N > 0, "Passed zero length printTag");
  195|    284|  return printTag<N, array>(os, value.toInt64(), data);
  196|    284|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRd2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    284|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    284|  static_assert(N > 0, "Passed zero length printTag");
  183|    284|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 188, False: 96]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    284|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusRd2EngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    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_L16olympusRd2EngineEEEERNSt3__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: 56, False: 48]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|    104|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    504|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    504|  static_assert(N > 0, "Passed zero length printTag");
  195|    504|  return printTag<N, array>(os, value.toInt64(), data);
  196|    504|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    504|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    504|  static_assert(N > 0, "Passed zero length printTag");
  183|    504|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 228, False: 276]
  ------------------
  184|    228|    return os << _(td->label_);
  ------------------
  |  |   40|    228|#define _(String) (String)
  ------------------
  185|    276|  return os << "(" << value << ")";
  186|    504|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PM_BWFilterEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PM_BWFilterEEEERNSt3__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: 134, False: 34]
  ------------------
  184|    134|    return os << _(td->label_);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    168|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusRd2PMPictureToneEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusRd2PMPictureToneEEEERNSt3__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: 78, False: 28]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|    106|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29olympusIpMultipleExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     50|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     50|  static_assert(N > 0, "Passed zero length printTag");
  195|     50|  return printTag<N, array>(os, value.toInt64(), data);
  196|     50|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29olympusIpMultipleExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     50|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     50|  static_assert(N > 0, "Passed zero length printTag");
  183|     50|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 8]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|     50|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusIpAspectRatioEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusIpAspectRatioEEEERNSt3__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: 50, False: 10]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     10|  return os << "(" << value << ")";
  186|     60|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28olympusFiExternalFlashBounceEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28olympusFiExternalFlashBounceEEEERNSt3__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: 14, False: 6]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     20|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRiLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    348|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    348|  static_assert(N > 0, "Passed zero length printTag");
  195|    348|  return printTag<N, array>(os, value.toInt64(), data);
  196|    348|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRiLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    348|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    348|  static_assert(N > 0, "Passed zero length printTag");
  183|    348|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 286, False: 62]
  ------------------
  184|    286|    return os << _(td->label_);
  ------------------
  |  |   40|    286|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    348|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10artFiltersEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    880|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    880|  static_assert(N > 0, "Passed zero length printTag");
  183|    880|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 688, False: 192]
  ------------------
  184|    688|    return os << _(td->label_);
  ------------------
  |  |   40|    688|#define _(String) (String)
  ------------------
  185|    192|  return os << "(" << value << ")";
  186|    880|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    958|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    958|  static_assert(N > 0, "Passed zero length printTag");
  195|    958|  return printTag<N, array>(os, value.toInt64(), data);
  196|    958|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    958|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    958|  static_assert(N > 0, "Passed zero length printTag");
  183|    958|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 424, False: 534]
  ------------------
  184|    424|    return os << _(td->label_);
  ------------------
  |  |   40|    424|#define _(String) (String)
  ------------------
  185|    534|  return os << "(" << value << ")";
  186|    958|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicWhiteBalanceEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicWhiteBalanceEEEERNSt3__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: 264, False: 226]
  ------------------
  184|    264|    return os << _(td->label_);
  ------------------
  |  |   40|    264|#define _(String) (String)
  ------------------
  185|    226|  return os << "(" << value << ")";
  186|    490|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    742|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    742|  static_assert(N > 0, "Passed zero length printTag");
  195|    742|  return printTag<N, array>(os, value.toInt64(), data);
  196|    742|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    742|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    742|  static_assert(N > 0, "Passed zero length printTag");
  183|    742|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 414, False: 328]
  ------------------
  184|    414|    return os << _(td->label_);
  ------------------
  |  |   40|    414|#define _(String) (String)
  ------------------
  185|    328|  return os << "(" << value << ")";
  186|    742|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicImageStabilizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    270|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    270|  static_assert(N > 0, "Passed zero length printTag");
  195|    270|  return printTag<N, array>(os, value.toInt64(), data);
  196|    270|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicImageStabilizerEEEERNSt3__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: 116, False: 154]
  ------------------
  184|    116|    return os << _(td->label_);
  ------------------
  |  |   40|    116|#define _(String) (String)
  ------------------
  185|    154|  return os << "(" << value << ")";
  186|    270|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    478|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    478|  static_assert(N > 0, "Passed zero length printTag");
  195|    478|  return printTag<N, array>(os, value.toInt64(), data);
  196|    478|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    478|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    478|  static_assert(N > 0, "Passed zero length printTag");
  183|    478|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 128, False: 350]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|    350|  return os << "(" << value << ")";
  186|    478|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm77ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    340|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    340|  static_assert(N > 0, "Passed zero length printTag");
  195|    340|  return printTag<N, array>(os, value.toInt64(), data);
  196|    340|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm77ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    340|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    340|  static_assert(N > 0, "Passed zero length printTag");
  183|    340|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 208, False: 132]
  ------------------
  184|    208|    return os << _(td->label_);
  ------------------
  |  |   40|    208|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    340|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicAudioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    194|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    194|  static_assert(N > 0, "Passed zero length printTag");
  195|    194|  return printTag<N, array>(os, value.toInt64(), data);
  196|    194|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicAudioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    194|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    194|  static_assert(N > 0, "Passed zero length printTag");
  183|    194|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 118, False: 76]
  ------------------
  184|    118|    return os << _(td->label_);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    194|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicColorEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    304|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    304|  static_assert(N > 0, "Passed zero length printTag");
  195|    304|  return printTag<N, array>(os, value.toInt64(), data);
  196|    304|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicColorEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    304|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    304|  static_assert(N > 0, "Passed zero length printTag");
  183|    304|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 80, False: 224]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|    224|  return os << "(" << value << ")";
  186|    304|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicBurstModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    280|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    280|  static_assert(N > 0, "Passed zero length printTag");
  195|    280|  return printTag<N, array>(os, value.toInt64(), data);
  196|    280|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicBurstModeEEEERNSt3__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: 170, False: 110]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    280|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicContrastEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicContrastEEEERNSt3__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: 302, False: 290]
  ------------------
  184|    302|    return os << _(td->label_);
  ------------------
  |  |   40|    302|#define _(String) (String)
  ------------------
  185|    290|  return os << "(" << value << ")";
  186|    592|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicNoiseReductionEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicNoiseReductionEEEERNSt3__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: 262, False: 160]
  ------------------
  184|    262|    return os << _(td->label_);
  ------------------
  |  |   40|    262|#define _(String) (String)
  ------------------
  185|    160|  return os << "(" << value << ")";
  186|    422|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicSelfTimerEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicSelfTimerEEEERNSt3__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: 86, False: 42]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    128|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicRotationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    344|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    344|  static_assert(N > 0, "Passed zero length printTag");
  195|    344|  return printTag<N, array>(os, value.toInt64(), data);
  196|    344|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicRotationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    344|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    344|  static_assert(N > 0, "Passed zero length printTag");
  183|    344|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 132, False: 212]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|    212|  return os << "(" << value << ")";
  186|    344|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicAFAssistLampEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicAFAssistLampEEEERNSt3__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: 80, False: 112]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    192|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    380|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    380|  static_assert(N > 0, "Passed zero length printTag");
  195|    380|  return printTag<N, array>(os, value.toInt64(), data);
  196|    380|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    380|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    380|  static_assert(N > 0, "Passed zero length printTag");
  183|    380|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 230, False: 150]
  ------------------
  184|    230|    return os << _(td->label_);
  ------------------
  |  |   40|    230|#define _(String) (String)
  ------------------
  185|    150|  return os << "(" << value << ")";
  186|    380|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicOpticalZoomModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicOpticalZoomModeEEEERNSt3__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: 108, False: 112]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    220|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicConversionLensEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicConversionLensEEEERNSt3__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: 68, False: 116]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    184|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicWorldTimeLocationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     94|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     94|  static_assert(N > 0, "Passed zero length printTag");
  195|     94|  return printTag<N, array>(os, value.toInt64(), data);
  196|     94|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicWorldTimeLocationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     94|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     94|  static_assert(N > 0, "Passed zero length printTag");
  183|     94|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 48]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|     94|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicTextStampEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     94|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     94|  static_assert(N > 0, "Passed zero length printTag");
  195|     94|  return printTag<N, array>(os, value.toInt64(), data);
  196|     94|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicTextStampEEEERNSt3__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: 50, False: 44]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|     94|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    430|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    430|  static_assert(N > 0, "Passed zero length printTag");
  195|    430|  return printTag<N, array>(os, value.toInt64(), data);
  196|    430|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    430|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    430|  static_assert(N > 0, "Passed zero length printTag");
  183|    430|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 240, False: 190]
  ------------------
  184|    240|    return os << _(td->label_);
  ------------------
  |  |   40|    240|#define _(String) (String)
  ------------------
  185|    190|  return os << "(" << value << ")";
  186|    430|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicBracketSettingsEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicBracketSettingsEEEERNSt3__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: 148, False: 120]
  ------------------
  184|    148|    return os << _(td->label_);
  ------------------
  |  |   40|    148|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    268|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashCurtainEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    292|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    292|  static_assert(N > 0, "Passed zero length printTag");
  195|    292|  return printTag<N, array>(os, value.toInt64(), data);
  196|    292|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashCurtainEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    292|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    292|  static_assert(N > 0, "Passed zero length printTag");
  183|    292|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 126, False: 166]
  ------------------
  184|    126|    return os << _(td->label_);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  185|    166|  return os << "(" << value << ")";
  186|    292|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34panasonicLongShutterNoiseReductionEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34panasonicLongShutterNoiseReductionEEEERNSt3__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: 40, False: 66]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    106|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicIntelligentExposureEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    340|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    340|  static_assert(N > 0, "Passed zero length printTag");
  195|    340|  return printTag<N, array>(os, value.toInt64(), data);
  196|    340|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicIntelligentExposureEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    340|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    340|  static_assert(N > 0, "Passed zero length printTag");
  183|    340|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 242, False: 98]
  ------------------
  184|    242|    return os << _(td->label_);
  ------------------
  |  |   40|    242|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    340|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashWarningEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashWarningEEEERNSt3__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: 72, False: 32]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    104|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30panasonicIntelligentResolutionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    244|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    244|  static_assert(N > 0, "Passed zero length printTag");
  195|    244|  return printTag<N, array>(os, value.toInt64(), data);
  196|    244|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30panasonicIntelligentResolutionEEEERNSt3__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: 202, False: 42]
  ------------------
  184|    202|    return os << _(td->label_);
  ------------------
  |  |   40|    202|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    244|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicIntelligentDRangeEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicIntelligentDRangeEEEERNSt3__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: 222, False: 84]
  ------------------
  184|    222|    return os << _(td->label_);
  ------------------
  |  |   40|    222|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    306|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicClearRetouchEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicClearRetouchEEEERNSt3__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: 40, False: 30]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     70|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicPhotoStyleEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicPhotoStyleEEEERNSt3__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: 118, False: 128]
  ------------------
  184|    118|    return os << _(td->label_);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    246|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicShadingCompensationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     86|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     86|  static_assert(N > 0, "Passed zero length printTag");
  195|     86|  return printTag<N, array>(os, value.toInt64(), data);
  196|     86|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicShadingCompensationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     86|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     86|  static_assert(N > 0, "Passed zero length printTag");
  183|     86|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 60, False: 26]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     86|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicCameraOrientationEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicCameraOrientationEEEERNSt3__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: 382, False: 94]
  ------------------
  184|    382|    return os << _(td->label_);
  ------------------
  |  |   40|    382|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    476|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31panasonicSweepPanoramaDirectionEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31panasonicSweepPanoramaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    374|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    374|  static_assert(N > 0, "Passed zero length printTag");
  183|    374|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 294, False: 80]
  ------------------
  184|    294|    return os << _(td->label_);
  ------------------
  |  |   40|    294|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    374|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicTimerRecordingEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicTimerRecordingEEEERNSt3__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: 160, False: 18]
  ------------------
  184|    160|    return os << _(td->label_);
  ------------------
  |  |   40|    160|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|    178|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12panasonicHDREEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12panasonicHDREEEERNSt3__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: 160, False: 146]
  ------------------
  184|    160|    return os << _(td->label_);
  ------------------
  |  |   40|    160|#define _(String) (String)
  ------------------
  185|    146|  return os << "(" << value << ")";
  186|    306|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicShutterTypeEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicShutterTypeEEEERNSt3__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: 76, False: 52]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    128|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicTouchAEEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicTouchAEEEEERNSt3__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: 50, False: 34]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     84|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 54]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    102|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    520|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    520|  static_assert(N > 0, "Passed zero length printTag");
  195|    520|  return printTag<N, array>(os, value.toInt64(), data);
  196|    520|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    520|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    520|  static_assert(N > 0, "Passed zero length printTag");
  183|    520|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 366, False: 154]
  ------------------
  184|    366|    return os << _(td->label_);
  ------------------
  |  |   40|    366|#define _(String) (String)
  ------------------
  185|    154|  return os << "(" << value << ")";
  186|    520|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm147ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxModelEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm147ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxModelEEEERNSt3__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: 16, False: 198]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|    198|  return os << "(" << value << ")";
  186|    214|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    838|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    838|  static_assert(N > 0, "Passed zero length printTag");
  195|    838|  return printTag<N, array>(os, value.toInt64(), data);
  196|    838|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    838|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    838|  static_assert(N > 0, "Passed zero length printTag");
  183|    838|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 472, False: 366]
  ------------------
  184|    472|    return os << _(td->label_);
  ------------------
  |  |   40|    472|#define _(String) (String)
  ------------------
  185|    366|  return os << "(" << value << ")";
  186|    838|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10pentaxSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    956|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    956|  static_assert(N > 0, "Passed zero length printTag");
  195|    956|  return printTag<N, array>(os, value.toInt64(), data);
  196|    956|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10pentaxSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    956|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    956|  static_assert(N > 0, "Passed zero length printTag");
  183|    956|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 742, False: 214]
  ------------------
  184|    742|    return os << _(td->label_);
  ------------------
  |  |   40|    742|#define _(String) (String)
  ------------------
  185|    214|  return os << "(" << value << ")";
  186|    956|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.12k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.12k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.12k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.12k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.12k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.12k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.12k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 950, False: 172]
  ------------------
  184|    950|    return os << _(td->label_);
  ------------------
  |  |   40|    950|#define _(String) (String)
  ------------------
  185|    172|  return os << "(" << value << ")";
  186|  1.12k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    892|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    892|  static_assert(N > 0, "Passed zero length printTag");
  195|    892|  return printTag<N, array>(os, value.toInt64(), data);
  196|    892|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    892|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    892|  static_assert(N > 0, "Passed zero length printTag");
  183|    892|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 650, False: 242]
  ------------------
  184|    650|    return os << _(td->label_);
  ------------------
  |  |   40|    650|#define _(String) (String)
  ------------------
  185|    242|  return os << "(" << value << ")";
  186|    892|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxAFPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.08k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.08k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.08k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.08k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxAFPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.08k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.08k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.08k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 752, False: 330]
  ------------------
  184|    752|    return os << _(td->label_);
  ------------------
  |  |   40|    752|#define _(String) (String)
  ------------------
  185|    330|  return os << "(" << value << ")";
  186|  1.08k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxAFPointFocusEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxAFPointFocusEEEERNSt3__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: 850, False: 186]
  ------------------
  184|    850|    return os << _(td->label_);
  ------------------
  |  |   40|    850|#define _(String) (String)
  ------------------
  185|    186|  return os << "(" << value << ")";
  186|  1.03k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm79ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9pentaxISOEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    356|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    356|  static_assert(N > 0, "Passed zero length printTag");
  195|    356|  return printTag<N, array>(os, value.toInt64(), data);
  196|    356|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm79ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9pentaxISOEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    356|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    356|  static_assert(N > 0, "Passed zero length printTag");
  183|    356|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 242, False: 114]
  ------------------
  184|    242|    return os << _(td->label_);
  ------------------
  |  |   40|    242|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    356|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 52]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    144|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.09k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.09k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.09k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.09k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.09k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.09k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.09k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 906, False: 186]
  ------------------
  184|    906|    return os << _(td->label_);
  ------------------
  |  |   40|    906|#define _(String) (String)
  ------------------
  185|    186|  return os << "(" << value << ")";
  186|  1.09k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22pentaxWhiteBalanceModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    566|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    566|  static_assert(N > 0, "Passed zero length printTag");
  195|    566|  return printTag<N, array>(os, value.toInt64(), data);
  196|    566|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22pentaxWhiteBalanceModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    566|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    566|  static_assert(N > 0, "Passed zero length printTag");
  183|    566|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 280, False: 286]
  ------------------
  184|    280|    return os << _(td->label_);
  ------------------
  |  |   40|    280|#define _(String) (String)
  ------------------
  185|    286|  return os << "(" << value << ")";
  186|    566|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    664|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    664|  static_assert(N > 0, "Passed zero length printTag");
  195|    664|  return printTag<N, array>(os, value.toInt64(), data);
  196|    664|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    664|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    664|  static_assert(N > 0, "Passed zero length printTag");
  183|    664|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 588, False: 76]
  ------------------
  184|    588|    return os << _(td->label_);
  ------------------
  |  |   40|    588|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    664|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxContrastEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxContrastEEEERNSt3__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: 452, False: 136]
  ------------------
  184|    452|    return os << _(td->label_);
  ------------------
  |  |   40|    452|#define _(String) (String)
  ------------------
  185|    136|  return os << "(" << value << ")";
  186|    588|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    996|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    996|  static_assert(N > 0, "Passed zero length printTag");
  195|    996|  return printTag<N, array>(os, value.toInt64(), data);
  196|    996|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    996|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    996|  static_assert(N > 0, "Passed zero length printTag");
  183|    996|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 760, False: 236]
  ------------------
  184|    760|    return os << _(td->label_);
  ------------------
  |  |   40|    760|#define _(String) (String)
  ------------------
  185|    236|  return os << "(" << value << ")";
  186|    996|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLocationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    148|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    148|  static_assert(N > 0, "Passed zero length printTag");
  195|    148|  return printTag<N, array>(os, value.toInt64(), data);
  196|    148|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLocationEEEERNSt3__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: 66, False: 82]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    148|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12pentaxCitiesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.81k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.81k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.81k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.81k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12pentaxCitiesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.81k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.81k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.81k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.91k, False: 894]
  ------------------
  184|  1.91k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.91k|#define _(String) (String)
  ------------------
  185|    894|  return os << "(" << value << ")";
  186|  2.81k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxYesNoEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxYesNoEEEERNSt3__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: 60, False: 80]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    140|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    174|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    174|  static_assert(N > 0, "Passed zero length printTag");
  195|    174|  return printTag<N, array>(os, value.toInt64(), data);
  196|    174|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    174|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    174|  static_assert(N > 0, "Passed zero length printTag");
  183|    174|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 86, False: 88]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    174|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxOffOnEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxOffOnEEEERNSt3__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: 44, False: 90]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    134|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxImageToneEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxImageToneEEEERNSt3__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: 630, False: 198]
  ------------------
  184|    630|    return os << _(td->label_);
  ------------------
  |  |   40|    630|#define _(String) (String)
  ------------------
  185|    198|  return os << "(" << value << ")";
  186|    828|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxHighISONoiseReductionEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxHighISONoiseReductionEEEERNSt3__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: 608, False: 390]
  ------------------
  184|    608|    return os << _(td->label_);
  ------------------
  |  |   40|    608|#define _(String) (String)
  ------------------
  185|    390|  return os << "(" << value << ")";
  186|    998|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16samsung2LensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.01k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.01k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.01k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.01k|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16samsung2LensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.01k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.01k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.01k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.59k, False: 422]
  ------------------
  184|  1.59k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.59k|#define _(String) (String)
  ------------------
  185|    422|  return os << "(" << value << ")";
  186|  2.01k|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     88|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     88|  static_assert(N > 0, "Passed zero length printTag");
  195|     88|  return printTag<N, array>(os, value.toInt64(), data);
  196|     88|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     88|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     88|  static_assert(N > 0, "Passed zero length printTag");
  183|     88|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 34]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     88|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2SmartRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     50|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     50|  static_assert(N > 0, "Passed zero length printTag");
  195|     50|  return printTag<N, array>(os, value.toInt64(), data);
  196|     50|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2SmartRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     50|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     50|  static_assert(N > 0, "Passed zero length printTag");
  183|     50|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 16]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     16|  return os << "(" << value << ")";
  186|     50|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13samsungPwModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     68|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     68|  static_assert(N > 0, "Passed zero length printTag");
  195|     68|  return printTag<N, array>(os, value.toInt64(), data);
  196|     68|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13samsungPwModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     68|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     68|  static_assert(N > 0, "Passed zero length printTag");
  183|     68|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 34]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     68|}
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: 114, False: 246]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|    246|  return os << "(" << value << ")";
  186|    360|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    811|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    811|  static_assert(N > 0, "Passed zero length printTag");
  183|    811|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 311, False: 500]
  ------------------
  184|    311|    return os << _(td->label_);
  ------------------
  |  |   40|    311|#define _(String) (String)
  ------------------
  185|    500|  return os << "(" << value << ")";
  186|    811|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    557|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    557|  static_assert(N > 0, "Passed zero length printTag");
  183|    557|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 450, False: 107]
  ------------------
  184|    450|    return os << _(td->label_);
  ------------------
  |  |   40|    450|#define _(String) (String)
  ------------------
  185|    107|  return os << "(" << value << ")";
  186|    557|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.09k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.09k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.09k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 863, False: 230]
  ------------------
  184|    863|    return os << _(td->label_);
  ------------------
  |  |   40|    863|#define _(String) (String)
  ------------------
  185|    230|  return os << "(" << value << ")";
  186|  1.09k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.46k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.46k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.46k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 760, False: 706]
  ------------------
  184|    760|    return os << _(td->label_);
  ------------------
  |  |   40|    760|#define _(String) (String)
  ------------------
  185|    706|  return os << "(" << value << ")";
  186|  1.46k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    902|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    902|  static_assert(N > 0, "Passed zero length printTag");
  183|    902|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 820, False: 82]
  ------------------
  184|    820|    return os << _(td->label_);
  ------------------
  |  |   40|    820|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    902|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    839|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    839|  static_assert(N > 0, "Passed zero length printTag");
  195|    839|  return printTag<N, array>(os, value.toInt64(), data);
  196|    839|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    839|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    839|  static_assert(N > 0, "Passed zero length printTag");
  183|    839|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 545, False: 294]
  ------------------
  184|    545|    return os << _(td->label_);
  ------------------
  |  |   40|    545|#define _(String) (String)
  ------------------
  185|    294|  return os << "(" << value << ")";
  186|    839|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    291|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    291|  static_assert(N > 0, "Passed zero length printTag");
  195|    291|  return printTag<N, array>(os, value.toInt64(), data);
  196|    291|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    291|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    291|  static_assert(N > 0, "Passed zero length printTag");
  183|    291|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 112, False: 179]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    179|  return os << "(" << value << ")";
  186|    291|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet4EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    301|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    301|  static_assert(N > 0, "Passed zero length printTag");
  183|    301|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 191, False: 110]
  ------------------
  184|    191|    return os << _(td->label_);
  ------------------
  |  |   40|    191|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    301|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet5EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    772|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    772|  static_assert(N > 0, "Passed zero length printTag");
  183|    772|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 498, False: 274]
  ------------------
  184|    498|    return os << _(td->label_);
  ------------------
  |  |   40|    498|#define _(String) (String)
  ------------------
  185|    274|  return os << "(" << value << ")";
  186|    772|}
sonymn_int.cpp:_ZN5Exiv28Internal20printTagBitlistAllLEILm19ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20sonyAFPointsUsedSet1EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  238|    203|std::ostream& printTagBitlistAllLE(std::ostream& os, const Value& value, const ExifData*) {
  239|    203|  static_assert(N > 0, "Passed zero length TagDetailsBitlistSorted");
  240|       |
  241|    203|  uint32_t vN = 0;
  242|    203|  uint32_t currentVNBit = 0;
  243|    203|  size_t lastArrayPos = 0;  // Prevents unneeded searching of array
  244|    203|  constexpr auto maxArrayBit = (array + N - 1)->first;
  245|    203|  auto allVNZero = true;
  246|    203|  auto useSep = false;
  247|       |
  248|       |  // For each value
  249|  4.20k|  for (size_t i = 0; i < value.count(); i++) {
  ------------------
  |  Branch (249:22): [True: 4.00k, False: 203]
  ------------------
  250|  4.00k|    vN = value.toUint32(i);
  251|  4.00k|    if (vN == 0) {  // If all bits zero, then nothing to process
  ------------------
  |  Branch (251:9): [True: 1.28k, False: 2.71k]
  ------------------
  252|  1.28k|      currentVNBit += 8;
  253|  1.28k|      continue;
  254|  1.28k|    }
  255|  2.71k|    allVNZero = false;
  256|       |    // Cycle through every bit in that byte
  257|  24.4k|    for (auto j = 0; j < 8; j++, currentVNBit++) {
  ------------------
  |  Branch (257:22): [True: 21.7k, False: 2.71k]
  ------------------
  258|  21.7k|      if ((vN >> j & 0x01) == 0) {  // If bit not set, then nothing to process
  ------------------
  |  Branch (258:11): [True: 9.73k, False: 11.9k]
  ------------------
  259|  9.73k|        continue;
  260|  9.73k|      }
  261|  11.9k|      if (currentVNBit > maxArrayBit) {  // If beyond array values, output unknown index
  ------------------
  |  Branch (261:11): [True: 10.4k, False: 1.56k]
  ------------------
  262|  10.4k|        os << ", [" << currentVNBit << "]";
  263|  10.4k|        continue;
  264|  10.4k|      }
  265|       |
  266|       |      // Check to see if the numbered bit is found in the array
  267|  3.52k|      for (size_t k = lastArrayPos; k < N; ++k) {
  ------------------
  |  Branch (267:37): [True: 3.52k, False: 0]
  ------------------
  268|  3.52k|        auto [bit, label] = *(array + k);
  269|       |
  270|  3.52k|        if (currentVNBit == bit) {
  ------------------
  |  Branch (270:13): [True: 1.56k, False: 1.96k]
  ------------------
  271|  1.56k|          lastArrayPos = k;
  272|  1.56k|          if (useSep) {
  ------------------
  |  Branch (272:15): [True: 1.41k, False: 152]
  ------------------
  273|  1.41k|            os << ", " << _(label);
  ------------------
  |  |   40|  1.41k|#define _(String) (String)
  ------------------
  274|  1.41k|          } else {
  275|    152|            os << _(label);
  ------------------
  |  |   40|    152|#define _(String) (String)
  ------------------
  276|    152|            useSep = true;
  277|    152|          }
  278|  1.56k|          break;
  279|  1.56k|        }
  280|  3.52k|      }
  281|  1.56k|    }
  282|  2.71k|  }
  283|    203|  if (allVNZero)
  ------------------
  |  Branch (283:7): [True: 43, False: 160]
  ------------------
  284|     43|    os << _("None");
  ------------------
  |  |   40|     43|#define _(String) (String)
  ------------------
  285|    203|  return os;
  286|    203|}
sonymn_int.cpp:_ZN5Exiv28Internal20printTagBitlistAllLEILm80ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20sonyAFPointsUsedSet2EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  238|    100|std::ostream& printTagBitlistAllLE(std::ostream& os, const Value& value, const ExifData*) {
  239|    100|  static_assert(N > 0, "Passed zero length TagDetailsBitlistSorted");
  240|       |
  241|    100|  uint32_t vN = 0;
  242|    100|  uint32_t currentVNBit = 0;
  243|    100|  size_t lastArrayPos = 0;  // Prevents unneeded searching of array
  244|    100|  constexpr auto maxArrayBit = (array + N - 1)->first;
  245|    100|  auto allVNZero = true;
  246|    100|  auto useSep = false;
  247|       |
  248|       |  // For each value
  249|  1.77k|  for (size_t i = 0; i < value.count(); i++) {
  ------------------
  |  Branch (249:22): [True: 1.67k, False: 100]
  ------------------
  250|  1.67k|    vN = value.toUint32(i);
  251|  1.67k|    if (vN == 0) {  // If all bits zero, then nothing to process
  ------------------
  |  Branch (251:9): [True: 687, False: 991]
  ------------------
  252|    687|      currentVNBit += 8;
  253|    687|      continue;
  254|    687|    }
  255|    991|    allVNZero = false;
  256|       |    // Cycle through every bit in that byte
  257|  8.91k|    for (auto j = 0; j < 8; j++, currentVNBit++) {
  ------------------
  |  Branch (257:22): [True: 7.92k, False: 991]
  ------------------
  258|  7.92k|      if ((vN >> j & 0x01) == 0) {  // If bit not set, then nothing to process
  ------------------
  |  Branch (258:11): [True: 3.69k, False: 4.23k]
  ------------------
  259|  3.69k|        continue;
  260|  3.69k|      }
  261|  4.23k|      if (currentVNBit > maxArrayBit) {  // If beyond array values, output unknown index
  ------------------
  |  Branch (261:11): [True: 1.62k, False: 2.60k]
  ------------------
  262|  1.62k|        os << ", [" << currentVNBit << "]";
  263|  1.62k|        continue;
  264|  1.62k|      }
  265|       |
  266|       |      // Check to see if the numbered bit is found in the array
  267|  11.5k|      for (size_t k = lastArrayPos; k < N; ++k) {
  ------------------
  |  Branch (267:37): [True: 10.6k, False: 863]
  ------------------
  268|  10.6k|        auto [bit, label] = *(array + k);
  269|       |
  270|  10.6k|        if (currentVNBit == bit) {
  ------------------
  |  Branch (270:13): [True: 1.74k, False: 8.95k]
  ------------------
  271|  1.74k|          lastArrayPos = k;
  272|  1.74k|          if (useSep) {
  ------------------
  |  Branch (272:15): [True: 1.68k, False: 64]
  ------------------
  273|  1.68k|            os << ", " << _(label);
  ------------------
  |  |   40|  1.68k|#define _(String) (String)
  ------------------
  274|  1.68k|          } else {
  275|     64|            os << _(label);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  276|     64|            useSep = true;
  277|     64|          }
  278|  1.74k|          break;
  279|  1.74k|        }
  280|  10.6k|      }
  281|  2.60k|    }
  282|    991|  }
  283|    100|  if (allVNZero)
  ------------------
  |  Branch (283:7): [True: 33, False: 67]
  ------------------
  284|     33|    os << _("None");
  ------------------
  |  |   40|     33|#define _(String) (String)
  ------------------
  285|    100|  return os;
  286|    100|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFTrackingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    585|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    585|  static_assert(N > 0, "Passed zero length printTag");
  183|    585|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 512, False: 73]
  ------------------
  184|    512|    return os << _(td->label_);
  ------------------
  |  |   40|    512|#define _(String) (String)
  ------------------
  185|     73|  return os << "(" << value << ")";
  186|    585|}
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: 63, False: 36]
  ------------------
  184|     63|    return os << _(td->label_);
  ------------------
  |  |   40|     63|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|     99|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFModeSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    194|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    194|  static_assert(N > 0, "Passed zero length printTag");
  183|    194|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 180, False: 14]
  ------------------
  184|    180|    return os << _(td->label_);
  ------------------
  |  |   40|    180|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|    194|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFModeSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    109|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    109|  static_assert(N > 0, "Passed zero length printTag");
  183|    109|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 88, False: 21]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|     21|  return os << "(" << value << ")";
  186|    109|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFocusMode3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     40|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     40|  static_assert(N > 0, "Passed zero length printTag");
  183|     40|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 33, False: 7]
  ------------------
  184|     33|    return os << _(td->label_);
  ------------------
  |  |   40|     33|#define _(String) (String)
  ------------------
  185|      7|  return os << "(" << value << ")";
  186|     40|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyHighISONoiseReduction2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    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: 133, False: 63]
  ------------------
  184|    133|    return os << _(td->label_);
  ------------------
  |  |   40|    133|#define _(String) (String)
  ------------------
  185|     63|  return os << "(" << value << ")";
  186|    196|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.49k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.49k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.49k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.49k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.49k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.49k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.49k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.26k, False: 232]
  ------------------
  184|  1.26k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.26k|#define _(String) (String)
  ------------------
  185|    232|  return os << "(" << value << ")";
  186|  1.49k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyWhiteBalanceStdEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyWhiteBalanceStdEEEERNSt3__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: 528, False: 116]
  ------------------
  184|    528|    return os << _(td->label_);
  ------------------
  |  |   40|    528|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    644|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLongExposureNoiseReductionEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLongExposureNoiseReductionEEEERNSt3__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: 300, False: 94]
  ------------------
  184|    300|    return os << _(td->label_);
  ------------------
  |  |   40|    300|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    394|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyHighISONoiseReductionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    724|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    724|  static_assert(N > 0, "Passed zero length printTag");
  195|    724|  return printTag<N, array>(os, value.toInt64(), data);
  196|    724|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyHighISONoiseReductionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    724|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    724|  static_assert(N > 0, "Passed zero length printTag");
  183|    724|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 438, False: 286]
  ------------------
  184|    438|    return os << _(td->label_);
  ------------------
  |  |   40|    438|#define _(String) (String)
  ------------------
  185|    286|  return os << "(" << value << ")";
  186|    724|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA1EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA1EEEERNSt3__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: 158, False: 70]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    228|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm36ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyPictureEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.45k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.45k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.45k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.45k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm36ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyPictureEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.45k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.45k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.45k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.26k, False: 190]
  ------------------
  184|  1.26k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.26k|#define _(String) (String)
  ------------------
  185|    190|  return os << "(" << value << ")";
  186|  1.45k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySoftSkinEffectEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySoftSkinEffectEEEERNSt3__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: 94, False: 38]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    132|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyVignettingCorrectionEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyVignettingCorrectionEEEERNSt3__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: 160, False: 130]
  ------------------
  184|    160|    return os << _(td->label_);
  ------------------
  |  |   40|    160|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    290|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLateralChromaticAberrationEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLateralChromaticAberrationEEEERNSt3__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: 282, False: 206]
  ------------------
  184|    282|    return os << _(td->label_);
  ------------------
  |  |   40|    282|#define _(String) (String)
  ------------------
  185|    206|  return os << "(" << value << ")";
  186|    488|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyDistortionCorrectionSettingsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    168|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    168|  static_assert(N > 0, "Passed zero length printTag");
  195|    168|  return printTag<N, array>(os, value.toInt64(), data);
  196|    168|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyDistortionCorrectionSettingsEEEERNSt3__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: 144, False: 24]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|    168|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyNoYesEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyNoYesEEEERNSt3__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: 140, False: 80]
  ------------------
  184|    140|    return os << _(td->label_);
  ------------------
  |  |   40|    140|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    220|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyFlashActionEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyFlashActionEEEERNSt3__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: 188, False: 66]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    254|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyMultiFrameNREffectEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyMultiFrameNREffectEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString2ILm5ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L25sonyVariableLowPassFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  128|    880|std::ostream& printTagString2(std::ostream& os, const Value& value, const ExifData* data) {
  129|    880|  static_assert(N > 0, "Passed zero length printTagString2");
  130|    880|  if (value.count() < 2)
  ------------------
  |  Branch (130:7): [True: 16, False: 864]
  ------------------
  131|     16|    return os << "(" << value << ")";
  132|    864|  std::string temp = value.toString(0) + " " + value.toString(1);
  133|    864|  return printTagString<N, array>(os, temp, data);
  134|    880|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm5ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L25sonyVariableLowPassFilterEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    864|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    864|  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|    864|  } else {
  114|    864|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 392, False: 472]
  ------------------
  115|    392|      return os << _(td->label_);
  ------------------
  |  |   40|    392|#define _(String) (String)
  ------------------
  116|    472|    return os << "(" << value << ")";
  117|    864|  }
  118|    864|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyRAWFileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    380|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    380|  static_assert(N > 0, "Passed zero length printTag");
  195|    380|  return printTag<N, array>(os, value.toInt64(), data);
  196|    380|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyRAWFileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    380|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    380|  static_assert(N > 0, "Passed zero length printTag");
  183|    380|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 318, False: 62]
  ------------------
  184|    318|    return os << _(td->label_);
  ------------------
  |  |   40|    318|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    380|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyPrioritySetInAWBEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    478|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    478|  static_assert(N > 0, "Passed zero length printTag");
  195|    478|  return printTag<N, array>(os, value.toInt64(), data);
  196|    478|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyPrioritySetInAWBEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    478|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    478|  static_assert(N > 0, "Passed zero length printTag");
  183|    478|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 308, False: 170]
  ------------------
  184|    308|    return os << _(td->label_);
  ------------------
  |  |   40|    308|#define _(String) (String)
  ------------------
  185|    170|  return os << "(" << value << ")";
  186|    478|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyMeteringMode2EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyMeteringMode2EEEERNSt3__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: 58, False: 66]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    124|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString2ILm30ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L15sonyQuality2StdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  128|    574|std::ostream& printTagString2(std::ostream& os, const Value& value, const ExifData* data) {
  129|    574|  static_assert(N > 0, "Passed zero length printTagString2");
  130|    574|  if (value.count() < 2)
  ------------------
  |  Branch (130:7): [True: 52, False: 522]
  ------------------
  131|     52|    return os << "(" << value << ")";
  132|    522|  std::string temp = value.toString(0) + " " + value.toString(1);
  133|    522|  return printTagString<N, array>(os, temp, data);
  134|    574|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm30ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L15sonyQuality2StdEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    522|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    522|  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|    522|  } else {
  114|    522|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 88, False: 434]
  ------------------
  115|     88|      return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  116|    434|    return os << "(" << value << ")";
  117|    522|  }
  118|    522|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyJPEGHEIFSwitchEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    158|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    158|  static_assert(N > 0, "Passed zero length printTag");
  195|    158|  return printTag<N, array>(os, value.toInt64(), data);
  196|    158|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyJPEGHEIFSwitchEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    158|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    158|  static_assert(N > 0, "Passed zero length printTag");
  183|    158|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 108]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    158|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString4ILm16ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L14sonyFileFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  144|    634|std::ostream& printTagString4(std::ostream& os, const Value& value, const ExifData* data) {
  145|    634|  static_assert(N > 0, "Passed zero length printTagString4");
  146|    634|  if (value.count() < 4)
  ------------------
  |  Branch (146:7): [True: 56, False: 578]
  ------------------
  147|     56|    return os << "(" << value << ")";
  148|    578|  std::string temp = value.toString(0) + " " + value.toString(1) + " " + value.toString(2) + " " + value.toString(3);
  149|    578|  return printTagString<N, array>(os, temp, data);
  150|    634|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm16ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L14sonyFileFormatEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    578|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    578|  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|    578|  } else {
  114|    578|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 274, False: 304]
  ------------------
  115|    274|      return os << _(td->label_);
  ------------------
  |  |   40|    274|#define _(String) (String)
  ------------------
  116|    304|    return os << "(" << value << ")";
  117|    578|  }
  118|    578|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm113ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11sonyModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  9.80k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  9.80k|  static_assert(N > 0, "Passed zero length printTag");
  195|  9.80k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  9.80k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm113ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11sonyModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  9.80k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  9.80k|  static_assert(N > 0, "Passed zero length printTag");
  183|  9.80k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8.57k, False: 1.23k]
  ------------------
  184|  8.57k|    return os << _(td->label_);
  ------------------
  |  |   40|  8.57k|#define _(String) (String)
  ------------------
  185|  1.23k|  return os << "(" << value << ")";
  186|  9.80k|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm19ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L20sonyCreativeStyleStdEENS_5ValueEEERNSt3__113basic_ostreamIcNS7_11char_traitsIcEEEESC_RKT1_PKNS_8ExifDataE:
  107|    324|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    324|  static_assert(N > 0, "Passed zero length printTagString");
  109|    324|  if constexpr (std::is_same_v<T, Value>) {
  110|    324|    if (auto td = Exiv2::find(array, value.toString(0)))
  ------------------
  |  Branch (110:14): [True: 14, False: 310]
  ------------------
  111|     14|      return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  112|    310|    return os << "(" << value << ")";
  113|       |  } else {
  114|       |    if (auto td = Exiv2::find(array, value))
  115|       |      return os << _(td->label_);
  116|       |    return os << "(" << value << ")";
  117|       |  }
  118|    324|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb025EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    804|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    804|  static_assert(N > 0, "Passed zero length printTag");
  195|    804|  return printTag<N, array>(os, value.toInt64(), data);
  196|    804|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb025EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    804|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    804|  static_assert(N > 0, "Passed zero length printTag");
  183|    804|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 674, False: 130]
  ------------------
  184|    674|    return os << _(td->label_);
  ------------------
  |  |   40|    674|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    804|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    596|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    596|  static_assert(N > 0, "Passed zero length printTag");
  195|    596|  return printTag<N, array>(os, value.toInt64(), data);
  196|    596|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    596|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    596|  static_assert(N > 0, "Passed zero length printTag");
  183|    596|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 232, False: 364]
  ------------------
  184|    232|    return os << _(td->label_);
  ------------------
  |  |   40|    232|#define _(String) (String)
  ------------------
  185|    364|  return os << "(" << value << ")";
  186|    596|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm26ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.13k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.13k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.13k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.13k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm26ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.13k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.13k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.13k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.46k, False: 672]
  ------------------
  184|  2.46k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.46k|#define _(String) (String)
  ------------------
  185|    672|  return os << "(" << value << ")";
  186|  3.13k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyMacroEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyMacroEEEERNSt3__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: 216, False: 94]
  ------------------
  184|    216|    return os << _(td->label_);
  ------------------
  |  |   40|    216|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    310|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm31ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.14k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.14k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.14k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.14k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm31ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.14k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.14k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.14k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.95k, False: 1.18k]
  ------------------
  184|  3.95k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.95k|#define _(String) (String)
  ------------------
  185|  1.18k|  return os << "(" << value << ")";
  186|  5.14k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAFIlluminatorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     96|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     96|  static_assert(N > 0, "Passed zero length printTag");
  195|     96|  return printTag<N, array>(os, value.toInt64(), data);
  196|     96|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAFIlluminatorEEEERNSt3__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: 76, False: 20]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     96|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyJPEGQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    344|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    344|  static_assert(N > 0, "Passed zero length printTag");
  195|    344|  return printTag<N, array>(os, value.toInt64(), data);
  196|    344|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyJPEGQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    344|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    344|  static_assert(N > 0, "Passed zero length printTag");
  183|    344|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 220, False: 124]
  ------------------
  184|    220|    return os << _(td->label_);
  ------------------
  |  |   40|    220|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    344|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFlashLevelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    806|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    806|  static_assert(N > 0, "Passed zero length printTag");
  195|    806|  return printTag<N, array>(os, value.toInt64(), data);
  196|    806|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFlashLevelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    806|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    806|  static_assert(N > 0, "Passed zero length printTag");
  183|    806|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 632, False: 174]
  ------------------
  184|    632|    return os << _(td->label_);
  ------------------
  |  |   40|    632|#define _(String) (String)
  ------------------
  185|    174|  return os << "(" << value << ")";
  186|    806|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.45k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.45k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.45k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.45k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.45k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.45k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.45k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 774, False: 676]
  ------------------
  184|    774|    return os << _(td->label_);
  ------------------
  |  |   40|    774|#define _(String) (String)
  ------------------
  185|    676|  return os << "(" << value << ")";
  186|  1.45k|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagNoErrorILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySequenceNumberEENS_5ValueEEERNSt3__113basic_ostreamIcNS7_11char_traitsIcEEEESC_RKT1_PKNS_8ExifDataE:
  160|    164|std::ostream& printTagNoError(std::ostream& os, const T& value, const ExifData*) {
  161|    164|  static_assert(N > 0, "Passed zero length printTagNoError");
  162|    164|  if constexpr (std::is_same_v<T, Value>) {
  163|    164|    if (auto td = Exiv2::find(array, value.toInt64()))
  ------------------
  |  Branch (163:14): [True: 88, False: 76]
  ------------------
  164|     88|      return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  165|     76|    return os << value;
  166|       |  } else {
  167|       |    if (auto td = Exiv2::find(array, value))
  168|       |      return os << _(td->label_);
  169|       |    return os << value;
  170|       |  }
  171|    164|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyAntiBlurEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    580|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    580|  static_assert(N > 0, "Passed zero length printTag");
  195|    580|  return printTag<N, array>(os, value.toInt64(), data);
  196|    580|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyAntiBlurEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    580|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    580|  static_assert(N > 0, "Passed zero length printTag");
  183|    580|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 230, False: 350]
  ------------------
  184|    230|    return os << _(td->label_);
  ------------------
  |  |   40|    230|#define _(String) (String)
  ------------------
  185|    350|  return os << "(" << value << ")";
  186|    580|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb04fEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    626|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    626|  static_assert(N > 0, "Passed zero length printTag");
  195|    626|  return printTag<N, array>(os, value.toInt64(), data);
  196|    626|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb04fEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    626|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    626|  static_assert(N > 0, "Passed zero length printTag");
  183|    626|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 372, False: 254]
  ------------------
  184|    372|    return os << _(td->label_);
  ------------------
  |  |   40|    372|#define _(String) (String)
  ------------------
  185|    254|  return os << "(" << value << ")";
  186|    626|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyIntelligentAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    140|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    140|  static_assert(N > 0, "Passed zero length printTag");
  195|    140|  return printTag<N, array>(os, value.toInt64(), data);
  196|    140|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyIntelligentAutoEEEERNSt3__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: 76, False: 64]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    140|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyWhiteBalance2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    958|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    958|  static_assert(N > 0, "Passed zero length printTag");
  195|    958|  return printTag<N, array>(os, value.toInt64(), data);
  196|    958|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyWhiteBalance2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    958|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    958|  static_assert(N > 0, "Passed zero length printTag");
  183|    958|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 786, False: 172]
  ------------------
  184|    786|    return os << _(td->label_);
  ------------------
  |  |   40|    786|#define _(String) (String)
  ------------------
  185|    172|  return os << "(" << value << ")";
  186|    958|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    454|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    454|  static_assert(N > 0, "Passed zero length printTag");
  195|    454|  return printTag<N, array>(os, value.toInt64(), data);
  196|    454|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    454|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    454|  static_assert(N > 0, "Passed zero length printTag");
  183|    454|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 88, False: 366]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|    366|  return os << "(" << value << ")";
  186|    454|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyCSFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    434|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    434|  static_assert(N > 0, "Passed zero length printTag");
  195|    434|  return printTag<N, array>(os, value.toInt64(), data);
  196|    434|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyCSFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    434|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    434|  static_assert(N > 0, "Passed zero length printTag");
  183|    434|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 134, False: 300]
  ------------------
  184|    134|    return os << _(td->label_);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  185|    300|  return os << "(" << value << ")";
  186|    434|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    434|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    434|  static_assert(N > 0, "Passed zero length printTag");
  195|    434|  return printTag<N, array>(os, value.toInt64(), data);
  196|    434|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    434|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    434|  static_assert(N > 0, "Passed zero length printTag");
  183|    434|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 400]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    400|  return os << "(" << value << ")";
  186|    434|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyCreativeStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    434|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    434|  static_assert(N > 0, "Passed zero length printTag");
  195|    434|  return printTag<N, array>(os, value.toInt64(), data);
  196|    434|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyCreativeStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    434|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    434|  static_assert(N > 0, "Passed zero length printTag");
  183|    434|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 98, False: 336]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|    336|  return os << "(" << value << ")";
  186|    434|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    362|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    362|  static_assert(N > 0, "Passed zero length printTag");
  195|    362|  return printTag<N, array>(os, value.toInt64(), data);
  196|    362|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    362|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    362|  static_assert(N > 0, "Passed zero length printTag");
  183|    362|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 96, False: 266]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|    266|  return os << "(" << value << ")";
  186|    362|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyAFIlluminatorCSEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyAFIlluminatorCSEEEERNSt3__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: 106, False: 248]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|    248|  return os << "(" << value << ")";
  186|    354|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyImageStyleEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyImageStyleEEEERNSt3__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: 118, False: 236]
  ------------------
  184|    118|    return os << _(td->label_);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  185|    236|  return os << "(" << value << ")";
  186|    354|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    362|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    362|  static_assert(N > 0, "Passed zero length printTag");
  195|    362|  return printTag<N, array>(os, value.toInt64(), data);
  196|    362|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    362|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    362|  static_assert(N > 0, "Passed zero length printTag");
  183|    362|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 116, False: 246]
  ------------------
  184|    116|    return os << _(td->label_);
  ------------------
  |  |   40|    116|#define _(String) (String)
  ------------------
  185|    246|  return os << "(" << value << ")";
  186|    362|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyImageSizeEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyImageSizeEEEERNSt3__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: 30, False: 266]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    266|  return os << "(" << value << ")";
  186|    296|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyAspectRatioEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyAspectRatioEEEERNSt3__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: 12, False: 276]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|    276|  return os << "(" << value << ")";
  186|    288|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyExposureLevelIncrementsEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyExposureLevelIncrementsEEEERNSt3__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: 16, False: 272]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|    272|  return os << "(" << value << ")";
  186|    288|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sony2FpAFAreaModeEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sony2FpAFAreaModeEEEERNSt3__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: 172, False: 54]
  ------------------
  184|    172|    return os << _(td->label_);
  ------------------
  |  |   40|    172|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    226|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyExposureProgram3EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyExposureProgram3EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyReleaseMode2EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyReleaseMode2EEEERNSt3__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: 128, False: 152]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|    152|  return os << "(" << value << ")";
  186|    280|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength1EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength1EEEERNSt3__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: 184, False: 96]
  ------------------
  184|    184|    return os << _(td->label_);
  ------------------
  |  |   40|    184|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    280|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    270|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    270|  static_assert(N > 0, "Passed zero length printTag");
  195|    270|  return printTag<N, array>(os, value.toInt64(), data);
  196|    270|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength2EEEERNSt3__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: 162, False: 108]
  ------------------
  184|    162|    return os << _(td->label_);
  ------------------
  |  |   40|    162|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    270|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyMisc3cCameraOrientationEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyMisc3cCameraOrientationEEEERNSt3__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: 54, False: 208]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|    208|  return os << "(" << value << ")";
  186|    262|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyMisc3cQuality2aEEEERNSt3__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: 9, False: 9]
  ------------------
  184|      9|    return os << _(td->label_);
  ------------------
  |  |   40|      9|#define _(String) (String)
  ------------------
  185|      9|  return os << "(" << value << ")";
  186|     18|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyMisc3cQuality2bEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     71|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     71|  static_assert(N > 0, "Passed zero length printTag");
  183|     71|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 31]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     31|  return os << "(" << value << ")";
  186|     71|}

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

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

_ZN5Exiv28Internal12TiffPathItemC2EjNS_5IfdIdE:
   74|  10.7M|  constexpr TiffPathItem(uint32_t extendedTag, IfdId group) : extendedTag_(extendedTag), group_(group) {
   75|  10.7M|  }
_ZNK5Exiv28Internal12TiffPathItem3tagEv:
   81|  40.9M|  [[nodiscard]] uint16_t tag() const {
   82|  40.9M|    return static_cast<uint16_t>(extendedTag_);
   83|  40.9M|  }
_ZNK5Exiv28Internal12TiffPathItem11extendedTagEv:
   85|  11.3M|  [[nodiscard]] uint32_t extendedTag() const {
   86|  11.3M|    return extendedTag_;
   87|  11.3M|  }
_ZNK5Exiv28Internal12TiffPathItem5groupEv:
   89|  11.1M|  [[nodiscard]] IfdId group() const {
   90|  11.1M|    return group_;
   91|  11.1M|  }
_ZN5Exiv28Internal13TiffComponentC2EtNS_5IfdIdE:
  170|  22.8M|  constexpr TiffComponent(uint16_t tag, IfdId group) : tag_(tag), group_(group) {
  171|  22.8M|  }
_ZN5Exiv28Internal13TiffComponent8setStartEPKh:
  216|  20.0M|  void setStart(const byte* pStart) {
  217|  20.0M|    pStart_ = const_cast<byte*>(pStart);
  218|  20.0M|  }
_ZNK5Exiv28Internal13TiffComponent3tagEv:
  240|   253M|  [[nodiscard]] uint16_t tag() const {
  241|   253M|    return tag_;
  242|   253M|  }
_ZNK5Exiv28Internal13TiffComponent5groupEv:
  244|  89.6M|  [[nodiscard]] IfdId group() const {
  245|  89.6M|    return group_;
  246|  89.6M|  }
_ZNK5Exiv28Internal13TiffComponent5startEv:
  248|  20.2M|  [[nodiscard]] byte* start() const {
  249|  20.2M|    return pStart_;
  250|  20.2M|  }
_ZN5Exiv28Internal13TiffEntryBase9setOffsetEm:
  416|  16.5M|  void setOffset(size_t offset) {
  417|  16.5M|    offset_ = offset;
  418|  16.5M|  }
_ZNK5Exiv28Internal13TiffEntryBase8tiffTypeEv:
  458|  1.73M|  [[nodiscard]] TiffType tiffType() const {
  459|  1.73M|    return tiffType_;
  460|  1.73M|  }
_ZNK5Exiv28Internal13TiffEntryBase6offsetEv:
  465|  82.5k|  [[nodiscard]] size_t offset() const {
  466|  82.5k|    return offset_;
  467|  82.5k|  }
_ZNK5Exiv28Internal13TiffEntryBase5pDataEv:
  476|  26.8M|  [[nodiscard]] const byte* pData() const {
  477|  26.8M|    return pData_;
  478|  26.8M|  }
_ZNK5Exiv28Internal13TiffEntryBase6pValueEv:
  480|  38.8M|  [[nodiscard]] const Value* pValue() const {
  481|  38.8M|    return pValue_.get();
  482|  38.8M|  }
_ZN5Exiv28Internal13TiffEntryBase8setCountEm:
  497|  1.10M|  void setCount(size_t count) {
  498|  1.10M|    count_ = count;
  499|  1.10M|  }
_ZN5Exiv28Internal13TiffEntryBase6setIdxEi:
  501|  16.4M|  void setIdx(int idx) {
  502|  16.4M|    idx_ = idx;
  503|  16.4M|  }
_ZNK5Exiv28Internal13TiffEntryBase7storageEv:
  540|  13.3M|  [[nodiscard]] std::shared_ptr<DataBuf> storage() const {
  541|  13.3M|    return storage_;
  542|  13.3M|  }
_ZNK5Exiv28Internal17TiffDataEntryBase5szTagEv:
  623|  45.0k|  [[nodiscard]] uint16_t szTag() const {
  624|  45.0k|    return szTag_;
  625|  45.0k|  }
_ZNK5Exiv28Internal17TiffDataEntryBase7szGroupEv:
  627|  45.0k|  [[nodiscard]] IfdId szGroup() const {
  628|  45.0k|    return szGroup_;
  629|  45.0k|  }
_ZNK5Exiv28Internal13TiffSizeEntry5dtTagEv:
  789|  62.7k|  [[nodiscard]] uint16_t dtTag() const {
  790|  62.7k|    return dtTag_;
  791|  62.7k|  }
_ZNK5Exiv28Internal13TiffSizeEntry7dtGroupEv:
  793|  62.7k|  [[nodiscard]] IfdId dtGroup() const {
  794|  62.7k|    return dtGroup_;
  795|  62.7k|  }
_ZNK5Exiv28Internal13TiffDirectory7hasNextEv:
  842|  24.9k|  [[nodiscard]] bool hasNext() const {
  843|  24.9k|    return hasNext_;
  844|  24.9k|  }
_ZN5Exiv28Internal16TiffIfdMakernote17setImageByteOrderENS_9ByteOrderE:
 1106|  37.8k|  void setImageByteOrder(ByteOrder byteOrder) {
 1107|  37.8k|    imageByteOrder_ = byteOrder;
 1108|  37.8k|  }
_ZNK5Exiv28Internal8ArrayDefeqEm:
 1217|  25.7M|  bool operator==(size_t idx) const {
 1218|  25.7M|    return idx_ == idx;
 1219|  25.7M|  }
_ZNK5Exiv28Internal8ArrayCfg7tagStepEv:
 1234|  14.6M|  [[nodiscard]] size_t tagStep() const {
 1235|  14.6M|    return elDefaultDef_.size(0, group_);
 1236|  14.6M|  }
_ZN5Exiv28Internal15TiffBinaryArray10setDecodedEb:
 1310|  14.4M|  void setDecoded(bool decoded) {
 1311|  14.4M|    decoded_ = decoded;
 1312|  14.4M|  }
_ZNK5Exiv28Internal15TiffBinaryArray3cfgEv:
 1318|  56.3M|  [[nodiscard]] const ArrayCfg* cfg() const {
 1319|  56.3M|    return arrayCfg_;
 1320|  56.3M|  }
_ZNK5Exiv28Internal15TiffBinaryArray3defEv:
 1322|   154k|  [[nodiscard]] const ArrayDef* def() const {
 1323|   154k|    return arrayDef_;
 1324|   154k|  }
_ZNK5Exiv28Internal15TiffBinaryArray7defSizeEv:
 1326|  84.4k|  [[nodiscard]] size_t defSize() const {
 1327|  84.4k|    return defSize_;
 1328|  84.4k|  }
_ZNK5Exiv28Internal15TiffBinaryArray7decodedEv:
 1330|   320k|  [[nodiscard]] bool decoded() const {
 1331|   320k|    return decoded_;
 1332|   320k|  }
_ZN5Exiv28Internal17TiffBinaryElement8setElDefERKNS0_8ArrayDefE:
 1404|  13.3M|  void setElDef(const ArrayDef& def) {
 1405|  13.3M|    elDef_ = def;
 1406|  13.3M|  }
_ZN5Exiv28Internal17TiffBinaryElement14setElByteOrderENS_9ByteOrderE:
 1410|  13.3M|  void setElByteOrder(ByteOrder byteOrder) {
 1411|  13.3M|    elByteOrder_ = byteOrder;
 1412|  13.3M|  }
_ZNK5Exiv28Internal17TiffBinaryElement5elDefEv:
 1420|  13.4M|  [[nodiscard]] const ArrayDef* elDef() const {
 1421|  13.4M|    return &elDef_;
 1422|  13.4M|  }
_ZNK5Exiv28Internal17TiffBinaryElement11elByteOrderEv:
 1426|  13.4M|  [[nodiscard]] ByteOrder elByteOrder() const {
 1427|  13.4M|    return elByteOrder_;
 1428|  13.4M|  }
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  36.4k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  36.4k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  36.4k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE56EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|     98|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|     98|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|     98|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE5EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    320|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    320|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    320|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE21EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  14.3k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  14.3k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  14.3k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE6EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  1.13k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  1.13k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  1.13k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE5EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  10.9k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  10.9k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  10.9k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE6EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    140|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    140|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    140|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  4.06k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  4.06k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  4.06k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  3.42k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  3.42k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  3.42k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    862|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    862|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    862|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.05k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.05k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.05k|}
_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|  25.2k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  25.2k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  25.2k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.71k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.71k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.71k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  6.57k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  6.57k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  6.57k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.20k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.20k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.20k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.35k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.35k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.35k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    451|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    451|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    451|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    386|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    386|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    386|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  4.13k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  4.13k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  4.13k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  5.03k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  5.03k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  5.03k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.27k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.27k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.27k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    947|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    947|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    947|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    541|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    541|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    541|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    438|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    438|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    438|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.26k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.26k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.26k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  4.96k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  4.96k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  4.96k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.41k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.41k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.41k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.28k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.28k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.28k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    631|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    631|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    631|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    759|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    759|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    759|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.23k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.23k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.23k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  3.99k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  3.99k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  3.99k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.02k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.02k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.02k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.08k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.08k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.08k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    353|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    353|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    353|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    363|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    363|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    363|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  2.75k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  2.75k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  2.75k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  4.34k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  4.34k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  4.34k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    342|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    342|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    342|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE13EEENSt3__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_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    550|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    550|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    550|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    653|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    653|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    653|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.16k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.16k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.16k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.11k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.11k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.11k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    528|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    528|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    528|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    416|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    416|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    416|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    518|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    518|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    518|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    630|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    630|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    630|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    665|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    665|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    665|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    829|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    829|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    829|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    247|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    247|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    247|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    463|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    463|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    463|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE15EEENSt3__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|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    804|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    804|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    804|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    748|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    748|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    748|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.13k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.13k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.13k|}
_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|    505|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    505|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    505|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    747|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    747|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    747|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    354|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    354|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    354|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    608|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    608|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    608|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    683|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    683|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    683|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    432|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    432|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    432|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    521|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    521|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    521|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    739|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    739|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    739|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    364|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    364|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    364|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    594|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    594|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    594|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    822|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    822|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    822|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE7EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    913|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    913|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    913|}
_ZN5Exiv28Internal16newTiffThumbDataILt279ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    122|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    122|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    122|}
_ZN5Exiv28Internal16newTiffThumbSizeILt273ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|    523|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|    523|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|    523|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    401|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    401|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    401|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    874|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    874|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    874|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    156|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    156|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    156|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  1.73k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  1.73k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  1.73k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  2.36k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  2.36k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  2.36k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    541|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    541|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    541|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     88|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     88|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     88|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    528|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    528|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    528|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    493|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    493|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    493|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    468|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    468|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    468|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    451|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    451|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    451|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    659|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    659|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    659|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     22|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     22|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     22|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    225|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    225|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    225|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    318|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    318|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    318|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    217|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    217|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    217|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    118|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    118|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    118|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     97|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     97|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     97|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    219|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    219|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    219|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    196|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    196|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    196|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    313|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    313|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    313|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10minoCsoCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  23.7k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  23.7k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  23.7k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10minoCsnCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  4.50k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  4.50k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  4.50k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE100EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    327|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    327|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    327|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  13.4k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  13.4k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  13.4k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE101EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.15k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.15k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.15k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE102EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    126|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    126|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    126|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE103EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    661|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    661|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    661|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE104EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    187|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    187|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    187|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE105EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.87k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.87k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.87k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE106EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    181|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    181|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    181|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE107EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    692|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    692|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    692|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE108EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    528|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    528|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    528|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE109EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.86k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.86k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.86k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE110EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    226|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    226|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    226|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE111EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    259|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    259|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    259|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE112EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  5.45k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  5.45k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  5.45k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE113EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  6.94k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  6.94k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  6.94k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE114EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  3.29k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  3.29k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  3.29k|}
_ZN5Exiv28Internal16newTiffImageDataILt258ELNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.26k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.26k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.26k|}
_ZN5Exiv28Internal16newTiffImageSizeILt257ELNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    504|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    504|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    504|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonCsCfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonCsDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  18.6k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  18.6k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  18.6k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  18.6k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonSiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  2.58k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  2.58k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  2.58k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPaCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  1.40k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  1.40k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  1.40k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonCfCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    740|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    740|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    740|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    677|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    677|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    677|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonTiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    550|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    550|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    550|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonFiCfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonFiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    976|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    976|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    976|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    976|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPrCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    197|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    197|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    197|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L15canonAfMiAdjCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     34|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     34|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     34|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L15canonVigCor2CfgEEEENSt3__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_L12canonLiOpCfgEEEENSt3__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:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonLeCfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonLeDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|     99|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|     99|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|     99|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|     99|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonAmCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    254|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    254|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    254|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonMeCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    403|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    403|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    403|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonFilCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     73|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     73|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     73|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonHdrCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    174|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    174|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    174|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonAfCCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    823|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    823|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    823|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12canonRawBCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     51|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     51|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     51|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    173|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    173|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    173|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonVrCfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonVrDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|     74|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|     74|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|     74|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|     74|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonPcCfgEELm13ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonPcDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    165|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    165|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    165|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    165|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonWtCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonWtDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    250|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    250|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    250|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    250|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonIiCfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonIiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    207|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    207|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    207|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    207|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonAfCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonAfDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    175|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    175|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    175|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    175|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm6ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonSiSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    163|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    163|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    163|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    163|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm6ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonCbSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    174|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    174|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    174|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    174|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm4ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonLdSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    215|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    215|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    215|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    215|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm5ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonFlSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    127|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    127|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    127|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    127|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonMeCfgEELm4ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonMeDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|     52|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|     52|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|     52|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|     52|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L11nikonAf2SetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    102|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    102|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    102|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    102|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonFiCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonFiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    316|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    316|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    316|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    316|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L11nikonAFTCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L11nikonAFTDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    204|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    204|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    204|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    204|}
_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|    105|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|    105|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|    105|}
_ZN5Exiv28Internal16newTiffThumbSizeILt4ELNS_5IfdIdE117EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  2.62k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  2.62k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  2.62k|}
_ZN5Exiv28Internal16newTiffThumbDataILt3ELNS_5IfdIdE117EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  3.15k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  3.15k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  3.15k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt4ELNS_5IfdIdE116EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  1.59k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  1.59k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  1.59k|}
_ZN5Exiv28Internal16newTiffThumbDataILt3ELNS_5IfdIdE116EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  2.27k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  2.27k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  2.27k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12samsungPwCfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L12samsungPwDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  5.86k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  5.86k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  5.86k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  5.86k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    327|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    327|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    327|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  2.54k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  2.54k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  2.54k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  3.82k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  3.82k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  3.82k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L12sony2010eSetEEXadL_ZNS0_17sony2010eSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    133|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    133|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    133|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    133|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony2FpSetEEXadL_ZNS0_15sony2FpSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    902|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    902|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    902|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    902|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L13sonyMisc2bSetEEXadL_ZNS0_18sonyMisc2bSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    138|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    138|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    138|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    138|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L13sonyMisc3cSetEEXadL_ZNS0_18sonyMisc3cSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    519|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    519|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    519|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    519|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12sonyMisc1CfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L12sonyMisc1DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    179|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    179|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    179|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    179|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L13sonySInfo1CfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L13sonySInfo1DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  1.07k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  1.07k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  1.07k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  1.07k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony1CsSetEEXadL_ZNS0_14sonyCsSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    682|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    682|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    682|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    682|}
_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.22k|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|  1.22k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|  1.22k|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|  1.22k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12sony1MCsoCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    710|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    710|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    710|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12sony1MCsnCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    410|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    410|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    410|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12sony1MCs7CfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs7DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    376|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    376|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    376|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    376|}
_ZN5Exiv28Internal16newTiffThumbDataILt137ELNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    316|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    316|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    316|}
_ZN5Exiv28Internal16newTiffThumbSizeILt136ELNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|     16|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|     16|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|     16|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L15sony1MCsA100CfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L15sony1MCsA100DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    278|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    278|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    278|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    278|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10minoCs7CfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs7DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  1.22k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  1.22k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  1.22k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  1.22k|}
_ZN5Exiv28Internal16newTiffThumbDataILt137ELNS_5IfdIdE57EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|     82|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|     82|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|     82|}
_ZN5Exiv28Internal16newTiffThumbSizeILt136ELNS_5IfdIdE57EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|     40|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|     40|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|     40|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10minoCs5CfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs5DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    284|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    284|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    284|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    284|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE19EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  2.49k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  2.49k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  2.49k|}
_ZN5Exiv28Internal13TiffComponentD2Ev:
  173|  22.8M|  virtual ~TiffComponent() = default;
_ZN5Exiv28Internal13TiffDirectoryD2Ev:
  830|   156k|  ~TiffDirectory() override = default;
_ZN5Exiv28Internal10TiffSubIfdD2Ev:
  937|  51.9k|  ~TiffSubIfd() override = default;
_ZN5Exiv28Internal15TiffBinaryArrayD2Ev:
 1269|  72.3k|  ~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|    220|std::string TiffImage::primaryGroup() const {
   77|    220|  if (!primaryGroup_.empty())
  ------------------
  |  Branch (77:7): [True: 110, False: 110]
  ------------------
   78|    110|    return primaryGroup_;
   79|       |
   80|    110|  static constexpr auto keys = std::array{
   81|    110|      "Exif.Image.NewSubfileType",     "Exif.SubImage1.NewSubfileType", "Exif.SubImage2.NewSubfileType",
   82|    110|      "Exif.SubImage3.NewSubfileType", "Exif.SubImage4.NewSubfileType", "Exif.SubImage5.NewSubfileType",
   83|    110|      "Exif.SubImage6.NewSubfileType", "Exif.SubImage7.NewSubfileType", "Exif.SubImage8.NewSubfileType",
   84|    110|      "Exif.SubImage9.NewSubfileType",
   85|    110|  };
   86|       |  // Find the group of the primary image, default to "Image"
   87|    110|  primaryGroup_ = std::string("Image");
   88|  1.01k|  for (auto i : keys) {
  ------------------
  |  Branch (88:15): [True: 1.01k, False: 100]
  ------------------
   89|  1.01k|    auto md = exifData_.findKey(ExifKey(i));
   90|       |    // Is it the primary image?
   91|  1.01k|    if (md != exifData_.end() && md->count() > 0 && md->toInt64() == 0) {
  ------------------
  |  Branch (91:9): [True: 52, False: 966]
  |  Branch (91:9): [True: 21, False: 997]
  |  Branch (91:34): [True: 33, False: 19]
  |  Branch (91:53): [True: 21, False: 12]
  ------------------
   92|       |      // Sometimes there is a JPEG primary image; that's not our first choice
   93|     21|      primaryGroup_ = md->groupName();
   94|     21|      std::string key = "Exif." + primaryGroup_ + ".JPEGInterchangeFormat";
   95|     21|      if (exifData_.findKey(ExifKey(key)) == exifData_.end())
  ------------------
  |  Branch (95:11): [True: 10, False: 11]
  ------------------
   96|     10|        break;
   97|     21|    }
   98|  1.01k|  }
   99|    110|  return primaryGroup_;
  100|    220|}
_ZNK5Exiv29TiffImage10pixelWidthEv:
  102|    110|uint32_t TiffImage::pixelWidth() const {
  103|    110|  if (pixelWidthPrimary_ != 0) {
  ------------------
  |  Branch (103:7): [True: 0, False: 110]
  ------------------
  104|      0|    return pixelWidthPrimary_;
  105|      0|  }
  106|       |
  107|    110|  ExifKey key(std::string("Exif.") + primaryGroup() + std::string(".ImageWidth"));
  108|    110|  auto imageWidth = exifData_.findKey(key);
  109|    110|  if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
  ------------------
  |  Branch (109:7): [True: 80, False: 30]
  |  Branch (109:7): [True: 23, False: 87]
  |  Branch (109:40): [True: 23, False: 57]
  ------------------
  110|     23|    pixelWidthPrimary_ = imageWidth->toUint32();
  111|     23|  }
  112|    110|  return pixelWidthPrimary_;
  113|    110|}
_ZNK5Exiv29TiffImage11pixelHeightEv:
  115|    110|uint32_t TiffImage::pixelHeight() const {
  116|    110|  if (pixelHeightPrimary_ != 0) {
  ------------------
  |  Branch (116:7): [True: 0, False: 110]
  ------------------
  117|      0|    return pixelHeightPrimary_;
  118|      0|  }
  119|       |
  120|    110|  ExifKey key(std::string("Exif.") + primaryGroup() + std::string(".ImageLength"));
  121|    110|  auto imageHeight = exifData_.findKey(key);
  122|    110|  if (imageHeight != exifData_.end() && imageHeight->count() > 0) {
  ------------------
  |  Branch (122:7): [True: 33, False: 77]
  |  Branch (122:7): [True: 14, False: 96]
  |  Branch (122:41): [True: 14, False: 19]
  ------------------
  123|     14|    pixelHeightPrimary_ = imageHeight->toUint32();
  124|     14|  }
  125|    110|  return pixelHeightPrimary_;
  126|    110|}
_ZN5Exiv29TiffImage12readMetadataEv:
  133|  14.2k|void TiffImage::readMetadata() {
  134|       |#ifdef EXIV2_DEBUG_MESSAGES
  135|       |  std::cerr << "Reading TIFF file " << io_->path() << "\n";
  136|       |#endif
  137|  14.2k|  if (io_->open() != 0) {
  ------------------
  |  Branch (137:7): [True: 0, False: 14.2k]
  ------------------
  138|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  139|      0|  }
  140|       |
  141|  14.2k|  IoCloser closer(*io_);
  142|       |  // Ensure that this is the correct image type
  143|  14.2k|  if (!isTiffType(*io_, false)) {
  ------------------
  |  Branch (143:7): [True: 0, False: 14.2k]
  ------------------
  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.2k|  clearMetadata();
  149|       |
  150|  14.2k|  ByteOrder bo = TiffParser::decode(exifData_, iptcData_, xmpData_, io_->mmap(), io_->size());
  151|  14.2k|  setByteOrder(bo);
  152|       |
  153|       |  // read profile from the metadata
  154|  14.2k|  Exiv2::ExifKey key("Exif.Image.InterColorProfile");
  155|  14.2k|  auto pos = exifData_.findKey(key);
  156|  14.2k|  if (pos != exifData_.end()) {
  ------------------
  |  Branch (156:7): [True: 54, False: 14.2k]
  ------------------
  157|     54|    size_t size = pos->count() * pos->typeSize();
  158|     54|    if (size == 0) {
  ------------------
  |  Branch (158:9): [True: 33, False: 21]
  ------------------
  159|     33|      throw Error(ErrorCode::kerFailedToReadImageData);
  160|     33|    }
  161|     21|    iccProfile_.alloc(size);
  162|     21|    pos->copy(iccProfile_.data(), bo);
  163|     21|  }
  164|  14.2k|}
_ZN5Exiv210TiffParser6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhm:
  209|  15.4k|ByteOrder TiffParser::decode(ExifData& exifData, IptcData& iptcData, XmpData& xmpData, const byte* pData, size_t size) {
  210|  15.4k|  uint32_t root = Tag::root;
  211|       |
  212|       |  // #1402  Fujifilm RAF. Change root when parsing embedded tiff
  213|  15.4k|  Exiv2::ExifKey key("Exif.Image.Make");
  214|  15.4k|  if (exifData.findKey(key) != exifData.end() && exifData.findKey(key)->toString() == "FUJIFILM") {
  ------------------
  |  Branch (214:7): [True: 49, False: 15.4k]
  |  Branch (214:7): [True: 0, False: 15.4k]
  |  Branch (214:50): [True: 0, False: 49]
  ------------------
  215|      0|    root = Tag::fuji;
  216|      0|  }
  217|       |
  218|  15.4k|  return TiffParserWorker::decode(exifData, iptcData, xmpData, pData, size, root, TiffMapping::findDecoder);
  219|  15.4k|}  // TiffParser::decode
_ZN5Exiv210TiffParser6encodeERNS_7BasicIoEPKhmNS_9ByteOrderERNS_8ExifDataERKNS_8IptcDataERKNS_7XmpDataE:
  222|  2.64k|                               const IptcData& iptcData, const XmpData& xmpData) {
  223|       |  // Delete IFDs which do not occur in TIFF images
  224|  2.64k|  static constexpr auto filteredIfds = std::array{
  225|  2.64k|      IfdId::panaRawId,
  226|  2.64k|  };
  227|  2.64k|  for (auto filteredIfd : filteredIfds) {
  ------------------
  |  Branch (227:25): [True: 2.64k, False: 2.64k]
  ------------------
  228|       |#ifdef EXIV2_DEBUG_MESSAGES
  229|       |    std::cerr << "Warning: Exif IFD " << filteredIfd << " not encoded\n";
  230|       |#endif
  231|  2.64k|    exifData.erase(std::remove_if(exifData.begin(), exifData.end(), FindExifdatum(filteredIfd)), exifData.end());
  232|  2.64k|  }
  233|       |
  234|  2.64k|  TiffHeader header(byteOrder);
  235|  2.64k|  return TiffParserWorker::encode(io, pData, size, exifData, iptcData, xmpData, Tag::root, TiffMapping::findEncoder,
  236|  2.64k|                                  &header, nullptr);
  237|  2.64k|}  // TiffParser::encode
_ZN5Exiv215newTiffInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  241|  14.2k|Image::UniquePtr newTiffInstance(BasicIo::UniquePtr io, bool create) {
  242|  14.2k|  auto image = std::make_unique<TiffImage>(std::move(io), create);
  243|  14.2k|  if (!image->good()) {
  ------------------
  |  Branch (243:7): [True: 0, False: 14.2k]
  ------------------
  244|      0|    return nullptr;
  245|      0|  }
  246|  14.2k|  return image;
  247|  14.2k|}
_ZN5Exiv210isTiffTypeERNS_7BasicIoEb:
  249|   153k|bool isTiffType(BasicIo& iIo, bool advance) {
  250|   153k|  const int32_t len = 8;
  251|   153k|  byte buf[len];
  252|   153k|  iIo.read(buf, len);
  253|   153k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (253:7): [True: 0, False: 153k]
  |  Branch (253:22): [True: 510, False: 153k]
  ------------------
  254|    510|    return false;
  255|    510|  }
  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|   153k|}
_ZN5Exiv29TiffImage14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  264|  27.7k|void TiffImage::printStructure(std::ostream& out, Exiv2::PrintStructureOption option, size_t depth) {
  265|  27.7k|  if (io_->open() != 0)
  ------------------
  |  Branch (265:7): [True: 0, False: 27.7k]
  ------------------
  266|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  267|       |  // Ensure that this is the correct image type
  268|  27.7k|  if (imageType() == ImageType::none && !isTiffType(*io_, false)) {
  ------------------
  |  Branch (268:7): [True: 0, False: 27.7k]
  |  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.7k|  io_->seek(0, BasicIo::beg);
  275|       |
  276|  27.7k|  printTiffStructure(io(), out, option, depth);
  277|  27.7k|}

_ZNK5Exiv28Internal13FindExifdatumclERKNS_9ExifdatumE:
   29|  18.8M|bool FindExifdatum::operator()(const Exiv2::Exifdatum& md) const {
   30|  18.8M|  return ifdId_ == md.ifdId();
   31|  18.8M|}
_ZN5Exiv28Internal11TiffMapping11findDecoderENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEjNS_5IfdIdE:
 1991|  16.3M|DecoderFct TiffMapping::findDecoder(std::string_view make, uint32_t extendedTag, IfdId group) {
 1992|  16.3M|  DecoderFct decoderFct = &TiffDecoder::decodeStdTiffEntry;
 1993|  16.3M|  if (auto td = Exiv2::find(tiffMappingInfo_, TiffMappingInfo::Key{make, extendedTag, group})) {
  ------------------
  |  Branch (1993:12): [True: 6.80k, False: 16.3M]
  ------------------
 1994|       |    // This may set decoderFct to 0, meaning that the tag should not be decoded
 1995|  6.80k|    decoderFct = td->decoderFct_;
 1996|  6.80k|  }
 1997|  16.3M|  return decoderFct;
 1998|  16.3M|}
_ZN5Exiv28Internal11TiffMapping11findEncoderENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEjNS_5IfdIdE:
 2000|  2.75M|EncoderFct TiffMapping::findEncoder(std::string_view make, uint32_t extendedTag, IfdId group) {
 2001|  2.75M|  EncoderFct encoderFct = nullptr;
 2002|  2.75M|  if (auto td = Exiv2::find(tiffMappingInfo_, TiffMappingInfo::Key{make, extendedTag, group})) {
  ------------------
  |  Branch (2002:12): [True: 433, False: 2.75M]
  ------------------
 2003|       |    // Returns 0 if no special encoder function is found
 2004|    433|    encoderFct = td->encoderFct_;
 2005|    433|  }
 2006|  2.75M|  return encoderFct;
 2007|  2.75M|}
_ZN5Exiv28Internal11TiffCreator6createEjNS_5IfdIdE:
 2009|  22.8M|TiffComponent::UniquePtr TiffCreator::create(uint32_t extendedTag, IfdId group) {
 2010|  22.8M|  auto tag = static_cast<uint16_t>(extendedTag);
 2011|  22.8M|  auto i = tiffGroupTable_.find(TiffGroupKey(extendedTag, group));
 2012|       |  // If the lookup failed then try again with Tag::all.
 2013|  22.8M|  if (i == tiffGroupTable_.end()) {
  ------------------
  |  Branch (2013:7): [True: 22.4M, False: 389k]
  ------------------
 2014|  22.4M|    i = tiffGroupTable_.find(TiffGroupKey(Tag::all, group));
 2015|  22.4M|  }
 2016|  22.8M|  if (i != tiffGroupTable_.end() && i->second) {
  ------------------
  |  Branch (2016:7): [True: 22.7M, False: 79.5k]
  |  Branch (2016:7): [True: 22.7M, False: 92.0k]
  |  Branch (2016:37): [True: 22.7M, False: 12.4k]
  ------------------
 2017|  22.7M|    return i->second(tag, group);
 2018|  22.7M|  }
 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|  92.0k|  return nullptr;
 2028|  22.8M|}  // TiffCreator::create
_ZN5Exiv28Internal11TiffCreator7getPathEjNS_5IfdIdEj:
 2030|  2.76M|TiffPath TiffCreator::getPath(uint32_t extendedTag, IfdId group, uint32_t root) {
 2031|  2.76M|  TiffPath ret;
 2032|  10.7M|  while (true) {
  ------------------
  |  Branch (2032:10): [True: 10.7M, Folded]
  ------------------
 2033|  10.7M|    ret.emplace(extendedTag, group);
 2034|  10.7M|    const auto ts = tiffTreeTable_.find(TiffGroupKey(root, group));
 2035|  10.7M|    assert(ts != tiffTreeTable_.end());
 2036|  10.7M|    extendedTag = ts->second.second;
 2037|  10.7M|    group = ts->second.first;
 2038|  10.7M|    if (ts->first == TiffGroupKey(root, IfdId::ifdIdNotSet)) {
  ------------------
  |  Branch (2038:9): [True: 2.76M, False: 7.93M]
  ------------------
 2039|  2.76M|      break;
 2040|  2.76M|    }
 2041|  10.7M|  }
 2042|  2.76M|  return ret;
 2043|  2.76M|}
_ZN5Exiv28Internal16TiffParserWorker6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhmjPFMNS0_11TiffDecoderEFvPKNS0_13TiffEntryBaseEENSt3__117basic_string_viewIcNSG_11char_traitsIcEEEEjNS_5IfdIdEEPNS0_14TiffHeaderBaseE:
 2046|  45.4k|                                   size_t size, uint32_t root, FindDecoderFct findDecoderFct, TiffHeaderBase* pHeader) {
 2047|       |  // Create standard TIFF header if necessary
 2048|  45.4k|  std::unique_ptr<TiffHeaderBase> ph;
 2049|  45.4k|  if (!pHeader) {
  ------------------
  |  Branch (2049:7): [True: 42.1k, False: 3.35k]
  ------------------
 2050|  42.1k|    ph = std::make_unique<TiffHeader>();
 2051|  42.1k|    pHeader = ph.get();
 2052|  42.1k|  }
 2053|       |
 2054|  45.4k|  if (auto rootDir = parse(pData, size, root, pHeader)) {
  ------------------
  |  Branch (2054:12): [True: 45.3k, False: 155]
  ------------------
 2055|  45.3k|    auto decoder = TiffDecoder(exifData, iptcData, xmpData, rootDir.get(), findDecoderFct);
 2056|  45.3k|    rootDir->accept(decoder);
 2057|  45.3k|  }
 2058|  45.4k|  return pHeader->byteOrder();
 2059|       |
 2060|  45.4k|}  // TiffParserWorker::decode
_ZN5Exiv28Internal16TiffParserWorker6encodeERNS_7BasicIoEPKhmRKNS_8ExifDataERKNS_8IptcDataERKNS_7XmpDataEjPFMNS0_11TiffEncoderEFvPNS0_13TiffEntryBaseEPKNS_9ExifdatumEENSt3__117basic_string_viewIcNSN_11char_traitsIcEEEEjNS_5IfdIdEEPNS0_14TiffHeaderBaseEPNS0_12OffsetWriterE:
 2065|  8.81k|                                     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.81k|  WriteMethod writeMethod = wmIntrusive;
 2074|  8.81k|  auto parsedTree = parse(pData, size, root, pHeader);
 2075|  8.81k|  auto primaryGroups = findPrimaryGroups(parsedTree);
 2076|  8.81k|  if (parsedTree) {
  ------------------
  |  Branch (2076:7): [True: 678, False: 8.13k]
  ------------------
 2077|       |    // Attempt to update existing TIFF components based on metadata entries
 2078|    678|    TiffEncoder encoder(exifData, iptcData, xmpData, parsedTree.get(), false, primaryGroups, pHeader, findEncoderFct);
 2079|    678|    parsedTree->accept(encoder);
 2080|    678|    if (!encoder.dirty())
  ------------------
  |  Branch (2080:9): [True: 40, False: 638]
  ------------------
 2081|     40|      writeMethod = wmNonIntrusive;
 2082|    678|  }
 2083|  8.81k|  if (writeMethod == wmIntrusive) {
  ------------------
  |  Branch (2083:7): [True: 8.77k, False: 40]
  ------------------
 2084|  8.77k|    auto createdTree = TiffCreator::create(root, IfdId::ifdIdNotSet);
 2085|  8.77k|    if (parsedTree) {
  ------------------
  |  Branch (2085:9): [True: 638, False: 8.13k]
  ------------------
 2086|       |      // Copy image tags from the original image to the composite
 2087|    638|      TiffCopier copier(createdTree.get(), root, pHeader, primaryGroups);
 2088|    638|      parsedTree->accept(copier);
 2089|    638|    }
 2090|       |    // Add entries from metadata to composite
 2091|  8.77k|    TiffEncoder encoder(exifData, iptcData, xmpData, createdTree.get(), !parsedTree, std::move(primaryGroups), pHeader,
 2092|  8.77k|                        findEncoderFct);
 2093|  8.77k|    encoder.add(createdTree.get(), std::move(parsedTree), root);
 2094|       |    // Write binary representation from the composite tree
 2095|  8.77k|    DataBuf header = pHeader->write();
 2096|  8.77k|    auto tempIo = MemIo();
 2097|  8.77k|    IoWrapper ioWrapper(tempIo, header.c_data(), header.size(), pOffsetWriter);
 2098|  8.77k|    auto imageIdx(std::string::npos);
 2099|  8.77k|    createdTree->write(ioWrapper, pHeader->byteOrder(), header.size(), std::string::npos, std::string::npos, imageIdx);
 2100|  8.77k|    if (pOffsetWriter)
  ------------------
  |  Branch (2100:9): [True: 0, False: 8.77k]
  ------------------
 2101|      0|      pOffsetWriter->writeOffsets(tempIo);
 2102|  8.77k|    io.transfer(tempIo);  // may throw
 2103|  8.77k|#ifndef SUPPRESS_WARNINGS
 2104|  8.77k|    EXV_INFO << "Write strategy: Intrusive\n";
  ------------------
  |  |  134|  8.77k|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 8.77k]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|  8.77k|  LogMsg(LogMsg::info).os()
  ------------------
 2105|  8.77k|#endif
 2106|  8.77k|  }
 2107|     40|#ifndef SUPPRESS_WARNINGS
 2108|     40|  else {
 2109|     40|    EXV_INFO << "Write strategy: Non-intrusive\n";
  ------------------
  |  |  134|     40|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 40]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|     40|  LogMsg(LogMsg::info).os()
  ------------------
 2110|     40|  }
 2111|  8.81k|#endif
 2112|  8.81k|  return writeMethod;
 2113|  8.81k|}  // TiffParserWorker::encode
_ZN5Exiv28Internal16TiffParserWorker5parseEPKhmjPNS0_14TiffHeaderBaseE:
 2116|  54.2k|                                                 TiffHeaderBase* pHeader) {
 2117|  54.2k|  TiffComponent::UniquePtr rootDir;
 2118|  54.2k|  if (!pData || size == 0)
  ------------------
  |  Branch (2118:7): [True: 8.18k, False: 46.1k]
  |  Branch (2118:17): [True: 0, False: 46.1k]
  ------------------
 2119|  8.18k|    return rootDir;
 2120|  46.1k|  if (!pHeader->read(pData, size) || pHeader->offset() >= size) {
  ------------------
  |  Branch (2120:7): [True: 54, False: 46.0k]
  |  Branch (2120:38): [True: 56, False: 45.9k]
  ------------------
 2121|    110|    throw Error(ErrorCode::kerNotAnImage, "TIFF");
 2122|    110|  }
 2123|  45.9k|  rootDir = TiffCreator::create(root, IfdId::ifdIdNotSet);
 2124|  45.9k|  if (rootDir) {
  ------------------
  |  Branch (2124:7): [True: 45.9k, False: 0]
  ------------------
 2125|  45.9k|    rootDir->setStart(pData + pHeader->offset());
 2126|  45.9k|    auto state = TiffRwState{pHeader->byteOrder(), 0};
 2127|  45.9k|    auto reader = TiffReader{pData, size, rootDir.get(), state};
 2128|  45.9k|    rootDir->accept(reader);
 2129|  45.9k|    reader.postProcess();
 2130|  45.9k|  }
 2131|  45.9k|  return rootDir;
 2132|       |
 2133|  46.1k|}  // TiffParserWorker::parse
_ZN5Exiv28Internal16TiffParserWorker17findPrimaryGroupsERKNSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEE:
 2135|  8.81k|PrimaryGroups TiffParserWorker::findPrimaryGroups(const TiffComponent::UniquePtr& pSourceDir) {
 2136|  8.81k|  PrimaryGroups ret;
 2137|  8.81k|  if (!pSourceDir)
  ------------------
  |  Branch (2137:7): [True: 8.13k, False: 678]
  ------------------
 2138|  8.13k|    return ret;
 2139|       |
 2140|    678|  static constexpr auto imageGroups = std::array{
 2141|    678|      IfdId::ifd0Id,      IfdId::ifd1Id,      IfdId::ifd2Id,      IfdId::ifd3Id,      IfdId::subImage1Id,
 2142|    678|      IfdId::subImage2Id, IfdId::subImage3Id, IfdId::subImage4Id, IfdId::subImage5Id, IfdId::subImage6Id,
 2143|    678|      IfdId::subImage7Id, IfdId::subImage8Id, IfdId::subImage9Id,
 2144|    678|  };
 2145|       |
 2146|  8.81k|  for (auto imageGroup : imageGroups) {
  ------------------
  |  Branch (2146:24): [True: 8.81k, False: 678]
  ------------------
 2147|  8.81k|    TiffFinder finder(0x00fe, imageGroup);
 2148|  8.81k|    pSourceDir->accept(finder);
 2149|  8.81k|    auto te = dynamic_cast<const TiffEntryBase*>(finder.result());
 2150|  8.81k|    if (!te)
  ------------------
  |  Branch (2150:9): [True: 8.74k, False: 68]
  ------------------
 2151|  8.74k|      continue;
 2152|     68|    const Value* pV = te->pValue();
 2153|     68|    if (pV && pV->typeId() == unsignedLong && pV->count() == 1 && (pV->toInt64() & 1) == 0) {
  ------------------
  |  Branch (2153:9): [True: 49, False: 19]
  |  Branch (2153:15): [True: 32, False: 17]
  |  Branch (2153:47): [True: 22, False: 10]
  |  Branch (2153:67): [True: 12, False: 10]
  ------------------
 2154|     12|      ret.push_back(te->group());
 2155|     12|    }
 2156|     68|  }
 2157|    678|  return ret;
 2158|  8.81k|}  // TiffParserWorker::findPrimaryGroups
_ZN5Exiv28Internal14TiffHeaderBaseC2EtjNS_9ByteOrderEj:
 2161|   278k|    tag_(tag), size_(size), byteOrder_(byteOrder), offset_(offset) {
 2162|   278k|}
_ZN5Exiv28Internal14TiffHeaderBase4readEPKhm:
 2164|   224k|bool TiffHeaderBase::read(const byte* pData, size_t size) {
 2165|   224k|  if (!pData || size < 8)
  ------------------
  |  Branch (2165:7): [True: 0, False: 224k]
  |  Branch (2165:17): [True: 14, False: 223k]
  ------------------
 2166|     14|    return false;
 2167|       |
 2168|   223k|  if (pData[0] == 'I' && pData[0] == pData[1]) {
  ------------------
  |  Branch (2168:7): [True: 7.58k, False: 216k]
  |  Branch (2168:26): [True: 7.45k, False: 133]
  ------------------
 2169|  7.45k|    byteOrder_ = littleEndian;
 2170|   216k|  } else if (pData[0] == 'M' && pData[0] == pData[1]) {
  ------------------
  |  Branch (2170:14): [True: 105k, False: 110k]
  |  Branch (2170:33): [True: 105k, False: 286]
  ------------------
 2171|   105k|    byteOrder_ = bigEndian;
 2172|   110k|  } else {
 2173|   110k|    return false;
 2174|   110k|  }
 2175|   113k|  uint16_t t = getUShort(pData + 2, byteOrder_);
 2176|   113k|  if (t != 444 && t != 17234 && tag_ != t)
  ------------------
  |  Branch (2176:7): [True: 112k, False: 54]
  |  Branch (2176:19): [True: 112k, False: 128]
  |  Branch (2176:33): [True: 13.4k, False: 99.4k]
  ------------------
 2177|  13.4k|    return false;  // 444 is for the JPEG-XR; 17234 is for DCP
 2178|  99.6k|  tag_ = t;
 2179|  99.6k|  offset_ = getULong(pData + 4, byteOrder_);
 2180|       |
 2181|  99.6k|  return true;
 2182|   113k|}
_ZNK5Exiv28Internal14TiffHeaderBase5writeEv:
 2184|  8.82k|DataBuf TiffHeaderBase::write() const {
 2185|  8.82k|  DataBuf buf(8);
 2186|  8.82k|  switch (byteOrder_) {
  ------------------
  |  Branch (2186:11): [True: 8.82k, False: 0]
  ------------------
 2187|  8.19k|    case littleEndian:
  ------------------
  |  Branch (2187:5): [True: 8.19k, False: 630]
  ------------------
 2188|  8.19k|      buf.write_uint8(0, 'I');
 2189|  8.19k|      break;
 2190|    630|    case bigEndian:
  ------------------
  |  Branch (2190:5): [True: 630, False: 8.19k]
  ------------------
 2191|    630|      buf.write_uint8(0, 'M');
 2192|    630|      break;
 2193|      0|    case invalidByteOrder:
  ------------------
  |  Branch (2193:5): [True: 0, False: 8.82k]
  ------------------
 2194|      0|      break;
 2195|  8.82k|  }
 2196|  8.82k|  buf.write_uint8(1, buf.read_uint8(0));
 2197|  8.82k|  buf.write_uint16(2, tag_, byteOrder_);
 2198|  8.82k|  buf.write_uint32(4, 0x00000008, byteOrder_);
 2199|  8.82k|  return buf;
 2200|  8.82k|}
_ZNK5Exiv28Internal14TiffHeaderBase9byteOrderEv:
 2218|   152k|ByteOrder TiffHeaderBase::byteOrder() const {
 2219|   152k|  return byteOrder_;
 2220|   152k|}
_ZN5Exiv28Internal14TiffHeaderBase12setByteOrderENS_9ByteOrderE:
 2222|  20.5k|void TiffHeaderBase::setByteOrder(ByteOrder byteOrder) {
 2223|  20.5k|  byteOrder_ = byteOrder;
 2224|  20.5k|}
_ZNK5Exiv28Internal14TiffHeaderBase6offsetEv:
 2226|  94.0k|uint32_t TiffHeaderBase::offset() const {
 2227|  94.0k|  return offset_;
 2228|  94.0k|}
_ZN5Exiv28Internal14TiffHeaderBase9setOffsetEj:
 2230|  17.6k|void TiffHeaderBase::setOffset(uint32_t offset) {
 2231|  17.6k|  offset_ = offset;
 2232|  17.6k|}
_ZNK5Exiv28Internal14TiffHeaderBase3tagEv:
 2238|  22.6k|uint16_t TiffHeaderBase::tag() const {
 2239|  22.6k|  return tag_;
 2240|  22.6k|}
_ZN5Exiv28Internal14isTiffImageTagEtNS_5IfdIdE:
 2324|   157k|bool isTiffImageTag(uint16_t tag, IfdId group) {
 2325|   157k|  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|   157k|  return result;
 2335|   157k|}
_ZN5Exiv28Internal10TiffHeaderC2ENS_9ByteOrderEjb:
 2338|   205k|    TiffHeaderBase(42, 8, byteOrder, offset), hasImageTags_(hasImageTags) {
 2339|   205k|}
_ZNK5Exiv28Internal10TiffHeader10isImageTagEtNS_5IfdIdERKNSt3__16vectorIS2_NS3_9allocatorIS2_EEEE:
 2341|   263k|bool TiffHeader::isImageTag(uint16_t tag, IfdId group, const PrimaryGroups& pPrimaryGroups) const {
 2342|   263k|  if (!hasImageTags_) {
  ------------------
  |  Branch (2342:7): [True: 263k, False: 0]
  ------------------
 2343|       |#ifdef EXIV2_DEBUG_MESSAGES
 2344|       |    std::cerr << "No image tags in this image\n";
 2345|       |#endif
 2346|   263k|    return false;
 2347|   263k|  }
 2348|       |#ifdef EXIV2_DEBUG_MESSAGES
 2349|       |  ExifKey key(tag, groupName(group));
 2350|       |#endif
 2351|       |  // If there are primary groups and none matches group, we're done
 2352|      0|  if (!pPrimaryGroups.empty() &&
  ------------------
  |  Branch (2352:7): [True: 0, False: 0]
  |  Branch (2352:7): [True: 0, False: 0]
  ------------------
 2353|      0|      std::find(pPrimaryGroups.begin(), pPrimaryGroups.end(), group) == pPrimaryGroups.end()) {
  ------------------
  |  Branch (2353:7): [True: 0, False: 0]
  ------------------
 2354|       |#ifdef EXIV2_DEBUG_MESSAGES
 2355|       |    std::cerr << "Not an image tag: " << key << " (1)\n";
 2356|       |#endif
 2357|      0|    return false;
 2358|      0|  }
 2359|       |  // All tags of marked primary groups other than IFD0 are considered
 2360|       |  // image tags. That should take care of NEFs until we know better.
 2361|      0|  if (!pPrimaryGroups.empty() && group != IfdId::ifd0Id) {
  ------------------
  |  Branch (2361:7): [True: 0, False: 0]
  |  Branch (2361:34): [True: 0, False: 0]
  ------------------
 2362|       |#ifdef EXIV2_DEBUG_MESSAGES
 2363|       |    ExifKey key(tag, groupName(group));
 2364|       |    std::cerr << "Image tag: " << key << " (2)\n";
 2365|       |#endif
 2366|      0|    return true;
 2367|      0|  }
 2368|       |  // Finally, if tag, group is one of the TIFF image tags -> bingo!
 2369|      0|  return isTiffImageTag(tag, group);
 2370|      0|}  // TiffHeader::isImageTag
tiffimage_int.cpp:_ZN5Exiv28InternalL20isTiffImageTagLookupEtNS_5IfdIdE:
 2246|   157k|static bool isTiffImageTagLookup(uint16_t tag, IfdId group) {
 2247|   157k|  if (group != IfdId::ifd0Id) {
  ------------------
  |  Branch (2247:7): [True: 0, False: 157k]
  ------------------
 2248|      0|    return false;
 2249|      0|  }
 2250|       |  //! List of TIFF image tags
 2251|   157k|  switch (tag) {
 2252|      0|    case 0x00fe:  // Exif.Image.NewSubfileType
  ------------------
  |  Branch (2252:5): [True: 0, False: 157k]
  ------------------
 2253|      0|    case 0x00ff:  // Exif.Image.SubfileType
  ------------------
  |  Branch (2253:5): [True: 0, False: 157k]
  ------------------
 2254|  4.70k|    case 0x0100:  // Exif.Image.ImageWidth
  ------------------
  |  Branch (2254:5): [True: 4.70k, False: 152k]
  ------------------
 2255|  56.7k|    case 0x0101:  // Exif.Image.ImageLength
  ------------------
  |  Branch (2255:5): [True: 52.0k, False: 105k]
  ------------------
 2256|  59.6k|    case 0x0102:  // Exif.Image.BitsPerSample
  ------------------
  |  Branch (2256:5): [True: 2.88k, False: 154k]
  ------------------
 2257|  59.7k|    case 0x0103:  // Exif.Image.Compression
  ------------------
  |  Branch (2257:5): [True: 103, False: 157k]
  ------------------
 2258|  59.8k|    case 0x0106:  // Exif.Image.PhotometricInterpretation
  ------------------
  |  Branch (2258:5): [True: 98, False: 157k]
  ------------------
 2259|  59.8k|    case 0x010a:  // Exif.Image.FillOrder
  ------------------
  |  Branch (2259:5): [True: 39, False: 157k]
  ------------------
 2260|  63.0k|    case 0x0111:  // Exif.Image.StripOffsets
  ------------------
  |  Branch (2260:5): [True: 3.12k, False: 154k]
  ------------------
 2261|  63.1k|    case 0x0115:  // Exif.Image.SamplesPerPixel
  ------------------
  |  Branch (2261:5): [True: 128, False: 157k]
  ------------------
 2262|  63.1k|    case 0x0116:  // Exif.Image.RowsPerStrip
  ------------------
  |  Branch (2262:5): [True: 19, False: 157k]
  ------------------
 2263|  65.8k|    case 0x0117:  // Exif.Image.StripByteCounts
  ------------------
  |  Branch (2263:5): [True: 2.70k, False: 154k]
  ------------------
 2264|  66.6k|    case 0x011a:  // Exif.Image.XResolution
  ------------------
  |  Branch (2264:5): [True: 776, False: 156k]
  ------------------
 2265|  66.7k|    case 0x011b:  // Exif.Image.YResolution
  ------------------
  |  Branch (2265:5): [True: 94, False: 157k]
  ------------------
 2266|  66.8k|    case 0x011c:  // Exif.Image.PlanarConfiguration
  ------------------
  |  Branch (2266:5): [True: 88, False: 157k]
  ------------------
 2267|  66.9k|    case 0x0122:  // Exif.Image.GrayResponseUnit
  ------------------
  |  Branch (2267:5): [True: 108, False: 157k]
  ------------------
 2268|  67.1k|    case 0x0123:  // Exif.Image.GrayResponseCurve
  ------------------
  |  Branch (2268:5): [True: 185, False: 157k]
  ------------------
 2269|  67.1k|    case 0x0124:  // Exif.Image.T4Options
  ------------------
  |  Branch (2269:5): [True: 42, False: 157k]
  ------------------
 2270|  67.2k|    case 0x0125:  // Exif.Image.T6Options
  ------------------
  |  Branch (2270:5): [True: 75, False: 157k]
  ------------------
 2271|  67.3k|    case 0x0128:  // Exif.Image.ResolutionUnit
  ------------------
  |  Branch (2271:5): [True: 86, False: 157k]
  ------------------
 2272|  67.4k|    case 0x0129:  // Exif.Image.PageNumber
  ------------------
  |  Branch (2272:5): [True: 70, False: 157k]
  ------------------
 2273|  67.5k|    case 0x012d:  // Exif.Image.TransferFunction
  ------------------
  |  Branch (2273:5): [True: 113, False: 157k]
  ------------------
 2274|  67.5k|    case 0x013d:  // Exif.Image.Predictor
  ------------------
  |  Branch (2274:5): [True: 75, False: 157k]
  ------------------
 2275|  67.6k|    case 0x013e:  // Exif.Image.WhitePoint
  ------------------
  |  Branch (2275:5): [True: 38, False: 157k]
  ------------------
 2276|  67.7k|    case 0x013f:  // Exif.Image.PrimaryChromaticities
  ------------------
  |  Branch (2276:5): [True: 154, False: 157k]
  ------------------
 2277|  67.9k|    case 0x0140:  // Exif.Image.ColorMap
  ------------------
  |  Branch (2277:5): [True: 155, False: 157k]
  ------------------
 2278|  68.1k|    case 0x0141:  // Exif.Image.HalftoneHints
  ------------------
  |  Branch (2278:5): [True: 193, False: 157k]
  ------------------
 2279|  68.2k|    case 0x0142:  // Exif.Image.TileWidth
  ------------------
  |  Branch (2279:5): [True: 74, False: 157k]
  ------------------
 2280|  68.2k|    case 0x0143:  // Exif.Image.TileLength
  ------------------
  |  Branch (2280:5): [True: 47, False: 157k]
  ------------------
 2281|  68.3k|    case 0x0144:  // Exif.Image.TileOffsets
  ------------------
  |  Branch (2281:5): [True: 149, False: 157k]
  ------------------
 2282|  68.5k|    case 0x0145:  // Exif.Image.TileByteCounts
  ------------------
  |  Branch (2282:5): [True: 179, False: 157k]
  ------------------
 2283|  68.6k|    case 0x014c:  // Exif.Image.InkSet
  ------------------
  |  Branch (2283:5): [True: 104, False: 157k]
  ------------------
 2284|  68.7k|    case 0x014d:  // Exif.Image.InkNames
  ------------------
  |  Branch (2284:5): [True: 37, False: 157k]
  ------------------
 2285|  68.7k|    case 0x014e:  // Exif.Image.NumberOfInks
  ------------------
  |  Branch (2285:5): [True: 70, False: 157k]
  ------------------
 2286|  68.8k|    case 0x0150:  // Exif.Image.DotRange
  ------------------
  |  Branch (2286:5): [True: 42, False: 157k]
  ------------------
 2287|  68.9k|    case 0x0151:  // Exif.Image.TargetPrinter
  ------------------
  |  Branch (2287:5): [True: 102, False: 157k]
  ------------------
 2288|  68.9k|    case 0x0152:  // Exif.Image.ExtraSamples
  ------------------
  |  Branch (2288:5): [True: 42, False: 157k]
  ------------------
 2289|  69.0k|    case 0x0153:  // Exif.Image.SampleFormat
  ------------------
  |  Branch (2289:5): [True: 35, False: 157k]
  ------------------
 2290|  69.1k|    case 0x0154:  // Exif.Image.SMinSampleValue
  ------------------
  |  Branch (2290:5): [True: 113, False: 157k]
  ------------------
 2291|  69.1k|    case 0x0155:  // Exif.Image.SMaxSampleValue
  ------------------
  |  Branch (2291:5): [True: 14, False: 157k]
  ------------------
 2292|  69.1k|    case 0x0156:  // Exif.Image.TransferRange
  ------------------
  |  Branch (2292:5): [True: 39, False: 157k]
  ------------------
 2293|  69.1k|    case 0x0157:  // Exif.Image.ClipPath
  ------------------
  |  Branch (2293:5): [True: 19, False: 157k]
  ------------------
 2294|  69.3k|    case 0x0158:  // Exif.Image.XClipPathUnits
  ------------------
  |  Branch (2294:5): [True: 105, False: 157k]
  ------------------
 2295|  69.3k|    case 0x0159:  // Exif.Image.YClipPathUnits
  ------------------
  |  Branch (2295:5): [True: 70, False: 157k]
  ------------------
 2296|  69.3k|    case 0x015a:  // Exif.Image.Indexed
  ------------------
  |  Branch (2296:5): [True: 27, False: 157k]
  ------------------
 2297|  69.5k|    case 0x015b:  // Exif.Image.JPEGTables
  ------------------
  |  Branch (2297:5): [True: 114, False: 157k]
  ------------------
 2298|  71.1k|    case 0x0200:  // Exif.Image.JPEGProc
  ------------------
  |  Branch (2298:5): [True: 1.64k, False: 155k]
  ------------------
 2299|  75.8k|    case 0x0201:  // Exif.Image.JPEGInterchangeFormat
  ------------------
  |  Branch (2299:5): [True: 4.66k, False: 152k]
  ------------------
 2300|  82.4k|    case 0x0202:  // Exif.Image.JPEGInterchangeFormatLength
  ------------------
  |  Branch (2300:5): [True: 6.60k, False: 150k]
  ------------------
 2301|  82.5k|    case 0x0203:  // Exif.Image.JPEGRestartInterval
  ------------------
  |  Branch (2301:5): [True: 138, False: 157k]
  ------------------
 2302|  82.6k|    case 0x0205:  // Exif.Image.JPEGLosslessPredictors
  ------------------
  |  Branch (2302:5): [True: 70, False: 157k]
  ------------------
 2303|  82.7k|    case 0x0206:  // Exif.Image.JPEGPointTransforms
  ------------------
  |  Branch (2303:5): [True: 80, False: 157k]
  ------------------
 2304|  82.7k|    case 0x0207:  // Exif.Image.JPEGQTables
  ------------------
  |  Branch (2304:5): [True: 76, False: 157k]
  ------------------
 2305|  82.9k|    case 0x0208:  // Exif.Image.JPEGDCTables
  ------------------
  |  Branch (2305:5): [True: 166, False: 157k]
  ------------------
 2306|  83.0k|    case 0x0209:  // Exif.Image.JPEGACTables
  ------------------
  |  Branch (2306:5): [True: 50, False: 157k]
  ------------------
 2307|  83.1k|    case 0x0211:  // Exif.Image.YCbCrCoefficients
  ------------------
  |  Branch (2307:5): [True: 121, False: 157k]
  ------------------
 2308|  83.2k|    case 0x0212:  // Exif.Image.YCbCrSubSampling
  ------------------
  |  Branch (2308:5): [True: 106, False: 157k]
  ------------------
 2309|  83.3k|    case 0x0213:  // Exif.Image.YCbCrPositioning
  ------------------
  |  Branch (2309:5): [True: 106, False: 157k]
  ------------------
 2310|  83.4k|    case 0x0214:  // Exif.Image.ReferenceBlackWhite
  ------------------
  |  Branch (2310:5): [True: 72, False: 157k]
  ------------------
 2311|  83.4k|    case 0x828d:  // Exif.Image.CFARepeatPatternDim
  ------------------
  |  Branch (2311:5): [True: 19, False: 157k]
  ------------------
 2312|  83.4k|    case 0x828e:  // Exif.Image.CFAPattern
  ------------------
  |  Branch (2312:5): [True: 26, False: 157k]
  ------------------
 2313|       |    // case 0x8773:  // Exif.Image.InterColorProfile
 2314|  83.4k|    case 0x8824:  // Exif.Image.SpectralSensitivity
  ------------------
  |  Branch (2314:5): [True: 10, False: 157k]
  ------------------
 2315|  83.4k|    case 0x8828:  // Exif.Image.OECF
  ------------------
  |  Branch (2315:5): [True: 18, False: 157k]
  ------------------
 2316|  83.5k|    case 0x9102:  // Exif.Image.CompressedBitsPerPixel
  ------------------
  |  Branch (2316:5): [True: 49, False: 157k]
  ------------------
 2317|  83.5k|    case 0x9217:  // Exif.Image.SensingMethod
  ------------------
  |  Branch (2317:5): [True: 70, False: 157k]
  ------------------
 2318|  83.5k|      return true;
 2319|  73.8k|    default:
  ------------------
  |  Branch (2319:5): [True: 73.8k, False: 83.5k]
  ------------------
 2320|  73.8k|      return false;
 2321|   157k|  }
 2322|   157k|}

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

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

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

_ZN5Exiv28TypeInfo8typeSizeENS_6TypeIdE:
   86|  47.1M|size_t TypeInfo::typeSize(TypeId typeId) {
   87|  47.1M|  if (auto tit = Exiv2::find(typeInfoTable, typeId))
  ------------------
  |  Branch (87:12): [True: 41.3M, False: 5.84M]
  ------------------
   88|  41.3M|    return tit->size_;
   89|  5.84M|  return 0;
   90|  47.1M|}
_ZN5Exiv27DataBufC2Em:
   92|  1.59M|DataBuf::DataBuf(size_t size) : pData_(size) {
   93|  1.59M|}
_ZN5Exiv27DataBufC2EPKhm:
   95|  41.3k|DataBuf::DataBuf(const byte* pData, size_t size) : pData_(pData, pData + size) {
   96|  41.3k|}
_ZN5Exiv27DataBuf5allocEm:
   98|  48.9k|void DataBuf::alloc(size_t size) {
   99|  48.9k|  pData_.resize(size);
  100|  48.9k|}
_ZN5Exiv27DataBuf6resizeEm:
  102|  80.1k|void DataBuf::resize(size_t size) {
  103|  80.1k|  pData_.resize(size);
  104|  80.1k|}
_ZN5Exiv27DataBuf5resetEv:
  106|  31.8k|void DataBuf::reset() {
  107|  31.8k|  pData_.clear();
  108|  31.8k|}
_ZNK5Exiv27DataBuf10read_uint8Em:
  110|  1.29M|uint8_t Exiv2::DataBuf::read_uint8(size_t offset) const {
  111|  1.29M|  if (offset >= pData_.size()) {
  ------------------
  |  Branch (111:7): [True: 0, False: 1.29M]
  ------------------
  112|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint8");
  113|      0|  }
  114|  1.29M|  return pData_[offset];
  115|  1.29M|}
_ZN5Exiv27DataBuf11write_uint8Emh:
  117|  1.64M|void Exiv2::DataBuf::write_uint8(size_t offset, uint8_t x) {
  118|  1.64M|  if (offset >= pData_.size()) {
  ------------------
  |  Branch (118:7): [True: 0, False: 1.64M]
  ------------------
  119|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint8");
  120|      0|  }
  121|  1.64M|  pData_[offset] = x;
  122|  1.64M|}
_ZNK5Exiv27DataBuf11read_uint16EmNS_9ByteOrderE:
  124|   525k|uint16_t Exiv2::DataBuf::read_uint16(size_t offset, ByteOrder byteOrder) const {
  125|   525k|  if (pData_.size() < 2 || offset > (pData_.size() - 2)) {
  ------------------
  |  Branch (125:7): [True: 0, False: 525k]
  |  Branch (125:28): [True: 2, False: 525k]
  ------------------
  126|      2|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint16");
  127|      2|  }
  128|   525k|  return getUShort(&pData_[offset], byteOrder);
  129|   525k|}
_ZN5Exiv27DataBuf12write_uint16EmtNS_9ByteOrderE:
  131|  8.82k|void Exiv2::DataBuf::write_uint16(size_t offset, uint16_t x, ByteOrder byteOrder) {
  132|  8.82k|  if (pData_.size() < 2 || offset > (pData_.size() - 2)) {
  ------------------
  |  Branch (132:7): [True: 0, False: 8.82k]
  |  Branch (132:28): [True: 0, False: 8.82k]
  ------------------
  133|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint16");
  134|      0|  }
  135|  8.82k|  us2Data(&pData_[offset], x, byteOrder);
  136|  8.82k|}
_ZNK5Exiv27DataBuf11read_uint32EmNS_9ByteOrderE:
  138|   398k|uint32_t Exiv2::DataBuf::read_uint32(size_t offset, ByteOrder byteOrder) const {
  139|   398k|  if (pData_.size() < 4 || offset > (pData_.size() - 4)) {
  ------------------
  |  Branch (139:7): [True: 0, False: 398k]
  |  Branch (139:28): [True: 3, False: 398k]
  ------------------
  140|      3|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint32");
  141|      3|  }
  142|   398k|  return getULong(&pData_[offset], byteOrder);
  143|   398k|}
_ZN5Exiv27DataBuf12write_uint32EmjNS_9ByteOrderE:
  145|  8.82k|void Exiv2::DataBuf::write_uint32(size_t offset, uint32_t x, ByteOrder byteOrder) {
  146|  8.82k|  if (pData_.size() < 4 || offset > (pData_.size() - 4)) {
  ------------------
  |  Branch (146:7): [True: 0, False: 8.82k]
  |  Branch (146:28): [True: 0, False: 8.82k]
  ------------------
  147|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint32");
  148|      0|  }
  149|  8.82k|  ul2Data(&pData_[offset], x, byteOrder);
  150|  8.82k|}
_ZNK5Exiv27DataBuf11read_uint64EmNS_9ByteOrderE:
  152|  1.96k|uint64_t Exiv2::DataBuf::read_uint64(size_t offset, ByteOrder byteOrder) const {
  153|  1.96k|  if (pData_.size() < 8 || offset > (pData_.size() - 8)) {
  ------------------
  |  Branch (153:7): [True: 0, False: 1.96k]
  |  Branch (153:28): [True: 0, False: 1.96k]
  ------------------
  154|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint64");
  155|      0|  }
  156|  1.96k|  return getULongLong(&pData_[offset], byteOrder);
  157|  1.96k|}
_ZNK5Exiv27DataBuf8cmpBytesEmPKvm:
  166|   306k|int Exiv2::DataBuf::cmpBytes(size_t offset, const void* buf, size_t bufsize) const {
  167|   306k|  if (pData_.size() < bufsize || offset > pData_.size() - bufsize) {
  ------------------
  |  Branch (167:7): [True: 5, False: 306k]
  |  Branch (167:34): [True: 0, False: 306k]
  ------------------
  168|      5|    throw std::out_of_range("Overflow in Exiv2::DataBuf::cmpBytes");
  169|      5|  }
  170|   306k|  return memcmp(&pData_[offset], buf, bufsize);
  171|   306k|}
_ZN5Exiv27DataBuf4dataEm:
  173|  6.16M|byte* Exiv2::DataBuf::data(size_t offset) {
  174|  6.16M|  return const_cast<byte*>(c_data(offset));
  175|  6.16M|}
_ZNK5Exiv27DataBuf6c_dataEm:
  177|  7.25M|const byte* Exiv2::DataBuf::c_data(size_t offset) const {
  178|  7.25M|  if (pData_.empty() || offset == pData_.size()) {
  ------------------
  |  Branch (178:7): [True: 17.3k, False: 7.24M]
  |  Branch (178:25): [True: 9.48k, False: 7.23M]
  ------------------
  179|  26.8k|    return nullptr;
  180|  26.8k|  }
  181|  7.23M|  if (offset > pData_.size()) {
  ------------------
  |  Branch (181:7): [True: 0, False: 7.23M]
  ------------------
  182|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::c_data");
  183|      0|  }
  184|  7.23M|  return &pData_[offset];
  185|  7.23M|}
_ZNK5Exiv27DataBuf5c_strEm:
  187|   233k|const char* Exiv2::DataBuf::c_str(size_t offset) const {
  188|   233k|  return reinterpret_cast<const char*>(c_data(offset));
  189|   233k|}
_ZN5Exiv29makeSliceERNS_7DataBufEmm:
  200|  40.7k|Slice<byte*> makeSlice(DataBuf& buf, size_t begin, size_t end) {
  201|  40.7k|  checkDataBufBounds(buf, end);
  202|  40.7k|  return {buf.data(), begin, end};
  203|  40.7k|}
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS0_4pairIiiEE:
  210|  47.2k|std::ostream& operator<<(std::ostream& os, const Rational& r) {
  211|  47.2k|  return os << r.first << "/" << r.second;
  212|  47.2k|}
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS0_4pairIjjEE:
  239|   267k|std::ostream& operator<<(std::ostream& os, const URational& r) {
  240|   267k|  return os << r.first << "/" << r.second;
  241|   267k|}
_ZN5Exiv29getUShortEPKhNS_9ByteOrderE:
  247|  59.9M|uint16_t getUShort(const byte* buf, ByteOrder byteOrder) {
  248|  59.9M|  return getUShort(makeSliceUntil(buf, 2), byteOrder);
  249|  59.9M|}
_ZN5Exiv28getULongEPKhNS_9ByteOrderE:
  251|  46.3M|uint32_t getULong(const byte* buf, ByteOrder byteOrder) {
  252|  46.3M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (252:7): [True: 1.60M, False: 44.7M]
  ------------------
  253|  1.60M|    return buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0];
  254|  1.60M|  }
  255|  44.7M|  return buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3];
  256|  46.3M|}
_ZN5Exiv212getULongLongEPKhNS_9ByteOrderE:
  258|  21.4k|uint64_t getULongLong(const byte* buf, ByteOrder byteOrder) {
  259|  21.4k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (259:7): [True: 1.83k, False: 19.5k]
  ------------------
  260|  1.83k|    return static_cast<uint64_t>(buf[7]) << 56 | static_cast<uint64_t>(buf[6]) << 48 |
  261|  1.83k|           static_cast<uint64_t>(buf[5]) << 40 | static_cast<uint64_t>(buf[4]) << 32 |
  262|  1.83k|           static_cast<uint64_t>(buf[3]) << 24 | static_cast<uint64_t>(buf[2]) << 16 |
  263|  1.83k|           static_cast<uint64_t>(buf[1]) << 8 | static_cast<uint64_t>(buf[0]);
  264|  1.83k|  }
  265|  19.5k|  return static_cast<uint64_t>(buf[0]) << 56 | static_cast<uint64_t>(buf[1]) << 48 |
  266|  19.5k|         static_cast<uint64_t>(buf[2]) << 40 | static_cast<uint64_t>(buf[3]) << 32 |
  267|  19.5k|         static_cast<uint64_t>(buf[4]) << 24 | static_cast<uint64_t>(buf[5]) << 16 |
  268|  19.5k|         static_cast<uint64_t>(buf[6]) << 8 | static_cast<uint64_t>(buf[7]);
  269|  21.4k|}
_ZN5Exiv212getURationalEPKhNS_9ByteOrderE:
  271|   489k|URational getURational(const byte* buf, ByteOrder byteOrder) {
  272|   489k|  uint32_t nominator = getULong(buf, byteOrder);
  273|   489k|  uint32_t denominator = getULong(buf + 4, byteOrder);
  274|   489k|  return {nominator, denominator};
  275|   489k|}
_ZN5Exiv28getShortEPKhNS_9ByteOrderE:
  277|  6.88M|int16_t getShort(const byte* buf, ByteOrder byteOrder) {
  278|  6.88M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (278:7): [True: 322k, False: 6.56M]
  ------------------
  279|   322k|    return buf[1] << 8 | buf[0];
  280|   322k|  }
  281|  6.56M|  return buf[0] << 8 | buf[1];
  282|  6.88M|}
_ZN5Exiv27getLongEPKhNS_9ByteOrderE:
  284|  1.08M|int32_t getLong(const byte* buf, ByteOrder byteOrder) {
  285|  1.08M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (285:7): [True: 55.6k, False: 1.03M]
  ------------------
  286|  55.6k|    return buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0];
  287|  55.6k|  }
  288|  1.03M|  return buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3];
  289|  1.08M|}
_ZN5Exiv211getRationalEPKhNS_9ByteOrderE:
  291|   433k|Rational getRational(const byte* buf, ByteOrder byteOrder) {
  292|   433k|  int32_t nominator = getLong(buf, byteOrder);
  293|   433k|  int32_t denominator = getLong(buf + 4, byteOrder);
  294|   433k|  return {nominator, denominator};
  295|   433k|}
_ZN5Exiv28getFloatEPKhNS_9ByteOrderE:
  297|   546k|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|   546k|#ifdef __cpp_lib_bit_cast
  302|   546k|  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|   546k|}
_ZN5Exiv29getDoubleEPKhNS_9ByteOrderE:
  313|   941k|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|   941k|#ifdef __cpp_lib_bit_cast
  318|   941k|  if (byteOrder == littleEndian)
  ------------------
  |  Branch (318:7): [True: 873, False: 941k]
  ------------------
  319|    873|    return std::bit_cast<double>(static_cast<uint64_t>(buf[7]) << 56 | static_cast<uint64_t>(buf[6]) << 48 |
  320|    873|                                 static_cast<uint64_t>(buf[5]) << 40 | static_cast<uint64_t>(buf[4]) << 32 |
  321|    873|                                 static_cast<uint64_t>(buf[3]) << 24 | static_cast<uint64_t>(buf[2]) << 16 |
  322|    873|                                 static_cast<uint64_t>(buf[1]) << 8 | static_cast<uint64_t>(buf[0]));
  323|   941k|  return std::bit_cast<double>(static_cast<uint64_t>(buf[0]) << 56 | static_cast<uint64_t>(buf[1]) << 48 |
  324|   941k|                               static_cast<uint64_t>(buf[2]) << 40 | static_cast<uint64_t>(buf[3]) << 32 |
  325|   941k|                               static_cast<uint64_t>(buf[4]) << 24 | static_cast<uint64_t>(buf[5]) << 16 |
  326|   941k|                               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|   941k|}
_ZN5Exiv27us2DataEPhtNS_9ByteOrderE:
  348|  4.11M|size_t us2Data(byte* buf, uint16_t s, ByteOrder byteOrder) {
  349|  4.11M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (349:7): [True: 3.97M, False: 138k]
  ------------------
  350|  3.97M|    buf[0] = static_cast<byte>(s & 0x00ffU);
  351|  3.97M|    buf[1] = static_cast<byte>((s & 0xff00U) >> 8);
  352|  3.97M|  } else {
  353|   138k|    buf[0] = static_cast<byte>((s & 0xff00U) >> 8);
  354|   138k|    buf[1] = static_cast<byte>(s & 0x00ffU);
  355|   138k|  }
  356|  4.11M|  return 2;
  357|  4.11M|}
_ZN5Exiv27ul2DataEPhjNS_9ByteOrderE:
  359|  2.72M|size_t ul2Data(byte* buf, uint32_t l, ByteOrder byteOrder) {
  360|  2.72M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (360:7): [True: 2.61M, False: 106k]
  ------------------
  361|  2.61M|    buf[0] = static_cast<byte>(l & 0x000000ffU);
  362|  2.61M|    buf[1] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  363|  2.61M|    buf[2] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  364|  2.61M|    buf[3] = static_cast<byte>((l & 0xff000000U) >> 24);
  365|  2.61M|  } else {
  366|   106k|    buf[0] = static_cast<byte>((l & 0xff000000U) >> 24);
  367|   106k|    buf[1] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  368|   106k|    buf[2] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  369|   106k|    buf[3] = static_cast<byte>(l & 0x000000ffU);
  370|   106k|  }
  371|  2.72M|  return 4;
  372|  2.72M|}
_ZN5Exiv27ur2DataEPhNSt3__14pairIjjEENS_9ByteOrderE:
  389|   316k|size_t ur2Data(byte* buf, URational l, ByteOrder byteOrder) {
  390|   316k|  size_t o = ul2Data(buf, l.first, byteOrder);
  391|   316k|  o += ul2Data(buf + o, l.second, byteOrder);
  392|   316k|  return o;
  393|   316k|}
_ZN5Exiv26s2DataEPhsNS_9ByteOrderE:
  395|   196k|size_t s2Data(byte* buf, int16_t s, ByteOrder byteOrder) {
  396|   196k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (396:7): [True: 195k, False: 1.41k]
  ------------------
  397|   195k|    buf[0] = static_cast<byte>(s & 0x00ffU);
  398|   195k|    buf[1] = static_cast<byte>((s & 0xff00U) >> 8);
  399|   195k|  } else {
  400|  1.41k|    buf[0] = static_cast<byte>((s & 0xff00U) >> 8);
  401|  1.41k|    buf[1] = static_cast<byte>(s & 0x00ffU);
  402|  1.41k|  }
  403|   196k|  return 2;
  404|   196k|}
_ZN5Exiv26l2DataEPhiNS_9ByteOrderE:
  406|   165k|size_t l2Data(byte* buf, int32_t l, ByteOrder byteOrder) {
  407|   165k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (407:7): [True: 158k, False: 7.64k]
  ------------------
  408|   158k|    buf[0] = static_cast<byte>(l & 0x000000ffU);
  409|   158k|    buf[1] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  410|   158k|    buf[2] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  411|   158k|    buf[3] = static_cast<byte>((l & 0xff000000U) >> 24);
  412|   158k|  } else {
  413|  7.64k|    buf[0] = static_cast<byte>((l & 0xff000000U) >> 24);
  414|  7.64k|    buf[1] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  415|  7.64k|    buf[2] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  416|  7.64k|    buf[3] = static_cast<byte>(l & 0x000000ffU);
  417|  7.64k|  }
  418|   165k|  return 4;
  419|   165k|}
_ZN5Exiv26r2DataEPhNSt3__14pairIiiEENS_9ByteOrderE:
  421|  64.0k|size_t r2Data(byte* buf, Rational l, ByteOrder byteOrder) {
  422|  64.0k|  size_t o = l2Data(buf, l.first, byteOrder);
  423|  64.0k|  o += l2Data(buf + o, l.second, byteOrder);
  424|  64.0k|  return o;
  425|  64.0k|}
_ZN5Exiv26f2DataEPhfNS_9ByteOrderE:
  427|  97.5k|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|  97.5k|#ifdef __cpp_lib_bit_cast
  432|  97.5k|  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|  97.5k|}
_ZN5Exiv26d2DataEPhdNS_9ByteOrderE:
  443|  44.3k|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|  44.3k|  union {
  448|  44.3k|    uint64_t ull_;
  449|  44.3k|    double d_;
  450|  44.3k|  } u;
  451|  44.3k|  u.d_ = d;
  452|  44.3k|  uint64_t m = 0xff;
  453|  44.3k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (453:7): [True: 43.4k, False: 866]
  ------------------
  454|  43.4k|    buf[0] = static_cast<byte>(u.ull_ & m);
  455|  43.4k|    buf[1] = static_cast<byte>((u.ull_ & (m << 8)) >> 8);
  456|  43.4k|    buf[2] = static_cast<byte>((u.ull_ & (m << 16)) >> 16);
  457|  43.4k|    buf[3] = static_cast<byte>((u.ull_ & (m << 24)) >> 24);
  458|  43.4k|    buf[4] = static_cast<byte>((u.ull_ & (m << 32)) >> 32);
  459|  43.4k|    buf[5] = static_cast<byte>((u.ull_ & (m << 40)) >> 40);
  460|  43.4k|    buf[6] = static_cast<byte>((u.ull_ & (m << 48)) >> 48);
  461|  43.4k|    buf[7] = static_cast<byte>((u.ull_ & (m << 56)) >> 56);
  462|  43.4k|  } else {
  463|    866|    buf[0] = static_cast<byte>((u.ull_ & (m << 56)) >> 56);
  464|    866|    buf[1] = static_cast<byte>((u.ull_ & (m << 48)) >> 48);
  465|    866|    buf[2] = static_cast<byte>((u.ull_ & (m << 40)) >> 40);
  466|    866|    buf[3] = static_cast<byte>((u.ull_ & (m << 32)) >> 32);
  467|    866|    buf[4] = static_cast<byte>((u.ull_ & (m << 24)) >> 24);
  468|    866|    buf[5] = static_cast<byte>((u.ull_ & (m << 16)) >> 16);
  469|    866|    buf[6] = static_cast<byte>((u.ull_ & (m << 8)) >> 8);
  470|    866|    buf[7] = static_cast<byte>(u.ull_ & m);
  471|    866|  }
  472|  44.3k|  return 8;
  473|  44.3k|}
_ZN5Exiv25isHexERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEmS8_:
  502|  35.3k|bool isHex(const std::string& str, size_t size, const std::string& prefix) {
  503|  35.3k|  if (!str.starts_with(prefix))
  ------------------
  |  Branch (503:7): [True: 0, False: 35.3k]
  ------------------
  504|      0|    return false;
  505|  35.3k|  if (size > 0 && str.size() != size + prefix.size())
  ------------------
  |  Branch (505:7): [True: 35.3k, False: 0]
  |  Branch (505:19): [True: 0, False: 35.3k]
  ------------------
  506|      0|    return false;
  507|       |
  508|  35.3k|  return std::all_of(str.begin() + prefix.size(), str.end(), ::isxdigit);
  509|  35.3k|}  // isHex
_ZN5Exiv219floatToRationalCastEf:
  651|  4.94k|Rational floatToRationalCast(float f) {
  652|       |  // Convert f to double because it simplifies the range checks
  653|       |  // below. (All int values can be losslessly converted to double, but
  654|       |  // sometimes get rounded when converted to float.)
  655|  4.94k|  const double d = f;
  656|       |  // Beware: primitive conversion algorithm
  657|  4.94k|  int32_t den;
  658|  4.94k|  if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 1000000) {
  ------------------
  |  Branch (658:7): [True: 1.96k, False: 2.98k]
  ------------------
  659|  1.96k|    den = 1000000;
  660|  2.98k|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 10000) {
  ------------------
  |  Branch (660:14): [True: 1.81k, False: 1.16k]
  ------------------
  661|  1.81k|    den = 10000;
  662|  1.81k|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 100) {
  ------------------
  |  Branch (662:14): [True: 286, False: 878]
  ------------------
  663|    286|    den = 100;
  664|    878|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max()) {
  ------------------
  |  Branch (664:14): [True: 46, False: 832]
  ------------------
  665|     46|    den = 1;
  666|    832|  } else {
  667|    832|    return {d > 0 ? 1 : -1, 0};
  ------------------
  |  Branch (667:13): [True: 598, False: 234]
  ------------------
  668|    832|  }
  669|  4.11k|  const auto nom = static_cast<int32_t>(std::lround(d * den));
  670|  4.11k|  const int32_t g = std::gcd(nom, den);
  671|       |
  672|  4.11k|  return {nom / g, den / g};
  673|  4.94k|}
types.cpp:_ZN5Exiv2L18checkDataBufBoundsERKNS_7DataBufEm:
  194|  40.7k|static void checkDataBufBounds(const DataBuf& buf, size_t end) {
  195|  40.7k|  Internal::enforce<std::invalid_argument>(end <= static_cast<size_t>(std::numeric_limits<long>::max()),
  196|  40.7k|                                           "end of slice too large to be compared with DataBuf bounds.");
  197|  40.7k|  Internal::enforce<std::out_of_range>(end <= buf.size(), "Invalid slice bounds specified");
  198|  40.7k|}
types.cpp:_ZNK12_GLOBAL__N_113TypeInfoTableeqEN5Exiv26TypeIdE:
   34|   308M|  bool operator==(Exiv2::TypeId typeId) const {
   35|   308M|    return typeId_ == typeId;
   36|   308M|  }

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

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

_ZN5Exiv25ValueC2ENS_6TypeIdE:
   19|  40.7M|Value::Value(TypeId typeId) : type_(typeId) {
   20|  40.7M|}
_ZN5Exiv25Value6createENS_6TypeIdE:
   22|  16.5M|Value::UniquePtr Value::create(TypeId typeId) {
   23|  16.5M|  switch (typeId) {
   24|      0|    case invalidTypeId:
  ------------------
  |  Branch (24:5): [True: 0, False: 16.5M]
  ------------------
   25|  8.17k|    case signedByte:
  ------------------
  |  Branch (25:5): [True: 8.17k, False: 16.5M]
  ------------------
   26|  1.74M|    case unsignedByte:
  ------------------
  |  Branch (26:5): [True: 1.74M, False: 14.7M]
  ------------------
   27|  1.74M|      return std::make_unique<DataValue>(typeId);
   28|   104k|    case asciiString:
  ------------------
  |  Branch (28:5): [True: 104k, False: 16.4M]
  ------------------
   29|   104k|      return std::make_unique<AsciiValue>();
   30|  11.2M|    case unsignedShort:
  ------------------
  |  Branch (30:5): [True: 11.2M, False: 5.30M]
  ------------------
   31|  11.2M|      return std::make_unique<ValueType<uint16_t>>();
   32|   218k|    case unsignedLong:
  ------------------
  |  Branch (32:5): [True: 218k, False: 16.3M]
  ------------------
   33|   240k|    case tiffIfd:
  ------------------
  |  Branch (33:5): [True: 22.2k, False: 16.5M]
  ------------------
   34|   240k|      return std::make_unique<ValueType<uint32_t>>(typeId);
   35|  51.0k|    case unsignedRational:
  ------------------
  |  Branch (35:5): [True: 51.0k, False: 16.4M]
  ------------------
   36|  51.0k|      return std::make_unique<ValueType<URational>>();
   37|   111k|    case undefined:
  ------------------
  |  Branch (37:5): [True: 111k, False: 16.4M]
  ------------------
   38|   111k|      return std::make_unique<DataValue>();
   39|   319k|    case signedShort:
  ------------------
  |  Branch (39:5): [True: 319k, False: 16.2M]
  ------------------
   40|   319k|      return std::make_unique<ValueType<int16_t>>();
   41|  95.3k|    case signedLong:
  ------------------
  |  Branch (41:5): [True: 95.3k, False: 16.4M]
  ------------------
   42|  95.3k|      return std::make_unique<ValueType<int32_t>>();
   43|  35.3k|    case signedRational:
  ------------------
  |  Branch (43:5): [True: 35.3k, False: 16.4M]
  ------------------
   44|  35.3k|      return std::make_unique<ValueType<Rational>>();
   45|  10.6k|    case tiffFloat:
  ------------------
  |  Branch (45:5): [True: 10.6k, False: 16.5M]
  ------------------
   46|  10.6k|      return std::make_unique<ValueType<float>>();
   47|  9.21k|    case tiffDouble:
  ------------------
  |  Branch (47:5): [True: 9.21k, False: 16.5M]
  ------------------
   48|  9.21k|      return std::make_unique<ValueType<double>>();
   49|  35.3k|    case string:
  ------------------
  |  Branch (49:5): [True: 35.3k, False: 16.4M]
  ------------------
   50|  35.3k|      return std::make_unique<StringValue>();
   51|  2.39k|    case date:
  ------------------
  |  Branch (51:5): [True: 2.39k, False: 16.5M]
  ------------------
   52|  2.39k|      return std::make_unique<DateValue>();
   53|  2.12k|    case time:
  ------------------
  |  Branch (53:5): [True: 2.12k, False: 16.5M]
  ------------------
   54|  2.12k|      return std::make_unique<TimeValue>();
   55|  2.71k|    case comment:
  ------------------
  |  Branch (55:5): [True: 2.71k, False: 16.5M]
  ------------------
   56|  2.71k|      return std::make_unique<CommentValue>();
   57|  22.8k|    case xmpText:
  ------------------
  |  Branch (57:5): [True: 22.8k, False: 16.5M]
  ------------------
   58|  22.8k|      return std::make_unique<XmpTextValue>();
   59|      0|    case xmpBag:
  ------------------
  |  Branch (59:5): [True: 0, False: 16.5M]
  ------------------
   60|  3.57k|    case xmpSeq:
  ------------------
  |  Branch (60:5): [True: 3.57k, False: 16.5M]
  ------------------
   61|  3.57k|    case xmpAlt:
  ------------------
  |  Branch (61:5): [True: 0, False: 16.5M]
  ------------------
   62|  3.57k|      return std::make_unique<XmpArrayValue>(typeId);
   63|      0|    case langAlt:
  ------------------
  |  Branch (63:5): [True: 0, False: 16.5M]
  ------------------
   64|      0|      return std::make_unique<LangAltValue>();
   65|  2.50M|    default:
  ------------------
  |  Branch (65:5): [True: 2.50M, False: 14.0M]
  ------------------
   66|  2.50M|      return std::make_unique<DataValue>(typeId);
   67|  16.5M|  }
   68|  16.5M|}  // Value::create
_ZN5Exiv25Value11setDataAreaEPKhm:
   70|  1.51k|int Value::setDataArea(const byte* /*buf*/, size_t /*len*/) {
   71|  1.51k|  return -1;
   72|  1.51k|}
_ZNK5Exiv25Value8toStringEv:
   74|   119k|std::string Value::toString() const {
   75|   119k|  std::ostringstream os;
   76|   119k|  write(os);
   77|   119k|  ok_ = !os.fail();
   78|   119k|  return os.str();
   79|   119k|}
_ZNK5Exiv25Value8toStringEm:
   81|  11.6k|std::string Value::toString(size_t /*n*/) const {
   82|  11.6k|  return toString();
   83|  11.6k|}
_ZNK5Exiv25Value12sizeDataAreaEv:
   85|  34.0k|size_t Value::sizeDataArea() const {
   86|  34.0k|  return 0;
   87|  34.0k|}
_ZNK5Exiv25Value8dataAreaEv:
   89|  2.08k|DataBuf Value::dataArea() const {
   90|  2.08k|  return {nullptr, 0};
   91|  2.08k|}
_ZN5Exiv29DataValueC2ENS_6TypeIdE:
   93|  4.36M|DataValue::DataValue(TypeId typeId) : Value(typeId) {
   94|  4.36M|}
_ZNK5Exiv29DataValue5countEv:
  100|  9.14M|size_t DataValue::count() const {
  101|  9.14M|  return size();
  102|  9.14M|}
_ZN5Exiv29DataValue4readEPKhmNS_9ByteOrderE:
  104|  4.36M|int DataValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  105|       |  // byteOrder not needed
  106|  4.36M|  value_.assign(buf, buf + len);
  107|  4.36M|  return 0;
  108|  4.36M|}
_ZNK5Exiv29DataValue4copyEPhNS_9ByteOrderE:
  122|  2.69M|size_t DataValue::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  123|       |  // byteOrder not needed
  124|  2.69M|  return std::copy(value_.begin(), value_.end(), buf) - buf;
  125|  2.69M|}
_ZNK5Exiv29DataValue4sizeEv:
  127|  18.6M|size_t DataValue::size() const {
  128|  18.6M|  return value_.size();
  129|  18.6M|}
_ZNK5Exiv29DataValue6clone_Ev:
  131|  14.1M|DataValue* DataValue::clone_() const {
  132|  14.1M|  return new DataValue(*this);
  133|  14.1M|}
_ZNK5Exiv29DataValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  135|   117k|std::ostream& DataValue::write(std::ostream& os) const {
  136|   117k|  if (!value_.empty()) {
  ------------------
  |  Branch (136:7): [True: 117k, False: 274]
  ------------------
  137|   117k|    std::copy(value_.begin(), value_.end() - 1, std::ostream_iterator<int>(os, " "));
  138|   117k|    os << static_cast<int>(value_.back());
  139|   117k|  }
  140|   117k|  return os;
  141|   117k|}
_ZNK5Exiv29DataValue8toStringEm:
  143|  2.49k|std::string DataValue::toString(size_t n) const {
  144|  2.49k|  ok_ = true;
  145|  2.49k|  return std::to_string(value_.at(n));
  146|  2.49k|}
_ZNK5Exiv29DataValue7toInt64Em:
  148|   336k|int64_t DataValue::toInt64(size_t n) const {
  149|   336k|  ok_ = true;
  150|   336k|  return value_.at(n);
  151|   336k|}
_ZNK5Exiv29DataValue8toUint32Em:
  153|  50.8k|uint32_t DataValue::toUint32(size_t n) const {
  154|  50.8k|  ok_ = true;
  155|  50.8k|  return value_.at(n);
  156|  50.8k|}
_ZNK5Exiv29DataValue7toFloatEm:
  158|  1.90k|float DataValue::toFloat(size_t n) const {
  159|  1.90k|  ok_ = true;
  160|  1.90k|  return value_.at(n);
  161|  1.90k|}
_ZNK5Exiv29DataValue10toRationalEm:
  163|  2.56k|Rational DataValue::toRational(size_t n) const {
  164|  2.56k|  ok_ = true;
  165|  2.56k|  return {value_.at(n), 1};
  166|  2.56k|}
_ZN5Exiv215StringValueBase4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  172|    158|int StringValueBase::read(const std::string& buf) {
  173|    158|  value_ = buf;
  174|    158|  return 0;
  175|    158|}
_ZN5Exiv215StringValueBase4readEPKhmNS_9ByteOrderE:
  177|   127k|int StringValueBase::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  178|       |  // byteOrder not needed
  179|   127k|  if (buf)
  ------------------
  |  Branch (179:7): [True: 127k, False: 0]
  ------------------
  180|   127k|    value_ = std::string(reinterpret_cast<const char*>(buf), len);
  181|   127k|  return 0;
  182|   127k|}
_ZNK5Exiv215StringValueBase4copyEPhNS_9ByteOrderE:
  184|  63.6k|size_t StringValueBase::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  185|  63.6k|  if (value_.empty())
  ------------------
  |  Branch (185:7): [True: 23.8k, False: 39.8k]
  ------------------
  186|  23.8k|    return 0;
  187|       |  // byteOrder not needed
  188|  39.8k|  return value_.copy(reinterpret_cast<char*>(buf), value_.size());
  189|  63.6k|}
_ZNK5Exiv215StringValueBase5countEv:
  191|   220k|size_t StringValueBase::count() const {
  192|   220k|  return size();
  193|   220k|}
_ZNK5Exiv215StringValueBase4sizeEv:
  195|   391k|size_t StringValueBase::size() const {
  196|   391k|  return value_.size();
  197|   391k|}
_ZNK5Exiv215StringValueBase5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  199|  2.45k|std::ostream& StringValueBase::write(std::ostream& os) const {
  200|  2.45k|  return os << value_;
  201|  2.45k|}
_ZNK5Exiv215StringValueBase7toInt64Em:
  203|  24.2k|int64_t StringValueBase::toInt64(size_t n) const {
  204|  24.2k|  ok_ = true;
  205|  24.2k|  return value_.at(n);
  206|  24.2k|}
_ZNK5Exiv215StringValueBase8toUint32Em:
  208|  2.94k|uint32_t StringValueBase::toUint32(size_t n) const {
  209|  2.94k|  ok_ = true;
  210|  2.94k|  return value_.at(n);
  211|  2.94k|}
_ZNK5Exiv215StringValueBase7toFloatEm:
  213|    378|float StringValueBase::toFloat(size_t n) const {
  214|    378|  ok_ = true;
  215|    378|  return value_.at(n);
  216|    378|}
_ZNK5Exiv215StringValueBase10toRationalEm:
  218|    510|Rational StringValueBase::toRational(size_t n) const {
  219|    510|  ok_ = true;
  220|    510|  return {value_.at(n), 1};
  221|    510|}
_ZN5Exiv211StringValueC2Ev:
  223|  35.3k|StringValue::StringValue() : StringValueBase(string) {
  224|  35.3k|}
_ZNK5Exiv211StringValue6clone_Ev:
  229|   458k|StringValue* StringValue::clone_() const {
  230|   458k|  return new StringValue(*this);
  231|   458k|}
_ZN5Exiv210AsciiValueC2Ev:
  233|   104k|AsciiValue::AsciiValue() : StringValueBase(asciiString) {
  234|   104k|}
_ZN5Exiv210AsciiValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  239|  30.4k|int AsciiValue::read(const std::string& buf) {
  240|  30.4k|  value_ = buf;
  241|       |  // ensure count>0 and nul terminated # https://github.com/Exiv2/exiv2/issues/1484
  242|  30.4k|  if (value_.empty() || value_.back() != '\0') {
  ------------------
  |  Branch (242:7): [True: 0, False: 30.4k]
  |  Branch (242:25): [True: 30.4k, False: 0]
  ------------------
  243|  30.4k|    value_ += '\0';
  244|  30.4k|  }
  245|  30.4k|  return 0;
  246|  30.4k|}
_ZNK5Exiv210AsciiValue6clone_Ev:
  248|   230k|AsciiValue* AsciiValue::clone_() const {
  249|   230k|  return new AsciiValue(*this);
  250|   230k|}
_ZNK5Exiv210AsciiValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  252|   148k|std::ostream& AsciiValue::write(std::ostream& os) const {
  253|       |  // Write only up to the first '\0' (if any)
  254|   148k|  std::string::size_type pos = value_.find_first_of('\0');
  255|   148k|  if (pos == std::string::npos)
  ------------------
  |  Branch (255:7): [True: 7.18k, False: 141k]
  ------------------
  256|  7.18k|    pos = value_.size();
  257|   148k|  return os << value_.substr(0, pos);
  258|   148k|}
_ZN5Exiv212CommentValue11CharsetInfo4nameENS0_9CharsetIdE:
  270|    922|const char* CommentValue::CharsetInfo::name(CharsetId charsetId) {
  271|    922|  return charsetTable_[charsetId < lastCharsetId ? charsetId : undefined].name_;
  ------------------
  |  Branch (271:24): [True: 922, False: 0]
  ------------------
  272|    922|}
_ZN5Exiv212CommentValue11CharsetInfo15charsetIdByCodeERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  285|  5.08k|CommentValue::CharsetId CommentValue::CharsetInfo::charsetIdByCode(const std::string& code) {
  286|  5.08k|  int i = 0;
  287|  23.4k|  for (; charsetTable_[i].charsetId_ != lastCharsetId && std::string(charsetTable_[i].code_, 8) != code; ++i) {
  ------------------
  |  Branch (287:10): [True: 20.9k, False: 2.52k]
  |  Branch (287:10): [True: 18.4k, False: 5.08k]
  |  Branch (287:58): [True: 18.4k, False: 2.55k]
  ------------------
  288|  18.4k|  }
  289|  5.08k|  return charsetTable_[i].charsetId_ == lastCharsetId ? invalidCharsetId : charsetTable_[i].charsetId_;
  ------------------
  |  Branch (289:10): [True: 2.52k, False: 2.55k]
  ------------------
  290|  5.08k|}
_ZN5Exiv212CommentValueC2Ev:
  292|  2.71k|CommentValue::CommentValue() : StringValueBase(Exiv2::undefined) {
  293|  2.71k|}
_ZN5Exiv212CommentValue4readEPKhmNS_9ByteOrderE:
  329|  2.71k|int CommentValue::read(const byte* buf, size_t len, ByteOrder byteOrder) {
  330|  2.71k|  byteOrder_ = byteOrder;
  331|  2.71k|  return StringValueBase::read(buf, len, byteOrder);
  332|  2.71k|}
_ZNK5Exiv212CommentValue4copyEPhNS_9ByteOrderE:
  334|    462|size_t CommentValue::copy(byte* buf, ByteOrder byteOrder) const {
  335|    462|  std::string c = value_;
  336|    462|  if (charsetId() == unicode) {
  ------------------
  |  Branch (336:7): [True: 77, False: 385]
  ------------------
  337|     77|    c = value_.substr(8);
  338|     77|    [[maybe_unused]] const size_t sz = c.size();
  339|     77|    if (byteOrder_ == littleEndian && byteOrder == bigEndian) {
  ------------------
  |  Branch (339:9): [True: 15, False: 62]
  |  Branch (339:39): [True: 0, False: 15]
  ------------------
  340|      0|      convertStringCharset(c, "UCS-2LE", "UCS-2BE");
  341|     77|    } else if (byteOrder_ == bigEndian && byteOrder == littleEndian) {
  ------------------
  |  Branch (341:16): [True: 62, False: 15]
  |  Branch (341:43): [True: 0, False: 62]
  ------------------
  342|      0|      convertStringCharset(c, "UCS-2BE", "UCS-2LE");
  343|      0|    }
  344|     77|    c = value_.substr(0, 8) + c;
  345|     77|  }
  346|    462|  if (c.empty())
  ------------------
  |  Branch (346:7): [True: 161, False: 301]
  ------------------
  347|    161|    return 0;
  348|    301|  return c.copy(reinterpret_cast<char*>(buf), c.size());
  349|    462|}
_ZNK5Exiv212CommentValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  351|  1.38k|std::ostream& CommentValue::write(std::ostream& os) const {
  352|  1.38k|  CharsetId csId = charsetId();
  353|  1.38k|  std::string text = comment();
  354|  1.38k|  if (csId != undefined) {
  ------------------
  |  Branch (354:7): [True: 922, False: 463]
  ------------------
  355|    922|    os << "charset=" << CharsetInfo::name(csId) << " ";
  356|    922|  }
  357|  1.38k|  return os << text;
  358|  1.38k|}
_ZNK5Exiv212CommentValue7commentEPKc:
  360|  1.38k|std::string CommentValue::comment(const char* encoding) const {
  361|  1.38k|  std::string c;
  362|  1.38k|  if (value_.length() < 8) {
  ------------------
  |  Branch (362:7): [True: 90, False: 1.29k]
  ------------------
  363|     90|    return c;
  364|     90|  }
  365|  1.29k|  c = value_.substr(8);
  366|  1.29k|  if (charsetId() == unicode) {
  ------------------
  |  Branch (366:7): [True: 297, False: 998]
  ------------------
  367|    297|    const char* from = !encoding || *encoding == '\0' ? detectCharset(c) : encoding;
  ------------------
  |  Branch (367:24): [True: 297, False: 0]
  |  Branch (367:37): [True: 0, False: 0]
  ------------------
  368|    297|    if (!convertStringCharset(c, from, "UTF-8"))
  ------------------
  |  Branch (368:9): [True: 19, False: 278]
  ------------------
  369|     19|      throw Error(ErrorCode::kerInvalidIconvEncoding, from, "UTF-8");
  370|    297|  }
  371|       |
  372|       |  // # 1266 Remove trailing nulls
  373|  1.27k|  if (charsetId() == undefined || charsetId() == ascii) {
  ------------------
  |  Branch (373:7): [True: 354, False: 922]
  |  Branch (373:35): [True: 44, False: 878]
  ------------------
  374|    398|    auto n = c.find('\0');
  375|    398|    if (n != std::string::npos)
  ------------------
  |  Branch (375:9): [True: 248, False: 150]
  ------------------
  376|    248|      c.resize(n);
  377|    398|  }
  378|  1.27k|  return c;
  379|  1.29k|}
_ZNK5Exiv212CommentValue9charsetIdEv:
  381|  5.34k|CommentValue::CharsetId CommentValue::charsetId() const {
  382|  5.34k|  CharsetId charsetId = undefined;
  383|  5.34k|  if (value_.length() >= 8) {
  ------------------
  |  Branch (383:7): [True: 5.08k, False: 253]
  ------------------
  384|  5.08k|    const std::string code = value_.substr(0, 8);
  385|  5.08k|    charsetId = CharsetInfo::charsetIdByCode(code);
  386|  5.08k|  }
  387|  5.34k|  return charsetId;
  388|  5.34k|}
_ZNK5Exiv212CommentValue13detectCharsetERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  390|    297|const char* CommentValue::detectCharset(std::string& c) const {
  391|       |  // Interpret a BOM if there is one
  392|    297|  if (c.compare(0, 3, "\xef\xbb\xbf") == 0) {
  ------------------
  |  Branch (392:7): [True: 54, False: 243]
  ------------------
  393|     54|    c = c.substr(3);
  394|     54|    return "UTF-8";
  395|     54|  }
  396|    243|  if (c.compare(0, 2, "\xff\xfe") == 0) {
  ------------------
  |  Branch (396:7): [True: 31, False: 212]
  ------------------
  397|     31|    c = c.substr(2);
  398|     31|    return "UCS-2LE";
  399|     31|  }
  400|    212|  if (c.compare(0, 2, "\xfe\xff") == 0) {
  ------------------
  |  Branch (400:7): [True: 58, False: 154]
  ------------------
  401|     58|    c = c.substr(2);
  402|     58|    return "UCS-2BE";
  403|     58|  }
  404|       |
  405|       |  // Todo: Add logic to guess if the comment is encoded in UTF-8
  406|       |
  407|    154|  return byteOrder_ == littleEndian ? "UCS-2LE" : "UCS-2BE";
  ------------------
  |  Branch (407:10): [True: 10, False: 144]
  ------------------
  408|    212|}
_ZNK5Exiv212CommentValue6clone_Ev:
  410|  5.97k|CommentValue* CommentValue::clone_() const {
  411|  5.97k|  return new CommentValue(*this);
  412|  5.97k|}
_ZN5Exiv28XmpValue15setXmpArrayTypeENS0_12XmpArrayTypeE:
  414|  4.81k|void XmpValue::setXmpArrayType(XmpArrayType xmpArrayType) {
  415|  4.81k|  xmpArrayType_ = xmpArrayType;
  416|  4.81k|}
_ZN5Exiv28XmpValue12setXmpStructENS0_9XmpStructE:
  418|    478|void XmpValue::setXmpStruct(XmpStruct xmpStruct) {
  419|    478|  xmpStruct_ = xmpStruct;
  420|    478|}
_ZNK5Exiv28XmpValue12xmpArrayTypeEv:
  422|  53.0k|XmpValue::XmpArrayType XmpValue::xmpArrayType() const {
  423|  53.0k|  return xmpArrayType_;
  424|  53.0k|}
_ZN5Exiv28XmpValue12xmpArrayTypeENS_6TypeIdE:
  426|  4.74k|XmpValue::XmpArrayType XmpValue::xmpArrayType(TypeId typeId) {
  427|  4.74k|  XmpArrayType xa = xaNone;
  428|  4.74k|  switch (typeId) {
  429|     30|    case xmpAlt:
  ------------------
  |  Branch (429:5): [True: 30, False: 4.71k]
  ------------------
  430|     30|      xa = xaAlt;
  431|     30|      break;
  432|    139|    case xmpBag:
  ------------------
  |  Branch (432:5): [True: 139, False: 4.60k]
  ------------------
  433|    139|      xa = xaBag;
  434|    139|      break;
  435|  4.24k|    case xmpSeq:
  ------------------
  |  Branch (435:5): [True: 4.24k, False: 501]
  ------------------
  436|  4.24k|      xa = xaSeq;
  437|  4.24k|      break;
  438|    332|    default:
  ------------------
  |  Branch (438:5): [True: 332, False: 4.41k]
  ------------------
  439|    332|      break;
  440|  4.74k|  }
  441|  4.74k|  return xa;
  442|  4.74k|}
_ZNK5Exiv28XmpValue9xmpStructEv:
  444|  53.4k|XmpValue::XmpStruct XmpValue::xmpStruct() const {
  445|  53.4k|  return xmpStruct_;
  446|  53.4k|}
_ZN5Exiv212XmpTextValueC2Ev:
  468|  34.3k|XmpTextValue::XmpTextValue() : XmpValue(xmpText) {
  469|  34.3k|}
_ZN5Exiv212XmpTextValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  475|   850k|int XmpTextValue::read(const std::string& buf) {
  476|       |  // support a type=Alt,Bag,Seq,Struct indicator
  477|   850k|  std::string b = buf;
  478|   850k|  std::string type;
  479|   850k|  if (buf.starts_with("type=")) {
  ------------------
  |  Branch (479:7): [True: 369, False: 849k]
  ------------------
  480|    369|    std::string::size_type pos = buf.find_first_of(' ');
  481|    369|    type = buf.substr(5, pos - 5);
  482|       |    // Strip quotes (so you can also specify the type without quotes)
  483|    369|    if (!type.empty() && type.front() == '"')
  ------------------
  |  Branch (483:9): [True: 298, False: 71]
  |  Branch (483:26): [True: 166, False: 132]
  ------------------
  484|    166|      type = type.substr(1);
  485|    369|    if (!type.empty() && type.back() == '"')
  ------------------
  |  Branch (485:9): [True: 229, False: 140]
  |  Branch (485:26): [True: 74, False: 155]
  ------------------
  486|     74|      type.pop_back();
  487|    369|    b.clear();
  488|    369|    if (pos != std::string::npos)
  ------------------
  |  Branch (488:9): [True: 134, False: 235]
  ------------------
  489|    134|      b = buf.substr(pos + 1);
  490|    369|  }
  491|   850k|  if (!type.empty()) {
  ------------------
  |  Branch (491:7): [True: 229, False: 850k]
  ------------------
  492|    229|    if (type == "Alt") {
  ------------------
  |  Branch (492:9): [True: 26, False: 203]
  ------------------
  493|     26|      setXmpArrayType(XmpValue::xaAlt);
  494|    203|    } else if (type == "Bag") {
  ------------------
  |  Branch (494:16): [True: 28, False: 175]
  ------------------
  495|     28|      setXmpArrayType(XmpValue::xaBag);
  496|    175|    } else if (type == "Seq") {
  ------------------
  |  Branch (496:16): [True: 15, False: 160]
  ------------------
  497|     15|      setXmpArrayType(XmpValue::xaSeq);
  498|    160|    } else if (type == "Struct") {
  ------------------
  |  Branch (498:16): [True: 8, False: 152]
  ------------------
  499|      8|      setXmpStruct();
  500|    152|    } else {
  501|    152|      throw Error(ErrorCode::kerInvalidXmpText, type);
  502|    152|    }
  503|    229|  }
  504|   850k|  value_ = std::move(b);
  505|   850k|  return 0;
  506|   850k|}
_ZNK5Exiv212XmpTextValue4sizeEv:
  512|  21.0k|size_t XmpTextValue::size() const {
  513|  21.0k|  std::ostringstream os;
  514|  21.0k|  write(os);
  515|  21.0k|  return os.str().size();
  516|  21.0k|}
_ZNK5Exiv212XmpTextValue5countEv:
  518|  21.0k|size_t XmpTextValue::count() const {
  519|  21.0k|  return size();
  520|  21.0k|}
_ZNK5Exiv212XmpTextValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  522|  45.8k|std::ostream& XmpTextValue::write(std::ostream& os) const {
  523|  45.8k|  bool del = false;
  524|  45.8k|  if (xmpArrayType() != XmpValue::xaNone) {
  ------------------
  |  Branch (524:7): [True: 290, False: 45.5k]
  ------------------
  525|    290|    switch (xmpArrayType()) {
  ------------------
  |  Branch (525:13): [True: 290, False: 0]
  ------------------
  526|      9|      case XmpValue::xaAlt:
  ------------------
  |  Branch (526:7): [True: 9, False: 281]
  ------------------
  527|      9|        os << "type=\"Alt\"";
  528|      9|        break;
  529|      4|      case XmpValue::xaBag:
  ------------------
  |  Branch (529:7): [True: 4, False: 286]
  ------------------
  530|      4|        os << "type=\"Bag\"";
  531|      4|        break;
  532|    277|      case XmpValue::xaSeq:
  ------------------
  |  Branch (532:7): [True: 277, False: 13]
  ------------------
  533|    277|        os << "type=\"Seq\"";
  534|    277|        break;
  535|      0|      case XmpValue::xaNone:
  ------------------
  |  Branch (535:7): [True: 0, False: 290]
  ------------------
  536|      0|        break;  // just to suppress the warning
  537|    290|    }
  538|    290|    del = true;
  539|  45.5k|  } else if (xmpStruct() != XmpValue::xsNone) {
  ------------------
  |  Branch (539:14): [True: 763, False: 44.8k]
  ------------------
  540|    763|    switch (xmpStruct()) {
  ------------------
  |  Branch (540:13): [True: 763, False: 0]
  ------------------
  541|    763|      case XmpValue::xsStruct:
  ------------------
  |  Branch (541:7): [True: 763, False: 0]
  ------------------
  542|    763|        os << "type=\"Struct\"";
  543|    763|        break;
  544|      0|      case XmpValue::xsNone:
  ------------------
  |  Branch (544:7): [True: 0, False: 763]
  ------------------
  545|      0|        break;  // just to suppress the warning
  546|    763|    }
  547|    763|    del = true;
  548|    763|  }
  549|  45.8k|  if (del && !value_.empty())
  ------------------
  |  Branch (549:7): [True: 1.05k, False: 44.8k]
  |  Branch (549:14): [True: 8, False: 1.04k]
  ------------------
  550|      8|    os << " ";
  551|  45.8k|  return os << value_;
  552|  45.8k|}
_ZNK5Exiv212XmpTextValue6clone_Ev:
  570|  50.0k|XmpTextValue* XmpTextValue::clone_() const {
  571|  50.0k|  return new XmpTextValue(*this);
  572|  50.0k|}
_ZN5Exiv213XmpArrayValueC2ENS_6TypeIdE:
  574|  4.27k|XmpArrayValue::XmpArrayValue(TypeId typeId) : XmpValue(typeId) {
  575|  4.27k|  setXmpArrayType(xmpArrayType(typeId));
  576|  4.27k|}
_ZN5Exiv213XmpArrayValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  578|  49.8k|int XmpArrayValue::read(const std::string& buf) {
  579|  49.8k|  if (!buf.empty())
  ------------------
  |  Branch (579:7): [True: 37.9k, False: 11.8k]
  ------------------
  580|  37.9k|    value_.push_back(buf);
  581|  49.8k|  return 0;
  582|  49.8k|}
_ZNK5Exiv213XmpArrayValue5countEv:
  588|  2.63k|size_t XmpArrayValue::count() const {
  589|  2.63k|  return value_.size();
  590|  2.63k|}
_ZNK5Exiv213XmpArrayValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  592|  1.56k|std::ostream& XmpArrayValue::write(std::ostream& os) const {
  593|  1.56k|  if (!value_.empty()) {
  ------------------
  |  Branch (593:7): [True: 1.25k, False: 310]
  ------------------
  594|  1.25k|    std::copy(value_.begin(), value_.end() - 1, std::ostream_iterator<std::string>(os, ", "));
  595|  1.25k|    os << value_.back();
  596|  1.25k|  }
  597|  1.56k|  return os;
  598|  1.56k|}
_ZNK5Exiv213XmpArrayValue8toStringEm:
  600|  1.51k|std::string XmpArrayValue::toString(size_t n) const {
  601|  1.51k|  ok_ = true;
  602|  1.51k|  return value_.at(n);
  603|  1.51k|}
_ZNK5Exiv213XmpArrayValue6clone_Ev:
  621|  7.72k|XmpArrayValue* XmpArrayValue::clone_() const {
  622|  7.72k|  return new XmpArrayValue(*this);
  623|  7.72k|}
_ZN5Exiv212LangAltValueC2Ev:
  625|    199|LangAltValue::LangAltValue() : XmpValue(langAlt) {
  626|    199|}
_ZNK5Exiv212LangAltValue5countEv:
  679|    192|size_t LangAltValue::count() const {
  680|    192|  return value_.size();
  681|    192|}
_ZNK5Exiv212LangAltValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  683|    192|std::ostream& LangAltValue::write(std::ostream& os) const {
  684|    192|  bool first = true;
  685|       |
  686|       |  // Write the default entry first
  687|    192|  if (auto i = value_.find("x-default"); i != value_.end()) {
  ------------------
  |  Branch (687:42): [True: 52, False: 140]
  ------------------
  688|     52|    os << "lang=\"" << i->first << "\" " << i->second;
  689|     52|    first = false;
  690|     52|  }
  691|       |
  692|       |  // Write the others
  693|    192|  for (const auto& [lang, s] : value_) {
  ------------------
  |  Branch (693:30): [True: 182, False: 192]
  ------------------
  694|    182|    if (lang != "x-default") {
  ------------------
  |  Branch (694:9): [True: 130, False: 52]
  ------------------
  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|    182|  }
  701|    192|  return os;
  702|    192|}
_ZNK5Exiv212LangAltValue6clone_Ev:
  737|    505|LangAltValue* LangAltValue::clone_() const {
  738|    505|  return new LangAltValue(*this);
  739|    505|}
_ZN5Exiv29DateValueC2Ev:
  741|  2.39k|DateValue::DateValue() : Value(date) {
  742|  2.39k|  date_ = {};
  743|  2.39k|}
_ZN5Exiv29DateValue4readEPKhmNS_9ByteOrderE:
  749|  2.23k|int DateValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  750|  2.23k|  const std::string str(reinterpret_cast<const char*>(buf), len);
  751|  2.23k|  return read(str);
  752|  2.23k|}
_ZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  754|  2.39k|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.39k|  size_t monthPos = 0;
  758|  2.39k|  size_t dayPos = 0;
  759|       |
  760|  2.39k|  auto printWarning = [] {
  761|  2.39k|#ifndef SUPPRESS_WARNINGS
  762|  2.39k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedDateFormat) << "\n";
  763|  2.39k|#endif
  764|  2.39k|  };
  765|       |
  766|  2.39k|  if (buf.size() < 8) {
  ------------------
  |  Branch (766:7): [True: 249, False: 2.14k]
  ------------------
  767|    249|    printWarning();
  768|    249|    return 1;
  769|    249|  }
  770|       |
  771|  2.14k|  if ((buf.size() >= 10 && buf[4] == '-' && buf[7] == '-') || (buf.size() == 8)) {
  ------------------
  |  Branch (771:8): [True: 668, False: 1.47k]
  |  Branch (771:28): [True: 364, False: 304]
  |  Branch (771:45): [True: 133, False: 231]
  |  Branch (771:63): [True: 1.47k, False: 537]
  ------------------
  772|  1.60k|    if (buf.size() >= 10) {
  ------------------
  |  Branch (772:9): [True: 133, False: 1.47k]
  ------------------
  773|    133|      monthPos = 5;
  774|    133|      dayPos = 8;
  775|  1.47k|    } else {
  776|  1.47k|      monthPos = 4;
  777|  1.47k|      dayPos = 6;
  778|  1.47k|    }
  779|       |
  780|  1.60k|    auto checkDigits = [&buf, &printWarning](size_t start, size_t count, int32_t& dest) {
  781|  1.60k|      for (size_t i = start; i < start + count; ++i) {
  782|  1.60k|        if (!std::isdigit(buf[i])) {
  783|  1.60k|          printWarning();
  784|  1.60k|          return 1;
  785|  1.60k|        }
  786|  1.60k|      }
  787|  1.60k|      dest = std::stoul(buf.substr(start, count));
  788|  1.60k|      return 0;
  789|  1.60k|    };
  790|       |
  791|  1.60k|    if (checkDigits(0, 4, date_.year) || checkDigits(monthPos, 2, date_.month) || checkDigits(dayPos, 2, date_.day)) {
  ------------------
  |  Branch (791:9): [True: 994, False: 614]
  |  Branch (791:42): [True: 188, False: 426]
  |  Branch (791:83): [True: 157, False: 269]
  ------------------
  792|  1.33k|      printWarning();
  793|  1.33k|      return 1;
  794|  1.33k|    }
  795|       |
  796|    269|    if (date_.month > 12 || date_.day > 31) {
  ------------------
  |  Branch (796:9): [True: 15, False: 254]
  |  Branch (796:29): [True: 30, False: 224]
  ------------------
  797|     45|      date_.month = 0;
  798|     45|      date_.day = 0;
  799|     45|      printWarning();
  800|     45|      return 1;
  801|     45|    }
  802|    224|    return 0;
  803|    269|  }
  804|    537|  printWarning();
  805|    537|  return 1;
  806|  2.14k|}
_ZNK5Exiv29DateValue4copyEPhNS_9ByteOrderE:
  812|     30|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|     30|  auto out = reinterpret_cast<char*>(buf);
  817|     30|  auto it = stringFormatTo(out, "{:04}{:02}{:02}", date_.year, date_.month, date_.day);
  ------------------
  |  |   19|     30|#define stringFormatTo std::format_to
  ------------------
  818|       |
  819|     30|  return it - out;
  820|     30|}
_ZNK5Exiv29DateValue4sizeEv:
  830|     60|size_t DateValue::size() const {
  831|     60|  return 8;
  832|     60|}
_ZNK5Exiv29DateValue6clone_Ev:
  834|    759|DateValue* DateValue::clone_() const {
  835|    759|  return new DateValue(*this);
  836|    759|}
_ZNK5Exiv29DateValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  838|    480|std::ostream& DateValue::write(std::ostream& os) const {
  839|       |  // Write DateValue in ISO 8601 Extended format: YYYY-MM-DD
  840|    480|  return os << stringFormat("{:04}-{:02}-{:02}", date_.year, date_.month, date_.day);
  ------------------
  |  |   18|    480|#define stringFormat std::format
  ------------------
  841|    480|}
_ZN5Exiv29TimeValueC2Ev:
  877|  2.12k|TimeValue::TimeValue() : Value(time) {
  878|  2.12k|  time_ = {};
  879|  2.12k|}
_ZN5Exiv29TimeValue4readEPKhmNS_9ByteOrderE:
  885|  2.12k|int TimeValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  886|  2.12k|  const std::string str(reinterpret_cast<const char*>(buf), len);
  887|  2.12k|  return read(str);
  888|  2.12k|}
_ZN5Exiv29TimeValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  890|  2.12k|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.12k|  auto printWarning = [] {
  896|  2.12k|#ifndef SUPPRESS_WARNINGS
  897|  2.12k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedTimeFormat) << "\n";
  898|  2.12k|#endif
  899|  2.12k|    return 1;
  900|  2.12k|  };
  901|       |
  902|  2.12k|  if (buf.size() < 2)
  ------------------
  |  Branch (902:7): [True: 202, False: 1.92k]
  ------------------
  903|    202|    return printWarning();
  904|       |
  905|  1.92k|  for (auto c : buf)
  ------------------
  |  Branch (905:15): [True: 18.0k, False: 1.12k]
  ------------------
  906|  18.0k|    if (c != ':' && c != '+' && c != '-' && c != 'Z' && !std::isdigit(c))
  ------------------
  |  Branch (906:9): [True: 17.1k, False: 858]
  |  Branch (906:21): [True: 16.8k, False: 308]
  |  Branch (906:33): [True: 15.3k, False: 1.55k]
  |  Branch (906:45): [True: 15.0k, False: 287]
  |  Branch (906:57): [True: 797, False: 14.2k]
  ------------------
  907|    797|      return printWarning();
  908|       |
  909|  1.12k|  size_t mpos;
  910|  1.12k|  size_t spos;
  911|  1.12k|  if (buf.find(':') != std::string::npos) {
  ------------------
  |  Branch (911:7): [True: 415, False: 709]
  ------------------
  912|    415|    mpos = 3;
  913|    415|    spos = 6;
  914|    709|  } else {
  915|    709|    mpos = 2;
  916|    709|    spos = 4;
  917|    709|  }
  918|       |
  919|  1.12k|  auto hi = std::stoi(buf.substr(0, 2));
  920|  1.12k|  if (hi < 0 || hi > 23)
  ------------------
  |  Branch (920:7): [True: 64, False: 1.06k]
  |  Branch (920:17): [True: 54, False: 1.00k]
  ------------------
  921|    110|    return printWarning();
  922|  1.01k|  time_.hour = hi;
  923|  1.01k|  if (buf.size() > 3) {
  ------------------
  |  Branch (923:7): [True: 985, False: 29]
  ------------------
  924|    985|    auto mi = std::stoi(buf.substr(mpos, 2));
  925|    985|    if (mi < 0 || mi > 59)
  ------------------
  |  Branch (925:9): [True: 91, False: 894]
  |  Branch (925:19): [True: 51, False: 843]
  ------------------
  926|    140|      return printWarning();
  927|    845|    time_.minute = std::stoi(buf.substr(mpos, 2));
  928|    845|  } else {
  929|     29|    time_.minute = 0;
  930|     29|  }
  931|    874|  if (buf.size() > 5) {
  ------------------
  |  Branch (931:7): [True: 834, False: 40]
  ------------------
  932|    834|    auto si = std::stoi(buf.substr(spos, 2));
  933|    834|    if (si < 0 || si > 60)
  ------------------
  |  Branch (933:9): [True: 45, False: 789]
  |  Branch (933:19): [True: 19, False: 770]
  ------------------
  934|     56|      return printWarning();
  935|    778|    time_.second = std::stoi(buf.substr(spos, 2));
  936|    778|  } else {
  937|     40|    time_.second = 0;
  938|     40|  }
  939|       |
  940|    818|  auto fpos = buf.find('+');
  941|    818|  if (fpos == std::string::npos)
  ------------------
  |  Branch (941:7): [True: 621, False: 197]
  ------------------
  942|    621|    fpos = buf.find('-');
  943|       |
  944|    818|  if (fpos != std::string::npos) {
  ------------------
  |  Branch (944:7): [True: 689, False: 129]
  ------------------
  945|    689|    auto format = buf.substr(fpos, buf.size());
  946|    689|    auto posColon = format.find(':');
  947|    689|    if (posColon == std::string::npos) {
  ------------------
  |  Branch (947:9): [True: 481, False: 208]
  ------------------
  948|       |      // Extended format
  949|    481|      auto tzhi = std::stoi(format.substr(0, 3));
  950|    481|      if (tzhi < -23 || tzhi > 23)
  ------------------
  |  Branch (950:11): [True: 127, False: 354]
  |  Branch (950:25): [True: 33, False: 321]
  ------------------
  951|    155|        return printWarning();
  952|    326|      time_.tzHour = tzhi;
  953|    326|      if (format.size() > 3) {
  ------------------
  |  Branch (953:11): [True: 293, False: 33]
  ------------------
  954|    293|        int minute = std::stoi(format.substr(3));
  955|    293|        if (minute < 0 || minute > 59)
  ------------------
  |  Branch (955:13): [True: 17, False: 276]
  |  Branch (955:27): [True: 76, False: 200]
  ------------------
  956|     86|          return printWarning();
  957|    207|        time_.tzMinute = time_.tzHour < 0 ? -minute : minute;
  ------------------
  |  Branch (957:26): [True: 137, False: 70]
  ------------------
  958|    207|      }
  959|    326|    } else {
  960|       |      // Basic format
  961|    208|      auto tzhi = std::stoi(format.substr(0, posColon));
  962|    208|      if (tzhi < -23 || tzhi > 23)
  ------------------
  |  Branch (962:11): [True: 32, False: 176]
  |  Branch (962:25): [True: 41, False: 135]
  ------------------
  963|     69|        return printWarning();
  964|    139|      time_.tzHour = tzhi;
  965|    139|      int minute = std::stoi(format.substr(posColon + 1));
  966|    139|      if (minute < 0 || minute > 59)
  ------------------
  |  Branch (966:11): [True: 7, False: 132]
  |  Branch (966:25): [True: 59, False: 73]
  ------------------
  967|     59|        return printWarning();
  968|     80|      time_.tzMinute = time_.tzHour < 0 ? -minute : minute;
  ------------------
  |  Branch (968:24): [True: 30, False: 50]
  ------------------
  969|     80|    }
  970|    689|  }
  971|    449|  return 0;
  972|    818|}
_ZNK5Exiv29TimeValue4copyEPhNS_9ByteOrderE:
  979|    186|size_t TimeValue::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  980|       |  // NOTE: Here the time is copied in the Basic format HHMMSS:HHMM, as the IPTC key
  981|       |  // Iptc.Application2.TimeCreated wants it. Check https://exiv2.org/iptc.html
  982|    186|  char plusMinus = '+';
  983|    186|  if (time_.tzHour < 0 || time_.tzMinute < 0)
  ------------------
  |  Branch (983:7): [True: 14, False: 172]
  |  Branch (983:27): [True: 0, False: 172]
  ------------------
  984|     14|    plusMinus = '-';
  985|       |
  986|    186|  auto out = reinterpret_cast<char*>(buf);
  987|    186|  auto it = stringFormatTo(out, "{:02}{:02}{:02}{}{:02}{:02}", time_.hour, time_.minute, time_.second, plusMinus,
  ------------------
  |  |   19|    186|#define stringFormatTo std::format_to
  ------------------
  988|    186|                           std::abs(time_.tzHour), std::abs(time_.tzMinute));
  989|       |
  990|    186|  auto wrote = static_cast<size_t>(it - out);
  991|    186|  Internal::enforce(wrote == 11, Exiv2::ErrorCode::kerUnsupportedTimeFormat);
  992|    186|  return wrote;
  993|    186|}
_ZNK5Exiv29TimeValue4sizeEv:
 1003|    372|size_t TimeValue::size() const {
 1004|    372|  return 11;
 1005|    372|}
_ZNK5Exiv29TimeValue6clone_Ev:
 1007|  1.02k|TimeValue* TimeValue::clone_() const {
 1008|  1.02k|  return new TimeValue(*this);
 1009|  1.02k|}
_ZNK5Exiv29TimeValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
 1011|    114|std::ostream& TimeValue::write(std::ostream& os) const {
 1012|       |  // Write TimeValue in ISO 8601 Extended format: hh:mm:ss±hh:mm
 1013|    114|  char plusMinus = '+';
 1014|    114|  if (time_.tzHour < 0 || time_.tzMinute < 0)
  ------------------
  |  Branch (1014:7): [True: 36, False: 78]
  |  Branch (1014:27): [True: 0, False: 78]
  ------------------
 1015|     36|    plusMinus = '-';
 1016|       |
 1017|    114|  return os << stringFormat("{:02}:{:02}:{:02}{}{:02}:{:02}", time_.hour, time_.minute, time_.second, plusMinus,
  ------------------
  |  |   18|    114|#define stringFormat std::format
  ------------------
 1018|    114|                            std::abs(time_.tzHour), std::abs(time_.tzMinute));
 1019|    114|}
value.cpp:_ZZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_0clEv:
  760|  3.50k|  auto printWarning = [] {
  761|  3.50k|#ifndef SUPPRESS_WARNINGS
  762|  3.50k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedDateFormat) << "\n";
  ------------------
  |  |  138|  3.50k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 3.50k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  3.50k|  LogMsg(LogMsg::warn).os()
  ------------------
  763|  3.50k|#endif
  764|  3.50k|  };
value.cpp:_ZZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_1clEmmRi:
  780|  2.64k|    auto checkDigits = [&buf, &printWarning](size_t start, size_t count, int32_t& dest) {
  781|  6.75k|      for (size_t i = start; i < start + count; ++i) {
  ------------------
  |  Branch (781:30): [True: 5.44k, False: 1.30k]
  ------------------
  782|  5.44k|        if (!std::isdigit(buf[i])) {
  ------------------
  |  Branch (782:13): [True: 1.33k, False: 4.10k]
  ------------------
  783|  1.33k|          printWarning();
  784|  1.33k|          return 1;
  785|  1.33k|        }
  786|  5.44k|      }
  787|  1.30k|      dest = std::stoul(buf.substr(start, count));
  788|  1.30k|      return 0;
  789|  2.64k|    };
value.cpp:_ZZN5Exiv29TimeValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_0clEv:
  895|  1.67k|  auto printWarning = [] {
  896|  1.67k|#ifndef SUPPRESS_WARNINGS
  897|  1.67k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedTimeFormat) << "\n";
  ------------------
  |  |  138|  1.67k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.67k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.67k|  LogMsg(LogMsg::warn).os()
  ------------------
  898|  1.67k|#endif
  899|  1.67k|    return 1;
  900|  1.67k|  };

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

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

XMP_NewExpatAdapter:
   68|  3.46k|{
   69|  3.46k|	return new ExpatAdapter;
   70|  3.46k|}	// XMP_NewExpatAdapter
_ZN12ExpatAdapterC2Ev:
   74|  3.46k|ExpatAdapter::ExpatAdapter() : parser(0)
   75|  3.46k|{
   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.46k|	this->parser = XML_ParserCreateNS ( 0, FullNameSeparator );
  ------------------
  |  |   33|  3.46k|#define FullNameSeparator	'@'
  ------------------
   85|  3.46k|	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.46k]
  ------------------
   86|       |	
   87|  3.46k|	XML_SetUserData ( this->parser, this );
   88|       |	
   89|  3.46k|	XML_SetNamespaceDeclHandler ( this->parser, StartNamespaceDeclHandler, EndNamespaceDeclHandler );
   90|  3.46k|	XML_SetElementHandler ( this->parser, StartElementHandler, EndElementHandler );
   91|       |
   92|  3.46k|	XML_SetCharacterDataHandler ( this->parser, CharacterDataHandler );
   93|  3.46k|	XML_SetCdataSectionHandler ( this->parser, StartCdataSectionHandler, EndCdataSectionHandler );
   94|       |
   95|  3.46k|	XML_SetProcessingInstructionHandler ( this->parser, ProcessingInstructionHandler );
   96|  3.46k|	XML_SetCommentHandler ( this->parser, CommentHandler );
   97|       |
   98|  3.46k|	#if BanAllEntityUsage
   99|  3.46k|		XML_SetStartDoctypeDeclHandler ( this->parser, StartDoctypeDeclHandler );
  100|  3.46k|		isAborted = false;
  101|  3.46k|	#endif
  102|       |
  103|  3.46k|	this->parseStack.push_back ( &this->tree );	// Push the XML root node.
  104|       |
  105|  3.46k|}	// ExpatAdapter::ExpatAdapter
_ZN12ExpatAdapterD2Ev:
  110|  3.46k|{
  111|       |
  112|  3.46k|	if ( this->parser != 0 ) XML_ParserFree ( this->parser );
  ------------------
  |  Branch (112:7): [True: 3.46k, False: 0]
  ------------------
  113|  3.46k|	this->parser = 0;
  114|       |
  115|  3.46k|}	// ExpatAdapter::~ExpatAdapter
_ZN12ExpatAdapter11ParseBufferEPKvmb:
  126|  3.47k|{
  127|  3.47k|	enum XML_Status status;
  128|       |	
  129|  3.47k|	if ( length == 0 ) {	// Expat does not like empty buffers.
  ------------------
  |  Branch (129:7): [True: 0, False: 3.47k]
  ------------------
  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.47k|	status = XML_Parse ( this->parser, (const char *)buffer, length, last );
  136|       |	
  137|  3.47k|	#if BanAllEntityUsage
  138|  3.47k|		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.47k]
  ------------------
  139|  3.47k|	#endif
  140|       |
  141|  3.47k|	if ( status != XML_STATUS_OK ) {
  ------------------
  |  Branch (141:7): [True: 3, False: 3.46k]
  ------------------
  142|       |	
  143|      3|		XMP_StringPtr errMsg = "XML parsing failure";
  144|       |
  145|       |		#if 0	// XMP_DebugBuild	// Disable for now to make test output uniform. Restore later with thread safety.
  146|       |		
  147|       |			// *** This is a good candidate for a callback error notification mechanism.
  148|       |			// *** This code is not thread safe, the sExpatMessage isn't locked. But that's OK for debug usage.
  149|       |
  150|       |			enum XML_Error expatErr = XML_GetErrorCode ( this->parser );
  151|       |			const char *   expatMsg = XML_ErrorString ( expatErr );
  152|       |			int errLine = XML_GetCurrentLineNumber ( this->parser );
  153|       |		
  154|       |			char msgBuffer[1000];
  155|       |			// AUDIT: Use of sizeof(msgBuffer) for snprintf length is safe.
  156|       |			snprintf ( msgBuffer, sizeof(msgBuffer), "# Expat error %d at line %d, \"%s\"", expatErr, errLine, expatMsg );
  157|       |			sExpatMessage = msgBuffer;
  158|       |			errMsg = sExpatMessage.c_str();
  159|       |
  160|       |			#if  DumpXMLParseEvents
  161|       |				if ( this->parseLog != 0 ) fprintf ( this->parseLog, "%s\n", errMsg, expatErr, errLine, expatMsg );
  162|       |			#endif
  163|       |
  164|       |		#endif
  165|       |
  166|      3|		XMP_Throw ( errMsg, kXMPErr_BadXML );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  167|       |
  168|      0|	}
  169|       |	
  170|  3.47k|}	// ExpatAdapter::ParseBuffer
ExpatAdapter.cpp:_ZL25StartNamespaceDeclHandlerPvPKcS1_:
  242|  10.9k|{
  243|  10.9k|	IgnoreParam(userData);
  ------------------
  |  |  117|  10.9k|#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.9k|	if ( prefix == 0 ) prefix = "_dflt_";	// Have default namespace.
  ------------------
  |  Branch (252:7): [True: 12, False: 10.9k]
  ------------------
  253|  10.9k|	if ( uri == 0 ) return;	// Ignore, have xmlns:pre="", no URI to register.
  ------------------
  |  Branch (253:7): [True: 6, False: 10.9k]
  ------------------
  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.9k|	if ( XMP_LitMatch ( uri, "http://purl.org/dc/1.1/" ) ) uri = "http://purl.org/dc/elements/1.1/";
  ------------------
  |  |   96|  10.9k|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  |  |  ------------------
  |  |  |  Branch (96:28): [True: 119, False: 10.7k]
  |  |  ------------------
  ------------------
  263|  10.9k|	XMPMeta::RegisterNamespace ( uri, prefix );
  264|       |
  265|  10.9k|}	// StartNamespaceDeclHandler
ExpatAdapter.cpp:_ZL23EndNamespaceDeclHandlerPvPKc:
  270|  10.9k|{
  271|  10.9k|	IgnoreParam(userData);
  ------------------
  |  |  117|  10.9k|#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.9k|	if ( prefix == 0 ) prefix = "_dflt_";	// Have default namespace.
  ------------------
  |  Branch (277:7): [True: 12, False: 10.9k]
  ------------------
  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.9k|}	// EndNamespaceDeclHandler
ExpatAdapter.cpp:_ZL19StartElementHandlerPvPKcPS1_:
  293|  19.3k|{
  294|  19.3k|	XMP_Assert ( attrs != 0 );
  ------------------
  |  |  142|  19.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  295|  19.3k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  296|       |	
  297|  19.3k|	size_t attrCount = 0;
  298|  49.0k|	for ( XMP_StringPtr* a = attrs; *a != 0; ++a ) ++attrCount;
  ------------------
  |  Branch (298:34): [True: 29.7k, False: 19.3k]
  ------------------
  299|  19.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: 19.3k]
  ------------------
  300|  19.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|  19.3k|	XML_Node * parentNode = thiz->parseStack.back();
  316|  19.3k|	XML_Node * elemNode   = new XML_Node ( parentNode, "", kElemNode );
  317|       |	
  318|  19.3k|	SetQualName ( name, elemNode );
  319|       |	
  320|  34.1k|	for ( XMP_StringPtr* attr = attrs; *attr != 0; attr += 2 ) {
  ------------------
  |  Branch (320:37): [True: 14.8k, False: 19.3k]
  ------------------
  321|       |
  322|  14.8k|		XMP_StringPtr attrName = *attr;
  323|  14.8k|		XMP_StringPtr attrValue = *(attr+1);
  324|  14.8k|		XML_Node * attrNode = new XML_Node ( elemNode, "", kAttrNode );
  325|       |
  326|  14.8k|		SetQualName ( attrName, attrNode );
  327|  14.8k|		attrNode->value = attrValue;
  328|  14.8k|		if ( attrNode->name == "xml:lang" ) NormalizeLangValue ( &attrNode->value );
  ------------------
  |  Branch (328:8): [True: 438, False: 14.4k]
  ------------------
  329|  14.8k|		elemNode->attrs.push_back ( attrNode );
  330|       |
  331|  14.8k|	}
  332|       |	
  333|  19.3k|	parentNode->content.push_back ( elemNode );
  334|  19.3k|	thiz->parseStack.push_back ( elemNode );
  335|       |	
  336|  19.3k|	if ( elemNode->name == "rdf:RDF" ) {
  ------------------
  |  Branch (336:7): [True: 3.31k, False: 16.0k]
  ------------------
  337|  3.31k|		thiz->rootNode = elemNode;
  338|  3.31k|		++thiz->rootCount;
  339|  3.31k|	}
  340|       |	#if XMP_DebugBuild
  341|       |		++thiz->elemNesting;
  342|       |	#endif
  343|       |
  344|  19.3k|}	// StartElementHandler
ExpatAdapter.cpp:_ZL11SetQualNamePKcP8XML_Node:
  187|  34.1k|{
  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|  34.1k|	size_t sepPos = strlen(fullName);
  199|   391k|	for ( --sepPos; sepPos > 0; --sepPos ) {
  ------------------
  |  Branch (199:18): [True: 390k, False: 979]
  ------------------
  200|   390k|		if ( fullName[sepPos] == FullNameSeparator ) break;
  ------------------
  |  |   33|   390k|#define FullNameSeparator	'@'
  ------------------
  |  Branch (200:8): [True: 33.2k, False: 357k]
  ------------------
  201|   390k|	}
  202|       |
  203|  34.1k|	if ( fullName[sepPos] == FullNameSeparator ) {
  ------------------
  |  |   33|  34.1k|#define FullNameSeparator	'@'
  ------------------
  |  Branch (203:7): [True: 33.2k, False: 979]
  ------------------
  204|       |
  205|  33.2k|		XMP_StringPtr prefix;
  206|  33.2k|		XMP_StringLen prefixLen;
  207|  33.2k|		XMP_StringPtr localPart = fullName + sepPos + 1;
  208|       |
  209|  33.2k|		node->ns.assign ( fullName, sepPos );
  210|  33.2k|		if ( node->ns == "http://purl.org/dc/1.1/" ) node->ns = "http://purl.org/dc/elements/1.1/";
  ------------------
  |  Branch (210:8): [True: 300, False: 32.9k]
  ------------------
  211|       |
  212|  33.2k|		bool found = XMPMeta::GetNamespacePrefix ( node->ns.c_str(), &prefix, &prefixLen );
  213|  33.2k|		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: 33.2k]
  ------------------
  214|  33.2k|		node->nsPrefixLen = prefixLen;	// ! Includes the ':'.
  215|       |		
  216|  33.2k|		node->name = prefix;
  217|  33.2k|		node->name += localPart;
  218|       |
  219|  33.2k|	} else {
  220|       |
  221|    979|		node->name = fullName;	// The name is not in a namespace.
  222|       |	
  223|    979|		if ( node->parent->name == "rdf:Description" ) {
  ------------------
  |  Branch (223:8): [True: 372, False: 607]
  ------------------
  224|    372|			if ( node->name == "about" ) {
  ------------------
  |  Branch (224:9): [True: 64, False: 308]
  ------------------
  225|     64|				node->ns   = kXMP_NS_RDF;
  226|     64|				node->name = "rdf:about";
  227|     64|				node->nsPrefixLen = 4;	// ! Include the ':'.
  228|    308|			} else if ( node->name == "ID" ) {
  ------------------
  |  Branch (228:16): [True: 20, False: 288]
  ------------------
  229|     20|				node->ns   = kXMP_NS_RDF;
  230|     20|				node->name = "rdf:ID";
  231|     20|				node->nsPrefixLen = 4;	// ! Include the ':'.
  232|     20|			}
  233|    372|		}
  234|       |		
  235|    979|	}
  236|       |
  237|  34.1k|}	// SetQualName
ExpatAdapter.cpp:_ZL17EndElementHandlerPvPKc:
  349|  19.3k|{
  350|  19.3k|	IgnoreParam(name);
  ------------------
  |  |  117|  19.3k|#define IgnoreParam(p)	(void)p
  ------------------
  351|       |	
  352|  19.3k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  353|       |
  354|       |	#if XMP_DebugBuild
  355|       |		--thiz->elemNesting;
  356|       |	#endif
  357|  19.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|  19.3k|}	// EndElementHandler
ExpatAdapter.cpp:_ZL20CharacterDataHandlerPvPKci:
  371|  40.4k|{
  372|  40.4k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  373|       |	
  374|  40.4k|	if ( (cData == 0) || (len == 0) ) { cData = ""; len = 0; }
  ------------------
  |  Branch (374:7): [True: 0, False: 40.4k]
  |  Branch (374:23): [True: 0, False: 40.4k]
  ------------------
  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|  40.4k|	XML_Node * parentNode = thiz->parseStack.back();
  386|  40.4k|	XML_Node * cDataNode  = new XML_Node ( parentNode, "", kCDataNode );
  387|       |	
  388|  40.4k|	cDataNode->value.assign ( cData, len );
  389|  40.4k|	parentNode->content.push_back ( cDataNode );
  390|       |	
  391|  40.4k|}	// CharacterDataHandler
ExpatAdapter.cpp:_ZL28ProcessingInstructionHandlerPvPKcS1_:
  436|  1.43k|{
  437|  1.43k|	XMP_Assert ( target != 0 );
  ------------------
  |  |  142|  1.43k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  438|  1.43k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  439|       |
  440|  1.43k|	if ( ! XMP_LitMatch ( target, "xpacket" ) ) return;	// Ignore all PIs except the XMP packet wrapper.
  ------------------
  |  |   96|  1.43k|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  |  Branch (440:7): [True: 728, False: 708]
  ------------------
  441|    708|	if ( data == 0 ) data = "";
  ------------------
  |  Branch (441:7): [True: 0, False: 708]
  ------------------
  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|    708|	XML_Node * parentNode = thiz->parseStack.back();
  451|    708|	XML_Node * piNode  = new XML_Node ( parentNode, target, kPINode );
  452|       |	
  453|    708|	piNode->value.assign ( data );
  454|    708|	parentNode->content.push_back ( piNode );
  455|       |	
  456|    708|}	// ProcessingInstructionHandler

_Z10ProcessRDFP8XMP_NodeRK8XML_Nodej:
  624|  3.24k|{
  625|  3.24k|	IgnoreParam(options);
  ------------------
  |  |  117|  3.24k|#define IgnoreParam(p)	(void)p
  ------------------
  626|       |	
  627|  3.24k|	RDF_RDF ( xmpTree, rdfNode );
  628|       |
  629|  3.24k|}	// ProcessRDF
ParseRDF.cpp:_ZL7RDF_RDFP8XMP_NodeRK8XML_Node:
  646|  3.24k|{
  647|       |
  648|  3.24k|	if ( ! xmlNode.attrs.empty() ) XMP_Throw ( "Invalid attributes of rdf:RDF element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     19|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (648:7): [True: 19, False: 3.22k]
  ------------------
  649|  3.22k|	RDF_NodeElementList ( xmpTree, xmlNode, kIsTopLevel );
  650|       |
  651|  3.22k|}	// RDF_RDF
ParseRDF.cpp:_ZL19RDF_NodeElementListP8XMP_NodeRK8XML_Nodeb:
  663|  3.22k|{
  664|  3.22k|	XMP_Assert ( isTopLevel );
  ------------------
  |  |  142|  3.22k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  665|       |	
  666|  3.22k|	XML_cNodePos currChild = xmlParent.content.begin();	// *** Change these loops to the indexed pattern.
  667|  3.22k|	XML_cNodePos endChild  = xmlParent.content.end();
  668|       |
  669|  8.02k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (669:10): [True: 4.79k, False: 3.22k]
  ------------------
  670|  4.79k|		if ( (*currChild)->IsWhitespaceNode() ) continue;
  ------------------
  |  Branch (670:8): [True: 1.53k, False: 3.26k]
  ------------------
  671|  3.26k|		RDF_NodeElement ( xmpParent, **currChild, isTopLevel );
  672|  3.26k|	}
  673|       |
  674|  3.22k|}	// RDF_NodeElementList
ParseRDF.cpp:_ZL15RDF_NodeElementP8XMP_NodeRK8XML_Nodeb:
  694|  4.42k|{
  695|  4.42k|	RDFTermKind nodeTerm = GetRDFTermKind ( xmlNode.name );
  696|  4.42k|	if ( (nodeTerm != kRDFTerm_Description) && (nodeTerm != kRDFTerm_Other) ) {
  ------------------
  |  Branch (696:7): [True: 1.26k, False: 3.16k]
  |  Branch (696:45): [True: 2, False: 1.26k]
  ------------------
  697|      2|		XMP_Throw ( "Node element must be rdf:Description or typedNode", kXMPErr_BadRDF );
  ------------------
  |  |  199|      2|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  698|      0|	}
  699|       |
  700|  4.42k|	if ( isTopLevel && (nodeTerm == kRDFTerm_Other) ) {
  ------------------
  |  Branch (700:7): [True: 3.26k, False: 1.16k]
  |  Branch (700:21): [True: 100, False: 3.16k]
  ------------------
  701|    100|		XMP_Throw ( "Top level typedNode not allowed", kXMPErr_BadXMP );
  ------------------
  |  |  199|    100|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  702|  4.32k|	} else {
  703|  4.32k|		RDF_NodeElementAttrs ( xmpParent, xmlNode, isTopLevel );
  704|  4.32k|		RDF_PropertyElementList ( xmpParent, xmlNode, isTopLevel );
  705|  4.32k|	}
  706|       |
  707|  4.42k|}	// RDF_NodeElement
ParseRDF.cpp:_ZL14GetRDFTermKindRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  264|  23.5k|{
  265|  23.5k|	RDFTermKind term = kRDFTerm_Other;
  266|       |
  267|       |	// Arranged to hopefully minimize the parse time for large XMP.
  268|       |
  269|  23.5k|	if ( (name.size() > 4) && (strncmp ( name.c_str(), "rdf:", 4 ) == 0) ) {
  ------------------
  |  Branch (269:7): [True: 23.4k, False: 99]
  |  Branch (269:28): [True: 9.81k, False: 13.6k]
  ------------------
  270|       |
  271|  9.81k|		if ( name == "rdf:li" ) {
  ------------------
  |  Branch (271:8): [True: 2.37k, False: 7.44k]
  ------------------
  272|  2.37k|			term = kRDFTerm_li;
  273|  7.44k|		} else if ( name == "rdf:parseType" ) {
  ------------------
  |  Branch (273:15): [True: 3, False: 7.43k]
  ------------------
  274|      3|			term = kRDFTerm_parseType;
  275|  7.43k|		} else if ( name == "rdf:Description" ) {
  ------------------
  |  Branch (275:15): [True: 3.16k, False: 4.27k]
  ------------------
  276|  3.16k|			term = kRDFTerm_Description;
  277|  4.27k|		} else if ( name == "rdf:about" ) {
  ------------------
  |  Branch (277:15): [True: 231, False: 4.04k]
  ------------------
  278|    231|			term = kRDFTerm_about;
  279|  4.04k|		} else if ( name == "rdf:resource" ) {
  ------------------
  |  Branch (279:15): [True: 5, False: 4.03k]
  ------------------
  280|      5|			term = kRDFTerm_resource;
  281|  4.03k|		} else if ( name == "rdf:RDF" ) {
  ------------------
  |  Branch (281:15): [True: 38, False: 4.00k]
  ------------------
  282|     38|			term = kRDFTerm_RDF;
  283|  4.00k|		} else if ( name == "rdf:ID" ) {
  ------------------
  |  Branch (283:15): [True: 202, False: 3.79k]
  ------------------
  284|    202|			term = kRDFTerm_ID;
  285|  3.79k|		} else if ( name == "rdf:nodeID" ) {
  ------------------
  |  Branch (285:15): [True: 39, False: 3.76k]
  ------------------
  286|     39|			term = kRDFTerm_nodeID;
  287|  3.76k|		} else if ( name == "rdf:datatype" ) {
  ------------------
  |  Branch (287:15): [True: 3, False: 3.75k]
  ------------------
  288|      3|			term = kRDFTerm_datatype;
  289|  3.75k|		} else if ( name == "rdf:aboutEach" ) {
  ------------------
  |  Branch (289:15): [True: 12, False: 3.74k]
  ------------------
  290|     12|			term = kRDFTerm_aboutEach;
  291|  3.74k|		} else if ( name == "rdf:aboutEachPrefix" ) {
  ------------------
  |  Branch (291:15): [True: 6, False: 3.73k]
  ------------------
  292|      6|			term = kRDFTerm_aboutEachPrefix;
  293|  3.73k|		} else if ( name == "rdf:bagID" ) {
  ------------------
  |  Branch (293:15): [True: 21, False: 3.71k]
  ------------------
  294|     21|			term = kRDFTerm_bagID;
  295|     21|		}
  296|       |
  297|  9.81k|	}
  298|       |
  299|  23.5k|	return term;
  300|       |
  301|  23.5k|}	// GetRDFTermKind
ParseRDF.cpp:_ZL20RDF_NodeElementAttrsP8XMP_NodeRK8XML_Nodeb:
  731|  4.32k|{
  732|  4.32k|	XMP_OptionBits exclusiveAttrs = 0;	// Used to detect attributes that are mutually exclusive.
  733|       |
  734|  4.32k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
  735|  4.32k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
  736|       |
  737|  14.6k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (737:10): [True: 10.7k, False: 3.90k]
  ------------------
  738|       |
  739|  10.7k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
  740|       |
  741|  10.7k|		switch ( attrTerm ) {
  742|       |
  743|     83|			case kRDFTerm_ID     :
  ------------------
  |  Branch (743:4): [True: 83, False: 10.7k]
  ------------------
  744|    101|			case kRDFTerm_nodeID :
  ------------------
  |  Branch (744:4): [True: 18, False: 10.7k]
  ------------------
  745|    332|			case kRDFTerm_about  :
  ------------------
  |  Branch (745:4): [True: 231, False: 10.5k]
  ------------------
  746|       |
  747|    332|				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: 332]
  ------------------
  748|    332|				exclusiveAttrs |= (1 << attrTerm);
  749|       |
  750|    332|				if ( isTopLevel && (attrTerm == kRDFTerm_about) ) {
  ------------------
  |  Branch (750:10): [True: 332, False: 0]
  |  Branch (750:24): [True: 231, False: 101]
  ------------------
  751|       |					// This is the rdf:about attribute on a top level node. Set the XMP tree name if
  752|       |					// it doesn't have a name yet. Make sure this name matches the XMP tree name.
  753|    231|					XMP_Assert ( xmpParent->parent == 0 );	// Must be the tree root node.
  ------------------
  |  |  142|    231|	#define XMP_Assert(c)	((void) 0)
  ------------------
  754|    231|					if ( xmpParent->name.empty() ) {
  ------------------
  |  Branch (754:11): [True: 231, False: 0]
  ------------------
  755|    231|						xmpParent->name = (*currAttr)->value;
  756|    231|					} 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|    231|				}
  760|       |
  761|    332|				break;
  762|       |
  763|  10.3k|			case kRDFTerm_Other :
  ------------------
  |  Branch (763:4): [True: 10.3k, False: 410]
  ------------------
  764|  10.3k|				AddChildNode ( xmpParent, **currAttr, (*currAttr)->value.c_str(), isTopLevel );
  765|  10.3k|				break;
  766|       |
  767|     78|			default :
  ------------------
  |  Branch (767:4): [True: 78, False: 10.7k]
  ------------------
  768|     78|				XMP_Throw ( "Invalid nodeElement attribute", kXMPErr_BadRDF );
  ------------------
  |  |  199|     78|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  769|       |
  770|  10.7k|		}
  771|       |
  772|  10.7k|	}
  773|       |
  774|  4.32k|}	// RDF_NodeElementAttrs
ParseRDF.cpp:_ZL12AddChildNodeP8XMP_NodeRK8XML_NodePKcb:
  362|  17.1k|{
  363|       |	#if 0
  364|       |		cout << "AddChildNode, parent = " << xmpParent->name << ", child = " << xmlNode.name;
  365|       |		cout << ", value = \"" << value << '"';
  366|       |		if ( isTopLevel ) cout << ", top level";
  367|       |		cout << endl;
  368|       |	#endif
  369|       |	
  370|  17.1k|	if ( xmlNode.ns.empty() ) {
  ------------------
  |  Branch (370:7): [True: 275, False: 16.8k]
  ------------------
  371|    275|		XMP_Throw ( "XML namespace required for all elements and attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|    275|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  372|      0|	}
  373|       |		
  374|  16.8k|	XMP_StringPtr  childName    = xmlNode.name.c_str();
  375|  16.8k|	const bool     isArrayItem  = (xmlNode.name == "rdf:li");
  376|  16.8k|	const bool     isValueNode  = (xmlNode.name == "rdf:value");
  377|  16.8k|	XMP_OptionBits childOptions = 0;
  378|       |	
  379|  16.8k|	if ( isTopLevel ) {
  ------------------
  |  Branch (379:7): [True: 13.4k, False: 3.41k]
  ------------------
  380|       |
  381|       |		// Lookup the schema node, adjust the XMP parent pointer.
  382|  13.4k|		XMP_Assert ( xmpParent->parent == 0 );	// Incoming parent must be the tree root.
  ------------------
  |  |  142|  13.4k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  383|  13.4k|		XMP_Node * schemaNode = FindSchemaNode ( xmpParent, xmlNode.ns.c_str(), kXMP_CreateNodes );
  ------------------
  |  |  295|  13.4k|#define kXMP_CreateNodes	true
  ------------------
  384|  13.4k|		if ( schemaNode->options & kXMP_NewImplicitNode ) schemaNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  13.4k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
              		if ( schemaNode->options & kXMP_NewImplicitNode ) schemaNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  5.86k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (384:8): [True: 5.86k, False: 7.58k]
  ------------------
  385|       |			// *** Should use "opt &= ~flag" (no conditional), need runtime check for proper 32 bit code.
  386|  13.4k|		xmpParent = schemaNode;
  387|       |		
  388|       |		// If this is an alias set the isAlias flag in the node and the hasAliases flag in the tree.
  389|  13.4k|		if ( sRegisteredAliasMap->find ( xmlNode.name ) != sRegisteredAliasMap->end() ) {
  ------------------
  |  Branch (389:8): [True: 0, False: 13.4k]
  ------------------
  390|      0|			childOptions |= kXMP_PropIsAlias;
  391|      0|			schemaNode->parent->options |= kXMP_PropHasAliases;
  392|      0|		}
  393|       |		
  394|  13.4k|	}
  395|       |
  396|       |	// Make sure that this is not a duplicate of a named node.
  397|  16.8k|	if ( ! (isArrayItem | isValueNode) ) {
  ------------------
  |  Branch (397:7): [True: 14.4k, False: 2.42k]
  ------------------
  398|  14.4k|		if ( FindChildNode ( xmpParent, childName, kXMP_ExistingOnly ) != 0 ) {
  ------------------
  |  |  296|  14.4k|#define kXMP_ExistingOnly	false
  ------------------
  |  Branch (398:8): [True: 1, False: 14.4k]
  ------------------
  399|      1|			XMP_Throw ( "Duplicate property or field node", kXMPErr_BadXMP );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  400|      0|		}
  401|       |		
  402|  14.4k|	}
  403|       |	
  404|       |	// Add the new child to the XMP parent node.
  405|  16.8k|	XMP_Node * newChild = new XMP_Node ( xmpParent, childName, value, childOptions );
  406|  16.8k|	if ( (! isValueNode) || xmpParent->children.empty() ) {
  ------------------
  |  Branch (406:7): [True: 16.7k, False: 78]
  |  Branch (406:26): [True: 42, False: 36]
  ------------------
  407|  16.8k|		 xmpParent->children.push_back ( newChild );
  408|  16.8k|	} else {
  409|     48|		 xmpParent->children.insert ( xmpParent->children.begin(), newChild );
  410|     48|	}
  411|  16.8k|	if ( isValueNode ) {
  ------------------
  |  Branch (411:7): [True: 78, False: 16.7k]
  ------------------
  412|     78|		if ( isTopLevel || (! (xmpParent->options & kXMP_PropValueIsStruct)) ) XMP_Throw ( "Misplaced rdf:value element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     78|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (412:8): [True: 78, False: 0]
  |  Branch (412:22): [True: 0, False: 0]
  ------------------
  413|      0|		xmpParent->options |= kRDF_HasValueElem;
  414|      0|	}
  415|       |	
  416|  16.7k|	if ( isArrayItem ) {
  ------------------
  |  Branch (416:7): [True: 2.34k, False: 14.4k]
  ------------------
  417|  2.34k|		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.34k]
  ------------------
  418|  2.34k|		newChild->name = kXMP_ArrayItemName;
  ------------------
  |  |  293|  2.34k|#define kXMP_ArrayItemName	"[]"
  ------------------
  419|       |		#if 0	// *** XMP_DebugBuild
  420|       |			newChild->_namePtr = newChild->name.c_str();
  421|       |		#endif
  422|  2.34k|	}
  423|       |	
  424|  16.7k|	return newChild;
  425|       |
  426|  16.7k|}	// AddChildNode
ParseRDF.cpp:_ZL23RDF_PropertyElementListP8XMP_NodeRK8XML_Nodeb:
  786|  3.90k|{
  787|  3.90k|	XML_cNodePos currChild = xmlParent.content.begin();
  788|  3.90k|	XML_cNodePos endChild  = xmlParent.content.end();
  789|       |
  790|  20.6k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (790:10): [True: 16.7k, False: 3.85k]
  ------------------
  791|  16.7k|		if ( (*currChild)->IsWhitespaceNode() ) continue;
  ------------------
  |  Branch (791:8): [True: 10.9k, False: 5.78k]
  ------------------
  792|  5.78k|		if ( (*currChild)->kind != kElemNode ) {
  ------------------
  |  Branch (792:8): [True: 46, False: 5.73k]
  ------------------
  793|     46|			XMP_Throw ( "Expected property element node not found", kXMPErr_BadRDF );
  ------------------
  |  |  199|     46|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  794|      0|		}
  795|  5.73k|		RDF_PropertyElement ( xmpParent, **currChild, isTopLevel );
  796|  5.73k|	}
  797|       |
  798|  3.90k|}	// RDF_PropertyElementList
ParseRDF.cpp:_ZL19RDF_PropertyElementP8XMP_NodeRK8XML_Nodeb:
  853|  5.73k|{
  854|  5.73k|	RDFTermKind nodeTerm = GetRDFTermKind ( xmlNode.name );
  855|  5.73k|	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.73k]
  ------------------
  856|       |	
  857|  5.73k|	if ( xmlNode.attrs.size() > 3 ) {
  ------------------
  |  Branch (857:7): [True: 124, False: 5.61k]
  ------------------
  858|       |
  859|       |		// Only an emptyPropertyElt can have more than 3 attributes.
  860|    124|		RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  861|       |
  862|  5.61k|	} 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.61k|		XML_cNodePos currAttr = xmlNode.attrs.begin();
  868|  5.61k|		XML_cNodePos endAttr  = xmlNode.attrs.end();
  869|  5.61k|		XMP_VarString * attrName = 0;
  870|       |
  871|  5.90k|		for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (871:11): [True: 643, False: 5.26k]
  ------------------
  872|    643|			attrName = &((*currAttr)->name);
  873|    643|			if ( (*attrName != "xml:lang") && (*attrName != "rdf:ID") ) break;
  ------------------
  |  Branch (873:9): [True: 410, False: 233]
  |  Branch (873:38): [True: 347, False: 63]
  ------------------
  874|    643|		}
  875|       |
  876|  5.61k|		if ( currAttr != endAttr ) {
  ------------------
  |  Branch (876:8): [True: 347, False: 5.26k]
  ------------------
  877|       |
  878|    347|			XMP_Assert ( attrName != 0 );
  ------------------
  |  |  142|    347|	#define XMP_Assert(c)	((void) 0)
  ------------------
  879|    347|			XMP_VarString& attrValue = (*currAttr)->value;
  880|       |
  881|    347|			if ( *attrName == "rdf:datatype" ) {
  ------------------
  |  Branch (881:9): [True: 0, False: 347]
  ------------------
  882|      0|				RDF_LiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  883|    347|			} else if ( *attrName != "rdf:parseType" ) {
  ------------------
  |  Branch (883:16): [True: 338, False: 9]
  ------------------
  884|    338|				RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  885|    338|			} else if ( attrValue == "Literal" ) {
  ------------------
  |  Branch (885:16): [True: 0, False: 9]
  ------------------
  886|      0|				RDF_ParseTypeLiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  887|      9|			} else if ( attrValue == "Resource" ) {
  ------------------
  |  Branch (887:16): [True: 0, False: 9]
  ------------------
  888|      0|				RDF_ParseTypeResourcePropertyElement ( xmpParent, xmlNode, isTopLevel );
  889|      9|			} else if ( attrValue == "Collection" ) {
  ------------------
  |  Branch (889:16): [True: 0, False: 9]
  ------------------
  890|      0|				RDF_ParseTypeCollectionPropertyElement ( xmpParent, xmlNode, isTopLevel );
  891|      9|			} else {
  892|      9|				RDF_ParseTypeOtherPropertyElement ( xmpParent, xmlNode, isTopLevel );
  893|      9|			}
  894|       |
  895|  5.26k|		} 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.26k|			if ( xmlNode.content.empty() ) {
  ------------------
  |  Branch (900:9): [True: 1.66k, False: 3.60k]
  ------------------
  901|       |
  902|  1.66k|				RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  903|       |
  904|  3.60k|			} else {
  905|       |			
  906|  3.60k|				XML_cNodePos currChild = xmlNode.content.begin();
  907|  3.60k|				XML_cNodePos endChild  = xmlNode.content.end();
  908|       |
  909|  10.6k|				for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (909:13): [True: 8.22k, False: 2.41k]
  ------------------
  910|  8.22k|					if ( (*currChild)->kind != kCDataNode ) break;
  ------------------
  |  Branch (910:11): [True: 1.18k, False: 7.03k]
  ------------------
  911|  8.22k|				}
  912|       |				
  913|  3.60k|				if ( currChild == endChild ) {
  ------------------
  |  Branch (913:10): [True: 2.41k, False: 1.18k]
  ------------------
  914|  2.41k|					RDF_LiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  915|  2.41k|				} else {
  916|  1.18k|					RDF_ResourcePropertyElement ( xmpParent, xmlNode, isTopLevel );
  917|  1.18k|				}
  918|       |			
  919|  3.60k|			}
  920|       |
  921|  5.26k|		}
  922|       |		
  923|  5.61k|	}
  924|       |
  925|  5.73k|}	// RDF_PropertyElement
ParseRDF.cpp:_ZL21IsPropertyElementNameh:
  349|  5.73k|{
  350|       |
  351|  5.73k|	if 	( (term == kRDFTerm_Description) || IsOldTerm ( term ) ) return false;
  ------------------
  |  Branch (351:8): [True: 0, False: 5.73k]
  |  Branch (351:42): [True: 0, False: 5.73k]
  ------------------
  352|  5.73k|	return (! IsCoreSyntaxTerm ( term ));
  353|       |
  354|  5.73k|}	// IsPropertyElementName
ParseRDF.cpp:_ZL9IsOldTermh:
  333|  5.73k|{
  334|       |
  335|  5.73k|	if 	( (kRDFTerm_FirstOld <= term) && (term <= kRDFTerm_LastOld) ) return true;
  ------------------
  |  Branch (335:8): [True: 0, False: 5.73k]
  |  Branch (335:39): [True: 0, False: 0]
  ------------------
  336|  5.73k|	return false;
  337|       |
  338|  5.73k|}	// IsOldTerm
ParseRDF.cpp:_ZL16IsCoreSyntaxTermh:
  316|  5.73k|{
  317|       |
  318|  5.73k|	if 	( (kRDFTerm_FirstCore <= term) && (term <= kRDFTerm_LastCore) ) return true;
  ------------------
  |  Branch (318:8): [True: 2.37k, False: 3.36k]
  |  Branch (318:40): [True: 3, False: 2.36k]
  ------------------
  319|  5.73k|	return false;
  320|       |
  321|  5.73k|}	// IsCoreSyntaxTerm
ParseRDF.cpp:_ZL24RDF_EmptyPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1189|  2.12k|{
 1190|  2.12k|	bool hasPropertyAttrs = false;
 1191|  2.12k|	bool hasResourceAttr  = false;
 1192|  2.12k|	bool hasNodeIDAttr    = false;
 1193|  2.12k|	bool hasValueAttr     = false;
 1194|       |	
 1195|  2.12k|	const XML_Node * valueNode = 0;	// ! Can come from rdf:value or rdf:resource.
 1196|       |	
 1197|  2.12k|	if ( ! xmlNode.content.empty() ) XMP_Throw ( "Nested content not allowed with rdf:resource or property attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|      9|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1197:7): [True: 9, False: 2.11k]
  ------------------
 1198|       |	
 1199|       |	// First figure out what XMP this maps to and remember the XML node for a simple value.
 1200|       |	
 1201|  2.11k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
 1202|  2.11k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
 1203|       |
 1204|  3.45k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1204:10): [True: 1.34k, False: 2.10k]
  ------------------
 1205|       |
 1206|  1.34k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
 1207|       |
 1208|  1.34k|		switch ( attrTerm ) {
 1209|       |
 1210|     63|			case kRDFTerm_ID :
  ------------------
  |  Branch (1210:4): [True: 63, False: 1.28k]
  ------------------
 1211|       |				// Nothing to do.
 1212|     63|				break;
 1213|       |
 1214|      5|			case kRDFTerm_resource :
  ------------------
  |  Branch (1214:4): [True: 5, False: 1.34k]
  ------------------
 1215|      5|				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: 5]
  ------------------
 1216|      5|				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: 2]
  ------------------
 1217|      2|				hasResourceAttr = true;
 1218|      2|				if ( ! hasValueAttr ) valueNode = *currAttr;
  ------------------
  |  Branch (1218:10): [True: 2, False: 0]
  ------------------
 1219|      2|				break;
 1220|       |
 1221|     12|			case kRDFTerm_nodeID :
  ------------------
  |  Branch (1221:4): [True: 12, False: 1.33k]
  ------------------
 1222|     12|				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: 12]
  ------------------
 1223|     12|				hasNodeIDAttr = true;
 1224|     12|				break;
 1225|       |
 1226|  1.26k|			case kRDFTerm_Other :
  ------------------
  |  Branch (1226:4): [True: 1.26k, False: 83]
  ------------------
 1227|  1.26k|				if ( (*currAttr)->name == "rdf:value" ) {
  ------------------
  |  Branch (1227:10): [True: 35, False: 1.22k]
  ------------------
 1228|     35|					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: 35]
  ------------------
 1229|     35|					hasValueAttr = true;
 1230|     35|					valueNode = *currAttr;
 1231|  1.22k|				} else if ( (*currAttr)->name != "xml:lang" ) {
  ------------------
  |  Branch (1231:17): [True: 1.17k, False: 54]
  ------------------
 1232|  1.17k|					hasPropertyAttrs = true;
 1233|  1.17k|				}
 1234|  1.26k|				break;
 1235|       |
 1236|  1.26k|			default :
  ------------------
  |  Branch (1236:4): [True: 3, False: 1.34k]
  ------------------
 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.34k|		}
 1241|       |
 1242|  1.34k|	}
 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|  2.10k|	XMP_Node * childNode = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
 1249|  2.10k|	bool childIsStruct = false;
 1250|       |	
 1251|  2.10k|	if ( hasValueAttr | hasResourceAttr ) {
  ------------------
  |  Branch (1251:7): [True: 32, False: 2.07k]
  ------------------
 1252|     32|		childNode->value = valueNode->value;
 1253|     32|		if ( ! hasValueAttr ) childNode->options |= kXMP_PropValueIsURI;	// ! Might have both rdf:value and rdf:resource.
  ------------------
  |  Branch (1253:8): [True: 2, False: 30]
  ------------------
 1254|  2.07k|	} else if ( hasPropertyAttrs ) {
  ------------------
  |  Branch (1254:14): [True: 400, False: 1.67k]
  ------------------
 1255|    400|		childNode->options |= kXMP_PropValueIsStruct;
 1256|    400|		childIsStruct = true;
 1257|    400|	}
 1258|       |		
 1259|  2.10k|	currAttr = xmlNode.attrs.begin();
 1260|  2.10k|	endAttr  = xmlNode.attrs.end();
 1261|       |
 1262|  3.39k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1262:10): [True: 1.29k, False: 2.10k]
  ------------------
 1263|       |
 1264|  1.29k|		if ( *currAttr == valueNode ) continue;	// Skip the rdf:value or rdf:resource attribute holding the value.
  ------------------
  |  Branch (1264:8): [True: 32, False: 1.26k]
  ------------------
 1265|  1.26k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
 1266|       |
 1267|  1.26k|		switch ( attrTerm ) {
 1268|       |
 1269|     54|			case kRDFTerm_ID       :
  ------------------
  |  Branch (1269:4): [True: 54, False: 1.20k]
  ------------------
 1270|     63|			case kRDFTerm_nodeID   :
  ------------------
  |  Branch (1270:4): [True: 9, False: 1.25k]
  ------------------
 1271|     63|				break;	// Ignore all rdf:ID and rdf:nodeID attributes.w
 1272|       |				
 1273|      0|			case kRDFTerm_resource :
  ------------------
  |  Branch (1273:4): [True: 0, False: 1.26k]
  ------------------
 1274|      0|				AddQualifierNode ( childNode, **currAttr );
 1275|      0|				break;
 1276|       |
 1277|  1.19k|			case kRDFTerm_Other :
  ------------------
  |  Branch (1277:4): [True: 1.19k, False: 63]
  ------------------
 1278|  1.19k|				if ( (! childIsStruct) || (*currAttr)->name == "xml:lang" ) {
  ------------------
  |  Branch (1278:10): [True: 125, False: 1.07k]
  |  Branch (1278:31): [True: 21, False: 1.05k]
  ------------------
 1279|    146|					AddQualifierNode ( childNode, **currAttr );
 1280|  1.05k|				} else {
 1281|  1.05k|					AddChildNode ( childNode, **currAttr, (*currAttr)->value.c_str(), false );
 1282|  1.05k|				}
 1283|  1.19k|				break;
 1284|       |
 1285|      0|			default :
  ------------------
  |  Branch (1285:4): [True: 0, False: 1.26k]
  ------------------
 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.26k|		}
 1290|       |
 1291|  1.26k|	}
 1292|       |
 1293|  2.10k|}	// RDF_EmptyPropertyElement
ParseRDF.cpp:_ZL16AddQualifierNodeP8XMP_NodeRK8XML_Node:
  483|    346|{
  484|    346|	if ( attr.ns.empty() ) {
  ------------------
  |  Branch (484:7): [True: 3, False: 343]
  ------------------
  485|      3|		XMP_Throw ( "XML namespace required for all elements and attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  486|      0|	}
  487|       |	
  488|    343|	return AddQualifierNode ( xmpParent, attr.name, attr.value );
  489|       |
  490|    346|}	// AddQualifierNode
ParseRDF.cpp:_ZL16AddQualifierNodeP8XMP_NodeRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  435|    359|{
  436|       |
  437|       |	#if 0
  438|       |		cout << "AddQualifierNode, parent = " << xmpParent->name << ", name = " << name;
  439|       |		cout << ", value = \"" << value << '"' << endl;
  440|       |	#endif
  441|       |	
  442|    359|	const bool isLang = (name == "xml:lang");
  443|    359|	const bool isType = (name == "rdf:type");
  444|       |
  445|    359|	XMP_Node * newQual = 0;
  446|       |
  447|    359|		newQual = new XMP_Node ( xmpParent, name, value, kXMP_PropIsQualifier );
  448|       |
  449|    359|		if ( ! (isLang | isType) ) {
  ------------------
  |  Branch (449:8): [True: 92, False: 267]
  ------------------
  450|     92|			xmpParent->qualifiers.push_back ( newQual );
  451|    267|		} else if ( isLang ) {
  ------------------
  |  Branch (451:15): [True: 251, False: 16]
  ------------------
  452|    251|			if ( xmpParent->qualifiers.empty() ) {
  ------------------
  |  Branch (452:9): [True: 251, False: 0]
  ------------------
  453|    251|				xmpParent->qualifiers.push_back ( newQual );
  454|    251|			} else {
  455|      0|				xmpParent->qualifiers.insert ( xmpParent->qualifiers.begin(), newQual );
  456|      0|			}
  457|    251|			xmpParent->options |= kXMP_PropHasLang;
  458|    251|		} else {
  459|     16|			XMP_Assert ( isType );
  ------------------
  |  |  142|     16|	#define XMP_Assert(c)	((void) 0)
  ------------------
  460|     16|			if ( xmpParent->qualifiers.empty() ) {
  ------------------
  |  Branch (460:9): [True: 16, False: 0]
  ------------------
  461|     16|				xmpParent->qualifiers.push_back ( newQual );
  462|     16|			} 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|     16|			xmpParent->options |= kXMP_PropHasType;
  468|     16|		}
  469|       |
  470|    359|		xmpParent->options |= kXMP_PropHasQualifiers;
  471|       |
  472|    359|	return newQual;
  473|       |
  474|    359|}	// AddQualifierNode
ParseRDF.cpp:_ZL26RDF_LiteralPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1014|  2.41k|{
 1015|  2.41k|	XMP_Node * newChild = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
 1016|       |	
 1017|  2.41k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
 1018|  2.41k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
 1019|       |
 1020|  2.61k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1020:10): [True: 198, False: 2.41k]
  ------------------
 1021|    198|		XMP_VarString & attrName = (*currAttr)->name;
 1022|    198|		if ( attrName == "xml:lang" ) {
  ------------------
  |  Branch (1022:8): [True: 198, False: 0]
  ------------------
 1023|    198|			AddQualifierNode ( newChild, **currAttr );
 1024|    198|		} 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|    198|	}
 1030|       |	
 1031|  2.41k|	XML_cNodePos currChild = xmlNode.content.begin();
 1032|  2.41k|	XML_cNodePos endChild  = xmlNode.content.end();
 1033|  2.41k|	size_t      textSize  = 0;
 1034|       |
 1035|  7.10k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (1035:10): [True: 4.68k, False: 2.41k]
  ------------------
 1036|  4.68k|		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.68k]
  ------------------
 1037|  4.68k|		textSize += (*currChild)->value.size();
 1038|  4.68k|	}
 1039|       |	
 1040|  2.41k|	newChild->value.reserve ( textSize );
 1041|       |
 1042|  7.10k|	for ( currChild = xmlNode.content.begin(); currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (1042:45): [True: 4.68k, False: 2.41k]
  ------------------
 1043|  4.68k|		newChild->value += (*currChild)->value;
 1044|  4.68k|	}
 1045|       |
 1046|       |	#if 0	// *** XMP_DebugBuild
 1047|       |		newChild->_valuePtr = newChild->value.c_str();
 1048|       |	#endif
 1049|       |	
 1050|  2.41k|}	// RDF_LiteralPropertyElement
ParseRDF.cpp:_ZL33RDF_ParseTypeOtherPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1146|      9|{
 1147|      9|	IgnoreParam(xmpParent); IgnoreParam(xmlNode); IgnoreParam(isTopLevel); 
  ------------------
  |  |  117|      9|#define IgnoreParam(p)	(void)p
  ------------------
              	IgnoreParam(xmpParent); IgnoreParam(xmlNode); IgnoreParam(isTopLevel); 
  ------------------
  |  |  117|      9|#define IgnoreParam(p)	(void)p
  ------------------
              	IgnoreParam(xmpParent); IgnoreParam(xmlNode); IgnoreParam(isTopLevel); 
  ------------------
  |  |  117|      9|#define IgnoreParam(p)	(void)p
  ------------------
 1148|       |
 1149|      9|	XMP_Throw ( "ParseTypeOther property element not allowed", kXMPErr_BadXMP );
  ------------------
  |  |  199|      9|#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.18k|{
  943|  1.18k|	if ( isTopLevel && (xmlNode.name == "iX:changes") ) return;	// Strip old "punchcard" chaff.
  ------------------
  |  Branch (943:7): [True: 1.17k, False: 6]
  |  Branch (943:21): [True: 0, False: 1.17k]
  ------------------
  944|       |	
  945|  1.18k|	XMP_Node * newCompound = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
  946|       |	
  947|  1.18k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
  948|  1.18k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
  949|       |
  950|  1.18k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (950:10): [True: 2, False: 1.18k]
  ------------------
  951|      2|		XMP_VarString & attrName = (*currAttr)->name;
  952|      2|		if ( attrName == "xml:lang" ) {
  ------------------
  |  Branch (952:8): [True: 2, False: 0]
  ------------------
  953|      2|			AddQualifierNode ( newCompound, **currAttr );
  954|      2|		} 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|      2|	}
  960|       |	
  961|  1.18k|	XML_cNodePos currChild = xmlNode.content.begin();
  962|  1.18k|	XML_cNodePos endChild  = xmlNode.content.end();
  963|       |
  964|  3.50k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (964:10): [True: 3.50k, False: 0]
  ------------------
  965|  3.50k|		if ( ! (*currChild)->IsWhitespaceNode() ) break;
  ------------------
  |  Branch (965:8): [True: 1.18k, False: 2.31k]
  ------------------
  966|  3.50k|	}
  967|  1.18k|	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.18k]
  ------------------
  968|  1.18k|	if ( (*currChild)->kind != kElemNode ) XMP_Throw ( "Children of resource property element must be XML elements", kXMPErr_BadRDF );
  ------------------
  |  |  199|     17|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (968:7): [True: 17, False: 1.16k]
  ------------------
  969|       |
  970|  1.16k|	if ( (*currChild)->name == "rdf:Bag" ) {
  ------------------
  |  Branch (970:7): [True: 134, False: 1.03k]
  ------------------
  971|    134|		newCompound->options |= kXMP_PropValueIsArray;
  972|  1.03k|	} else if ( (*currChild)->name == "rdf:Seq" ) {
  ------------------
  |  Branch (972:14): [True: 739, False: 294]
  ------------------
  973|    739|		newCompound->options |= kXMP_PropValueIsArray | kXMP_PropArrayIsOrdered;
  974|    739|	} else if ( (*currChild)->name == "rdf:Alt" ) {
  ------------------
  |  Branch (974:14): [True: 276, False: 18]
  ------------------
  975|    276|		newCompound->options |= kXMP_PropValueIsArray | kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate;
  976|    276|	} else {
  977|     18|		newCompound->options |= kXMP_PropValueIsStruct;
  978|     18|		if ( (*currChild)->name != "rdf:Description" ) {
  ------------------
  |  Branch (978:8): [True: 18, False: 0]
  ------------------
  979|     18|			XMP_VarString typeName ( (*currChild)->ns );
  980|     18|			size_t        colonPos = (*currChild)->name.find_first_of(':');
  981|     18|			if ( colonPos == XMP_VarString::npos ) XMP_Throw ( "All XML elements must be in a namespace", kXMPErr_BadXMP );
  ------------------
  |  |  199|      2|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (981:9): [True: 2, False: 16]
  ------------------
  982|     16|			typeName.append ( (*currChild)->name, colonPos, XMP_VarString::npos );
  983|     16|			AddQualifierNode ( newCompound, XMP_VarString("rdf:type"), typeName );
  984|     16|		}
  985|     18|	}
  986|       |
  987|  1.16k|	RDF_NodeElement ( newCompound, **currChild, kNotTopLevel );
  988|  1.16k|	if ( newCompound->options & kRDF_HasValueElem ) {
  ------------------
  |  Branch (988:7): [True: 0, False: 1.16k]
  ------------------
  989|      0|		FixupQualifiedNode ( newCompound );
  990|  1.16k|	} else if ( newCompound->options & kXMP_PropArrayIsAlternate ) {
  ------------------
  |  Branch (990:14): [True: 268, False: 897]
  ------------------
  991|    268|		DetectAltText ( newCompound );
  992|    268|	}
  993|       |
  994|  3.21k|	for ( ++currChild; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (994:21): [True: 2.07k, False: 1.14k]
  ------------------
  995|  2.07k|		if ( ! (*currChild)->IsWhitespaceNode() ) XMP_Throw ( "Invalid child of resource property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     21|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (995:8): [True: 21, False: 2.05k]
  ------------------
  996|  2.05k|	}
  997|       |
  998|  1.16k|}	// 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|  44.2k|{
  568|  44.2k|	UTF8Unit inUnit;	// ! Don't read until we know there is input.
  569|  44.2k|	size_t unitCount = 0;
  570|       |
  571|  44.2k|	UC_Assert ( (utf8In != 0) && (cpOut != 0) && (utf8Read != 0) );
  572|  44.2k|	if ( utf8Len == 0 ) goto Done;
  ------------------
  |  Branch (572:7): [True: 0, False: 44.2k]
  ------------------
  573|  44.2k|	inUnit = *utf8In;
  574|  44.2k|	if ( inUnit >= 0x80 ) goto MultiByte;	// ! Force linear execution path for ASCII.
  ------------------
  |  Branch (574:7): [True: 44.2k, 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|  44.2k|MultiByte:
  584|  44.2k|	CodePoint_from_UTF8_Multi ( utf8In, utf8Len, cpOut, utf8Read );
  585|  44.2k|	return;
  586|       |	
  587|      0|}	// CodePoint_from_UTF8
UnicodeConversions.cpp:_ZL25CodePoint_from_UTF8_MultiPKhmPjPm:
  516|  44.2k|{
  517|  44.2k|	UTF8Unit  inUnit = *utf8In;
  518|  44.2k|	size_t    unitCount = 0;
  519|  44.2k|	UTF32Unit cp;	// ! Avoid gcc complaints about declarations after goto's.
  520|  44.2k|	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|  44.2k|	size_t bytesNeeded = 0;	// Count the leading 1 bits in the first byte.
  535|   132k|	for ( UTF8Unit temp = inUnit; temp > 0x7F; temp = temp << 1 ) ++bytesNeeded;
  ------------------
  |  Branch (535:32): [True: 88.5k, False: 44.2k]
  ------------------
  536|       |		// *** Consider CPU-specific assembly inline, e.g. cntlzw on PowerPC.
  537|       |	
  538|  44.2k|	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: 44.2k]
  |  Branch (538:28): [True: 0, False: 44.2k]
  ------------------
  539|  44.2k|	if ( bytesNeeded > utf8Len ) goto Done;	// Not enough input in this buffer.
  ------------------
  |  Branch (539:7): [True: 0, False: 44.2k]
  ------------------
  540|  44.2k|	unitCount = bytesNeeded;
  541|       |	
  542|  44.2k|	cp = inUnit & ((1 << (7-unitCount)) - 1);	// Isolate the initial data bits in the bottom of cp.
  543|       |	
  544|  44.2k|	utf8Pos = utf8In + 1;	// We've absorbed the first byte.
  545|  88.5k|	for ( --bytesNeeded; bytesNeeded > 0; --bytesNeeded, ++utf8Pos ) {
  ------------------
  |  Branch (545:23): [True: 44.3k, False: 44.2k]
  ------------------
  546|  44.3k|		inUnit = *utf8Pos;
  547|  44.3k|		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: 44.3k]
  ------------------
  548|  44.3k|		cp = (cp << 6) | (inUnit & 0x3F);
  549|  44.3k|	}
  550|       |	
  551|  44.2k|	if ( cp >= 0xD800 ) {	// Skip the next comparisons most of the time.
  ------------------
  |  Branch (551:7): [True: 13, False: 44.2k]
  ------------------
  552|     13|		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: 13, False: 0]
  |  Branch (552:26): [True: 0, False: 13]
  ------------------
  553|     13|		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: 13]
  ------------------
  554|     13|	}
  555|       |	
  556|  44.2k|	*cpOut = cp;	// ! Don't put after Done, don't write if no input.
  557|       |	
  558|  44.2k|Done:	
  559|  44.2k|	*utf8Read = unitCount;
  560|  44.2k|	return;
  561|       |	
  562|  44.2k|}	// CodePoint_from_UTF8_Multi

XMPCore_Impl.cpp:_ZL19VerifySimpleXMLNamePKcS0_:
   87|  46.4k|{
   88|       |
   89|  46.4k|	const XMP_Uns8 * nameStart = (const XMP_Uns8 *) _nameStart;
   90|  46.4k|	const XMP_Uns8 * nameEnd   = (const XMP_Uns8 *) _nameEnd;
   91|  46.4k|	const XMP_Uns8 * namePos   = nameStart;
   92|  46.4k|	XMP_Uns32 cp;
   93|       |	
   94|       |	// The first character is more restricted.
   95|       |	
   96|  46.4k|	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: 46.4k]
  ------------------
   97|       |
   98|  46.4k|	cp = *namePos;
   99|  46.4k|	if ( cp < 0x80 ) {
  ------------------
  |  Branch (99:7): [True: 46.3k, False: 105]
  ------------------
  100|  46.3k|		++namePos;
  101|  46.3k|		if ( ! IsStartChar_ASCII(cp) ) goto NameError;
  ------------------
  |  Branch (101:8): [True: 0, False: 46.3k]
  ------------------
  102|  46.3k|	} else {
  103|    105|		cp = GetCodePoint ( &namePos );
  104|    105|		if ( ! IsStartChar_NonASCII(cp) ) goto NameError;
  ------------------
  |  Branch (104:8): [True: 0, False: 105]
  ------------------
  105|    105|	}
  106|       |
  107|       |	// Check the rest of the name.
  108|       |	
  109|  3.20M|	while ( namePos < nameEnd ) {
  ------------------
  |  Branch (109:10): [True: 3.15M, False: 46.4k]
  ------------------
  110|  3.15M|		cp = *namePos;
  111|  3.15M|		if ( cp < 0x80 ) {
  ------------------
  |  Branch (111:8): [True: 3.13M, False: 21.2k]
  ------------------
  112|  3.13M|			++namePos;
  113|  3.13M|			if ( (! IsStartChar_ASCII(cp)) && (! IsOtherChar_ASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (113:9): [True: 96.0k, False: 3.04M]
  |  Branch (113:38): [True: 0, False: 96.0k]
  ------------------
  114|  3.13M|		} else {
  115|  21.2k|			cp = GetCodePoint ( &namePos );
  116|  21.2k|			if ( (! IsStartChar_NonASCII(cp)) && (! IsOtherChar_NonASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (116:9): [True: 18.3k, False: 2.88k]
  |  Branch (116:41): [True: 0, False: 18.3k]
  ------------------
  117|  21.2k|		}
  118|  3.15M|	}
  119|       |
  120|  46.4k|	return;
  121|       |
  122|  46.4k|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.18M|{
   32|       |	// ASCII starting characters for an XML name.
   33|  3.18M|	if ( (('a' <= cp) && (cp <= 'z')) || (('A' <= cp) && (cp <= 'Z')) || (cp == '_') ) return true;
  ------------------
  |  Branch (33:8): [True: 2.41M, False: 767k]
  |  Branch (33:23): [True: 2.41M, False: 0]
  |  Branch (33:40): [True: 671k, False: 96.0k]
  |  Branch (33:55): [True: 664k, False: 6.63k]
  |  Branch (33:71): [True: 6.63k, False: 96.0k]
  ------------------
   34|  96.0k|	return false;
   35|  3.18M|}
XMPCore_Impl.cpp:_ZL12GetCodePointPPKh:
   19|  21.3k|{
   20|  21.3k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  21.3k|	XMP_Uns32 cp;
   22|  21.3k|	size_t u8Len;
   23|  21.3k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  21.3k|	*utf8Str_io = u8Ptr + u8Len;
   25|  21.3k|	return cp;
   26|  21.3k|}
XMPCore_Impl.cpp:_ZL20IsStartChar_NonASCIIj:
   40|  21.3k|{
   41|       |	// Non-ASCII starting characters for an XML name.
   42|       |	
   43|  21.3k|	if ( ((0xC0 <= cp) && (cp <= 0xD6))  || ((0xD8 <= cp) && (cp <= 0xF6)) ) return true;
  ------------------
  |  Branch (43:8): [True: 3.06k, False: 18.2k]
  |  Branch (43:24): [True: 138, False: 2.92k]
  |  Branch (43:43): [True: 2.92k, False: 18.2k]
  |  Branch (43:59): [True: 173, False: 2.75k]
  ------------------
   44|  21.0k|	if ( ((0xF8 <= cp) && (cp <= 0x2FF)) || ((0x370 <= cp) && (cp <= 0x37D)) ) return true;
  ------------------
  |  Branch (44:8): [True: 2.75k, False: 18.2k]
  |  Branch (44:24): [True: 1.49k, False: 1.25k]
  |  Branch (44:43): [True: 1.18k, False: 18.3k]
  |  Branch (44:60): [True: 0, False: 1.18k]
  ------------------
   45|       |
   46|  19.5k|	if ( ((0x37F <= cp) && (cp <= 0x1FFF))  || ((0x200C <= cp) && (cp <= 0x200D)) ) return true;
  ------------------
  |  Branch (46:8): [True: 1.18k, False: 18.3k]
  |  Branch (46:25): [True: 1.17k, False: 3]
  |  Branch (46:46): [True: 3, False: 18.3k]
  |  Branch (46:64): [True: 0, False: 3]
  ------------------
   47|  18.3k|	if ( ((0x2070 <= cp) && (cp <= 0x218F)) || ((0x2C00 <= cp) && (cp <= 0x2FEF)) ) return true;
  ------------------
  |  Branch (47:8): [True: 3, False: 18.3k]
  |  Branch (47:26): [True: 0, False: 3]
  |  Branch (47:46): [True: 3, False: 18.3k]
  |  Branch (47:64): [True: 0, False: 3]
  ------------------
   48|  18.3k|	if ( ((0x3001 <= cp) && (cp <= 0xD7FF)) || ((0xF900 <= cp) && (cp <= 0xFDCF)) ) return true;
  ------------------
  |  Branch (48:8): [True: 3, False: 18.3k]
  |  Branch (48:26): [True: 3, False: 0]
  |  Branch (48:46): [True: 0, False: 18.3k]
  |  Branch (48:64): [True: 0, False: 0]
  ------------------
   49|  18.3k|	if ( ((0xFDF0 <= cp) && (cp <= 0xFFFD)) || ((0x10000 <= cp) && (cp <= 0xEFFFF)) ) return true;
  ------------------
  |  Branch (49:8): [True: 0, False: 18.3k]
  |  Branch (49:26): [True: 0, False: 0]
  |  Branch (49:46): [True: 0, False: 18.3k]
  |  Branch (49:65): [True: 0, False: 0]
  ------------------
   50|       |
   51|  18.3k|	return false;
   52|       |
   53|  18.3k|}
XMPCore_Impl.cpp:_ZL17IsOtherChar_ASCIIj:
   58|  96.0k|{
   59|       |	// ASCII following characters for an XML name.
   60|  96.0k|	if ( (('0' <= cp) && (cp <= '9')) || (cp == '-') || (cp == '.') ) return true;
  ------------------
  |  Branch (60:8): [True: 52.9k, False: 43.1k]
  |  Branch (60:23): [True: 52.9k, False: 0]
  |  Branch (60:39): [True: 39.4k, False: 3.69k]
  |  Branch (60:54): [True: 3.69k, False: 0]
  ------------------
   61|      0|	return false;
   62|  96.0k|}
XMPCore_Impl.cpp:_ZL20IsOtherChar_NonASCIIj:
   67|  18.3k|{
   68|       |	// Non-ASCII following characters for an XML name.
   69|  18.3k|	if ( (cp == 0xB7) || ((0x300 <= cp) && (cp <= 0x36F))  || ((0x203F <= cp) && (cp <= 0x2040)) ) return true;
  ------------------
  |  Branch (69:7): [True: 18.2k, False: 74]
  |  Branch (69:24): [True: 74, False: 0]
  |  Branch (69:41): [True: 74, False: 0]
  |  Branch (69:61): [True: 0, False: 0]
  |  Branch (69:79): [True: 0, False: 0]
  ------------------
   70|      0|	return false;
   71|  18.3k|}
XMPMeta-GetSet.cpp:_ZL12GetCodePointPPKh:
   19|  1.45k|{
   20|  1.45k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  1.45k|	XMP_Uns32 cp;
   22|  1.45k|	size_t u8Len;
   23|  1.45k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  1.45k|	*utf8Str_io = u8Ptr + u8Len;
   25|  1.45k|	return cp;
   26|  1.45k|}
XMPMeta.cpp:_ZL19VerifySimpleXMLNamePKcS0_:
   87|  11.1k|{
   88|       |
   89|  11.1k|	const XMP_Uns8 * nameStart = (const XMP_Uns8 *) _nameStart;
   90|  11.1k|	const XMP_Uns8 * nameEnd   = (const XMP_Uns8 *) _nameEnd;
   91|  11.1k|	const XMP_Uns8 * namePos   = nameStart;
   92|  11.1k|	XMP_Uns32 cp;
   93|       |	
   94|       |	// The first character is more restricted.
   95|       |	
   96|  11.1k|	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: 11.1k]
  ------------------
   97|       |
   98|  11.1k|	cp = *namePos;
   99|  11.1k|	if ( cp < 0x80 ) {
  ------------------
  |  Branch (99:7): [True: 11.0k, False: 71]
  ------------------
  100|  11.0k|		++namePos;
  101|  11.0k|		if ( ! IsStartChar_ASCII(cp) ) goto NameError;
  ------------------
  |  Branch (101:8): [True: 0, False: 11.0k]
  ------------------
  102|  11.0k|	} else {
  103|     71|		cp = GetCodePoint ( &namePos );
  104|     71|		if ( ! IsStartChar_NonASCII(cp) ) goto NameError;
  ------------------
  |  Branch (104:8): [True: 0, False: 71]
  ------------------
  105|     71|	}
  106|       |
  107|       |	// Check the rest of the name.
  108|       |	
  109|  2.83M|	while ( namePos < nameEnd ) {
  ------------------
  |  Branch (109:10): [True: 2.82M, False: 11.1k]
  ------------------
  110|  2.82M|		cp = *namePos;
  111|  2.82M|		if ( cp < 0x80 ) {
  ------------------
  |  Branch (111:8): [True: 2.80M, False: 21.3k]
  ------------------
  112|  2.80M|			++namePos;
  113|  2.80M|			if ( (! IsStartChar_ASCII(cp)) && (! IsOtherChar_ASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (113:9): [True: 76.8k, False: 2.72M]
  |  Branch (113:38): [True: 0, False: 76.8k]
  ------------------
  114|  2.80M|		} else {
  115|  21.3k|			cp = GetCodePoint ( &namePos );
  116|  21.3k|			if ( (! IsStartChar_NonASCII(cp)) && (! IsOtherChar_NonASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (116:9): [True: 18.2k, False: 3.15k]
  |  Branch (116:41): [True: 0, False: 18.2k]
  ------------------
  117|  21.3k|		}
  118|  2.82M|	}
  119|       |
  120|  11.1k|	return;
  121|       |
  122|  11.1k|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.81M|{
   32|       |	// ASCII starting characters for an XML name.
   33|  2.81M|	if ( (('a' <= cp) && (cp <= 'z')) || (('A' <= cp) && (cp <= 'Z')) || (cp == '_') ) return true;
  ------------------
  |  Branch (33:8): [True: 2.12M, False: 689k]
  |  Branch (33:23): [True: 2.12M, False: 0]
  |  Branch (33:40): [True: 612k, False: 76.8k]
  |  Branch (33:55): [True: 606k, False: 5.54k]
  |  Branch (33:71): [True: 5.54k, False: 76.8k]
  ------------------
   34|  76.8k|	return false;
   35|  2.81M|}
XMPMeta.cpp:_ZL12GetCodePointPPKh:
   19|  21.4k|{
   20|  21.4k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  21.4k|	XMP_Uns32 cp;
   22|  21.4k|	size_t u8Len;
   23|  21.4k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  21.4k|	*utf8Str_io = u8Ptr + u8Len;
   25|  21.4k|	return cp;
   26|  21.4k|}
XMPMeta.cpp:_ZL20IsStartChar_NonASCIIj:
   40|  21.4k|{
   41|       |	// Non-ASCII starting characters for an XML name.
   42|       |	
   43|  21.4k|	if ( ((0xC0 <= cp) && (cp <= 0xD6))  || ((0xD8 <= cp) && (cp <= 0xF6)) ) return true;
  ------------------
  |  Branch (43:8): [True: 3.24k, False: 18.2k]
  |  Branch (43:24): [True: 41, False: 3.19k]
  |  Branch (43:43): [True: 3.19k, False: 18.2k]
  |  Branch (43:59): [True: 369, False: 2.83k]
  ------------------
   44|  21.0k|	if ( ((0xF8 <= cp) && (cp <= 0x2FF)) || ((0x370 <= cp) && (cp <= 0x37D)) ) return true;
  ------------------
  |  Branch (44:8): [True: 2.83k, False: 18.2k]
  |  Branch (44:24): [True: 2.03k, False: 796]
  |  Branch (44:43): [True: 780, False: 18.2k]
  |  Branch (44:60): [True: 0, False: 780]
  ------------------
   45|       |
   46|  19.0k|	if ( ((0x37F <= cp) && (cp <= 0x1FFF))  || ((0x200C <= cp) && (cp <= 0x200D)) ) return true;
  ------------------
  |  Branch (46:8): [True: 780, False: 18.2k]
  |  Branch (46:25): [True: 729, False: 51]
  |  Branch (46:46): [True: 51, False: 18.2k]
  |  Branch (46:64): [True: 0, False: 51]
  ------------------
   47|  18.2k|	if ( ((0x2070 <= cp) && (cp <= 0x218F)) || ((0x2C00 <= cp) && (cp <= 0x2FEF)) ) return true;
  ------------------
  |  Branch (47:8): [True: 51, False: 18.2k]
  |  Branch (47:26): [True: 0, False: 51]
  |  Branch (47:46): [True: 51, False: 18.2k]
  |  Branch (47:64): [True: 0, False: 51]
  ------------------
   48|  18.2k|	if ( ((0x3001 <= cp) && (cp <= 0xD7FF)) || ((0xF900 <= cp) && (cp <= 0xFDCF)) ) return true;
  ------------------
  |  Branch (48:8): [True: 51, False: 18.2k]
  |  Branch (48:26): [True: 51, False: 0]
  |  Branch (48:46): [True: 0, False: 18.2k]
  |  Branch (48:64): [True: 0, False: 0]
  ------------------
   49|  18.2k|	if ( ((0xFDF0 <= cp) && (cp <= 0xFFFD)) || ((0x10000 <= cp) && (cp <= 0xEFFFF)) ) return true;
  ------------------
  |  Branch (49:8): [True: 0, False: 18.2k]
  |  Branch (49:26): [True: 0, False: 0]
  |  Branch (49:46): [True: 0, False: 18.2k]
  |  Branch (49:65): [True: 0, False: 0]
  ------------------
   50|       |
   51|  18.2k|	return false;
   52|       |
   53|  18.2k|}
XMPMeta.cpp:_ZL17IsOtherChar_ASCIIj:
   58|  76.8k|{
   59|       |	// ASCII following characters for an XML name.
   60|  76.8k|	if ( (('0' <= cp) && (cp <= '9')) || (cp == '-') || (cp == '.') ) return true;
  ------------------
  |  Branch (60:8): [True: 36.4k, False: 40.4k]
  |  Branch (60:23): [True: 36.4k, False: 0]
  |  Branch (60:39): [True: 38.1k, False: 2.27k]
  |  Branch (60:54): [True: 2.27k, False: 0]
  ------------------
   61|      0|	return false;
   62|  76.8k|}
XMPMeta.cpp:_ZL20IsOtherChar_NonASCIIj:
   67|  18.2k|{
   68|       |	// Non-ASCII following characters for an XML name.
   69|  18.2k|	if ( (cp == 0xB7) || ((0x300 <= cp) && (cp <= 0x36F))  || ((0x203F <= cp) && (cp <= 0x2040)) ) return true;
  ------------------
  |  Branch (69:7): [True: 18.2k, False: 16]
  |  Branch (69:24): [True: 16, False: 0]
  |  Branch (69:41): [True: 16, False: 0]
  |  Branch (69:61): [True: 0, False: 0]
  |  Branch (69:79): [True: 0, False: 0]
  ------------------
   70|      0|	return false;
   71|  18.2k|}

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

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

WXMPUtils_ConvertToDate_1:
  339|    158|{
  340|    158|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPUtils_ConvertToDate_1" )
  ------------------
  |  |  235|    158|	AnnounceNoLock ( proc );								\
  |  |  236|    158|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|    158|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|    158|	try {													\
  |  |  238|    158|		wResult->errMessage = 0;
  ------------------
  341|       |
  342|    158|		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: 158]
  ------------------
  343|    158|		XMPUtils::ConvertToDate ( strValue, binValue );
  344|       |
  345|    158|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|    158|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|    158|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|    101|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|    101|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|    101|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|    101|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 101]
  |  |  |  |  ------------------
  |  |  |  |  270|    101|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|    101|	} 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|    158|	AnnounceExit();
  ------------------
  346|    158|}
WXMPUtils_ConvertToLocalTime_1:
  395|     57|{
  396|     57|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPUtils_ConvertToLocalTime_1" )
  ------------------
  |  |  235|     57|	AnnounceNoLock ( proc );								\
  |  |  236|     57|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|     57|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|     57|	try {													\
  |  |  238|     57|		wResult->errMessage = 0;
  ------------------
  397|       |
  398|     57|		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: 57]
  ------------------
  399|     57|		XMPUtils::ConvertToLocalTime ( time );
  400|       |
  401|     57|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|     57|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|     57|	} 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|     57|	AnnounceExit();
  ------------------
  402|     57|}

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

_ZNK8XML_Node16IsWhitespaceNodeEv:
   39|  27.1k|{
   40|  27.1k|	if ( this->kind != kCDataNode ) return false;
  ------------------
  |  Branch (40:7): [True: 10.1k, False: 17.0k]
  ------------------
   41|       |
   42|  56.6k|	for ( size_t i = 0; i < this->value.size(); ++i ) {
  ------------------
  |  Branch (42:22): [True: 39.7k, False: 16.8k]
  ------------------
   43|  39.7k|		unsigned char ch = this->value[i];
   44|  39.7k|		if ( IsWhitespaceChar ( ch ) ) continue;
  ------------------
  |  |   45|  39.7k|#define IsWhitespaceChar(ch)	( ((ch) == ' ') || ((ch) == 0x09) || ((ch) == 0x0A) || ((ch) == 0x0D) )
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 30.3k, False: 9.42k]
  |  |  |  Branch (45:49): [True: 346, False: 9.07k]
  |  |  |  Branch (45:67): [True: 8.93k, False: 142]
  |  |  |  Branch (45:85): [True: 0, False: 142]
  |  |  ------------------
  ------------------
   45|       |		// *** Add checks for other whitespace characters.
   46|    142|		return false;	// All the checks failed, this isn't whitespace.
   47|  39.7k|	}
   48|       |
   49|  16.8k|	return true;
   50|       |
   51|  17.0k|}	// XML_Node::IsWhitespaceNode
_ZN8XML_Node11RemoveAttrsEv:
  427|  78.8k|{
  428|       |
  429|  93.6k|	for ( size_t i = 0, vLim = this->attrs.size(); i < vLim; ++i ) delete this->attrs[i];
  ------------------
  |  Branch (429:49): [True: 14.8k, False: 78.8k]
  ------------------
  430|  78.8k|	this->attrs.clear();
  431|       |
  432|  78.8k|}	// XML_Node::RemoveAttrs
_ZN8XML_Node13RemoveContentEv:
  439|  78.8k|{
  440|       |
  441|   139k|	for ( size_t i = 0, vLim = this->content.size(); i < vLim; ++i ) delete this->content[i];
  ------------------
  |  Branch (441:51): [True: 60.5k, False: 78.8k]
  ------------------
  442|  78.8k|	this->content.clear();
  443|       |
  444|  78.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|  54.9k|	void XMP_EnterCriticalRegion ( XMP_Mutex & mutex ) {
  124|  54.9k|		int err = pthread_mutex_lock ( &mutex );
  125|  54.9k|		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: 54.9k]
  ------------------
  126|  54.9k|	}
_Z22XMP_ExitCriticalRegionR15pthread_mutex_t:
  128|  54.9k|	void XMP_ExitCriticalRegion ( XMP_Mutex & mutex ) {
  129|  54.9k|		int err = pthread_mutex_unlock ( &mutex );
  130|  54.9k|		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: 54.9k]
  ------------------
  131|  54.9k|	}
_Z16VerifySetOptionsjPKc:
  563|  4.81k|{
  564|       |
  565|  4.81k|	if ( options & kXMP_PropArrayIsAltText )   options |= kXMP_PropArrayIsAlternate;
  ------------------
  |  Branch (565:7): [True: 11, False: 4.80k]
  ------------------
  566|  4.81k|	if ( options & kXMP_PropArrayIsAlternate ) options |= kXMP_PropArrayIsOrdered;
  ------------------
  |  Branch (566:7): [True: 98, False: 4.71k]
  ------------------
  567|  4.81k|	if ( options & kXMP_PropArrayIsOrdered )   options |= kXMP_PropValueIsArray;
  ------------------
  |  Branch (567:7): [True: 424, False: 4.39k]
  ------------------
  568|       |	
  569|  4.81k|	if ( options & ~kXMP_AllSetOptionsMask ) {
  ------------------
  |  Branch (569:7): [True: 0, False: 4.81k]
  ------------------
  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.81k|	if ( (options & kXMP_PropValueIsStruct) && (options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (573:7): [True: 143, False: 4.67k]
  |  Branch (573:45): [True: 0, False: 143]
  ------------------
  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.81k|	if ( (options & kXMP_PropValueOptionsMask) && (options & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (577:7): [True: 0, False: 4.81k]
  |  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.81k|	if ( (propValue != 0) && (options & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (581:7): [True: 3.99k, False: 818]
  |  Branch (581:27): [True: 0, False: 3.99k]
  ------------------
  582|      0|		XMP_Throw ( "Structs and arrays can't have string values", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  583|      0|	}
  584|       |
  585|  4.81k|	return options;
  586|       |
  587|  4.81k|}	// VerifySetOptions
_Z11ExpandXPathPKcS0_PNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEE:
  662|  23.8k|{
  663|  23.8k|	XMP_Assert ( (schemaNS != 0) && (propPath != 0) && (*propPath != 0) && (expandedXPath != 0) );
  ------------------
  |  |  142|  23.8k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  664|       |	
  665|  23.8k|	XMP_StringPtr	stepBegin, stepEnd;
  666|  23.8k|	XMP_StringPtr	qualName, nameEnd;
  667|  23.8k|	XMP_VarString	currStep;
  668|       |		
  669|  23.8k|	qualName = nameEnd = NULL;
  670|  23.8k|	size_t resCount = 2;	// Guess at the number of steps. At least 2, plus 1 for each '/' or '['.
  671|  3.29M|	for ( stepEnd = propPath; *stepEnd != 0; ++stepEnd ) {
  ------------------
  |  Branch (671:28): [True: 3.26M, False: 23.8k]
  ------------------
  672|  3.26M|		if ( (*stepEnd == '/') || (*stepEnd == '[') ) ++resCount;
  ------------------
  |  Branch (672:8): [True: 1.83k, False: 3.26M]
  |  Branch (672:29): [True: 6.48k, False: 3.26M]
  ------------------
  673|  3.26M|	}
  674|       |	
  675|  23.8k|	expandedXPath->clear();
  676|  23.8k|	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|  23.8k|	stepBegin = propPath;
  683|  23.8k|	stepEnd = stepBegin;
  684|  3.24M|	while ( (*stepEnd != 0) && (*stepEnd != '/') && (*stepEnd != '[') && (*stepEnd != '*') ) ++stepEnd;
  ------------------
  |  Branch (684:10): [True: 3.22M, False: 16.9k]
  |  Branch (684:29): [True: 3.22M, False: 376]
  |  Branch (684:50): [True: 3.22M, False: 6.48k]
  |  Branch (684:71): [True: 3.22M, False: 0]
  ------------------
  685|  23.8k|	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: 23.8k]
  ------------------
  686|  23.8k|	currStep.assign ( stepBegin, (stepEnd - stepBegin) );
  687|       |	
  688|  23.8k|	VerifyXPathRoot ( schemaNS, currStep.c_str(), expandedXPath );
  689|       |
  690|  23.8k|	XMP_OptionBits stepFlags = kXMP_StructFieldStep;	
  691|  23.8k|	if ( sRegisteredAliasMap->find ( (*expandedXPath)[kRootPropStep].step ) != sRegisteredAliasMap->end() ) {
  ------------------
  |  Branch (691:7): [True: 0, False: 23.8k]
  ------------------
  692|      0|		stepFlags |= kXMP_StepIsAlias;
  693|      0|	}
  694|  23.8k|	(*expandedXPath)[kRootPropStep].options |= stepFlags;
  695|       |		
  696|       |	// -----------------------------------------------------
  697|       |	// Now continue to process the rest of the XPath string.
  698|       |
  699|  32.1k|	while ( *stepEnd != 0 ) {
  ------------------
  |  Branch (699:10): [True: 8.32k, False: 23.8k]
  ------------------
  700|       |
  701|  8.32k|		stepBegin = stepEnd;
  702|  8.32k|		if ( *stepBegin == '/' ) ++stepBegin;
  ------------------
  |  Branch (702:8): [True: 1.83k, False: 6.48k]
  ------------------
  703|  8.32k|		if ( *stepBegin == '*' ) {
  ------------------
  |  Branch (703:8): [True: 0, False: 8.32k]
  ------------------
  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.32k|		stepEnd = stepBegin;
  708|       |
  709|  8.32k|		if ( *stepBegin != '[' ) {
  ------------------
  |  Branch (709:8): [True: 1.83k, False: 6.48k]
  ------------------
  710|       |		
  711|       |			// A struct field or qualifier.
  712|  1.83k|			qualName = stepBegin;
  713|  30.1k|			while ( (*stepEnd != 0) && (*stepEnd != '/') && (*stepEnd != '[') && (*stepEnd != '*') ) ++stepEnd;
  ------------------
  |  Branch (713:12): [True: 28.3k, False: 1.83k]
  |  Branch (713:31): [True: 28.3k, False: 0]
  |  Branch (713:52): [True: 28.3k, False: 0]
  |  Branch (713:73): [True: 28.3k, False: 0]
  ------------------
  714|  1.83k|			nameEnd = stepEnd;
  715|  1.83k|			stepFlags = kXMP_StructFieldStep;	// ! Touch up later, also changing '@' to '?'.
  716|       |			
  717|  6.48k|		} else {
  718|       |		
  719|       |			// One of the array forms.
  720|       |		
  721|  6.48k|			++stepEnd;	// Look at the character after the leading '['.
  722|       |			
  723|  6.48k|			if ( ('0' <= *stepEnd) && (*stepEnd <= '9') ) {
  ------------------
  |  Branch (723:9): [True: 6.48k, False: 0]
  |  Branch (723:30): [True: 6.48k, False: 0]
  ------------------
  724|       |
  725|       |				// A numeric (decimal integer) array index.
  726|  12.9k|				while ( (*stepEnd != 0) && ('0' <= *stepEnd) && (*stepEnd <= '9') ) ++stepEnd;
  ------------------
  |  Branch (726:13): [True: 12.9k, False: 0]
  |  Branch (726:32): [True: 12.9k, False: 0]
  |  Branch (726:53): [True: 6.48k, False: 6.48k]
  ------------------
  727|  6.48k|				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.48k]
  ------------------
  728|  6.48k|				stepFlags = kXMP_ArrayIndexStep;
  729|       |
  730|  6.48k|			} 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.48k|			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.48k]
  ------------------
  774|  6.48k|			++stepEnd;
  775|       |			
  776|  6.48k|		}
  777|       |
  778|  8.32k|		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.32k]
  ------------------
  779|  8.32k|		currStep.assign ( stepBegin, (stepEnd - stepBegin) );
  780|       |
  781|  8.32k|		if ( GetStepKind ( stepFlags ) == kXMP_StructFieldStep ) {
  ------------------
  |  |  408|  8.32k|#define GetStepKind(f)	((f) & kXMP_StepKindMask)
  ------------------
  |  Branch (781:8): [True: 1.83k, False: 6.48k]
  ------------------
  782|       |
  783|  1.83k|			if ( currStep[0] == '@' ) {
  ------------------
  |  Branch (783:9): [True: 0, False: 1.83k]
  ------------------
  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.83k|			if ( currStep[0] == '?' ) {
  ------------------
  |  Branch (787:9): [True: 516, False: 1.31k]
  ------------------
  788|    516|				++qualName;
  789|    516|				stepFlags = kXMP_QualifierStep;
  790|    516|			}
  791|  1.83k|			VerifyQualName ( qualName, nameEnd );
  792|       |
  793|  6.48k|		} else if ( GetStepKind ( stepFlags ) == kXMP_FieldSelectorStep ) {
  ------------------
  |  |  408|  6.48k|#define GetStepKind(f)	((f) & kXMP_StepKindMask)
  ------------------
  |  Branch (793:15): [True: 0, False: 6.48k]
  ------------------
  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.32k|		expandedXPath->push_back ( XPathStepInfo ( currStep, stepFlags ) );
  810|       |
  811|  8.32k|	}
  812|       |
  813|  23.8k|}	// ExpandXPath
_Z14FindSchemaNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  828|  65.5k|{
  829|  65.5k|	XMP_Node * schemaNode = 0;
  830|       |	
  831|  65.5k|	XMP_Assert ( xmpTree->parent == 0 );
  ------------------
  |  |  142|  65.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  832|       |	
  833|   275k|	for ( size_t schemaNum = 0, schemaLim = xmpTree->children.size(); schemaNum != schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (833:68): [True: 246k, False: 28.9k]
  ------------------
  834|   246k|		XMP_Node * currSchema = xmpTree->children[schemaNum];
  835|   246k|		XMP_Assert ( currSchema->parent == xmpTree );
  ------------------
  |  |  142|   246k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  836|   246k|		if ( currSchema->name == nsURI ) {
  ------------------
  |  Branch (836:8): [True: 36.5k, False: 210k]
  ------------------
  837|  36.5k|			schemaNode = currSchema;
  838|  36.5k|			if ( ptrPos != 0 ) *ptrPos = xmpTree->children.begin() + schemaNum;
  ------------------
  |  Branch (838:9): [True: 22.9k, False: 13.6k]
  ------------------
  839|  36.5k|			break;
  840|  36.5k|		}
  841|   246k|	}
  842|       |	
  843|  65.5k|	if ( (schemaNode == 0) && createNodes ) {
  ------------------
  |  Branch (843:7): [True: 28.9k, False: 36.5k]
  |  Branch (843:28): [True: 6.71k, False: 22.2k]
  ------------------
  844|       |
  845|  6.71k|		schemaNode = new XMP_Node ( xmpTree, nsURI, (kXMP_SchemaNode | kXMP_NewImplicitNode) );
  ------------------
  |  |  410|  6.71k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  846|  6.71k|		XMP_StringPtr prefixPtr;
  847|  6.71k|		XMP_StringLen prefixLen;
  848|  6.71k|        bool found = XMPMeta::GetNamespacePrefix ( nsURI, &prefixPtr, &prefixLen );	// *** Use map directly?
  849|  6.71k|		XMP_Assert ( found );
  ------------------
  |  |  142|  6.71k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  850|  6.71k|		UNUSED(found);
  851|       |
  852|  6.71k|		schemaNode->value.assign ( prefixPtr, prefixLen );
  853|  6.71k|		xmpTree->children.push_back ( schemaNode );
  854|  6.71k|		if ( ptrPos != 0 ) *ptrPos = xmpTree->children.end() - 1;
  ------------------
  |  Branch (854:8): [True: 844, False: 5.86k]
  ------------------
  855|       |
  856|       |		#if 0	// *** XMP_DebugBuild
  857|       |			schemaNode->_valuePtr = schemaNode->value.c_str();
  858|       |		#endif
  859|       |
  860|  6.71k|	}
  861|       |	
  862|  65.5k|	XMP_Assert ( (ptrPos == 0) || (schemaNode == 0) || (schemaNode == **ptrPos) );
  ------------------
  |  |  142|  65.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  863|  65.5k|	XMP_Assert ( (schemaNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  65.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  864|  65.5k|	return schemaNode;
  865|       |	
  866|  65.5k|}	// FindSchemaNode
_Z13FindChildNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  881|  40.2k|{
  882|  40.2k|	XMP_Node * childNode = 0;
  883|       |
  884|  40.2k|	if ( ! (parent->options & (kXMP_SchemaNode | kXMP_PropValueIsStruct)) ) {
  ------------------
  |  Branch (884:7): [True: 12, False: 40.2k]
  ------------------
  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|   791k|	for ( size_t childNum = 0, childLim = parent->children.size(); childNum != childLim; ++childNum ) {
  ------------------
  |  Branch (897:65): [True: 772k, False: 18.8k]
  ------------------
  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: 21.4k, False: 750k]
  ------------------
  901|  21.4k|			childNode = currChild;
  902|  21.4k|			if ( ptrPos != 0 ) *ptrPos = parent->children.begin() + childNum;
  ------------------
  |  Branch (902:9): [True: 21.3k, False: 122]
  ------------------
  903|  21.4k|			break;
  904|  21.4k|		}
  905|   772k|	}
  906|       |	
  907|  40.2k|	if ( (childNode == 0) && createNodes ) {
  ------------------
  |  Branch (907:7): [True: 18.8k, False: 21.4k]
  |  Branch (907:27): [True: 3.68k, False: 15.1k]
  ------------------
  908|  3.68k|		childNode = new XMP_Node ( parent, childName, kXMP_NewImplicitNode );
  ------------------
  |  |  410|  3.68k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  909|  3.68k|		parent->children.push_back ( childNode );
  910|  3.68k|		if ( ptrPos != 0 ) *ptrPos = parent->children.end() - 1;
  ------------------
  |  Branch (910:8): [True: 3.68k, False: 0]
  ------------------
  911|  3.68k|	}
  912|       |	
  913|  40.2k|	XMP_Assert ( (ptrPos == 0) || (childNode == 0) || (childNode == **ptrPos) );
  ------------------
  |  |  142|  40.2k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  914|  40.2k|	XMP_Assert ( (childNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  40.2k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  915|  40.2k|	return childNode;
  916|       |	
  917|  40.2k|}	// FindChildNode
_Z17FindQualifierNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  934|    516|{
  935|    516|	XMP_Node * qualNode = 0;
  936|       |	
  937|    516|	XMP_Assert ( *qualName != '?' );
  ------------------
  |  |  142|    516|	#define XMP_Assert(c)	((void) 0)
  ------------------
  938|       |	
  939|    690|	for ( size_t qualNum = 0, qualLim = parent->qualifiers.size(); qualNum != qualLim; ++qualNum ) {
  ------------------
  |  Branch (939:65): [True: 505, False: 185]
  ------------------
  940|    505|		XMP_Node * currQual = parent->qualifiers[qualNum];
  941|    505|		XMP_Assert ( currQual->parent == parent );
  ------------------
  |  |  142|    505|	#define XMP_Assert(c)	((void) 0)
  ------------------
  942|    505|		if ( currQual->name == qualName ) {
  ------------------
  |  Branch (942:8): [True: 331, False: 174]
  ------------------
  943|    331|			qualNode = currQual;
  944|    331|			if ( ptrPos != 0 ) *ptrPos = parent->qualifiers.begin() + qualNum;
  ------------------
  |  Branch (944:9): [True: 331, False: 0]
  ------------------
  945|    331|			break;
  946|    331|		}
  947|    505|	}
  948|       |	
  949|    516|	if ( (qualNode == 0) && createNodes ) {
  ------------------
  |  Branch (949:7): [True: 185, False: 331]
  |  Branch (949:26): [True: 185, False: 0]
  ------------------
  950|       |
  951|    185|		qualNode = new XMP_Node ( parent, qualName, (static_cast<unsigned long>(kXMP_PropIsQualifier) | static_cast<unsigned long>(kXMP_NewImplicitNode)) );
  ------------------
  |  |  410|    185|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  952|    185|		parent->options |= kXMP_PropHasQualifiers;
  953|       |
  954|    185|		const bool isLang 	 = XMP_LitMatch ( qualName, "xml:lang" );
  ------------------
  |  |   96|    185|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  955|    185|		const bool isType 	 = XMP_LitMatch ( qualName, "rdf:type" );
  ------------------
  |  |   96|    185|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  956|    185|		const bool isSpecial = isLang | isType;
  957|       |
  958|    185|		if ( isLang ) {
  ------------------
  |  Branch (958:8): [True: 133, False: 52]
  ------------------
  959|    133|			parent->options |= kXMP_PropHasLang;
  960|    133|		} else if ( isType ) {
  ------------------
  |  Branch (960:15): [True: 0, False: 52]
  ------------------
  961|      0|			parent->options |= kXMP_PropHasType;
  962|      0|		}
  963|       |		
  964|    185|		if ( parent->qualifiers.empty() || (! isSpecial) ) {
  ------------------
  |  Branch (964:8): [True: 149, False: 36]
  |  Branch (964:38): [True: 36, False: 0]
  ------------------
  965|    185|			parent->qualifiers.push_back ( qualNode );
  966|    185|			if ( ptrPos != 0 ) *ptrPos = parent->qualifiers.end() - 1;
  ------------------
  |  Branch (966:9): [True: 185, False: 0]
  ------------------
  967|    185|		} 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|    185|	}
  975|       |	
  976|    516|	XMP_Assert ( (ptrPos == 0) || (qualNode == 0) || (qualNode == **ptrPos) );
  ------------------
  |  |  142|    516|	#define XMP_Assert(c)	((void) 0)
  ------------------
  977|    516|	XMP_Assert ( (qualNode != 0) || (! createNodes) );
  ------------------
  |  |  142|    516|	#define XMP_Assert(c)	((void) 0)
  ------------------
  978|    516|	return qualNode;
  979|       |	
  980|    516|}	// FindQualifierNode
_Z8FindNodeP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEbjPNS1_11__wrap_iterIPS0_EE:
 1062|  23.7k|{
 1063|  23.7k|	XMP_Node *     currNode = 0;
 1064|  23.7k|	XMP_NodePtrPos currPos;
 1065|  23.7k|	XMP_NodePtrPos newSubPos;	// Root of implicitly created subtree. Valid only if leaf is new.
 1066|  23.7k|	bool           leafIsNew = false;
 1067|       |	
 1068|  23.7k|	XMP_Assert ( (leafOptions == 0) || createNodes );
  ------------------
  |  |  142|  23.7k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1069|       |
 1070|  23.7k|	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: 23.7k]
  ------------------
 1071|       |	
 1072|  23.7k|	size_t stepNum = 1;	// By default start calling FollowXPathStep for the top level property step.
 1073|  23.7k|	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|  23.7k|	if ( ! (expandedXPath[kRootPropStep].options & kXMP_StepIsAlias) ) {
  ------------------
  |  Branch (1081:7): [True: 23.7k, False: 0]
  ------------------
 1082|       |		
 1083|  23.7k|		currNode = FindSchemaNode ( xmpTree, expandedXPath[kSchemaStep].step.c_str(), createNodes, &currPos );
 1084|  23.7k|		if ( currNode == 0 ) return 0;
  ------------------
  |  Branch (1084:8): [True: 4, False: 23.7k]
  ------------------
 1085|       |
 1086|  23.7k|		if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|  23.7k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1086:8): [True: 844, False: 22.9k]
  ------------------
 1087|    844|			currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|    844|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1088|    844|			if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1088:9): [True: 844, False: 0]
  ------------------
 1089|    844|			leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1090|    844|		}
 1091|       |
 1092|  23.7k|	} 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|  23.7k|	try {
 1138|  55.7k|		for ( ; stepNum < stepLim; ++stepNum ) {
  ------------------
  |  Branch (1138:11): [True: 32.0k, False: 23.7k]
  ------------------
 1139|  32.0k|			currNode = FollowXPathStep ( currNode, expandedXPath, stepNum, createNodes, &currPos );
 1140|  32.0k|			if ( currNode == 0 ) goto EXIT;
  ------------------
  |  Branch (1140:9): [True: 72, False: 31.9k]
  ------------------
 1141|  31.9k|			if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|  31.9k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1141:9): [True: 4.73k, False: 27.2k]
  ------------------
 1142|  4.73k|				currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  4.73k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1143|  4.73k|				CheckImplicitStruct ( currNode, expandedXPath, stepNum+1, stepLim );
 1144|  4.73k|				if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1144:10): [True: 3.89k, False: 844]
  ------------------
 1145|  4.73k|				leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1146|  4.73k|			}
 1147|  31.9k|		}
 1148|  23.7k|	} 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|  23.7k|EXIT:
 1156|       |
 1157|  23.7k|	XMP_Assert ( (currNode == 0) || (currNode == *currPos) );
  ------------------
  |  |  142|  23.7k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1158|  23.7k|	XMP_Assert ( (currNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  23.7k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1159|       |
 1160|  23.7k|	if ( leafIsNew ) {
  ------------------
  |  Branch (1160:7): [True: 4.73k, False: 19.0k]
  ------------------
 1161|  4.73k|		if ( currNode != 0 ) {
  ------------------
  |  Branch (1161:8): [True: 4.73k, False: 0]
  ------------------
 1162|  4.73k|			currNode->options |= leafOptions;
 1163|  4.73k|		} else {
 1164|      0|			DeleteSubtree ( newSubPos );
 1165|      0|		}
 1166|  4.73k|	}
 1167|       |
 1168|  23.7k|	if ( (currNode != 0) && (ptrPos != 0) ) *ptrPos = currPos;
  ------------------
  |  Branch (1168:7): [True: 23.7k, False: 72]
  |  Branch (1168:26): [True: 0, False: 23.7k]
  ------------------
 1169|  23.7k|	return currNode;
 1170|       |	
 1171|  23.7k|}	// FindNode
_Z18NormalizeLangValuePNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
 1343|    571|{
 1344|    571|	char * tagStart;
 1345|    571|	char * tagEnd;
 1346|       |
 1347|       |	// Find and process the primary subtag.
 1348|       |	
 1349|    571|	tagStart = (char*) value->c_str();
 1350|  8.32k|	for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1350:27): [True: 8.23k, False: 95]
  |  Branch (1350:45): [True: 7.75k, False: 476]
  ------------------
 1351|  7.75k|		if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1351:8): [True: 4.82k, False: 2.93k]
  |  Branch (1351:28): [True: 932, False: 3.89k]
  ------------------
 1352|  7.75k|	}
 1353|       |	
 1354|       |	// Find and process the secondary subtag.
 1355|       |	
 1356|    571|	tagStart = tagEnd;
 1357|    571|	if ( *tagStart == '-' ) ++tagStart;
  ------------------
  |  Branch (1357:7): [True: 476, False: 95]
  ------------------
 1358|  10.5k|	for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1358:27): [True: 10.1k, False: 411]
  |  Branch (1358:45): [True: 10.0k, False: 160]
  ------------------
 1359|  10.0k|		if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1359:8): [True: 6.84k, False: 3.18k]
  |  Branch (1359:28): [True: 1.14k, False: 5.69k]
  ------------------
 1360|  10.0k|	}
 1361|    571|	if ( tagEnd == tagStart+2 ) {
  ------------------
  |  Branch (1361:7): [True: 78, False: 493]
  ------------------
 1362|     78|		if ( ('a' <= *tagStart) && (*tagStart <= 'z') ) *tagStart -= 0x20;
  ------------------
  |  Branch (1362:8): [True: 21, False: 57]
  |  Branch (1362:30): [True: 20, False: 1]
  ------------------
 1363|     78|		++tagStart;
 1364|     78|		if ( ('a' <= *tagStart) && (*tagStart <= 'z') ) *tagStart -= 0x20;
  ------------------
  |  Branch (1364:8): [True: 37, False: 41]
  |  Branch (1364:30): [True: 36, False: 1]
  ------------------
 1365|     78|	}
 1366|       |	
 1367|       |	// Find and process the remaining subtags.
 1368|       |	
 1369|  1.66k|	while ( true ) {
  ------------------
  |  Branch (1369:10): [True: 1.66k, Folded]
  ------------------
 1370|  1.66k|		tagStart = tagEnd;
 1371|  1.66k|		if ( *tagStart == '-' ) ++tagStart;
  ------------------
  |  Branch (1371:8): [True: 1.09k, False: 571]
  ------------------
 1372|  1.66k|		if ( *tagStart == 0 ) break;
  ------------------
  |  Branch (1372:8): [True: 571, False: 1.09k]
  ------------------
 1373|  17.5k|		for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1373:28): [True: 17.3k, False: 160]
  |  Branch (1373:46): [True: 16.4k, False: 932]
  ------------------
 1374|  16.4k|			if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1374:9): [True: 8.22k, False: 8.18k]
  |  Branch (1374:29): [True: 1.75k, False: 6.47k]
  ------------------
 1375|  16.4k|		}
 1376|  1.09k|	}
 1377|       |	
 1378|    571|}	// NormalizeLangValue
_Z18NormalizeLangArrayP8XMP_Node:
 1390|    185|{
 1391|    185|	XMP_Assert ( XMP_ArrayIsAltText(array->options) );
  ------------------
  |  |  142|    185|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1392|       |	
 1393|    185|	size_t itemNum;
 1394|    185|	size_t itemLim = array->children.size();
 1395|    185|	bool   hasDefault = false;
 1396|       |	
 1397|    319|	for ( itemNum = 0; itemNum < itemLim; ++itemNum ) {
  ------------------
  |  Branch (1397:21): [True: 185, False: 134]
  ------------------
 1398|       |	
 1399|    185|		if ( array->children[itemNum]->qualifiers.empty() ||
  ------------------
  |  Branch (1399:8): [True: 0, False: 185]
  ------------------
 1400|    185|			 (array->children[itemNum]->qualifiers[0]->name != "xml:lang") ) {
  ------------------
  |  Branch (1400:5): [True: 0, False: 185]
  ------------------
 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|    185|		if ( array->children[itemNum]->qualifiers[0]->value == "x-default" ) {
  ------------------
  |  Branch (1404:8): [True: 51, False: 134]
  ------------------
 1405|     51|			hasDefault = true;
 1406|     51|			break;
 1407|     51|		}
 1408|       |
 1409|    185|	}
 1410|       |
 1411|    185|	if ( hasDefault ) {
  ------------------
  |  Branch (1411:7): [True: 51, False: 134]
  ------------------
 1412|       |
 1413|     51|		if ( itemNum != 0 ) {
  ------------------
  |  Branch (1413:8): [True: 0, False: 51]
  ------------------
 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|     51|	}
 1423|       |	
 1424|    185|}	// NormalizeLangArray
_Z13DetectAltTextP8XMP_Node:
 1434|    268|{
 1435|    268|	XMP_Assert ( XMP_ArrayIsAlternate(xmpParent->options) );
  ------------------
  |  |  142|    268|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1436|       |
 1437|    268|	size_t itemNum, itemLim;
 1438|       |	
 1439|    454|	for ( itemNum = 0, itemLim = xmpParent->children.size(); itemNum < itemLim; ++itemNum ) {
  ------------------
  |  Branch (1439:59): [True: 261, False: 193]
  ------------------
 1440|    261|		XMP_OptionBits currOptions = xmpParent->children[itemNum]->options;
 1441|    261|		if ( (currOptions & kXMP_PropCompositeMask) || (! (currOptions & kXMP_PropHasLang)) ) break;
  ------------------
  |  Branch (1441:8): [True: 21, False: 240]
  |  Branch (1441:50): [True: 54, False: 186]
  ------------------
 1442|    261|	}
 1443|       |	
 1444|    268|	if ( (itemLim != 0) && (itemNum == itemLim) ) {
  ------------------
  |  Branch (1444:7): [True: 260, False: 8]
  |  Branch (1444:25): [True: 185, False: 75]
  ------------------
 1445|    185|		xmpParent->options |= kXMP_PropArrayIsAltText;
 1446|    185|		NormalizeLangArray ( xmpParent );
 1447|    185|	}
 1448|       |
 1449|    268|}	// DetectAltText
XMPCore_Impl.cpp:_ZL15VerifyXPathRootPKcS0_PNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEE:
  154|  23.8k|{
  155|       |	// Do some basic checks on the URI and name. Try to lookup the URI. See if the name is qualified.
  156|       |	
  157|  23.8k|	XMP_Assert ( (schemaURI != 0) && (propName != 0) && (*propName != 0) );
  ------------------
  |  |  142|  23.8k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  158|  23.8k|	XMP_Assert ( (expandedXPath != 0) && (expandedXPath->empty()) );
  ------------------
  |  |  142|  23.8k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  159|       |
  160|  23.8k|	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: 23.8k]
  ------------------
  161|       |
  162|  23.8k|	if ( (*propName == '?') || (*propName == '@') ) {
  ------------------
  |  Branch (162:7): [True: 0, False: 23.8k]
  |  Branch (162:29): [True: 0, False: 23.8k]
  ------------------
  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.24M|	for ( XMP_StringPtr ch = propName; *ch != 0; ++ch ) {
  ------------------
  |  Branch (165:37): [True: 3.22M, False: 23.8k]
  ------------------
  166|  3.22M|		if ( (*ch == '/') || (*ch == '[') ) {
  ------------------
  |  Branch (166:8): [True: 0, False: 3.22M]
  |  Branch (166:24): [True: 0, False: 3.22M]
  ------------------
  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.22M|	}
  170|       |
  171|  23.8k|	XMP_StringMapPos uriPos = sNamespaceURIToPrefixMap->find ( XMP_VarString ( schemaURI ) );
  172|  23.8k|	if ( uriPos == sNamespaceURIToPrefixMap->end() ) {
  ------------------
  |  Branch (172:7): [True: 0, False: 23.8k]
  ------------------
  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|  23.8k|	XMP_StringPtr colonPos = propName;
  177|  2.96M|	while ( (*colonPos != 0) && (*colonPos != ':') ) ++colonPos;
  ------------------
  |  Branch (177:10): [True: 2.96M, False: 4.96k]
  |  Branch (177:30): [True: 2.94M, False: 18.8k]
  ------------------
  178|  23.8k|	VerifySimpleXMLName ( propName, colonPos );	// Verify the part before any colon.
  179|       |
  180|       |	// Verify the various URI and prefix combinations. Initialize the expanded XPath.
  181|       |	
  182|  23.8k|	if ( *colonPos == 0 ) {
  ------------------
  |  Branch (182:7): [True: 4.96k, False: 18.8k]
  ------------------
  183|       |	
  184|       |		// The propName is unqualified, use the schemaURI and associated prefix.
  185|       |		
  186|  4.96k|		expandedXPath->push_back ( XPathStepInfo ( schemaURI, kXMP_SchemaNode ) );
  187|  4.96k|		expandedXPath->push_back ( XPathStepInfo ( uriPos->second, 0 ) );
  188|  4.96k|		(*expandedXPath)[kRootPropStep].step += propName;
  189|       |	
  190|  18.8k|	} else {
  191|       |
  192|       |		// The propName is qualified. Make sure the prefix is legit. Use the associated URI and qualified name.
  193|       |
  194|  18.8k|		size_t prefixLen = colonPos - propName + 1;	// ! Include the colon.
  195|  18.8k|		VerifySimpleXMLName ( colonPos+1, colonPos+strlen(colonPos) );
  196|       |
  197|  18.8k|		XMP_VarString prefix ( propName, prefixLen );
  198|  18.8k|		XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( prefix );
  199|  18.8k|		if ( prefixPos == sNamespacePrefixToURIMap->end() ) {
  ------------------
  |  Branch (199:8): [True: 0, False: 18.8k]
  ------------------
  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.8k|		if ( prefix != uriPos->second ) {
  ------------------
  |  Branch (202:8): [True: 0, False: 18.8k]
  ------------------
  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.8k|		expandedXPath->push_back ( XPathStepInfo ( schemaURI, kXMP_SchemaNode ) );
  207|  18.8k|		expandedXPath->push_back ( XPathStepInfo ( propName, 0 ) );
  208|       |	
  209|  18.8k|	}
  210|       |
  211|  23.8k|}	// VerifyXPathRoot
XMPCore_Impl.cpp:_ZL14VerifyQualNamePKcS0_:
  219|  1.83k|{
  220|  1.83k|	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.83k]
  ------------------
  221|       |
  222|  1.83k|	XMP_StringPtr colonPos = qualName;
  223|  10.2k|	while ( (colonPos < nameEnd) && (*colonPos != ':') ) ++colonPos;
  ------------------
  |  Branch (223:10): [True: 10.2k, False: 0]
  |  Branch (223:34): [True: 8.43k, False: 1.83k]
  ------------------
  224|  1.83k|	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.83k]
  |  Branch (224:33): [True: 0, False: 1.83k]
  ------------------
  225|       |
  226|  1.83k|	VerifySimpleXMLName ( qualName, colonPos );
  227|  1.83k|	VerifySimpleXMLName ( colonPos+1, nameEnd );
  228|       |
  229|  1.83k|	size_t prefixLen = colonPos - qualName + 1;	// ! Include the colon.
  230|  1.83k|	XMP_VarString prefix ( qualName, prefixLen );
  231|  1.83k|	XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( prefix );
  232|  1.83k|	if ( prefixPos == sNamespacePrefixToURIMap->end() ) {
  ------------------
  |  Branch (232:7): [True: 0, False: 1.83k]
  ------------------
  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.83k|}	// VerifyQualName
XMPCore_Impl.cpp:_ZL15FollowXPathStepP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEmbPNS1_11__wrap_iterIPS0_EEb:
  394|  32.0k|{
  395|  32.0k|	XMP_Node * nextNode = 0;
  396|  32.0k|	const XPathStepInfo & nextStep = fullPath[stepNum];
  397|  32.0k|	XMP_Index      index    = 0;
  398|  32.0k|	XMP_OptionBits stepKind = nextStep.options & kXMP_StepKindMask;
  399|       |	
  400|  32.0k|	XMP_Assert ( (kXMP_StructFieldStep <= stepKind) && (stepKind <= kXMP_FieldSelectorStep) );
  ------------------
  |  |  142|  32.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  401|       |
  402|  32.0k|	if ( stepKind == kXMP_StructFieldStep ) {
  ------------------
  |  Branch (402:7): [True: 25.1k, False: 6.92k]
  ------------------
  403|       |
  404|  25.1k|		nextNode = FindChildNode ( parentNode, nextStep.step.c_str(), createNodes, ptrPos );
  405|       |
  406|  25.1k|	} else if ( stepKind == kXMP_QualifierStep ) {
  ------------------
  |  Branch (406:14): [True: 516, False: 6.41k]
  ------------------
  407|       |	
  408|    516|		XMP_StringPtr qualStep = nextStep.step.c_str();
  409|    516|		XMP_Assert ( *qualStep == '?' );
  ------------------
  |  |  142|    516|	#define XMP_Assert(c)	((void) 0)
  ------------------
  410|    516|		++qualStep;
  411|    516|		nextNode = FindQualifierNode ( parentNode, qualStep, createNodes, ptrPos );
  412|       |
  413|  6.41k|	} else {
  414|       |	
  415|       |		// This is an array indexing step. First get the index, then get the node.
  416|       |
  417|  6.41k|		if ( ! (parentNode->options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (417:8): [True: 0, False: 6.41k]
  ------------------
  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.41k|		if ( stepKind == kXMP_ArrayIndexStep ) {
  ------------------
  |  Branch (421:8): [True: 6.41k, False: 0]
  ------------------
  422|  6.41k|			index = FindIndexedItem ( parentNode, nextStep.step, createNodes );
  423|  6.41k|		} 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.41k|		if ( (0 <= index) && (index <= (XMP_Index)parentNode->children.size()) ) nextNode = parentNode->children[index];
  ------------------
  |  Branch (437:8): [True: 6.41k, False: 0]
  |  Branch (437:24): [True: 6.41k, False: 0]
  ------------------
  438|       |
  439|  6.41k|		if ( (index == -1) && createNodes && aliasedArrayItem && (stepKind == kXMP_QualSelectorStep) ) {
  ------------------
  |  Branch (439:8): [True: 0, False: 6.41k]
  |  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.41k|		if ( (nextNode != 0) && (ptrPos != 0) ) *ptrPos = parentNode->children.begin() + index;
  ------------------
  |  Branch (464:8): [True: 6.41k, False: 0]
  |  Branch (464:27): [True: 6.41k, False: 0]
  ------------------
  465|       |	
  466|  6.41k|	}
  467|       |
  468|  32.0k|	if ( (nextNode != 0) && (nextNode->options & kXMP_NewImplicitNode) ) {
  ------------------
  |  |  410|  31.9k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (468:7): [True: 31.9k, False: 72]
  |  Branch (468:26): [True: 4.73k, False: 27.2k]
  ------------------
  469|  4.73k|		nextNode->options |= (nextStep.options & kXMP_PropArrayFormMask);
  470|  4.73k|	}
  471|       |	
  472|  32.0k|	XMP_Assert ( (ptrPos == 0) || (nextNode == 0) || (nextNode == **ptrPos) );
  ------------------
  |  |  142|  32.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  473|  32.0k|	XMP_Assert ( (nextNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  32.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  474|  32.0k|	return nextNode;
  475|       |	
  476|  32.0k|}	// FollowXPathStep
XMPCore_Impl.cpp:_ZL15FindIndexedItemP8XMP_NodeRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  248|  6.41k|{
  249|  6.41k|	XMP_Index index = 0;
  250|  6.41k|	size_t    chLim = indexStep.size() - 1;
  251|       |
  252|  6.41k|	XMP_Assert ( (chLim >= 2) && (indexStep[0] == '[') && (indexStep[chLim] == ']') );
  ------------------
  |  |  142|  6.41k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  253|       |	
  254|  12.8k|	for ( size_t chNum = 1; chNum != chLim; ++chNum ) {
  ------------------
  |  Branch (254:26): [True: 6.41k, False: 6.41k]
  ------------------
  255|  6.41k|		XMP_Assert ( ('0' <= indexStep[chNum]) && (indexStep[chNum] <= '9') );
  ------------------
  |  |  142|  6.41k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  256|  6.41k|		index = (index * 10) + (indexStep[chNum] - '0');
  257|  6.41k|		if ( index < 0 ) {
  ------------------
  |  Branch (257:8): [True: 0, False: 6.41k]
  ------------------
  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.41k|	}
  261|       |
  262|  6.41k|	--index;	// Change to a C-style, zero based index.
  263|  6.41k|	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.41k]
  ------------------
  264|       |
  265|  6.41k|	if ( (index == (XMP_Index)arrayNode->children.size()) && createNodes ) {	// Append a new last+1 node.
  ------------------
  |  Branch (265:7): [True: 874, False: 5.53k]
  |  Branch (265:59): [True: 874, False: 0]
  ------------------
  266|    874|		XMP_Node * newItem = new XMP_Node ( arrayNode, kXMP_ArrayItemName, kXMP_NewImplicitNode );
  ------------------
  |  |  293|    874|#define kXMP_ArrayItemName	"[]"
  ------------------
              		XMP_Node * newItem = new XMP_Node ( arrayNode, kXMP_ArrayItemName, kXMP_NewImplicitNode );
  ------------------
  |  |  410|    874|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  267|    874|		arrayNode->children.push_back ( newItem );
  268|    874|	}
  269|       |
  270|       |	// ! Don't throw here for a too large index. SetProperty will throw, GetProperty will not.
  271|  6.41k|	if ( index >= (XMP_Index)arrayNode->children.size() ) index = -1;
  ------------------
  |  Branch (271:7): [True: 0, False: 6.41k]
  ------------------
  272|  6.41k|	return index;
  273|       |	
  274|  6.41k|}	// FindIndexedItem
XMPCore_Impl.cpp:_ZL19CheckImplicitStructP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEmm:
  487|  4.73k|{
  488|       |
  489|  4.73k|	if ( (stepNum < stepLim) &&
  ------------------
  |  Branch (489:7): [True: 0, False: 4.73k]
  ------------------
  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.73k|}	// CheckImplicitStruct

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

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

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

_ZN7XMPMeta15ParseFromBufferEPKcjj:
 1096|  3.46k|{
 1097|  3.46k|	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.46k]
  |  Branch (1097:24): [True: 0, False: 0]
  ------------------
 1098|  3.46k|	if ( xmpSize == kXMP_UseNullTermination ) xmpSize = strlen ( buffer );
  ------------------
  |  Branch (1098:7): [True: 0, False: 3.46k]
  ------------------
 1099|       |	
 1100|  3.46k|	const bool lastClientCall = ((options & kXMP_ParseMoreBuffers) == 0);	// *** Could use FlagIsSet & FlagIsClear macros.
 1101|       |	
 1102|  3.46k|	this->tree.ClearNode();	// Make sure the target XMP object is totally empty.
 1103|       |
 1104|  3.46k|	if ( this->xmlParser == 0 ) {
  ------------------
  |  Branch (1104:7): [True: 3.46k, False: 0]
  ------------------
 1105|  3.46k|		if ( (xmpSize == 0) && lastClientCall ) return;	// Tolerate empty parse. Expat complains if there are no XML elements.
  ------------------
  |  Branch (1105:8): [True: 0, False: 3.46k]
  |  Branch (1105:26): [True: 0, False: 0]
  ------------------
 1106|  3.46k|		this->xmlParser = XMP_NewExpatAdapter();
 1107|  3.46k|	}
 1108|       |	
 1109|  3.46k|	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.46k|	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.46k|		if ( parser.charEncoding == XMP_OptionBits(-1) ) {
  ------------------
  |  Branch (1126:8): [True: 3.46k, False: 0]
  ------------------
 1127|       |
 1128|  3.46k|			if ( (parser.pendingCount == 0) && (xmpSize >= kXMLPendingInputMax) ) {
  ------------------
  |  Branch (1128:9): [True: 3.46k, False: 0]
  |  Branch (1128:39): [True: 3.46k, False: 3]
  ------------------
 1129|       |
 1130|       |				// This ought to be the common case, the first buffer is big enough.
 1131|  3.46k|				parser.charEncoding = DetermineInputEncoding ( (XMP_Uns8*)buffer, xmpSize );
 1132|       |
 1133|  3.46k|			} else {
 1134|       |			
 1135|       |				// Try to fill the pendingInput buffer before calling DetermineInputEncoding.
 1136|       |
 1137|      3|				size_t pendingOverlap = kXMLPendingInputMax - parser.pendingCount;
 1138|      3|				if ( pendingOverlap > xmpSize ) pendingOverlap = xmpSize;
  ------------------
  |  Branch (1138:10): [True: 3, False: 0]
  ------------------
 1139|       |
 1140|      3|				memcpy ( &parser.pendingInput[parser.pendingCount], buffer, pendingOverlap );	// AUDIT: Count is safe.
 1141|      3|				buffer += pendingOverlap;
 1142|      3|				xmpSize -= pendingOverlap;
 1143|      3|				parser.pendingCount += pendingOverlap;
 1144|       |
 1145|      3|				if ( (! lastClientCall) && (parser.pendingCount < kXMLPendingInputMax) ) return;
  ------------------
  |  Branch (1145:10): [True: 0, False: 3]
  |  Branch (1145:32): [True: 0, False: 0]
  ------------------
 1146|      3|				parser.charEncoding = DetermineInputEncoding ( parser.pendingInput, parser.pendingCount );
 1147|       |				
 1148|       |				#if Trace_ParsingHackery
 1149|       |					fprintf ( stderr, "XMP Character encoding is %d\n", parser.charEncoding );
 1150|       |				#endif
 1151|       |			
 1152|      3|			}
 1153|       |
 1154|  3.46k|		}
 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.46k|		XMP_Assert ( parser.charEncoding != XMP_OptionBits(-1) );
  ------------------
  |  |  142|  3.46k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1160|       |
 1161|  3.46k|		if ( parser.charEncoding != kXMP_EncodeUTF8 ) {
  ------------------
  |  Branch (1161:8): [True: 0, False: 3.46k]
  ------------------
 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.46k|		} 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.47k|			while ( parser.pendingCount > 0 ) {
  ------------------
  |  Branch (1181:12): [True: 3, False: 3.46k]
  ------------------
 1182|       |			
 1183|       |				// We've got some leftover input, process it first then continue with the current
 1184|       |				// buffer. Try to fill the pendingInput buffer before parsing further. We use a loop
 1185|       |				// for weird edge cases like a 2 byte input buffer, using 1 byte for pendingInput,
 1186|       |				// then having a partial UTF-8 end and need to absorb more.
 1187|       |				
 1188|      3|				size_t pendingOverlap = kXMLPendingInputMax - parser.pendingCount;
 1189|      3|				if ( pendingOverlap > xmpSize ) pendingOverlap = xmpSize;
  ------------------
  |  Branch (1189:10): [True: 3, False: 0]
  ------------------
 1190|       |				
 1191|      3|				memcpy ( &parser.pendingInput[parser.pendingCount], buffer, pendingOverlap );	// AUDIT: Count is safe.
 1192|      3|				parser.pendingCount += pendingOverlap;
 1193|      3|				buffer += pendingOverlap;
 1194|      3|				xmpSize -= pendingOverlap;
 1195|       |
 1196|      3|				if ( (! lastClientCall) && (parser.pendingCount < kXMLPendingInputMax) ) return;
  ------------------
  |  Branch (1196:10): [True: 0, False: 3]
  |  Branch (1196:32): [True: 0, False: 0]
  ------------------
 1197|      3|				size_t bytesDone = ProcessUTF8Portion ( &parser, parser.pendingInput, parser.pendingCount, lastClientCall );
 1198|      3|				size_t bytesLeft = parser.pendingCount - bytesDone;
 1199|       |
 1200|       |				#if Trace_ParsingHackery
 1201|       |					fprintf ( stderr, "   ProcessUTF8Portion handled %d pending bytes\n", bytesDone );
 1202|       |				#endif
 1203|       |				
 1204|      3|				if ( bytesDone == parser.pendingCount ) {
  ------------------
  |  Branch (1204:10): [True: 3, False: 0]
  ------------------
 1205|       |
 1206|       |					// Done with all of the pending input, move on to the current buffer.
 1207|      3|					parser.pendingCount = 0;
 1208|       |
 1209|      3|				} else if ( bytesLeft <= pendingOverlap ) {
  ------------------
  |  Branch (1209:17): [True: 0, False: 0]
  ------------------
 1210|       |
 1211|       |					// The leftover pending input all came from the current buffer. Exit this loop.
 1212|      0|					buffer -= bytesLeft;
 1213|      0|					xmpSize += bytesLeft;
 1214|      0|					parser.pendingCount = 0;
 1215|       |
 1216|      0|				} else if ( xmpSize > 0 ) {
  ------------------
  |  Branch (1216:17): [True: 0, False: 0]
  ------------------
 1217|       |
 1218|       |					// Pull more of the current buffer into the pending input and try again.
 1219|       |					// Backup by this pass's overlap so the loop entry code runs OK.
 1220|      0|					parser.pendingCount -= pendingOverlap;
 1221|      0|					buffer -= pendingOverlap;
 1222|      0|					xmpSize += pendingOverlap;
 1223|       |
 1224|      0|				} else {
 1225|       |
 1226|       |					// There is no more of the current buffer. Wait for more. Partial sequences at
 1227|       |					// the end of the last buffer should be treated as Latin-1 by ProcessUTF8Portion.
 1228|      0|					XMP_Assert ( ! lastClientCall );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1229|      0|					parser.pendingCount = bytesLeft;
 1230|      0|					memcpy ( &parser.pendingInput[0], &parser.pendingInput[bytesDone], bytesLeft );	// AUDIT: Count is safe.
 1231|      0|					return;
 1232|       |
 1233|      0|				}
 1234|       |			
 1235|      3|			}
 1236|       |			
 1237|       |			// Done with the pending input, process the current buffer.
 1238|       |
 1239|  3.46k|			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.46k|			if ( bytesDone < xmpSize ) {
  ------------------
  |  Branch (1245:9): [True: 0, False: 3.46k]
  ------------------
 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.46k|		}
 1258|       |		
 1259|  3.46k|		if ( lastClientCall ) {
  ------------------
  |  Branch (1259:8): [True: 3.46k, False: 3]
  ------------------
 1260|       |		
 1261|       |			#if XMP_DebugBuild && DumpXMLParseTree
 1262|       |				if ( parser.parseLog == 0 ) parser.parseLog = stdout;
 1263|       |				DumpXMLTree ( parser.parseLog, parser.tree, 0 );
 1264|       |			#endif
 1265|       |
 1266|  3.46k|			const XML_Node * xmlRoot = FindRootNode ( this, *this->xmlParser, options );
 1267|       |
 1268|  3.46k|			if ( xmlRoot != 0 ) {
  ------------------
  |  Branch (1268:9): [True: 3.24k, False: 218]
  ------------------
 1269|       |
 1270|  3.24k|				ProcessRDF ( &this->tree, *xmlRoot, options );
 1271|  3.24k|				NormalizeDCArrays ( &this->tree );
 1272|  3.24k|				if ( this->tree.options & kXMP_PropHasAliases ) MoveExplicitAliases ( &this->tree, options );
  ------------------
  |  Branch (1272:10): [True: 0, False: 3.24k]
  ------------------
 1273|  3.24k|				TouchUpDataModel ( this );
 1274|       |				
 1275|       |				// Delete empty schema nodes. Do this last, other cleanup can make empty schema.
 1276|  3.24k|				size_t schemaNum = 0;
 1277|  8.46k|				while ( schemaNum < this->tree.children.size() ) {
  ------------------
  |  Branch (1277:13): [True: 5.21k, False: 3.24k]
  ------------------
 1278|  5.21k|					XMP_Node * currSchema = this->tree.children[schemaNum];
 1279|  5.21k|					if ( currSchema->children.size() > 0 ) {
  ------------------
  |  Branch (1279:11): [True: 5.21k, False: 0]
  ------------------
 1280|  5.21k|						++schemaNum;
 1281|  5.21k|					} 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|  5.21k|				}
 1286|       |				
 1287|  3.24k|			}
 1288|       |
 1289|  3.46k|			delete this->xmlParser;
 1290|  3.46k|			this->xmlParser = 0;
 1291|       |
 1292|  3.46k|		}
 1293|       |		
 1294|  3.46k|	} catch ( ... ) {
 1295|       |
 1296|    687|		delete this->xmlParser;
 1297|    687|		this->xmlParser = 0;
 1298|    687|		prevTkVer = 0;
 1299|    687|		this->tree.ClearNode();
 1300|    687|		throw;
 1301|       |
 1302|    687|	}
 1303|       |	
 1304|  3.46k|}	// ParseFromBuffer
XMPMeta-Parse.cpp:_ZL22DetermineInputEncodingPKhm:
  810|  3.46k|{
  811|  3.46k|	if ( length < 2 ) return kXMP_EncodeUTF8;
  ------------------
  |  Branch (811:7): [True: 0, False: 3.46k]
  ------------------
  812|       |	
  813|  3.46k|	XMP_Uns8 * uniChar = (XMP_Uns8*)buffer;	// ! Make sure comparisons are unsigned.
  814|       |	
  815|  3.46k|	if ( uniChar[0] == 0 ) {
  ------------------
  |  Branch (815:7): [True: 0, False: 3.46k]
  ------------------
  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.46k|	} else if ( uniChar[0] < 0x80 ) {
  ------------------
  |  Branch (825:14): [True: 3.46k, 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.46k|		if ( uniChar[1] != 0 )  return kXMP_EncodeUTF8;
  ------------------
  |  Branch (832:8): [True: 3.46k, 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.46k|}	// DetermineInputEncoding
XMPMeta-Parse.cpp:_ZL18ProcessUTF8PortionP16XMLParserAdapterPKhmb:
  976|  3.47k|{
  977|  3.47k|	const XMP_Uns8 * bufEnd = buffer + length;
  978|       |	
  979|  3.47k|	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.47k|	std::string copy;
  992|       |		
  993|  5.36M|	for ( spanEnd = buffer; spanEnd < bufEnd; ++spanEnd ) {
  ------------------
  |  Branch (993:26): [True: 5.35M, False: 3.47k]
  ------------------
  994|       |
  995|  5.35M|		if ( (0x20 <= *spanEnd) && (*spanEnd <= 0x7E) && (*spanEnd != '&') ) {
  ------------------
  |  Branch (995:8): [True: 5.31M, False: 44.1k]
  |  Branch (995:30): [True: 5.27M, False: 39.9k]
  |  Branch (995:52): [True: 5.25M, False: 23.8k]
  ------------------
  996|  5.25M|			copy.push_back(*spanEnd);
  997|  5.25M|			continue;	// A regular ASCII character.
  998|  5.25M|		}
  999|       |
 1000|   108k|		if ( *spanEnd >= 0x80 ) {
  ------------------
  |  Branch (1000:8): [True: 34.4k, False: 73.5k]
  ------------------
 1001|       |		
 1002|       |			// See if this is a multi-byte UTF-8 sequence, or a Latin-1 character to replace.
 1003|       |
 1004|  34.4k|			int uniLen = CountUTF8 ( spanEnd, bufEnd );
 1005|       |
 1006|  34.4k|			if ( uniLen > 0 ) {
  ------------------
  |  Branch (1006:9): [True: 34.4k, False: 0]
  ------------------
 1007|       |
 1008|       |				// A valid UTF-8 character, keep it as-is.
 1009|  34.4k|				copy.append((const char*)spanEnd, uniLen);
 1010|  34.4k|				spanEnd += uniLen - 1;	// ! The loop increment will put back the +1.
 1011|       |
 1012|  34.4k|			} 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|  73.5k|		} else if ( (*spanEnd < 0x20) || (*spanEnd == 0x7F) ) {
  ------------------
  |  Branch (1026:15): [True: 44.1k, False: 29.3k]
  |  Branch (1026:36): [True: 5.50k, False: 23.8k]
  ------------------
 1027|       |
 1028|       |			// Replace ASCII controls other than tab, LF, and CR with a space.
 1029|       |
 1030|  49.6k|			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  100|  49.6k|#define kTab ((char)0x09)
  ------------------
              			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  101|  46.6k|#define kLF ((char)0x0A)
  ------------------
              			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  102|  11.0k|#define kCR ((char)0x0D)
  ------------------
  |  Branch (1030:9): [True: 3.05k, False: 46.6k]
  |  Branch (1030:31): [True: 35.5k, False: 11.0k]
  |  Branch (1030:52): [True: 5.59k, False: 5.50k]
  ------------------
 1031|  44.1k|				copy.push_back(*spanEnd);
 1032|  44.1k|				continue;
 1033|  44.1k|			}
 1034|       |
 1035|  5.50k|			copy.push_back(' ');
 1036|       |		
 1037|  23.8k|		} else {
 1038|       |		
 1039|       |			// See if this is a numeric escape sequence for a prohibited ASCII control.
 1040|       |			
 1041|  23.8k|			XMP_Assert ( *spanEnd == '&' );
  ------------------
  |  |  142|  23.8k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1042|  23.8k|			int escLen = CountControlEscape ( spanEnd, bufEnd );
 1043|       |			
 1044|  23.8k|			if ( escLen < 0 ) {
  ------------------
  |  Branch (1044:9): [True: 6, False: 23.8k]
  ------------------
 1045|       |
 1046|       |				// Have a partial numeric escape in this buffer, wait for more input.
 1047|      6|				if ( last ) {
  ------------------
  |  Branch (1047:10): [True: 6, False: 0]
  ------------------
 1048|      6|					copy.push_back('&');
 1049|      6|					continue;	// No more buffers, not an escape, absorb as normal input.
 1050|      6|				}
 1051|      0|				xmlParser->ParseBuffer ( copy.c_str(), copy.size(), false );
 1052|      0|				return (spanEnd - buffer);
 1053|       |
 1054|  23.8k|			} else if ( escLen > 0 ) {
  ------------------
  |  Branch (1054:16): [True: 1.58k, False: 22.3k]
  ------------------
 1055|       |
 1056|       |				// Have a complete numeric escape to replace.
 1057|  1.58k|				copy.push_back(' ');
 1058|  1.58k|				spanEnd = spanEnd + escLen - 1;	// ! The loop continuation will increment spanEnd!
 1059|       |
 1060|  22.3k|			} else {
 1061|  22.3k|				copy.push_back('&');
 1062|  22.3k|			}
 1063|       |
 1064|  23.8k|		}
 1065|       |		
 1066|   108k|	}
 1067|       |	
 1068|  3.47k|	XMP_Assert ( spanEnd == bufEnd );
  ------------------
  |  |  142|  3.47k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1069|  3.47k|	copy.push_back(' ');
 1070|  3.47k|	xmlParser->ParseBuffer ( copy.c_str(), copy.size(), true );
 1071|  3.47k|	return length;
 1072|       |
 1073|  3.47k|}	// ProcessUTF8Portion
XMPMeta-Parse.cpp:_ZL9CountUTF8PKhS0_:
  867|  34.4k|{
  868|  34.4k|	XMP_Assert ( charStart < bufEnd );		// Catch this in debug builds.
  ------------------
  |  |  142|  34.4k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  869|  34.4k|	if ( charStart >= bufEnd ) return 0;	// Don't run-on in release builds.
  ------------------
  |  Branch (869:7): [True: 0, False: 34.4k]
  ------------------
  870|  34.4k|	if ( (*charStart & 0xC0) != 0xC0 ) return 0;	// Must have at least 2 high bits set.
  ------------------
  |  Branch (870:7): [True: 0, False: 34.4k]
  ------------------
  871|       |	
  872|  34.4k|	int byteCount = 2;
  873|  34.4k|	XMP_Uns8 firstByte = *charStart;
  874|  36.6k|	for ( firstByte = firstByte << 2; (firstByte & 0x80) != 0; firstByte = firstByte << 1 ) ++byteCount;
  ------------------
  |  Branch (874:36): [True: 2.14k, False: 34.4k]
  ------------------
  875|       |	
  876|  34.4k|	if ( (charStart + byteCount) > bufEnd ) return -byteCount;
  ------------------
  |  Branch (876:7): [True: 0, False: 34.4k]
  ------------------
  877|       |
  878|  71.1k|	for ( int i = 1; i < byteCount; ++i ) {
  ------------------
  |  Branch (878:19): [True: 36.6k, False: 34.4k]
  ------------------
  879|  36.6k|		if ( (charStart[i] & 0xC0) != 0x80 ) return 0;
  ------------------
  |  Branch (879:8): [True: 0, False: 36.6k]
  ------------------
  880|  36.6k|	}
  881|       |	
  882|  34.4k|	return byteCount;
  883|       |	
  884|  34.4k|}	// CountUTF8
XMPMeta-Parse.cpp:_ZL18CountControlEscapePKhS0_:
  897|  23.8k|{
  898|  23.8k|	XMP_Assert ( escStart < bufEnd );	// Catch this in debug builds.
  ------------------
  |  |  142|  23.8k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  899|  23.8k|	if ( escStart >= bufEnd ) return 0;	// Don't run-on in release builds.
  ------------------
  |  Branch (899:7): [True: 0, False: 23.8k]
  ------------------
  900|  23.8k|	XMP_Assert ( *escStart == '&' );
  ------------------
  |  |  142|  23.8k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  901|       |	
  902|  23.8k|	size_t tailLen = bufEnd - escStart;
  903|  23.8k|	if ( tailLen < 5 ) return -1;	// Don't need a more thorough check, we'll catch it on the next pass.
  ------------------
  |  Branch (903:7): [True: 6, False: 23.8k]
  ------------------
  904|       |	
  905|  23.8k|	if ( strncmp ( (char*)escStart, "&#x", 3 ) != 0 ) return 0;
  ------------------
  |  Branch (905:7): [True: 15.8k, False: 8.05k]
  ------------------
  906|       |	
  907|  8.05k|	XMP_Uns8 escValue = 0;
  908|  8.05k|	const XMP_Uns8 * escPos = escStart + 3;
  909|       |	
  910|  8.05k|	if ( ('0' <= *escPos) && (*escPos <= '9') ) {
  ------------------
  |  Branch (910:7): [True: 7.14k, False: 910]
  |  Branch (910:27): [True: 720, False: 6.42k]
  ------------------
  911|    720|		escValue = *escPos - '0';
  912|    720|		++escPos;
  913|  7.33k|	} else if ( ('A' <= *escPos) && (*escPos <= 'F') ) {
  ------------------
  |  Branch (913:14): [True: 6.06k, False: 1.26k]
  |  Branch (913:34): [True: 4.02k, False: 2.04k]
  ------------------
  914|  4.02k|		escValue = *escPos - 'A' + 10;
  915|  4.02k|		++escPos;
  916|  4.02k|	} else if ( ('a' <= *escPos) && (*escPos <= 'f') ) {
  ------------------
  |  Branch (916:14): [True: 1.76k, False: 1.54k]
  |  Branch (916:34): [True: 1.58k, False: 183]
  ------------------
  917|  1.58k|		escValue = *escPos - 'a' + 10;
  918|  1.58k|		++escPos;
  919|  1.58k|	}
  920|       |	
  921|  8.05k|	if ( ('0' <= *escPos) && (*escPos <= '9') ) {
  ------------------
  |  Branch (921:7): [True: 6.28k, False: 1.76k]
  |  Branch (921:27): [True: 656, False: 5.63k]
  ------------------
  922|    656|		escValue = (escValue << 4) + (*escPos - '0');
  923|    656|		++escPos;
  924|  7.39k|	} else if ( ('A' <= *escPos) && (*escPos <= 'F') ) {
  ------------------
  |  Branch (924:14): [True: 4.17k, False: 3.21k]
  |  Branch (924:34): [True: 627, False: 3.55k]
  ------------------
  925|    627|		escValue = (escValue << 4) + (*escPos - 'A' + 10);
  926|    627|		++escPos;
  927|  6.76k|	} else if ( ('a' <= *escPos) && (*escPos <= 'f') ) {
  ------------------
  |  Branch (927:14): [True: 2.99k, False: 3.77k]
  |  Branch (927:34): [True: 2.70k, False: 290]
  ------------------
  928|  2.70k|		escValue = (escValue << 4) + (*escPos - 'a' + 10);
  929|  2.70k|		++escPos;
  930|  2.70k|	}
  931|       |	
  932|  8.05k|	if ( escPos == bufEnd ) return -1;	// Partial escape.
  ------------------
  |  Branch (932:7): [True: 0, False: 8.05k]
  ------------------
  933|  8.05k|	if ( *escPos != ';' ) return 0;
  ------------------
  |  Branch (933:7): [True: 5.12k, False: 2.93k]
  ------------------
  934|       |	
  935|  2.93k|	size_t escLen = escPos - escStart + 1;
  936|  2.93k|	if ( escLen < 5 ) return 0;	// ! Catch "&#x;".
  ------------------
  |  Branch (936:7): [True: 197, False: 2.73k]
  ------------------
  937|       |	
  938|  2.73k|	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  100|  2.73k|#define kTab ((char)0x09)
  ------------------
              	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  101|  2.38k|#define kLF ((char)0x0A)
  ------------------
              	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  102|  2.09k|#define kCR ((char)0x0D)
  ------------------
  |  Branch (938:7): [True: 346, False: 2.38k]
  |  Branch (938:29): [True: 293, False: 2.09k]
  |  Branch (938:50): [True: 509, False: 1.58k]
  ------------------
  939|       |	
  940|  1.58k|	return escLen;	// Found a full "prohibited" numeric escape.
  941|       |	
  942|  2.73k|}	// CountControlEscape
XMPMeta-Parse.cpp:_ZL12FindRootNodeP7XMPMetaRK16XMLParserAdapterj:
  151|  3.46k|{
  152|  3.46k|	const XML_Node * rootNode = xmlParser.rootNode;
  153|       |	
  154|  3.46k|	if ( xmlParser.rootCount > 1 ) rootNode = PickBestRoot ( xmlParser.tree, options );
  ------------------
  |  Branch (154:7): [True: 56, False: 3.40k]
  ------------------
  155|  3.46k|	if ( rootNode == 0 ) return 0;
  ------------------
  |  Branch (155:7): [True: 218, False: 3.24k]
  ------------------
  156|       |	
  157|       |	// We have a root node. Try to extract previous toolkit version number.
  158|       |	
  159|  3.24k|	XMP_StringPtr verStr = "";
  160|       |	
  161|  3.24k|		XMP_Assert ( rootNode->name == "rdf:RDF" );
  ------------------
  |  |  142|  3.24k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  162|       |	
  163|  3.24k|		if ( (options & kXMP_RequireXMPMeta) &&
  ------------------
  |  Branch (163:8): [True: 0, False: 3.24k]
  ------------------
  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.55k|		for ( size_t attrNum = 0, attrLim = rootNode->parent->attrs.size(); attrNum < attrLim; ++attrNum ) {
  ------------------
  |  Branch (167:71): [True: 446, False: 3.11k]
  ------------------
  168|    446|			const XML_Node * currAttr =rootNode->parent->attrs[attrNum];
  169|    446|			if ( (currAttr->name == "x:xmptk") || (currAttr->name == "x:xaptk") ) {
  ------------------
  |  Branch (169:9): [True: 136, False: 310]
  |  Branch (169:42): [True: 1, False: 309]
  ------------------
  170|    137|				verStr = currAttr->value.c_str();
  171|    137|				break;
  172|    137|			}
  173|    446|		}
  174|       |		
  175|       |	// Decode the version number into MMmmuubbb digits. If any part is too big, peg it at 99 or 999.
  176|       |	
  177|  3.24k|	unsigned long part;
  178|  4.41k|	while ( (*verStr != 0) && ((*verStr < '0') || (*verStr > '9')) ) ++verStr;
  ------------------
  |  Branch (178:10): [True: 1.30k, False: 3.11k]
  |  Branch (178:29): [True: 216, False: 1.08k]
  |  Branch (178:48): [True: 954, False: 135]
  ------------------
  179|       |	
  180|  3.24k|	part = 0;
  181|  3.91k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (181:10): [True: 804, False: 3.11k]
  |  Branch (181:28): [True: 704, False: 100]
  |  Branch (181:48): [True: 670, False: 34]
  ------------------
  182|    670|		part = (part * 10) + (*verStr - '0');
  183|    670|		++verStr;
  184|    670|	}
  185|  3.24k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (185:7): [True: 25, False: 3.22k]
  ------------------
  186|  3.24k|	thiz->prevTkVer = part * 100*100*1000;
  187|       |	
  188|  3.24k|	part = 0;
  189|  3.24k|	if ( *verStr == '.' ) ++verStr;
  ------------------
  |  Branch (189:7): [True: 85, False: 3.16k]
  ------------------
  190|  3.88k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (190:10): [True: 767, False: 3.11k]
  |  Branch (190:28): [True: 683, False: 84]
  |  Branch (190:48): [True: 634, False: 49]
  ------------------
  191|    634|		part = (part * 10) + (*verStr - '0');
  192|    634|		++verStr;
  193|    634|	}
  194|  3.24k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (194:7): [True: 29, False: 3.21k]
  ------------------
  195|  3.24k|	thiz->prevTkVer += part * 100*1000;
  196|       |	
  197|  3.24k|	part = 0;
  198|  3.24k|	if ( *verStr == '.' ) ++verStr;
  ------------------
  |  Branch (198:7): [True: 31, False: 3.21k]
  ------------------
  199|  3.50k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (199:10): [True: 387, False: 3.11k]
  |  Branch (199:28): [True: 308, False: 79]
  |  Branch (199:48): [True: 255, False: 53]
  ------------------
  200|    255|		part = (part * 10) + (*verStr - '0');
  201|    255|		++verStr;
  202|    255|	}
  203|  3.24k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (203:7): [True: 6, False: 3.24k]
  ------------------
  204|  3.24k|	thiz->prevTkVer += part * 1000;
  205|       |	
  206|  3.24k|	part = 0;
  207|  3.24k|	if ( *verStr == '-' ) ++verStr;
  ------------------
  |  Branch (207:7): [True: 58, False: 3.18k]
  ------------------
  208|  3.60k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (208:10): [True: 461, False: 3.13k]
  |  Branch (208:28): [True: 434, False: 27]
  |  Branch (208:48): [True: 353, False: 81]
  ------------------
  209|    353|		part = (part * 10) + (*verStr - '0');
  210|    353|		++verStr;
  211|    353|	}
  212|  3.24k|	if ( part > 999 ) part = 999;
  ------------------
  |  Branch (212:7): [True: 12, False: 3.23k]
  ------------------
  213|  3.24k|	thiz->prevTkVer += part;
  214|       |	
  215|  3.24k|	return rootNode;
  216|       |	
  217|  3.24k|}	// FindRootNode
XMPMeta-Parse.cpp:_ZL12PickBestRootRK8XML_Nodej:
  111|  2.07k|{
  112|       |
  113|       |	// Look among this parent's content for x:xmpmeta. The recursion for x:xmpmeta is broader than
  114|       |	// the strictly defined choice, but gives us smaller code.
  115|  6.64k|	for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (115:66): [True: 4.65k, False: 1.98k]
  ------------------
  116|  4.65k|		const XML_Node * childNode = xmlParent.content[childNum];
  117|  4.65k|		if ( childNode->kind != kElemNode ) continue;
  ------------------
  |  Branch (117:8): [True: 4.29k, False: 368]
  ------------------
  118|    368|		if ( (childNode->name == "x:xmpmeta") || (childNode->name == "x:xapmeta") ) return PickBestRoot ( *childNode, 0 );
  ------------------
  |  Branch (118:8): [True: 91, False: 277]
  |  Branch (118:44): [True: 0, False: 277]
  ------------------
  119|    368|	}
  120|       |	// Look among this parent's content for a bare rdf:RDF if that is allowed.
  121|  1.98k|	if ( ! (options & kXMP_RequireXMPMeta) ) {
  ------------------
  |  Branch (121:7): [True: 1.98k, False: 0]
  ------------------
  122|  6.44k|		for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (122:67): [True: 4.51k, False: 1.93k]
  ------------------
  123|  4.51k|			const XML_Node * childNode = xmlParent.content[childNum];
  124|  4.51k|			if ( childNode->kind != kElemNode ) continue;
  ------------------
  |  Branch (124:9): [True: 4.23k, False: 276]
  ------------------
  125|    276|			if ( childNode->name == "rdf:RDF" ) return childNode;
  ------------------
  |  Branch (125:9): [True: 46, False: 230]
  ------------------
  126|    276|		}
  127|  1.98k|	}
  128|       |	
  129|       |	// Recurse into the content.
  130|  3.86k|	for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (130:66): [True: 1.92k, False: 1.93k]
  ------------------
  131|  1.92k|		const XML_Node * foundRoot = PickBestRoot ( *xmlParent.content[childNum], options );
  132|  1.92k|		if ( foundRoot != 0 ) return foundRoot;
  ------------------
  |  Branch (132:8): [True: 0, False: 1.92k]
  ------------------
  133|  1.92k|	}
  134|       |	
  135|  1.93k|	return 0;
  136|       |
  137|  1.93k|}	// PickBestRoot
XMPMeta-Parse.cpp:_ZL17NormalizeDCArraysP8XMP_Node:
  231|  2.56k|{
  232|  2.56k|	XMP_Node * dcSchema = FindSchemaNode ( xmpTree, kXMP_NS_DC, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.56k|#define kXMP_ExistingOnly	false
  ------------------
  233|  2.56k|	if ( dcSchema == 0 ) return;
  ------------------
  |  Branch (233:7): [True: 2.41k, False: 147]
  ------------------
  234|       |	
  235|    490|	for ( size_t propNum = 0, propLimit = dcSchema->children.size(); propNum < propLimit; ++propNum ) {
  ------------------
  |  Branch (235:67): [True: 343, False: 147]
  ------------------
  236|    343|		XMP_Node *     currProp  = dcSchema->children[propNum];
  237|    343|		XMP_OptionBits arrayForm = 0;
  238|       |		
  239|    343|		if ( ! XMP_PropIsSimple ( currProp->options ) ) continue;	// Nothing to do if not simple.
  ------------------
  |  Branch (239:8): [True: 108, False: 235]
  ------------------
  240|       |		
  241|    235|		if ( (currProp->name == "dc:creator" )     ||	// See if it is supposed to be an array.
  ------------------
  |  Branch (241:8): [True: 24, False: 211]
  ------------------
  242|    211|		     (currProp->name == "dc:date" ) ) {			// *** Think about an array of char* and a loop.
  ------------------
  |  Branch (242:8): [True: 0, False: 211]
  ------------------
  243|     24|			arrayForm = kXMP_PropArrayIsOrdered;
  244|    211|		} else if (
  245|    211|		     (currProp->name == "dc:description" ) ||
  ------------------
  |  Branch (245:8): [True: 10, False: 201]
  ------------------
  246|    201|		     (currProp->name == "dc:rights" )      ||
  ------------------
  |  Branch (246:8): [True: 1, False: 200]
  ------------------
  247|    200|		     (currProp->name == "dc:title" ) ) {
  ------------------
  |  Branch (247:8): [True: 0, False: 200]
  ------------------
  248|     11|			arrayForm = kXMP_PropArrayIsAltText;
  249|    200|		} else if (
  250|    200|		     (currProp->name == "dc:contributor" ) ||
  ------------------
  |  Branch (250:8): [True: 0, False: 200]
  ------------------
  251|    200|		     (currProp->name == "dc:language" )    ||
  ------------------
  |  Branch (251:8): [True: 6, False: 194]
  ------------------
  252|    194|		     (currProp->name == "dc:publisher" )   ||
  ------------------
  |  Branch (252:8): [True: 5, False: 189]
  ------------------
  253|    189|		     (currProp->name == "dc:relation" )    ||
  ------------------
  |  Branch (253:8): [True: 11, False: 178]
  ------------------
  254|    178|		     (currProp->name == "dc:subject" )     ||
  ------------------
  |  Branch (254:8): [True: 0, False: 178]
  ------------------
  255|    178|		     (currProp->name == "dc:type" ) ) {
  ------------------
  |  Branch (255:8): [True: 0, False: 178]
  ------------------
  256|     22|			arrayForm = kXMP_PropValueIsArray;
  257|     22|		}
  258|    235|		if ( arrayForm == 0 ) continue;	// Nothing to do if it isn't supposed to be an array.
  ------------------
  |  Branch (258:8): [True: 178, False: 57]
  ------------------
  259|       |		
  260|     57|		arrayForm = VerifySetOptions ( arrayForm, 0 );	// Set the implicit array bits.
  261|     57|		XMP_Node * newArray = new XMP_Node ( dcSchema, currProp->name.c_str(), arrayForm );
  262|     57|		dcSchema->children[propNum] = newArray;
  263|     57|		newArray->children.push_back ( currProp );
  264|     57|		currProp->parent = newArray;
  265|     57|		currProp->name = kXMP_ArrayItemName;
  ------------------
  |  |  293|     57|#define kXMP_ArrayItemName	"[]"
  ------------------
  266|       |		
  267|     57|		if ( XMP_ArrayIsAltText ( arrayForm ) && (! (currProp->options & kXMP_PropHasLang)) ) {
  ------------------
  |  Branch (267:8): [True: 11, False: 46]
  |  Branch (267:44): [True: 11, False: 0]
  ------------------
  268|     11|			XMP_Node * newLang = new XMP_Node ( currProp, "xml:lang", "x-default", kXMP_PropIsQualifier );
  269|     11|			currProp->options |= (kXMP_PropHasQualifiers | kXMP_PropHasLang);
  270|     11|			if ( currProp->qualifiers.empty() ) {	// *** Need a util?
  ------------------
  |  Branch (270:9): [True: 11, False: 0]
  ------------------
  271|     11|				currProp->qualifiers.push_back ( newLang );
  272|     11|			} else {
  273|      0|				currProp->qualifiers.insert ( currProp->qualifiers.begin(), newLang );
  274|      0|			}
  275|     11|		}
  276|       |
  277|     57|	}
  278|       |	
  279|    147|}	// NormalizeDCArrays
XMPMeta-Parse.cpp:_ZL16TouchUpDataModelP7XMPMeta:
  665|  2.56k|{
  666|  2.56k|	XMP_Node & tree = xmp->tree;
  667|       |	
  668|       |	// Do special case touch ups for certain schema.
  669|       |
  670|  2.56k|	XMP_Node * currSchema = 0;
  671|       |
  672|  2.56k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_EXIF, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.56k|#define kXMP_ExistingOnly	false
  ------------------
  673|  2.56k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (673:7): [True: 48, False: 2.51k]
  ------------------
  674|       |
  675|       |		// Do a special case fix for exif:GPSTimeStamp.
  676|     48|		XMP_Node * gpsDateTime = FindChildNode ( currSchema, "exif:GPSTimeStamp", kXMP_ExistingOnly );
  ------------------
  |  |  296|     48|#define kXMP_ExistingOnly	false
  ------------------
  677|     48|		if ( gpsDateTime != 0 ) FixGPSTimeStamp ( currSchema, gpsDateTime );
  ------------------
  |  Branch (677:8): [True: 0, False: 48]
  ------------------
  678|       |	
  679|       |		// *** Should probably have RepairAltText change simple values to LangAlt with 'x-default' item.
  680|       |		// *** For now just do this for exif:UserComment, the one case we know about, late in cycle fix.
  681|     48|		XMP_Node * userComment = FindChildNode ( currSchema, "exif:UserComment", kXMP_ExistingOnly );
  ------------------
  |  |  296|     48|#define kXMP_ExistingOnly	false
  ------------------
  682|     48|		if ( (userComment != 0) && XMP_PropIsSimple ( userComment->options ) ) {
  ------------------
  |  Branch (682:8): [True: 0, False: 48]
  |  Branch (682:30): [True: 0, False: 0]
  ------------------
  683|      0|			XMP_Node * newChild = new XMP_Node ( userComment, kXMP_ArrayItemName,
  ------------------
  |  |  293|      0|#define kXMP_ArrayItemName	"[]"
  ------------------
  684|      0|												 userComment->value.c_str(), userComment->options );
  685|      0|			newChild->qualifiers.swap ( userComment->qualifiers );
  686|      0|			if ( ! XMP_PropHasLang ( newChild->options ) ) {
  ------------------
  |  Branch (686:9): [True: 0, False: 0]
  ------------------
  687|      0|				XMP_Node * langQual = new XMP_Node ( newChild, "xml:lang", "x-default", kXMP_PropIsQualifier );
  688|      0|				newChild->qualifiers.insert ( newChild->qualifiers.begin(), langQual );
  689|      0|				newChild->options |= (kXMP_PropHasQualifiers | kXMP_PropHasLang);
  690|      0|			}
  691|      0|			userComment->value.erase();
  692|      0|			userComment->options = kXMP_PropArrayFormMask;	// ! Happens to have all the right bits.
  693|      0|			userComment->children.push_back ( newChild );
  694|      0|		}
  695|       |
  696|     48|	}
  697|       |
  698|  2.56k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_DM, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.56k|#define kXMP_ExistingOnly	false
  ------------------
  699|  2.56k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (699:7): [True: 0, False: 2.56k]
  ------------------
  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.56k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_DC, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.56k|#define kXMP_ExistingOnly	false
  ------------------
  707|  2.56k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (707:7): [True: 147, False: 2.41k]
  ------------------
  708|       |		// Do a special case fix for dc:subject, make sure it is an unordered array.
  709|    147|		XMP_Node * dcSubject = FindChildNode ( currSchema, "dc:subject", kXMP_ExistingOnly );
  ------------------
  |  |  296|    147|#define kXMP_ExistingOnly	false
  ------------------
  710|    147|		if ( dcSubject != 0 ) {
  ------------------
  |  Branch (710:8): [True: 30, False: 117]
  ------------------
  711|     30|                        XMP_OptionBits keepMask = static_cast<XMP_OptionBits>(~(kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate | kXMP_PropArrayIsAltText));
  712|     30|			dcSubject->options &= keepMask;	// Make sure any ordered array bits are clear.
  713|     30|		}
  714|    147|	}
  715|       |	
  716|       |	// Fix any broken AltText arrays that we know about.
  717|       |	
  718|  2.56k|	RepairAltText ( tree, kXMP_NS_DC, "dc:description" );	// ! Note inclusion of prefixes for direct node lookup!
  719|  2.56k|	RepairAltText ( tree, kXMP_NS_DC, "dc:rights" );
  720|  2.56k|	RepairAltText ( tree, kXMP_NS_DC, "dc:title" );
  721|  2.56k|	RepairAltText ( tree, kXMP_NS_XMP_Rights, "xmpRights:UsageTerms" );
  722|  2.56k|	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.56k|	if ( ! tree.name.empty() ) {
  ------------------
  |  Branch (731:7): [True: 179, False: 2.38k]
  ------------------
  732|       |
  733|    179|		bool nameIsUUID = false;
  734|    179|		XMP_StringPtr nameStr = tree.name.c_str();
  735|       |
  736|    179|		if ( XMP_LitNMatch ( nameStr, "uuid:", 5 ) ) {
  ------------------
  |  |   97|    179|#define XMP_LitNMatch(s,l,n)	(std::strncmp((s),(l),(n)) == 0)
  |  |  ------------------
  |  |  |  Branch (97:30): [True: 29, False: 150]
  |  |  ------------------
  ------------------
  737|       |
  738|     29|			nameIsUUID = true;
  739|       |
  740|    150|		} else if ( tree.name.size() == 36 ) {
  ------------------
  |  Branch (740:15): [True: 114, False: 36]
  ------------------
  741|       |
  742|    114|			nameIsUUID = true;	// ! Assume true, we'll set it to false below if not.
  743|  2.27k|			for ( int i = 0;  i < 36; ++i ) {
  ------------------
  |  Branch (743:22): [True: 2.24k, False: 28]
  ------------------
  744|  2.24k|				char ch = nameStr[i];
  745|  2.24k|				if ( ch == '-' ) {
  ------------------
  |  Branch (745:10): [True: 80, False: 2.16k]
  ------------------
  746|     80|					if ( (i == 8) || (i == 13) || (i == 18) || (i == 23) ) continue;
  ------------------
  |  Branch (746:11): [True: 6, False: 74]
  |  Branch (746:23): [True: 6, False: 68]
  |  Branch (746:36): [True: 21, False: 47]
  |  Branch (746:49): [True: 26, False: 21]
  ------------------
  747|     21|					nameIsUUID = false;
  748|     21|					break;
  749|  2.16k|				} else {
  750|  2.16k|					if ( (('0' <= ch) && (ch <= '9')) || (('a' <= ch) && (ch <= 'z')) ) continue;
  ------------------
  |  Branch (750:12): [True: 2.15k, False: 10]
  |  Branch (750:27): [True: 425, False: 1.73k]
  |  Branch (750:44): [True: 1.68k, False: 53]
  |  Branch (750:59): [True: 1.67k, False: 12]
  ------------------
  751|     65|					nameIsUUID = false;
  752|     65|					break;
  753|  2.16k|				}
  754|  2.24k|			}
  755|       |
  756|    114|		}
  757|       |		
  758|    179|		if ( nameIsUUID ) {
  ------------------
  |  Branch (758:8): [True: 57, False: 122]
  ------------------
  759|       |
  760|     57|			XMP_ExpandedXPath expPath;
  761|     57|			ExpandXPath ( kXMP_NS_XMP_MM, "InstanceID", &expPath );
  762|     57|			XMP_Node * idNode = FindNode ( &tree, expPath, kXMP_CreateNodes, 0 );
  ------------------
  |  |  295|     57|#define kXMP_CreateNodes	true
  ------------------
  763|     57|			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: 57]
  ------------------
  764|       |
  765|     57|			idNode->options = 0;	// Clobber any existing xmpMM:InstanceID.
  766|     57|			idNode->value = tree.name;
  767|     57|			idNode->RemoveChildren();
  768|     57|			idNode->RemoveQualifiers();
  769|       |
  770|     57|			tree.name.erase();
  771|       |
  772|     57|		}
  773|       |
  774|    179|	}
  775|       |
  776|  2.56k|}	// TouchUpDataModel
XMPMeta-Parse.cpp:_ZL13RepairAltTextR8XMP_NodePKcS2_:
  609|  12.8k|{
  610|  12.8k|	XMP_Node * schemaNode = FindSchemaNode ( &tree, schemaNS, kXMP_ExistingOnly );
  ------------------
  |  |  296|  12.8k|#define kXMP_ExistingOnly	false
  ------------------
  611|  12.8k|	if ( schemaNode == 0 ) return;
  ------------------
  |  Branch (611:7): [True: 12.3k, False: 500]
  ------------------
  612|       |	
  613|    500|	XMP_Node * arrayNode = FindChildNode ( schemaNode, arrayName, kXMP_ExistingOnly );
  ------------------
  |  |  296|    500|#define kXMP_ExistingOnly	false
  ------------------
  614|    500|	if ( (arrayNode == 0) || XMP_ArrayIsAltText ( arrayNode->options ) ) return;	// Already OK.
  ------------------
  |  Branch (614:7): [True: 409, False: 91]
  |  Branch (614:27): [True: 61, False: 30]
  ------------------
  615|       |	
  616|     30|	if ( ! XMP_PropIsArray ( arrayNode->options ) ) return;	// ! Not even an array, leave it alone.
  ------------------
  |  Branch (616:7): [True: 0, False: 30]
  ------------------
  617|       |	// *** Should probably change simple values to LangAlt with 'x-default' item.
  618|       |	
  619|     30|	arrayNode->options |= (kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate | kXMP_PropArrayIsAltText);
  620|       |	
  621|     56|	for ( int i = arrayNode->children.size()-1; i >= 0; --i ) {	// ! Need a signed index type.
  ------------------
  |  Branch (621:46): [True: 26, False: 30]
  ------------------
  622|       |
  623|     26|		XMP_Node * currChild = arrayNode->children[i];
  624|       |
  625|     26|		if ( ! XMP_PropIsSimple ( currChild->options ) ) {
  ------------------
  |  Branch (625:8): [True: 10, False: 16]
  ------------------
  626|       |
  627|       |			// Delete non-simple children.
  628|     10|			delete ( currChild );
  629|     10|			arrayNode->children.erase ( arrayNode->children.begin() + i );
  630|       |
  631|     16|		} else if ( ! XMP_PropHasLang ( currChild->options ) ) {
  ------------------
  |  Branch (631:15): [True: 16, False: 0]
  ------------------
  632|       |		
  633|     16|			if ( currChild->value.empty() ) {
  ------------------
  |  Branch (633:9): [True: 0, False: 16]
  ------------------
  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|     16|			} else {
  640|       |
  641|       |				// Add an xml:lang qualifier with the value "x-repair".
  642|     16|				XMP_Node * repairLang = new XMP_Node ( currChild, "xml:lang", "x-repair", kXMP_PropIsQualifier );
  643|     16|				if ( currChild->qualifiers.empty() ) {
  ------------------
  |  Branch (643:10): [True: 16, False: 0]
  ------------------
  644|     16|					currChild->qualifiers.push_back ( repairLang );
  645|     16|				} else {
  646|      0|					currChild->qualifiers.insert ( currChild->qualifiers.begin(), repairLang );
  647|      0|				}
  648|     16|				currChild->options |= (kXMP_PropHasQualifiers | kXMP_PropHasLang);
  649|       |
  650|     16|			}
  651|       |
  652|     16|		}
  653|       |
  654|     26|	}
  655|       |
  656|     30|}	// RepairAltText

_ZNK7XMPMeta17SerializeToBufferEPPKcPjjjS1_S1_i:
 1165|    266|{
 1166|    266|	XMP_Assert ( (rdfString != 0) && (rdfSize != 0) && (newline != 0) && (indentStr != 0) );
  ------------------
  |  |  142|    266|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1167|       |
 1168|       |	// Fix up some default parameters.
 1169|       |	
 1170|    266|	enum { kDefaultPad = 2048 };
 1171|    266|	size_t unicodeUnitSize = 1;
 1172|    266|	XMP_OptionBits charEncoding = options & kXMP_EncodingMask;
 1173|       |
 1174|    266|	if ( charEncoding != kXMP_EncodeUTF8 ) {
  ------------------
  |  Branch (1174:7): [True: 0, False: 266]
  ------------------
 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|    266|	if ( options & kXMP_OmitAllFormatting ) {
  ------------------
  |  Branch (1185:7): [True: 50, False: 216]
  ------------------
 1186|     50|		newline = " ";	// ! Yes, a space for "newline". This ensures token separation.
 1187|     50|		indentStr = "";
 1188|    216|	} else {
 1189|    216|		if ( *newline == 0 ) newline = "\xA";	// Linefeed
  ------------------
  |  Branch (1189:8): [True: 216, False: 0]
  ------------------
 1190|    216|		if ( *indentStr == 0 ) {
  ------------------
  |  Branch (1190:8): [True: 216, False: 0]
  ------------------
 1191|    216|			indentStr = " ";
 1192|    216|			if ( ! (options & kXMP_UseCompactFormat) ) indentStr  = "   ";
  ------------------
  |  Branch (1192:9): [True: 0, False: 216]
  ------------------
 1193|    216|		}
 1194|    216|	}
 1195|       |	
 1196|    266|	if ( options & kXMP_ExactPacketLength ) {
  ------------------
  |  Branch (1196:7): [True: 0, False: 266]
  ------------------
 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|    266|	} else if ( options & kXMP_ReadOnlyPacket ) {
  ------------------
  |  Branch (1203:14): [True: 0, False: 266]
  ------------------
 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|    266|	} else if ( options & kXMP_OmitPacketWrapper ) {
  ------------------
  |  Branch (1208:14): [True: 0, False: 266]
  ------------------
 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|    266|	} else {
 1214|    266|		if ( padding == 0 ) padding = kDefaultPad * unicodeUnitSize;
  ------------------
  |  Branch (1214:8): [True: 266, False: 0]
  ------------------
 1215|    266|		if ( options & kXMP_IncludeThumbnailPad ) {
  ------------------
  |  Branch (1215:8): [True: 0, False: 266]
  ------------------
 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|    266|	}
 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|    266|	std::string tailStr;
 1223|       |
 1224|    266|	SerializeAsRDF ( *this, *sOutputStr, tailStr, options, newline, indentStr, baseIndent );
 1225|    266|	if ( charEncoding == kXMP_EncodeUTF8 ) {
  ------------------
  |  Branch (1225:7): [True: 266, False: 0]
  ------------------
 1226|       |
 1227|    266|		if ( options & kXMP_ExactPacketLength ) {
  ------------------
  |  Branch (1227:8): [True: 0, False: 266]
  ------------------
 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|    266|		size_t newlineLen = strlen ( newline );
 1234|       |	
 1235|    266|		if ( padding < newlineLen ) {
  ------------------
  |  Branch (1235:8): [True: 0, False: 266]
  ------------------
 1236|      0|			sOutputStr->append ( padding, ' ' );
 1237|    266|		} else {
 1238|    266|			padding -= newlineLen;	// Write this newline last.
 1239|  5.58k|			while ( padding >= (100 + newlineLen) ) {
  ------------------
  |  Branch (1239:12): [True: 5.32k, False: 266]
  ------------------
 1240|  5.32k|				sOutputStr->append ( 100, ' ' );
 1241|  5.32k|				*sOutputStr += newline;
 1242|  5.32k|				padding -= (100 + newlineLen);
 1243|  5.32k|			}
 1244|    266|			sOutputStr->append ( padding, ' ' );
 1245|    266|			*sOutputStr += newline;
 1246|    266|		}
 1247|       |
 1248|    266|		*sOutputStr += tailStr;
 1249|       |	
 1250|    266|	} 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|    266|	*rdfString = sOutputStr->c_str();
 1338|    266|	*rdfSize   = sOutputStr->size();
 1339|       |
 1340|    266|}	// SerializeToBuffer
XMPMeta-Serialize.cpp:_ZL14SerializeAsRDFRK7XMPMetaRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES9_jPKcSB_i:
 1058|    266|{
 1059|    266|	const size_t treeNameLen = xmpObj.tree.name.size();
 1060|    266|	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|    266|	size_t outputLen = 2 * (strlen(kPacketHeader) + strlen(kRDF_XMPMetaStart) + strlen(kRDF_RDFStart) + 3*baseIndent*indentLen);
 1071|       |	
 1072|  1.05k|	for ( size_t schemaNum = 0, schemaLim = xmpObj.tree.children.size(); schemaNum < schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (1072:71): [True: 787, False: 266]
  ------------------
 1073|    787|		const XMP_Node * currSchema = xmpObj.tree.children[schemaNum];
 1074|    787|		outputLen += 2*(baseIndent+2)*indentLen + strlen(kRDF_SchemaStart) + treeNameLen + strlen(kRDF_SchemaEnd) + 2;
 1075|    787|		outputLen += EstimateRDFSize ( currSchema, baseIndent+2, indentLen );
 1076|    787|	}
 1077|       |	
 1078|    266|	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|    266|	XMP_Index level;
 1083|       |	
 1084|    266|	headStr.erase();
 1085|    266|	headStr.reserve ( outputLen );
 1086|       |	
 1087|       |	// Write the packet header PI.
 1088|    266|	if ( ! (options & kXMP_OmitPacketWrapper) ) {
  ------------------
  |  Branch (1088:7): [True: 266, False: 0]
  ------------------
 1089|    266|		for ( level = baseIndent; level > 0; --level ) headStr += indentStr;
  ------------------
  |  Branch (1089:29): [True: 0, False: 266]
  ------------------
 1090|    266|		headStr += kPacketHeader;
 1091|    266|		headStr += newline;
 1092|    266|	}
 1093|       |
 1094|       |	// Write the xmpmeta element's start tag.
 1095|    266|	if ( ! (options & kXMP_OmitXMPMetaElement) ) {
  ------------------
  |  Branch (1095:7): [True: 266, False: 0]
  ------------------
 1096|    266|		for ( level = baseIndent; level > 0; --level ) headStr += indentStr;
  ------------------
  |  Branch (1096:29): [True: 0, False: 266]
  ------------------
 1097|    266|		headStr += kRDF_XMPMetaStart;
 1098|    266|		headStr += kXMPCore_VersionMessage "\">";
  ------------------
  |  |  134|    266|	#define kXMPCore_VersionMessage	kXMPCoreName " " XMP_API_VERSION_STRING
  |  |  ------------------
  |  |  |  |  133|    266|	#define kXMPCoreName "XMP Core"
  |  |  ------------------
  ------------------
 1099|    266|		headStr += newline;
 1100|    266|	}
 1101|       |
 1102|       |	// Write the rdf:RDF start tag.
 1103|    532|	for ( level = baseIndent+1; level > 0; --level ) headStr += indentStr;
  ------------------
  |  Branch (1103:30): [True: 266, False: 266]
  ------------------
 1104|    266|	headStr += kRDF_RDFStart;
 1105|    266|	headStr += newline;
 1106|       |	
 1107|       |	// Write all of the properties.
 1108|    266|	if ( options & kXMP_UseCompactFormat ) {
  ------------------
  |  Branch (1108:7): [True: 266, False: 0]
  ------------------
 1109|    266|		SerializeCompactRDFSchemas ( xmpObj.tree, headStr, newline, indentStr, baseIndent );
 1110|    266|	} 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|    532|	for ( level = baseIndent+1; level > 0; --level ) headStr += indentStr;
  ------------------
  |  Branch (1127:30): [True: 266, False: 266]
  ------------------
 1128|    266|	headStr += kRDF_RDFEnd;
 1129|    266|	headStr += newline;
 1130|       |
 1131|       |	// Write the xmpmeta end tag.
 1132|    266|	if ( ! (options & kXMP_OmitXMPMetaElement) ) {
  ------------------
  |  Branch (1132:7): [True: 266, False: 0]
  ------------------
 1133|    266|		for ( level = baseIndent; level > 0; --level ) headStr += indentStr;
  ------------------
  |  Branch (1133:29): [True: 0, False: 266]
  ------------------
 1134|    266|		headStr += kRDF_XMPMetaEnd;
 1135|    266|		headStr += newline;
 1136|    266|	}
 1137|       |	
 1138|       |	// Write the packet trailer PI into the tail string as UTF-8.
 1139|    266|	tailStr.erase();
 1140|    266|	if ( ! (options & kXMP_OmitPacketWrapper) ) {
  ------------------
  |  Branch (1140:7): [True: 266, False: 0]
  ------------------
 1141|    266|		tailStr.reserve ( strlen(kPacketTrailer) + (strlen(indentStr) * baseIndent) );
 1142|    266|		for ( level = baseIndent; level > 0; --level ) tailStr += indentStr;
  ------------------
  |  Branch (1142:29): [True: 0, False: 266]
  ------------------
 1143|    266|		tailStr += kPacketTrailer;
 1144|    266|		if ( options & kXMP_ReadOnlyPacket ) tailStr[tailStr.size()-4] = 'r';
  ------------------
  |  Branch (1144:8): [True: 0, False: 266]
  ------------------
 1145|    266|	}
 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|    266|}	// SerializeAsRDF
XMPMeta-Serialize.cpp:_ZL15EstimateRDFSizePK8XMP_Nodeim:
   83|  5.54k|{
   84|  5.54k|	size_t outputLen = 2 * (indent*indentLen + currNode->name.size() + 4);	// The property element tags.
   85|       |	
   86|  5.54k|	if ( ! currNode->qualifiers.empty() ) {
  ------------------
  |  Branch (86:7): [True: 149, False: 5.39k]
  ------------------
   87|       |		// This node has qualifiers, assume it is written using rdf:value and estimate the qualifiers.
   88|       |
   89|    149|		indent += 2;	// Everything else is indented inside the rdf:Description element.
   90|    149|		outputLen += 2 * ((indent-1)*indentLen + strlen(kRDF_StructStart) + 2);	// The rdf:Description tags.
   91|    149|		outputLen += 2 * (indent*indentLen + strlen(kRDF_ValueStart) + 2);		// The rdf:value tags.
   92|       |
   93|    334|		for ( size_t qualNum = 0, qualLim = currNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (93:68): [True: 185, False: 149]
  ------------------
   94|    185|			const XMP_Node * currQual = currNode->qualifiers[qualNum];
   95|    185|			outputLen += EstimateRDFSize ( currQual, indent, indentLen );
   96|    185|		}
   97|       |
   98|    149|	}
   99|       |	
  100|  5.54k|	if ( currNode->options & kXMP_PropValueIsStruct ) {
  ------------------
  |  Branch (100:7): [True: 143, False: 5.40k]
  ------------------
  101|    143|		indent += 1;
  102|    143|		outputLen += 2 * (indent*indentLen + strlen(kRDF_StructStart) + 2);	// The rdf:Description tags.
  103|  5.40k|	} else if ( currNode->options & kXMP_PropValueIsArray ) {
  ------------------
  |  Branch (103:14): [True: 448, False: 4.95k]
  ------------------
  104|    448|		indent += 2;
  105|    448|		outputLen += 2 * ((indent-1)*indentLen + strlen(kRDF_BagStart) + 2);		// The rdf:Bag/Seq/Alt tags.
  106|    448|		outputLen += 2 * currNode->children.size() * (strlen(kRDF_ItemStart) + 2);	// The rdf:li tags, indent counted in children.
  107|  4.95k|	} else if ( ! (currNode->options & kXMP_SchemaNode) ) {
  ------------------
  |  Branch (107:14): [True: 4.16k, False: 787]
  ------------------
  108|  4.16k|		outputLen += currNode->value.size();	// This is a leaf value node.
  109|  4.16k|	}
  110|       |
  111|  10.1k|	for ( size_t childNum = 0, childLim = currNode->children.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (111:67): [True: 4.57k, False: 5.54k]
  ------------------
  112|  4.57k|		const XMP_Node * currChild = currNode->children[childNum];
  113|  4.57k|		outputLen += EstimateRDFSize ( currChild, indent+1, indentLen );
  114|  4.57k|	}
  115|       |
  116|  5.54k|	return outputLen;
  117|       |	
  118|  5.54k|}	// EstimateRDFSize
XMPMeta-Serialize.cpp:_ZL26SerializeCompactRDFSchemasRK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcSB_i:
  973|    266|{
  974|    266|	XMP_Index level;
  975|    266|	size_t schema, schemaLim;
  976|       |	
  977|       |	// Begin the rdf:Description start tag.
  978|    798|	for ( level = baseIndent+2; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (978:30): [True: 532, False: 266]
  ------------------
  979|    266|	outputStr += kRDF_SchemaStart;
  980|    266|	outputStr += '"';
  981|    266|	outputStr += xmpTree.name;
  982|    266|	outputStr += '"';
  983|       |	
  984|       |	// Write all necessary xmlns attributes.
  985|       |	
  986|    266|	size_t totalLen = 8;	// Start at 8 for "xml:rdf:".
  987|    266|	XMP_cStringMapPos currPos = sNamespacePrefixToURIMap->begin();
  988|    266|	XMP_cStringMapPos endPos  = sNamespacePrefixToURIMap->end();
  989|  41.9k|	for ( ; currPos != endPos; ++currPos ) totalLen += currPos->first.size();
  ------------------
  |  Branch (989:10): [True: 41.6k, False: 266]
  ------------------
  990|       |
  991|    266|	XMP_VarString usedNS;
  992|    266|	usedNS.reserve ( totalLen );
  993|    266|	usedNS = "xml:rdf:";
  994|       |
  995|  1.05k|	for ( schema = 0, schemaLim = xmpTree.children.size(); schema != schemaLim; ++schema ) {
  ------------------
  |  Branch (995:57): [True: 787, False: 266]
  ------------------
  996|    787|		const XMP_Node * currSchema = xmpTree.children[schema];
  997|    787|		DeclareUsedNamespaces ( currSchema, usedNS, outputStr, newline, indentStr, baseIndent+4 );
  998|    787|	}
  999|       |	
 1000|       |	// Write the top level "attrProps" and close the rdf:Description start tag.
 1001|    266|	bool allAreAttrs = true;
 1002|  1.05k|	for ( schema = 0, schemaLim = xmpTree.children.size(); schema != schemaLim; ++schema ) {
  ------------------
  |  Branch (1002:57): [True: 787, False: 266]
  ------------------
 1003|    787|		const XMP_Node * currSchema = xmpTree.children[schema];
 1004|    787|		allAreAttrs &= SerializeCompactRDFAttrProps ( currSchema, outputStr, newline, indentStr, baseIndent+3 );
 1005|    787|	}
 1006|    266|	if ( ! allAreAttrs ) {
  ------------------
  |  Branch (1006:7): [True: 114, False: 152]
  ------------------
 1007|    114|		outputStr += ">";
 1008|    114|		outputStr += newline;
 1009|    152|	} else {
 1010|    152|		outputStr += "/>";
 1011|    152|		outputStr += newline;
 1012|    152|		return;	// ! Done if all properties in all schema are written as attributes.
 1013|    152|	}
 1014|       |
 1015|       |	// Write the remaining properties for each schema.
 1016|    603|	for ( schema = 0, schemaLim = xmpTree.children.size(); schema != schemaLim; ++schema ) {
  ------------------
  |  Branch (1016:57): [True: 489, False: 114]
  ------------------
 1017|    489|		const XMP_Node * currSchema = xmpTree.children[schema];
 1018|    489|		SerializeCompactRDFElemProps ( currSchema, outputStr, newline, indentStr, baseIndent+3 );
 1019|    489|	}
 1020|       |	
 1021|       |	// Write the rdf:Description end tag.
 1022|       |	// *** Elide the end tag if everything (all props in all schema) is an attr.
 1023|    342|	for ( level = baseIndent+2; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (1023:30): [True: 228, False: 114]
  ------------------
 1024|    114|	outputStr += kRDF_SchemaEnd;
 1025|    114|	outputStr += newline;
 1026|       |
 1027|    114|}	// SerializeCompactRDFSchemas
XMPMeta-Serialize.cpp:_ZL21DeclareUsedNamespacesPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES9_PKcSB_i:
  191|  5.54k|{
  192|       |
  193|  5.54k|	if ( currNode->options & kXMP_SchemaNode ) {
  ------------------
  |  Branch (193:7): [True: 787, False: 4.75k]
  ------------------
  194|       |		// The schema node name is the URI, the value is the prefix.
  195|    787|		DeclareOneNamespace ( currNode->value, currNode->name, usedNS, outputStr, newline, indentStr, indent );
  196|  4.75k|	} else if ( currNode->options & kXMP_PropValueIsStruct ) {
  ------------------
  |  Branch (196:14): [True: 143, False: 4.61k]
  ------------------
  197|    546|		for ( size_t fieldNum = 0, fieldLim = currNode->children.size(); fieldNum < fieldLim; ++fieldNum ) {
  ------------------
  |  Branch (197:68): [True: 403, False: 143]
  ------------------
  198|    403|			const XMP_Node * currField = currNode->children[fieldNum];
  199|    403|			DeclareElemNamespace ( currField->name, usedNS, outputStr, newline, indentStr, indent );
  200|    403|		}
  201|    143|	}
  202|       |
  203|  10.1k|	for ( size_t childNum = 0, childLim = currNode->children.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (203:67): [True: 4.57k, False: 5.54k]
  ------------------
  204|  4.57k|		const XMP_Node * currChild = currNode->children[childNum];
  205|  4.57k|		DeclareUsedNamespaces ( currChild, usedNS, outputStr, newline, indentStr, indent );
  206|  4.57k|	}
  207|       |
  208|  5.73k|	for ( size_t qualNum = 0, qualLim = currNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (208:67): [True: 185, False: 5.54k]
  ------------------
  209|    185|		const XMP_Node * currQual = currNode->qualifiers[qualNum];
  210|    185|		DeclareElemNamespace ( currQual->name, usedNS, outputStr, newline, indentStr, indent );
  211|    185|		DeclareUsedNamespaces ( currQual, usedNS, outputStr, newline, indentStr, indent );
  212|    185|	}
  213|       |	
  214|  5.54k|}	// DeclareUsedNamespaces
XMPMeta-Serialize.cpp:_ZL19DeclareOneNamespaceRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_RS5_S8_PKcSA_i:
  133|  1.37k|{
  134|  1.37k|	size_t nsPos = usedNS.find ( nsPrefix );
  135|       |
  136|  1.37k|	if ( nsPos == XMP_VarString::npos ) {
  ------------------
  |  Branch (136:7): [True: 662, False: 713]
  ------------------
  137|       |		
  138|    662|		outputStr += newline;
  139|  3.31k|		for ( ; indent > 0; --indent ) outputStr += indentStr;
  ------------------
  |  Branch (139:11): [True: 2.64k, False: 662]
  ------------------
  140|    662|		outputStr += "xmlns:";
  141|    662|		outputStr += nsPrefix;
  142|    662|		outputStr[outputStr.size()-1] = '=';	// Change the colon to =.
  143|    662|		outputStr += '"';
  144|    662|		outputStr += nsURI;
  145|    662|		outputStr += '"';
  146|       |
  147|    662|		usedNS += nsPrefix;
  148|       |
  149|    662|	}
  150|       |
  151|  1.37k|}	// DeclareOneNamespace
XMPMeta-Serialize.cpp:_ZL20DeclareElemNamespaceRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERS5_S8_PKcSA_i:
  165|    588|{
  166|    588|	size_t colonPos = elemName.find ( ':' );
  167|       |
  168|    588|	if ( colonPos != XMP_VarString::npos ) {
  ------------------
  |  Branch (168:7): [True: 588, False: 0]
  ------------------
  169|    588|		XMP_VarString nsPrefix ( elemName.substr ( 0, colonPos+1 ) );
  170|    588|		XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( nsPrefix );
  171|    588|		XMP_Enforce ( prefixPos != sNamespacePrefixToURIMap->end() );
  ------------------
  |  |  148|    588|		if ( ! (c) ) {																				\
  |  |  ------------------
  |  |  |  Branch (148:8): [True: 0, False: 588]
  |  |  ------------------
  |  |  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|    588|		DeclareOneNamespace ( nsPrefix, prefixPos->second, usedNS, outputStr, newline, indentStr, indent );
  173|    588|	}
  174|       |
  175|    588|}	// DeclareElemNamespace
XMPMeta-Serialize.cpp:_ZL28SerializeCompactRDFAttrPropsPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcSB_i:
  682|    930|{
  683|    930|	size_t prop, propLim;
  684|    930|	bool allAreAttrs = true;
  685|       |
  686|  4.55k|	for ( prop = 0, propLim = parentNode->children.size(); prop != propLim; ++prop ) {
  ------------------
  |  Branch (686:57): [True: 3.62k, False: 930]
  ------------------
  687|       |
  688|  3.62k|		const XMP_Node * currProp = parentNode->children[prop];
  689|  3.62k|		if ( ! CanBeRDFAttrProp ( currProp ) ) {
  ------------------
  |  Branch (689:8): [True: 542, False: 3.08k]
  ------------------
  690|    542|			allAreAttrs = false;
  691|    542|			continue;
  692|    542|		}
  693|       |		
  694|  3.08k|		outputStr += newline;
  695|  13.3k|		for ( XMP_Index level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (695:35): [True: 10.2k, False: 3.08k]
  ------------------
  696|  3.08k|		outputStr += currProp->name;
  697|  3.08k|		outputStr += "=\"";
  698|  3.08k|		AppendNodeValue ( outputStr, currProp->value, kForAttribute );
  699|  3.08k|		outputStr += '"';
  700|       |
  701|  3.08k|	}
  702|       |	
  703|    930|	return allAreAttrs;
  704|       |
  705|    930|}	// SerializeCompactRDFAttrProps
XMPMeta-Serialize.cpp:_ZL16CanBeRDFAttrPropPK8XMP_Node:
  341|  7.84k|{
  342|       |	
  343|  7.84k|	if ( propNode->name[0] == '[' ) return false;
  ------------------
  |  Branch (343:7): [True: 950, False: 6.89k]
  ------------------
  344|  6.89k|	if ( ! propNode->qualifiers.empty() ) return false;
  ------------------
  |  Branch (344:7): [True: 96, False: 6.80k]
  ------------------
  345|  6.80k|	if ( propNode->options & kXMP_PropValueIsURI ) return false;
  ------------------
  |  Branch (345:7): [True: 0, False: 6.80k]
  ------------------
  346|  6.80k|	if ( propNode->options & kXMP_PropCompositeMask ) return false;
  ------------------
  |  Branch (346:7): [True: 988, False: 5.81k]
  ------------------
  347|       |	
  348|  5.81k|	return true;
  349|       |	
  350|  6.80k|}	// CanBeRDFAttrProp
XMPMeta-Serialize.cpp:_ZL15AppendNodeValueRNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERKS5_b:
  281|  4.16k|{
  282|       |
  283|  4.16k|	unsigned char * runStart = (unsigned char *) value.c_str();
  284|  4.16k|	unsigned char * runLimit  = runStart + value.size();
  285|  4.16k|	unsigned char * runEnd;
  286|  4.16k|	unsigned char   ch=0;
  287|       |	
  288|  11.4k|	while ( runStart < runLimit ) {
  ------------------
  |  Branch (288:10): [True: 7.30k, False: 4.16k]
  ------------------
  289|       |	
  290|   138k|		for ( runEnd = runStart; runEnd < runLimit; ++runEnd ) {
  ------------------
  |  Branch (290:28): [True: 134k, False: 3.96k]
  ------------------
  291|   134k|			ch = *runEnd;
  292|   134k|			if ( forAttribute && (ch == '"') ) break;
  ------------------
  |  Branch (292:9): [True: 58.5k, False: 76.1k]
  |  Branch (292:25): [True: 130, False: 58.4k]
  ------------------
  293|   134k|			if ( (ch < 0x20) || (ch == '&') || (ch == '<') || (ch == '>') ) break;
  ------------------
  |  Branch (293:9): [True: 1.35k, False: 133k]
  |  Branch (293:24): [True: 0, False: 133k]
  |  Branch (293:39): [True: 0, False: 133k]
  |  Branch (293:54): [True: 1.85k, False: 131k]
  ------------------
  294|   134k|		}
  295|       |		
  296|  7.30k|		outputStr.append ( (char *) runStart, (runEnd - runStart) );
  297|       |		
  298|  7.30k|		if ( runEnd < runLimit ) {
  ------------------
  |  Branch (298:8): [True: 3.34k, False: 3.96k]
  ------------------
  299|       |
  300|  3.34k|			if ( ch < 0x20 ) {
  ------------------
  |  Branch (300:9): [True: 1.35k, False: 1.98k]
  ------------------
  301|       |			
  302|  1.35k|				XMP_Assert ( (ch == kTab) || (ch == kLF) || (ch == kCR) );
  ------------------
  |  |  142|  1.35k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  303|       |
  304|  1.35k|				char hexBuf[16];
  305|  1.35k|				memcpy ( hexBuf, "&#xn;", 5 );
  306|  1.35k|				hexBuf[3] = kHexDigits[ch&0xF];
  ------------------
  |  |   94|  1.35k|#define kHexDigits "0123456789ABCDEF"
  ------------------
  307|  1.35k|				outputStr.append ( hexBuf, 5 );
  308|       |
  309|  1.98k|			} else {
  310|       |
  311|  1.98k|				if ( ch == '"' ) {
  ------------------
  |  Branch (311:10): [True: 130, False: 1.85k]
  ------------------
  312|    130|					outputStr += "&quot;";
  313|  1.85k|				} else if ( ch == '<' ) {
  ------------------
  |  Branch (313:17): [True: 0, False: 1.85k]
  ------------------
  314|      0|					outputStr += "&lt;";
  315|  1.85k|				} else if ( ch == '>' ) {
  ------------------
  |  Branch (315:17): [True: 1.85k, False: 0]
  ------------------
  316|  1.85k|					outputStr += "&gt;";
  317|  1.85k|				} else {
  318|      0|					XMP_Assert ( ch == '&' );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
  319|      0|					outputStr += "&amp;";
  320|      0|				}
  321|       |
  322|  1.98k|			}
  323|       |
  324|  3.34k|			++runEnd;
  325|       |
  326|  3.34k|		}
  327|       |		
  328|  7.30k|		runStart = runEnd;
  329|       |	
  330|  7.30k|	}
  331|       |
  332|  4.16k|}	// AppendNodeValue
XMPMeta-Serialize.cpp:_ZL28SerializeCompactRDFElemPropsPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcSB_i:
  753|    937|{
  754|    937|	XMP_Index level;
  755|       |
  756|  4.75k|	for ( size_t prop = 0, propLim = parentNode->children.size(); prop != propLim; ++prop ) {
  ------------------
  |  Branch (756:64): [True: 3.82k, False: 937]
  ------------------
  757|       |
  758|  3.82k|		const XMP_Node * propNode = parentNode->children[prop];
  759|  3.82k|		if ( CanBeRDFAttrProp ( propNode ) ) continue;
  ------------------
  |  Branch (759:8): [True: 2.32k, False: 1.49k]
  ------------------
  760|       |
  761|  1.49k|		bool emitEndTag = true;
  762|  1.49k|		bool indentEndTag = true;
  763|       |
  764|  1.49k|		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.49k|		XMP_StringPtr elemName = propNode->name.c_str();
  772|  1.49k|		if ( *elemName == '[' ) elemName = "rdf:li";
  ------------------
  |  Branch (772:8): [True: 950, False: 542]
  ------------------
  773|       |
  774|  7.86k|		for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (774:25): [True: 6.37k, False: 1.49k]
  ------------------
  775|  1.49k|		outputStr += '<';
  776|  1.49k|		outputStr += elemName;
  777|       |
  778|  1.49k|		#define isCompact	false
  779|  1.49k|		bool hasGeneralQualifiers = isCompact;	// Might also become true later.
  ------------------
  |  |  778|  1.49k|		#define isCompact	false
  ------------------
  780|  1.49k|		bool hasRDFResourceQual   = false;
  781|       |
  782|  1.67k|		for ( size_t qualNum = 0, qualLim = propNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (782:68): [True: 185, False: 1.49k]
  ------------------
  783|    185|			const XMP_Node * currQual = propNode->qualifiers[qualNum];
  784|    185|			if ( ! IsRDFAttrQualifier ( currQual->name ) ) {
  ------------------
  |  Branch (784:9): [True: 52, False: 133]
  ------------------
  785|     52|				hasGeneralQualifiers = true;
  786|    133|			} else {
  787|    133|				if ( currQual->name == "rdf:resource" ) hasRDFResourceQual = true;
  ------------------
  |  Branch (787:10): [True: 0, False: 133]
  ------------------
  788|    133|				outputStr += ' ';
  789|    133|				outputStr += currQual->name;
  790|    133|				outputStr += "=\"";
  791|    133|				AppendNodeValue ( outputStr, currQual->value, kForAttribute );
  792|    133|				outputStr += '"';
  793|    133|			}
  794|    185|		}
  795|       |		
  796|       |		// --------------------------------------------------------
  797|       |		// Process the property according to the standard patterns.
  798|       |	
  799|  1.49k|		if ( hasGeneralQualifiers ) {
  ------------------
  |  Branch (799:8): [True: 16, False: 1.47k]
  ------------------
  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|     16|			outputStr += " rdf:parseType=\"Resource\">";
  810|     16|			outputStr += newline;
  811|       |
  812|     16|			SerializePrettyRDFProperty ( propNode, outputStr, newline, indentStr, indent+1, true );
  813|       |		
  814|     16|			size_t qualNum = 0;
  815|     16|			size_t qualLim = propNode->qualifiers.size();
  816|     16|			if ( propNode->options & kXMP_PropHasLang ) ++qualNum;
  ------------------
  |  Branch (816:9): [True: 0, False: 16]
  ------------------
  817|       |			
  818|     68|			for ( ; qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (818:12): [True: 52, False: 16]
  ------------------
  819|     52|				const XMP_Node * currQual = propNode->qualifiers[qualNum];
  820|     52|				SerializePrettyRDFProperty ( currQual, outputStr, newline, indentStr, indent+1 );
  821|     52|			}
  822|       |			
  823|  1.47k|		} else {
  824|       |
  825|       |			// --------------------------------------------------------------------
  826|       |			// This node has only attribute qualifiers. Emit as a property element.
  827|       |			
  828|  1.47k|			if ( propForm == 0 ) {
  ------------------
  |  Branch (828:9): [True: 885, False: 591]
  ------------------
  829|       |			
  830|       |				// --------------------------
  831|       |				// This is a simple property.
  832|       |				
  833|    885|				if ( propNode->options & kXMP_PropValueIsURI ) {
  ------------------
  |  Branch (833:10): [True: 0, False: 885]
  ------------------
  834|      0|					outputStr += " rdf:resource=\"";
  835|      0|					AppendNodeValue ( outputStr, propNode->value, kForAttribute );
  836|      0|					outputStr += "\"/>";
  837|      0|					outputStr += newline;
  838|      0|					emitEndTag = false;
  839|    885|				} else if ( propNode->value.empty() ) {
  ------------------
  |  Branch (839:17): [True: 4, False: 881]
  ------------------
  840|      4|					outputStr += "/>";
  841|      4|					outputStr += newline;
  842|      4|					emitEndTag = false;
  843|    881|				} else {
  844|    881|					outputStr += '>';
  845|    881|					AppendNodeValue ( outputStr, propNode->value, kForElement );
  846|    881|					indentEndTag = false;
  847|    881|				}
  848|       |				
  849|    885|			} else if ( propForm & kXMP_PropValueIsArray ) {
  ------------------
  |  Branch (849:16): [True: 448, False: 143]
  ------------------
  850|       |
  851|       |				// -----------------
  852|       |				// This is an array.
  853|       |				
  854|    448|				outputStr += '>';
  855|    448|				outputStr += newline;
  856|    448|				EmitRDFArrayTag ( propForm, outputStr, newline, indentStr, indent+1, propNode->children.size(), kIsStartTag );
  857|       |			
  858|    448|				if ( XMP_ArrayIsAltText(propNode->options) ) NormalizeLangArray ( (XMP_Node*)propNode );
  ------------------
  |  Branch (858:10): [True: 0, False: 448]
  ------------------
  859|    448|				SerializeCompactRDFElemProps ( propNode, outputStr, newline, indentStr, indent+2 );
  860|       |
  861|    448|				EmitRDFArrayTag ( propForm, outputStr, newline, indentStr, indent+1, propNode->children.size(), kIsEndTag );
  862|       |
  863|    448|			} else {
  864|       |
  865|       |				// ----------------------
  866|       |				// This must be a struct.
  867|       |				
  868|    143|				XMP_Assert ( propForm & kXMP_PropValueIsStruct );
  ------------------
  |  |  142|    143|	#define XMP_Assert(c)	((void) 0)
  ------------------
  869|       |
  870|    143|				bool hasAttrFields = false;
  871|    143|				bool hasElemFields = false;
  872|       |			
  873|    143|				size_t field, fieldLim;
  874|    546|				for ( field = 0, fieldLim = propNode->children.size(); field != fieldLim; ++field ) {
  ------------------
  |  Branch (874:60): [True: 403, False: 143]
  ------------------
  875|    403|					XMP_Node * currField = propNode->children[field];
  876|    403|					if ( CanBeRDFAttrProp ( currField ) ) {
  ------------------
  |  Branch (876:11): [True: 403, False: 0]
  ------------------
  877|    403|						hasAttrFields = true;
  878|    403|						if ( hasElemFields ) break;	// No sense looking further.
  ------------------
  |  Branch (878:12): [True: 0, False: 403]
  ------------------
  879|    403|					} else {
  880|      0|						hasElemFields = true;
  881|      0|						if ( hasAttrFields ) break;	// No sense looking further.
  ------------------
  |  Branch (881:12): [True: 0, False: 0]
  ------------------
  882|      0|					}
  883|    403|				}
  884|       |				
  885|    143|				if ( hasRDFResourceQual && hasElemFields ) {
  ------------------
  |  Branch (885:10): [True: 0, False: 143]
  |  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|    143|				if ( propNode->children.size() == 0 ) {
  ------------------
  |  Branch (889:10): [True: 0, False: 143]
  ------------------
  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|    143|				} else if ( ! hasElemFields ) {
  ------------------
  |  Branch (897:17): [True: 143, False: 0]
  ------------------
  898|       |
  899|       |					// All fields can be attributes, use the emptyPropertyElt form.
  900|    143|					SerializeCompactRDFAttrProps ( propNode, outputStr, newline, indentStr, indent+1 );
  901|    143|					outputStr += "/>";
  902|    143|					outputStr += newline;
  903|    143|					emitEndTag = false;
  904|       |
  905|    143|				} 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|    143|			}
  930|       |
  931|  1.47k|		}
  932|       |		
  933|       |		// ----------------------------------
  934|       |		// Emit the property element end tag.
  935|       |		
  936|  1.49k|		if ( emitEndTag ) {
  ------------------
  |  Branch (936:8): [True: 1.34k, False: 147]
  ------------------
  937|  1.88k|			if ( indentEndTag ) for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (937:9): [True: 464, False: 881]
  |  Branch (937:46): [True: 1.42k, False: 464]
  ------------------
  938|  1.34k|			outputStr += "</";
  939|  1.34k|			outputStr += elemName;
  940|  1.34k|			outputStr += '>';
  941|  1.34k|			outputStr += newline;
  942|  1.34k|		}
  943|       |
  944|  1.49k|	}
  945|       |	
  946|    937|}	// SerializeCompactRDFElemProps
XMPMeta-Serialize.cpp:_ZL18IsRDFAttrQualifierNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  361|    237|{
  362|       |
  363|    757|	for ( size_t i = 0; *sAttrQualifiers[i] != 0; ++i ) {
  ------------------
  |  Branch (363:22): [True: 653, False: 104]
  ------------------
  364|    653|		if ( qualName == sAttrQualifiers[i] ) return true;
  ------------------
  |  Branch (364:8): [True: 133, False: 520]
  ------------------
  365|    653|	}
  366|       |
  367|    104|	return false;
  368|       |	
  369|    237|}	// IsRDFAttrQualifier
XMPMeta-Serialize.cpp:_ZL26SerializePrettyRDFPropertyPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcSB_ib:
  410|     68|{
  411|     68|	XMP_Index level;
  412|     68|	bool emitEndTag   = true;
  413|     68|	bool indentEndTag = true;
  414|       |
  415|     68|	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|     68|	XMP_StringPtr elemName = propNode->name.c_str();
  421|     68|	if ( emitAsRDFValue ) {
  ------------------
  |  Branch (421:7): [True: 16, False: 52]
  ------------------
  422|     16|		elemName= "rdf:value";
  423|     52|	} else if ( *elemName == '[' ) {
  ------------------
  |  Branch (423:14): [True: 0, False: 52]
  ------------------
  424|      0|		elemName = "rdf:li";
  425|      0|	}
  426|       |
  427|    476|	for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (427:24): [True: 408, False: 68]
  ------------------
  428|     68|	outputStr += '<';
  429|     68|	outputStr += elemName;
  430|       |	
  431|     68|	#define isCompact	false
  432|     68|	bool hasGeneralQualifiers = isCompact;	// Might also become true later.
  ------------------
  |  |  431|     68|	#define isCompact	false
  ------------------
  433|     68|	bool hasRDFResourceQual   = false;
  434|       |	
  435|    120|	for ( size_t qualNum = 0, qualLim = propNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (435:67): [True: 52, False: 68]
  ------------------
  436|     52|		const XMP_Node * currQual = propNode->qualifiers[qualNum];
  437|     52|		if ( ! IsRDFAttrQualifier ( currQual->name ) ) {
  ------------------
  |  Branch (437:8): [True: 52, False: 0]
  ------------------
  438|     52|			hasGeneralQualifiers = true;
  439|     52|		} 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|     52|	}
  450|       |	
  451|       |	// --------------------------------------------------------
  452|       |	// Process the property according to the standard patterns.
  453|       |	
  454|     68|	if ( hasGeneralQualifiers && (! emitAsRDFValue) ) {
  ------------------
  |  Branch (454:7): [True: 16, False: 52]
  |  Branch (454:31): [True: 0, False: 16]
  ------------------
  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|     68|	} else {
  476|       |
  477|       |		// --------------------------------------------------------------------
  478|       |		// This node has no general qualifiers. Emit using an unqualified form.
  479|       |		
  480|     68|		if ( propForm == 0 ) {
  ------------------
  |  Branch (480:8): [True: 68, False: 0]
  ------------------
  481|       |		
  482|       |			// --------------------------
  483|       |			// This is a simple property.
  484|       |			
  485|     68|			if ( propNode->options & kXMP_PropValueIsURI ) {
  ------------------
  |  Branch (485:9): [True: 0, False: 68]
  ------------------
  486|      0|				outputStr += " rdf:resource=\"";
  487|      0|				AppendNodeValue ( outputStr, propNode->value, kForAttribute );
  488|      0|				outputStr += "\"/>";
  489|      0|				outputStr += newline;
  490|      0|				emitEndTag = false;
  491|     68|			} else if ( propNode->value.empty() ) {
  ------------------
  |  Branch (491:16): [True: 3, False: 65]
  ------------------
  492|      3|				outputStr += "/>";
  493|      3|				outputStr += newline;
  494|      3|				emitEndTag = false;
  495|     65|			} else {
  496|     65|				outputStr += '>';
  497|     65|				AppendNodeValue ( outputStr, propNode->value, kForElement );
  498|     65|				indentEndTag = false;
  499|     65|			}
  500|       |			
  501|     68|		} 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|     68|	}
  556|       |	
  557|       |	// ----------------------------------
  558|       |	// Emit the property element end tag.
  559|       |	
  560|     68|	if ( emitEndTag ) {
  ------------------
  |  Branch (560:7): [True: 65, False: 3]
  ------------------
  561|     65|		if ( indentEndTag ) for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (561:8): [True: 0, False: 65]
  |  Branch (561:45): [True: 0, False: 0]
  ------------------
  562|     65|		outputStr += "</";
  563|     65|		outputStr += elemName;
  564|     65|		outputStr += '>';
  565|     65|		outputStr += newline;
  566|     65|	}
  567|       |	
  568|     68|}	// SerializePrettyRDFProperty
XMPMeta-Serialize.cpp:_ZL15EmitRDFArrayTagjRNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPKcS8_iib:
  235|    896|{
  236|    896|	if ( (! isStartTag) && (arraySize == 0) ) return;
  ------------------
  |  Branch (236:7): [True: 448, False: 448]
  |  Branch (236:25): [True: 5, False: 443]
  ------------------
  237|       |	
  238|  4.45k|	for ( XMP_Index level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (238:34): [True: 3.56k, False: 891]
  ------------------
  239|    891|	if ( isStartTag ) {
  ------------------
  |  Branch (239:7): [True: 448, False: 443]
  ------------------
  240|    448|		outputStr += "<rdf:";
  241|    448|	} else {
  242|    443|		outputStr += "</rdf:";
  243|    443|	}
  244|       |
  245|    891|	if ( arrayForm & kXMP_PropArrayIsAlternate ) {
  ------------------
  |  Branch (245:7): [True: 174, False: 717]
  ------------------
  246|    174|		outputStr += "Alt";
  247|    717|	} else if ( arrayForm & kXMP_PropArrayIsOrdered ) {
  ------------------
  |  Branch (247:14): [True: 599, False: 118]
  ------------------
  248|    599|		outputStr += "Seq";
  249|    599|	} else {
  250|    118|		outputStr += "Bag";
  251|    118|	}
  252|       |	
  253|    891|	if ( isStartTag && (arraySize == 0) ) outputStr += '/';
  ------------------
  |  Branch (253:7): [True: 448, False: 443]
  |  Branch (253:21): [True: 5, False: 443]
  ------------------
  254|    891|	outputStr += '>';
  255|    891|	outputStr += newline;
  256|       |
  257|    891|}	// EmitRDFArrayTag

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

