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

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

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

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

_ZN5Exiv25ErrorC2INSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_9ErrorCodeERKT_:
  243|  2.67k|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|  2.67k|    setMsg(1);
  245|  2.67k|  }
_ZN5Exiv213toBasicStringIcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS2_IT_NS3_IS8_EENS5_IS8_EEEERKT0_:
  153|  2.67k|std::basic_string<charT> toBasicString(const T& arg) {
  154|  2.67k|  std::basic_ostringstream<charT> os;
  155|  2.67k|  os << arg;
  156|  2.67k|  return os.str();
  157|  2.67k|}
_ZN5Exiv213toBasicStringIcA4_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     73|std::basic_string<charT> toBasicString(const T& arg) {
  154|     73|  std::basic_ostringstream<charT> os;
  155|     73|  os << arg;
  156|     73|  return os.str();
  157|     73|}
_ZN5Exiv25ErrorC2IA10_cEENS_9ErrorCodeERKT_:
  243|     16|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     16|    setMsg(1);
  245|     16|  }
_ZN5Exiv213toBasicStringIcA10_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     16|std::basic_string<charT> toBasicString(const T& arg) {
  154|     16|  std::basic_ostringstream<charT> os;
  155|     16|  os << arg;
  156|     16|  return os.str();
  157|     16|}
_ZN5Exiv25ErrorC2IA5_cEENS_9ErrorCodeERKT_:
  243|  4.79k|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|  4.79k|    setMsg(1);
  245|  4.79k|  }
_ZN5Exiv213toBasicStringIcA5_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|  4.79k|std::basic_string<charT> toBasicString(const T& arg) {
  154|  4.79k|  std::basic_ostringstream<charT> os;
  155|  4.79k|  os << arg;
  156|  4.79k|  return os.str();
  157|  4.79k|}
_ZN5Exiv25ErrorC2IA4_cEENS_9ErrorCodeERKT_:
  243|     73|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     73|    setMsg(1);
  245|     73|  }
_ZN5Exiv25ErrorC2IA13_cEENS_9ErrorCodeERKT_:
  243|      1|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|      1|    setMsg(1);
  245|      1|  }
_ZN5Exiv213toBasicStringIcA13_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|      1|std::basic_string<charT> toBasicString(const T& arg) {
  154|      1|  std::basic_ostringstream<charT> os;
  155|      1|  os << arg;
  156|      1|  return os.str();
  157|      1|}
_ZN5Exiv25ErrorC2IPKcA6_cEENS_9ErrorCodeERKT_RKT0_:
  250|     18|      code_(code), arg1_(toBasicString<char>(arg1)), arg2_(toBasicString<char>(arg2)) {
  251|     18|    setMsg(2);
  252|     18|  }
_ZN5Exiv213toBasicStringIcPKcEENSt3__112basic_stringIT_NS3_11char_traitsIS5_EENS3_9allocatorIS5_EEEERKT0_:
  153|     39|std::basic_string<charT> toBasicString(const T& arg) {
  154|     39|  std::basic_ostringstream<charT> os;
  155|     39|  os << arg;
  156|     39|  return os.str();
  157|     39|}
_ZN5Exiv213toBasicStringIcA6_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     18|std::basic_string<charT> toBasicString(const T& arg) {
  154|     18|  std::basic_ostringstream<charT> os;
  155|     18|  os << arg;
  156|     18|  return os.str();
  157|     18|}
_ZN5Exiv25ErrorC2IPKcEENS_9ErrorCodeERKT_:
  243|     21|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     21|    setMsg(1);
  245|     21|  }
_ZN5Exiv25ErrorC2IA61_cEENS_9ErrorCodeERKT_:
  243|     12|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     12|    setMsg(1);
  245|     12|  }
_ZN5Exiv213toBasicStringIcA61_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     12|std::basic_string<charT> toBasicString(const T& arg) {
  154|     12|  std::basic_ostringstream<charT> os;
  155|     12|  os << arg;
  156|     12|  return os.str();
  157|     12|}

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

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

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

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

_ZN5Exiv29MetadatumC2Ev:
  261|  35.1M|  Metadatum() = default;
_ZN5Exiv23KeyC2Ev:
   79|  52.3M|  Key() = default;
_ZN5Exiv23KeyC2ERKS0_:
   80|   477k|  Key(const Key&) = default;

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

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

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

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

_ZN5Exiv27DataBuf5beginEv:
  150|  2.06M|  [[nodiscard]] auto begin() noexcept {
  151|  2.06M|    return pData_.begin();
  152|  2.06M|  }
_ZN5Exiv27DataBuf3endEv:
  154|  19.8k|  [[nodiscard]] auto end() noexcept {
  155|  19.8k|    return pData_.end();
  156|  19.8k|  }
_ZNK5Exiv27DataBuf5beginEv:
  158|  2.52k|  [[nodiscard]] auto begin() const noexcept {
  159|  2.52k|    return pData_.begin();
  160|  2.52k|  }
_ZNK5Exiv27DataBuf3endEv:
  162|  2.43k|  [[nodiscard]] auto end() const noexcept {
  163|  2.43k|    return pData_.end();
  164|  2.43k|  }
_ZNK5Exiv27DataBuf4sizeEv:
  166|  2.55M|  [[nodiscard]] size_t size() const {
  167|  2.55M|    return pData_.size();
  168|  2.55M|  }
_ZNK5Exiv27DataBuf5emptyEv:
  194|  18.2k|  [[nodiscard]] bool empty() const {
  195|  18.2k|    return pData_.empty();
  196|  18.2k|  }
_ZN5Exiv27DataBufC2Ev:
  126|  2.79M|  DataBuf() = default;
image.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_18RegistryENS_9ImageTypeELm30EEEPKT_RAT1__S5_RKT0_:
  447|  32.9k|const T* find(T (&src)[N], const K& key) {
  448|  32.9k|  static_assert(N > 0, "Passed zero length find");
  449|  32.9k|  auto rc = std::find(src, src + N, key);
  450|  32.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 32.9k]
  ------------------
  451|  32.9k|}
_ZN5Exiv28toStringItEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   128k|std::string toString(const T& arg) {
  467|   128k|  return toStringHelper(arg, std::is_integral<T>());
  468|   128k|}
_ZN5Exiv214toStringHelperItEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|   128k|std::string toStringHelper(const T& arg, std::true_type) {
  456|   128k|  return std::to_string(arg);
  457|   128k|}
_ZN5Exiv29getUShortIPKhEEtRKNS_5SliceIT_EENS_9ByteOrderE:
  227|  54.9M|uint16_t getUShort(const Slice<T>& buf, ByteOrder byteOrder) {
  228|  54.9M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (228:7): [True: 2.01M, False: 52.9M]
  ------------------
  229|  2.01M|    return static_cast<byte>(buf.at(1)) << 8 | static_cast<byte>(buf.at(0));
  230|  2.01M|  }
  231|  52.9M|  return static_cast<byte>(buf.at(0)) << 8 | static_cast<byte>(buf.at(1));
  232|  54.9M|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEhLm13EEEPKT_RAT1__S4_RKT0_:
  447|  61.8k|const T* find(T (&src)[N], const K& key) {
  448|  61.8k|  static_assert(N > 0, "Passed zero length find");
  449|  61.8k|  auto rc = std::find(src, src + N, key);
  450|  61.8k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 59.1k, False: 2.63k]
  ------------------
  451|  61.8k|}
types.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_113TypeInfoTableENS_6TypeIdELm24EEEPKT_RAT1__S5_RKT0_:
  447|  47.0M|const T* find(T (&src)[N], const K& key) {
  448|  47.0M|  static_assert(N > 0, "Passed zero length find");
  449|  47.0M|  auto rc = std::find(src, src + N, key);
  450|  47.0M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5.28M, False: 41.7M]
  ------------------
  451|  47.0M|}
_ZN5Exiv28toStringIjEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  6.57k|std::string toString(const T& arg) {
  467|  6.57k|  return toStringHelper(arg, std::is_integral<T>());
  468|  6.57k|}
_ZN5Exiv214toStringHelperIjEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  6.57k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  6.57k|  return std::to_string(arg);
  457|  6.57k|}
_ZN5Exiv28toStringINSt3__14pairIjjEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    166|std::string toString(const T& arg) {
  467|    166|  return toStringHelper(arg, std::is_integral<T>());
  468|    166|}
_ZN5Exiv214toStringHelperINSt3__14pairIjjEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|    166|std::string toStringHelper(const T& arg, std::false_type) {
  461|    166|  std::ostringstream os;
  462|    166|  os << arg;
  463|    166|  return os.str();
  464|    166|}
_ZN5Exiv28toStringIsEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  1.23k|std::string toString(const T& arg) {
  467|  1.23k|  return toStringHelper(arg, std::is_integral<T>());
  468|  1.23k|}
_ZN5Exiv214toStringHelperIsEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  1.23k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  1.23k|  return std::to_string(arg);
  457|  1.23k|}
_ZN5Exiv28toStringIiEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   203k|std::string toString(const T& arg) {
  467|   203k|  return toStringHelper(arg, std::is_integral<T>());
  468|   203k|}
_ZN5Exiv214toStringHelperIiEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|   203k|std::string toStringHelper(const T& arg, std::true_type) {
  456|   203k|  return std::to_string(arg);
  457|   203k|}
_ZN5Exiv28toStringINSt3__14pairIiiEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    350|std::string toString(const T& arg) {
  467|    350|  return toStringHelper(arg, std::is_integral<T>());
  468|    350|}
_ZN5Exiv214toStringHelperINSt3__14pairIiiEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|    350|std::string toStringHelper(const T& arg, std::false_type) {
  461|    350|  std::ostringstream os;
  462|    350|  os << arg;
  463|    350|  return os.str();
  464|    350|}
_ZN5Exiv28toStringIfEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  1.26k|std::string toString(const T& arg) {
  467|  1.26k|  return toStringHelper(arg, std::is_integral<T>());
  468|  1.26k|}
_ZN5Exiv214toStringHelperIfEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|  1.26k|std::string toStringHelper(const T& arg, std::false_type) {
  461|  1.26k|  std::ostringstream os;
  462|  1.26k|  os << arg;
  463|  1.26k|  return os.str();
  464|  1.26k|}
_ZN5Exiv28toStringIdEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   191k|std::string toString(const T& arg) {
  467|   191k|  return toStringHelper(arg, std::is_integral<T>());
  468|   191k|}
_ZN5Exiv214toStringHelperIdEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|   191k|std::string toStringHelper(const T& arg, std::false_type) {
  461|   191k|  std::ostringstream os;
  462|   191k|  os << arg;
  463|   191k|  return os.str();
  464|   191k|}
_ZN5Exiv28toStringImEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  5.64k|std::string toString(const T& arg) {
  467|  5.64k|  return toStringHelper(arg, std::is_integral<T>());
  468|  5.64k|}
_ZN5Exiv214toStringHelperImEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  5.64k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  5.64k|  return std::to_string(arg);
  457|  5.64k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm4EEEPKT_RAT1__S4_RKT0_:
  447|    681|const T* find(T (&src)[N], const K& key) {
  448|    681|  static_assert(N > 0, "Passed zero length find");
  449|    681|  auto rc = std::find(src, src + N, key);
  450|    681|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 380, False: 301]
  ------------------
  451|    681|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm6EEEPKT_RAT1__S4_RKT0_:
  447|    253|const T* find(T (&src)[N], const K& key) {
  448|    253|  static_assert(N > 0, "Passed zero length find");
  449|    253|  auto rc = std::find(src, src + N, key);
  450|    253|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 108, False: 145]
  ------------------
  451|    253|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm5EEEPKT_RAT1__S4_RKT0_:
  447|    359|const T* find(T (&src)[N], const K& key) {
  448|    359|  static_assert(N > 0, "Passed zero length find");
  449|    359|  auto rc = std::find(src, src + N, key);
  450|    359|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 259, False: 100]
  ------------------
  451|    359|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm198EEEPKT_RAT1__S4_RKT0_:
  447|  70.8k|const T* find(T (&src)[N], const K& key) {
  448|  70.8k|  static_assert(N > 0, "Passed zero length find");
  449|  70.8k|  auto rc = std::find(src, src + N, key);
  450|  70.8k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 708, False: 70.1k]
  ------------------
  451|  70.8k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm2EEEPKT_RAT1__S4_RKT0_:
  447|  1.48k|const T* find(T (&src)[N], const K& key) {
  448|  1.48k|  static_assert(N > 0, "Passed zero length find");
  449|  1.48k|  auto rc = std::find(src, src + N, key);
  450|  1.48k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.08k, False: 409]
  ------------------
  451|  1.48k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm3EEEPKT_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: 2.87k, False: 2.58k]
  ------------------
  451|  5.46k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm7EEEPKT_RAT1__S4_RKT0_:
  447|  4.63k|const T* find(T (&src)[N], const K& key) {
  448|  4.63k|  static_assert(N > 0, "Passed zero length find");
  449|  4.63k|  auto rc = std::find(src, src + N, key);
  450|  4.63k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3.80k, False: 833]
  ------------------
  451|  4.63k|}
_ZN5Exiv28toStringIPKhEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_:
  466|  2.24k|std::string toString(const T& arg) {
  467|  2.24k|  return toStringHelper(arg, std::is_integral<T>());
  468|  2.24k|}
_ZN5Exiv214toStringHelperIPKhEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_NS3_17integral_constantIbLb0EEE:
  460|  2.24k|std::string toStringHelper(const T& arg, std::false_type) {
  461|  2.24k|  std::ostringstream os;
  462|  2.24k|  os << arg;
  463|  2.24k|  return os.str();
  464|  2.24k|}
_ZN5Exiv28toStringIlEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    672|std::string toString(const T& arg) {
  467|    672|  return toStringHelper(arg, std::is_integral<T>());
  468|    672|}
_ZN5Exiv214toStringHelperIlEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|    672|std::string toStringHelper(const T& arg, std::true_type) {
  456|    672|  return std::to_string(arg);
  457|    672|}
_ZN5Exiv28toStringIPhEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKT_:
  466|   562k|std::string toString(const T& arg) {
  467|   562k|  return toStringHelper(arg, std::is_integral<T>());
  468|   562k|}
_ZN5Exiv214toStringHelperIPhEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKT_NS2_17integral_constantIbLb0EEE:
  460|   562k|std::string toStringHelper(const T& arg, std::false_type) {
  461|   562k|  std::ostringstream os;
  462|   562k|  os << arg;
  463|   562k|  return os.str();
  464|   562k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm6EEEPKT_RAT1__S4_RKT0_:
  447|    124|const T* find(T (&src)[N], const K& key) {
  448|    124|  static_assert(N > 0, "Passed zero length find");
  449|    124|  auto rc = std::find(src, src + N, key);
  450|    124|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 77, False: 47]
  ------------------
  451|    124|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm32EEEPKT_RAT1__SB_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: 2.03k, False: 264]
  ------------------
  451|  2.29k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm61EEEPKT_RAT1__SB_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: 2.12k, False: 169]
  ------------------
  451|  2.29k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm2EEEPKT_RAT1__SB_RKT0_:
  447|    536|const T* find(T (&src)[N], const K& key) {
  448|    536|  static_assert(N > 0, "Passed zero length find");
  449|    536|  auto rc = std::find(src, src + N, key);
  450|    536|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 465, False: 71]
  ------------------
  451|    536|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm41EEEPKT_RAT1__S4_RKT0_:
  447|   128k|const T* find(T (&src)[N], const K& key) {
  448|   128k|  static_assert(N > 0, "Passed zero length find");
  449|   128k|  auto rc = std::find(src, src + N, key);
  450|   128k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 119k, False: 8.84k]
  ------------------
  451|   128k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm3EEEPKT_RAT1__S4_RKT0_:
  447|  18.3k|const T* find(T (&src)[N], const K& key) {
  448|  18.3k|  static_assert(N > 0, "Passed zero length find");
  449|  18.3k|  auto rc = std::find(src, src + N, key);
  450|  18.3k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 9.24k, False: 9.07k]
  ------------------
  451|  18.3k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm6EEEPKT_RAT1__S4_RKT0_:
  447|  2.89k|const T* find(T (&src)[N], const K& key) {
  448|  2.89k|  static_assert(N > 0, "Passed zero length find");
  449|  2.89k|  auto rc = std::find(src, src + N, key);
  450|  2.89k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.16k, False: 730]
  ------------------
  451|  2.89k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm11EEEPKT_RAT1__S4_RKT0_:
  447|  2.88k|const T* find(T (&src)[N], const K& key) {
  448|  2.88k|  static_assert(N > 0, "Passed zero length find");
  449|  2.88k|  auto rc = std::find(src, src + N, key);
  450|  2.88k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.98k, False: 905]
  ------------------
  451|  2.88k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm2EEEPKT_RAT1__S4_RKT0_:
  447|    777|const T* find(T (&src)[N], const K& key) {
  448|    777|  static_assert(N > 0, "Passed zero length find");
  449|    777|  auto rc = std::find(src, src + N, key);
  450|    777|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 223, False: 554]
  ------------------
  451|    777|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm86EEEPKT_RAT1__SB_RKT0_:
  447|   177k|const T* find(T (&src)[N], const K& key) {
  448|   177k|  static_assert(N > 0, "Passed zero length find");
  449|   177k|  auto rc = std::find(src, src + N, key);
  450|   177k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 167k, False: 9.83k]
  ------------------
  451|   177k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm17EEEPKT_RAT1__SB_RKT0_:
  447|   126k|const T* find(T (&src)[N], const K& key) {
  448|   126k|  static_assert(N > 0, "Passed zero length find");
  449|   126k|  auto rc = std::find(src, src + N, key);
  450|   126k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 125k, False: 1.14k]
  ------------------
  451|   126k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEtLm31EEEPKT_RAT1__S4_RKT0_:
  447|    802|const T* find(T (&src)[N], const K& key) {
  448|    802|  static_assert(N > 0, "Passed zero length find");
  449|    802|  auto rc = std::find(src, src + N, key);
  450|    802|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 183, False: 619]
  ------------------
  451|    802|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm16EEEPKT_RAT1__SB_RKT0_:
  447|    491|const T* find(T (&src)[N], const K& key) {
  448|    491|  static_assert(N > 0, "Passed zero length find");
  449|    491|  auto rc = std::find(src, src + N, key);
  450|    491|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 145, False: 346]
  ------------------
  451|    491|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm6EEEPKT_RAT1__S4_RKT0_:
  447|  20.9k|const T* find(T (&src)[N], const K& key) {
  448|  20.9k|  static_assert(N > 0, "Passed zero length find");
  449|  20.9k|  auto rc = std::find(src, src + N, key);
  450|  20.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 9.98k, False: 10.9k]
  ------------------
  451|  20.9k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm2EEEPKT_RAT1__S4_RKT0_:
  447|  31.7k|const T* find(T (&src)[N], const K& key) {
  448|  31.7k|  static_assert(N > 0, "Passed zero length find");
  449|  31.7k|  auto rc = std::find(src, src + N, key);
  450|  31.7k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 24.3k, False: 7.34k]
  ------------------
  451|  31.7k|}
_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.3k, False: 8.43k]
  ------------------
  451|  18.7k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm4EEEPKT_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: 7.77k, False: 10.9k]
  ------------------
  451|  18.7k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm7EEEPKT_RAT1__S4_RKT0_:
  447|  10.6k|const T* find(T (&src)[N], const K& key) {
  448|  10.6k|  static_assert(N > 0, "Passed zero length find");
  449|  10.6k|  auto rc = std::find(src, src + N, key);
  450|  10.6k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.96k, False: 5.70k]
  ------------------
  451|  10.6k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm17EEEPKT_RAT1__S4_RKT0_:
  447|  2.91k|const T* find(T (&src)[N], const K& key) {
  448|  2.91k|  static_assert(N > 0, "Passed zero length find");
  449|  2.91k|  auto rc = std::find(src, src + N, key);
  450|  2.91k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.07k, False: 1.84k]
  ------------------
  451|  2.91k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm8EEEPKT_RAT1__S4_RKT0_:
  447|  19.8k|const T* find(T (&src)[N], const K& key) {
  448|  19.8k|  static_assert(N > 0, "Passed zero length find");
  449|  19.8k|  auto rc = std::find(src, src + N, key);
  450|  19.8k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 10.9k, False: 8.91k]
  ------------------
  451|  19.8k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm3EEEPKT_RAT1__S4_RKT0_:
  447|  68.9k|const T* find(T (&src)[N], const K& key) {
  448|  68.9k|  static_assert(N > 0, "Passed zero length find");
  449|  68.9k|  auto rc = std::find(src, src + N, key);
  450|  68.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 44.7k, False: 24.1k]
  ------------------
  451|  68.9k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm11EEEPKT_RAT1__S4_RKT0_:
  447|  12.0k|const T* find(T (&src)[N], const K& key) {
  448|  12.0k|  static_assert(N > 0, "Passed zero length find");
  449|  12.0k|  auto rc = std::find(src, src + N, key);
  450|  12.0k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.32k, False: 7.77k]
  ------------------
  451|  12.0k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm25EEEPKT_RAT1__S4_RKT0_:
  447|  2.78k|const T* find(T (&src)[N], const K& key) {
  448|  2.78k|  static_assert(N > 0, "Passed zero length find");
  449|  2.78k|  auto rc = std::find(src, src + N, key);
  450|  2.78k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 694, False: 2.09k]
  ------------------
  451|  2.78k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm19EEEPKT_RAT1__S4_RKT0_:
  447|    624|const T* find(T (&src)[N], const K& key) {
  448|    624|  static_assert(N > 0, "Passed zero length find");
  449|    624|  auto rc = std::find(src, src + N, key);
  450|    624|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 360, False: 264]
  ------------------
  451|    624|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm81EEEPKT_RAT1__S4_RKT0_:
  447|    132|const T* find(T (&src)[N], const K& key) {
  448|    132|  static_assert(N > 0, "Passed zero length find");
  449|    132|  auto rc = std::find(src, src + N, key);
  450|    132|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 62, False: 70]
  ------------------
  451|    132|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm10EEEPKT_RAT1__S4_RKT0_:
  447|  17.9k|const T* find(T (&src)[N], const K& key) {
  448|  17.9k|  static_assert(N > 0, "Passed zero length find");
  449|  17.9k|  auto rc = std::find(src, src + N, key);
  450|  17.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 11.6k, False: 6.29k]
  ------------------
  451|  17.9k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm52EEEPKT_RAT1__S4_RKT0_:
  447|    142|const T* find(T (&src)[N], const K& key) {
  448|    142|  static_assert(N > 0, "Passed zero length find");
  449|    142|  auto rc = std::find(src, src + N, key);
  450|    142|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 40, False: 102]
  ------------------
  451|    142|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm18EEEPKT_RAT1__S4_RKT0_:
  447|  6.29k|const T* find(T (&src)[N], const K& key) {
  448|  6.29k|  static_assert(N > 0, "Passed zero length find");
  449|  6.29k|  auto rc = std::find(src, src + N, key);
  450|  6.29k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.94k, False: 3.35k]
  ------------------
  451|  6.29k|}
nikonmn_int.cpp:_ZN5Exiv24findIKZNS_8Internal15Nikon3MakerNote11printLensIdERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataERKNS3_12basic_stringIcS6_NS3_9allocatorIcEEEEE8FMntLenshLm579EEEPKT_RAT1__SN_RKT0_:
  447|     80|const T* find(T (&src)[N], const K& key) {
  448|     80|  static_assert(N > 0, "Passed zero length find");
  449|     80|  auto rc = std::find(src, src + N, key);
  450|     80|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3, False: 77]
  ------------------
  451|     80|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm12EEEPKT_RAT1__S4_RKT0_:
  447|  7.55k|const T* find(T (&src)[N], const K& key) {
  448|  7.55k|  static_assert(N > 0, "Passed zero length find");
  449|  7.55k|  auto rc = std::find(src, src + N, key);
  450|  7.55k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.64k, False: 2.90k]
  ------------------
  451|  7.55k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm13EEEPKT_RAT1__S4_RKT0_:
  447|  8.95k|const T* find(T (&src)[N], const K& key) {
  448|  8.95k|  static_assert(N > 0, "Passed zero length find");
  449|  8.95k|  auto rc = std::find(src, src + N, key);
  450|  8.95k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.06k, False: 6.88k]
  ------------------
  451|  8.95k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm34EEEPKT_RAT1__S4_RKT0_:
  447|  1.99k|const T* find(T (&src)[N], const K& key) {
  448|  1.99k|  static_assert(N > 0, "Passed zero length find");
  449|  1.99k|  auto rc = std::find(src, src + N, key);
  450|  1.99k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 560, False: 1.43k]
  ------------------
  451|  1.99k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm16EEEPKT_RAT1__S4_RKT0_:
  447|  2.42k|const T* find(T (&src)[N], const K& key) {
  448|  2.42k|  static_assert(N > 0, "Passed zero length find");
  449|  2.42k|  auto rc = std::find(src, src + N, key);
  450|  2.42k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 680, False: 1.74k]
  ------------------
  451|  2.42k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm27EEEPKT_RAT1__S4_RKT0_:
  447|  4.45k|const T* find(T (&src)[N], const K& key) {
  448|  4.45k|  static_assert(N > 0, "Passed zero length find");
  449|  4.45k|  auto rc = std::find(src, src + N, key);
  450|  4.45k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 602, False: 3.85k]
  ------------------
  451|  4.45k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm9EEEPKT_RAT1__S4_RKT0_:
  447|  12.1k|const T* find(T (&src)[N], const K& key) {
  448|  12.1k|  static_assert(N > 0, "Passed zero length find");
  449|  12.1k|  auto rc = std::find(src, src + N, key);
  450|  12.1k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5.22k, False: 6.89k]
  ------------------
  451|  12.1k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm32EEEPKT_RAT1__S4_RKT0_:
  447|  2.61k|const T* find(T (&src)[N], const K& key) {
  448|  2.61k|  static_assert(N > 0, "Passed zero length find");
  449|  2.61k|  auto rc = std::find(src, src + N, key);
  450|  2.61k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 426, False: 2.18k]
  ------------------
  451|  2.61k|}
_ZN5Exiv24findIKNS_9GroupInfoENS_5IfdIdELm126EEEPKT_RAT1__S4_RKT0_:
  447|  48.6M|const T* find(T (&src)[N], const K& key) {
  448|  48.6M|  static_assert(N > 0, "Passed zero length find");
  449|  48.6M|  auto rc = std::find(src, src + N, key);
  450|  48.6M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 48.6M]
  ------------------
  451|  48.6M|}
_ZN5Exiv24findIKNS_9GroupInfoENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEELm126EEEPKT_RAT1__SA_RKT0_:
  447|  18.9M|const T* find(T (&src)[N], const K& key) {
  448|  18.9M|  static_assert(N > 0, "Passed zero length find");
  449|  18.9M|  auto rc = std::find(src, src + N, key);
  450|  18.9M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 18.9M]
  ------------------
  451|  18.9M|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm1EEEPKT_RAT1__S4_RKT0_:
  447|     98|const T* find(T (&src)[N], const K& key) {
  448|     98|  static_assert(N > 0, "Passed zero length find");
  449|     98|  auto rc = std::find(src, src + N, key);
  450|     98|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 74, False: 24]
  ------------------
  451|     98|}
_ZN5Exiv24findIKNS_8Internal15TiffMappingInfoENS2_3KeyELm5EEEPKT_RAT1__S5_RKT0_:
  447|  18.3M|const T* find(T (&src)[N], const K& key) {
  448|  18.3M|  static_assert(N > 0, "Passed zero length find");
  449|  18.3M|  auto rc = std::find(src, src + N, key);
  450|  18.3M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 18.3M, False: 5.91k]
  ------------------
  451|  18.3M|}
_ZN5Exiv24findIKNS_9XmpNsInfoENS1_2NsELm47EEEPKT_RAT1__S4_RKT0_:
  447|  13.8k|const T* find(T (&src)[N], const K& key) {
  448|  13.8k|  static_assert(N > 0, "Passed zero length find");
  449|  13.8k|  auto rc = std::find(src, src + N, key);
  450|  13.8k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 12.4k, False: 1.34k]
  ------------------
  451|  13.8k|}
_ZN5Exiv24findIKNS_9XmpNsInfoENS1_6PrefixELm47EEEPKT_RAT1__S4_RKT0_:
  447|   885k|const T* find(T (&src)[N], const K& key) {
  448|   885k|  static_assert(N > 0, "Passed zero length find");
  449|   885k|  auto rc = std::find(src, src + N, key);
  450|   885k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5, False: 885k]
  ------------------
  451|   885k|}
properties.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_112XmpPrintInfoENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm67EEEPKT_RAT1__SB_RKT0_:
  447|  17.5k|const T* find(T (&src)[N], const K& key) {
  448|  17.5k|  static_assert(N > 0, "Passed zero length find");
  449|  17.5k|  auto rc = std::find(src, src + N, key);
  450|  17.5k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 17.5k, False: 0]
  ------------------
  451|  17.5k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm533EEEPKT_RAT1__S4_RKT0_:
  447|     32|const T* find(T (&src)[N], const K& key) {
  448|     32|  static_assert(N > 0, "Passed zero length find");
  449|     32|  auto rc = std::find(src, src + N, key);
  450|     32|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 32]
  ------------------
  451|     32|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm357EEEPKT_RAT1__S4_RKT0_:
  447|    244|const T* find(T (&src)[N], const K& key) {
  448|    244|  static_assert(N > 0, "Passed zero length find");
  449|    244|  auto rc = std::find(src, src + N, key);
  450|    244|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 108, False: 136]
  ------------------
  451|    244|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm14EEEPKT_RAT1__S4_RKT0_:
  447|  8.57k|const T* find(T (&src)[N], const K& key) {
  448|  8.57k|  static_assert(N > 0, "Passed zero length find");
  449|  8.57k|  auto rc = std::find(src, src + N, key);
  450|  8.57k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5.22k, False: 3.35k]
  ------------------
  451|  8.57k|}
_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.09k, False: 1.91k]
  ------------------
  451|  3.01k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm71EEEPKT_RAT1__S4_RKT0_:
  447|  4.18k|const T* find(T (&src)[N], const K& key) {
  448|  4.18k|  static_assert(N > 0, "Passed zero length find");
  449|  4.18k|  auto rc = std::find(src, src + N, key);
  450|  4.18k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 614, False: 3.57k]
  ------------------
  451|  4.18k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm38EEEPKT_RAT1__S4_RKT0_:
  447|  5.09k|const T* find(T (&src)[N], const K& key) {
  448|  5.09k|  static_assert(N > 0, "Passed zero length find");
  449|  5.09k|  auto rc = std::find(src, src + N, key);
  450|  5.09k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3.41k, False: 1.68k]
  ------------------
  451|  5.09k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm75EEEPKT_RAT1__S4_RKT0_:
  447|  2.56k|const T* find(T (&src)[N], const K& key) {
  448|  2.56k|  static_assert(N > 0, "Passed zero length find");
  449|  2.56k|  auto rc = std::find(src, src + N, key);
  450|  2.56k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 766, False: 1.80k]
  ------------------
  451|  2.56k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm35EEEPKT_RAT1__S4_RKT0_:
  447|    290|const T* find(T (&src)[N], const K& key) {
  448|    290|  static_assert(N > 0, "Passed zero length find");
  449|    290|  auto rc = std::find(src, src + N, key);
  450|    290|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 200, False: 90]
  ------------------
  451|    290|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEhLm3EEEPKT_RAT1__S4_RKT0_:
  447|    100|const T* find(T (&src)[N], const K& key) {
  448|    100|  static_assert(N > 0, "Passed zero length find");
  449|    100|  auto rc = std::find(src, src + N, key);
  450|    100|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 38, False: 62]
  ------------------
  451|    100|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm20EEEPKT_RAT1__S4_RKT0_:
  447|  1.18k|const T* find(T (&src)[N], const K& key) {
  448|  1.18k|  static_assert(N > 0, "Passed zero length find");
  449|  1.18k|  auto rc = std::find(src, src + N, key);
  450|  1.18k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 474, False: 707]
  ------------------
  451|  1.18k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm33EEEPKT_RAT1__S4_RKT0_:
  447|  1.88k|const T* find(T (&src)[N], const K& key) {
  448|  1.88k|  static_assert(N > 0, "Passed zero length find");
  449|  1.88k|  auto rc = std::find(src, src + N, key);
  450|  1.88k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 342, False: 1.53k]
  ------------------
  451|  1.88k|}
_ZN5Exiv24findIKNS_8Internal14TiffMnRegistryENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEELm26EEEPKT_RAT1__S9_RKT0_:
  447|  36.6k|const T* find(T (&src)[N], const K& key) {
  448|  36.6k|  static_assert(N > 0, "Passed zero length find");
  449|  36.6k|  auto rc = std::find(src, src + N, key);
  450|  36.6k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.50k, False: 35.1k]
  ------------------
  451|  36.6k|}
_ZN5Exiv24findIKNS_8Internal14TiffMnRegistryENS_5IfdIdELm26EEEPKT_RAT1__S5_RKT0_:
  447|  6.12k|const T* find(T (&src)[N], const K& key) {
  448|  6.12k|  static_assert(N > 0, "Passed zero length find");
  449|  6.12k|  auto rc = std::find(src, src + N, key);
  450|  6.12k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 6.12k]
  ------------------
  451|  6.12k|}
_ZN5Exiv24findIKNS_8Internal13NikonArrayIdxENS2_3KeyELm34EEEPKT_RAT1__S5_RKT0_:
  447|    720|const T* find(T (&src)[N], const K& key) {
  448|    720|  static_assert(N > 0, "Passed zero length find");
  449|    720|  auto rc = std::find(src, src + N, key);
  450|    720|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 49, False: 671]
  ------------------
  451|    720|}
_ZN5Exiv28stringToIjEET_RKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERb:
  482|     25|T stringTo(const std::string& s, bool& ok) {
  483|     25|  std::istringstream is(s);
  484|     25|  T tmp = T();
  485|     25|  ok = static_cast<bool>(is >> tmp);
  486|     25|  std::string rest;
  487|     25|  is >> std::skipws >> rest;
  488|     25|  if (!rest.empty())
  ------------------
  |  Branch (488:7): [True: 14, False: 11]
  ------------------
  489|     14|    ok = false;
  490|     25|  return tmp;
  491|     25|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm19EEEPKT_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: 62, False: 7]
  ------------------
  451|     69|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm205EEEPKT_RAT1__S4_RKT0_:
  447|  3.46k|const T* find(T (&src)[N], const K& key) {
  448|  3.46k|  static_assert(N > 0, "Passed zero length find");
  449|  3.46k|  auto rc = std::find(src, src + N, key);
  450|  3.46k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 422, False: 3.04k]
  ------------------
  451|  3.46k|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm5EEEPKT_RAT1__SB_RKT0_:
  447|    150|const T* find(T (&src)[N], const K& key) {
  448|    150|  static_assert(N > 0, "Passed zero length find");
  449|    150|  auto rc = std::find(src, src + N, key);
  450|    150|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 128, False: 22]
  ------------------
  451|    150|}
minoltamn_int.cpp:_ZN5Exiv24findIKZNS_8Internal22printMinoltaSonyLensIDERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEE9LensIdFctjLm6EEEPKT_RAT1__SG_RKT0_:
  447|  1.73k|const T* find(T (&src)[N], const K& key) {
  448|  1.73k|  static_assert(N > 0, "Passed zero length find");
  449|  1.73k|  auto rc = std::find(src, src + N, key);
  450|  1.73k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 538, False: 1.19k]
  ------------------
  451|  1.73k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm15EEEPKT_RAT1__S4_RKT0_:
  447|  3.24k|const T* find(T (&src)[N], const K& key) {
  448|  3.24k|  static_assert(N > 0, "Passed zero length find");
  449|  3.24k|  auto rc = std::find(src, src + N, key);
  450|  3.24k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 902, False: 2.33k]
  ------------------
  451|  3.24k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm45EEEPKT_RAT1__S4_RKT0_:
  447|  2.84k|const T* find(T (&src)[N], const K& key) {
  448|  2.84k|  static_assert(N > 0, "Passed zero length find");
  449|  2.84k|  auto rc = std::find(src, src + N, key);
  450|  2.84k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 358, False: 2.48k]
  ------------------
  451|  2.84k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm23EEEPKT_RAT1__S4_RKT0_:
  447|  1.43k|const T* find(T (&src)[N], const K& key) {
  448|  1.43k|  static_assert(N > 0, "Passed zero length find");
  449|  1.43k|  auto rc = std::find(src, src + N, key);
  450|  1.43k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 690, False: 740]
  ------------------
  451|  1.43k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm77EEEPKT_RAT1__S4_RKT0_:
  447|    400|const T* find(T (&src)[N], const K& key) {
  448|    400|  static_assert(N > 0, "Passed zero length find");
  449|    400|  auto rc = std::find(src, src + N, key);
  450|    400|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 136, False: 264]
  ------------------
  451|    400|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEmLm298EEEPKT_RAT1__S4_RKT0_:
  447|     67|const T* find(T (&src)[N], const K& key) {
  448|     67|  static_assert(N > 0, "Passed zero length find");
  449|     67|  auto rc = std::find(src, src + N, key);
  450|     67|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 67]
  ------------------
  451|     67|}
pentaxmn_int.cpp:_ZN5Exiv24findIKZNS_8InternalL13printLensTypeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEE9LensIdFctjLm14EEEPKT_RAT1__SG_RKT0_:
  447|  2.11k|const T* find(T (&src)[N], const K& key) {
  448|  2.11k|  static_assert(N > 0, "Passed zero length find");
  449|  2.11k|  auto rc = std::find(src, src + N, key);
  450|  2.11k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 844, False: 1.26k]
  ------------------
  451|  2.11k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm298EEEPKT_RAT1__S4_RKT0_:
  447|    614|const T* find(T (&src)[N], const K& key) {
  448|    614|  static_assert(N > 0, "Passed zero length find");
  449|    614|  auto rc = std::find(src, src + N, key);
  450|    614|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 120, False: 494]
  ------------------
  451|    614|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm147EEEPKT_RAT1__S4_RKT0_:
  447|    236|const T* find(T (&src)[N], const K& key) {
  448|    236|  static_assert(N > 0, "Passed zero length find");
  449|    236|  auto rc = std::find(src, src + N, key);
  450|    236|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 218, False: 18]
  ------------------
  451|    236|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm79EEEPKT_RAT1__S4_RKT0_:
  447|    552|const T* find(T (&src)[N], const K& key) {
  448|    552|  static_assert(N > 0, "Passed zero length find");
  449|    552|  auto rc = std::find(src, src + N, key);
  450|    552|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 340, False: 212]
  ------------------
  451|    552|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm7EEEPKT_RAT1__S4_RKT0_:
  447|    986|const T* find(T (&src)[N], const K& key) {
  448|    986|  static_assert(N > 0, "Passed zero length find");
  449|    986|  auto rc = std::find(src, src + N, key);
  450|    986|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 248, False: 738]
  ------------------
  451|    986|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm71EEEPKT_RAT1__S4_RKT0_:
  447|  4.43k|const T* find(T (&src)[N], const K& key) {
  448|  4.43k|  static_assert(N > 0, "Passed zero length find");
  449|  4.43k|  auto rc = std::find(src, src + N, key);
  450|  4.43k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 518, False: 3.92k]
  ------------------
  451|  4.43k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm20EEEPKT_RAT1__S4_RKT0_:
  447|  2.41k|const T* find(T (&src)[N], const K& key) {
  448|  2.41k|  static_assert(N > 0, "Passed zero length find");
  449|  2.41k|  auto rc = std::find(src, src + N, key);
  450|  2.41k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 462, False: 1.94k]
  ------------------
  451|  2.41k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm2EEEPKT_RAT1__S4_RKT0_:
  447|    332|const T* find(T (&src)[N], const K& key) {
  448|    332|  static_assert(N > 0, "Passed zero length find");
  449|    332|  auto rc = std::find(src, src + N, key);
  450|    332|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 258, False: 74]
  ------------------
  451|    332|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm80EEEPKT_RAT1__S4_RKT0_:
  447|  1.09k|const T* find(T (&src)[N], const K& key) {
  448|  1.09k|  static_assert(N > 0, "Passed zero length find");
  449|  1.09k|  auto rc = std::find(src, src + N, key);
  450|  1.09k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 497, False: 595]
  ------------------
  451|  1.09k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm36EEEPKT_RAT1__S4_RKT0_:
  447|  1.32k|const T* find(T (&src)[N], const K& key) {
  448|  1.32k|  static_assert(N > 0, "Passed zero length find");
  449|  1.32k|  auto rc = std::find(src, src + N, key);
  450|  1.32k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 162, False: 1.16k]
  ------------------
  451|  1.32k|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm5EEEPKT_RAT1__SB_RKT0_:
  447|    768|const T* find(T (&src)[N], const K& key) {
  448|    768|  static_assert(N > 0, "Passed zero length find");
  449|    768|  auto rc = std::find(src, src + N, key);
  450|    768|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 418, False: 350]
  ------------------
  451|    768|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm30EEEPKT_RAT1__SB_RKT0_:
  447|    526|const T* find(T (&src)[N], const K& key) {
  448|    526|  static_assert(N > 0, "Passed zero length find");
  449|    526|  auto rc = std::find(src, src + N, key);
  450|    526|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 432, False: 94]
  ------------------
  451|    526|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm16EEEPKT_RAT1__SB_RKT0_:
  447|    468|const T* find(T (&src)[N], const K& key) {
  448|    468|  static_assert(N > 0, "Passed zero length find");
  449|    468|  auto rc = std::find(src, src + N, key);
  450|    468|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 286, False: 182]
  ------------------
  451|    468|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm113EEEPKT_RAT1__S4_RKT0_:
  447|  8.36k|const T* find(T (&src)[N], const K& key) {
  448|  8.36k|  static_assert(N > 0, "Passed zero length find");
  449|  8.36k|  auto rc = std::find(src, src + N, key);
  450|  8.36k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 900, False: 7.46k]
  ------------------
  451|  8.36k|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm19EEEPKT_RAT1__SB_RKT0_:
  447|    420|const T* find(T (&src)[N], const K& key) {
  448|    420|  static_assert(N > 0, "Passed zero length find");
  449|    420|  auto rc = std::find(src, src + N, key);
  450|    420|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 372, False: 48]
  ------------------
  451|    420|}
_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: 604, False: 2.53k]
  ------------------
  451|  3.13k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm31EEEPKT_RAT1__S4_RKT0_:
  447|  4.64k|const T* find(T (&src)[N], const K& key) {
  448|  4.64k|  static_assert(N > 0, "Passed zero length find");
  449|  4.64k|  auto rc = std::find(src, src + N, key);
  450|  4.64k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.11k, False: 3.52k]
  ------------------
  451|  4.64k|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm34EEEPKT_RAT1__SB_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: 45, False: 8]
  ------------------
  451|     53|}

_ZNK5Exiv25Value6typeIdEv:
   85|  57.6M|  TypeId typeId() const {
   86|  57.6M|    return type_;
   87|  57.6M|  }
_ZNK5Exiv25Value5cloneEv:
   93|  37.6M|  UniquePtr clone() const {
   94|  37.6M|    return UniquePtr(clone_());
   95|  37.6M|  }
_ZNK5Exiv25Value2okEv:
  181|  1.32k|  bool ok() const {
  182|  1.32k|    return ok_;
  183|  1.32k|  }
_ZNK5Exiv222LangAltValueComparatorclERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  795|    270|  bool operator()(const std::string& str1, const std::string& str2) const {
  796|    270|    if (str1.size() != str2.size())
  ------------------
  |  Branch (796:9): [True: 116, False: 154]
  ------------------
  797|    116|      return str1.size() > str2.size();
  798|       |
  799|    154|    auto f = [](unsigned char a, unsigned char b) { return std::tolower(a) > std::tolower(b); };
  800|    154|    return std::lexicographical_compare(str1.begin(), str1.end(), str2.begin(), str2.end(), f);
  801|    270|  }
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_5ValueE:
  242|   312k|inline std::ostream& operator<<(std::ostream& os, const Value& value) {
  243|   312k|  return value.write(os);
  244|   312k|}
_ZN5Exiv27getTypeItEENS_6TypeIdEv:
 1083|  11.0M|inline TypeId getType<uint16_t>() {
 1084|  11.0M|  return unsignedShort;
 1085|  11.0M|}
_ZN5Exiv27getTypeIjEENS_6TypeIdEv:
 1088|  28.6k|inline TypeId getType<uint32_t>() {
 1089|  28.6k|  return unsignedLong;
 1090|  28.6k|}
_ZN5Exiv27getTypeINSt3__14pairIjjEEEENS_6TypeIdEv:
 1093|  46.1k|inline TypeId getType<URational>() {
 1094|  46.1k|  return unsignedRational;
 1095|  46.1k|}
_ZN5Exiv27getTypeIsEENS_6TypeIdEv:
 1098|  1.10M|inline TypeId getType<int16_t>() {
 1099|  1.10M|  return signedShort;
 1100|  1.10M|}
_ZN5Exiv27getTypeIiEENS_6TypeIdEv:
 1103|   182k|inline TypeId getType<int32_t>() {
 1104|   182k|  return signedLong;
 1105|   182k|}
_ZN5Exiv27getTypeINSt3__14pairIiiEEEENS_6TypeIdEv:
 1108|  32.2k|inline TypeId getType<Rational>() {
 1109|  32.2k|  return signedRational;
 1110|  32.2k|}
_ZN5Exiv27getTypeIfEENS_6TypeIdEv:
 1113|  9.59k|inline TypeId getType<float>() {
 1114|  9.59k|  return tiffFloat;
 1115|  9.59k|}
_ZN5Exiv27getTypeIdEENS_6TypeIdEv:
 1118|  8.71k|inline TypeId getType<double>() {
 1119|  8.71k|  return tiffDouble;
 1120|  8.71k|}
_ZN5Exiv28getValueItEET_PKhNS_9ByteOrderE:
 1314|  12.3M|inline uint16_t getValue(const byte* buf, ByteOrder byteOrder) {
 1315|  12.3M|  return getUShort(buf, byteOrder);
 1316|  12.3M|}
_ZN5Exiv28getValueIjEET_PKhNS_9ByteOrderE:
 1319|  3.11M|inline uint32_t getValue(const byte* buf, ByteOrder byteOrder) {
 1320|  3.11M|  return getULong(buf, byteOrder);
 1321|  3.11M|}
_ZN5Exiv28getValueINSt3__14pairIjjEEEET_PKhNS_9ByteOrderE:
 1324|   301k|inline URational getValue(const byte* buf, ByteOrder byteOrder) {
 1325|   301k|  return getURational(buf, byteOrder);
 1326|   301k|}
_ZN5Exiv28getValueIsEET_PKhNS_9ByteOrderE:
 1329|  5.24M|inline int16_t getValue(const byte* buf, ByteOrder byteOrder) {
 1330|  5.24M|  return getShort(buf, byteOrder);
 1331|  5.24M|}
_ZN5Exiv28getValueIiEET_PKhNS_9ByteOrderE:
 1334|   311k|inline int32_t getValue(const byte* buf, ByteOrder byteOrder) {
 1335|   311k|  return getLong(buf, byteOrder);
 1336|   311k|}
_ZN5Exiv28getValueINSt3__14pairIiiEEEET_PKhNS_9ByteOrderE:
 1339|   349k|inline Rational getValue(const byte* buf, ByteOrder byteOrder) {
 1340|   349k|  return getRational(buf, byteOrder);
 1341|   349k|}
_ZN5Exiv28getValueIfEET_PKhNS_9ByteOrderE:
 1344|   128k|inline float getValue(const byte* buf, ByteOrder byteOrder) {
 1345|   128k|  return getFloat(buf, byteOrder);
 1346|   128k|}
_ZN5Exiv28getValueIdEET_PKhNS_9ByteOrderE:
 1349|  23.1k|inline double getValue(const byte* buf, ByteOrder byteOrder) {
 1350|  23.1k|  return getDouble(buf, byteOrder);
 1351|  23.1k|}
_ZN5Exiv26toDataItEEmPhT_NS_9ByteOrderE:
 1372|   605k|inline size_t toData(byte* buf, uint16_t t, ByteOrder byteOrder) {
 1373|   605k|  return us2Data(buf, t, byteOrder);
 1374|   605k|}
_ZN5Exiv26toDataIjEEmPhT_NS_9ByteOrderE:
 1380|   191k|inline size_t toData(byte* buf, uint32_t t, ByteOrder byteOrder) {
 1381|   191k|  return ul2Data(buf, t, byteOrder);
 1382|   191k|}
_ZN5Exiv26toDataINSt3__14pairIjjEEEEmPhT_NS_9ByteOrderE:
 1388|   235k|inline size_t toData(byte* buf, URational t, ByteOrder byteOrder) {
 1389|   235k|  return ur2Data(buf, t, byteOrder);
 1390|   235k|}
_ZN5Exiv26toDataIsEEmPhT_NS_9ByteOrderE:
 1396|   148k|inline size_t toData(byte* buf, int16_t t, ByteOrder byteOrder) {
 1397|   148k|  return s2Data(buf, t, byteOrder);
 1398|   148k|}
_ZN5Exiv26toDataIiEEmPhT_NS_9ByteOrderE:
 1404|  21.9k|inline size_t toData(byte* buf, int32_t t, ByteOrder byteOrder) {
 1405|  21.9k|  return l2Data(buf, t, byteOrder);
 1406|  21.9k|}
_ZN5Exiv26toDataINSt3__14pairIiiEEEEmPhT_NS_9ByteOrderE:
 1412|  95.2k|inline size_t toData(byte* buf, Rational t, ByteOrder byteOrder) {
 1413|  95.2k|  return r2Data(buf, t, byteOrder);
 1414|  95.2k|}
_ZN5Exiv26toDataIfEEmPhT_NS_9ByteOrderE:
 1420|  42.0k|inline size_t toData(byte* buf, float t, ByteOrder byteOrder) {
 1421|  42.0k|  return f2Data(buf, t, byteOrder);
 1422|  42.0k|}
_ZN5Exiv26toDataIdEEmPhT_NS_9ByteOrderE:
 1428|  56.1k|inline size_t toData(byte* buf, double t, ByteOrder byteOrder) {
 1429|  56.1k|  return d2Data(buf, t, byteOrder);
 1430|  56.1k|}
_ZNK5Exiv29ValueTypeIdE7toInt64Em:
 1548|  3.77k|inline int64_t ValueType<double>::toInt64(size_t n) const {
 1549|  3.77k|  return float_to_integer_helper<int64_t>(n);
 1550|  3.77k|}
_ZNK5Exiv29ValueTypeIdE8toUint32Em:
 1553|  2.16k|inline uint32_t ValueType<double>::toUint32(size_t n) const {
 1554|  2.16k|  return float_to_integer_helper<uint32_t>(n);
 1555|  2.16k|}
_ZNK5Exiv29ValueTypeIfE7toInt64Em:
 1558|  7.08k|inline int64_t ValueType<float>::toInt64(size_t n) const {
 1559|  7.08k|  return float_to_integer_helper<int64_t>(n);
 1560|  7.08k|}
_ZNK5Exiv29ValueTypeIfE8toUint32Em:
 1562|  4.95k|inline uint32_t ValueType<float>::toUint32(size_t n) const {
 1563|  4.95k|  return float_to_integer_helper<uint32_t>(n);
 1564|  4.95k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE7toInt64Em:
 1567|  70.2k|inline int64_t ValueType<Rational>::toInt64(size_t n) const {
 1568|  70.2k|  return rational_to_integer_helper<int64_t>(n);
 1569|  70.2k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8toUint32Em:
 1571|  33.1k|inline uint32_t ValueType<Rational>::toUint32(size_t n) const {
 1572|  33.1k|  return rational_to_integer_helper<uint32_t>(n);
 1573|  33.1k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE7toInt64Em:
 1576|  19.5k|inline int64_t ValueType<URational>::toInt64(size_t n) const {
 1577|  19.5k|  return rational_to_integer_helper<int64_t>(n);
 1578|  19.5k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8toUint32Em:
 1580|  3.03k|inline uint32_t ValueType<URational>::toUint32(size_t n) const {
 1581|  3.03k|  return rational_to_integer_helper<uint32_t>(n);
 1582|  3.03k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE7toFloatEm:
 1591|    538|inline float ValueType<Rational>::toFloat(size_t n) const {
 1592|    538|  ok_ = (value_.at(n).second != 0);
 1593|    538|  if (!ok_)
  ------------------
  |  Branch (1593:7): [True: 8, False: 530]
  ------------------
 1594|      8|    return 0.0f;
 1595|    530|  return static_cast<float>(value_.at(n).first) / value_.at(n).second;
 1596|    538|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE7toFloatEm:
 1599|  3.36k|inline float ValueType<URational>::toFloat(size_t n) const {
 1600|  3.36k|  ok_ = (value_.at(n).second != 0);
 1601|  3.36k|  if (!ok_)
  ------------------
  |  Branch (1601:7): [True: 58, False: 3.30k]
  ------------------
 1602|     58|    return 0.0f;
 1603|  3.30k|  return static_cast<float>(value_.at(n).first) / value_.at(n).second;
 1604|  3.36k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE10toRationalEm:
 1613|  2.83k|inline Rational ValueType<Rational>::toRational(size_t n) const {
 1614|  2.83k|  ok_ = true;
 1615|  2.83k|  return {value_.at(n).first, value_.at(n).second};
 1616|  2.83k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE10toRationalEm:
 1619|  13.6k|inline Rational ValueType<URational>::toRational(size_t n) const {
 1620|  13.6k|  ok_ = true;
 1621|  13.6k|  return {value_.at(n).first, value_.at(n).second};
 1622|  13.6k|}
_ZNK5Exiv29ValueTypeIfE10toRationalEm:
 1625|  2.70k|inline Rational ValueType<float>::toRational(size_t n) const {
 1626|  2.70k|  ok_ = true;
 1627|       |  // Warning: This is a very simple conversion, see floatToRationalCast()
 1628|  2.70k|  return floatToRationalCast(value_.at(n));
 1629|  2.70k|}
_ZNK5Exiv29ValueTypeIdE10toRationalEm:
 1632|  1.57k|inline Rational ValueType<double>::toRational(size_t n) const {
 1633|  1.57k|  ok_ = true;
 1634|       |  // Warning: This is a very simple conversion, see floatToRationalCast()
 1635|  1.57k|  return floatToRationalCast(static_cast<float>(value_.at(n)));
 1636|  1.57k|}
_ZNK5Exiv29ValueTypeIdE23float_to_integer_helperIlEET_m:
 1212|  3.77k|  I float_to_integer_helper(size_t n) const {
 1213|  3.77k|    const auto v = value_.at(n);
 1214|  3.77k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 3.20k, False: 567]
  ------------------
 1215|  3.20k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 2.07k, False: 1.13k]
  ------------------
 1216|  2.07k|      return static_cast<I>(std::lround(v));
 1217|  2.07k|    }
 1218|  1.69k|    return 0;
 1219|  3.77k|  }
_ZNK5Exiv29ValueTypeIdE23float_to_integer_helperIjEET_m:
 1212|  2.16k|  I float_to_integer_helper(size_t n) const {
 1213|  2.16k|    const auto v = value_.at(n);
 1214|  2.16k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 1.42k, False: 737]
  ------------------
 1215|  1.42k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 763, False: 661]
  ------------------
 1216|    763|      return static_cast<I>(std::lround(v));
 1217|    763|    }
 1218|  1.39k|    return 0;
 1219|  2.16k|  }
_ZNK5Exiv29ValueTypeIfE23float_to_integer_helperIlEET_m:
 1212|  7.08k|  I float_to_integer_helper(size_t n) const {
 1213|  7.08k|    const auto v = value_.at(n);
 1214|  7.08k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 5.88k, False: 1.19k]
  ------------------
 1215|  5.88k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 5.11k, False: 764]
  ------------------
 1216|  5.11k|      return static_cast<I>(std::lround(v));
 1217|  5.11k|    }
 1218|  1.96k|    return 0;
 1219|  7.08k|  }
_ZNK5Exiv29ValueTypeIfE23float_to_integer_helperIjEET_m:
 1212|  4.95k|  I float_to_integer_helper(size_t n) const {
 1213|  4.95k|    const auto v = value_.at(n);
 1214|  4.95k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 3.24k, False: 1.70k]
  ------------------
 1215|  3.24k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 2.67k, False: 565]
  ------------------
 1216|  2.67k|      return static_cast<I>(std::lround(v));
 1217|  2.67k|    }
 1218|  2.27k|    return 0;
 1219|  4.95k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE26rational_to_integer_helperIlEET_m:
 1223|  70.2k|  I rational_to_integer_helper(size_t n) const {
 1224|  70.2k|    auto a = value_.at(n).first;
 1225|  70.2k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  70.2k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 12.6k, False: 57.5k]
  ------------------
 1229|  12.6k|      return 0;
 1230|  12.6k|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  57.5k|#ifdef __cpp_if_constexpr
 1234|  57.5k|    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|  57.5k|      const auto imin = std::numeric_limits<I>::min();
 1240|  57.5k|      const auto imax = std::numeric_limits<I>::max();
 1241|  57.5k|      if (imax < b || a < imin || imax < a) {
  ------------------
  |  Branch (1241:11): [True: 21, False: 57.5k]
  |  Branch (1241:23): [True: 0, False: 57.5k]
  |  Branch (1241:35): [True: 0, False: 57.5k]
  ------------------
 1242|      0|        return 0;
 1243|      0|      }
 1244|  57.5k|#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|  57.5k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  70.2k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE26rational_to_integer_helperIjEET_m:
 1223|  33.1k|  I rational_to_integer_helper(size_t n) const {
 1224|  33.1k|    auto a = value_.at(n).first;
 1225|  33.1k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  33.1k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 6.21k, False: 26.9k]
  ------------------
 1229|  6.21k|      return 0;
 1230|  6.21k|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  26.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|       |    } 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|  26.9k|    } else {
 1255|       |      // conversion is from signed to unsigned
 1256|  26.9k|      const auto imax = std::numeric_limits<I>::max();
 1257|  26.9k|      if (a < 0) {
  ------------------
  |  Branch (1257:11): [True: 2.84k, False: 24.1k]
  ------------------
 1258|  2.84k|        return 0;
 1259|  2.84k|      }
 1260|       |      // Inputs are not negative so convert them to unsigned.
 1261|  24.1k|      const auto a_u = static_cast<std::make_unsigned_t<decltype(a)>>(a);
 1262|  24.1k|      const auto b_u = static_cast<std::make_unsigned_t<decltype(b)>>(b);
 1263|  24.1k|      if (imax < b_u || imax < a_u) {
  ------------------
  |  Branch (1263:11): [True: 74, False: 24.0k]
  |  Branch (1263:25): [True: 0, False: 24.0k]
  ------------------
 1264|      0|        return 0;
 1265|      0|      }
 1266|  24.1k|    }
 1267|       |
 1268|  24.1k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  33.1k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE26rational_to_integer_helperIlEET_m:
 1223|  19.5k|  I rational_to_integer_helper(size_t n) const {
 1224|  19.5k|    auto a = value_.at(n).first;
 1225|  19.5k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  19.5k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 922, False: 18.5k]
  ------------------
 1229|    922|      return 0;
 1230|    922|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  18.5k|#ifdef __cpp_if_constexpr
 1234|       |    if constexpr (std::is_signed_v<I> == std::is_signed_v<decltype(a)>) {
 1235|       |#else
 1236|       |    if (std::is_signed<I>::value == std::is_signed<decltype(a)>::value) {
 1237|       |#endif
 1238|       |      // conversion does not change sign
 1239|       |      const auto imin = std::numeric_limits<I>::min();
 1240|       |      const auto imax = std::numeric_limits<I>::max();
 1241|       |      if (imax < b || a < imin || imax < a) {
 1242|       |        return 0;
 1243|       |      }
 1244|       |#ifdef __cpp_if_constexpr
 1245|  18.5k|    } else if constexpr (std::is_signed_v<I>) {
 1246|       |#else
 1247|       |    } else if (std::is_signed<I>::value) {
 1248|       |#endif
 1249|       |      // conversion is from unsigned to signed
 1250|  18.5k|      const auto imax = static_cast<std::make_unsigned_t<I>>(std::numeric_limits<I>::max());
 1251|  18.5k|      if (imax < b || imax < a) {
  ------------------
  |  Branch (1251:11): [True: 17, False: 18.5k]
  |  Branch (1251:23): [True: 0, False: 18.5k]
  ------------------
 1252|      0|        return 0;
 1253|      0|      }
 1254|       |    } else {
 1255|       |      // conversion is from signed to unsigned
 1256|       |      const auto imax = std::numeric_limits<I>::max();
 1257|       |      if (a < 0) {
 1258|       |        return 0;
 1259|       |      }
 1260|       |      // Inputs are not negative so convert them to unsigned.
 1261|       |      const auto a_u = static_cast<std::make_unsigned_t<decltype(a)>>(a);
 1262|       |      const auto b_u = static_cast<std::make_unsigned_t<decltype(b)>>(b);
 1263|       |      if (imax < b_u || imax < a_u) {
 1264|       |        return 0;
 1265|       |      }
 1266|       |    }
 1267|       |
 1268|  18.5k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  19.5k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE26rational_to_integer_helperIjEET_m:
 1223|  3.03k|  I rational_to_integer_helper(size_t n) const {
 1224|  3.03k|    auto a = value_.at(n).first;
 1225|  3.03k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  3.03k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 275, False: 2.75k]
  ------------------
 1229|    275|      return 0;
 1230|    275|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  2.75k|#ifdef __cpp_if_constexpr
 1234|  2.75k|    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.75k|      const auto imin = std::numeric_limits<I>::min();
 1240|  2.75k|      const auto imax = std::numeric_limits<I>::max();
 1241|  2.75k|      if (imax < b || a < imin || imax < a) {
  ------------------
  |  Branch (1241:11): [True: 32, False: 2.72k]
  |  Branch (1241:23): [True: 0, False: 2.72k]
  |  Branch (1241:35): [True: 0, False: 2.72k]
  ------------------
 1242|      0|        return 0;
 1243|      0|      }
 1244|  2.75k|#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.75k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  3.03k|  }
_ZN5Exiv29ValueTypeItEC2Ev:
 1433|  11.0M|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  11.0M|}
_ZN5Exiv25ValueD2Ev:
   43|  53.8M|  virtual ~Value() = default;
_ZN5Exiv29ValueTypeItE4readEPKhmNS_9ByteOrderE:
 1467|  11.0M|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  11.0M|  value_.clear();
 1469|  11.0M|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  11.0M|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 11.0M, False: 0]
  |  Branch (1470:17): [True: 1.31k, False: 11.0M]
  ------------------
 1471|  1.31k|    len = (len / ts) * ts;
 1472|  23.4M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 12.3M, False: 11.0M]
  ------------------
 1473|  12.3M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  12.3M|  }
 1475|  11.0M|  return 0;
 1476|  11.0M|}
_ZN5Exiv29ValueTypeItE4readERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 1479|    824|int ValueType<T>::read(const std::string& buf) {
 1480|    824|  std::istringstream is(buf);
 1481|    824|  T tmp;
 1482|    824|  ValueList val;
 1483|  1.35k|  while (is >> tmp)
  ------------------
  |  Branch (1483:10): [True: 535, False: 824]
  ------------------
 1484|    535|    val.push_back(tmp);
 1485|    824|  if (!is.eof())
  ------------------
  |  Branch (1485:7): [True: 10, False: 814]
  ------------------
 1486|     10|    return 1;
 1487|    814|  value_ = std::move(val);
 1488|    814|  return 0;
 1489|    824|}
_ZN5Exiv29ValueTypeItE11setDataAreaEPKhm:
 1649|    234|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    234|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 165, False: 69]
  ------------------
 1651|    165|    pDataArea_ = Blob(buf, buf + len);
 1652|     69|  else
 1653|     69|    pDataArea_.clear();
 1654|    234|  return 0;
 1655|    234|}
_ZNK5Exiv29ValueTypeItE4copyEPhNS_9ByteOrderE:
 1492|  31.4k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  31.4k|  size_t offset = 0;
 1494|   605k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 605k, False: 31.4k]
  ------------------
 1495|   605k|    offset += toData(buf + offset, val, byteOrder);
 1496|   605k|  }
 1497|  31.4k|  return offset;
 1498|  31.4k|}
_ZNK5Exiv29ValueTypeItE5countEv:
 1501|  11.3M|size_t ValueType<T>::count() const {
 1502|  11.3M|  return value_.size();
 1503|  11.3M|}
_ZNK5Exiv29ValueTypeItE4sizeEv:
 1506|   205k|size_t ValueType<T>::size() const {
 1507|   205k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|   205k|}
_ZNK5Exiv29ValueTypeItE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  50.9k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  50.9k|  auto end = value_.end();
 1518|  50.9k|  auto i = value_.begin();
 1519|   339k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 288k, False: 50.9k]
  ------------------
 1520|   288k|    os << std::setprecision(15) << *i;
 1521|   288k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 237k, False: 50.8k]
  ------------------
 1522|   237k|      os << " ";
 1523|   288k|  }
 1524|  50.9k|  return os;
 1525|  50.9k|}
_ZNK5Exiv29ValueTypeItE8toStringEm:
 1528|    966|std::string ValueType<T>::toString(size_t n) const {
 1529|    966|  ok_ = true;
 1530|    966|  return Exiv2::toString<T>(value_.at(n));
 1531|    966|}
_ZNK5Exiv29ValueTypeItE7toInt64Em:
 1535|   237k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|   237k|  ok_ = true;
 1537|   237k|  return static_cast<int64_t>(value_.at(n));
 1538|   237k|}
_ZNK5Exiv29ValueTypeItE8toUint32Em:
 1540|  42.7k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  42.7k|  ok_ = true;
 1542|  42.7k|  return static_cast<uint32_t>(value_.at(n));
 1543|  42.7k|}
_ZNK5Exiv29ValueTypeItE7toFloatEm:
 1585|  9.68k|float ValueType<T>::toFloat(size_t n) const {
 1586|  9.68k|  ok_ = true;
 1587|  9.68k|  return static_cast<float>(value_.at(n));
 1588|  9.68k|}
_ZNK5Exiv29ValueTypeItE10toRationalEm:
 1607|    106|Rational ValueType<T>::toRational(size_t n) const {
 1608|    106|  ok_ = true;
 1609|    106|  return {value_.at(n), 1};
 1610|    106|}
_ZNK5Exiv29ValueTypeItE12sizeDataAreaEv:
 1639|  1.95k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.95k|  return pDataArea_.size();
 1641|  1.95k|}
_ZNK5Exiv29ValueTypeItE8dataAreaEv:
 1644|    177|DataBuf ValueType<T>::dataArea() const {
 1645|    177|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    177|}
_ZNK5Exiv29ValueTypeItE6clone_Ev:
 1511|  22.1M|ValueType<T>* ValueType<T>::clone_() const {
 1512|  22.1M|  return new ValueType<T>(*this);
 1513|  22.1M|}
_ZN5Exiv29ValueTypeItEC2ERKS1_:
 1447|  22.1M|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  22.1M|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 169, False: 22.1M]
  ------------------
 1449|    169|    pDataArea_ = rhs.pDataArea_;
 1450|  22.1M|}
_ZN5Exiv25ValueC2ERKS0_:
  225|  12.0M|  Value(const Value&) = default;
_ZN5Exiv29ValueTypeIjE4readEPKhmNS_9ByteOrderE:
 1467|   237k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|   237k|  value_.clear();
 1469|   237k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|   237k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 237k, False: 0]
  |  Branch (1470:17): [True: 153, False: 237k]
  ------------------
 1471|    153|    len = (len / ts) * ts;
 1472|  3.35M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 3.11M, False: 237k]
  ------------------
 1473|  3.11M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  3.11M|  }
 1475|   237k|  return 0;
 1476|   237k|}
_ZN5Exiv29ValueTypeIjE11setDataAreaEPKhm:
 1649|    309|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    309|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 204, False: 105]
  ------------------
 1651|    204|    pDataArea_ = Blob(buf, buf + len);
 1652|    105|  else
 1653|    105|    pDataArea_.clear();
 1654|    309|  return 0;
 1655|    309|}
_ZNK5Exiv29ValueTypeIjE4copyEPhNS_9ByteOrderE:
 1492|  68.8k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  68.8k|  size_t offset = 0;
 1494|   191k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 191k, False: 68.8k]
  ------------------
 1495|   191k|    offset += toData(buf + offset, val, byteOrder);
 1496|   191k|  }
 1497|  68.8k|  return offset;
 1498|  68.8k|}
_ZNK5Exiv29ValueTypeIjE5countEv:
 1501|   411k|size_t ValueType<T>::count() const {
 1502|   411k|  return value_.size();
 1503|   411k|}
_ZNK5Exiv29ValueTypeIjE4sizeEv:
 1506|   461k|size_t ValueType<T>::size() const {
 1507|   461k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|   461k|}
_ZNK5Exiv29ValueTypeIjE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  62.4k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  62.4k|  auto end = value_.end();
 1518|  62.4k|  auto i = value_.begin();
 1519|   521k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 458k, False: 62.4k]
  ------------------
 1520|   458k|    os << std::setprecision(15) << *i;
 1521|   458k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 396k, False: 62.2k]
  ------------------
 1522|   396k|      os << " ";
 1523|   458k|  }
 1524|  62.4k|  return os;
 1525|  62.4k|}
_ZNK5Exiv29ValueTypeIjE8toStringEm:
 1528|    258|std::string ValueType<T>::toString(size_t n) const {
 1529|    258|  ok_ = true;
 1530|    258|  return Exiv2::toString<T>(value_.at(n));
 1531|    258|}
_ZNK5Exiv29ValueTypeIjE7toInt64Em:
 1535|  36.3k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  36.3k|  ok_ = true;
 1537|  36.3k|  return static_cast<int64_t>(value_.at(n));
 1538|  36.3k|}
_ZNK5Exiv29ValueTypeIjE8toUint32Em:
 1540|  9.44k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  9.44k|  ok_ = true;
 1542|  9.44k|  return static_cast<uint32_t>(value_.at(n));
 1543|  9.44k|}
_ZNK5Exiv29ValueTypeIjE7toFloatEm:
 1585|    166|float ValueType<T>::toFloat(size_t n) const {
 1586|    166|  ok_ = true;
 1587|    166|  return static_cast<float>(value_.at(n));
 1588|    166|}
_ZNK5Exiv29ValueTypeIjE10toRationalEm:
 1607|    368|Rational ValueType<T>::toRational(size_t n) const {
 1608|    368|  ok_ = true;
 1609|    368|  return {value_.at(n), 1};
 1610|    368|}
_ZNK5Exiv29ValueTypeIjE12sizeDataAreaEv:
 1639|  2.50k|size_t ValueType<T>::sizeDataArea() const {
 1640|  2.50k|  return pDataArea_.size();
 1641|  2.50k|}
_ZNK5Exiv29ValueTypeIjE8dataAreaEv:
 1644|    287|DataBuf ValueType<T>::dataArea() const {
 1645|    287|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    287|}
_ZNK5Exiv29ValueTypeIjE6clone_Ev:
 1511|   582k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   582k|  return new ValueType<T>(*this);
 1513|   582k|}
_ZN5Exiv29ValueTypeIjEC2ERKS1_:
 1447|   582k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   582k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 223, False: 582k]
  ------------------
 1449|    223|    pDataArea_ = rhs.pDataArea_;
 1450|   582k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEEC2Ev:
 1433|  46.1k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  46.1k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEE4readEPKhmNS_9ByteOrderE:
 1467|  46.1k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  46.1k|  value_.clear();
 1469|  46.1k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  46.1k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 46.1k, False: 0]
  |  Branch (1470:17): [True: 0, False: 46.1k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   347k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 301k, False: 46.1k]
  ------------------
 1473|   301k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   301k|  }
 1475|  46.1k|  return 0;
 1476|  46.1k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEE11setDataAreaEPKhm:
 1649|    244|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    244|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 148, False: 96]
  ------------------
 1651|    148|    pDataArea_ = Blob(buf, buf + len);
 1652|     96|  else
 1653|     96|    pDataArea_.clear();
 1654|    244|  return 0;
 1655|    244|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE4copyEPhNS_9ByteOrderE:
 1492|  17.2k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  17.2k|  size_t offset = 0;
 1494|   235k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 235k, False: 17.2k]
  ------------------
 1495|   235k|    offset += toData(buf + offset, val, byteOrder);
 1496|   235k|  }
 1497|  17.2k|  return offset;
 1498|  17.2k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE5countEv:
 1501|  96.1k|size_t ValueType<T>::count() const {
 1502|  96.1k|  return value_.size();
 1503|  96.1k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE4sizeEv:
 1506|  53.4k|size_t ValueType<T>::size() const {
 1507|  53.4k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  53.4k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE5writeERNS1_13basic_ostreamIcNS1_11char_traitsIcEEEE:
 1516|  4.05k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  4.05k|  auto end = value_.end();
 1518|  4.05k|  auto i = value_.begin();
 1519|  25.7k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 21.6k, False: 4.05k]
  ------------------
 1520|  21.6k|    os << std::setprecision(15) << *i;
 1521|  21.6k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 17.8k, False: 3.83k]
  ------------------
 1522|  17.8k|      os << " ";
 1523|  21.6k|  }
 1524|  4.05k|  return os;
 1525|  4.05k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8toStringEm:
 1528|    166|std::string ValueType<T>::toString(size_t n) const {
 1529|    166|  ok_ = true;
 1530|    166|  return Exiv2::toString<T>(value_.at(n));
 1531|    166|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE12sizeDataAreaEv:
 1639|  1.21k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.21k|  return pDataArea_.size();
 1641|  1.21k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8dataAreaEv:
 1644|    128|DataBuf ValueType<T>::dataArea() const {
 1645|    128|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    128|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE6clone_Ev:
 1511|   117k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   117k|  return new ValueType<T>(*this);
 1513|   117k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEEC2ERKS4_:
 1447|   117k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   117k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 112, False: 117k]
  ------------------
 1449|    112|    pDataArea_ = rhs.pDataArea_;
 1450|   117k|}
_ZN5Exiv29ValueTypeIsEC2Ev:
 1433|  1.10M|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  1.10M|}
_ZN5Exiv29ValueTypeIsE4readEPKhmNS_9ByteOrderE:
 1467|  1.10M|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  1.10M|  value_.clear();
 1469|  1.10M|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  1.10M|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 1.10M, False: 0]
  |  Branch (1470:17): [True: 605, False: 1.10M]
  ------------------
 1471|    605|    len = (len / ts) * ts;
 1472|  6.35M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 5.24M, False: 1.10M]
  ------------------
 1473|  5.24M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  5.24M|  }
 1475|  1.10M|  return 0;
 1476|  1.10M|}
_ZN5Exiv29ValueTypeIsE4readERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 1479|  3.25k|int ValueType<T>::read(const std::string& buf) {
 1480|  3.25k|  std::istringstream is(buf);
 1481|  3.25k|  T tmp;
 1482|  3.25k|  ValueList val;
 1483|  8.03k|  while (is >> tmp)
  ------------------
  |  Branch (1483:10): [True: 4.78k, False: 3.25k]
  ------------------
 1484|  4.78k|    val.push_back(tmp);
 1485|  3.25k|  if (!is.eof())
  ------------------
  |  Branch (1485:7): [True: 0, False: 3.25k]
  ------------------
 1486|      0|    return 1;
 1487|  3.25k|  value_ = std::move(val);
 1488|  3.25k|  return 0;
 1489|  3.25k|}
_ZN5Exiv29ValueTypeIsE11setDataAreaEPKhm:
 1649|    249|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    249|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 115, False: 134]
  ------------------
 1651|    115|    pDataArea_ = Blob(buf, buf + len);
 1652|    134|  else
 1653|    134|    pDataArea_.clear();
 1654|    249|  return 0;
 1655|    249|}
_ZNK5Exiv29ValueTypeIsE4copyEPhNS_9ByteOrderE:
 1492|  7.28k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  7.28k|  size_t offset = 0;
 1494|   148k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 148k, False: 7.28k]
  ------------------
 1495|   148k|    offset += toData(buf + offset, val, byteOrder);
 1496|   148k|  }
 1497|  7.28k|  return offset;
 1498|  7.28k|}
_ZNK5Exiv29ValueTypeIsE5countEv:
 1501|  8.51M|size_t ValueType<T>::count() const {
 1502|  8.51M|  return value_.size();
 1503|  8.51M|}
_ZNK5Exiv29ValueTypeIsE4sizeEv:
 1506|  25.3k|size_t ValueType<T>::size() const {
 1507|  25.3k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  25.3k|}
_ZNK5Exiv29ValueTypeIsE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  11.6k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  11.6k|  auto end = value_.end();
 1518|  11.6k|  auto i = value_.begin();
 1519|   115k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 104k, False: 11.6k]
  ------------------
 1520|   104k|    os << std::setprecision(15) << *i;
 1521|   104k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 92.5k, False: 11.5k]
  ------------------
 1522|  92.5k|      os << " ";
 1523|   104k|  }
 1524|  11.6k|  return os;
 1525|  11.6k|}
_ZNK5Exiv29ValueTypeIsE8toStringEm:
 1528|    118|std::string ValueType<T>::toString(size_t n) const {
 1529|    118|  ok_ = true;
 1530|    118|  return Exiv2::toString<T>(value_.at(n));
 1531|    118|}
_ZNK5Exiv29ValueTypeIsE7toInt64Em:
 1535|  7.38M|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  7.38M|  ok_ = true;
 1537|  7.38M|  return static_cast<int64_t>(value_.at(n));
 1538|  7.38M|}
_ZNK5Exiv29ValueTypeIsE8toUint32Em:
 1540|  11.7k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  11.7k|  ok_ = true;
 1542|  11.7k|  return static_cast<uint32_t>(value_.at(n));
 1543|  11.7k|}
_ZNK5Exiv29ValueTypeIsE7toFloatEm:
 1585|    223|float ValueType<T>::toFloat(size_t n) const {
 1586|    223|  ok_ = true;
 1587|    223|  return static_cast<float>(value_.at(n));
 1588|    223|}
_ZNK5Exiv29ValueTypeIsE10toRationalEm:
 1607|    210|Rational ValueType<T>::toRational(size_t n) const {
 1608|    210|  ok_ = true;
 1609|    210|  return {value_.at(n), 1};
 1610|    210|}
_ZNK5Exiv29ValueTypeIsE12sizeDataAreaEv:
 1639|  3.52k|size_t ValueType<T>::sizeDataArea() const {
 1640|  3.52k|  return pDataArea_.size();
 1641|  3.52k|}
_ZNK5Exiv29ValueTypeIsE8dataAreaEv:
 1644|     45|DataBuf ValueType<T>::dataArea() const {
 1645|     45|  return {pDataArea_.data(), pDataArea_.size()};
 1646|     45|}
_ZNK5Exiv29ValueTypeIsE6clone_Ev:
 1511|  2.23M|ValueType<T>* ValueType<T>::clone_() const {
 1512|  2.23M|  return new ValueType<T>(*this);
 1513|  2.23M|}
_ZN5Exiv29ValueTypeIsEC2ERKS1_:
 1447|  2.23M|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  2.23M|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 160, False: 2.23M]
  ------------------
 1449|    160|    pDataArea_ = rhs.pDataArea_;
 1450|  2.23M|}
_ZN5Exiv29ValueTypeIiEC2Ev:
 1433|   182k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|   182k|}
_ZN5Exiv29ValueTypeIiE4readEPKhmNS_9ByteOrderE:
 1467|   182k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|   182k|  value_.clear();
 1469|   182k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|   182k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 182k, False: 0]
  |  Branch (1470:17): [True: 1.09k, False: 181k]
  ------------------
 1471|  1.09k|    len = (len / ts) * ts;
 1472|   493k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 311k, False: 182k]
  ------------------
 1473|   311k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   311k|  }
 1475|   182k|  return 0;
 1476|   182k|}
_ZN5Exiv29ValueTypeIiE11setDataAreaEPKhm:
 1649|    187|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    187|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 91, False: 96]
  ------------------
 1651|     91|    pDataArea_ = Blob(buf, buf + len);
 1652|     96|  else
 1653|     96|    pDataArea_.clear();
 1654|    187|  return 0;
 1655|    187|}
_ZNK5Exiv29ValueTypeIiE4copyEPhNS_9ByteOrderE:
 1492|  4.79k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  4.79k|  size_t offset = 0;
 1494|  21.9k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 21.9k, False: 4.79k]
  ------------------
 1495|  21.9k|    offset += toData(buf + offset, val, byteOrder);
 1496|  21.9k|  }
 1497|  4.79k|  return offset;
 1498|  4.79k|}
_ZNK5Exiv29ValueTypeIiE5countEv:
 1501|   222k|size_t ValueType<T>::count() const {
 1502|   222k|  return value_.size();
 1503|   222k|}
_ZNK5Exiv29ValueTypeIiE4sizeEv:
 1506|  19.0k|size_t ValueType<T>::size() const {
 1507|  19.0k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  19.0k|}
_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|  55.8k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 50.9k, False: 4.86k]
  ------------------
 1520|  50.9k|    os << std::setprecision(15) << *i;
 1521|  50.9k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 46.3k, False: 4.61k]
  ------------------
 1522|  46.3k|      os << " ";
 1523|  50.9k|  }
 1524|  4.86k|  return os;
 1525|  4.86k|}
_ZNK5Exiv29ValueTypeIiE8toStringEm:
 1528|    180|std::string ValueType<T>::toString(size_t n) const {
 1529|    180|  ok_ = true;
 1530|    180|  return Exiv2::toString<T>(value_.at(n));
 1531|    180|}
_ZNK5Exiv29ValueTypeIiE7toInt64Em:
 1535|  23.9k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  23.9k|  ok_ = true;
 1537|  23.9k|  return static_cast<int64_t>(value_.at(n));
 1538|  23.9k|}
_ZNK5Exiv29ValueTypeIiE8toUint32Em:
 1540|  2.67k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  2.67k|  ok_ = true;
 1542|  2.67k|  return static_cast<uint32_t>(value_.at(n));
 1543|  2.67k|}
_ZNK5Exiv29ValueTypeIiE7toFloatEm:
 1585|    108|float ValueType<T>::toFloat(size_t n) const {
 1586|    108|  ok_ = true;
 1587|    108|  return static_cast<float>(value_.at(n));
 1588|    108|}
_ZNK5Exiv29ValueTypeIiE10toRationalEm:
 1607|    216|Rational ValueType<T>::toRational(size_t n) const {
 1608|    216|  ok_ = true;
 1609|    216|  return {value_.at(n), 1};
 1610|    216|}
_ZNK5Exiv29ValueTypeIiE12sizeDataAreaEv:
 1639|    802|size_t ValueType<T>::sizeDataArea() const {
 1640|    802|  return pDataArea_.size();
 1641|    802|}
_ZNK5Exiv29ValueTypeIiE8dataAreaEv:
 1644|    102|DataBuf ValueType<T>::dataArea() const {
 1645|    102|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    102|}
_ZNK5Exiv29ValueTypeIiE6clone_Ev:
 1511|   374k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   374k|  return new ValueType<T>(*this);
 1513|   374k|}
_ZN5Exiv29ValueTypeIiEC2ERKS1_:
 1447|   374k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   374k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 115, False: 374k]
  ------------------
 1449|    115|    pDataArea_ = rhs.pDataArea_;
 1450|   374k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEEC2Ev:
 1433|  32.2k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  32.2k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEE4readEPKhmNS_9ByteOrderE:
 1467|  32.2k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  32.2k|  value_.clear();
 1469|  32.2k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  32.2k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 32.2k, False: 0]
  |  Branch (1470:17): [True: 0, False: 32.2k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   381k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 349k, False: 32.2k]
  ------------------
 1473|   349k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   349k|  }
 1475|  32.2k|  return 0;
 1476|  32.2k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEE11setDataAreaEPKhm:
 1649|  1.47k|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|  1.47k|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 960, False: 512]
  ------------------
 1651|    960|    pDataArea_ = Blob(buf, buf + len);
 1652|    512|  else
 1653|    512|    pDataArea_.clear();
 1654|  1.47k|  return 0;
 1655|  1.47k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE4copyEPhNS_9ByteOrderE:
 1492|  13.2k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  13.2k|  size_t offset = 0;
 1494|  95.2k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 95.2k, False: 13.2k]
  ------------------
 1495|  95.2k|    offset += toData(buf + offset, val, byteOrder);
 1496|  95.2k|  }
 1497|  13.2k|  return offset;
 1498|  13.2k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE5countEv:
 1501|  97.6k|size_t ValueType<T>::count() const {
 1502|  97.6k|  return value_.size();
 1503|  97.6k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE4sizeEv:
 1506|  39.0k|size_t ValueType<T>::size() const {
 1507|  39.0k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  39.0k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE5writeERNS1_13basic_ostreamIcNS1_11char_traitsIcEEEE:
 1516|  7.15k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  7.15k|  auto end = value_.end();
 1518|  7.15k|  auto i = value_.begin();
 1519|  39.6k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 32.5k, False: 7.15k]
  ------------------
 1520|  32.5k|    os << std::setprecision(15) << *i;
 1521|  32.5k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 25.5k, False: 6.95k]
  ------------------
 1522|  25.5k|      os << " ";
 1523|  32.5k|  }
 1524|  7.15k|  return os;
 1525|  7.15k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8toStringEm:
 1528|    350|std::string ValueType<T>::toString(size_t n) const {
 1529|    350|  ok_ = true;
 1530|    350|  return Exiv2::toString<T>(value_.at(n));
 1531|    350|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE12sizeDataAreaEv:
 1639|  3.19k|size_t ValueType<T>::sizeDataArea() const {
 1640|  3.19k|  return pDataArea_.size();
 1641|  3.19k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8dataAreaEv:
 1644|    153|DataBuf ValueType<T>::dataArea() const {
 1645|    153|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    153|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE6clone_Ev:
 1511|  82.8k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  82.8k|  return new ValueType<T>(*this);
 1513|  82.8k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEEC2ERKS4_:
 1447|  82.8k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  82.8k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 1.64k, False: 81.1k]
  ------------------
 1449|  1.64k|    pDataArea_ = rhs.pDataArea_;
 1450|  82.8k|}
_ZN5Exiv29ValueTypeIfEC2Ev:
 1433|  9.59k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  9.59k|}
_ZN5Exiv29ValueTypeIfE4readEPKhmNS_9ByteOrderE:
 1467|  9.59k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  9.59k|  value_.clear();
 1469|  9.59k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  9.59k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 9.59k, False: 0]
  |  Branch (1470:17): [True: 0, False: 9.59k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   137k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 128k, False: 9.59k]
  ------------------
 1473|   128k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   128k|  }
 1475|  9.59k|  return 0;
 1476|  9.59k|}
_ZN5Exiv29ValueTypeIfE11setDataAreaEPKhm:
 1649|    604|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    604|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 309, False: 295]
  ------------------
 1651|    309|    pDataArea_ = Blob(buf, buf + len);
 1652|    295|  else
 1653|    295|    pDataArea_.clear();
 1654|    604|  return 0;
 1655|    604|}
_ZNK5Exiv29ValueTypeIfE4copyEPhNS_9ByteOrderE:
 1492|  5.42k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  5.42k|  size_t offset = 0;
 1494|  42.0k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 42.0k, False: 5.42k]
  ------------------
 1495|  42.0k|    offset += toData(buf + offset, val, byteOrder);
 1496|  42.0k|  }
 1497|  5.42k|  return offset;
 1498|  5.42k|}
_ZNK5Exiv29ValueTypeIfE5countEv:
 1501|  30.5k|size_t ValueType<T>::count() const {
 1502|  30.5k|  return value_.size();
 1503|  30.5k|}
_ZNK5Exiv29ValueTypeIfE4sizeEv:
 1506|  19.3k|size_t ValueType<T>::size() const {
 1507|  19.3k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  19.3k|}
_ZNK5Exiv29ValueTypeIfE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  2.63k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  2.63k|  auto end = value_.end();
 1518|  2.63k|  auto i = value_.begin();
 1519|  77.2k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 74.6k, False: 2.63k]
  ------------------
 1520|  74.6k|    os << std::setprecision(15) << *i;
 1521|  74.6k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 72.0k, False: 2.61k]
  ------------------
 1522|  72.0k|      os << " ";
 1523|  74.6k|  }
 1524|  2.63k|  return os;
 1525|  2.63k|}
_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|    106|float ValueType<T>::toFloat(size_t n) const {
 1586|    106|  ok_ = true;
 1587|    106|  return static_cast<float>(value_.at(n));
 1588|    106|}
_ZNK5Exiv29ValueTypeIfE12sizeDataAreaEv:
 1639|  2.30k|size_t ValueType<T>::sizeDataArea() const {
 1640|  2.30k|  return pDataArea_.size();
 1641|  2.30k|}
_ZNK5Exiv29ValueTypeIfE8dataAreaEv:
 1644|    218|DataBuf ValueType<T>::dataArea() const {
 1645|    218|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    218|}
_ZNK5Exiv29ValueTypeIfE6clone_Ev:
 1511|  29.2k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  29.2k|  return new ValueType<T>(*this);
 1513|  29.2k|}
_ZN5Exiv29ValueTypeIfEC2ERKS1_:
 1447|  29.2k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  29.2k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 236, False: 29.0k]
  ------------------
 1449|    236|    pDataArea_ = rhs.pDataArea_;
 1450|  29.2k|}
_ZN5Exiv29ValueTypeIdEC2Ev:
 1433|  8.71k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  8.71k|}
_ZN5Exiv29ValueTypeIdE4readEPKhmNS_9ByteOrderE:
 1467|  8.71k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  8.71k|  value_.clear();
 1469|  8.71k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  8.71k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 8.71k, False: 0]
  |  Branch (1470:17): [True: 0, False: 8.71k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|  31.8k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 23.1k, False: 8.71k]
  ------------------
 1473|  23.1k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  23.1k|  }
 1475|  8.71k|  return 0;
 1476|  8.71k|}
_ZN5Exiv29ValueTypeIdE11setDataAreaEPKhm:
 1649|    271|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    271|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 135, False: 136]
  ------------------
 1651|    135|    pDataArea_ = Blob(buf, buf + len);
 1652|    136|  else
 1653|    136|    pDataArea_.clear();
 1654|    271|  return 0;
 1655|    271|}
_ZNK5Exiv29ValueTypeIdE4copyEPhNS_9ByteOrderE:
 1492|  7.07k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  7.07k|  size_t offset = 0;
 1494|  56.1k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 56.1k, False: 7.07k]
  ------------------
 1495|  56.1k|    offset += toData(buf + offset, val, byteOrder);
 1496|  56.1k|  }
 1497|  7.07k|  return offset;
 1498|  7.07k|}
_ZNK5Exiv29ValueTypeIdE5countEv:
 1501|  21.0k|size_t ValueType<T>::count() const {
 1502|  21.0k|  return value_.size();
 1503|  21.0k|}
_ZNK5Exiv29ValueTypeIdE4sizeEv:
 1506|  23.0k|size_t ValueType<T>::size() const {
 1507|  23.0k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  23.0k|}
_ZNK5Exiv29ValueTypeIdE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  1.29k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  1.29k|  auto end = value_.end();
 1518|  1.29k|  auto i = value_.begin();
 1519|  7.53k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 6.23k, False: 1.29k]
  ------------------
 1520|  6.23k|    os << std::setprecision(15) << *i;
 1521|  6.23k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 4.98k, False: 1.24k]
  ------------------
 1522|  4.98k|      os << " ";
 1523|  6.23k|  }
 1524|  1.29k|  return os;
 1525|  1.29k|}
_ZNK5Exiv29ValueTypeIdE8toStringEm:
 1528|     54|std::string ValueType<T>::toString(size_t n) const {
 1529|     54|  ok_ = true;
 1530|     54|  return Exiv2::toString<T>(value_.at(n));
 1531|     54|}
_ZNK5Exiv29ValueTypeIdE7toFloatEm:
 1585|    167|float ValueType<T>::toFloat(size_t n) const {
 1586|    167|  ok_ = true;
 1587|    167|  return static_cast<float>(value_.at(n));
 1588|    167|}
_ZNK5Exiv29ValueTypeIdE12sizeDataAreaEv:
 1639|  1.87k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.87k|  return pDataArea_.size();
 1641|  1.87k|}
_ZNK5Exiv29ValueTypeIdE8dataAreaEv:
 1644|    215|DataBuf ValueType<T>::dataArea() const {
 1645|    215|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    215|}
_ZNK5Exiv29ValueTypeIdE6clone_Ev:
 1511|  28.2k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  28.2k|  return new ValueType<T>(*this);
 1513|  28.2k|}
_ZN5Exiv29ValueTypeIdEC2ERKS1_:
 1447|  28.2k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  28.2k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 142, False: 28.1k]
  ------------------
 1449|    142|    pDataArea_ = rhs.pDataArea_;
 1450|  28.2k|}
_ZZNK5Exiv222LangAltValueComparatorclERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_ENKUlhhE_clEhh:
  799|  2.06k|    auto f = [](unsigned char a, unsigned char b) { return std::tolower(a) > std::tolower(b); };
_ZN5Exiv29ValueTypeIjEC2Ev:
 1433|  28.6k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  28.6k|}

_ZNK5Exiv27XmpData9usePacketEv:
  216|  8.94k|  [[nodiscard]] bool usePacket() const {
  217|  8.94k|    return usePacket_;
  218|  8.94k|  }
_ZN5Exiv27XmpData9usePacketEb:
  221|  37.5k|  bool usePacket(bool b) {
  222|  37.5k|    bool r = usePacket_;
  223|  37.5k|    usePacket_ = b;
  224|  37.5k|    return r;
  225|  37.5k|  }
_ZN5Exiv27XmpData9setPacketENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  227|  36.5k|  void setPacket(std::string xmpPacket) {
  228|  36.5k|    xmpPacket_ = std::move(xmpPacket);
  229|  36.5k|    usePacket(false);
  230|  36.5k|  }
_ZNK5Exiv27XmpData10nsBindingsEv:
  260|  3.24k|  [[nodiscard]] const std::map<std::string, std::string>& nsBindings() const {
  261|  3.24k|    return nsBindings_;
  262|  3.24k|  }
_ZN5Exiv27XmpDataC2Ev:
  140|  40.0k|  XmpData() = default;
_ZN5Exiv28XmpdatumaSINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEERS0_RKT_:
  395|  10.5k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|  10.5k|    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|       |    setValue(Exiv2::toString(value));
  404|  10.5k|  return *this;
  405|  10.5k|}
_ZN5Exiv28XmpdatumaSIdEERS0_RKT_:
  395|   191k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|   191k|    setValue(Exiv2::toString(value));
  404|   191k|  return *this;
  405|   191k|}
_ZN5Exiv28XmpdatumaSImEERS0_RKT_:
  395|  5.00k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|  5.00k|    setValue(Exiv2::toString(value));
  404|  5.00k|  return *this;
  405|  5.00k|}
_ZN5Exiv28XmpdatumaSIjEERS0_RKT_:
  395|  6.31k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|  6.31k|    setValue(Exiv2::toString(value));
  404|  6.31k|  return *this;
  405|  6.31k|}
_ZN5Exiv28XmpdatumaSIPKhEERS0_RKT_:
  395|  2.24k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|  2.24k|    setValue(Exiv2::toString(value));
  404|  2.24k|  return *this;
  405|  2.24k|}
_ZN5Exiv28XmpdatumaSIA4_cEERS0_RKT_:
  395|  2.43k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|  2.43k|    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|       |    setValue(Exiv2::toString(value));
  404|  2.43k|  return *this;
  405|  2.43k|}
_ZN5Exiv28XmpdatumaSIlEERS0_RKT_:
  395|    672|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|    672|    setValue(Exiv2::toString(value));
  404|    672|  return *this;
  405|    672|}
_ZN5Exiv28XmpdatumaSIfEERS0_RKT_:
  395|    786|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|    786|    setValue(Exiv2::toString(value));
  404|    786|  return *this;
  405|    786|}
_ZN5Exiv28XmpdatumaSIA18_cEERS0_RKT_:
  395|    271|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|    271|    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|       |    setValue(Exiv2::toString(value));
  404|    271|  return *this;
  405|    271|}
_ZN5Exiv28XmpdatumaSItEERS0_RKT_:
  395|   127k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|   127k|    setValue(Exiv2::toString(value));
  404|   127k|  return *this;
  405|   127k|}
_ZN5Exiv28XmpdatumaSIsEERS0_RKT_:
  395|  1.11k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|  1.11k|    setValue(Exiv2::toString(value));
  404|  1.11k|  return *this;
  405|  1.11k|}
_ZN5Exiv28XmpdatumaSIPhEERS0_RKT_:
  395|   194k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|   194k|    setValue(Exiv2::toString(value));
  404|   194k|  return *this;
  405|   194k|}
_ZN5Exiv28XmpdatumaSIPKcEERS0_RKT_:
  395|  16.3k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|  16.3k|    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|       |    setValue(Exiv2::toString(value));
  404|  16.3k|  return *this;
  405|  16.3k|}
_ZN5Exiv28XmpdatumaSIiEERS0_RKT_:
  395|   203k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|       |    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|   203k|    setValue(Exiv2::toString(value));
  404|   203k|  return *this;
  405|   203k|}
_ZN5Exiv28XmpdatumaSIA12_cEERS0_RKT_:
  395|     11|Xmpdatum& Xmpdatum::operator=(const T& value) {
  396|       |  if constexpr (std::is_same_v<T, bool>)
  397|       |    setValue(value ? "True" : "False");
  398|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  399|     11|    setValue(value);
  400|       |  else if constexpr (std::is_base_of_v<Value, T>)
  401|       |    setValue(&value);
  402|       |  else
  403|       |    setValue(Exiv2::toString(value));
  404|     11|  return *this;
  405|     11|}

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

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

_ZNK5Exiv24Iloc8toStringEv:
   82|     36|std::string Iloc::toString() const {
   83|     36|  return stringFormat("ID = {} from,length = {},{}", ID_, start_, length_);
  ------------------
  |  |   18|     36|#define stringFormat std::format
  ------------------
   84|     36|}
_ZN5Exiv29BmffImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEbm:
   87|  5.21k|    Image(ImageType::bmff, mdExif | mdIptc | mdXmp, std::move(io)), max_box_depth_(max_box_depth) {
   88|  5.21k|}  // BmffImage::BmffImage
_ZN5Exiv29BmffImage7toAsciiEj:
   90|  54.2k|std::string BmffImage::toAscii(uint32_t n) {
   91|  54.2k|  std::string result(sizeof(uint32_t), '\0');
   92|   271k|  for (size_t i = 0; i < result.size(); ++i) {
  ------------------
  |  Branch (92:22): [True: 217k, False: 54.2k]
  ------------------
   93|   217k|    auto c = static_cast<unsigned char>(n >> (8 * (3 - i)));
   94|   217k|    if (c == 0)
  ------------------
  |  Branch (94:9): [True: 17.0k, False: 199k]
  ------------------
   95|  17.0k|      result[i] = '_';
   96|   199k|    else if (c < 32 || c > 126)
  ------------------
  |  Branch (96:14): [True: 7.18k, False: 192k]
  |  Branch (96:24): [True: 19.9k, False: 172k]
  ------------------
   97|  27.1k|      result[i] = '.';
   98|   172k|    else
   99|   172k|      result[i] = static_cast<char>(c);
  100|   217k|  }
  101|  54.2k|  return result;
  102|  54.2k|}
_ZN5Exiv29BmffImage7fullBoxEj:
  109|  61.6k|bool BmffImage::fullBox(uint32_t box) {
  110|  61.6k|  return box == TAG::meta || box == TAG::iinf || box == TAG::iloc || box == TAG::thmb || box == TAG::prvw;
  ------------------
  |  Branch (110:10): [True: 3.38k, False: 58.2k]
  |  Branch (110:30): [True: 279, False: 58.0k]
  |  Branch (110:50): [True: 680, False: 57.3k]
  |  Branch (110:70): [True: 1.21k, False: 56.1k]
  |  Branch (110:90): [True: 101, False: 56.0k]
  ------------------
  111|  61.6k|}
_ZNK5Exiv29BmffImage10pixelWidthEv:
  151|     10|uint32_t BmffImage::pixelWidth() const {
  152|     10|  auto imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelXDimension"));
  153|     10|  if (imageWidth == exifData_.end() || imageWidth->count() == 0)
  ------------------
  |  Branch (153:7): [True: 10, False: 0]
  |  Branch (153:7): [True: 10, False: 0]
  |  Branch (153:40): [True: 0, False: 0]
  ------------------
  154|     10|    return pixelWidth_;
  155|      0|  return imageWidth->toUint32();
  156|     10|}
_ZNK5Exiv29BmffImage11pixelHeightEv:
  158|     10|uint32_t BmffImage::pixelHeight() const {
  159|     10|  auto imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelYDimension"));
  160|     10|  if (imageHeight == exifData_.end() || imageHeight->count() == 0)
  ------------------
  |  Branch (160:7): [True: 10, False: 0]
  |  Branch (160:7): [True: 10, False: 0]
  |  Branch (160:41): [True: 0, False: 0]
  ------------------
  161|     10|    return pixelHeight_;
  162|      0|  return imageHeight->toUint32();
  163|     10|}
_ZN5Exiv29BmffImage8uuidNameERKNS_7DataBufE:
  165|    395|std::string BmffImage::uuidName(const Exiv2::DataBuf& uuid) {
  166|    395|  const char* uuidCano = "\x85\xC0\xB6\x87\x82\xF\x11\xE0\x81\x11\xF4\xCE\x46\x2B\x6A\x48";
  167|    395|  const char* uuidXmp = "\xBE\x7A\xCF\xCB\x97\xA9\x42\xE8\x9C\x71\x99\x94\x91\xE3\xAF\xAC";
  168|    395|  const char* uuidCanp = "\xEA\xF4\x2B\x5E\x1C\x98\x4B\x88\xB9\xFB\xB7\xDC\x40\x6E\x4D\x16";
  169|    395|  if (uuid.cmpBytes(0, uuidCano, 16) == 0)
  ------------------
  |  Branch (169:7): [True: 118, False: 277]
  ------------------
  170|    118|    return "cano";
  171|    277|  if (uuid.cmpBytes(0, uuidXmp, 16) == 0)
  ------------------
  |  Branch (171:7): [True: 41, False: 236]
  ------------------
  172|     41|    return "xmp";
  173|    236|  if (uuid.cmpBytes(0, uuidCanp, 16) == 0)
  ------------------
  |  Branch (173:7): [True: 16, False: 220]
  ------------------
  174|     16|    return "canp";
  175|    220|  return "";
  176|    236|}
_ZN5Exiv29BmffImage16brotliUncompressEPKhmRNS_7DataBufE:
  184|    225|void BmffImage::brotliUncompress(const byte* compressedBuf, size_t compressedBufSize, DataBuf& arr) {
  185|    225|  auto decoder = BrotliDecoder(BrotliDecoderCreateInstance(nullptr, nullptr, nullptr), BrotliDecoderDestroyInstance);
  186|    225|  size_t uncompressedLen = compressedBufSize * 2;  // just a starting point
  187|    225|  BrotliDecoderResult result = BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT;
  188|    225|  int dos = 0;
  189|    225|  size_t available_in = compressedBufSize;
  190|    225|  const byte* next_in = compressedBuf;
  191|    225|  size_t available_out;
  192|    225|  byte* next_out;
  193|    225|  size_t total_out = 0;
  194|       |
  195|    454|  while (result != BROTLI_DECODER_RESULT_SUCCESS) {
  ------------------
  |  Branch (195:10): [True: 265, False: 189]
  ------------------
  196|    265|    arr.alloc(uncompressedLen);
  197|    265|    available_out = uncompressedLen - total_out;
  198|    265|    next_out = arr.data() + total_out;
  199|    265|    result =
  200|    265|        BrotliDecoderDecompressStream(decoder.get(), &available_in, &next_in, &available_out, &next_out, &total_out);
  201|    265|    if (result == BROTLI_DECODER_RESULT_SUCCESS) {
  ------------------
  |  Branch (201:9): [True: 189, False: 76]
  ------------------
  202|    189|      arr.resize(total_out);
  203|    189|    } else if (result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) {
  ------------------
  |  Branch (203:16): [True: 46, False: 30]
  ------------------
  204|     46|      uncompressedLen *= 2;
  205|       |      // DoS protection - can't be bigger than 128k
  206|     46|      if (uncompressedLen > 131072) {
  ------------------
  |  Branch (206:11): [True: 11, False: 35]
  ------------------
  207|     11|        if (++dos > 1 || total_out > 131072)
  ------------------
  |  Branch (207:13): [True: 4, False: 7]
  |  Branch (207:26): [True: 2, False: 5]
  ------------------
  208|      6|          break;
  209|      5|        uncompressedLen = 131072;
  210|      5|      }
  211|     46|    } else if (result == BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT) {
  ------------------
  |  Branch (211:16): [True: 9, False: 21]
  ------------------
  212|       |      // compressed input buffer in incomplete
  213|      9|      throw Error(ErrorCode::kerFailedToReadImageData);
  214|     21|    } else {
  215|       |      // something bad happened
  216|     21|      throw Error(ErrorCode::kerErrorMessage, BrotliDecoderErrorString(BrotliDecoderGetErrorCode(decoder.get())));
  217|     21|    }
  218|    265|  }
  219|       |
  220|    195|  if (result != BROTLI_DECODER_RESULT_SUCCESS) {
  ------------------
  |  Branch (220:7): [True: 6, False: 189]
  ------------------
  221|      6|    throw Error(ErrorCode::kerFailedToReadImageData);
  222|      6|  }
  223|    195|}
_ZN5Exiv29BmffImage10boxHandlerERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEmm:
  227|  63.2k|                               uint64_t pbox_end, size_t depth) {
  228|  63.2k|  const size_t address = io_->tell();
  229|       |  // never visit a box twice!
  230|  63.2k|  if (depth == 0)
  ------------------
  |  Branch (230:7): [True: 59.2k, False: 3.99k]
  ------------------
  231|  59.2k|    visits_.clear();
  232|  63.2k|  if (visits_.contains(address) || visits_.size() > visits_max_ || depth >= max_box_depth_) {
  ------------------
  |  Branch (232:7): [True: 0, False: 63.2k]
  |  Branch (232:36): [True: 6, False: 63.2k]
  |  Branch (232:68): [True: 0, False: 63.2k]
  ------------------
  233|      6|    throw Error(ErrorCode::kerCorruptedMetadata);
  234|      6|  }
  235|  63.2k|  visits_.insert(address);
  236|       |
  237|       |#ifdef EXIV2_DEBUG_MESSAGES
  238|       |  bool bTrace = true;
  239|       |#else
  240|  63.2k|  bool bTrace = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (240:17): [True: 19.8k, False: 43.3k]
  |  Branch (240:39): [True: 19.7k, False: 23.5k]
  ------------------
  241|  63.2k|#endif
  242|       |
  243|       |  // 8-byte buffer for parsing the box length and type.
  244|  63.2k|  byte hdrbuf[2 * sizeof(uint32_t)];
  245|       |
  246|  63.2k|  size_t hdrsize = sizeof(hdrbuf);
  247|  63.2k|  Internal::enforce(hdrsize <= static_cast<size_t>(pbox_end - address), Exiv2::ErrorCode::kerCorruptedMetadata);
  248|  63.2k|  if (io_->read(hdrbuf, sizeof(hdrbuf)) != sizeof(hdrbuf))
  ------------------
  |  Branch (248:7): [True: 0, False: 63.2k]
  ------------------
  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|  63.2k|  uint64_t box_length = getULong(&hdrbuf[0], endian_);
  254|  63.2k|  uint32_t box_type = getULong(&hdrbuf[sizeof(uint32_t)], endian_);
  255|  63.2k|  bool bLF = true;
  256|       |
  257|  63.2k|  if (bTrace) {
  ------------------
  |  Branch (257:7): [True: 39.6k, False: 23.5k]
  ------------------
  258|  39.6k|    bLF = true;
  259|  39.6k|    out << Internal::indent(depth) << "Exiv2::BmffImage::boxHandler: " << toAscii(box_type)
  260|  39.6k|        << stringFormat(" {:8}->{} ", address, box_length);
  ------------------
  |  |   18|  39.6k|#define stringFormat std::format
  ------------------
  261|  39.6k|  }
  262|       |
  263|  63.2k|  if (box_length == 1) {
  ------------------
  |  Branch (263:7): [True: 75, False: 63.1k]
  ------------------
  264|       |    // The box size is encoded as a uint64_t, so we need to read another 8 bytes.
  265|     75|    hdrsize += 8;
  266|     75|    Internal::enforce(hdrsize <= static_cast<size_t>(pbox_end - address), Exiv2::ErrorCode::kerCorruptedMetadata);
  267|     75|    DataBuf data(8);
  268|     75|    io_->read(data.data(), data.size());
  269|     75|    box_length = data.read_uint64(0, endian_);
  270|     75|  }
  271|       |
  272|  63.2k|  if (box_length == 0) {
  ------------------
  |  Branch (272:7): [True: 17.4k, False: 45.7k]
  ------------------
  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|  63.2k|  const size_t restore = io_->tell();
  279|  63.2k|  Internal::enforce(box_length >= hdrsize, Exiv2::ErrorCode::kerCorruptedMetadata);
  280|  63.2k|  Internal::enforce(box_length - hdrsize <= pbox_end - restore, Exiv2::ErrorCode::kerCorruptedMetadata);
  281|       |
  282|  63.2k|  const auto buffer_size = box_length - hdrsize;
  283|  63.2k|  if (skipBox(box_type)) {
  ------------------
  |  Branch (283:7): [True: 1.08k, False: 62.1k]
  ------------------
  284|  1.08k|    if (bTrace) {
  ------------------
  |  Branch (284:9): [True: 704, False: 378]
  ------------------
  285|    704|      out << '\n';
  286|    704|    }
  287|       |    // The enforce() above checks that restore + buffer_size won't
  288|       |    // exceed pbox_end, and by implication, won't exceed LONG_MAX
  289|  1.08k|    return restore + buffer_size;
  290|  1.08k|  }
  291|       |
  292|  62.1k|  DataBuf data(static_cast<size_t>(buffer_size));
  293|  62.1k|  const size_t box_end = restore + data.size();
  294|  62.1k|  io_->read(data.data(), data.size());
  295|  62.1k|  io_->seek(restore, BasicIo::beg);
  296|       |
  297|  62.1k|  size_t skip = 0;  // read position in data.pData_
  298|  62.1k|  uint8_t version = 0;
  299|  62.1k|  uint32_t flags = 0;
  300|       |
  301|  62.1k|  if (fullBox(box_type)) {
  ------------------
  |  Branch (301:7): [True: 5.65k, False: 56.4k]
  ------------------
  302|  5.65k|    Internal::enforce(data.size() - skip >= 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  303|  5.65k|    flags = data.read_uint32(skip, endian_);  // version/flags
  304|  5.65k|    version = static_cast<uint8_t>(flags >> 24);
  305|  5.65k|    flags &= 0x00ffffff;
  306|  5.65k|    skip += 4;
  307|  5.65k|  }
  308|       |
  309|  62.1k|  switch (box_type) {
  310|       |    //  See notes in skipBox()
  311|  22.5k|    case TAG::ftyp: {
  ------------------
  |  Branch (311:5): [True: 22.5k, False: 39.6k]
  ------------------
  312|  22.5k|      Internal::enforce(data.size() >= 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  313|  22.5k|      fileType_ = data.read_uint32(0, endian_);
  314|  22.5k|      if (bTrace) {
  ------------------
  |  Branch (314:11): [True: 14.5k, False: 7.99k]
  ------------------
  315|  14.5k|        out << "brand: " << toAscii(fileType_);
  316|  14.5k|      }
  317|  22.5k|    } break;
  318|       |
  319|       |    // 8.11.6.1
  320|    279|    case TAG::iinf: {
  ------------------
  |  Branch (320:5): [True: 279, False: 61.8k]
  ------------------
  321|    279|      if (bTrace) {
  ------------------
  |  Branch (321:11): [True: 118, False: 161]
  ------------------
  322|    118|        out << '\n';
  323|    118|        bLF = false;
  324|    118|      }
  325|       |
  326|    279|      Internal::enforce(data.size() - skip >= 2, Exiv2::ErrorCode::kerCorruptedMetadata);
  327|    279|      uint16_t n = data.read_uint16(skip, endian_);
  328|    279|      skip += 2;
  329|       |
  330|    279|      io_->seek(skip, BasicIo::cur);
  331|    545|      while (n-- > 0) {
  ------------------
  |  Branch (331:14): [True: 266, False: 279]
  ------------------
  332|    266|        io_->seek(boxHandler(out, option, box_end, depth + 1), BasicIo::beg);
  333|    266|      }
  334|    279|    } break;
  335|       |
  336|       |    // 8.11.6.2
  337|  1.27k|    case TAG::infe: {  // .__._.__hvc1_ 2 0 0 1 0 1 0 0 104 118 99 49 0
  ------------------
  |  Branch (337:5): [True: 1.27k, False: 60.8k]
  ------------------
  338|  1.27k|      Internal::enforce(data.size() - skip >= 8, Exiv2::ErrorCode::kerCorruptedMetadata);
  339|  1.27k|      /* getULong (data.pData_+skip,endian_) ; */ skip += 4;
  340|  1.27k|      uint16_t ID = data.read_uint16(skip, endian_);
  341|  1.27k|      skip += 2;
  342|  1.27k|      /* getShort(data.pData_+skip,endian_) ; */ skip += 2;  // protection
  343|  1.27k|      std::string id;
  344|       |      // Check that the string has a '\0' terminator.
  345|  1.27k|      const char* str = data.c_str(skip);
  346|  1.27k|      const size_t maxlen = data.size() - skip;
  347|  1.27k|      Internal::enforce(maxlen > 0 && strnlen(str, maxlen) < maxlen, Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (347:25): [True: 1.26k, False: 1]
  |  Branch (347:39): [True: 1.26k, False: 1]
  ------------------
  348|  1.27k|      std::string name(str);
  349|  1.27k|      if (Internal::contains(name, "Exif")) {  // "Exif" or "ExifExif"
  ------------------
  |  Branch (349:11): [True: 79, False: 1.19k]
  ------------------
  350|     79|        exifID_ = ID;
  351|     79|        id = " *** Exif ***";
  352|  1.19k|      } else if (Internal::contains(name, "mime\0xmp") || Internal::contains(name, "mime\0application/rdf+xml")) {
  ------------------
  |  Branch (352:18): [True: 84, False: 1.10k]
  |  Branch (352:59): [True: 0, False: 1.10k]
  ------------------
  353|     82|        xmpID_ = ID;
  354|     82|        id = " *** XMP ***";
  355|     82|      }
  356|  1.27k|      if (bTrace) {
  ------------------
  |  Branch (356:11): [True: 793, False: 477]
  ------------------
  357|    793|        out << stringFormat("ID = {:3} {} {}", ID, name, id);
  ------------------
  |  |   18|    793|#define stringFormat std::format
  ------------------
  358|    793|      }
  359|  1.27k|    } break;
  360|       |
  361|     87|    case TAG::moov:
  ------------------
  |  Branch (361:5): [True: 87, False: 62.0k]
  ------------------
  362|    131|    case TAG::iprp:
  ------------------
  |  Branch (362:5): [True: 44, False: 62.0k]
  ------------------
  363|    207|    case TAG::ipco:
  ------------------
  |  Branch (363:5): [True: 76, False: 62.0k]
  ------------------
  364|  3.59k|    case TAG::meta: {
  ------------------
  |  Branch (364:5): [True: 3.38k, False: 58.7k]
  ------------------
  365|  3.59k|      if (bTrace) {
  ------------------
  |  Branch (365:11): [True: 1.57k, False: 2.02k]
  ------------------
  366|  1.57k|        out << '\n';
  367|  1.57k|        bLF = false;
  368|  1.57k|      }
  369|  3.59k|      io_->seek(skip, BasicIo::cur);
  370|  7.07k|      while (io_->tell() < box_end) {
  ------------------
  |  Branch (370:14): [True: 3.47k, False: 3.59k]
  ------------------
  371|  3.47k|        io_->seek(boxHandler(out, option, box_end, depth + 1), BasicIo::beg);
  372|  3.47k|      }
  373|       |      // post-process meta box to recover Exif and XMP
  374|  3.59k|      if (box_type == TAG::meta) {
  ------------------
  |  Branch (374:11): [True: 2.19k, False: 1.39k]
  ------------------
  375|  2.19k|        auto ilo = ilocs_.find(exifID_);
  376|  2.19k|        if (ilo != ilocs_.end()) {
  ------------------
  |  Branch (376:13): [True: 39, False: 2.16k]
  ------------------
  377|     39|          const Iloc& iloc = ilo->second;
  378|     39|          if (bTrace) {
  ------------------
  |  Branch (378:15): [True: 27, False: 12]
  ------------------
  379|     27|            out << Internal::indent(depth) << "Exiv2::BMFF Exif: " << iloc.toString() << '\n';
  380|     27|          }
  381|     39|          parseTiff(Internal::Tag::root, iloc.length_, iloc.start_);
  382|     39|        }
  383|  2.19k|        ilo = ilocs_.find(xmpID_);
  384|  2.19k|        if (ilo != ilocs_.end()) {
  ------------------
  |  Branch (384:13): [True: 12, False: 2.18k]
  ------------------
  385|     12|          const Iloc& iloc = ilo->second;
  386|     12|          if (bTrace) {
  ------------------
  |  Branch (386:15): [True: 9, False: 3]
  ------------------
  387|      9|            out << Internal::indent(depth) << "Exiv2::BMFF XMP: " << iloc.toString() << '\n';
  388|      9|          }
  389|     12|          parseXmp(iloc.length_, iloc.start_);
  390|     12|        }
  391|  2.19k|        ilocs_.clear();
  392|  2.19k|      }
  393|  3.59k|    } break;
  394|       |
  395|       |    // 8.11.3.1
  396|    679|    case TAG::iloc: {
  ------------------
  |  Branch (396:5): [True: 679, False: 61.4k]
  ------------------
  397|    679|      Internal::enforce(data.size() - skip >= 2, Exiv2::ErrorCode::kerCorruptedMetadata);
  398|    679|      uint8_t u = data.read_uint8(skip++);
  399|    679|      uint16_t offsetSize = u >> 4;
  400|    679|      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|    679|      skip++;
  409|    679|#endif
  410|    679|      Internal::enforce(data.size() - skip >= (version < 2u ? 2u : 4u), Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (410:48): [True: 581, False: 98]
  ------------------
  411|    679|      uint32_t itemCount = version < 2 ? data.read_uint16(skip, endian_) : data.read_uint32(skip, endian_);
  ------------------
  |  Branch (411:28): [True: 580, False: 99]
  ------------------
  412|    679|      skip += version < 2 ? 2 : 4;
  ------------------
  |  Branch (412:15): [True: 580, False: 99]
  ------------------
  413|    679|      if (itemCount && itemCount < box_length / 14 && offsetSize == 4 && lengthSize == 4 &&
  ------------------
  |  Branch (413:11): [True: 581, False: 98]
  |  Branch (413:24): [True: 487, False: 94]
  |  Branch (413:55): [True: 469, False: 18]
  |  Branch (413:74): [True: 446, False: 23]
  ------------------
  414|    446|          ((box_length - 16) % itemCount) == 0) {
  ------------------
  |  Branch (414:11): [True: 440, False: 6]
  ------------------
  415|    440|        if (bTrace) {
  ------------------
  |  Branch (415:13): [True: 238, False: 202]
  ------------------
  416|    238|          out << '\n';
  417|    238|          bLF = false;
  418|    238|        }
  419|    440|        auto step = (static_cast<size_t>(box_length) - 16) / itemCount;  // length of data per item.
  420|    440|        size_t base = skip;
  421|  8.58k|        for (uint32_t i = 0; i < itemCount; i++) {
  ------------------
  |  Branch (421:30): [True: 8.14k, False: 440]
  ------------------
  422|  8.14k|          skip = base + (i * step);  // move in 14, 16 or 18 byte steps
  423|  8.14k|          Internal::enforce(data.size() - skip >= (version > 2u ? 4u : 2u), Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (423:52): [True: 25, False: 8.11k]
  ------------------
  424|  8.14k|          Internal::enforce(data.size() - skip >= step, Exiv2::ErrorCode::kerCorruptedMetadata);
  425|  8.14k|          uint32_t ID = version > 2 ? data.read_uint32(skip, endian_) : data.read_uint16(skip, endian_);
  ------------------
  |  Branch (425:25): [True: 19, False: 8.12k]
  ------------------
  426|  8.14k|          auto offset = [&data, skip, step] {
  427|  8.14k|            if (step == 14 || step == 16)
  428|  8.14k|              return data.read_uint32(skip + step - 8, endian_);
  429|  8.14k|            if (step == 18)
  430|  8.14k|              return data.read_uint32(skip + 4, endian_);
  431|  8.14k|            return 0u;
  432|  8.14k|          }();
  433|       |
  434|  8.14k|          uint32_t ldata = data.read_uint32(skip + step - 4, endian_);
  435|  8.14k|          if (bTrace) {
  ------------------
  |  Branch (435:15): [True: 4.29k, False: 3.85k]
  ------------------
  436|  4.29k|            out << Internal::indent(depth)
  437|  4.29k|                << stringFormat("{:8} | {:8} |   ID | {:4} | {:6},{:6}\n", address + skip, step, ID, offset, ldata);
  ------------------
  |  |   18|  4.29k|#define stringFormat std::format
  ------------------
  438|  4.29k|          }
  439|       |          // save data for post-processing in meta box
  440|  8.14k|          if (offset && ldata && ID != unknownID_) {
  ------------------
  |  Branch (440:15): [True: 7.15k, False: 988]
  |  Branch (440:25): [True: 6.84k, False: 305]
  |  Branch (440:34): [True: 6.49k, False: 352]
  ------------------
  441|  6.49k|            ilocs_[ID] = Iloc{ID, offset, ldata};
  442|  6.49k|          }
  443|  8.14k|        }
  444|    440|      }
  445|    679|    } break;
  446|       |
  447|    420|    case TAG::ispe: {
  ------------------
  |  Branch (447:5): [True: 420, False: 61.7k]
  ------------------
  448|    420|      Internal::enforce(data.size() - skip >= 12, Exiv2::ErrorCode::kerCorruptedMetadata);
  449|    420|      skip += 4;
  450|    420|      uint32_t width = data.read_uint32(skip, endian_);
  451|    420|      skip += 4;
  452|    420|      uint32_t height = data.read_uint32(skip, endian_);
  453|    420|      skip += 4;
  454|    420|      if (bTrace) {
  ------------------
  |  Branch (454:11): [True: 206, False: 214]
  ------------------
  455|    206|        out << stringFormat("pixelWidth_, pixelHeight_ = {}, {}", width, height);
  ------------------
  |  |   18|    206|#define stringFormat std::format
  ------------------
  456|    206|      }
  457|       |      // HEIC files can have multiple ispe records
  458|       |      // Store largest width/height
  459|    420|      if (width > pixelWidth_ && height > pixelHeight_) {
  ------------------
  |  Branch (459:11): [True: 95, False: 325]
  |  Branch (459:34): [True: 25, False: 70]
  ------------------
  460|     25|        pixelWidth_ = width;
  461|     25|        pixelHeight_ = height;
  462|     25|      }
  463|    420|    } break;
  464|       |
  465|       |    // 12.1.5.2
  466|    249|    case TAG::colr: {
  ------------------
  |  Branch (466:5): [True: 249, False: 61.8k]
  ------------------
  467|    249|      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: 156, False: 93]
  ------------------
  468|       |        // https://www.ics.uci.edu/~dan/class/267/papers/jpeg2000.pdf
  469|    156|        uint8_t meth = data.read_uint8(skip + 0);
  470|    156|        uint8_t prec = data.read_uint8(skip + 1);
  471|    156|        uint8_t approx = data.read_uint8(skip + 2);
  472|    156|        auto colour_type = std::string(data.c_str(), 4);
  473|    156|        skip += 4;
  474|    156|        if (colour_type == "rICC" || colour_type == "prof") {
  ------------------
  |  Branch (474:13): [True: 1, False: 155]
  |  Branch (474:38): [True: 6, False: 149]
  ------------------
  475|      7|          DataBuf profile(data.c_data(skip), data.size() - skip);
  476|      7|          setIccProfile(std::move(profile));
  477|    149|        } else if (meth == 2 && prec == 0 && approx == 0) {
  ------------------
  |  Branch (477:20): [True: 121, False: 28]
  |  Branch (477:33): [True: 109, False: 12]
  |  Branch (477:46): [True: 91, False: 18]
  ------------------
  478|       |          // JP2000 files have a 3 byte head // 2 0 0 icc......
  479|     91|          skip -= 1;
  480|     91|          DataBuf profile(data.c_data(skip), data.size() - skip);
  481|     91|          setIccProfile(std::move(profile));
  482|     91|        }
  483|    156|      }
  484|    249|    } break;
  485|       |
  486|    395|    case TAG::uuid: {
  ------------------
  |  Branch (486:5): [True: 395, False: 61.7k]
  ------------------
  487|    395|      DataBuf uuid(16);
  488|    395|      io_->read(uuid.data(), uuid.size());
  489|    395|      std::string name = uuidName(uuid);
  490|    395|      if (bTrace) {
  ------------------
  |  Branch (490:11): [True: 244, False: 151]
  ------------------
  491|    244|        out << " uuidName " << name << '\n';
  492|    244|        bLF = false;
  493|    244|      }
  494|    395|      if (name == "cano" || name == "canp") {
  ------------------
  |  Branch (494:11): [True: 118, False: 277]
  |  Branch (494:29): [True: 16, False: 261]
  ------------------
  495|    134|        if (name == "canp") {
  ------------------
  |  Branch (495:13): [True: 16, False: 118]
  ------------------
  496|       |          // based on
  497|       |          // https://github.com/lclevy/canon_cr3/blob/7be75d6/parse_cr3.py#L271
  498|     16|          io_->seek(8, BasicIo::cur);
  499|     16|        }
  500|    387|        while (io_->tell() < box_end) {
  ------------------
  |  Branch (500:16): [True: 253, False: 134]
  ------------------
  501|    253|          io_->seek(boxHandler(out, option, box_end, depth + 1), BasicIo::beg);
  502|    253|        }
  503|    261|      } else if (name == "xmp") {
  ------------------
  |  Branch (503:18): [True: 41, False: 220]
  ------------------
  504|     41|        parseXmp(box_length, io_->tell());
  505|     41|      }
  506|    395|    } break;
  507|       |
  508|  1.59k|    case TAG::cmt1:
  ------------------
  |  Branch (508:5): [True: 1.59k, False: 60.5k]
  ------------------
  509|  1.59k|      parseTiff(Internal::Tag::root, box_length);
  510|  1.59k|      break;
  511|    219|    case TAG::cmt2:
  ------------------
  |  Branch (511:5): [True: 219, False: 61.9k]
  ------------------
  512|    219|      parseTiff(Internal::Tag::cmt2, box_length);
  513|    219|      break;
  514|  11.3k|    case TAG::cmt3:
  ------------------
  |  Branch (514:5): [True: 11.3k, False: 50.7k]
  ------------------
  515|  11.3k|      parseTiff(Internal::Tag::cmt3, box_length);
  516|  11.3k|      break;
  517|  1.12k|    case TAG::cmt4:
  ------------------
  |  Branch (517:5): [True: 1.12k, False: 61.0k]
  ------------------
  518|  1.12k|      parseTiff(Internal::Tag::cmt4, box_length);
  519|  1.12k|      break;
  520|  8.25k|    case TAG::exif:
  ------------------
  |  Branch (520:5): [True: 8.25k, False: 53.8k]
  ------------------
  521|  8.25k|      parseTiff(Internal::Tag::root, buffer_size, io_->tell());
  522|  8.25k|      break;
  523|    992|    case TAG::xml:
  ------------------
  |  Branch (523:5): [True: 992, False: 61.1k]
  ------------------
  524|    992|      parseXmp(buffer_size, io_->tell());
  525|    992|      break;
  526|    225|    case TAG::brob: {
  ------------------
  |  Branch (526:5): [True: 225, False: 61.9k]
  ------------------
  527|    225|      Internal::enforce(data.size() >= 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  528|    225|      uint32_t realType = data.read_uint32(0, endian_);
  529|    225|      if (bTrace) {
  ------------------
  |  Branch (529:11): [True: 106, False: 119]
  ------------------
  530|    106|        out << "type: " << toAscii(realType);
  531|    106|      }
  532|    225|#ifdef EXV_HAVE_BROTLI
  533|    225|      DataBuf arr;
  534|    225|      brotliUncompress(data.c_data(4), data.size() - 4, arr);
  535|    225|      if (realType == TAG::exif) {
  ------------------
  |  Branch (535:11): [True: 1, False: 224]
  ------------------
  536|      1|        uint32_t offset = Safe::add(arr.read_uint32(0, endian_), 4u);
  537|      1|        Internal::enforce(Safe::add(offset, 4u) < arr.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  538|      1|        Internal::TiffParserWorker::decode(exifData(), iptcData(), xmpData(), arr.c_data(offset), arr.size() - offset,
  539|      1|                                           Internal::Tag::root, Internal::TiffMapping::findDecoder);
  540|    224|      } else if (realType == TAG::xml) {
  ------------------
  |  Branch (540:18): [True: 0, False: 224]
  ------------------
  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|    225|#endif
  548|    225|    } break;
  549|  1.21k|    case TAG::thmb:
  ------------------
  |  Branch (549:5): [True: 1.21k, False: 60.9k]
  ------------------
  550|  1.21k|      switch (version) {
  551|    456|        case 0:  // JPEG
  ------------------
  |  Branch (551:9): [True: 456, False: 754]
  ------------------
  552|    456|          parseCr3Preview(data, out, bTrace, version, skip, skip + 2, skip + 4, skip + 12);
  553|    456|          break;
  554|    375|        case 1:  // HDR
  ------------------
  |  Branch (554:9): [True: 375, False: 835]
  ------------------
  555|    375|          parseCr3Preview(data, out, bTrace, version, skip + 2, skip + 4, skip + 8, skip + 12);
  556|    375|          break;
  557|    379|        default:
  ------------------
  |  Branch (557:9): [True: 379, False: 831]
  ------------------
  558|    379|          break;
  559|  1.21k|      }
  560|  1.20k|      break;
  561|  1.20k|    case TAG::prvw:
  ------------------
  |  Branch (561:5): [True: 101, False: 62.0k]
  ------------------
  562|    101|      switch (version) {
  563|     79|        case 0:  // JPEG
  ------------------
  |  Branch (563:9): [True: 79, False: 22]
  ------------------
  564|     83|        case 1:  // HDR
  ------------------
  |  Branch (564:9): [True: 4, False: 97]
  ------------------
  565|     83|          parseCr3Preview(data, out, bTrace, version, skip + 2, skip + 4, skip + 8, skip + 12);
  566|     83|          break;
  567|     18|        default:
  ------------------
  |  Branch (567:9): [True: 18, False: 83]
  ------------------
  568|     18|          break;
  569|    101|      }
  570|     99|      break;
  571|       |
  572|  7.17k|    default:
  ------------------
  |  Branch (572:5): [True: 7.17k, False: 54.9k]
  ------------------
  573|  7.17k|      break; /* do nothing */
  574|  62.1k|  }
  575|  60.2k|  if (bLF && bTrace)
  ------------------
  |  Branch (575:7): [True: 58.1k, False: 2.15k]
  |  Branch (575:14): [True: 36.7k, False: 21.3k]
  ------------------
  576|  36.7k|    out << '\n';
  577|       |
  578|       |  // return address of next box
  579|  60.2k|  return box_end;
  580|  62.1k|}
_ZN5Exiv29BmffImage9parseTiffEjmm:
  582|  8.29k|void BmffImage::parseTiff(uint32_t root_tag, uint64_t length, uint64_t start) {
  583|  8.29k|  Internal::enforce(start <= io_->size(), ErrorCode::kerCorruptedMetadata);
  584|  8.29k|  Internal::enforce(length <= io_->size() - start, ErrorCode::kerCorruptedMetadata);
  585|  8.29k|  Internal::enforce(start <= static_cast<uint64_t>(std::numeric_limits<int64_t>::max()),
  586|  8.29k|                    ErrorCode::kerCorruptedMetadata);
  587|  8.29k|  Internal::enforce(length <= std::numeric_limits<size_t>::max(), ErrorCode::kerCorruptedMetadata);
  588|       |
  589|       |  // read and parse exif data
  590|  8.29k|  const size_t restore = io_->tell();
  591|  8.29k|  DataBuf exif(static_cast<size_t>(length));
  592|  8.29k|  io_->seek(static_cast<int64_t>(start), BasicIo::beg);
  593|  8.29k|  if (exif.size() > 8 && io_->read(exif.data(), exif.size()) == exif.size()) {
  ------------------
  |  Branch (593:7): [True: 8.25k, False: 35]
  |  Branch (593:26): [True: 8.25k, False: 0]
  ------------------
  594|       |    // hunt for "II" or "MM"
  595|  8.25k|    const size_t eof = std::numeric_limits<size_t>::max();  // impossible value for punt
  596|  8.25k|    size_t punt = eof;
  597|   335k|    for (size_t i = 0; i < exif.size() - 9 && punt == eof; ++i) {
  ------------------
  |  Branch (597:24): [True: 334k, False: 89]
  |  Branch (597:47): [True: 326k, False: 8.16k]
  ------------------
  598|   326k|      auto charCurrent = exif.read_uint8(i);
  599|   326k|      auto charNext = exif.read_uint8(i + 1);
  600|   326k|      if (charCurrent == charNext && (charCurrent == 'I' || charCurrent == 'M'))
  ------------------
  |  Branch (600:11): [True: 103k, False: 223k]
  |  Branch (600:39): [True: 1.92k, False: 101k]
  |  Branch (600:61): [True: 6.24k, False: 95.3k]
  ------------------
  601|  8.17k|        punt = i;
  602|   326k|    }
  603|  8.25k|    if (punt != eof) {
  ------------------
  |  Branch (603:9): [True: 8.17k, False: 86]
  ------------------
  604|  8.17k|      Internal::TiffParserWorker::decode(exifData(), iptcData(), xmpData(), exif.c_data(punt), exif.size() - punt,
  605|  8.17k|                                         root_tag, Internal::TiffMapping::findDecoder);
  606|  8.17k|    }
  607|  8.25k|  }
  608|  8.29k|  io_->seek(restore, BasicIo::beg);
  609|  8.29k|}
_ZN5Exiv29BmffImage9parseTiffEjm:
  611|  14.3k|void BmffImage::parseTiff(uint32_t root_tag, uint64_t length) {
  612|  14.3k|  if (length > 8) {
  ------------------
  |  Branch (612:7): [True: 14.3k, False: 23]
  ------------------
  613|  14.3k|    Internal::enforce(length - 8 <= io_->size() - io_->tell(), ErrorCode::kerCorruptedMetadata);
  614|  14.3k|    Internal::enforce(length - 8 <= std::numeric_limits<size_t>::max(), ErrorCode::kerCorruptedMetadata);
  615|  14.3k|    DataBuf data(static_cast<size_t>(length - 8u));
  616|  14.3k|    const size_t bufRead = io_->read(data.data(), data.size());
  617|       |
  618|  14.3k|    if (io_->error())
  ------------------
  |  Branch (618:9): [True: 0, False: 14.3k]
  ------------------
  619|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  620|  14.3k|    if (bufRead != data.size())
  ------------------
  |  Branch (620:9): [True: 0, False: 14.3k]
  ------------------
  621|      0|      throw Error(ErrorCode::kerInputDataReadFailed);
  622|       |
  623|  14.3k|    Internal::TiffParserWorker::decode(exifData(), iptcData(), xmpData(), data.c_data(), data.size(), root_tag,
  624|  14.3k|                                       Internal::TiffMapping::findDecoder);
  625|  14.3k|  }
  626|  14.3k|}
_ZN5Exiv29BmffImage8parseXmpEmm:
  628|  1.04k|void BmffImage::parseXmp(uint64_t length, uint64_t start) {
  629|  1.04k|  Internal::enforce(start <= io_->size(), ErrorCode::kerCorruptedMetadata);
  630|  1.04k|  Internal::enforce(length <= io_->size() - start, ErrorCode::kerCorruptedMetadata);
  631|       |
  632|  1.04k|  const size_t restore = io_->tell();
  633|  1.04k|  io_->seek(static_cast<int64_t>(start), BasicIo::beg);
  634|       |
  635|  1.04k|  auto lengthSizeT = static_cast<size_t>(length);
  636|  1.04k|  DataBuf xmp(lengthSizeT + 1);
  637|  1.04k|  xmp.write_uint8(lengthSizeT, 0);  // ensure xmp is null terminated!
  638|  1.04k|  if (io_->read(xmp.data(), lengthSizeT) != lengthSizeT)
  ------------------
  |  Branch (638:7): [True: 0, False: 1.04k]
  ------------------
  639|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  640|  1.04k|  if (io_->error())
  ------------------
  |  Branch (640:7): [True: 0, False: 1.04k]
  ------------------
  641|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  642|  1.04k|  try {
  643|  1.04k|    Exiv2::XmpParser::decode(xmpData(), std::string(xmp.c_str()));
  644|  1.04k|  } catch (...) {
  645|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  646|      0|  }
  647|       |
  648|  1.04k|  io_->seek(restore, BasicIo::beg);
  649|  1.04k|}
_ZN5Exiv29BmffImage15parseCr3PreviewERKNS_7DataBufERNSt3__113basic_ostreamIcNS4_11char_traitsIcEEEEbhmmmm:
  654|    914|                                size_t relative_position) {
  655|       |  // Derived from https://github.com/lclevy/canon_cr3
  656|    914|  const size_t here = io_->tell();
  657|    914|  Internal::enforce(here <= std::numeric_limits<size_t>::max() - relative_position, ErrorCode::kerCorruptedMetadata);
  658|    914|  NativePreview nativePreview;
  659|    914|  nativePreview.position_ = here + relative_position;
  660|    914|  nativePreview.width_ = data.read_uint16(width_offset, endian_);
  661|    914|  nativePreview.height_ = data.read_uint16(height_offset, endian_);
  662|    914|  nativePreview.size_ = data.read_uint32(size_offset, endian_);
  663|    914|  nativePreview.filter_ = "";
  664|    914|  nativePreview.mimeType_ = [version] {
  665|    914|    if (version == 0)
  666|    914|      return "image/jpeg";
  667|    914|    return "application/octet-stream";
  668|    914|  }();
  669|    914|  if (bTrace) {
  ------------------
  |  Branch (669:7): [True: 566, False: 348]
  ------------------
  670|    566|    out << stringFormat("width,height,size = {},{},{}", nativePreview.width_, nativePreview.height_,
  ------------------
  |  |   18|    566|#define stringFormat std::format
  ------------------
  671|    566|                        nativePreview.size_);
  672|    566|  }
  673|    914|  nativePreviews_.push_back(std::move(nativePreview));
  674|    914|}
_ZNK5Exiv29BmffImage11openOrThrowEv:
  693|  14.4k|void BmffImage::openOrThrow() const {
  694|  14.4k|  if (io_->open() != 0) {
  ------------------
  |  Branch (694:7): [True: 0, False: 14.4k]
  ------------------
  695|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  696|      0|  }
  697|       |  // Ensure that this is the correct image type
  698|  14.4k|  if (!isBmffType(*io_, false)) {
  ------------------
  |  Branch (698:7): [True: 0, False: 14.4k]
  ------------------
  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.4k|}
_ZN5Exiv29BmffImage12readMetadataEv:
  705|  5.21k|void BmffImage::readMetadata() {
  706|  5.21k|  openOrThrow();
  707|  5.21k|  IoCloser closer(*io_);
  708|       |
  709|  5.21k|  clearMetadata();
  710|  5.21k|  ilocs_.clear();
  711|  5.21k|  visits_max_ = io_->size() / 16;
  712|  5.21k|  unknownID_ = 0xffff;
  713|  5.21k|  exifID_ = unknownID_;
  714|  5.21k|  xmpID_ = unknownID_;
  715|       |
  716|  5.21k|  uint64_t address = 0;
  717|  5.21k|  const auto file_end = io_->size();
  718|  26.5k|  while (address < file_end) {
  ------------------
  |  Branch (718:10): [True: 21.3k, False: 5.21k]
  ------------------
  719|  21.3k|    io_->seek(address, BasicIo::beg);
  720|  21.3k|    address = boxHandler(std::cout, kpsNone, file_end, 0);
  721|  21.3k|  }
  722|  5.21k|  bReadMetadata_ = true;
  723|  5.21k|}  // 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.5k]
  ------------------
  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|  47.1k|      while (address < file_end) {
  ------------------
  |  Branch (753:14): [True: 37.8k, False: 9.25k]
  ------------------
  754|  37.8k|        io_->seek(address, BasicIo::beg);
  755|  37.8k|        address = boxHandler(out, option, file_end, depth);
  756|  37.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.21k|Image::UniquePtr newBmffInstance(BasicIo::UniquePtr io, bool create) {
  769|  5.21k|  auto image = std::make_unique<BmffImage>(std::move(io), create);
  770|  5.21k|  if (!image->good()) {
  ------------------
  |  Branch (770:7): [True: 0, False: 5.21k]
  ------------------
  771|      0|    return nullptr;
  772|      0|  }
  773|  5.21k|  return image;
  774|  5.21k|}
_ZN5Exiv210isBmffTypeERNS_7BasicIoEb:
  776|  25.2k|bool isBmffType(BasicIo& iIo, bool advance) {
  777|  25.2k|  const int32_t len = 12;
  778|  25.2k|  byte buf[len];
  779|  25.2k|  iIo.read(buf, len);
  780|  25.2k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (780:7): [True: 0, False: 25.2k]
  |  Branch (780:22): [True: 125, False: 25.1k]
  ------------------
  781|    125|    return false;
  782|    125|  }
  783|       |
  784|       |  // bmff should start with "ftyp"
  785|  25.1k|  bool const is_ftyp = (buf[4] == 'f' && buf[5] == 't' && buf[6] == 'y' && buf[7] == 'p');
  ------------------
  |  Branch (785:25): [True: 24.9k, False: 213]
  |  Branch (785:42): [True: 24.9k, False: 12]
  |  Branch (785:59): [True: 24.9k, False: 11]
  |  Branch (785:76): [True: 24.8k, False: 6]
  ------------------
  786|       |  // jxl files have a special start indicator of "JXL "
  787|  25.1k|  bool const is_jxl = (buf[4] == 'J' && buf[5] == 'X' && buf[6] == 'L' && buf[7] == ' ');
  ------------------
  |  Branch (787:24): [True: 25, False: 25.1k]
  |  Branch (787:41): [True: 15, False: 10]
  |  Branch (787:58): [True: 9, False: 6]
  |  Branch (787:75): [True: 8, False: 1]
  ------------------
  788|       |
  789|  25.1k|  bool matched = is_jxl || is_ftyp;
  ------------------
  |  Branch (789:18): [True: 8, False: 25.1k]
  |  Branch (789:28): [True: 24.8k, False: 234]
  ------------------
  790|  25.1k|  if (!advance || !matched) {
  ------------------
  |  Branch (790:7): [True: 25.1k, False: 0]
  |  Branch (790:19): [True: 0, False: 0]
  ------------------
  791|  25.1k|    iIo.seek(0, BasicIo::beg);
  792|  25.1k|  }
  793|  25.1k|  return matched;
  794|  25.2k|}
bmffimage.cpp:_ZN5Exiv2L7skipBoxEj:
  113|  62.7k|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|  62.7k|  return box == 0 || box == TAG::mdat;  // mdat is where the main image lives and can be huge
  ------------------
  |  Branch (117:10): [True: 395, False: 62.3k]
  |  Branch (117:22): [True: 687, False: 61.6k]
  ------------------
  118|  62.7k|}
bmffimage.cpp:_ZZN5Exiv29BmffImage10boxHandlerERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEmmENK3$_0clEv:
  426|  8.13k|          auto offset = [&data, skip, step] {
  427|  8.13k|            if (step == 14 || step == 16)
  ------------------
  |  Branch (427:17): [True: 4.98k, False: 3.15k]
  |  Branch (427:31): [True: 1.77k, False: 1.37k]
  ------------------
  428|  6.75k|              return data.read_uint32(skip + step - 8, endian_);
  429|  1.37k|            if (step == 18)
  ------------------
  |  Branch (429:17): [True: 981, False: 398]
  ------------------
  430|    981|              return data.read_uint32(skip + 4, endian_);
  431|    398|            return 0u;
  432|  1.37k|          }();
bmffimage.cpp:_ZZN5Exiv29BmffImage15parseCr3PreviewERKNS_7DataBufERNSt3__113basic_ostreamIcNS4_11char_traitsIcEEEEbhmmmmENK3$_0clEv:
  664|    911|  nativePreview.mimeType_ = [version] {
  665|    911|    if (version == 0)
  ------------------
  |  Branch (665:9): [True: 533, False: 378]
  ------------------
  666|    533|      return "image/jpeg";
  667|    378|    return "application/octet-stream";
  668|    911|  }();

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

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

_ZN5Exiv28Internal14CanonMakerNote7tagListEv:
   38|   280k|  static constexpr auto tagList() {
   39|   280k|    return tagInfo_;
   40|   280k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListCsEv:
   42|  5.64M|  static constexpr auto tagListCs() {
   43|  5.64M|    return tagInfoCs_;
   44|  5.64M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListSiEv:
   46|  2.38M|  static constexpr auto tagListSi() {
   47|  2.38M|    return tagInfoSi_;
   48|  2.38M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListCfEv:
   54|    667|  static constexpr auto tagListCf() {
   55|    667|    return tagInfoCf_;
   56|    667|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPiEv:
   58|  2.06M|  static constexpr auto tagListPi() {
   59|  2.06M|    return tagInfoPi_;
   60|  2.06M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListTiEv:
   62|   133k|  static constexpr auto tagListTi() {
   63|   133k|    return tagInfoTi_;
   64|   133k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListFiEv:
   66|  1.08M|  static constexpr auto tagListFi() {
   67|  1.08M|    return tagInfoFi_;
   68|  1.08M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPaEv:
   50|  1.22k|  static constexpr auto tagListPa() {
   51|  1.22k|    return tagInfoPa_;
   52|  1.22k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPrEv:
   70|  3.06k|  static constexpr auto tagListPr() {
   71|  3.06k|    return tagInfoPr_;
   72|  3.06k|  }
_ZN5Exiv28Internal14CanonMakerNote14tagListVigCor2Ev:
  134|    229|  static constexpr auto tagListVigCor2() {
  135|    229|    return tagInfoVigCor2_;
  136|    229|  }
_ZN5Exiv28Internal14CanonMakerNote11tagListLiOpEv:
  138|  3.83k|  static constexpr auto tagListLiOp() {
  139|  3.83k|    return tagInfoLiOp_;
  140|  3.83k|  }
_ZN5Exiv28Internal14CanonMakerNote14tagListAfMiAdjEv:
  126|    145|  static constexpr auto tagListAfMiAdj() {
  127|    145|    return tagInfoAfMiAdj_;
  128|    145|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListLeEv:
  142|    953|  static constexpr auto tagListLe() {
  143|    953|    return tagInfoLe_;
  144|    953|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListAmEv:
  146|  1.27k|  static constexpr auto tagListAm() {
  147|  1.27k|    return tagInfoAm_;
  148|  1.27k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListFilEv:
  154|  7.55k|  static constexpr auto tagListFil() {
  155|  7.55k|    return tagInfoFil_;
  156|  7.55k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListMeEv:
  150|  1.33k|  static constexpr auto tagListMe() {
  151|  1.33k|    return tagInfoMe_;
  152|  1.33k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListHdrEv:
  158|  1.02k|  static constexpr auto tagListHdr() {
  159|  1.02k|    return tagInfoHdr_;
  160|  1.02k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListAfCEv:
  162|  20.5k|  static constexpr auto tagListAfC() {
  163|  20.5k|    return tagInfoAfC_;
  164|  20.5k|  }
_ZN5Exiv28Internal14CanonMakerNote11tagListRawBEv:
  166|    314|  static constexpr auto tagListRawB() {
  167|    314|    return tagInfoRawB_;
  168|    314|  }

_ZN5Exiv28Internal14CasioMakerNote11print0x0006ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  147|    498|std::ostream& CasioMakerNote::print0x0006(std::ostream& os, const Value& value, const ExifData*) {
  148|    498|  return os << stringFormat("{:.2f} m", value.toInt64() / 1000.0);
  ------------------
  |  |   18|    498|#define stringFormat std::format
  ------------------
  149|    498|}
_ZN5Exiv28Internal14CasioMakerNote11print0x0015ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  151|    334|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|    334|  std::vector<char> numbers;
  154|  11.7k|  for (size_t i = 0; i < value.size(); i++) {
  ------------------
  |  Branch (154:22): [True: 11.4k, False: 334]
  ------------------
  155|  11.4k|    const auto l = value.toInt64(i);
  156|  11.4k|    if (l != 0) {
  ------------------
  |  Branch (156:9): [True: 4.70k, False: 6.70k]
  ------------------
  157|  4.70k|      numbers.push_back(l);
  158|  4.70k|    }
  159|  11.4k|  }
  160|       |
  161|    334|  if (numbers.size() >= 10) {
  ------------------
  |  Branch (161:7): [True: 182, False: 152]
  ------------------
  162|       |    // year
  163|    182|    long l = ((numbers[0] - 48) * 10) + (numbers[1] - 48);
  164|    182|    if (l < 70)
  ------------------
  |  Branch (164:9): [True: 66, False: 116]
  ------------------
  165|     66|      l += 2000;
  166|    116|    else
  167|    116|      l += 1900;
  168|    182|    os << l << ":";
  169|       |    // month, day, hour, minutes
  170|    182|    os << numbers[2] << numbers[3] << ":" << numbers[4] << numbers[5] << " " << numbers[6] << numbers[7] << ":"
  171|    182|       << numbers[8] << numbers[9];
  172|       |    // optional seconds
  173|    182|    if (numbers.size() == 12) {
  ------------------
  |  Branch (173:9): [True: 80, False: 102]
  ------------------
  174|     80|      os << ":" << numbers[10] << numbers[11];
  175|     80|    }
  176|    182|  } else
  177|    152|    os << value;
  178|    334|  return os;
  179|    334|}
_ZN5Exiv28Internal15Casio2MakerNote11print0x2001ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  448|     60|std::ostream& Casio2MakerNote::print0x2001(std::ostream& os, const Value& value, const ExifData*) {
  449|       |  // format is:  "YYMM#00#00DDHH#00#00MM#00#00#00#00"
  450|     60|  std::vector<char> numbers;
  451|  1.99k|  for (size_t i = 0; i < value.size(); i++) {
  ------------------
  |  Branch (451:22): [True: 1.93k, False: 60]
  ------------------
  452|  1.93k|    const auto l = value.toInt64(i);
  453|  1.93k|    if (l != 0) {
  ------------------
  |  Branch (453:9): [True: 812, False: 1.12k]
  ------------------
  454|    812|      numbers.push_back(l);
  455|    812|    }
  456|  1.93k|  }
  457|       |
  458|     60|  if (numbers.size() >= 10) {
  ------------------
  |  Branch (458:7): [True: 18, False: 42]
  ------------------
  459|       |    // year
  460|     18|    long l = ((numbers[0] - 48) * 10) + (numbers[1] - 48);
  461|     18|    if (l < 70)
  ------------------
  |  Branch (461:9): [True: 4, False: 14]
  ------------------
  462|      4|      l += 2000;
  463|     14|    else
  464|     14|      l += 1900;
  465|     18|    os << l << ":";
  466|       |    // month, day, hour, minutes
  467|     18|    os << numbers[2] << numbers[3] << ":" << numbers[4] << numbers[5] << " " << numbers[6] << numbers[7] << ":"
  468|     18|       << numbers[8] << numbers[9];
  469|     18|  } else
  470|     42|    os << value;
  471|     60|  return os;
  472|     60|}
_ZN5Exiv28Internal15Casio2MakerNote11print0x2022ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  474|     82|std::ostream& Casio2MakerNote::print0x2022(std::ostream& os, const Value& value, const ExifData*) {
  475|     82|  if (value.toInt64() >= 0x20000000) {
  ------------------
  |  Branch (475:7): [True: 6, False: 76]
  ------------------
  476|      6|    return os << N_("Inf");
  ------------------
  |  |   41|      6|#define N_(String) String
  ------------------
  477|      6|  }
  478|     76|  return os << stringFormat("{:.2f} m", value.toInt64() / 1000.0);
  ------------------
  |  |   18|     76|#define stringFormat std::format
  ------------------
  479|     82|}

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

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

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

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

_ZN5Exiv28CrwImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   26|    244|CrwImage::CrwImage(BasicIo::UniquePtr io, bool /*create*/) : Image(ImageType::crw, mdExif | mdComment, std::move(io)) {
   27|    244|}  // 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|    244|void CrwImage::readMetadata() {
   55|       |#ifdef EXIV2_DEBUG_MESSAGES
   56|       |  std::cerr << "Reading CRW file " << io_->path() << "\n";
   57|       |#endif
   58|    244|  if (io_->open()) {
  ------------------
  |  Branch (58:7): [True: 0, False: 244]
  ------------------
   59|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   60|      0|  }
   61|    244|  IoCloser closer(*io_);
   62|       |  // Ensure that this is the correct image type
   63|    244|  if (!isCrwType(*io_, false)) {
  ------------------
  |  Branch (63:7): [True: 0, False: 244]
  ------------------
   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|    244|  clearMetadata();
   69|    244|  DataBuf file(io().size());
   70|    244|  io_->read(file.data(), file.size());
   71|       |
   72|    244|  CrwParser::decode(this, io_->mmap(), io_->size());
   73|       |
   74|    244|}  // CrwImage::readMetadata
_ZN5Exiv29CrwParser6decodeEPNS_8CrwImageEPKhm:
  106|    244|void CrwParser::decode(CrwImage* pCrwImage, const byte* pData, size_t size) {
  107|       |  // Parse the image, starting with a CIFF header component
  108|    244|  Internal::CiffHeader header;
  109|    244|  header.read(pData, size);
  110|    244|  header.decode(*pCrwImage);
  111|       |
  112|       |  // a hack to get absolute offset of preview image inside CRW structure
  113|    244|  if (auto preview = header.findComponent(0x2007, 0x0000)) {
  ------------------
  |  Branch (113:12): [True: 2, False: 242]
  ------------------
  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|    244|}  // CrwParser::decode
_ZN5Exiv214newCrwInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  134|    244|Image::UniquePtr newCrwInstance(BasicIo::UniquePtr io, bool create) {
  135|    244|  auto image = std::make_unique<CrwImage>(std::move(io), create);
  136|    244|  if (!image->good()) {
  ------------------
  |  Branch (136:7): [True: 0, False: 244]
  ------------------
  137|      0|    return nullptr;
  138|      0|  }
  139|    244|  return image;
  140|    244|}
_ZN5Exiv29isCrwTypeERNS_7BasicIoEb:
  142|  31.5k|bool isCrwType(BasicIo& iIo, bool advance) {
  143|  31.5k|  bool result = true;
  144|  31.5k|  byte tmpBuf[14];
  145|  31.5k|  iIo.read(tmpBuf, 14);
  146|  31.5k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (146:7): [True: 0, False: 31.5k]
  |  Branch (146:22): [True: 77, False: 31.4k]
  ------------------
  147|     77|    return false;
  148|     77|  }
  149|  31.4k|  if (('I' != tmpBuf[0] || 'I' != tmpBuf[1]) && ('M' != tmpBuf[0] || 'M' != tmpBuf[1])) {
  ------------------
  |  Branch (149:8): [True: 30.0k, False: 1.38k]
  |  Branch (149:28): [True: 14, False: 1.37k]
  |  Branch (149:50): [True: 14.0k, False: 15.9k]
  |  Branch (149:70): [True: 17, False: 15.9k]
  ------------------
  150|  14.0k|    result = false;
  151|  14.0k|  }
  152|  31.4k|  if (result && std::memcmp(tmpBuf + 6, Internal::CiffHeader::signature(), 8) != 0) {
  ------------------
  |  Branch (152:7): [True: 17.3k, False: 14.0k]
  |  Branch (152:17): [True: 16.6k, False: 732]
  ------------------
  153|  16.6k|    result = false;
  154|  16.6k|  }
  155|  31.4k|  if (!advance || !result)
  ------------------
  |  Branch (155:7): [True: 31.4k, False: 0]
  |  Branch (155:19): [True: 0, False: 0]
  ------------------
  156|  31.4k|    iIo.seek(-14, BasicIo::cur);
  157|  31.4k|  return result;
  158|  31.5k|}

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

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

_ZN5Exiv212IptcDataSets10dataSetIdxEtt:
  377|   124k|int IptcDataSets::dataSetIdx(uint16_t number, uint16_t recordId) {
  378|   124k|  if (recordId != envelope && recordId != application2)
  ------------------
  |  Branch (378:7): [True: 103k, False: 20.9k]
  |  Branch (378:31): [True: 86.3k, False: 16.8k]
  ------------------
  379|  86.3k|    return -1;
  380|  37.8k|  const DataSet* dataSet = records_[recordId];
  381|  37.8k|  int idx;
  382|   711k|  for (idx = 0; dataSet[idx].number_ != number; ++idx) {
  ------------------
  |  Branch (382:17): [True: 690k, False: 20.3k]
  ------------------
  383|   690k|    if (dataSet[idx].number_ == 0xffff)
  ------------------
  |  Branch (383:9): [True: 17.4k, False: 673k]
  ------------------
  384|  17.4k|      return -1;
  385|   690k|  }
  386|  20.3k|  return idx;
  387|  37.8k|}
_ZN5Exiv212IptcDataSets10dataSetIdxERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEt:
  389|    465|int IptcDataSets::dataSetIdx(const std::string& dataSetName, uint16_t recordId) {
  390|    465|  if (recordId != envelope && recordId != application2)
  ------------------
  |  Branch (390:7): [True: 310, False: 155]
  |  Branch (390:31): [True: 0, False: 310]
  ------------------
  391|      0|    return -1;
  392|    465|  const DataSet* dataSet = records_[recordId];
  393|    465|  int idx;
  394|  9.76k|  for (idx = 0; dataSet[idx].name_ != dataSetName; ++idx) {
  ------------------
  |  Branch (394:17): [True: 9.30k, False: 465]
  ------------------
  395|  9.30k|    if (dataSet[idx].number_ == 0xffff)
  ------------------
  |  Branch (395:9): [True: 0, False: 9.30k]
  ------------------
  396|      0|      return -1;
  397|  9.30k|  }
  398|    465|  return idx;
  399|    465|}
_ZN5Exiv212IptcDataSets11dataSetTypeEtt:
  401|  40.0k|TypeId IptcDataSets::dataSetType(uint16_t number, uint16_t recordId) {
  402|  40.0k|  int idx = dataSetIdx(number, recordId);
  403|  40.0k|  if (idx == -1)
  ------------------
  |  Branch (403:7): [True: 33.9k, False: 6.10k]
  ------------------
  404|  33.9k|    return unknownDataSet.type_;
  405|  6.10k|  return records_[recordId][idx].type_;
  406|  40.0k|}
_ZN5Exiv212IptcDataSets11dataSetNameEtt:
  408|  44.3k|std::string IptcDataSets::dataSetName(uint16_t number, uint16_t recordId) {
  409|  44.3k|  if (int idx = dataSetIdx(number, recordId); idx != -1)
  ------------------
  |  Branch (409:47): [True: 8.47k, False: 35.9k]
  ------------------
  410|  8.47k|    return records_[recordId][idx].name_;
  411|       |
  412|  35.9k|  return stringFormat("0x{:04x}", number);
  ------------------
  |  |   18|  35.9k|#define stringFormat std::format
  ------------------
  413|  44.3k|}
_ZN5Exiv212IptcDataSets17dataSetRepeatableEtt:
  436|  39.7k|bool IptcDataSets::dataSetRepeatable(uint16_t number, uint16_t recordId) {
  437|  39.7k|  int idx = dataSetIdx(number, recordId);
  438|  39.7k|  if (idx == -1)
  ------------------
  |  Branch (438:7): [True: 33.9k, False: 5.79k]
  ------------------
  439|  33.9k|    return unknownDataSet.repeatable_;
  440|  5.79k|  return records_[recordId][idx].repeatable_;
  441|  39.7k|}
_ZN5Exiv212IptcDataSets7dataSetERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEt:
  443|    465|uint16_t IptcDataSets::dataSet(const std::string& dataSetName, uint16_t recordId) {
  444|    465|  if (int idx = dataSetIdx(dataSetName, recordId); idx != -1) {
  ------------------
  |  Branch (444:52): [True: 465, False: 0]
  ------------------
  445|       |    // dataSetIdx checks the range of recordId
  446|    465|    return records_[recordId][idx].number_;
  447|    465|  }
  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|  40.2k|std::string IptcDataSets::recordName(uint16_t recordId) {
  454|  40.2k|  if (recordId == envelope || recordId == application2) {
  ------------------
  |  Branch (454:7): [True: 6.92k, False: 33.3k]
  |  Branch (454:31): [True: 5.09k, False: 28.2k]
  ------------------
  455|  12.0k|    return recordInfo_[recordId].name_;
  456|  12.0k|  }
  457|       |
  458|  28.2k|  return stringFormat("0x{:04x}", recordId);
  ------------------
  |  |   18|  28.2k|#define stringFormat std::format
  ------------------
  459|  40.2k|}
_ZN5Exiv212IptcDataSets8recordIdERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  468|    465|uint16_t IptcDataSets::recordId(const std::string& recordName) {
  469|    465|  uint16_t i;
  470|    620|  for (i = IptcDataSets::application2; i > 0; --i) {
  ------------------
  |  Branch (470:40): [True: 620, False: 0]
  ------------------
  471|    620|    if (recordInfo_[i].name_ == recordName)
  ------------------
  |  Branch (471:9): [True: 465, False: 155]
  ------------------
  472|    465|      break;
  473|    620|  }
  474|    465|  if (i == 0) {
  ------------------
  |  Branch (474:7): [True: 0, False: 465]
  ------------------
  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|    465|  return i;
  480|    465|}
_ZN5Exiv27IptcKeyC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  490|    465|IptcKey::IptcKey(std::string key) : tag_(0), record_(0), key_(std::move(key)) {
  491|    465|  decomposeKey();
  492|    465|}
_ZN5Exiv27IptcKeyC2Ett:
  494|  39.7k|IptcKey::IptcKey(uint16_t tag, uint16_t record) : tag_(tag), record_(record) {
  495|  39.7k|  makeKey();
  496|  39.7k|}
_ZNK5Exiv27IptcKey7tagNameEv:
  510|  2.93k|std::string IptcKey::tagName() const {
  511|  2.93k|  return IptcDataSets::dataSetName(tag_, record_);
  512|  2.93k|}
_ZNK5Exiv27IptcKey3tagEv:
  522|  88.6k|uint16_t IptcKey::tag() const {
  523|  88.6k|  return tag_;
  524|  88.6k|}
_ZNK5Exiv27IptcKey6recordEv:
  530|   631k|uint16_t IptcKey::record() const {
  531|   631k|  return record_;
  532|   631k|}
_ZNK5Exiv27IptcKey5cloneEv:
  534|   477k|IptcKey::UniquePtr IptcKey::clone() const {
  535|   477k|  return UniquePtr(clone_());
  536|   477k|}
_ZNK5Exiv27IptcKey6clone_Ev:
  538|   477k|IptcKey* IptcKey::clone_() const {
  539|   477k|  return new IptcKey(*this);
  540|   477k|}
_ZN5Exiv27IptcKey12decomposeKeyEv:
  542|    465|void IptcKey::decomposeKey() {
  543|       |  // Check that the key has the expected format with RE
  544|    465|  auto posDot1 = key_.find('.');
  545|    465|  auto posDot2 = key_.find('.', posDot1 + 1);
  546|       |
  547|    465|  if (posDot1 == std::string::npos || posDot2 == std::string::npos) {
  ------------------
  |  Branch (547:7): [True: 0, False: 465]
  |  Branch (547:39): [True: 0, False: 465]
  ------------------
  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|    465|  const std::string familyName = key_.substr(0, posDot1);
  553|    465|  if (familyName != familyName_)
  ------------------
  |  Branch (553:7): [True: 0, False: 465]
  ------------------
  554|      0|    throw Error(ErrorCode::kerInvalidKey, key_);
  555|       |
  556|    465|  std::string recordName = key_.substr(posDot1 + 1, posDot2 - posDot1 - 1);
  557|    465|  std::string dataSetName = key_.substr(posDot2 + 1);
  558|       |
  559|       |  // Use the parts of the key to find dataSet and recordId
  560|    465|  uint16_t recId = IptcDataSets::recordId(recordName);
  561|    465|  uint16_t dataSet = IptcDataSets::dataSet(dataSetName, recId);
  562|       |
  563|       |  // Possibly translate hex name parts (0xabcd) to real names
  564|    465|  recordName = IptcDataSets::recordName(recId);
  565|    465|  dataSetName = IptcDataSets::dataSetName(dataSet, recId);
  566|       |
  567|    465|  tag_ = dataSet;
  568|    465|  record_ = recId;
  569|    465|  key_ = familyName + "." + recordName + "." + dataSetName;
  570|    465|}
_ZN5Exiv27IptcKey7makeKeyEv:
  572|  39.7k|void IptcKey::makeKey() {
  573|  39.7k|  key_ = std::string(familyName_) + "." + IptcDataSets::recordName(record_) + "." +
  574|  39.7k|         IptcDataSets::dataSetName(tag_, record_);
  575|  39.7k|}

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

_ZN5Exiv28EpsImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
 1026|  1.35k|EpsImage::EpsImage(BasicIo::UniquePtr io, bool create) : Image(ImageType::eps, mdXmp, std::move(io)) {
 1027|       |  // LogMsg::setLevel(LogMsg::debug);
 1028|  1.35k|  if (create && io_->open() == 0) {
  ------------------
  |  Branch (1028:7): [True: 0, False: 1.35k]
  |  Branch (1028:17): [True: 0, False: 0]
  ------------------
 1029|       |#ifdef DEBUG
 1030|       |    EXV_DEBUG << "Exiv2::EpsImage:: Creating blank EPS image\n";
 1031|       |#endif
 1032|      0|    IoCloser closer(*io_);
 1033|      0|    if (io_->write(reinterpret_cast<const byte*>(epsBlank.data()), epsBlank.size()) != epsBlank.size()) {
  ------------------
  |  Branch (1033:9): [True: 0, False: 0]
  ------------------
 1034|      0|#ifndef SUPPRESS_WARNINGS
 1035|      0|      EXV_WARNING << "Failed to write blank EPS image.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1036|      0|#endif
 1037|      0|      throw Error(ErrorCode::kerImageWriteFailed);
 1038|      0|    }
 1039|      0|  }
 1040|  1.35k|}
_ZN5Exiv28EpsImage12readMetadataEv:
 1050|  1.35k|void EpsImage::readMetadata() {
 1051|       |#ifdef DEBUG
 1052|       |  EXV_DEBUG << "Exiv2::EpsImage::readMetadata: Reading EPS file " << io_->path() << "\n";
 1053|       |#endif
 1054|       |
 1055|       |  // read metadata
 1056|  1.35k|  readWriteEpsMetadata(*io_, xmpPacket_, nativePreviews_, /* write = */ false);
 1057|       |
 1058|       |  // decode XMP metadata
 1059|  1.35k|  if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_) > 1) {
  ------------------
  |  Branch (1059:7): [True: 16, False: 1.34k]
  |  Branch (1059:30): [True: 14, False: 2]
  ------------------
 1060|     14|#ifndef SUPPRESS_WARNINGS
 1061|     14|    EXV_WARNING << "Failed to decode XMP 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()
  ------------------
 1062|     14|#endif
 1063|     14|    throw Error(ErrorCode::kerFailedToReadImageData);
 1064|     14|  }
 1065|       |
 1066|       |#ifdef DEBUG
 1067|       |  EXV_DEBUG << "Exiv2::EpsImage::readMetadata: Finished reading EPS file " << io_->path() << "\n";
 1068|       |#endif
 1069|  1.35k|}
_ZN5Exiv214newEpsInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
 1094|  1.35k|Image::UniquePtr newEpsInstance(BasicIo::UniquePtr io, bool create) {
 1095|  1.35k|  auto image = std::make_unique<EpsImage>(std::move(io), create);
 1096|  1.35k|  if (!image->good()) {
  ------------------
  |  Branch (1096:7): [True: 0, False: 1.35k]
  ------------------
 1097|      0|    return nullptr;
 1098|      0|  }
 1099|  1.35k|  return image;
 1100|  1.35k|}
_ZN5Exiv29isEpsTypeERNS_7BasicIoEb:
 1102|  14.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.5k, False: 494]
  ------------------
 1117|  39.1k|    for (auto&& eps : epsFirstLine) {
  ------------------
  |  Branch (1117:21): [True: 39.1k, False: 11.3k]
  ------------------
 1118|  39.1k|      if (buf.cmpBytes(0, eps.data(), eps.size()) == 0) {
  ------------------
  |  Branch (1118:11): [True: 2.22k, False: 36.9k]
  ------------------
 1119|  2.22k|        matched = true;
 1120|  2.22k|        break;
 1121|  2.22k|      }
 1122|  39.1k|    }
 1123|  13.5k|  }
 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.35k|void readWriteEpsMetadata(BasicIo& io, std::string& xmpPacket, NativePreviewList& nativePreviews, bool write) {
  225|       |  // open input file
  226|  1.35k|  if (io.open() != 0) {
  ------------------
  |  Branch (226:7): [True: 0, False: 1.35k]
  ------------------
  227|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  228|      0|  }
  229|  1.35k|  IoCloser closer(io);
  230|       |
  231|       |  // read from input file via memory map
  232|  1.35k|  const byte* data = io.mmap();
  233|       |
  234|       |  // default positions and sizes
  235|  1.35k|  const size_t size = io.size();
  236|  1.35k|  size_t posEps = 0;
  237|  1.35k|  size_t posEndEps = size;
  238|  1.35k|  uint32_t posWmf = 0;
  239|  1.35k|  uint32_t sizeWmf = 0;
  240|  1.35k|  uint32_t posTiff = 0;
  241|  1.35k|  uint32_t sizeTiff = 0;
  242|       |
  243|  1.35k|  ErrorCode errcode = write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData;
  ------------------
  |  Branch (243:23): [True: 0, False: 1.35k]
  ------------------
  244|       |
  245|       |  // check for DOS EPS
  246|  1.35k|  const bool dosEps =
  247|  1.35k|      (size >= dosEpsSignature.size() && memcmp(data, dosEpsSignature.data(), dosEpsSignature.size()) == 0);
  ------------------
  |  Branch (247:8): [True: 1.35k, False: 0]
  |  Branch (247:42): [True: 247, False: 1.11k]
  ------------------
  248|  1.35k|  if (dosEps) {
  ------------------
  |  Branch (248:7): [True: 247, False: 1.11k]
  ------------------
  249|       |#ifdef DEBUG
  250|       |    EXV_DEBUG << "readWriteEpsMetadata: Found DOS EPS signature\n";
  251|       |#endif
  252|       |
  253|    247|    enforce(size >= 30, errcode);
  254|    247|    posEps = getULong(data + 4, littleEndian);
  255|    247|    posEndEps = getULong(data + 8, littleEndian) + posEps;
  256|    247|    posWmf = getULong(data + 12, littleEndian);
  257|    247|    sizeWmf = getULong(data + 16, littleEndian);
  258|    247|    posTiff = getULong(data + 20, littleEndian);
  259|    247|    sizeTiff = getULong(data + 24, littleEndian);
  260|       |#ifdef DEBUG
  261|       |    EXV_DEBUG << "readWriteEpsMetadata: EPS section at position " << posEps << ", size " << (posEndEps - posEps)
  262|       |              << "\n";
  263|       |    EXV_DEBUG << "readWriteEpsMetadata: WMF section at position " << posWmf << ", size " << sizeWmf << "\n";
  264|       |    EXV_DEBUG << "readWriteEpsMetadata: TIFF section at position " << posTiff << ", size " << sizeTiff << "\n";
  265|       |#endif
  266|    247|    if (uint16_t checksum = getUShort(data + 28, littleEndian); checksum != 0xFFFF) {
  ------------------
  |  Branch (266:65): [True: 225, False: 22]
  ------------------
  267|       |#ifdef DEBUG
  268|       |      EXV_DEBUG << "readWriteEpsMetadata: DOS EPS checksum is not FFFF\n";
  269|       |#endif
  270|    225|    }
  271|    247|    if ((posWmf != 0 || sizeWmf != 0) && (posTiff != 0 || sizeTiff != 0)) {
  ------------------
  |  Branch (271:10): [True: 186, False: 61]
  |  Branch (271:25): [True: 24, False: 37]
  |  Branch (271:43): [True: 137, False: 72]
  |  Branch (271:59): [True: 46, False: 26]
  ------------------
  272|    183|#ifndef SUPPRESS_WARNINGS
  273|    183|      EXV_WARNING << "DOS EPS file has both WMF and TIFF section. Only one of those is allowed.\n";
  ------------------
  |  |  138|    183|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 183]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    183|  LogMsg(LogMsg::warn).os()
  ------------------
  274|    183|#endif
  275|    183|      if (write)
  ------------------
  |  Branch (275:11): [True: 0, False: 183]
  ------------------
  276|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  277|    183|    }
  278|    247|    if (sizeWmf == 0 && sizeTiff == 0) {
  ------------------
  |  Branch (278:9): [True: 107, False: 140]
  |  Branch (278:25): [True: 45, False: 62]
  ------------------
  279|     45|#ifndef SUPPRESS_WARNINGS
  280|     45|      EXV_WARNING << "DOS EPS file has neither WMF nor TIFF section. Exactly one of those is required.\n";
  ------------------
  |  |  138|     45|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 45]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     45|  LogMsg(LogMsg::warn).os()
  ------------------
  281|     45|#endif
  282|     45|      if (write)
  ------------------
  |  Branch (282:11): [True: 0, False: 45]
  ------------------
  283|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  284|     45|    }
  285|    247|    enforce(30 <= posEps, errcode);
  286|    247|    enforce(sizeWmf == 0 || 30 <= posWmf, errcode);
  ------------------
  |  Branch (286:13): [True: 114, False: 133]
  |  Branch (286:29): [True: 112, False: 21]
  ------------------
  287|    247|    enforce(sizeTiff == 0 || 30 <= posTiff, errcode);
  ------------------
  |  Branch (287:13): [True: 83, False: 164]
  |  Branch (287:30): [True: 121, False: 43]
  ------------------
  288|       |
  289|    247|    enforce(posEps <= posEndEps && posEndEps <= size, errcode);
  ------------------
  |  Branch (289:13): [True: 164, False: 83]
  |  Branch (289:36): [True: 60, False: 104]
  ------------------
  290|    247|    enforce(posWmf <= size && sizeWmf <= size - posWmf, errcode);
  ------------------
  |  Branch (290:13): [True: 44, False: 203]
  |  Branch (290:31): [True: 35, False: 9]
  ------------------
  291|    247|    enforce(posTiff <= size && sizeTiff <= size - posTiff, errcode);
  ------------------
  |  Branch (291:13): [True: 24, False: 223]
  |  Branch (291:32): [True: 18, False: 6]
  ------------------
  292|    247|  }
  293|       |
  294|       |  // check first line
  295|  1.35k|  std::string firstLine;
  296|  1.35k|  const size_t posSecondLine = readLine(firstLine, data, posEps, posEndEps);
  297|       |#ifdef DEBUG
  298|       |  EXV_DEBUG << "readWriteEpsMetadata: First line: " << firstLine << "\n";
  299|       |#endif
  300|  1.35k|  auto it = std::find(epsFirstLine.begin(), epsFirstLine.end(), firstLine);
  301|  1.35k|  if (it == epsFirstLine.end()) {
  ------------------
  |  Branch (301:7): [True: 40, False: 1.31k]
  ------------------
  302|     40|    throw Error(ErrorCode::kerNotAnImage, "EPS");
  303|     40|  }
  304|       |
  305|       |  // determine line ending style of the first line
  306|  1.31k|  if (posSecondLine >= posEndEps) {
  ------------------
  |  Branch (306:7): [True: 3, False: 1.31k]
  ------------------
  307|      3|#ifndef SUPPRESS_WARNINGS
  308|      3|    EXV_WARNING << "Premature end of file after first line.\n";
  ------------------
  |  |  138|      3|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 3]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      3|  LogMsg(LogMsg::warn).os()
  ------------------
  309|      3|#endif
  310|      3|    throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (310:17): [True: 0, False: 3]
  ------------------
  311|      3|  }
  312|  1.31k|  const std::string lineEnding(reinterpret_cast<const char*>(data + posEps + firstLine.size()),
  313|  1.31k|                               posSecondLine - (posEps + firstLine.size()));
  314|       |#ifdef DEBUG
  315|       |  if (lineEnding == "\n") {
  316|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: Unix (LF)\n";
  317|       |  } else if (lineEnding == "\r") {
  318|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: Mac (CR)\n";
  319|       |  } else if (lineEnding == "\r\n") {
  320|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: DOS (CR LF)\n";
  321|       |  } else {
  322|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: (unknown)\n";
  323|       |  }
  324|       |#endif
  325|       |
  326|       |  // scan comments
  327|  1.31k|  size_t posLanguageLevel = posEndEps;
  328|  1.31k|  size_t posContainsXmp = posEndEps;
  329|  1.31k|  size_t posPages = posEndEps;
  330|  1.31k|  size_t posExiv2Version = posEndEps;
  331|  1.31k|  size_t posExiv2Website = posEndEps;
  332|  1.31k|  size_t posEndComments = posEndEps;
  333|  1.31k|  size_t posAi7Thumbnail = posEndEps;
  334|  1.31k|  size_t posAi7ThumbnailEndData = posEndEps;
  335|  1.31k|  size_t posBeginPhotoshop = posEndEps;
  336|  1.31k|  size_t posEndPhotoshop = posEndEps;
  337|  1.31k|  size_t posPage = posEndEps;
  338|  1.31k|  size_t posBeginPageSetup = posEndEps;
  339|  1.31k|  size_t posEndPageSetup = posEndEps;
  340|  1.31k|  size_t posPageTrailer = posEndEps;
  341|  1.31k|  size_t posEof = posEndEps;
  342|  1.31k|  std::vector<std::pair<size_t, size_t>> removableEmbeddings;
  343|  1.31k|  size_t depth = 0;
  344|  1.31k|  const size_t maxDepth = std::numeric_limits<size_t>::max();
  345|  1.31k|  bool illustrator8 = false;
  346|  1.31k|  bool corelDraw = false;
  347|  1.31k|  bool implicitPage = false;
  348|  1.31k|  bool implicitPageSetup = false;
  349|  1.31k|  bool implicitPageTrailer = false;
  350|  1.31k|  bool inDefaultsPreviewPrologSetup = false;
  351|  1.31k|  bool inRemovableEmbedding = false;
  352|  1.31k|  std::string removableEmbeddingEndLine;
  353|  1.31k|  size_t removableEmbeddingsWithUnmarkedTrailer = 0;
  354|   199k|  for (size_t pos = posEps; pos < posEof;) {
  ------------------
  |  Branch (354:29): [True: 197k, False: 1.26k]
  ------------------
  355|   197k|    const size_t startPos = pos;
  356|   197k|    std::string line;
  357|   197k|    pos = readLine(line, data, startPos, posEndEps);
  358|       |#ifdef DEBUG
  359|       |    bool significantLine = true;
  360|       |#endif
  361|       |    // nested documents
  362|   197k|    if (posPage == posEndEps && (line.starts_with("%%IncludeDocument:") || line.starts_with("%%BeginDocument:"))) {
  ------------------
  |  Branch (362:9): [True: 129k, False: 68.9k]
  |  Branch (362:34): [True: 10, False: 129k]
  |  Branch (362:76): [True: 10, False: 129k]
  ------------------
  363|     20|#ifndef SUPPRESS_WARNINGS
  364|     20|      EXV_WARNING << "Nested document at invalid position: " << startPos << "\n";
  ------------------
  |  |  138|     20|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 20]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     20|  LogMsg(LogMsg::warn).os()
  ------------------
  365|     20|#endif
  366|     20|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (366:19): [True: 0, False: 20]
  ------------------
  367|     20|    }
  368|   197k|    if (line.starts_with("%%BeginDocument:")) {
  ------------------
  |  Branch (368:9): [True: 220, False: 197k]
  ------------------
  369|    220|      if (depth == maxDepth) {
  ------------------
  |  Branch (369:11): [True: 0, False: 220]
  ------------------
  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|    220|      depth++;
  376|   197k|    } else if (line.starts_with("%%EndDocument")) {
  ------------------
  |  Branch (376:16): [True: 18, False: 197k]
  ------------------
  377|     18|      if (depth == 0) {
  ------------------
  |  Branch (377:11): [True: 11, False: 7]
  ------------------
  378|     11|#ifndef SUPPRESS_WARNINGS
  379|     11|        EXV_WARNING << "Unmatched EndDocument at position: " << startPos << "\n";
  ------------------
  |  |  138|     11|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 11]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     11|  LogMsg(LogMsg::warn).os()
  ------------------
  380|     11|#endif
  381|     11|        throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (381:21): [True: 0, False: 11]
  ------------------
  382|     11|      }
  383|      7|      depth--;
  384|   197k|    } else {
  385|       |#ifdef DEBUG
  386|       |      significantLine = false;
  387|       |#endif
  388|   197k|    }
  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|   197k|    if (depth != 0)
  ------------------
  |  Branch (395:9): [True: 773, False: 197k]
  ------------------
  396|    773|      continue;
  397|       |    // explicit "Begin" comments
  398|   197k|    if (line.starts_with("%%BeginPreview:")) {
  ------------------
  |  Branch (398:9): [True: 398, False: 196k]
  ------------------
  399|    398|      inDefaultsPreviewPrologSetup = true;
  400|   196k|    } else if (line == "%%BeginDefaults") {
  ------------------
  |  Branch (400:16): [True: 73, False: 196k]
  ------------------
  401|     73|      inDefaultsPreviewPrologSetup = true;
  402|   196k|    } else if (line == "%%BeginProlog") {
  ------------------
  |  Branch (402:16): [True: 64, False: 196k]
  ------------------
  403|     64|      inDefaultsPreviewPrologSetup = true;
  404|   196k|    } else if (line == "%%BeginSetup") {
  ------------------
  |  Branch (404:16): [True: 275, False: 196k]
  ------------------
  405|    275|      inDefaultsPreviewPrologSetup = true;
  406|   196k|    } else if (posPage == posEndEps && line.starts_with("%%Page:")) {
  ------------------
  |  Branch (406:16): [True: 128k, False: 67.7k]
  |  Branch (406:40): [True: 71, False: 128k]
  ------------------
  407|     71|      posPage = startPos;
  408|   196k|    } else if (posPage != posEndEps && line.starts_with("%%Page:")) {
  ------------------
  |  Branch (408:16): [True: 67.7k, False: 128k]
  |  Branch (408:40): [True: 24, False: 67.7k]
  ------------------
  409|     24|      if (implicitPage) {
  ------------------
  |  Branch (409:11): [True: 13, False: 11]
  ------------------
  410|     13|#ifndef SUPPRESS_WARNINGS
  411|     13|        EXV_WARNING << "Page at position " << startPos << " conflicts with implicit page at position: " << posPage
  ------------------
  |  |  138|     13|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 13]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     13|  LogMsg(LogMsg::warn).os()
  ------------------
  412|      0|                    << "\n";
  413|     13|#endif
  414|     13|        throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (414:21): [True: 0, False: 13]
  ------------------
  415|     13|      }
  416|     11|#ifndef SUPPRESS_WARNINGS
  417|     11|      EXV_WARNING << "Unable to handle multiple PostScript pages. Found second page at position: " << startPos << "\n";
  ------------------
  |  |  138|     11|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 11]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     11|  LogMsg(LogMsg::warn).os()
  ------------------
  418|     11|#endif
  419|     11|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (419:19): [True: 0, False: 11]
  ------------------
  420|   196k|    } else if (line == "%%BeginPageSetup") {
  ------------------
  |  Branch (420:16): [True: 121, False: 196k]
  ------------------
  421|    121|      posBeginPageSetup = startPos;
  422|   196k|    } else if (!inRemovableEmbedding && line == "%Exiv2BeginXMP: Before %%EndPageSetup") {
  ------------------
  |  Branch (422:16): [True: 94.9k, False: 101k]
  |  Branch (422:41): [True: 823, False: 94.1k]
  ------------------
  423|    823|      inRemovableEmbedding = true;
  424|    823|      removableEmbeddings.emplace_back(startPos, startPos);
  425|    823|      removableEmbeddingEndLine = "%Exiv2EndXMP";
  426|   195k|    } else if (!inRemovableEmbedding && line == "%Exiv2BeginXMP: After %%PageTrailer") {
  ------------------
  |  Branch (426:16): [True: 94.1k, False: 101k]
  |  Branch (426:41): [True: 869, False: 93.2k]
  ------------------
  427|    869|      inRemovableEmbedding = true;
  428|    869|      removableEmbeddings.emplace_back(startPos, startPos);
  429|    869|      removableEmbeddingEndLine = "%Exiv2EndXMP";
  430|   194k|    } else if (!inRemovableEmbedding && line == "%ADOBeginClientInjection: PageSetup End \"AI11EPS\"") {
  ------------------
  |  Branch (430:16): [True: 93.2k, False: 101k]
  |  Branch (430:41): [True: 540, False: 92.7k]
  ------------------
  431|    540|      inRemovableEmbedding = true;
  432|    540|      removableEmbeddings.emplace_back(startPos, startPos);
  433|    540|      removableEmbeddingEndLine = "%ADOEndClientInjection: PageSetup End \"AI11EPS\"";
  434|   193k|    } else if (!inRemovableEmbedding && line == "%ADOBeginClientInjection: PageTrailer Start \"AI11EPS\"") {
  ------------------
  |  Branch (434:16): [True: 92.7k, False: 101k]
  |  Branch (434:41): [True: 196, False: 92.5k]
  ------------------
  435|    196|      inRemovableEmbedding = true;
  436|    196|      removableEmbeddings.emplace_back(startPos, startPos);
  437|    196|      removableEmbeddingEndLine = "%ADOEndClientInjection: PageTrailer Start \"AI11EPS\"";
  438|   193k|    } else if (!inRemovableEmbedding && line == "%begin_xml_code") {
  ------------------
  |  Branch (438:16): [True: 92.5k, False: 101k]
  |  Branch (438:41): [True: 504, False: 92.0k]
  ------------------
  439|    504|      inRemovableEmbedding = true;
  440|    504|      removableEmbeddings.emplace_back(startPos, startPos);
  441|    504|      removableEmbeddingEndLine = "%end_xml_code";
  442|    504|      removableEmbeddingsWithUnmarkedTrailer++;
  443|   193k|    } else {
  444|       |#ifdef DEBUG
  445|       |      significantLine = false;
  446|       |#endif
  447|   193k|    }
  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|   197k|    if (line == "%%EOF" || line == "%begin_xml_code" || line.size() < 2 || line.front() != '%' || '\x21' > line[1] ||
  ------------------
  |  Branch (455:9): [True: 9, False: 197k]
  |  Branch (455:28): [True: 727, False: 196k]
  |  Branch (455:57): [True: 86.1k, False: 110k]
  |  Branch (455:76): [True: 39.8k, False: 70.4k]
  |  Branch (455:99): [True: 2.87k, False: 67.5k]
  ------------------
  456|   129k|        line[1] > '\x7e') {
  ------------------
  |  Branch (456:9): [True: 283, False: 67.2k]
  ------------------
  457|   129k|      if (posEndComments == posEndEps) {
  ------------------
  |  Branch (457:11): [True: 763, False: 129k]
  ------------------
  458|    763|        posEndComments = startPos;
  459|       |#ifdef DEBUG
  460|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndComments at position: " << startPos << "\n";
  461|       |#endif
  462|    763|      }
  463|   129k|    }
  464|   197k|    if (posPage == posEndEps && posEndComments != posEndEps && !inDefaultsPreviewPrologSetup && !inRemovableEmbedding &&
  ------------------
  |  Branch (464:9): [True: 128k, False: 68.2k]
  |  Branch (464:33): [True: 116k, False: 12.4k]
  |  Branch (464:64): [True: 4.01k, False: 112k]
  |  Branch (464:97): [True: 1.80k, False: 2.21k]
  ------------------
  465|  1.80k|        !onlyWhitespaces(line)) {
  ------------------
  |  Branch (465:9): [True: 543, False: 1.26k]
  ------------------
  466|    543|      posPage = startPos;
  467|    543|      implicitPage = true;
  468|       |#ifdef DEBUG
  469|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit Page at position: " << startPos << "\n";
  470|       |#endif
  471|    543|    }
  472|   197k|    if (posBeginPageSetup == posEndEps &&
  ------------------
  |  Branch (472:9): [True: 126k, False: 70.4k]
  ------------------
  473|   126k|        (implicitPage || (posPage != posEndEps && !inRemovableEmbedding && !line.empty() && line.front() != '%'))) {
  ------------------
  |  Branch (473:10): [True: 535, False: 126k]
  |  Branch (473:27): [True: 1.45k, False: 124k]
  |  Branch (473:51): [True: 1.03k, False: 421]
  |  Branch (473:76): [True: 798, False: 235]
  |  Branch (473:93): [True: 21, False: 777]
  ------------------
  474|    556|      posBeginPageSetup = startPos;
  475|    556|      implicitPageSetup = true;
  476|       |#ifdef DEBUG
  477|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit BeginPageSetup at position: " << startPos << "\n";
  478|       |#endif
  479|    556|    }
  480|   197k|    if (posEndPageSetup == posEndEps && implicitPageSetup && !inRemovableEmbedding && !line.empty() &&
  ------------------
  |  Branch (480:9): [True: 133k, False: 63.8k]
  |  Branch (480:41): [True: 7.13k, False: 126k]
  |  Branch (480:62): [True: 6.38k, False: 745]
  |  Branch (480:87): [True: 6.08k, False: 302]
  ------------------
  481|  6.08k|        line.front() != '%') {
  ------------------
  |  Branch (481:9): [True: 433, False: 5.65k]
  ------------------
  482|    433|      posEndPageSetup = startPos;
  483|       |#ifdef DEBUG
  484|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndPageSetup at position: " << startPos << "\n";
  485|       |#endif
  486|    433|    }
  487|   197k|    if (!line.empty() && line.front() != '%')
  ------------------
  |  Branch (487:9): [True: 126k, False: 70.7k]
  |  Branch (487:26): [True: 54.7k, False: 71.6k]
  ------------------
  488|  54.7k|      continue;  // performance optimization
  489|   142k|    if (line == "%%EOF" || line == "%%Trailer" || line == "%%PageTrailer") {
  ------------------
  |  Branch (489:9): [True: 9, False: 142k]
  |  Branch (489:28): [True: 158, False: 142k]
  |  Branch (489:51): [True: 199, False: 142k]
  ------------------
  490|    366|      if (posBeginPageSetup == posEndEps) {
  ------------------
  |  Branch (490:11): [True: 20, False: 346]
  ------------------
  491|     20|        posBeginPageSetup = startPos;
  492|     20|        implicitPageSetup = true;
  493|       |#ifdef DEBUG
  494|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit BeginPageSetup at position: " << startPos << "\n";
  495|       |#endif
  496|     20|      }
  497|    366|      if (posEndPageSetup == posEndEps) {
  ------------------
  |  Branch (497:11): [True: 32, False: 334]
  ------------------
  498|     32|        posEndPageSetup = startPos;
  499|     32|        implicitPageSetup = true;
  500|       |#ifdef DEBUG
  501|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndPageSetup at position: " << startPos << "\n";
  502|       |#endif
  503|     32|      }
  504|    366|    }
  505|   142k|    if ((line == "%%EOF" || line == "%%Trailer") && posPageTrailer == posEndEps) {
  ------------------
  |  Branch (505:10): [True: 9, False: 142k]
  |  Branch (505:29): [True: 158, False: 142k]
  |  Branch (505:53): [True: 33, False: 134]
  ------------------
  506|     33|      posPageTrailer = startPos;
  507|     33|      implicitPageTrailer = true;
  508|       |#ifdef DEBUG
  509|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit PageTrailer at position: " << startPos << "\n";
  510|       |#endif
  511|     33|    }
  512|       |    // remaining explicit comments
  513|   142k|    if (posEndComments == posEndEps && posLanguageLevel == posEndEps && line.starts_with("%%LanguageLevel:")) {
  ------------------
  |  Branch (513:9): [True: 12.9k, False: 129k]
  |  Branch (513:40): [True: 12.6k, False: 314]
  |  Branch (513:73): [True: 17, False: 12.6k]
  ------------------
  514|     17|      posLanguageLevel = startPos;
  515|   142k|    } else if (posEndComments == posEndEps && posContainsXmp == posEndEps && line.starts_with("%ADO_ContainsXMP:")) {
  ------------------
  |  Branch (515:16): [True: 12.9k, False: 129k]
  |  Branch (515:47): [True: 12.7k, False: 258]
  |  Branch (515:78): [True: 85, False: 12.6k]
  ------------------
  516|     85|      posContainsXmp = startPos;
  517|   142k|    } else if (posEndComments == posEndEps && posPages == posEndEps && line.starts_with("%%Pages:")) {
  ------------------
  |  Branch (517:16): [True: 12.8k, False: 129k]
  |  Branch (517:47): [True: 11.7k, False: 1.18k]
  |  Branch (517:72): [True: 36, False: 11.6k]
  ------------------
  518|     36|      posPages = startPos;
  519|   142k|    } else if (posEndComments == posEndEps && posExiv2Version == posEndEps && line.starts_with("%Exiv2Version:")) {
  ------------------
  |  Branch (519:16): [True: 12.8k, False: 129k]
  |  Branch (519:47): [True: 9.26k, False: 3.59k]
  |  Branch (519:79): [True: 27, False: 9.23k]
  ------------------
  520|     27|      posExiv2Version = startPos;
  521|   142k|    } else if (posEndComments == posEndEps && posExiv2Website == posEndEps && line.starts_with("%Exiv2Website:")) {
  ------------------
  |  Branch (521:16): [True: 12.8k, False: 129k]
  |  Branch (521:47): [True: 12.2k, False: 615]
  |  Branch (521:79): [True: 28, False: 12.1k]
  ------------------
  522|     28|      posExiv2Website = startPos;
  523|   142k|    } else if (posEndComments == posEndEps && line.starts_with("%%Creator: Adobe Illustrator") &&
  ------------------
  |  Branch (523:16): [True: 12.7k, False: 129k]
  |  Branch (523:47): [True: 222, False: 12.5k]
  ------------------
  524|    222|               firstLine == "%!PS-Adobe-3.0 EPSF-3.0") {
  ------------------
  |  Branch (524:16): [True: 105, False: 117]
  ------------------
  525|    105|      illustrator8 = true;
  526|   142k|    } else if (posEndComments == posEndEps && line.starts_with("%AI7_Thumbnail:")) {
  ------------------
  |  Branch (526:16): [True: 12.6k, False: 129k]
  |  Branch (526:47): [True: 326, False: 12.3k]
  ------------------
  527|    326|      posAi7Thumbnail = startPos;
  528|   141k|    } else if (posEndComments == posEndEps && posAi7Thumbnail != posEndEps && posAi7ThumbnailEndData == posEndEps &&
  ------------------
  |  Branch (528:16): [True: 12.3k, False: 129k]
  |  Branch (528:47): [True: 1.98k, False: 10.3k]
  |  Branch (528:79): [True: 1.62k, False: 364]
  ------------------
  529|  1.62k|               line == "%%EndData") {
  ------------------
  |  Branch (529:16): [True: 73, False: 1.54k]
  ------------------
  530|     73|      posAi7ThumbnailEndData = startPos;
  531|   141k|    } else if (posEndComments == posEndEps && line == "%%EndComments") {
  ------------------
  |  Branch (531:16): [True: 12.2k, False: 129k]
  |  Branch (531:47): [True: 0, False: 12.2k]
  ------------------
  532|      0|      posEndComments = startPos;
  533|   141k|    } else if (inDefaultsPreviewPrologSetup && line.starts_with("%%BeginResource: procset wCorel")) {
  ------------------
  |  Branch (533:16): [True: 87.7k, False: 53.9k]
  |  Branch (533:48): [True: 24, False: 87.7k]
  ------------------
  534|     24|      corelDraw = true;
  535|   141k|    } else if (line == "%%EndPreview") {
  ------------------
  |  Branch (535:16): [True: 125, False: 141k]
  ------------------
  536|    125|      inDefaultsPreviewPrologSetup = false;
  537|   141k|    } else if (line == "%%EndDefaults") {
  ------------------
  |  Branch (537:16): [True: 145, False: 141k]
  ------------------
  538|    145|      inDefaultsPreviewPrologSetup = false;
  539|   141k|    } else if (line == "%%EndProlog") {
  ------------------
  |  Branch (539:16): [True: 314, False: 141k]
  ------------------
  540|    314|      inDefaultsPreviewPrologSetup = false;
  541|   141k|    } else if (line == "%%EndSetup") {
  ------------------
  |  Branch (541:16): [True: 355, False: 140k]
  ------------------
  542|    355|      inDefaultsPreviewPrologSetup = false;
  543|   140k|    } else if (posEndPageSetup == posEndEps && line == "%%EndPageSetup") {
  ------------------
  |  Branch (543:16): [True: 92.4k, False: 48.2k]
  |  Branch (543:48): [True: 6, False: 92.4k]
  ------------------
  544|      6|      posEndPageSetup = startPos;
  545|   140k|    } else if (posPageTrailer == posEndEps && line == "%%PageTrailer") {
  ------------------
  |  Branch (545:16): [True: 127k, False: 13.4k]
  |  Branch (545:47): [True: 27, False: 127k]
  ------------------
  546|     27|      posPageTrailer = startPos;
  547|   140k|    } else if (posBeginPhotoshop == posEndEps && line.starts_with("%BeginPhotoshop:")) {
  ------------------
  |  Branch (547:16): [True: 137k, False: 3.57k]
  |  Branch (547:50): [True: 58, False: 137k]
  ------------------
  548|     58|      posBeginPhotoshop = pos;
  549|   140k|    } else if (posBeginPhotoshop != posEndEps && posEndPhotoshop == posEndEps && line == "%EndPhotoshop") {
  ------------------
  |  Branch (549:16): [True: 3.57k, False: 137k]
  |  Branch (549:50): [True: 3.19k, False: 385]
  |  Branch (549:82): [True: 20, False: 3.17k]
  ------------------
  550|     20|      posEndPhotoshop = startPos;
  551|   140k|    } else if (inRemovableEmbedding && line == removableEmbeddingEndLine) {
  ------------------
  |  Branch (551:16): [True: 70.4k, False: 70.2k]
  |  Branch (551:40): [True: 2.69k, False: 67.7k]
  ------------------
  552|  2.69k|      inRemovableEmbedding = false;
  553|  2.69k|      removableEmbeddings.back().second = pos;
  554|   137k|    } else if (line == "%%EOF") {
  ------------------
  |  Branch (554:16): [True: 9, False: 137k]
  ------------------
  555|      9|      posEof = startPos;
  556|   137k|    } else {
  557|       |#ifdef DEBUG
  558|       |      significantLine = false;
  559|       |#endif
  560|   137k|    }
  561|       |#ifdef DEBUG
  562|       |    if (significantLine) {
  563|       |      EXV_DEBUG << "readWriteEpsMetadata: Found significant line \"" << line << "\" at position: " << startPos << "\n";
  564|       |    }
  565|       |#endif
  566|   142k|  }
  567|       |
  568|       |  // check for unfinished nested documents
  569|  1.26k|  if (depth != 0) {
  ------------------
  |  Branch (569:7): [True: 18, False: 1.24k]
  ------------------
  570|     18|#ifndef SUPPRESS_WARNINGS
  571|     18|    EXV_WARNING << "Unmatched BeginDocument (" << depth << "x)\n";
  ------------------
  |  |  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()
  ------------------
  572|     18|#endif
  573|     18|    throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (573:17): [True: 0, False: 18]
  ------------------
  574|     18|  }
  575|       |
  576|       |  // look for the unmarked trailers of some removable XMP embeddings
  577|  1.24k|  size_t posXmpTrailerEnd = posEof;
  578|  1.24k|  for (size_t i = 0; i < removableEmbeddingsWithUnmarkedTrailer; i++) {
  ------------------
  |  Branch (578:22): [True: 157, False: 1.08k]
  ------------------
  579|    157|    std::string line1;
  580|    157|    const size_t posLine1 = readPrevLine(line1, data, posXmpTrailerEnd, posEndEps);
  581|    157|    std::string line2;
  582|    157|    const size_t posLine2 = readPrevLine(line2, data, posLine1, posEndEps);
  583|    157|    size_t posXmpTrailer;
  584|    157|    if (line1 == "[/EMC pdfmark") {  // Exiftool style
  ------------------
  |  Branch (584:9): [True: 3, False: 154]
  ------------------
  585|      3|      posXmpTrailer = posLine1;
  586|    154|    } else if (line1 == "[/NamespacePop pdfmark" &&
  ------------------
  |  Branch (586:16): [True: 15, False: 139]
  ------------------
  587|     15|               line2 ==
  ------------------
  |  Branch (587:16): [True: 0, False: 15]
  ------------------
  588|     15|                   "[{nextImage} 1 dict begin /Metadata {photoshop_metadata_stream} def currentdict end /PUT "
  589|     15|                   "pdfmark") {  // Photoshop style
  590|      0|      posXmpTrailer = posLine2;
  591|    154|    } else {
  592|    154|#ifndef SUPPRESS_WARNINGS
  593|    154|      EXV_WARNING << "Unable to find XMP embedding trailer ending at position: " << posXmpTrailerEnd << "\n";
  ------------------
  |  |  138|    154|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 154]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    154|  LogMsg(LogMsg::warn).os()
  ------------------
  594|    154|#endif
  595|    154|      if (write)
  ------------------
  |  Branch (595:11): [True: 0, False: 154]
  ------------------
  596|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  597|    154|      break;
  598|    154|    }
  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.24k|  std::string line;
  610|  1.24k|  readLine(line, data, posContainsXmp, posEndEps);
  611|  1.24k|  bool containsXmp;
  612|  1.24k|  if (line == "%ADO_ContainsXMP: MainFirst" || line == "%ADO_ContainsXMP:MainFirst") {
  ------------------
  |  Branch (612:7): [True: 231, False: 1.01k]
  |  Branch (612:48): [True: 32, False: 979]
  ------------------
  613|     34|    containsXmp = true;
  614|  1.20k|  } else if (line.empty() || line == "%ADO_ContainsXMP: NoMain" || line == "%ADO_ContainsXMP:NoMain") {
  ------------------
  |  Branch (614:14): [True: 1.15k, False: 49]
  |  Branch (614:30): [True: 0, False: 49]
  |  Branch (614:68): [True: 1, False: 48]
  ------------------
  615|    931|    containsXmp = false;
  616|    931|  } else {
  617|    277|#ifndef SUPPRESS_WARNINGS
  618|    277|    EXV_WARNING << "Invalid line \"" << line << "\" at position: " << posContainsXmp << "\n";
  ------------------
  |  |  138|    277|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 277]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    277|  LogMsg(LogMsg::warn).os()
  ------------------
  619|    277|#endif
  620|    277|    throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (620:17): [True: 0, False: 277]
  ------------------
  621|    277|  }
  622|       |
  623|    965|  const bool deleteXmp = (write && xmpPacket.empty());
  ------------------
  |  Branch (623:27): [True: 0, False: 965]
  |  Branch (623:36): [True: 0, False: 0]
  ------------------
  624|    965|  bool fixBeginXmlPacket = false;
  625|    965|  bool useFlexibleEmbedding = false;
  626|    965|  size_t xmpPos = posEndEps;
  627|    965|  size_t xmpSize = 0;
  628|    965|  if (containsXmp) {
  ------------------
  |  Branch (628:7): [True: 34, False: 931]
  ------------------
  629|       |    // search for XMP metadata
  630|     34|    findXmp(xmpPos, xmpSize, data, posEps, posEndEps, write);
  631|     34|    if (xmpPos == posEndEps) {
  ------------------
  |  Branch (631:9): [True: 11, False: 23]
  ------------------
  632|     11|#ifndef SUPPRESS_WARNINGS
  633|     11|      EXV_WARNING << "Unable to find XMP metadata as announced at position: " << posContainsXmp << "\n";
  ------------------
  |  |  138|     11|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 11]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     11|  LogMsg(LogMsg::warn).os()
  ------------------
  634|     11|#endif
  635|     11|    }
  636|       |    // check embedding of XMP metadata
  637|     34|    const size_t posLineAfterXmp = readLine(line, data, xmpPos + xmpSize, posEndEps);
  638|     34|    if (!line.empty()) {
  ------------------
  |  Branch (638:9): [True: 8, False: 26]
  ------------------
  639|      8|#ifndef SUPPRESS_WARNINGS
  640|      8|      EXV_WARNING << "Unexpected " << line.size() << " bytes of data after XMP at position: " << (xmpPos + xmpSize)
  ------------------
  |  |  138|      8|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 8]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      8|  LogMsg(LogMsg::warn).os()
  ------------------
  641|      0|                  << "\n";
  642|      8|#endif
  643|     26|    } else if (!deleteXmp) {
  ------------------
  |  Branch (643:16): [True: 20, False: 6]
  ------------------
  644|     20|      readLine(line, data, posLineAfterXmp, posEndEps);
  645|     20|      if (line == "% &&end XMP packet marker&&" || line == "%  &&end XMP packet marker&&") {
  ------------------
  |  Branch (645:11): [True: 3, False: 17]
  |  Branch (645:52): [True: 0, False: 17]
  ------------------
  646|      3|        useFlexibleEmbedding = true;
  647|      3|      }
  648|     20|    }
  649|     34|  }
  650|    965|  if (useFlexibleEmbedding) {
  ------------------
  |  Branch (650:7): [True: 3, False: 962]
  ------------------
  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|    965|  if (!useFlexibleEmbedding) {
  ------------------
  |  Branch (672:7): [True: 956, False: 9]
  ------------------
  673|       |    // check if there are irremovable XMP metadata blocks before EndPageSetup
  674|    956|    size_t posOtherXmp = containsXmp ? xmpPos : posEps;
  ------------------
  |  Branch (674:26): [True: 25, False: 931]
  ------------------
  675|    956|    size_t sizeOtherXmp = 0;
  676|  2.23k|    for (;;) {
  677|  2.23k|      findXmp(posOtherXmp, sizeOtherXmp, data, posOtherXmp + sizeOtherXmp, posEndPageSetup, write);
  678|  2.23k|      if (posOtherXmp >= posEndPageSetup)
  ------------------
  |  Branch (678:11): [True: 838, False: 1.39k]
  ------------------
  679|    838|        break;
  680|  1.39k|      bool isRemovableEmbedding = false;
  681|  17.7k|      for (const auto& [r, s] : removableEmbeddings) {
  ------------------
  |  Branch (681:31): [True: 17.7k, False: 118]
  ------------------
  682|  17.7k|        if (r <= posOtherXmp && posOtherXmp < s) {
  ------------------
  |  Branch (682:13): [True: 17.5k, False: 167]
  |  Branch (682:33): [True: 1.27k, False: 16.2k]
  ------------------
  683|  1.27k|          isRemovableEmbedding = true;
  684|  1.27k|          break;
  685|  1.27k|        }
  686|  17.7k|      }
  687|  1.39k|      if (!isRemovableEmbedding) {
  ------------------
  |  Branch (687:11): [True: 22, False: 1.37k]
  ------------------
  688|     22|#ifndef SUPPRESS_WARNINGS
  689|     22|        EXV_WARNING << "XMP metadata block is not removable at position: " << posOtherXmp << "\n";
  ------------------
  |  |  138|     22|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 22]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     22|  LogMsg(LogMsg::warn).os()
  ------------------
  690|     22|#endif
  691|     22|        if (write)
  ------------------
  |  Branch (691:13): [True: 0, False: 22]
  ------------------
  692|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  693|     22|        break;
  694|     22|      }
  695|  1.39k|    }
  696|    956|  }
  697|       |
  698|    965|  if (!write) {
  ------------------
  |  Branch (698:7): [True: 863, False: 102]
  ------------------
  699|       |    // copy XMP metadata
  700|    863|    xmpPacket.assign(reinterpret_cast<const char*>(data + xmpPos), xmpSize);
  701|       |
  702|       |    // native previews
  703|    863|    nativePreviews.clear();
  704|    863|    if (posAi7ThumbnailEndData != posEndEps) {
  ------------------
  |  Branch (704:9): [True: 69, False: 794]
  ------------------
  705|     69|      NativePreview nativePreview;
  706|     69|      std::string dummy;
  707|     69|      std::string lineAi7Thumbnail;
  708|     69|      const size_t posBeginData = readLine(lineAi7Thumbnail, data, posAi7Thumbnail, posEndEps);
  709|     69|      std::istringstream lineStreamAi7Thumbnail(lineAi7Thumbnail);
  710|     69|      lineStreamAi7Thumbnail >> dummy;
  711|     69|      lineStreamAi7Thumbnail >> nativePreview.width_;
  712|     69|      lineStreamAi7Thumbnail >> nativePreview.height_;
  713|     69|      std::string depthStr;
  714|     69|      lineStreamAi7Thumbnail >> depthStr;
  715|     69|      std::string lineBeginData;
  716|     69|      const size_t posAfterBeginData = readLine(lineBeginData, data, posBeginData, posEndEps);
  717|     69|      std::istringstream lineStreamBeginData(lineBeginData);
  718|     69|      std::string beginData;
  719|     69|      lineStreamBeginData >> beginData;
  720|     69|      lineStreamBeginData >> dummy;
  721|     69|      std::string type;
  722|     69|      lineStreamBeginData >> type;
  723|     69|      nativePreview.position_ = static_cast<long>(posAfterBeginData);
  724|     69|      nativePreview.size_ = static_cast<uint32_t>(posAi7ThumbnailEndData - posAfterBeginData);
  725|     69|      nativePreview.filter_ = "hex-ai7thumbnail-pnm";
  726|     69|      nativePreview.mimeType_ = "image/x-portable-anymap";
  727|     69|      if (depthStr != "8") {
  ------------------
  |  Branch (727:11): [True: 69, False: 0]
  ------------------
  728|     69|#ifndef SUPPRESS_WARNINGS
  729|     69|        EXV_WARNING << "Unable to handle Illustrator thumbnail depth: " << depthStr << "\n";
  ------------------
  |  |  138|     69|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 69]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     69|  LogMsg(LogMsg::warn).os()
  ------------------
  730|     69|#endif
  731|     69|      } 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|     69|    }
  743|    863|    if (posEndPhotoshop != posEndEps) {
  ------------------
  |  Branch (743:9): [True: 20, False: 843]
  ------------------
  744|     20|      auto sizePhotoshop = posEndPhotoshop - posBeginPhotoshop;
  745|     20|      NativePreview nativePreview{posBeginPhotoshop, sizePhotoshop, 0, 0, "hex-irb", "image/jpeg"};
  746|     20|      nativePreviews.push_back(std::move(nativePreview));
  747|     20|    }
  748|    863|    if (sizeWmf != 0) {
  ------------------
  |  Branch (748:9): [True: 0, False: 863]
  ------------------
  749|      0|      NativePreview nativePreview{posWmf, sizeWmf, 0, 0, "", "image/x-wmf"};
  750|      0|      nativePreviews.push_back(std::move(nativePreview));
  751|      0|    }
  752|    863|    if (sizeTiff != 0) {
  ------------------
  |  Branch (752:9): [True: 0, False: 863]
  ------------------
  753|      0|      NativePreview nativePreview{posTiff, sizeTiff, 0, 0, "", "image/tiff"};
  754|      0|      nativePreviews.push_back(std::move(nativePreview));
  755|      0|    }
  756|    863|  } else {
  757|       |    // check for Adobe Illustrator 8.0 or older
  758|    102|    if (illustrator8) {
  ------------------
  |  Branch (758:9): [True: 0, False: 102]
  ------------------
  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|    102|    MemIo tempIo;
  767|    102|    if (!tempIo.isopen()) {
  ------------------
  |  Branch (767:9): [True: 0, False: 102]
  ------------------
  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|    102|    std::vector<size_t> positions;
  779|    102|    positions.push_back(posLanguageLevel);
  780|    102|    positions.push_back(posContainsXmp);
  781|    102|    positions.push_back(posPages);
  782|    102|    positions.push_back(posExiv2Version);
  783|    102|    positions.push_back(posExiv2Website);
  784|    102|    positions.push_back(posEndComments);
  785|    102|    positions.push_back(posPage);
  786|    102|    positions.push_back(posBeginPageSetup);
  787|    102|    positions.push_back(posEndPageSetup);
  788|    102|    positions.push_back(posPageTrailer);
  789|    102|    positions.push_back(posEof);
  790|    102|    positions.push_back(posEndEps);
  791|    102|    if (useFlexibleEmbedding) {
  ------------------
  |  Branch (791:9): [True: 0, False: 102]
  ------------------
  792|      0|      positions.push_back(xmpPos);
  793|      0|    }
  794|    102|    for (const auto& [r, s] : removableEmbeddings) {
  ------------------
  |  Branch (794:29): [True: 0, False: 102]
  ------------------
  795|      0|      positions.push_back(r);
  796|      0|    }
  797|    102|    std::sort(positions.begin(), positions.end());
  798|       |
  799|       |    // assemble result EPS document
  800|    102|    if (dosEps) {
  ------------------
  |  Branch (800:9): [True: 0, False: 102]
  ------------------
  801|       |      // DOS EPS header will be written afterwards
  802|      0|      writeTemp(tempIo, std::string(30, '\x00'));
  803|      0|    }
  804|    102|    const std::string containsXmpLine = deleteXmp ? "%ADO_ContainsXMP: NoMain" : "%ADO_ContainsXMP: MainFirst";
  ------------------
  |  Branch (804:41): [True: 0, False: 102]
  ------------------
  805|    102|    const uint32_t posEpsNew = posTemp(tempIo);
  806|    102|    size_t prevPos = posEps;
  807|    102|    size_t prevSkipPos = prevPos;
  808|    102|    for (const auto& pos : positions) {
  ------------------
  |  Branch (808:26): [True: 0, False: 102]
  ------------------
  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|    102|    const uint32_t posEndEpsNew = posTemp(tempIo);
  986|       |#ifdef DEBUG
  987|       |    EXV_DEBUG << "readWriteEpsMetadata: New EPS size: " << (posEndEpsNew - posEpsNew) << "\n";
  988|       |#endif
  989|    102|    if (dosEps) {
  ------------------
  |  Branch (989:9): [True: 0, False: 102]
  ------------------
  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|    102|    io.close();
 1017|    102|    io.transfer(tempIo);
 1018|    102|  }
 1019|    965|}
epsimage.cpp:_ZN12_GLOBAL__N_18readLineERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKhmm:
  117|   200k|size_t readLine(std::string& line, const byte* data, size_t startPos, size_t size) {
  118|   200k|  line.clear();
  119|   200k|  size_t pos = startPos;
  120|       |  // step through line
  121|  8.82M|  while (pos < size && data[pos] != '\r' && data[pos] != '\n') {
  ------------------
  |  Branch (121:10): [True: 8.82M, False: 1.95k]
  |  Branch (121:24): [True: 8.76M, False: 55.8k]
  |  Branch (121:45): [True: 8.62M, False: 142k]
  ------------------
  122|  8.62M|    line += data[pos];
  123|  8.62M|    pos++;
  124|  8.62M|  }
  125|       |  // skip line ending, if present
  126|   200k|  if (pos >= size)
  ------------------
  |  Branch (126:7): [True: 1.95k, False: 198k]
  ------------------
  127|  1.95k|    return pos;
  128|   198k|  pos++;
  129|   198k|  if (pos >= size)
  ------------------
  |  Branch (129:7): [True: 89, False: 198k]
  ------------------
  130|     89|    return pos;
  131|   198k|  if (data[pos - 1] == '\r' && data[pos] == '\n')
  ------------------
  |  Branch (131:7): [True: 55.8k, False: 142k]
  |  Branch (131:32): [True: 907, False: 54.9k]
  ------------------
  132|    907|    pos++;
  133|   198k|  return pos;
  134|   198k|}
epsimage.cpp:_ZN12_GLOBAL__N_115onlyWhitespacesERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  110|  1.80k|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.80k|  return s.find_first_not_of(" \t") == std::string::npos;
  114|  1.80k|}
epsimage.cpp:_ZN12_GLOBAL__N_112readPrevLineERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKhmm:
  137|    317|size_t readPrevLine(std::string& line, const byte* data, size_t startPos, size_t size) {
  138|    317|  line.clear();
  139|    317|  size_t pos = startPos;
  140|    317|  if (pos > size)
  ------------------
  |  Branch (140:7): [True: 0, False: 317]
  ------------------
  141|      0|    return pos;
  142|       |  // skip line ending of previous line, if present
  143|    317|  if (pos <= 0)
  ------------------
  |  Branch (143:7): [True: 0, False: 317]
  ------------------
  144|      0|    return pos;
  145|    317|  if (data[pos - 1] == '\r' || data[pos - 1] == '\n') {
  ------------------
  |  Branch (145:7): [True: 73, False: 244]
  |  Branch (145:32): [True: 123, False: 121]
  ------------------
  146|    196|    pos--;
  147|    196|    if (pos <= 0)
  ------------------
  |  Branch (147:9): [True: 0, False: 196]
  ------------------
  148|      0|      return pos;
  149|    196|    if (data[pos - 1] == '\r' && data[pos] == '\n') {
  ------------------
  |  Branch (149:9): [True: 31, False: 165]
  |  Branch (149:34): [True: 16, False: 15]
  ------------------
  150|     16|      pos--;
  151|     16|      if (pos <= 0)
  ------------------
  |  Branch (151:11): [True: 0, False: 16]
  ------------------
  152|      0|        return pos;
  153|     16|    }
  154|    196|  }
  155|       |  // step through previous line
  156|  3.99M|  while (pos >= 1 && data[pos - 1] != '\r' && data[pos - 1] != '\n') {
  ------------------
  |  Branch (156:10): [True: 3.99M, False: 1]
  |  Branch (156:22): [True: 3.99M, False: 102]
  |  Branch (156:47): [True: 3.99M, False: 214]
  ------------------
  157|  3.99M|    pos--;
  158|  3.99M|    line += data[pos];
  159|  3.99M|  }
  160|    317|  std::reverse(line.begin(), line.end());
  161|    317|  return pos;
  162|    317|}
epsimage.cpp:_ZN12_GLOBAL__N_17findXmpERmS0_PKhmmb:
  165|  2.26k|void findXmp(size_t& xmpPos, size_t& xmpSize, const byte* data, size_t startPos, size_t size, bool write) {
  166|       |  // search for valid XMP header
  167|  2.26k|  xmpSize = 0;
  168|  1.39M|  for (xmpPos = startPos; xmpPos < size; xmpPos++) {
  ------------------
  |  Branch (168:27): [True: 1.38M, False: 849]
  ------------------
  169|  1.38M|    if (data[xmpPos] != '\x00' && data[xmpPos] != '<')
  ------------------
  |  Branch (169:9): [True: 1.21M, False: 170k]
  |  Branch (169:35): [True: 1.20M, False: 12.5k]
  ------------------
  170|  1.20M|      continue;
  171|  1.46M|    for (auto&& header : xmpHeaders) {
  ------------------
  |  Branch (171:24): [True: 1.46M, False: 182k]
  ------------------
  172|  1.46M|      if (xmpPos + header.size() > size)
  ------------------
  |  Branch (172:11): [True: 28.8k, False: 1.43M]
  ------------------
  173|  28.8k|        continue;
  174|  1.43M|      if (memcmp(data + xmpPos, header.data(), header.size()) != 0)
  ------------------
  |  Branch (174:11): [True: 1.43M, False: 1.41k]
  ------------------
  175|  1.43M|        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|   995k|      for (size_t trailerPos = xmpPos + header.size(); trailerPos < size; trailerPos++) {
  ------------------
  |  Branch (181:56): [True: 995k, False: 52]
  ------------------
  182|   995k|        if (data[trailerPos] != '\x00' && data[trailerPos] != '<')
  ------------------
  |  Branch (182:13): [True: 848k, False: 146k]
  |  Branch (182:43): [True: 836k, False: 12.7k]
  ------------------
  183|   836k|          continue;
  184|   634k|        for (const auto& [trailer, readOnly] : xmpTrailers) {
  ------------------
  |  Branch (184:46): [True: 634k, False: 157k]
  ------------------
  185|   634k|          if (trailerPos + trailer.size() > size)
  ------------------
  |  Branch (185:15): [True: 680, False: 634k]
  ------------------
  186|    680|            continue;
  187|   634k|          if (memcmp(data + trailerPos, trailer.data(), trailer.size()) != 0)
  ------------------
  |  Branch (187:15): [True: 632k, False: 1.36k]
  ------------------
  188|   632k|            continue;
  189|       |#ifdef DEBUG
  190|       |          EXV_DEBUG << "findXmp: Found XMP trailer at position: " << trailerPos << "\n";
  191|       |#endif
  192|       |
  193|  1.36k|          if (readOnly) {
  ------------------
  |  Branch (193:15): [True: 12, False: 1.35k]
  ------------------
  194|     12|#ifndef SUPPRESS_WARNINGS
  195|     12|            EXV_WARNING << "Unable to handle read-only XMP metadata yet. Please provide your "
  ------------------
  |  |  138|     12|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 12]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     12|  LogMsg(LogMsg::warn).os()
  ------------------
  196|      0|                           "sample EPS file to the Exiv2 project: http://dev.exiv2.org/projects/exiv2\n";
  197|     12|#endif
  198|     12|            throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (198:25): [True: 0, False: 12]
  ------------------
  199|     12|          }
  200|       |
  201|       |          // search for end of XMP trailer
  202|   595k|          for (size_t trailerEndPos = trailerPos + trailer.size(); trailerEndPos + xmpTrailerEnd.size() <= size;
  ------------------
  |  Branch (202:68): [True: 595k, False: 38]
  ------------------
  203|   595k|               trailerEndPos++) {
  204|   595k|            if (memcmp(data + trailerEndPos, xmpTrailerEnd.data(), xmpTrailerEnd.size()) == 0) {
  ------------------
  |  Branch (204:17): [True: 1.31k, False: 594k]
  ------------------
  205|  1.31k|              xmpSize = (trailerEndPos + xmpTrailerEnd.size()) - xmpPos;
  206|  1.31k|              return;
  207|  1.31k|            }
  208|   595k|          }
  209|     38|#ifndef SUPPRESS_WARNINGS
  210|     38|          EXV_WARNING << "Found XMP header but incomplete XMP trailer.\n";
  ------------------
  |  |  138|     38|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 38]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     38|  LogMsg(LogMsg::warn).os()
  ------------------
  211|     38|#endif
  212|     38|          throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (212:23): [True: 0, False: 38]
  ------------------
  213|  1.35k|        }
  214|   158k|      }
  215|     52|#ifndef SUPPRESS_WARNINGS
  216|     52|      EXV_WARNING << "Found XMP header but no XMP trailer.\n";
  ------------------
  |  |  138|     52|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 52]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     52|  LogMsg(LogMsg::warn).os()
  ------------------
  217|     52|#endif
  218|     52|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (218:19): [True: 0, False: 52]
  ------------------
  219|  1.41k|    }
  220|   183k|  }
  221|  2.26k|}

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

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

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

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

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

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

_ZN5Exiv25ImageC2ENS_9ImageTypeEtNSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEE:
  140|  33.0k|    io_(std::move(io)), imageType_(type), supportedMetadata_(supportedMetadata) {
  141|  33.0k|}
_ZN5Exiv25ImageD2Ev:
  143|  33.0k|Image::~Image() = default;
_ZN5Exiv25Image14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  145|  2.46k|void Image::printStructure(std::ostream&, PrintStructureOption, size_t /*depth*/) {
  146|  2.46k|  throw Error(ErrorCode::kerUnsupportedImageType, io_->path());
  147|  2.46k|}
_ZN5Exiv25Image12isStringTypeEt:
  149|  20.7k|bool Image::isStringType(uint16_t type) {
  150|  20.7k|  return type == Exiv2::asciiString || type == Exiv2::unsignedByte || type == Exiv2::signedByte ||
  ------------------
  |  Branch (150:10): [True: 735, False: 19.9k]
  |  Branch (150:40): [True: 196, False: 19.7k]
  |  Branch (150:71): [True: 1.95k, False: 17.8k]
  ------------------
  151|  17.8k|         type == Exiv2::undefined;
  ------------------
  |  Branch (151:10): [True: 2.82k, False: 15.0k]
  ------------------
  152|  20.7k|}
_ZN5Exiv25Image11isShortTypeEt:
  153|  10.8k|bool Image::isShortType(uint16_t type) {
  154|  10.8k|  return type == Exiv2::unsignedShort || type == Exiv2::signedShort;
  ------------------
  |  Branch (154:10): [True: 836, False: 10.0k]
  |  Branch (154:42): [True: 1.67k, False: 8.37k]
  ------------------
  155|  10.8k|}
_ZN5Exiv25Image10isLongTypeEt:
  156|  8.37k|bool Image::isLongType(uint16_t type) {
  157|  8.37k|  return type == Exiv2::unsignedLong || type == Exiv2::signedLong;
  ------------------
  |  Branch (157:10): [True: 2.96k, False: 5.41k]
  |  Branch (157:41): [True: 769, False: 4.64k]
  ------------------
  158|  8.37k|}
_ZN5Exiv25Image14isLongLongTypeEt:
  159|     20|bool Image::isLongLongType(uint16_t type) {
  160|     20|  return type == Exiv2::unsignedLongLong || type == Exiv2::signedLongLong;
  ------------------
  |  Branch (160:10): [True: 0, False: 20]
  |  Branch (160:45): [True: 0, False: 20]
  ------------------
  161|     20|}
_ZN5Exiv25Image14isRationalTypeEt:
  162|  3.91k|bool Image::isRationalType(uint16_t type) {
  163|  3.91k|  return type == Exiv2::unsignedRational || type == Exiv2::signedRational;
  ------------------
  |  Branch (163:10): [True: 1.34k, False: 2.56k]
  |  Branch (163:45): [True: 414, False: 2.15k]
  ------------------
  164|  3.91k|}
_ZN5Exiv25Image11is2ByteTypeEt:
  165|  4.76k|bool Image::is2ByteType(uint16_t type) {
  166|  4.76k|  return isShortType(type);
  167|  4.76k|}
_ZN5Exiv25Image11is4ByteTypeEt:
  168|  3.50k|bool Image::is4ByteType(uint16_t type) {
  169|  3.50k|  return isLongType(type) || type == Exiv2::tiffFloat || type == Exiv2::tiffIfd;
  ------------------
  |  Branch (169:10): [True: 1.87k, False: 1.63k]
  |  Branch (169:30): [True: 66, False: 1.56k]
  |  Branch (169:58): [True: 660, False: 905]
  ------------------
  170|  3.50k|}
_ZN5Exiv25Image11is8ByteTypeEt:
  171|    905|bool Image::is8ByteType(uint16_t type) {
  172|    905|  return isRationalType(type) || isLongLongType(type) || type == Exiv2::tiffIfd8 || type == Exiv2::tiffDouble;
  ------------------
  |  Branch (172:10): [True: 885, False: 20]
  |  Branch (172:34): [True: 0, False: 20]
  |  Branch (172:58): [True: 0, False: 20]
  |  Branch (172:85): [True: 20, False: 0]
  ------------------
  173|    905|}
_ZN5Exiv25Image10isPrintXMPEtNS_20PrintStructureOptionE:
  174|  12.3k|bool Image::isPrintXMP(uint16_t type, Exiv2::PrintStructureOption option) {
  175|  12.3k|  return type == 700 && option == kpsXMP;
  ------------------
  |  Branch (175:10): [True: 0, False: 12.3k]
  |  Branch (175:25): [True: 0, False: 0]
  ------------------
  176|  12.3k|}
_ZN5Exiv25Image10isPrintICCEtNS_20PrintStructureOptionE:
  177|  12.3k|bool Image::isPrintICC(uint16_t type, Exiv2::PrintStructureOption option) {
  178|  12.3k|  return type == 0x8773 && option == kpsIccProfile;
  ------------------
  |  Branch (178:10): [True: 1, False: 12.3k]
  |  Branch (178:28): [True: 0, False: 1]
  ------------------
  179|  12.3k|}
_ZN5Exiv25Image19isBigEndianPlatformEv:
  181|  2.57k|bool Image::isBigEndianPlatform() {
  182|  2.57k|  return std::endian::native == std::endian::big;
  183|  2.57k|}
_ZN5Exiv25Image22isLittleEndianPlatformEv:
  184|  15.8k|bool Image::isLittleEndianPlatform() {
  185|  15.8k|  return std::endian::native == std::endian::little;
  186|  15.8k|}
_ZN5Exiv25Image8byteSwapEjb:
  205|  40.7k|uint32_t Image::byteSwap(uint32_t value, bool bSwap) {
  206|       |#ifdef __cpp_lib_byteswap
  207|       |  return bSwap ? std::byteswap(value) : value;
  208|       |#elif defined(_MSC_VER)
  209|       |  return bSwap ? _byteswap_ulong(value) : value;
  210|       |#else
  211|  40.7k|  uint32_t result = 0;
  212|  40.7k|  result |= (value & 0x000000FFU) << 24;
  213|  40.7k|  result |= (value & 0x0000FF00U) << 8;
  214|  40.7k|  result |= (value & 0x00FF0000U) >> 8;
  215|  40.7k|  result |= (value & 0xFF000000U) >> 24;
  216|  40.7k|  return bSwap ? result : value;
  ------------------
  |  Branch (216:10): [True: 30.1k, False: 10.5k]
  ------------------
  217|  40.7k|#endif
  218|  40.7k|}
_ZN5Exiv25Image8byteSwapEtb:
  220|  32.9k|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|  32.9k|  uint16_t result = 0;
  227|  32.9k|  result |= (value & 0x00FFU) << 8;
  228|  32.9k|  result |= (value & 0xFF00U) >> 8;
  229|  32.9k|  return bSwap ? result : value;
  ------------------
  |  Branch (229:10): [True: 25.2k, False: 7.69k]
  ------------------
  230|  32.9k|#endif
  231|  32.9k|}
_ZN5Exiv25Image9byteSwap2ERKNS_7DataBufEmb:
  233|  32.9k|uint16_t Image::byteSwap2(const DataBuf& buf, size_t offset, bool bSwap) {
  234|  32.9k|  uint16_t v = 0;
  235|  32.9k|  auto p = reinterpret_cast<char*>(&v);
  236|  32.9k|  p[0] = buf.read_uint8(offset);
  237|  32.9k|  p[1] = buf.read_uint8(offset + 1);
  238|  32.9k|  return Image::byteSwap(v, bSwap);
  239|  32.9k|}
_ZN5Exiv25Image9byteSwap4ERKNS_7DataBufEmb:
  241|  40.3k|uint32_t Image::byteSwap4(const DataBuf& buf, size_t offset, bool bSwap) {
  242|  40.3k|  uint32_t v = 0;
  243|  40.3k|  auto p = reinterpret_cast<char*>(&v);
  244|  40.3k|  p[0] = buf.read_uint8(offset);
  245|  40.3k|  p[1] = buf.read_uint8(offset + 1);
  246|  40.3k|  p[2] = buf.read_uint8(offset + 2);
  247|  40.3k|  p[3] = buf.read_uint8(offset + 3);
  248|  40.3k|  return Image::byteSwap(v, bSwap);
  249|  40.3k|}
_ZN5Exiv25Image8typeNameEt:
  262|  6.12k|const char* Image::typeName(uint16_t tag) {
  263|       |  //! List of TIFF image tags
  264|  6.12k|  const char* result = nullptr;
  265|  6.12k|  switch (tag) {
  266|     46|    case Exiv2::unsignedByte:
  ------------------
  |  Branch (266:5): [True: 46, False: 6.08k]
  ------------------
  267|     46|      result = "BYTE";
  268|     46|      break;
  269|    159|    case Exiv2::asciiString:
  ------------------
  |  Branch (269:5): [True: 159, False: 5.96k]
  ------------------
  270|    159|      result = "ASCII";
  271|    159|      break;
  272|    417|    case Exiv2::unsignedShort:
  ------------------
  |  Branch (272:5): [True: 417, False: 5.71k]
  ------------------
  273|    417|      result = "SHORT";
  274|    417|      break;
  275|  1.48k|    case Exiv2::unsignedLong:
  ------------------
  |  Branch (275:5): [True: 1.48k, False: 4.64k]
  ------------------
  276|  1.48k|      result = "LONG";
  277|  1.48k|      break;
  278|    671|    case Exiv2::unsignedRational:
  ------------------
  |  Branch (278:5): [True: 671, False: 5.45k]
  ------------------
  279|    671|      result = "RATIONAL";
  280|    671|      break;
  281|    486|    case Exiv2::signedByte:
  ------------------
  |  Branch (281:5): [True: 486, False: 5.64k]
  ------------------
  282|    486|      result = "SBYTE";
  283|    486|      break;
  284|    704|    case Exiv2::undefined:
  ------------------
  |  Branch (284:5): [True: 704, False: 5.42k]
  ------------------
  285|    704|      result = "UNDEFINED";
  286|    704|      break;
  287|    836|    case Exiv2::signedShort:
  ------------------
  |  Branch (287:5): [True: 836, False: 5.29k]
  ------------------
  288|    836|      result = "SSHORT";
  289|    836|      break;
  290|    382|    case Exiv2::signedLong:
  ------------------
  |  Branch (290:5): [True: 382, False: 5.74k]
  ------------------
  291|    382|      result = "SLONG";
  292|    382|      break;
  293|    206|    case Exiv2::signedRational:
  ------------------
  |  Branch (293:5): [True: 206, False: 5.92k]
  ------------------
  294|    206|      result = "SRATIONAL";
  295|    206|      break;
  296|     65|    case Exiv2::tiffFloat:
  ------------------
  |  Branch (296:5): [True: 65, False: 6.06k]
  ------------------
  297|     65|      result = "FLOAT";
  298|     65|      break;
  299|     16|    case Exiv2::tiffDouble:
  ------------------
  |  Branch (299:5): [True: 16, False: 6.11k]
  ------------------
  300|     16|      result = "DOUBLE";
  301|     16|      break;
  302|    659|    case Exiv2::tiffIfd:
  ------------------
  |  Branch (302:5): [True: 659, False: 5.46k]
  ------------------
  303|    659|      result = "IFD";
  304|    659|      break;
  305|      0|    default:
  ------------------
  |  Branch (305:5): [True: 0, False: 6.12k]
  ------------------
  306|      0|      result = "unknown";
  307|      0|      break;
  308|  6.12k|  }
  309|  6.12k|  return result;
  310|  6.12k|}
_ZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcm:
  319|  18.2k|                              bool bSwap, char c, size_t depth) {
  320|  18.2k|  if (depth == 1)
  ------------------
  |  Branch (320:7): [True: 2.09k, False: 16.1k]
  ------------------
  321|  2.09k|    visits.clear();
  322|  18.2k|  bool bFirst = true;
  323|       |
  324|       |  // buffer
  325|  18.2k|  const size_t dirSize = 32;
  326|  18.2k|  DataBuf dir(dirSize);
  327|  18.2k|  const bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (327:23): [True: 16.1k, False: 2.11k]
  |  Branch (327:45): [True: 2.11k, False: 2]
  ------------------
  328|       |
  329|  18.3k|  do {
  330|       |    // Read top of directory
  331|  18.3k|    io.seekOrThrow(start, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  332|  18.3k|    io.readOrThrow(dir.data(), 2, ErrorCode::kerCorruptedMetadata);
  333|  18.3k|    const uint16_t dirLength = byteSwap2(dir, 0, bSwap);
  334|       |    // Prevent infinite loops. (GHSA-m479-7frc-gqqg)
  335|  18.3k|    Internal::enforce(dirLength > 0, ErrorCode::kerCorruptedMetadata);
  336|       |
  337|  18.3k|    if (dirLength > 500)  // tooBig
  ------------------
  |  Branch (337:9): [True: 15, False: 18.3k]
  ------------------
  338|     15|      throw Error(ErrorCode::kerTiffDirectoryTooLarge);
  339|       |
  340|  18.3k|    if (bFirst && bPrint) {
  ------------------
  |  Branch (340:9): [True: 18.1k, False: 168]
  |  Branch (340:19): [True: 18.1k, False: 2]
  ------------------
  341|  18.1k|      out << Internal::indent(depth) << stringFormat("STRUCTURE OF TIFF FILE ({}{}): {}\n", c, c, io.path());
  ------------------
  |  |   18|  18.1k|#define stringFormat std::format
  ------------------
  342|  18.1k|    }
  343|       |
  344|       |    // Read the dictionary
  345|  24.4k|    for (int i = 0; i < dirLength; i++) {
  ------------------
  |  Branch (345:21): [True: 22.2k, False: 2.25k]
  ------------------
  346|  22.2k|      if (visits.contains(io.tell())) {  // #547
  ------------------
  |  Branch (346:11): [True: 15.7k, False: 6.45k]
  ------------------
  347|  15.7k|        throw Error(ErrorCode::kerCorruptedMetadata);
  348|  15.7k|      }
  349|  6.45k|      visits.insert(io.tell());
  350|       |
  351|  6.45k|      if (bFirst && bPrint) {
  ------------------
  |  Branch (351:11): [True: 2.38k, False: 4.07k]
  |  Branch (351:21): [True: 2.38k, False: 0]
  ------------------
  352|  2.38k|        out << Internal::indent(depth) << " address |    tag                              |     "
  353|  2.38k|            << " type |    count |    offset | value\n";
  354|  2.38k|      }
  355|  6.45k|      bFirst = false;
  356|       |
  357|  6.45k|      io.readOrThrow(dir.data(), 12, ErrorCode::kerCorruptedMetadata);
  358|  6.45k|      const uint16_t tag = byteSwap2(dir, 0, bSwap);
  359|  6.45k|      const uint16_t type = byteSwap2(dir, 2, bSwap);
  360|  6.45k|      const uint32_t count = byteSwap4(dir, 4, bSwap);
  361|  6.45k|      const uint32_t offset = byteSwap4(dir, 8, bSwap);
  362|       |
  363|       |      // Break for unknown tag types else we may segfault.
  364|  6.45k|      if (!typeValid(type)) {
  ------------------
  |  Branch (364:11): [True: 231, False: 6.22k]
  ------------------
  365|    231|        EXV_ERROR << "invalid type in tiff structure" << type << '\n';
  ------------------
  |  |  142|    231|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 231]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    231|  LogMsg(LogMsg::error).os()
  ------------------
  366|    231|        throw Error(ErrorCode::kerInvalidTypeValue);
  367|    231|      }
  368|       |
  369|       |      // prepare to print the value
  370|  6.22k|      const uint32_t kount = [=] {
  371|       |        // haul in all the data
  372|  6.22k|        if (isPrintXMP(tag, option))
  373|  6.22k|          return count;
  374|       |        // ditto
  375|  6.22k|        if (isPrintICC(tag, option))
  376|  6.22k|          return count;
  377|       |        // restrict long arrays
  378|  6.22k|        if (isStringType(type)) {
  379|  6.22k|          return std::min(count, 32u);
  380|  6.22k|        }
  381|  6.22k|        return std::min(count, 5u);
  382|  6.22k|      }();
  383|  6.22k|      const uint32_t pad = isStringType(type) ? 1 : 0;
  ------------------
  |  Branch (383:28): [True: 1.43k, False: 4.78k]
  ------------------
  384|  6.22k|      const uint32_t size = [=] {
  385|  6.22k|        if (isStringType(type))
  386|  6.22k|          return 1;
  387|  6.22k|        if (is2ByteType(type))
  388|  6.22k|          return 2;
  389|  6.22k|        if (is4ByteType(type))
  390|  6.22k|          return 4;
  391|  6.22k|        if (is8ByteType(type))
  392|  6.22k|          return 8;
  393|  6.22k|        return 1;
  394|  6.22k|      }();
  395|       |
  396|       |      // if ( offset > io.size() ) offset = 0; // Denial of service?
  397|       |
  398|       |      // #55 and #56 memory allocation crash test/data/POC8
  399|  6.22k|      const uint64_t allocate64 = (size * static_cast<uint64_t>(count)) + pad + 20;
  400|  6.22k|      if (allocate64 > io.size()) {
  ------------------
  |  Branch (400:11): [True: 63, False: 6.15k]
  ------------------
  401|     63|        throw Error(ErrorCode::kerInvalidMalloc);
  402|     63|      }
  403|  6.15k|      DataBuf buf(allocate64);                       // allocate a buffer
  404|  6.15k|      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|  6.15k|      const size_t count_x_size = static_cast<size_t>(count) * size;
  408|  6.15k|      const bool bOffsetIsPointer = count_x_size > 4;
  409|       |
  410|  6.15k|      if (bOffsetIsPointer) {                                                       // read into buffer
  ------------------
  |  Branch (410:11): [True: 2.73k, False: 3.41k]
  ------------------
  411|  2.73k|        const size_t restore = io.tell();                                           // save
  412|  2.73k|        io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);      // position
  413|  2.73k|        io.readOrThrow(buf.data(), count_x_size, ErrorCode::kerCorruptedMetadata);  // read
  414|  2.73k|        io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);     // restore
  415|  2.73k|      }
  416|       |
  417|  6.15k|      if (bPrint) {
  ------------------
  |  Branch (417:11): [True: 6.12k, False: 31]
  ------------------
  418|  6.12k|        const size_t address = start + 2 + (i * 12);
  419|  6.12k|        const std::string offsetString = bOffsetIsPointer ? stringFormat("{:9}", offset) : "";
  ------------------
  |  |   18|  2.73k|#define stringFormat std::format
  ------------------
  |  Branch (419:42): [True: 2.73k, False: 3.39k]
  ------------------
  420|  6.12k|        std::string sp;  // output spacer
  421|       |
  422|  6.12k|        out << Internal::indent(depth)
  423|  6.12k|            << stringFormat("{:8} | {:#06x} {:<28} | {:>9} | {:>8} | {:9} | ", address, tag, tagName(tag),
  ------------------
  |  |   18|  6.12k|#define stringFormat std::format
  ------------------
  424|  6.12k|                            typeName(type), count, offsetString);
  425|  6.12k|        if (isShortType(type)) {
  ------------------
  |  Branch (425:13): [True: 1.25k, False: 4.87k]
  ------------------
  426|  3.01k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (426:30): [True: 1.76k, False: 1.25k]
  ------------------
  427|  1.76k|            out << sp << byteSwap2(buf, k * size, bSwap);
  428|  1.76k|            sp = " ";
  429|  1.76k|          }
  430|  4.87k|        } else if (isLongType(type)) {
  ------------------
  |  Branch (430:20): [True: 1.86k, False: 3.01k]
  ------------------
  431|  6.59k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (431:30): [True: 4.73k, False: 1.86k]
  ------------------
  432|  4.73k|            out << sp << byteSwap4(buf, k * size, bSwap);
  433|  4.73k|            sp = " ";
  434|  4.73k|          }
  435|       |
  436|  3.01k|        } else if (isRationalType(type)) {
  ------------------
  |  Branch (436:20): [True: 877, False: 2.13k]
  ------------------
  437|  2.08k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (437:30): [True: 1.20k, False: 877]
  ------------------
  438|  1.20k|            const uint32_t a = byteSwap4(buf, (k * size) + 0, bSwap);
  439|  1.20k|            const uint32_t b = byteSwap4(buf, (k * size) + 4, bSwap);
  440|  1.20k|            out << sp << a << "/" << b;
  441|  1.20k|            sp = " ";
  442|  1.20k|          }
  443|  2.13k|        } else if (isStringType(type)) {
  ------------------
  |  Branch (443:20): [True: 1.39k, False: 740]
  ------------------
  444|  1.39k|          out << sp << Internal::binaryToString(makeSlice(buf, 0, kount));
  445|  1.39k|        }
  446|       |
  447|  6.12k|        sp = kount == count ? "" : " ...";
  ------------------
  |  Branch (447:14): [True: 4.64k, False: 1.48k]
  ------------------
  448|  6.12k|        out << sp << '\n';
  449|       |
  450|  6.12k|        if (option == kpsRecursive && (tag == 0x8769 /* ExifTag */ || tag == 0x014a /*SubIFDs*/ || type == tiffIfd)) {
  ------------------
  |  Branch (450:13): [True: 5.81k, False: 315]
  |  Branch (450:40): [True: 22, False: 5.79k]
  |  Branch (450:71): [True: 213, False: 5.57k]
  |  Branch (450:100): [True: 646, False: 4.93k]
  ------------------
  451|    894|          for (size_t k = 0; k < count; k++) {
  ------------------
  |  Branch (451:30): [True: 13, False: 881]
  ------------------
  452|     13|            const size_t restore = io.tell();
  453|     13|            const uint32_t offset_inner = byteSwap4(buf, k * size, bSwap);
  454|     13|            printIFDStructure(io, out, option, offset_inner, bSwap, c, depth + 1);
  455|     13|            io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  456|     13|          }
  457|  5.24k|        } else if (option == kpsRecursive && tag == 0x83bb /* IPTCNAA */) {
  ------------------
  |  Branch (457:20): [True: 4.93k, False: 315]
  |  Branch (457:46): [True: 1.03k, False: 3.89k]
  ------------------
  458|  1.03k|          if (count > 0) {
  ------------------
  |  Branch (458:15): [True: 600, False: 439]
  ------------------
  459|    600|            if (static_cast<size_t>(Safe::add(count, offset)) > io.size()) {
  ------------------
  |  Branch (459:17): [True: 1, False: 599]
  ------------------
  460|      1|              throw Error(ErrorCode::kerCorruptedMetadata);
  461|      1|            }
  462|       |
  463|    599|            const size_t restore = io.tell();
  464|    599|            io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  465|    599|            auto bytes = std::make_unique<byte[]>(count);                           // allocate memory
  466|    599|            io.readOrThrow(bytes.get(), count, ErrorCode::kerCorruptedMetadata);
  467|    599|            io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  468|    599|            IptcData::printStructure(out, makeSliceUntil(bytes.get(), count), depth);
  469|    599|          }
  470|  4.20k|        } else if (option == kpsRecursive && tag == 0x927c /* MakerNote */ && count > 10) {
  ------------------
  |  Branch (470:20): [True: 3.89k, False: 315]
  |  Branch (470:46): [True: 638, False: 3.25k]
  |  Branch (470:79): [True: 2, False: 636]
  ------------------
  471|      2|          const size_t restore = io.tell();  // save
  472|       |
  473|      2|          const uint32_t jump = 10;
  474|      2|          byte bytes[20];
  475|      2|          const auto chars = reinterpret_cast<const char*>(&bytes[0]);
  476|      2|          io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  477|      2|          io.readOrThrow(bytes, jump, ErrorCode::kerCorruptedMetadata);           // read
  478|      2|          bytes[jump] = 0;
  479|       |
  480|      2|          bool bNikon = ::strcmp("Nikon", chars) == 0;
  481|      2|          bool bSony = ::strcmp("SONY DSC ", chars) == 0;
  482|       |
  483|      2|          if (bNikon) {
  ------------------
  |  Branch (483:15): [True: 0, False: 2]
  ------------------
  484|       |            // tag is an embedded tiff
  485|      0|            const uint32_t byteslen = count - jump;
  486|      0|            auto b = DataBuf(byteslen);                                           // allocate a buffer
  487|      0|            io.readOrThrow(b.data(), byteslen, ErrorCode::kerCorruptedMetadata);  // read
  488|      0|            MemIo memIo(b.c_data(), byteslen);                                    // create a file
  489|      0|            printTiffStructure(memIo, out, option, depth + 1);
  490|      2|          } else {
  491|       |            // tag is an IFD
  492|      2|            const uint32_t punt = bSony ? 12 : 0;
  ------------------
  |  Branch (492:35): [True: 1, False: 1]
  ------------------
  493|      2|            io.seekOrThrow(0, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  494|      2|            printIFDStructure(io, out, option, offset + punt, bSwap, c, depth + 1);
  495|      2|          }
  496|       |
  497|      2|          io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // restore
  498|      2|        }
  499|  6.12k|      }
  500|       |
  501|  6.15k|      if (isPrintXMP(tag, option)) {
  ------------------
  |  Branch (501:11): [True: 0, False: 6.15k]
  ------------------
  502|      0|        buf.write_uint8(count, 0);
  503|      0|        out << buf.c_str();
  504|      0|      }
  505|  6.15k|      if (isPrintICC(tag, option)) {
  ------------------
  |  Branch (505:11): [True: 0, False: 6.15k]
  ------------------
  506|      0|        out.write(buf.c_str(), count);
  507|      0|      }
  508|  6.15k|    }
  509|  2.25k|    if (start) {
  ------------------
  |  Branch (509:9): [True: 2.05k, False: 195]
  ------------------
  510|  2.05k|      io.readOrThrow(dir.data(), 4, ErrorCode::kerCorruptedMetadata);
  511|  2.05k|      start = byteSwap4(dir, 0, bSwap);
  512|  2.05k|    }
  513|  2.25k|  } while (start);
  ------------------
  |  Branch (513:12): [True: 21, False: 2.23k]
  ------------------
  514|       |
  515|  2.23k|  if (bPrint) {
  ------------------
  |  Branch (515:7): [True: 2.03k, False: 196]
  ------------------
  516|  2.03k|    out << Internal::indent(depth) << "END " << io.path() << '\n';
  517|  2.03k|  }
  518|  2.23k|  out.flush();
  519|  2.23k|}
_ZN5Exiv25Image18printTiffStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmm:
  522|  34.4k|                               size_t offset /*=0*/) {
  523|  34.4k|  if (option == kpsBasic || option == kpsXMP || option == kpsRecursive || option == kpsIccProfile) {
  ------------------
  |  Branch (523:7): [True: 16.1k, False: 18.3k]
  |  Branch (523:29): [True: 2, False: 18.2k]
  |  Branch (523:49): [True: 2.11k, False: 16.1k]
  |  Branch (523:75): [True: 0, False: 16.1k]
  ------------------
  524|       |    // buffer
  525|  18.3k|    const size_t dirSize = 32;
  526|  18.3k|    DataBuf dir(dirSize);
  527|       |
  528|       |    // read header (we already know for certain that we have a Tiff file)
  529|  18.3k|    io.readOrThrow(dir.data(), 8, ErrorCode::kerCorruptedMetadata);
  530|  18.3k|    auto c = dir.read_uint8(0);
  531|  18.3k|    bool bSwap = (c == 'M' && isLittleEndianPlatform()) || (c == 'I' && isBigEndianPlatform());
  ------------------
  |  Branch (531:19): [True: 15.8k, False: 2.47k]
  |  Branch (531:31): [True: 15.8k, False: 0]
  |  Branch (531:61): [True: 2.44k, False: 12]
  |  Branch (531:73): [True: 0, False: 2.44k]
  ------------------
  532|  18.3k|    size_t start = byteSwap4(dir, 4, bSwap);
  533|  18.3k|    printIFDStructure(io, out, option, start + offset, bSwap, c, depth);
  534|  18.3k|  }
  535|  34.4k|}
_ZN5Exiv25Image13clearMetadataEv:
  537|  31.5k|void Image::clearMetadata() {
  538|  31.5k|  clearExifData();
  539|  31.5k|  clearIptcData();
  540|  31.5k|  clearXmpPacket();
  541|  31.5k|  clearXmpData();
  542|  31.5k|  clearComment();
  543|  31.5k|  clearIccProfile();
  544|  31.5k|}
_ZN5Exiv25Image8exifDataEv:
  546|   660k|ExifData& Image::exifData() {
  547|   660k|  return exifData_;
  548|   660k|}
_ZN5Exiv25Image8iptcDataEv:
  550|  49.0k|IptcData& Image::iptcData() {
  551|  49.0k|  return iptcData_;
  552|  49.0k|}
_ZN5Exiv25Image7xmpDataEv:
  554|  58.2k|XmpData& Image::xmpData() {
  555|  58.2k|  return xmpData_;
  556|  58.2k|}
_ZN5Exiv25Image9xmpPacketEv:
  558|    127|std::string& Image::xmpPacket() {
  559|       |  // Serialize the current XMP
  560|    127|  if (!xmpData_.empty() && !writeXmpFromPacket()) {
  ------------------
  |  Branch (560:7): [True: 0, False: 127]
  |  Branch (560:28): [True: 0, False: 0]
  ------------------
  561|      0|    XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting);
  562|      0|  }
  563|    127|  return xmpPacket_;
  564|    127|}
_ZN5Exiv25Image13clearExifDataEv:
  586|  31.5k|void Image::clearExifData() {
  587|  31.5k|  exifData_.clear();
  588|  31.5k|}
_ZN5Exiv25Image13clearIptcDataEv:
  594|  31.5k|void Image::clearIptcData() {
  595|  31.5k|  iptcData_.clear();
  596|  31.5k|}
_ZN5Exiv25Image14clearXmpPacketEv:
  602|  31.5k|void Image::clearXmpPacket() {
  603|  31.5k|  xmpPacket_.clear();
  604|       |  // Also clear the packet cached inside xmpData_. Some formats (e.g. TIFF, where
  605|       |  // XMP is stored in the Exif.Image.XMLPacket tag) write XMP from xmpData_'s
  606|       |  // packet when writeXmpFromPacket() is set. Without this, a stale packet would
  607|       |  // survive and the XMP would not be erased (e.g. "exiv2 -dx" on a TIFF).
  608|  31.5k|  xmpData_.setPacket(std::string());
  609|  31.5k|  writeXmpFromPacket(true);
  610|  31.5k|}
_ZN5Exiv25Image12clearXmpDataEv:
  619|  31.5k|void Image::clearXmpData() {
  620|  31.5k|  xmpData_.clear();
  621|  31.5k|  writeXmpFromPacket(false);
  622|  31.5k|}
_ZN5Exiv25Image18writeXmpFromPacketEb:
  630|  63.0k|void Image::writeXmpFromPacket(bool flag) {
  631|  63.0k|  writeXmpFromPacket_ = flag;
  632|  63.0k|}
_ZN5Exiv25Image12clearCommentEv:
  638|  31.5k|void Image::clearComment() {
  639|  31.5k|  comment_.erase();
  640|  31.5k|}
_ZN5Exiv25Image10setCommentERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  642|     58|void Image::setComment(const std::string& comment) {
  643|     58|  comment_ = comment;
  644|     58|}
_ZN5Exiv25Image13setIccProfileEONS_7DataBufEb:
  646|    263|void Image::setIccProfile(Exiv2::DataBuf&& iccProfile, bool bTestValid) {
  647|    263|  iccProfile_ = std::move(iccProfile);
  648|    263|  if (bTestValid) {
  ------------------
  |  Branch (648:7): [True: 263, False: 0]
  ------------------
  649|    263|    checkIccProfile();
  650|    263|  }
  651|    263|}
_ZN5Exiv25Image16appendIccProfileEPKhmb:
  653|  1.45k|void Image::appendIccProfile(const uint8_t* bytes, size_t size, bool bTestValid) {
  654|  1.45k|  if (size == 0) {
  ------------------
  |  Branch (654:7): [True: 111, False: 1.34k]
  ------------------
  655|    111|    return;
  656|    111|  }
  657|  1.34k|  const size_t start = iccProfile_.size();
  658|  1.34k|  iccProfile_.resize(Safe::add(start, size));
  659|  1.34k|  memcpy(iccProfile_.data(start), bytes, size);
  660|  1.34k|  if (bTestValid) {
  ------------------
  |  Branch (660:7): [True: 21, False: 1.32k]
  ------------------
  661|     21|    checkIccProfile();
  662|     21|  }
  663|  1.34k|}
_ZNK5Exiv25Image15checkIccProfileEv:
  665|    284|void Image::checkIccProfile() const {
  666|    284|  if (iccProfile_.size() < sizeof(long)) {
  ------------------
  |  Branch (666:7): [True: 5, False: 279]
  ------------------
  667|      5|    throw Error(ErrorCode::kerInvalidIccProfile);
  668|      5|  }
  669|    279|  const size_t size = iccProfile_.read_uint32(0, bigEndian);
  670|    279|  if (size != iccProfile_.size()) {
  ------------------
  |  Branch (670:7): [True: 8, False: 271]
  ------------------
  671|      8|    throw Error(ErrorCode::kerInvalidIccProfile);
  672|      8|  }
  673|    279|}
_ZN5Exiv25Image15clearIccProfileEv:
  675|  31.5k|void Image::clearIccProfile() {
  676|  31.5k|  iccProfile_.reset();
  677|  31.5k|}
_ZN5Exiv25Image12setByteOrderENS_9ByteOrderE:
  679|  18.4k|void Image::setByteOrder(ByteOrder byteOrder) {
  680|  18.4k|  byteOrder_ = byteOrder;
  681|  18.4k|}
_ZNK5Exiv25Image9byteOrderEv:
  683|  1.23k|ByteOrder Image::byteOrder() const {
  684|  1.23k|  return byteOrder_;
  685|  1.23k|}
_ZNK5Exiv25Image10pixelWidthEv:
  687|    386|uint32_t Image::pixelWidth() const {
  688|    386|  return pixelWidth_;
  689|    386|}
_ZNK5Exiv25Image11pixelHeightEv:
  691|    386|uint32_t Image::pixelHeight() const {
  692|    386|  return pixelHeight_;
  693|    386|}
_ZNK5Exiv25Image8exifDataEv:
  695|  94.5k|const ExifData& Image::exifData() const {
  696|  94.5k|  return exifData_;
  697|  94.5k|}
_ZNK5Exiv25Image7xmpDataEv:
  703|  2.29k|const XmpData& Image::xmpData() const {
  704|  2.29k|  return xmpData_;
  705|  2.29k|}
_ZNK5Exiv25Image7commentEv:
  707|    181|std::string Image::comment() const {
  708|    181|  return comment_;
  709|    181|}
_ZNK5Exiv25Image2ioEv:
  715|  42.0k|BasicIo& Image::io() const {
  716|  42.0k|  return *io_;
  717|  42.0k|}
_ZNK5Exiv25Image18writeXmpFromPacketEv:
  719|  7.81k|bool Image::writeXmpFromPacket() const {
  720|  7.81k|  return writeXmpFromPacket_;
  721|  7.81k|}
_ZNK5Exiv25Image14nativePreviewsEv:
  723|  9.48k|const NativePreviewList& Image::nativePreviews() const {
  724|  9.48k|  return nativePreviews_;
  725|  9.48k|}
_ZNK5Exiv25Image4goodEv:
  727|  32.9k|bool Image::good() const {
  728|  32.9k|  if (io_->open() != 0)
  ------------------
  |  Branch (728:7): [True: 0, False: 32.9k]
  ------------------
  729|      0|    return false;
  730|  32.9k|  IoCloser closer(*io_);
  731|  32.9k|  return ImageFactory::checkType(imageType_, *io_, false);
  732|  32.9k|}
_ZN5Exiv25Image7tagNameEt:
  743|  6.12k|const std::string& Image::tagName(uint16_t tag) {
  744|  6.12k|  if (init_) {
  ------------------
  |  Branch (744:7): [True: 205, False: 5.92k]
  ------------------
  745|    205|    int idx;
  746|    205|    const TagInfo* ti;
  747|    615|    for (ti = Internal::mnTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (747:47): [True: 410, False: 205]
  ------------------
  748|    410|      tags_[ti[idx].tag_] = ti[idx].name_;
  749|  1.23k|    for (ti = Internal::iopTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (749:48): [True: 1.02k, False: 205]
  ------------------
  750|  1.02k|      tags_[ti[idx].tag_] = ti[idx].name_;
  751|  6.76k|    for (ti = Internal::gpsTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (751:48): [True: 6.56k, False: 205]
  ------------------
  752|  6.56k|      tags_[ti[idx].tag_] = ti[idx].name_;
  753|  52.6k|    for (ti = Internal::ifdTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (753:48): [True: 52.4k, False: 205]
  ------------------
  754|  52.4k|      tags_[ti[idx].tag_] = ti[idx].name_;
  755|  19.8k|    for (ti = Internal::exifTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (755:49): [True: 19.6k, False: 205]
  ------------------
  756|  19.6k|      tags_[ti[idx].tag_] = ti[idx].name_;
  757|  4.10k|    for (ti = Internal::mpfTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (757:48): [True: 3.89k, False: 205]
  ------------------
  758|  3.89k|      tags_[ti[idx].tag_] = ti[idx].name_;
  759|  3.48k|    for (ti = Internal::Nikon1MakerNote::tagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (759:62): [True: 3.28k, False: 205]
  ------------------
  760|  3.28k|      tags_[ti[idx].tag_] = ti[idx].name_;
  761|    205|  }
  762|  6.12k|  init_ = false;
  763|       |
  764|  6.12k|  return tags_[tag];
  765|  6.12k|}
_ZN5Exiv212ImageFactory9checkTypeENS_9ImageTypeERNS_7BasicIoEb:
  782|  32.9k|bool ImageFactory::checkType(ImageType type, BasicIo& io, bool advance) {
  783|  32.9k|  if (auto r = Exiv2::find(registry, type))
  ------------------
  |  Branch (783:12): [True: 32.9k, False: 0]
  ------------------
  784|  32.9k|    return r->isThisType_(io, advance);
  785|      0|  return false;
  786|  32.9k|}
_ZN5Exiv212ImageFactory4openEPKhm:
  868|  33.4k|Image::UniquePtr ImageFactory::open(const byte* data, size_t size) {
  869|  33.4k|  auto image = open(std::make_unique<MemIo>(data, size));  // may throw
  870|  33.4k|  if (!image)
  ------------------
  |  Branch (870:7): [True: 363, False: 33.0k]
  ------------------
  871|    363|    throw Error(ErrorCode::kerMemoryContainsUnknownImageType);
  872|  33.0k|  return image;
  873|  33.4k|}
_ZN5Exiv212ImageFactory4openENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  875|  33.4k|Image::UniquePtr ImageFactory::open(BasicIo::UniquePtr io) {
  876|  33.4k|  if (io->open() != 0) {
  ------------------
  |  Branch (876:7): [True: 0, False: 33.4k]
  ------------------
  877|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io->path(), strError());
  878|      0|  }
  879|   483k|  for (const auto& r : registry) {
  ------------------
  |  Branch (879:22): [True: 483k, False: 482]
  ------------------
  880|   483k|    if (r.isThisType_(*io, false)) {
  ------------------
  |  Branch (880:9): [True: 32.9k, False: 450k]
  ------------------
  881|  32.9k|      return r.newInstance_(std::move(io), false);
  882|  32.9k|    }
  883|   483k|  }
  884|    482|  return nullptr;
  885|  33.4k|}
_ZN5Exiv26appendERNSt3__16vectorIhNS0_9allocatorIhEEEEPKhm:
  923|  65.6k|void append(Blob& blob, const byte* buf, size_t len) {
  924|  65.6k|  if (len != 0) {
  ------------------
  |  Branch (924:7): [True: 64.9k, False: 696]
  ------------------
  925|  64.9k|    Blob::size_type size = blob.size();
  926|  64.9k|    if (blob.capacity() - size < len) {
  ------------------
  |  Branch (926:9): [True: 4.62k, False: 60.3k]
  ------------------
  927|  4.62k|      blob.reserve(size + 65536);
  928|  4.62k|    }
  929|  64.9k|    blob.resize(size + len);
  930|  64.9k|    std::copy_n(buf, len, blob.begin() + size);
  931|  64.9k|  }
  932|  65.6k|}  // append
image.cpp:_ZN5Exiv2L9typeValidEt:
  312|  6.42k|static bool typeValid(uint16_t type) {
  313|  6.42k|  return type >= 1 && type <= 13;
  ------------------
  |  Branch (313:10): [True: 6.37k, False: 53]
  |  Branch (313:23): [True: 6.19k, False: 178]
  ------------------
  314|  6.42k|}
image.cpp:_ZZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcmENK3$_0clEv:
  370|  6.19k|      const uint32_t kount = [=] {
  371|       |        // haul in all the data
  372|  6.19k|        if (isPrintXMP(tag, option))
  ------------------
  |  Branch (372:13): [True: 0, False: 6.19k]
  ------------------
  373|      0|          return count;
  374|       |        // ditto
  375|  6.19k|        if (isPrintICC(tag, option))
  ------------------
  |  Branch (375:13): [True: 0, False: 6.19k]
  ------------------
  376|      0|          return count;
  377|       |        // restrict long arrays
  378|  6.19k|        if (isStringType(type)) {
  ------------------
  |  Branch (378:13): [True: 1.43k, False: 4.76k]
  ------------------
  379|  1.43k|          return std::min(count, 32u);
  380|  1.43k|        }
  381|  4.76k|        return std::min(count, 5u);
  382|  6.19k|      }();
image.cpp:_ZZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcmENK3$_1clEv:
  384|  6.19k|      const uint32_t size = [=] {
  385|  6.19k|        if (isStringType(type))
  ------------------
  |  Branch (385:13): [True: 1.43k, False: 4.76k]
  ------------------
  386|  1.43k|          return 1;
  387|  4.76k|        if (is2ByteType(type))
  ------------------
  |  Branch (387:13): [True: 1.25k, False: 3.50k]
  ------------------
  388|  1.25k|          return 2;
  389|  3.50k|        if (is4ByteType(type))
  ------------------
  |  Branch (389:13): [True: 2.59k, False: 905]
  ------------------
  390|  2.59k|          return 4;
  391|    905|        if (is8ByteType(type))
  ------------------
  |  Branch (391:13): [True: 905, False: 0]
  ------------------
  392|    905|          return 8;
  393|      0|        return 1;
  394|    905|      }();
image.cpp:_ZNK12_GLOBAL__N_18RegistryeqERKN5Exiv29ImageTypeE:
   66|   471k|  bool operator==(const ImageType& imageType) const {
   67|   471k|    return imageType == imageType_;
   68|   471k|  }

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

_ZN5Exiv28Internal14binaryToStringIPhEEDaONS_5SliceIT_EE:
   95|  34.6k|constexpr auto binaryToString(Slice<T>&& sl) noexcept {
   96|  34.6k|  return binaryToStringHelper<T>(std::move(sl));
   97|  34.6k|}
_ZN5Exiv28Internal20binaryToStringHelperIPhEC2EONS_5SliceIS2_EE:
   64|  34.6k|  explicit constexpr binaryToStringHelper(Slice<T>&& myBuf) noexcept : buf_(std::move(myBuf)) {
   65|  34.6k|  }
_ZN5Exiv28InternallsIPhEERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEES8_RKNS0_20binaryToStringHelperIT_EE:
   49|  34.6k|std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper<T>& binToStr) noexcept {
   50|   801k|  for (size_t i = 0; i < binToStr.buf_.size(); ++i) {
  ------------------
  |  Branch (50:22): [True: 766k, False: 34.6k]
  ------------------
   51|   766k|    auto c = static_cast<unsigned char>(binToStr.buf_.at(i));
   52|   766k|    if (c != 0 || i != binToStr.buf_.size() - 1) {
  ------------------
  |  Branch (52:9): [True: 587k, False: 178k]
  |  Branch (52:19): [True: 163k, False: 15.6k]
  ------------------
   53|   750k|      if (c < 32 || c > 126)
  ------------------
  |  Branch (53:11): [True: 224k, False: 526k]
  |  Branch (53:21): [True: 83.9k, False: 442k]
  ------------------
   54|   308k|        stream.put('.');
   55|   442k|      else
   56|   442k|        stream.put(static_cast<char>(c));
   57|   750k|    }
   58|   766k|  }
   59|  34.6k|  return stream;
   60|  34.6k|}
_ZN5Exiv28Internal14binaryToStringIKNS_5SliceIPhEEEEDaONS2_IT_EE:
   95|  1.20k|constexpr auto binaryToString(Slice<T>&& sl) noexcept {
   96|  1.20k|  return binaryToStringHelper<T>(std::move(sl));
   97|  1.20k|}
_ZN5Exiv28Internal20binaryToStringHelperIKNS_5SliceIPhEEEC2EONS2_IS5_EE:
   64|  1.20k|  explicit constexpr binaryToStringHelper(Slice<T>&& myBuf) noexcept : buf_(std::move(myBuf)) {
   65|  1.20k|  }
_ZN5Exiv28InternallsIKNS_5SliceIPhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS0_20binaryToStringHelperIT_EE:
   49|  1.20k|std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper<T>& binToStr) noexcept {
   50|  8.09k|  for (size_t i = 0; i < binToStr.buf_.size(); ++i) {
  ------------------
  |  Branch (50:22): [True: 6.89k, False: 1.20k]
  ------------------
   51|  6.89k|    auto c = static_cast<unsigned char>(binToStr.buf_.at(i));
   52|  6.89k|    if (c != 0 || i != binToStr.buf_.size() - 1) {
  ------------------
  |  Branch (52:9): [True: 4.81k, False: 2.07k]
  |  Branch (52:19): [True: 1.54k, False: 529]
  ------------------
   53|  6.36k|      if (c < 32 || c > 126)
  ------------------
  |  Branch (53:11): [True: 2.39k, False: 3.96k]
  |  Branch (53:21): [True: 874, False: 3.09k]
  ------------------
   54|  3.26k|        stream.put('.');
   55|  3.09k|      else
   56|  3.09k|        stream.put(static_cast<char>(c));
   57|  6.36k|    }
   58|  6.89k|  }
   59|  1.20k|  return stream;
   60|  1.20k|}

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

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

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

_ZN5Exiv28JpegBaseC2ENS_9ImageTypeENSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEEbPKhm:
  116|  1.72k|    Image(type, mdExif | mdIptc | mdXmp | mdComment, std::move(io)) {
  117|  1.72k|  if (create) {
  ------------------
  |  Branch (117:7): [True: 0, False: 1.72k]
  ------------------
  118|      0|    initImage(initData, dataSize);
  119|      0|  }
  120|  1.72k|}
_ZNK5Exiv28JpegBase15advanceToMarkerENS_9ErrorCodeE:
  133|   248k|byte JpegBase::advanceToMarker(ErrorCode err) const {
  134|   248k|  int c = -1;
  135|       |  // Skips potential padding between markers
  136|  11.3M|  while ((c = io_->getb()) != 0xff) {
  ------------------
  |  Branch (136:10): [True: 11.0M, False: 248k]
  ------------------
  137|  11.0M|    if (c == EOF)
  ------------------
  |  Branch (137:9): [True: 473, False: 11.0M]
  ------------------
  138|    473|      throw Error(err);
  139|  11.0M|  }
  140|       |
  141|       |  // Markers can start with any number of 0xff
  142|   288k|  while ((c = io_->getb()) == 0xff) {
  ------------------
  |  Branch (142:10): [True: 40.1k, False: 248k]
  ------------------
  143|  40.1k|  }
  144|   248k|  if (c == EOF)
  ------------------
  |  Branch (144:7): [True: 35, False: 248k]
  ------------------
  145|     35|    throw Error(err);
  146|       |
  147|   248k|  return static_cast<byte>(c);
  148|   248k|}
_ZN5Exiv28JpegBase12readMetadataEv:
  150|  2.56k|void JpegBase::readMetadata() {
  151|  2.56k|  int rc = 0;  // Todo: this should be the return value
  152|       |
  153|  2.56k|  if (io_->open() != 0)
  ------------------
  |  Branch (153:7): [True: 0, False: 2.56k]
  ------------------
  154|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  155|  2.56k|  IoCloser closer(*io_);
  156|       |  // Ensure that this is the correct image type
  157|  2.56k|  if (!isThisType(*io_, true)) {
  ------------------
  |  Branch (157:7): [True: 100, False: 2.46k]
  ------------------
  158|    100|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (158:9): [True: 0, False: 100]
  |  Branch (158:25): [True: 0, False: 100]
  ------------------
  159|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  160|    100|    throw Error(ErrorCode::kerNotAJpeg);
  161|    100|  }
  162|  2.46k|  clearMetadata();
  163|  2.46k|  int search = 6;  // Exif, ICC, XMP, Comment, IPTC, SOF
  164|  2.46k|  Blob psBlob;
  165|  2.46k|  bool foundCompletePsData = false;
  166|  2.46k|  bool foundExifData = false;
  167|  2.46k|  bool foundXmpData = false;
  168|  2.46k|  bool foundIccData = false;
  169|       |
  170|       |  // Read section marker
  171|  2.46k|  byte marker = advanceToMarker(ErrorCode::kerNotAJpeg);
  172|       |
  173|  63.9k|  while (marker != sos_ && marker != eoi_ && search > 0) {
  ------------------
  |  Branch (173:10): [True: 63.5k, False: 333]
  |  Branch (173:28): [True: 62.0k, False: 1.55k]
  |  Branch (173:46): [True: 62.0k, False: 11]
  ------------------
  174|  62.0k|    const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  175|       |
  176|       |    // Read the rest of the segment.
  177|  62.0k|    DataBuf buf(size);
  178|       |    // check if the segment is not empty
  179|  62.0k|    if (size > 2) {
  ------------------
  |  Branch (179:9): [True: 54.9k, False: 7.05k]
  ------------------
  180|  54.9k|      io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  181|  54.9k|      std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  182|  54.9k|    }
  183|       |
  184|  62.0k|    if (auto itSofMarker = Exiv2::find(jpegProcessMarkerTags, marker)) {
  ------------------
  |  Branch (184:14): [True: 2.63k, False: 59.3k]
  ------------------
  185|  2.63k|      sof_encoding_process_ = itSofMarker->label_;
  186|  2.63k|      if (size >= 7 && buf.c_data(7)) {
  ------------------
  |  Branch (186:11): [True: 2.31k, False: 327]
  |  Branch (186:24): [True: 2.17k, False: 134]
  ------------------
  187|  2.17k|        num_color_components_ = *buf.c_data(7);
  188|  2.17k|      }
  189|  2.63k|    }
  190|       |
  191|  62.0k|    if (!foundExifData && marker == app1_ && size >= 8  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (191:9): [True: 54.6k, False: 7.38k]
  |  Branch (191:27): [True: 3.75k, False: 50.8k]
  |  Branch (191:46): [True: 3.13k, False: 623]
  ------------------
  192|  3.13k|        && buf.cmpBytes(2, exifId_.data(), 6) == 0) {
  ------------------
  |  Branch (192:12): [True: 681, False: 2.45k]
  ------------------
  193|    681|      ByteOrder bo = ExifParser::decode(exifData_, buf.c_data(8), size - 8);
  194|    681|      setByteOrder(bo);
  195|    681|      if (size > 8 && byteOrder() == invalidByteOrder) {
  ------------------
  |  Branch (195:11): [True: 662, False: 19]
  |  Branch (195:23): [True: 0, False: 662]
  ------------------
  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|    681|      --search;
  202|    681|      foundExifData = true;
  203|  61.3k|    } else if (!foundXmpData && marker == app1_ && size >= 31  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (203:16): [True: 57.3k, False: 4.01k]
  |  Branch (203:33): [True: 4.76k, False: 52.5k]
  |  Branch (203:52): [True: 4.00k, False: 759]
  ------------------
  204|  4.00k|               && buf.cmpBytes(2, xmpId_.data(), 29) == 0) {
  ------------------
  |  Branch (204:19): [True: 180, False: 3.82k]
  ------------------
  205|    180|      xmpPacket_.assign(buf.c_str(31), size - 31);
  206|    180|      if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_)) {
  ------------------
  |  Branch (206:11): [True: 178, False: 2]
  |  Branch (206:34): [True: 87, False: 91]
  ------------------
  207|     87|#ifndef SUPPRESS_WARNINGS
  208|     87|        EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|     87|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 87]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     87|  LogMsg(LogMsg::warn).os()
  ------------------
  209|     87|#endif
  210|     87|      }
  211|    180|      --search;
  212|    180|      foundXmpData = true;
  213|  61.1k|    } else if (!foundCompletePsData && marker == app13_ &&
  ------------------
  |  Branch (213:16): [True: 60.4k, False: 740]
  |  Branch (213:40): [True: 37.2k, False: 23.1k]
  ------------------
  214|  37.2k|               size >= 16  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (214:16): [True: 36.6k, False: 621]
  ------------------
  215|  36.6k|               && buf.cmpBytes(2, Photoshop::ps3Id_, 14) == 0) {
  ------------------
  |  Branch (215:19): [True: 24.7k, False: 11.9k]
  ------------------
  216|       |#ifdef EXIV2_DEBUG_MESSAGES
  217|       |      std::cerr << "Found app13 segment, size = " << size << "\n";
  218|       |#endif
  219|  24.7k|      if (buf.size() > 16) {  // Append to psBlob
  ------------------
  |  Branch (219:11): [True: 23.0k, False: 1.69k]
  ------------------
  220|  23.0k|        append(psBlob, buf.c_data(16), size - 16);
  221|  23.0k|      }
  222|       |      // Check whether psBlob is complete
  223|  24.7k|      if (!psBlob.empty() && Photoshop::valid(psBlob.data(), psBlob.size())) {
  ------------------
  |  Branch (223:11): [True: 23.8k, False: 867]
  |  Branch (223:30): [True: 74, False: 23.7k]
  ------------------
  224|     74|        --search;
  225|     74|        foundCompletePsData = true;
  226|     74|      }
  227|  36.4k|    } else if (marker == com_ && comment_.empty()) {
  ------------------
  |  Branch (227:16): [True: 2.33k, False: 34.0k]
  |  Branch (227:34): [True: 737, False: 1.59k]
  ------------------
  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|    737|      comment_.assign(buf.c_str(2), size - 2);
  232|  2.04k|      while (!comment_.empty() && comment_.back() == '\0') {
  ------------------
  |  Branch (232:14): [True: 1.85k, False: 195]
  |  Branch (232:35): [True: 1.31k, False: 542]
  ------------------
  233|  1.31k|        comment_.pop_back();
  234|  1.31k|      }
  235|    737|      --search;
  236|  35.6k|    } else if (marker == app2_ && size >= 13  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (236:16): [True: 3.74k, False: 31.9k]
  |  Branch (236:35): [True: 2.94k, False: 802]
  ------------------
  237|  2.94k|               && buf.cmpBytes(2, iccId_, 11) == 0) {
  ------------------
  |  Branch (237:19): [True: 1.47k, False: 1.46k]
  ------------------
  238|  1.47k|      if (size < 2 + 14 + 4) {
  ------------------
  |  Branch (238:11): [True: 9, False: 1.46k]
  ------------------
  239|      9|        rc = 8;
  240|      9|        break;
  241|      9|      }
  242|       |      // ICC profile
  243|  1.46k|      if (!foundIccData) {
  ------------------
  |  Branch (243:11): [True: 98, False: 1.36k]
  ------------------
  244|     98|        foundIccData = true;
  245|     98|        --search;
  246|     98|      }
  247|  1.46k|      auto chunk = static_cast<int>(buf.read_uint8(2 + 12));
  248|  1.46k|      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.46k|      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.46k|      size_t icc_size = size - 2 - 14;
  260|  1.46k|      if (chunk == 1 && chunks == 1) {
  ------------------
  |  Branch (260:11): [True: 899, False: 564]
  |  Branch (260:25): [True: 133, False: 766]
  ------------------
  261|    133|        enforce(s <= static_cast<uint32_t>(icc_size), ErrorCode::kerInvalidIccProfile);
  262|    133|        icc_size = s;
  263|    133|      }
  264|       |
  265|  1.46k|      appendIccProfile(buf.c_data(2 + 14), icc_size, chunk == chunks);
  266|  34.2k|    } else if (pixelHeight_ == 0 && inRange2(marker, sof0_, sof3_, sof5_, sof15_)) {
  ------------------
  |  Branch (266:16): [True: 27.1k, False: 7.09k]
  |  Branch (266:37): [True: 339, False: 26.7k]
  ------------------
  267|       |      // We hit a SOFn (start-of-frame) marker
  268|    339|      if (size < 8) {
  ------------------
  |  Branch (268:11): [True: 65, False: 274]
  ------------------
  269|     65|        rc = 7;
  270|     65|        break;
  271|     65|      }
  272|    274|      pixelHeight_ = buf.read_uint16(3, bigEndian);
  273|    274|      pixelWidth_ = buf.read_uint16(5, bigEndian);
  274|    274|      if (pixelHeight_ != 0)
  ------------------
  |  Branch (274:11): [True: 91, False: 183]
  ------------------
  275|     91|        --search;
  276|    274|    }
  277|       |
  278|       |    // Read the beginning of the next segment
  279|  61.9k|    try {
  280|  61.9k|      marker = advanceToMarker(ErrorCode::kerFailedToReadImageData);
  281|  61.9k|    } catch (const Error&) {
  282|    260|      rc = 5;
  283|    260|      break;
  284|    260|    }
  285|  61.9k|  }  // while there are segments to process
  286|       |
  287|  2.23k|  if (!psBlob.empty()) {
  ------------------
  |  Branch (287:7): [True: 490, False: 1.74k]
  ------------------
  288|       |    // Find actual IPTC data within the psBlob
  289|    490|    Blob iptcBlob;
  290|    490|    const byte* record = nullptr;
  291|    490|    uint32_t sizeIptc = 0;
  292|    490|    uint32_t sizeHdr = 0;
  293|    490|    const byte* pCur = psBlob.data();
  294|    490|    const byte* pEnd = pCur + psBlob.size();
  295|  17.6k|    while (pCur < pEnd && 0 == Photoshop::locateIptcIrb(pCur, pEnd - pCur, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (295:12): [True: 17.6k, False: 9]
  |  Branch (295:27): [True: 17.1k, False: 481]
  ------------------
  296|       |#ifdef EXIV2_DEBUG_MESSAGES
  297|       |      std::cerr << "Found IPTC IRB, size = " << sizeIptc << "\n";
  298|       |#endif
  299|  17.1k|      if (sizeIptc) {
  ------------------
  |  Branch (299:11): [True: 17.1k, False: 4]
  ------------------
  300|  17.1k|        append(iptcBlob, record + sizeHdr, sizeIptc);
  301|  17.1k|      }
  302|  17.1k|      pCur = record + sizeHdr + sizeIptc + (sizeIptc & 1);
  303|  17.1k|    }
  304|    490|    if (!iptcBlob.empty() && IptcParser::decode(iptcData_, iptcBlob.data(), iptcBlob.size())) {
  ------------------
  |  Branch (304:9): [True: 83, False: 407]
  |  Branch (304:30): [True: 13, False: 70]
  ------------------
  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|    490|  }
  311|       |
  312|  2.23k|  if (rc != 0) {
  ------------------
  |  Branch (312:7): [True: 334, False: 1.90k]
  ------------------
  313|    334|#ifndef SUPPRESS_WARNINGS
  314|    334|    EXV_WARNING << "JPEG format error, rc = " << rc << "\n";
  ------------------
  |  |  138|    334|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 334]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    334|  LogMsg(LogMsg::warn).os()
  ------------------
  315|    334|#endif
  316|    334|  }
  317|  2.23k|}  // JpegBase::readMetadata
_ZN5Exiv28JpegBase14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  323|  7.42k|void JpegBase::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
  324|  7.42k|  if (io_->open() != 0)
  ------------------
  |  Branch (324:7): [True: 0, False: 7.42k]
  ------------------
  325|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  326|       |  // Ensure that this is the correct image type
  327|  7.42k|  if (!isThisType(*io_, false)) {
  ------------------
  |  Branch (327:7): [True: 0, False: 7.42k]
  ------------------
  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.42k|  bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (333:17): [True: 1.39k, False: 6.03k]
  |  Branch (333:39): [True: 1.19k, False: 4.83k]
  ------------------
  334|  7.42k|  std::vector<std::pair<size_t, size_t>> iptcDataSegs;
  335|       |
  336|  7.42k|  if (bPrint || option == kpsXMP || option == kpsIccProfile || option == kpsIptcErase) {
  ------------------
  |  Branch (336:7): [True: 2.59k, False: 4.83k]
  |  Branch (336:17): [True: 1.19k, False: 3.63k]
  |  Branch (336:37): [True: 1.12k, False: 2.51k]
  |  Branch (336:64): [True: 1.12k, False: 1.39k]
  ------------------
  337|       |    // mnemonic for markers
  338|  6.03k|    std::string nm[256];
  339|  6.03k|    nm[0xd8] = "SOI";
  340|  6.03k|    nm[0xd9] = "EOI";
  341|  6.03k|    nm[0xda] = "SOS";
  342|  6.03k|    nm[0xdb] = "DQT";
  343|  6.03k|    nm[0xdd] = "DRI";
  344|  6.03k|    nm[0xfe] = "COM";
  345|       |
  346|       |    // 0xe0 .. 0xef are APPn
  347|       |    // 0xc0 .. 0xcf are SOFn (except 4)
  348|  6.03k|    nm[0xc4] = "DHT";
  349|   102k|    for (int i = 0; i <= 15; i++) {
  ------------------
  |  Branch (349:21): [True: 96.4k, False: 6.03k]
  ------------------
  350|  96.4k|      nm[0xe0 + i] = stringFormat("APP{}", i);
  ------------------
  |  |   18|  96.4k|#define stringFormat std::format
  ------------------
  351|  96.4k|      if (i != 4) {
  ------------------
  |  Branch (351:11): [True: 90.4k, False: 6.03k]
  ------------------
  352|  90.4k|        nm[0xc0 + i] = stringFormat("SOF{}", i);
  ------------------
  |  |   18|  90.4k|#define stringFormat std::format
  ------------------
  353|  90.4k|      }
  354|  96.4k|    }
  355|       |
  356|       |    // Container for the signature
  357|  6.03k|    bool bExtXMP = false;
  358|       |
  359|       |    // Read section marker
  360|  6.03k|    byte marker = advanceToMarker(ErrorCode::kerNotAJpeg);
  361|       |
  362|  6.03k|    bool done = false;
  363|  6.03k|    bool first = true;
  364|   102k|    while (!done) {
  ------------------
  |  Branch (364:12): [True: 96.7k, False: 6.03k]
  ------------------
  365|       |      // print marker bytes
  366|  96.7k|      if (first && bPrint) {
  ------------------
  |  Branch (366:11): [True: 6.03k, False: 90.7k]
  |  Branch (366:20): [True: 2.59k, False: 3.43k]
  ------------------
  367|  2.59k|        out << "STRUCTURE OF JPEG FILE: " << io_->path() << '\n';
  368|  2.59k|        out << " address | marker       |  length | data" << '\n';
  369|  2.59k|        REPORT_MARKER;
  ------------------
  |  |  320|  2.59k|  if ((option == kpsBasic || option == kpsRecursive)) \
  |  |  ------------------
  |  |  |  Branch (320:8): [True: 1.39k, False: 1.19k]
  |  |  |  Branch (320:30): [True: 1.19k, False: 0]
  |  |  ------------------
  |  |  321|  2.59k|  out << stringFormat("{:8} | 0xff{:02x} {:<5}", io_->tell() - 2, marker, nm[marker].c_str())
  |  |  ------------------
  |  |  |  |   18|  2.59k|#define stringFormat std::format
  |  |  ------------------
  ------------------
  370|  2.59k|      }
  371|  96.7k|      first = false;
  372|  96.7k|      bool bLF = bPrint;
  373|       |
  374|  96.7k|      const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  375|       |
  376|       |      // Read the rest of the segment if not empty.
  377|  96.7k|      DataBuf buf(size);
  378|  96.7k|      if (size > 2) {
  ------------------
  |  Branch (378:11): [True: 69.3k, False: 27.4k]
  ------------------
  379|  69.3k|        io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  380|  69.3k|        std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  381|  69.3k|      }
  382|       |
  383|  96.7k|      if (bPrint && markerHasLength(marker))
  ------------------
  |  Branch (383:11): [True: 42.0k, False: 54.7k]
  |  Branch (383:21): [True: 31.6k, False: 10.3k]
  ------------------
  384|  31.6k|        out << stringFormat(" | {:7} ", size);
  ------------------
  |  |   18|  31.6k|#define stringFormat std::format
  ------------------
  385|       |
  386|       |      // print signature for APPn
  387|  96.7k|      if (marker >= app0_ && marker <= (app0_ | 0x0F)) {
  ------------------
  |  Branch (387:11): [True: 63.6k, False: 33.0k]
  |  Branch (387:30): [True: 58.5k, False: 5.06k]
  ------------------
  388|       |        // http://www.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMPSpecificationPart3.pdf p75
  389|  58.5k|        const std::string signature = string_from_unterminated(buf.c_str(2), size - 2);
  390|       |
  391|       |        // 728 rmills@rmillsmbp:~/gnu/exiv2/ttt $ exiv2 -pS test/data/exiv2-bug922.jpg
  392|       |        // STRUCTURE OF JPEG FILE: test/data/exiv2-bug922.jpg
  393|       |        // address | marker     | length  | data
  394|       |        //       0 | 0xd8 SOI   |       0
  395|       |        //       2 | 0xe1 APP1  |     911 | Exif..MM.*.......%.........#....
  396|       |        //     915 | 0xe1 APP1  |     870 | http://ns.adobe.com/xap/1.0/.<x:
  397|       |        //    1787 | 0xe1 APP1  |   65460 | http://ns.adobe.com/xmp/extensio
  398|  58.5k|        if (option == kpsXMP && signature.starts_with("http://ns.adobe.com/x")) {
  ------------------
  |  Branch (398:13): [True: 11.2k, False: 47.3k]
  |  Branch (398:33): [True: 318, False: 10.9k]
  ------------------
  399|       |          // extract XMP
  400|    318|          const char* xmp = buf.c_str();
  401|    318|          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|    318|          if (!bExtXMP) {
  ------------------
  |  Branch (410:15): [True: 102, False: 216]
  ------------------
  411|  3.98k|            while (start < size && xmp[start]) {
  ------------------
  |  Branch (411:20): [True: 3.98k, False: 1]
  |  Branch (411:36): [True: 3.88k, False: 101]
  ------------------
  412|  3.88k|              start++;
  413|  3.88k|            }
  414|    102|            start++;
  415|    102|            if (start < size) {
  ------------------
  |  Branch (415:17): [True: 100, False: 2]
  ------------------
  416|    100|              const std::string xmp_from_start = string_from_unterminated(&xmp[start], size - start);
  417|    100|              if (xmp_from_start.find("HasExtendedXMP", start) != std::string::npos) {
  ------------------
  |  Branch (417:19): [True: 7, False: 93]
  ------------------
  418|      7|                start = size;  // ignore this packet, we'll get on the next time around
  419|      7|                bExtXMP = true;
  420|      7|              }
  421|    100|            }
  422|    216|          } else {
  423|    216|            start = 2 + 35 + 32 + 4 + 4;  // Adobe Spec, p19
  424|    216|          }
  425|       |
  426|    318|          enforce(start <= size, ErrorCode::kerInvalidXmpText);
  427|    318|          out.write(&xmp[start], size - start);
  428|    318|          done = !bExtXMP;
  429|  58.2k|        } else if (option == kpsIccProfile && signature == iccId_) {
  ------------------
  |  Branch (429:20): [True: 10.9k, False: 47.3k]
  |  Branch (429:47): [True: 956, False: 9.96k]
  ------------------
  430|       |          // extract ICCProfile
  431|    956|          if (size >= 16) {
  ------------------
  |  Branch (431:15): [True: 956, False: 0]
  ------------------
  432|    956|            out.write(buf.c_str(16), size - 16);
  433|       |#ifdef EXIV2_DEBUG_MESSAGES
  434|       |            std::cout << "iccProfile size = " << size - 16 << '\n';
  435|       |#endif
  436|    956|          }
  437|  57.3k|        } else if (option == kpsIptcErase && signature == "Photoshop 3.0") {
  ------------------
  |  Branch (437:20): [True: 10.9k, False: 46.4k]
  |  Branch (437:46): [True: 2.40k, False: 8.51k]
  ------------------
  438|       |          // delete IPTC data segment from JPEG
  439|  2.40k|          iptcDataSegs.emplace_back(io_->tell() - size, io_->tell());
  440|  54.9k|        } else if (bPrint) {
  ------------------
  |  Branch (440:20): [True: 25.5k, False: 29.3k]
  ------------------
  441|  25.5k|          const size_t start = 2;
  442|  25.5k|          const auto end = std::min<size_t>(34, size);
  443|  25.5k|          out << "| ";
  444|  25.5k|          if (start < end)
  ------------------
  |  Branch (444:15): [True: 24.7k, False: 783]
  ------------------
  445|  24.7k|            out << Internal::binaryToString(makeSlice(buf, start, end));
  446|  25.5k|          if (signature == iccId_) {
  ------------------
  |  Branch (446:15): [True: 1.93k, False: 23.6k]
  ------------------
  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.93k|            enforce<std::out_of_range>(size >= 16, "Buffer too small to extract chunk information.");
  457|  1.93k|            const int chunk = buf.read_uint8(2 + 12);
  458|  1.93k|            const int chunks = buf.read_uint8(2 + 13);
  459|  1.93k|            out << stringFormat(" chunk {}/{}", chunk, chunks);
  ------------------
  |  |   18|  1.93k|#define stringFormat std::format
  ------------------
  460|  1.93k|          }
  461|  25.5k|        }
  462|       |
  463|       |        // for MPF: http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/MPF.html
  464|       |        // for FLIR: http://owl.phy.queensu.ca/~phil/exiftool/TagNames/FLIR.html
  465|  58.5k|        bool bFlir = option == kpsRecursive && marker == (app0_ + 1) && signature == "FLIR";
  ------------------
  |  Branch (465:22): [True: 12.3k, False: 46.2k]
  |  Branch (465:48): [True: 4.49k, False: 7.88k]
  |  Branch (465:73): [True: 932, False: 3.56k]
  ------------------
  466|  58.5k|        bool bExif = option == kpsRecursive && marker == (app0_ + 1) && signature == "Exif";
  ------------------
  |  Branch (466:22): [True: 12.3k, False: 46.2k]
  |  Branch (466:48): [True: 4.49k, False: 7.88k]
  |  Branch (466:73): [True: 1.36k, False: 3.12k]
  ------------------
  467|  58.5k|        bool bMPF = option == kpsRecursive && marker == (app0_ + 2) && signature == "MPF";
  ------------------
  |  Branch (467:21): [True: 12.3k, False: 46.2k]
  |  Branch (467:47): [True: 3.10k, False: 9.27k]
  |  Branch (467:72): [True: 432, False: 2.67k]
  ------------------
  468|  58.5k|        bool bPS = option == kpsRecursive && signature == "Photoshop 3.0";
  ------------------
  |  Branch (468:20): [True: 12.3k, False: 46.2k]
  |  Branch (468:46): [True: 2.42k, False: 9.95k]
  ------------------
  469|  58.5k|        if (bFlir || bExif || bMPF || bPS) {
  ------------------
  |  Branch (469:13): [True: 934, False: 57.6k]
  |  Branch (469:22): [True: 1.36k, False: 56.2k]
  |  Branch (469:31): [True: 432, False: 55.8k]
  |  Branch (469:39): [True: 2.42k, False: 53.4k]
  ------------------
  470|       |          // extract Exif data block which is tiff formatted
  471|  5.15k|          out << '\n';
  472|       |
  473|       |          //                        const byte* exif = buf.c_data();
  474|  5.15k|          uint32_t start = signature == "Exif" ? 8 : 6;
  ------------------
  |  Branch (474:28): [True: 1.36k, False: 3.79k]
  ------------------
  475|  5.15k|          uint32_t max = static_cast<uint32_t>(size) - 1;
  476|       |
  477|       |          // is this an fff block?
  478|  5.15k|          if (bFlir) {
  ------------------
  |  Branch (478:15): [True: 932, False: 4.22k]
  ------------------
  479|    932|            start = 2;
  480|    932|            bFlir = false;
  481|  36.6k|            while (start + 3 <= max) {
  ------------------
  |  Branch (481:20): [True: 36.5k, False: 15]
  ------------------
  482|  36.5k|              if (std::strcmp(buf.c_str(start), "FFF") == 0) {
  ------------------
  |  Branch (482:19): [True: 917, False: 35.6k]
  ------------------
  483|    917|                bFlir = true;
  484|    917|                break;
  485|    917|              }
  486|  35.6k|              start++;
  487|  35.6k|            }
  488|    932|          }
  489|       |
  490|       |          // there is a header in FLIR, followed by a tiff block
  491|       |          // Hunt down the tiff using brute force
  492|  5.15k|          if (bFlir) {
  ------------------
  |  Branch (492:15): [True: 917, False: 4.24k]
  ------------------
  493|       |            // FLIRFILEHEAD* pFFF = (FLIRFILEHEAD*) (exif+start) ;
  494|  30.5k|            while (start < max) {
  ------------------
  |  Branch (494:20): [True: 30.3k, False: 192]
  ------------------
  495|  30.3k|              if (buf.read_uint8(start) == 'I' && buf.read_uint8(start + 1) == 'I')
  ------------------
  |  Branch (495:19): [True: 300, False: 30.0k]
  |  Branch (495:51): [True: 67, False: 233]
  ------------------
  496|     67|                break;
  497|  30.2k|              if (buf.read_uint8(start) == 'M' && buf.read_uint8(start + 1) == 'M')
  ------------------
  |  Branch (497:19): [True: 995, False: 29.2k]
  |  Branch (497:51): [True: 658, False: 337]
  ------------------
  498|    658|                break;
  499|  29.6k|              start++;
  500|  29.6k|            }
  501|       |#ifdef EXIV2_DEBUG_MESSAGES
  502|       |            if (start < max)
  503|       |              std::cout << "  FFF start = " << start << '\n';
  504|       |              // << " index = " << pFFF->dwIndexOff << '\n';
  505|       |#endif
  506|    917|          }
  507|       |
  508|  5.15k|          if (bPS) {
  ------------------
  |  Branch (508:15): [True: 2.42k, False: 2.73k]
  ------------------
  509|  2.42k|            IptcData::printStructure(out, makeSlice(buf, 0, size), depth);
  510|  2.73k|          } else {
  511|  2.73k|            if (start < max) {
  ------------------
  |  Branch (511:17): [True: 2.09k, False: 639]
  ------------------
  512|       |              // create a copy on write memio object with the data, then print the structure
  513|  2.09k|              MemIo p(buf.c_data(start), size - start);
  514|  2.09k|              printTiffStructure(p, out, option, depth + 1);
  515|  2.09k|            }
  516|  2.73k|          }
  517|       |
  518|       |          // restore and clean up
  519|  5.15k|          bLF = false;
  520|  5.15k|        }
  521|  58.5k|      }
  522|       |
  523|       |      // print COM marker
  524|  96.7k|      if (bPrint && marker == com_) {
  ------------------
  |  Branch (524:11): [True: 41.9k, False: 54.7k]
  |  Branch (524:21): [True: 2.21k, False: 39.7k]
  ------------------
  525|       |        // size includes 2 for the two bytes for size!
  526|  2.21k|        const auto n = std::min<size_t>(32, size - 2);
  527|       |        // start after the two bytes
  528|  2.21k|        out << "| "
  529|  2.21k|            << Internal::binaryToString(makeSlice(buf, 2, n + 2 /* cannot overflow as n is at most size - 2 */));
  530|  2.21k|      }
  531|       |
  532|  96.7k|      if (bLF)
  ------------------
  |  Branch (532:11): [True: 36.8k, False: 59.8k]
  ------------------
  533|  36.8k|        out << '\n';
  534|       |
  535|  96.7k|      if (marker != sos_) {
  ------------------
  |  Branch (535:11): [True: 96.6k, False: 95]
  ------------------
  536|       |        // Read the beginning of the next segment
  537|  96.6k|        marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  538|  96.6k|        REPORT_MARKER;
  ------------------
  |  |  320|  96.6k|  if ((option == kpsBasic || option == kpsRecursive)) \
  |  |  ------------------
  |  |  |  Branch (320:8): [True: 22.0k, False: 74.6k]
  |  |  |  Branch (320:30): [True: 19.9k, False: 54.6k]
  |  |  ------------------
  |  |  321|  96.6k|  out << stringFormat("{:8} | 0xff{:02x} {:<5}", io_->tell() - 2, marker, nm[marker].c_str())
  |  |  ------------------
  |  |  |  |   18|  41.7k|#define stringFormat std::format
  |  |  ------------------
  ------------------
  539|  96.6k|      }
  540|  96.7k|      done |= marker == eoi_ || marker == sos_;
  ------------------
  |  Branch (540:15): [True: 5.19k, False: 91.5k]
  |  Branch (540:33): [True: 780, False: 90.7k]
  ------------------
  541|  96.7k|      if (done && bPrint)
  ------------------
  |  Branch (541:11): [True: 5.75k, False: 90.9k]
  |  Branch (541:19): [True: 2.31k, False: 3.43k]
  ------------------
  542|  2.31k|        out << '\n';
  543|  96.7k|    }
  544|  6.03k|  }
  545|  7.42k|  if (option == kpsIptcErase && !iptcDataSegs.empty()) {
  ------------------
  |  Branch (545:7): [True: 1.12k, False: 6.30k]
  |  Branch (545:33): [True: 840, False: 280]
  ------------------
  546|       |    // Add a sentinel to the end of iptcDataSegs
  547|    840|    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|    840|    MemIo tempIo;
  556|    840|    size_t start = 0;
  557|  3.24k|    for (const auto& [l, s] : iptcDataSegs) {
  ------------------
  |  Branch (557:29): [True: 3.24k, False: 840]
  ------------------
  558|  3.24k|      const size_t length = l - start;
  559|  3.24k|      io_->seekOrThrow(start, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  560|  3.24k|      DataBuf buf(length);
  561|  3.24k|      io_->readOrThrow(buf.data(), buf.size(), ErrorCode::kerFailedToReadImageData);
  562|  3.24k|      tempIo.write(buf.c_data(), buf.size());
  563|  3.24k|      start = s + 2;  // skip the 2 byte marker
  564|  3.24k|    }
  565|       |
  566|    840|    io_->seekOrThrow(0, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  567|    840|    io_->transfer(tempIo);  // may throw
  568|    840|    io_->seekOrThrow(0, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  569|       |
  570|       |    // Check that the result is correctly formatted.
  571|    840|    readMetadata();
  572|    840|  }
  573|  7.42k|}  // JpegBase::printStructure
_ZN5Exiv28JpegBase13writeMetadataEv:
  575|  1.03k|void JpegBase::writeMetadata() {
  576|  1.03k|  if (io_->open() != 0) {
  ------------------
  |  Branch (576:7): [True: 0, False: 1.03k]
  ------------------
  577|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  578|      0|  }
  579|  1.03k|  IoCloser closer(*io_);
  580|  1.03k|  MemIo tempIo;
  581|       |
  582|  1.03k|  doWriteMetadata(tempIo);  // may throw
  583|  1.03k|  io_->close();
  584|  1.03k|  io_->transfer(tempIo);  // may throw
  585|  1.03k|}
_ZN5Exiv28JpegBase15readNextSegmentEh:
  587|  80.5k|DataBuf JpegBase::readNextSegment(byte marker) {
  588|  80.5k|  const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  589|       |
  590|       |  // Read the rest of the segment if not empty.
  591|  80.5k|  DataBuf buf(size);
  592|  80.5k|  if (size > 0) {
  ------------------
  |  Branch (592:7): [True: 73.6k, False: 6.92k]
  ------------------
  593|  73.6k|    std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  594|  73.6k|    if (size > 2) {
  ------------------
  |  Branch (594:9): [True: 72.7k, False: 923]
  ------------------
  595|  72.7k|      io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  596|  72.7k|    }
  597|  73.6k|  }
  598|  80.5k|  return buf;
  599|  80.5k|}
_ZN5Exiv28JpegBase15doWriteMetadataERNS_7BasicIoE:
  601|  1.03k|void JpegBase::doWriteMetadata(BasicIo& outIo) {
  602|  1.03k|  if (!io_->isopen())
  ------------------
  |  Branch (602:7): [True: 0, False: 1.03k]
  ------------------
  603|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  604|  1.03k|  if (!outIo.isopen())
  ------------------
  |  Branch (604:7): [True: 0, False: 1.03k]
  ------------------
  605|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  606|       |
  607|       |  // Ensure that this is the correct image type
  608|  1.03k|  if (!isThisType(*io_, true)) {
  ------------------
  |  Branch (608:7): [True: 0, False: 1.03k]
  ------------------
  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.03k|  static const size_t notfound = std::numeric_limits<size_t>::max();
  616|       |
  617|  1.03k|  const size_t seek = io_->tell();
  618|  1.03k|  size_t count = 0;
  619|  1.03k|  size_t search = 0;
  620|  1.03k|  size_t insertPos = 0;
  621|  1.03k|  size_t comPos = 0;
  622|  1.03k|  size_t skipApp1Exif = notfound;
  623|  1.03k|  size_t skipApp1Xmp = notfound;
  624|  1.03k|  bool foundCompletePsData = false;
  625|  1.03k|  bool foundIccData = false;
  626|  1.03k|  std::vector<size_t> skipApp13Ps3;
  627|  1.03k|  std::vector<size_t> skipApp2Icc;
  628|  1.03k|  size_t skipCom = notfound;
  629|  1.03k|  Blob psBlob;
  630|  1.03k|  DataBuf rawExif;
  631|  1.03k|  xmpData().usePacket(writeXmpFromPacket());
  632|       |
  633|       |  // Write image header
  634|  1.03k|  if (writeHeader(outIo))
  ------------------
  |  Branch (634:7): [True: 0, False: 1.03k]
  ------------------
  635|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  636|       |
  637|       |  // Read section marker
  638|  1.03k|  byte marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  639|       |
  640|       |  // First find segments of interest. Normally app0 is first and we want
  641|       |  // to insert after it. But if app0 comes after com, app1 and app13 then
  642|       |  // don't bother.
  643|  46.0k|  while (marker != sos_ && marker != eoi_ && search < 6) {
  ------------------
  |  Branch (643:10): [True: 45.7k, False: 296]
  |  Branch (643:28): [True: 45.0k, False: 743]
  |  Branch (643:46): [True: 45.0k, False: 0]
  ------------------
  644|  45.0k|    DataBuf buf = readNextSegment(marker);
  645|       |
  646|  45.0k|    if (marker == app0_) {
  ------------------
  |  Branch (646:9): [True: 448, False: 44.6k]
  ------------------
  647|    448|      insertPos = count + 1;
  648|  44.6k|    } else if (skipApp1Exif == notfound && marker == app1_ &&
  ------------------
  |  Branch (648:16): [True: 40.8k, False: 3.74k]
  |  Branch (648:44): [True: 1.99k, False: 38.8k]
  ------------------
  649|  1.99k|               buf.size() >= 8 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (649:16): [True: 1.72k, False: 273]
  ------------------
  650|  1.72k|               buf.cmpBytes(2, exifId_.data(), 6) == 0) {
  ------------------
  |  Branch (650:16): [True: 589, False: 1.13k]
  ------------------
  651|    589|      skipApp1Exif = count;
  652|    589|      ++search;
  653|    589|      if (buf.size() > 8) {
  ------------------
  |  Branch (653:11): [True: 580, False: 9]
  ------------------
  654|    580|        rawExif.alloc(buf.size() - 8);
  655|    580|        std::copy_n(buf.begin() + 8, rawExif.size(), rawExif.begin());
  656|    580|      }
  657|  44.0k|    } else if (skipApp1Xmp == notfound && marker == app1_ &&
  ------------------
  |  Branch (657:16): [True: 42.4k, False: 1.56k]
  |  Branch (657:43): [True: 2.47k, False: 39.9k]
  ------------------
  658|  2.47k|               buf.size() >= 31 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (658:16): [True: 2.09k, False: 380]
  ------------------
  659|  2.09k|               buf.cmpBytes(2, xmpId_.data(), 29) == 0) {
  ------------------
  |  Branch (659:16): [True: 95, False: 1.99k]
  ------------------
  660|     95|      skipApp1Xmp = count;
  661|     95|      ++search;
  662|  43.9k|    } else if (marker == app2_ && buf.size() >= 13 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (662:16): [True: 2.66k, False: 41.2k]
  |  Branch (662:35): [True: 2.41k, False: 256]
  ------------------
  663|  2.41k|               buf.cmpBytes(2, iccId_, 11) == 0) {
  ------------------
  |  Branch (663:16): [True: 1.13k, False: 1.27k]
  ------------------
  664|  1.13k|      skipApp2Icc.push_back(count);
  665|  1.13k|      if (!foundIccData) {
  ------------------
  |  Branch (665:11): [True: 57, False: 1.07k]
  ------------------
  666|     57|        ++search;
  667|     57|        foundIccData = true;
  668|     57|      }
  669|  42.7k|    } else if (!foundCompletePsData && marker == app13_ &&
  ------------------
  |  Branch (669:16): [True: 42.3k, False: 476]
  |  Branch (669:40): [True: 31.3k, False: 11.0k]
  ------------------
  670|  31.3k|               buf.size() >= 16 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (670:16): [True: 30.8k, False: 448]
  ------------------
  671|  30.8k|               buf.cmpBytes(2, Photoshop::ps3Id_, 14) == 0) {
  ------------------
  |  Branch (671:16): [True: 20.9k, False: 9.94k]
  ------------------
  672|       |#ifdef EXIV2_DEBUG_MESSAGES
  673|       |      std::cerr << "Found APP13 Photoshop PS3 segment\n";
  674|       |#endif
  675|  20.9k|      skipApp13Ps3.push_back(count);
  676|       |      // Append to psBlob
  677|  20.9k|      append(psBlob, buf.c_data(16), buf.size() - 16);
  678|       |      // Check whether psBlob is complete
  679|  20.9k|      if (!psBlob.empty() && Photoshop::valid(psBlob.data(), psBlob.size())) {
  ------------------
  |  Branch (679:11): [True: 20.7k, False: 168]
  |  Branch (679:30): [True: 58, False: 20.6k]
  ------------------
  680|     58|        foundCompletePsData = true;
  681|     58|      }
  682|  21.8k|    } else if (marker == com_ && skipCom == notfound) {
  ------------------
  |  Branch (682:16): [True: 1.02k, False: 20.8k]
  |  Branch (682:34): [True: 248, False: 775]
  ------------------
  683|       |      // Jpegs can have multiple comments, but for now only handle
  684|       |      // the first one (most jpegs only have one anyway).
  685|    248|      skipCom = count;
  686|    248|      ++search;
  687|    248|    }
  688|       |
  689|       |    // As in jpeg-6b/wrjpgcom.c:
  690|       |    // We will insert the new comment marker just before SOFn.
  691|       |    // This (a) causes the new comment to appear after, rather than before,
  692|       |    // existing comments; and (b) ensures that comments come after any JFIF
  693|       |    // or JFXX markers, as required by the JFIF specification.
  694|  45.0k|    if (comPos == 0 && inRange2(marker, sof0_, sof3_, sof5_, sof15_)) {
  ------------------
  |  Branch (694:9): [True: 42.0k, False: 3.00k]
  |  Branch (694:24): [True: 75, False: 41.9k]
  ------------------
  695|     75|      comPos = count;
  696|     75|      ++search;
  697|     75|    }
  698|  45.0k|    marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  699|  45.0k|    ++count;
  700|  45.0k|  }
  701|       |
  702|  1.03k|  if (!foundCompletePsData && !psBlob.empty())
  ------------------
  |  Branch (702:7): [True: 935, False: 104]
  |  Branch (702:31): [True: 24, False: 911]
  ------------------
  703|     24|    throw Error(ErrorCode::kerNoImageInInputData);
  704|  1.01k|  search += skipApp13Ps3.size() + skipApp2Icc.size();
  705|       |
  706|  1.01k|  if (comPos == 0) {
  ------------------
  |  Branch (706:7): [True: 918, False: 97]
  ------------------
  707|    918|    if (marker == eoi_)
  ------------------
  |  Branch (707:9): [True: 699, False: 219]
  ------------------
  708|    699|      comPos = count;
  709|    219|    else
  710|    219|      comPos = insertPos;
  711|    918|    ++search;
  712|    918|  }
  713|  1.01k|  if (!exifData_.empty())
  ------------------
  |  Branch (713:7): [True: 572, False: 443]
  ------------------
  714|    572|    ++search;
  715|  1.01k|  if (!writeXmpFromPacket() && !xmpData_.empty())
  ------------------
  |  Branch (715:7): [True: 964, False: 51]
  |  Branch (715:32): [True: 46, False: 918]
  ------------------
  716|     46|    ++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: 104, False: 911]
  |  Branch (719:30): [True: 0, False: 911]
  ------------------
  720|     53|    ++search;
  721|  1.01k|  if (!comment_.empty())
  ------------------
  |  Branch (721:7): [True: 235, False: 780]
  ------------------
  722|    235|    ++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|  35.8k|  while (marker != sos_ && search > 0) {
  ------------------
  |  Branch (732:10): [True: 35.6k, False: 284]
  |  Branch (732:28): [True: 35.5k, False: 77]
  ------------------
  733|  35.5k|    DataBuf buf = readNextSegment(marker);
  734|       |
  735|  35.5k|    if (insertPos == count) {
  ------------------
  |  Branch (735:9): [True: 957, False: 34.5k]
  ------------------
  736|       |      // Write Exif data first so that - if there is no app0 - we
  737|       |      // create "Exif images" according to the Exif standard.
  738|    957|      if (!exifData_.empty()) {
  ------------------
  |  Branch (738:11): [True: 572, False: 385]
  ------------------
  739|    572|        Blob blob;
  740|    572|        ByteOrder bo = byteOrder();
  741|    572|        if (bo == invalidByteOrder) {
  ------------------
  |  Branch (741:13): [True: 0, False: 572]
  ------------------
  742|      0|          bo = littleEndian;
  743|      0|          setByteOrder(bo);
  744|      0|        }
  745|    572|        const byte* pExifData = rawExif.c_data();
  746|    572|        size_t exifSize = rawExif.size();
  747|    572|        if (ExifParser::encode(blob, pExifData, exifSize, bo, exifData_) == wmIntrusive) {
  ------------------
  |  Branch (747:13): [True: 464, False: 108]
  ------------------
  748|    464|          pExifData = !blob.empty() ? blob.data() : nullptr;
  ------------------
  |  Branch (748:23): [True: 443, False: 21]
  ------------------
  749|    464|          exifSize = blob.size();
  750|    464|        }
  751|    572|        if (exifSize > 0) {
  ------------------
  |  Branch (751:13): [True: 490, False: 82]
  ------------------
  752|    490|          std::array<byte, 10> tmpBuf;
  753|       |          // Write APP1 marker, size of APP1 field, Exif id and Exif data
  754|    490|          tmpBuf[0] = 0xff;
  755|    490|          tmpBuf[1] = app1_;
  756|       |
  757|    490|          if (exifSize > 0xffff - 8)
  ------------------
  |  Branch (757:15): [True: 63, False: 427]
  ------------------
  758|     63|            throw Error(ErrorCode::kerTooLargeJpegSegment, "Exif");
  759|    427|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(exifSize + 8), bigEndian);
  760|    427|          std::copy(exifId_.begin(), exifId_.end(), tmpBuf.begin() + 4);
  761|    427|          if (outIo.write(tmpBuf.data(), 10) != 10)
  ------------------
  |  Branch (761:15): [True: 0, False: 427]
  ------------------
  762|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  763|       |
  764|       |          // Write new Exif data buffer
  765|    427|          if (outIo.write(pExifData, exifSize) != exifSize)
  ------------------
  |  Branch (765:15): [True: 0, False: 427]
  ------------------
  766|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  767|    427|          if (outIo.error())
  ------------------
  |  Branch (767:15): [True: 0, False: 427]
  ------------------
  768|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  769|    427|          --search;
  770|    427|        }
  771|    572|      }
  772|    894|      if (!writeXmpFromPacket() &&
  ------------------
  |  Branch (772:11): [True: 833, False: 61]
  ------------------
  773|    833|          XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting) > 1) {
  ------------------
  |  Branch (773:11): [True: 0, False: 833]
  ------------------
  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|    894|      if (!xmpPacket_.empty()) {
  ------------------
  |  Branch (778:11): [True: 46, False: 848]
  ------------------
  779|     46|        std::array<byte, 33> tmpBuf;
  780|       |        // Write APP1 marker, size of APP1 field, XMP id and XMP packet
  781|     46|        tmpBuf[0] = 0xff;
  782|     46|        tmpBuf[1] = app1_;
  783|       |
  784|     46|        if (xmpPacket_.size() > 0xffff - 31)
  ------------------
  |  Branch (784:13): [True: 0, False: 46]
  ------------------
  785|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "XMP");
  786|     46|        us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(xmpPacket_.size() + 31), bigEndian);
  787|     46|        std::copy(xmpId_.begin(), xmpId_.end(), tmpBuf.begin() + 4);
  788|     46|        if (outIo.write(tmpBuf.data(), 33) != 33)
  ------------------
  |  Branch (788:13): [True: 0, False: 46]
  ------------------
  789|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  790|       |
  791|       |        // Write new XMP packet
  792|     46|        if (outIo.write(reinterpret_cast<const byte*>(xmpPacket_.data()), xmpPacket_.size()) != xmpPacket_.size())
  ------------------
  |  Branch (792:13): [True: 0, False: 46]
  ------------------
  793|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  794|     46|        if (outIo.error())
  ------------------
  |  Branch (794:13): [True: 0, False: 46]
  ------------------
  795|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  796|     46|        --search;
  797|     46|      }
  798|       |
  799|    894|      if (iccProfileDefined()) {
  ------------------
  |  Branch (799:11): [True: 46, False: 848]
  ------------------
  800|     46|        std::array<byte, 4> tmpBuf;
  801|       |        // Write APP2 marker, size of APP2 field, and IccProfile
  802|       |        // See comments in readMetadata() about the ICC embedding specification
  803|     46|        tmpBuf[0] = 0xff;
  804|     46|        tmpBuf[1] = app2_;
  805|       |
  806|     46|        const size_t chunk_size = (256 * 256) - 40;  // leave bytes for marker, header and padding
  807|     46|        size_t size = iccProfile_.size();
  808|     46|        if (size >= 255 * chunk_size)
  ------------------
  |  Branch (808:13): [True: 0, False: 46]
  ------------------
  809|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "IccProfile");
  810|     46|        const size_t chunks = 1 + ((size - 1) / chunk_size);
  811|     92|        for (size_t chunk = 0; chunk < chunks; chunk++) {
  ------------------
  |  Branch (811:32): [True: 46, False: 46]
  ------------------
  812|     46|          auto bytes = std::min<size_t>(size, chunk_size);  // bytes to write
  813|     46|          size -= bytes;
  814|       |
  815|       |          // write JPEG marker (2 bytes)
  816|     46|          if (outIo.write(tmpBuf.data(), 2) != 2)
  ------------------
  |  Branch (816:15): [True: 0, False: 46]
  ------------------
  817|      0|            throw Error(ErrorCode::kerImageWriteFailed);  // JPEG Marker
  818|       |          // write length (2 bytes).  length includes the 2 bytes for the length
  819|     46|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(2 + 14 + bytes), bigEndian);
  820|     46|          if (outIo.write(tmpBuf.data() + 2, 2) != 2)
  ------------------
  |  Branch (820:15): [True: 0, False: 46]
  ------------------
  821|      0|            throw Error(ErrorCode::kerImageWriteFailed);  // JPEG Length
  822|       |
  823|       |          // write the ICC_PROFILE header (14 bytes)
  824|     46|          uint8_t pad[2];
  825|     46|          pad[0] = static_cast<uint8_t>(chunk + 1);
  826|     46|          pad[1] = static_cast<uint8_t>(chunks);
  827|     46|          outIo.write(reinterpret_cast<const byte*>(iccId_), 12);
  828|     46|          outIo.write(reinterpret_cast<const byte*>(pad), 2);
  829|     46|          if (outIo.write(iccProfile_.c_data(chunk * chunk_size), bytes) != bytes)
  ------------------
  |  Branch (829:15): [True: 0, False: 46]
  ------------------
  830|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  831|     46|          if (outIo.error())
  ------------------
  |  Branch (831:15): [True: 0, False: 46]
  ------------------
  832|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  833|     46|        }
  834|     46|        --search;
  835|     46|      }
  836|       |
  837|    894|      if (foundCompletePsData || !iptcData_.empty()) {
  ------------------
  |  Branch (837:11): [True: 114, False: 780]
  |  Branch (837:34): [True: 0, False: 780]
  ------------------
  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|     53|        DataBuf newPsData = Photoshop::setIptcIrb(psBlob.data(), psBlob.size(), iptcData_);
  841|     53|        const size_t maxChunkSize = 0xffff - 16;
  842|     53|        const byte* chunkStart = newPsData.empty() ? nullptr : newPsData.c_data();
  ------------------
  |  Branch (842:34): [True: 1, False: 52]
  ------------------
  843|     53|        const byte* chunkEnd = newPsData.empty() ? nullptr : newPsData.c_data(newPsData.size() - 1);
  ------------------
  |  Branch (843:32): [True: 1, False: 52]
  ------------------
  844|    105|        while (chunkStart < chunkEnd) {
  ------------------
  |  Branch (844:16): [True: 52, False: 53]
  ------------------
  845|       |          // Determine size of next chunk
  846|     52|          size_t chunkSize = (chunkEnd + 1 - chunkStart);
  847|     52|          if (chunkSize > maxChunkSize) {
  ------------------
  |  Branch (847:15): [True: 2, False: 50]
  ------------------
  848|      2|            chunkSize = maxChunkSize;
  849|       |            // Don't break at a valid IRB boundary
  850|      2|            const auto writtenSize = chunkStart - newPsData.c_data();
  851|      2|            if (Photoshop::valid(newPsData.c_data(), writtenSize + chunkSize)) {
  ------------------
  |  Branch (851:17): [True: 0, False: 2]
  ------------------
  852|       |              // Since an IRB has minimum size 12,
  853|       |              // (chunkSize - 8) can't be also a IRB boundary
  854|      0|              chunkSize -= 8;
  855|      0|            }
  856|      2|          }
  857|       |
  858|       |          // Write APP13 marker, chunk size, and ps3Id
  859|     52|          std::array<byte, 18> tmpBuf;
  860|     52|          tmpBuf[0] = 0xff;
  861|     52|          tmpBuf[1] = app13_;
  862|     52|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(chunkSize + 16), bigEndian);
  863|     52|          std::copy_n(Photoshop::ps3Id_, 14, tmpBuf.begin() + 4);
  864|     52|          if (outIo.write(tmpBuf.data(), 18) != 18)
  ------------------
  |  Branch (864:15): [True: 0, False: 52]
  ------------------
  865|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  866|     52|          if (outIo.error())
  ------------------
  |  Branch (866:15): [True: 0, False: 52]
  ------------------
  867|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  868|       |
  869|       |          // Write next chunk of the Photoshop IRB data buffer
  870|     52|          if (outIo.write(chunkStart, chunkSize) != chunkSize)
  ------------------
  |  Branch (870:15): [True: 0, False: 52]
  ------------------
  871|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  872|     52|          if (outIo.error())
  ------------------
  |  Branch (872:15): [True: 0, False: 52]
  ------------------
  873|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  874|       |
  875|     52|          chunkStart += chunkSize;
  876|     52|        }
  877|     53|        --search;
  878|     53|      }
  879|    894|    }
  880|  35.4k|    if (comPos == count) {
  ------------------
  |  Branch (880:9): [True: 833, False: 34.6k]
  ------------------
  881|    833|      if (!comment_.empty()) {
  ------------------
  |  Branch (881:11): [True: 130, False: 703]
  ------------------
  882|    130|        std::array<byte, 4> tmpBuf;
  883|       |        // Write COM marker, size of comment, and string
  884|    130|        tmpBuf[0] = 0xff;
  885|    130|        tmpBuf[1] = com_;
  886|       |
  887|    130|        if (comment_.length() > 0xffff - 3)
  ------------------
  |  Branch (887:13): [True: 1, False: 129]
  ------------------
  888|      1|          throw Error(ErrorCode::kerTooLargeJpegSegment, "JPEG comment");
  889|    129|        us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(comment_.length() + 3), bigEndian);
  890|       |
  891|    129|        if (outIo.write(tmpBuf.data(), 4) != 4)
  ------------------
  |  Branch (891:13): [True: 0, False: 129]
  ------------------
  892|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  893|    129|        if (outIo.write(reinterpret_cast<byte*>(comment_.data()), comment_.length()) != comment_.length())
  ------------------
  |  Branch (893:13): [True: 0, False: 129]
  ------------------
  894|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  895|    129|        if (outIo.putb(0) == EOF)
  ------------------
  |  Branch (895:13): [True: 0, False: 129]
  ------------------
  896|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  897|    129|        if (outIo.error())
  ------------------
  |  Branch (897:13): [True: 0, False: 129]
  ------------------
  898|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  899|    129|        --search;
  900|    129|      }
  901|    832|      --search;
  902|    832|    }
  903|  35.4k|    if (marker == eoi_) {
  ------------------
  |  Branch (903:9): [True: 590, False: 34.8k]
  ------------------
  904|    590|      break;
  905|    590|    }
  906|  34.8k|    if (skipApp1Exif == count || skipApp1Xmp == count ||
  ------------------
  |  Branch (906:9): [True: 519, False: 34.3k]
  |  Branch (906:9): [True: 17.9k, False: 16.9k]
  |  Branch (906:34): [True: 93, False: 34.2k]
  ------------------
  907|  34.2k|        std::find(skipApp13Ps3.begin(), skipApp13Ps3.end(), count) != skipApp13Ps3.end() ||
  ------------------
  |  Branch (907:9): [True: 16.0k, False: 18.1k]
  ------------------
  908|  18.1k|        std::find(skipApp2Icc.begin(), skipApp2Icc.end(), count) != skipApp2Icc.end() || skipCom == count) {
  ------------------
  |  Branch (908:9): [True: 1.12k, False: 17.0k]
  |  Branch (908:90): [True: 136, False: 16.9k]
  ------------------
  909|  17.9k|      --search;
  910|  17.9k|    } else {
  911|  16.9k|      std::array<byte, 2> tmpBuf;
  912|       |      // Write marker and a copy of the segment.
  913|  16.9k|      tmpBuf[0] = 0xff;
  914|  16.9k|      tmpBuf[1] = marker;
  915|  16.9k|      if (outIo.write(tmpBuf.data(), 2) != 2)
  ------------------
  |  Branch (915:11): [True: 0, False: 16.9k]
  ------------------
  916|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  917|  16.9k|      if (outIo.write(buf.c_data(), buf.size()) != buf.size())
  ------------------
  |  Branch (917:11): [True: 0, False: 16.9k]
  ------------------
  918|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  919|  16.9k|      if (outIo.error())
  ------------------
  |  Branch (919:11): [True: 0, False: 16.9k]
  ------------------
  920|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  921|  16.9k|    }
  922|       |
  923|       |    // Next marker
  924|  34.8k|    marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  925|  34.8k|    ++count;
  926|  34.8k|  }
  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|    951|  io_->populateFakeData();
  931|       |
  932|       |  // Write the final marker, then copy rest of the Io.
  933|    951|  byte tmpBuf[2];
  934|    951|  tmpBuf[0] = 0xff;
  935|    951|  tmpBuf[1] = marker;
  936|    951|  if (outIo.write(tmpBuf, 2) != 2)
  ------------------
  |  Branch (936:7): [True: 0, False: 951]
  ------------------
  937|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  938|       |
  939|    951|  DataBuf buf(4096);
  940|    951|  size_t readSize = io_->read(buf.data(), buf.size());
  941|  1.61k|  while (readSize != 0) {
  ------------------
  |  Branch (941:10): [True: 665, False: 951]
  ------------------
  942|    665|    if (outIo.write(buf.c_data(), readSize) != readSize)
  ------------------
  |  Branch (942:9): [True: 0, False: 665]
  ------------------
  943|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  944|    665|    readSize = io_->read(buf.data(), buf.size());
  945|    665|  }
  946|    951|  if (outIo.error())
  ------------------
  |  Branch (946:7): [True: 0, False: 951]
  ------------------
  947|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  948|       |
  949|    951|}  // 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.03k|int JpegImage::writeHeader(BasicIo& outIo) const {
  976|       |  // Jpeg header
  977|  1.03k|  byte tmpBuf[2];
  978|  1.03k|  tmpBuf[0] = 0xff;
  979|  1.03k|  tmpBuf[1] = soi_;
  980|  1.03k|  if (outIo.write(tmpBuf, 2) != 2)
  ------------------
  |  Branch (980:7): [True: 0, False: 1.03k]
  ------------------
  981|      0|    return 4;
  982|  1.03k|  if (outIo.error())
  ------------------
  |  Branch (982:7): [True: 0, False: 1.03k]
  ------------------
  983|      0|    return 4;
  984|  1.03k|  return 0;
  985|  1.03k|}
_ZNK5Exiv29JpegImage10isThisTypeERNS_7BasicIoEb:
  987|  11.0k|bool JpegImage::isThisType(BasicIo& iIo, bool advance) const {
  988|  11.0k|  return isJpegType(iIo, advance);
  989|  11.0k|}
_ZN5Exiv215newJpegInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  991|  1.60k|Image::UniquePtr newJpegInstance(BasicIo::UniquePtr io, bool create) {
  992|  1.60k|  auto image = std::make_unique<JpegImage>(std::move(io), create);
  993|  1.60k|  if (!image->good()) {
  ------------------
  |  Branch (993:7): [True: 0, False: 1.60k]
  ------------------
  994|      0|    return nullptr;
  995|      0|  }
  996|  1.60k|  return image;
  997|  1.60k|}
_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: 14, False: 45.9k]
  ------------------
 1004|     14|    return false;
 1005|       |
 1006|  45.9k|  if (0xff != tmpBuf[0] || soi_ != tmpBuf[1]) {
  ------------------
  |  Branch (1006:7): [True: 31.8k, False: 14.1k]
  |  Branch (1006:28): [True: 73, False: 14.1k]
  ------------------
 1007|  31.8k|    result = false;
 1008|  31.8k|  }
 1009|  45.9k|  if (!advance || !result)
  ------------------
  |  Branch (1009:7): [True: 42.4k, False: 3.58k]
  |  Branch (1009:19): [True: 100, False: 3.48k]
  ------------------
 1010|  42.5k|    iIo.seek(-2, BasicIo::cur);
 1011|  45.9k|  return result;
 1012|  46.0k|}
_ZN5Exiv28ExvImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
 1015|     20|    JpegBase(ImageType::exv, std::move(io), create, blank_, sizeof(blank_)) {
 1016|     20|}
_ZNK5Exiv28ExvImage10isThisTypeERNS_7BasicIoEb:
 1033|     22|bool ExvImage::isThisType(BasicIo& iIo, bool advance) const {
 1034|     22|  return isExvType(iIo, advance);
 1035|     22|}
_ZN5Exiv214newExvInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
 1037|     20|Image::UniquePtr newExvInstance(BasicIo::UniquePtr io, bool create) {
 1038|     20|  auto image = std::make_unique<ExvImage>(std::move(io), create);
 1039|     20|  if (!image->good())
  ------------------
  |  Branch (1039:7): [True: 0, False: 20]
  ------------------
 1040|      0|    return nullptr;
 1041|     20|  return image;
 1042|     20|}
_ZN5Exiv29isExvTypeERNS_7BasicIoEb:
 1044|  31.8k|bool isExvType(BasicIo& iIo, bool advance) {
 1045|  31.8k|  bool result = true;
 1046|  31.8k|  byte tmpBuf[7];
 1047|  31.8k|  iIo.read(tmpBuf, 7);
 1048|  31.8k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (1048:7): [True: 0, False: 31.8k]
  |  Branch (1048:22): [True: 66, False: 31.7k]
  ------------------
 1049|     66|    return false;
 1050|       |
 1051|  31.7k|  if (0xff != tmpBuf[0] || 0x01 != tmpBuf[1] || memcmp(tmpBuf + 2, ExvImage::exiv2Id_, 5) != 0) {
  ------------------
  |  Branch (1051:7): [True: 31.6k, False: 89]
  |  Branch (1051:28): [True: 19, False: 70]
  |  Branch (1051:49): [True: 8, False: 62]
  ------------------
 1052|  31.7k|    result = false;
 1053|  31.7k|  }
 1054|  31.7k|  if (!advance || !result)
  ------------------
  |  Branch (1054:7): [True: 31.7k, False: 20]
  |  Branch (1054:19): [True: 0, False: 20]
  ------------------
 1055|  31.7k|    iIo.seek(-7, BasicIo::cur);
 1056|  31.7k|  return result;
 1057|  31.8k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_115readSegmentSizeEhRNS_7BasicIoE:
  103|   239k|std::pair<std::array<byte, 2>, uint16_t> readSegmentSize(const byte marker, BasicIo& io) {
  104|   239k|  std::array<byte, 2> buf{0, 0};  // 2-byte buffer for reading the size.
  105|   239k|  uint16_t size{0};               // Size of the segment, including the 2-byte size field
  106|   239k|  if (markerHasLength(marker)) {
  ------------------
  |  Branch (106:7): [True: 201k, False: 37.8k]
  ------------------
  107|   201k|    io.readOrThrow(buf.data(), buf.size(), ErrorCode::kerFailedToReadImageData);
  108|   201k|    size = getUShort(buf.data(), bigEndian);
  109|   201k|    enforce(size >= 2, ErrorCode::kerFailedToReadImageData);
  110|   201k|  }
  111|   239k|  return {buf, size};
  112|   239k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_18inRange2Eiiiii:
   91|  69.1k|constexpr bool inRange2(int value, int lo1, int hi1, int lo2, int hi2) {
   92|  69.1k|  return inRange(lo1, value, hi1) || inRange(lo2, value, hi2);
  ------------------
  |  Branch (92:10): [True: 140, False: 69.0k]
  |  Branch (92:38): [True: 274, False: 68.7k]
  ------------------
   93|  69.1k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_17inRangeEiii:
   87|   138k|constexpr bool inRange(int lo, int value, int hi) {
   88|   138k|  return lo <= value && value <= hi;
  ------------------
  |  Branch (88:10): [True: 134k, False: 3.27k]
  |  Branch (88:25): [True: 414, False: 134k]
  ------------------
   89|   138k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_115markerHasLengthEh:
   98|   281k|bool markerHasLength(byte m) {
   99|   281k|  bool markerWithoutLength = m >= rst1_ && m <= eoi_;
  ------------------
  |  Branch (99:30): [True: 262k, False: 19.2k]
  |  Branch (99:44): [True: 48.1k, False: 213k]
  ------------------
  100|   281k|  return !markerWithoutLength;
  101|   281k|}

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

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

_ZN5Exiv213MatroskaVideoC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  599|  1.40k|MatroskaVideo::MatroskaVideo(BasicIo::UniquePtr io) : Image(ImageType::mkv, mdNone, std::move(io)) {
  600|  1.40k|}  // MatroskaVideo::MatroskaVideo
_ZNK5Exiv213MatroskaVideo8mimeTypeEv:
  602|  1.40k|std::string MatroskaVideo::mimeType() const {
  603|  1.40k|  return "video/matroska";
  604|  1.40k|}
_ZN5Exiv213MatroskaVideo12readMetadataEv:
  609|  1.40k|void MatroskaVideo::readMetadata() {
  610|  1.40k|  if (io_->open() != 0)
  ------------------
  |  Branch (610:7): [True: 0, False: 1.40k]
  ------------------
  611|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  612|       |
  613|       |  // Ensure that this is the correct image type
  614|  1.40k|  if (!isMkvType(*io_, false)) {
  ------------------
  |  Branch (614:7): [True: 0, False: 1.40k]
  ------------------
  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.40k|  IoCloser closer(*io_);
  621|  1.40k|  clearMetadata();
  622|  1.40k|  continueTraversing_ = true;
  623|  1.40k|  height_ = width_ = 1;
  624|       |
  625|  1.40k|  xmpData_["Xmp.video.FileSize"] = io_->size() / bytesMB;
  626|  1.40k|  xmpData_["Xmp.video.MimeType"] = mimeType();
  627|       |
  628|  72.6k|  while (continueTraversing_)
  ------------------
  |  Branch (628:10): [True: 71.2k, False: 1.40k]
  ------------------
  629|  71.2k|    decodeBlock();
  630|       |
  631|  1.40k|  xmpData_["Xmp.video.AspectRatio"] = getAspectRatio(width_, height_);
  632|  1.40k|}
_ZN5Exiv213MatroskaVideo11decodeBlockEv:
  634|  71.2k|void MatroskaVideo::decodeBlock() {
  635|  71.2k|  byte buf[8];
  636|  71.2k|  io_->read(buf, 1);
  637|       |
  638|  71.2k|  if (io_->eof()) {
  ------------------
  |  Branch (638:7): [True: 122, False: 71.0k]
  ------------------
  639|    122|    continueTraversing_ = false;
  640|    122|    return;
  641|    122|  }
  642|       |
  643|  71.0k|  uint32_t block_size = findBlockSize(buf[0]);  // 0-8
  644|  71.0k|  if (block_size > 0)
  ------------------
  |  Branch (644:7): [True: 70.8k, False: 208]
  ------------------
  645|  70.8k|    io_->readOrThrow(buf + 1, block_size - 1, ErrorCode::kerCorruptedMetadata);
  646|       |
  647|  71.0k|  auto tag_id = returnTagValue(buf, block_size);
  648|  71.0k|  const MatroskaTag* tag = Exiv2::find(matroskaTags, tag_id);
  649|       |
  650|  71.0k|  if (!tag) {
  ------------------
  |  Branch (650:7): [True: 708, False: 70.3k]
  ------------------
  651|    708|    continueTraversing_ = false;
  652|    708|    return;
  653|    708|  }
  654|       |
  655|       |  // tag->dump(std::cout);
  656|       |
  657|  70.3k|  if (tag->_id == Cues || tag->_id == Cluster) {
  ------------------
  |  Branch (657:7): [True: 256, False: 70.1k]
  |  Branch (657:27): [True: 0, False: 70.1k]
  ------------------
  658|      1|    continueTraversing_ = false;
  659|      1|    return;
  660|      1|  }
  661|       |
  662|  70.3k|  io_->readOrThrow(buf, 1, ErrorCode::kerCorruptedMetadata);
  663|  70.3k|  block_size = findBlockSize(buf[0]);  // 0-8
  664|       |
  665|  70.3k|  if (block_size > 0)
  ------------------
  |  Branch (665:7): [True: 70.0k, False: 330]
  ------------------
  666|  70.0k|    io_->readOrThrow(buf + 1, block_size - 1, ErrorCode::kerCorruptedMetadata);
  667|  70.3k|  size_t size = returnTagValue(buf, block_size);
  668|       |
  669|  70.3k|  if (tag->isComposite() && !tag->isSkipped())
  ------------------
  |  Branch (669:7): [True: 42.1k, False: 28.2k]
  |  Branch (669:29): [True: 42.1k, False: 0]
  ------------------
  670|  42.1k|    return;
  671|       |
  672|  28.2k|  const size_t bufMaxSize = 200;
  673|       |
  674|  28.2k|#ifndef SUPPRESS_WARNINGS
  675|  28.2k|  if (!tag->isSkipped() && size > bufMaxSize) {
  ------------------
  |  Branch (675:7): [True: 26.4k, False: 1.86k]
  |  Branch (675:28): [True: 51, False: 26.3k]
  ------------------
  676|     51|    EXV_WARNING << "Size " << size << " of Matroska tag 0x" << std::hex << tag->_id << std::dec << " is greater than "
  ------------------
  |  |  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()
  ------------------
  677|      0|                << bufMaxSize << ": ignoring it.\n";
  678|     51|  }
  679|  28.2k|#endif
  680|  28.2k|  if (tag->isSkipped() || size > bufMaxSize) {
  ------------------
  |  Branch (680:7): [True: 1.86k, False: 26.4k]
  |  Branch (680:27): [True: 51, False: 26.3k]
  ------------------
  681|  1.57k|    io_->seek(size, BasicIo::cur);
  682|  1.57k|    return;
  683|  1.57k|  }
  684|       |
  685|  26.7k|  DataBuf buf2(bufMaxSize + 1);
  686|  26.7k|  io_->readOrThrow(buf2.data(), size, ErrorCode::kerCorruptedMetadata);
  687|  26.7k|  switch (tag->_type) {
  688|  4.31k|    case InternalField:
  ------------------
  |  Branch (688:5): [True: 4.31k, False: 22.3k]
  ------------------
  689|  4.31k|      decodeInternalTags(tag, buf2.data());
  690|  4.31k|      break;
  691|  2.29k|    case String:
  ------------------
  |  Branch (691:5): [True: 2.29k, False: 24.4k]
  ------------------
  692|  2.29k|    case Utf8:
  ------------------
  |  Branch (692:5): [True: 0, False: 26.7k]
  ------------------
  693|  2.29k|      decodeStringTags(tag, buf2.data());
  694|  2.29k|      break;
  695|  6.70k|    case Integer:
  ------------------
  |  Branch (695:5): [True: 6.70k, False: 19.9k]
  ------------------
  696|  8.22k|    case UInteger:
  ------------------
  |  Branch (696:5): [True: 1.51k, False: 25.1k]
  ------------------
  697|  8.22k|      decodeIntegerTags(tag, buf2.data());
  698|  8.22k|      break;
  699|  9.66k|    case Boolean:
  ------------------
  |  Branch (699:5): [True: 9.66k, False: 17.0k]
  ------------------
  700|  9.66k|      decodeBooleanTags(tag, buf2.data());
  701|  9.66k|      break;
  702|    989|    case Date:
  ------------------
  |  Branch (702:5): [True: 989, False: 25.7k]
  ------------------
  703|    989|      decodeDateTags(tag, buf2.data(), size);
  704|    989|      break;
  705|    685|    case Float:
  ------------------
  |  Branch (705:5): [True: 685, False: 26.0k]
  ------------------
  706|    685|      decodeFloatTags(tag, buf2.data());
  707|    685|      break;
  708|      0|    case Binary:
  ------------------
  |  Branch (708:5): [True: 0, False: 26.7k]
  ------------------
  709|      0|      break;
  710|      0|    case Master:
  ------------------
  |  Branch (710:5): [True: 0, False: 26.7k]
  ------------------
  711|      0|      break;
  712|      0|    default:
  ------------------
  |  Branch (712:5): [True: 0, False: 26.7k]
  ------------------
  713|      0|      break;
  714|  26.7k|  }
  715|  26.7k|}  // MatroskaVideo::decodeBlock
_ZN5Exiv213MatroskaVideo18decodeInternalTagsEPKNS_8Internal11MatroskaTagEPKh:
  717|  4.31k|void MatroskaVideo::decodeInternalTags(const MatroskaTag* tag, const byte* buf) {
  718|  4.31k|  uint64_t key = getULongLong(buf, bigEndian);
  719|  4.31k|  if (!key)
  ------------------
  |  Branch (719:7): [True: 58, False: 4.25k]
  ------------------
  720|     58|    return;
  721|       |
  722|  4.25k|  auto internalMt = [=]() -> const MatroskaTag* {
  723|  4.25k|    switch (tag->_id) {
  724|  4.25k|      case Xmp_video_VideoScanTpye:
  725|  4.25k|        return Exiv2::find(videoScanType, key);
  726|  4.25k|      case Xmp_audio_ChannelType:
  727|  4.25k|        return Exiv2::find(audioChannels, key);
  728|  4.25k|      case Xmp_video_ContentCompressAlgo:
  729|  4.25k|        return Exiv2::find(compressionAlgorithm, key);
  730|  4.25k|      case Xmp_video_ContentEncryptAlgo:
  731|  4.25k|        return Exiv2::find(encryptionAlgorithm, key);
  732|  4.25k|      case Xmp_video_ContentSignAlgo_1:
  733|  4.25k|      case Xmp_video_ContentSignAlgo_2:
  734|  4.25k|        return Exiv2::find(contentSignatureAlgorithm, key);
  735|  4.25k|      case Xmp_video_ContentSignHashAlgo_1:
  736|  4.25k|      case Xmp_video_ContentSignHashAlgo_2:
  737|  4.25k|        return Exiv2::find(contentSignatureHashAlgorithm, key);
  738|  4.25k|      case Xmp_video_ContentEncodingType:
  739|  4.25k|        return Exiv2::find(encodingType, key);
  740|  4.25k|      case Xmp_video_DisplayUnit:
  741|  4.25k|        return Exiv2::find(displayUnit, key);
  742|  4.25k|      case Xmp_video_AspectRatioType:
  743|  4.25k|        return Exiv2::find(aspectRatioType, key);
  744|  4.25k|      case Xmp_video_PhysicalEquivalent:
  745|  4.25k|        return Exiv2::find(chapterPhysicalEquivalent, key);
  746|  4.25k|      case Xmp_video_TranslateCodec:
  747|  4.25k|        return Exiv2::find(chapterTranslateCodec, key);
  748|  4.25k|      case Video_Audio_CodecID:
  749|  4.25k|        return Exiv2::find(trackCodec, key);
  750|  4.25k|      case Video_Audio_CodecName:
  751|  4.25k|        return Exiv2::find(codecInfo, key);
  752|  4.25k|      case CodecDownloadURL:
  753|  4.25k|      case CodecInfoURL:
  754|  4.25k|        return Exiv2::find(codecDownloadUrl, key);
  755|  4.25k|    }
  756|  4.25k|    return nullptr;
  757|  4.25k|  }();
  758|  4.25k|  if (internalMt) {
  ------------------
  |  Branch (758:7): [True: 1.39k, False: 2.85k]
  ------------------
  759|  1.39k|    xmpData_[tag->_label] = internalMt->_label;
  760|  2.85k|  } else {
  761|  2.85k|    xmpData_[tag->_label] = key;
  762|  2.85k|  }
  763|  4.25k|}
_ZN5Exiv213MatroskaVideo16decodeStringTagsEPKNS_8Internal11MatroskaTagEPKh:
  765|  2.29k|void MatroskaVideo::decodeStringTags(const MatroskaTag* tag, const byte* buf) {
  766|  2.29k|  if (tag->_id == TrackNumber) {
  ------------------
  |  Branch (766:7): [True: 51, False: 2.24k]
  ------------------
  767|     51|    track_count_++;
  768|     51|    xmpData_[tag->_label] = track_count_;
  769|  2.24k|  } else {
  770|  2.24k|    xmpData_[tag->_label] = buf;
  771|  2.24k|  }
  772|  2.29k|}
_ZN5Exiv213MatroskaVideo17decodeIntegerTagsEPKNS_8Internal11MatroskaTagEPKh:
  774|  8.22k|void MatroskaVideo::decodeIntegerTags(const MatroskaTag* tag, const byte* buf) {
  775|  8.22k|  uint64_t value = getULongLong(buf, bigEndian);
  776|  8.22k|  if (!value)
  ------------------
  |  Branch (776:7): [True: 7.02k, False: 1.19k]
  ------------------
  777|  7.02k|    return;
  778|       |
  779|  1.19k|  if (tag->_id == Xmp_video_Width_1 || tag->_id == Xmp_video_Width_2)
  ------------------
  |  Branch (779:7): [True: 630, False: 569]
  |  Branch (779:40): [True: 228, False: 341]
  ------------------
  780|    858|    width_ = value;
  781|  1.19k|  if (tag->_id == Xmp_video_Height_1 || tag->_id == Xmp_video_Height_2)
  ------------------
  |  Branch (781:7): [True: 147, False: 1.05k]
  |  Branch (781:41): [True: 102, False: 950]
  ------------------
  782|    249|    height_ = value;
  783|  1.19k|  xmpData_[tag->_label] = value;
  784|  1.19k|}
_ZN5Exiv213MatroskaVideo17decodeBooleanTagsEPKNS_8Internal11MatroskaTagEPKh:
  786|  9.66k|void MatroskaVideo::decodeBooleanTags(const MatroskaTag* tag, const byte* buf) {
  787|  9.66k|  const MatroskaTag* internalMt = nullptr;
  788|  9.66k|  uint64_t key = getULongLong(buf, bigEndian);
  789|  9.66k|  if (!key)
  ------------------
  |  Branch (789:7): [True: 1.61k, False: 8.04k]
  ------------------
  790|  1.61k|    return;
  791|       |
  792|  8.04k|  switch (tag->_id) {
  793|  3.23k|    case TrackType:  // this tags is used internally only to deduce the type of track (video or audio)
  ------------------
  |  Branch (793:5): [True: 3.23k, False: 4.81k]
  ------------------
  794|  3.23k|      if (auto f = Exiv2::find(matroskaTrackType, key)) {
  ------------------
  |  Branch (794:16): [True: 242, False: 2.99k]
  ------------------
  795|    242|        stream_ = f->_id;
  796|    242|      }
  797|  3.23k|      break;
  798|    134|    case TrackUsed:
  ------------------
  |  Branch (798:5): [True: 134, False: 7.91k]
  ------------------
  799|    134|      internalMt = Exiv2::find(trackEnable, key);
  800|    134|      break;
  801|  1.03k|    case TrackDefault:
  ------------------
  |  Branch (801:5): [True: 1.03k, False: 7.01k]
  ------------------
  802|  1.03k|      internalMt = Exiv2::find(defaultOn, key);
  803|  1.03k|      break;
  804|  1.64k|    case TrackForced:
  ------------------
  |  Branch (804:5): [True: 1.64k, False: 6.39k]
  ------------------
  805|  1.64k|      internalMt = Exiv2::find(trackForced, key);
  806|  1.64k|      break;
  807|    277|    case TrackLacing:
  ------------------
  |  Branch (807:5): [True: 277, False: 7.77k]
  ------------------
  808|    277|      internalMt = Exiv2::find(trackLacing, key);
  809|    277|      break;
  810|  1.03k|    case CodecDecodeAll:
  ------------------
  |  Branch (810:5): [True: 1.03k, False: 7.01k]
  ------------------
  811|  1.03k|      internalMt = Exiv2::find(codecDecodeAll, key);
  812|  1.03k|      break;
  813|    672|    case CodecSettings:
  ------------------
  |  Branch (813:5): [True: 672, False: 7.37k]
  ------------------
  814|    672|      internalMt = Exiv2::find(codecSettings, key);
  815|    672|      break;
  816|      6|    case Xmp_video_TagDefault:
  ------------------
  |  Branch (816:5): [True: 6, False: 8.04k]
  ------------------
  817|      6|      internalMt = tag;
  818|      6|      break;
  819|      0|    default:
  ------------------
  |  Branch (819:5): [True: 0, False: 8.04k]
  ------------------
  820|      0|      break;
  821|  8.04k|  }
  822|       |
  823|  8.04k|  if (internalMt) {
  ------------------
  |  Branch (823:7): [True: 2.42k, False: 5.62k]
  ------------------
  824|  2.42k|    xmpData_[internalMt->_label] = "Yes";
  825|  2.42k|  }
  826|  8.04k|}
_ZN5Exiv213MatroskaVideo14decodeDateTagsEPKNS_8Internal11MatroskaTagEPKhm:
  828|    989|void MatroskaVideo::decodeDateTags(const MatroskaTag* tag, const byte* buf, size_t size) {
  829|    989|  int64_t duration_in_ms = 0;
  830|    989|  uint64_t value;
  831|    989|  switch (tag->_id) {
  832|    197|    case Xmp_video_Duration:
  ------------------
  |  Branch (832:5): [True: 197, False: 792]
  ------------------
  833|    197|      if (size <= 4) {
  ------------------
  |  Branch (833:11): [True: 66, False: 131]
  ------------------
  834|     66|        duration_in_ms = std::llround(getFloat(buf, bigEndian) * time_code_scale_ * 1000.0);
  835|    131|      } else {
  836|    131|        duration_in_ms = std::llround(getDouble(buf, bigEndian) * time_code_scale_ * 1000);
  837|    131|      }
  838|    197|      xmpData_[tag->_label] = duration_in_ms;
  839|    197|      break;
  840|    685|    case Xmp_video_DateUTC:
  ------------------
  |  Branch (840:5): [True: 685, False: 304]
  ------------------
  841|    685|      value = getULongLong(buf, bigEndian);
  842|    685|      if (!value)
  ------------------
  |  Branch (842:11): [True: 242, False: 443]
  ------------------
  843|    242|        return;
  844|    443|      duration_in_ms = value / 1000000000;
  845|    443|      xmpData_[tag->_label] = duration_in_ms;
  846|    443|      break;
  847|       |
  848|    107|    case TimecodeScale:
  ------------------
  |  Branch (848:5): [True: 107, False: 882]
  ------------------
  849|    107|      value = getULongLong(buf, bigEndian);
  850|    107|      if (!value)
  ------------------
  |  Branch (850:11): [True: 34, False: 73]
  ------------------
  851|     34|        return;
  852|     73|      time_code_scale_ = static_cast<double>(value) / static_cast<double>(1000000000);
  853|     73|      xmpData_[tag->_label] = time_code_scale_;
  854|     73|      break;
  855|      0|    default:
  ------------------
  |  Branch (855:5): [True: 0, False: 989]
  ------------------
  856|      0|      break;
  857|    989|  }
  858|    989|}
_ZN5Exiv213MatroskaVideo15decodeFloatTagsEPKNS_8Internal11MatroskaTagEPKh:
  860|    685|void MatroskaVideo::decodeFloatTags(const MatroskaTag* tag, const byte* buf) {
  861|    685|  xmpData_[tag->_label] = getFloat(buf, bigEndian);
  862|       |
  863|    685|  switch (tag->_id) {
  864|     23|    case Xmp_audio_SampleRate:
  ------------------
  |  Branch (864:5): [True: 23, False: 662]
  ------------------
  865|    101|    case Xmp_audio_OutputSampleRate:
  ------------------
  |  Branch (865:5): [True: 78, False: 607]
  ------------------
  866|    101|      xmpData_[tag->_label] = getFloat(buf, bigEndian);
  867|    101|      break;
  868|      0|    case VideoFrameRate_DefaultDuration:
  ------------------
  |  Branch (868:5): [True: 0, False: 685]
  ------------------
  869|    584|    case Xmp_video_FrameRate: {
  ------------------
  |  Branch (869:5): [True: 584, False: 101]
  ------------------
  870|    584|      uint64_t key = getULongLong(buf, bigEndian);
  871|    584|      if (!key)
  ------------------
  |  Branch (871:11): [True: 8, False: 576]
  ------------------
  872|      8|        return;
  873|    576|      if (auto internalMt = Exiv2::find(streamRate, key)) {
  ------------------
  |  Branch (873:16): [True: 313, False: 263]
  ------------------
  874|    313|        double frame_rate = 0;
  875|    313|        switch (stream_) {
  876|     82|          case 1:  // video
  ------------------
  |  Branch (876:11): [True: 82, False: 231]
  ------------------
  877|     82|            frame_rate = 1000000000.0 / static_cast<double>(key);
  878|     82|            break;
  879|      9|          case 2:  // audio
  ------------------
  |  Branch (879:11): [True: 9, False: 304]
  ------------------
  880|      9|            frame_rate = static_cast<double>(key) / 1000;
  881|      9|            break;
  882|    222|          default:
  ------------------
  |  Branch (882:11): [True: 222, False: 91]
  ------------------
  883|    222|            break;
  884|    313|        }
  885|    313|        if (std::isgreater(frame_rate, 0.0))
  ------------------
  |  Branch (885:13): [True: 91, False: 222]
  ------------------
  886|     91|          xmpData_[internalMt->_label] = frame_rate;
  887|    313|      } else
  888|    263|        xmpData_[tag->_label] = "Variable Bit Rate";
  889|    576|    } break;
  890|    576|    default:
  ------------------
  |  Branch (890:5): [True: 0, False: 685]
  ------------------
  891|      0|      xmpData_[tag->_label] = getFloat(buf, bigEndian);
  892|      0|      break;
  893|    685|  }
  894|    685|}
_ZN5Exiv213MatroskaVideo13findBlockSizeEh:
  896|   141k|uint32_t MatroskaVideo::findBlockSize(byte b) {
  897|   141k|  if (b & 128)
  ------------------
  |  Branch (897:7): [True: 119k, False: 21.2k]
  ------------------
  898|   119k|    return 1;
  899|  21.2k|  if (b & 64)
  ------------------
  |  Branch (899:7): [True: 11.2k, False: 9.96k]
  ------------------
  900|  11.2k|    return 2;
  901|  9.96k|  if (b & 32)
  ------------------
  |  Branch (901:7): [True: 3.32k, False: 6.64k]
  ------------------
  902|  3.32k|    return 3;
  903|  6.64k|  if (b & 16)
  ------------------
  |  Branch (903:7): [True: 3.81k, False: 2.82k]
  ------------------
  904|  3.81k|    return 4;
  905|  2.82k|  if (b & 8)
  ------------------
  |  Branch (905:7): [True: 625, False: 2.19k]
  ------------------
  906|    625|    return 5;
  907|  2.19k|  if (b & 4)
  ------------------
  |  Branch (907:7): [True: 267, False: 1.93k]
  ------------------
  908|    267|    return 6;
  909|  1.93k|  if (b & 2)
  ------------------
  |  Branch (909:7): [True: 759, False: 1.17k]
  ------------------
  910|    759|    return 7;
  911|  1.17k|  if (b & 1)
  ------------------
  |  Branch (911:7): [True: 921, False: 250]
  ------------------
  912|    921|    return 8;
  913|    250|  return 0;
  914|  1.17k|}
_ZN5Exiv214newMkvInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  916|  1.40k|Image::UniquePtr newMkvInstance(BasicIo::UniquePtr io, bool /*create*/) {
  917|  1.40k|  auto image = std::make_unique<MatroskaVideo>(std::move(io));
  918|  1.40k|  if (!image->good()) {
  ------------------
  |  Branch (918:7): [True: 0, False: 1.40k]
  ------------------
  919|      0|    return nullptr;
  920|      0|  }
  921|  1.40k|  return image;
  922|  1.40k|}
_ZN5Exiv29isMkvTypeERNS_7BasicIoEb:
  924|  9.79k|bool isMkvType(BasicIo& iIo, bool advance) {
  925|  9.79k|  bool result = true;
  926|  9.79k|  byte tmpBuf[4];
  927|  9.79k|  iIo.read(tmpBuf, 4);
  928|       |
  929|  9.79k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (929:7): [True: 0, False: 9.79k]
  |  Branch (929:22): [True: 125, False: 9.67k]
  ------------------
  930|    125|    return false;
  931|       |
  932|  9.67k|  if (0x1a != tmpBuf[0] || 0x45 != tmpBuf[1] || 0xdf != tmpBuf[2] || 0xa3 != tmpBuf[3]) {
  ------------------
  |  Branch (932:7): [True: 5.42k, False: 4.25k]
  |  Branch (932:28): [True: 11, False: 4.24k]
  |  Branch (932:49): [True: 7, False: 4.23k]
  |  Branch (932:70): [True: 12, False: 4.22k]
  ------------------
  933|  5.45k|    result = false;
  934|  5.45k|  }
  935|       |
  936|  9.67k|  if (!advance || !result)
  ------------------
  |  Branch (936:7): [True: 9.67k, False: 0]
  |  Branch (936:19): [True: 0, False: 0]
  ------------------
  937|  9.67k|    iIo.seek(0, BasicIo::beg);
  938|  9.67k|  return result;
  939|  9.79k|}
matroskavideo.cpp:_ZN5Exiv28InternalL14returnTagValueEPKhm:
  582|   141k|[[nodiscard]] static size_t returnTagValue(const byte* buf, size_t size) {
  583|   141k|  enforce(size > 0 && size <= 8, Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (583:11): [True: 140k, False: 250]
  |  Branch (583:23): [True: 140k, False: 0]
  ------------------
  584|       |
  585|   141k|  size_t b0 = buf[0] & (0xff >> size);
  586|   141k|  size_t tag = b0 << ((size - 1) * 8);
  587|   185k|  for (size_t i = 1; i < size; ++i) {
  ------------------
  |  Branch (587:22): [True: 44.0k, False: 141k]
  ------------------
  588|  44.0k|    tag |= static_cast<size_t>(buf[i]) << ((size - i - 1) * 8);
  589|  44.0k|  }
  590|       |
  591|   141k|  return tag;
  592|   141k|}
matroskavideo.cpp:_ZZN5Exiv213MatroskaVideo18decodeInternalTagsEPKNS_8Internal11MatroskaTagEPKhENK3$_0clEv:
  722|  4.25k|  auto internalMt = [=]() -> const MatroskaTag* {
  723|  4.25k|    switch (tag->_id) {
  ------------------
  |  Branch (723:13): [True: 4.25k, False: 0]
  ------------------
  724|    576|      case Xmp_video_VideoScanTpye:
  ------------------
  |  Branch (724:7): [True: 576, False: 3.68k]
  ------------------
  725|    576|        return Exiv2::find(videoScanType, key);
  726|    271|      case Xmp_audio_ChannelType:
  ------------------
  |  Branch (726:7): [True: 271, False: 3.98k]
  ------------------
  727|    271|        return Exiv2::find(audioChannels, key);
  728|    410|      case Xmp_video_ContentCompressAlgo:
  ------------------
  |  Branch (728:7): [True: 410, False: 3.84k]
  ------------------
  729|    410|        return Exiv2::find(compressionAlgorithm, key);
  730|    253|      case Xmp_video_ContentEncryptAlgo:
  ------------------
  |  Branch (730:7): [True: 253, False: 4.00k]
  ------------------
  731|    253|        return Exiv2::find(encryptionAlgorithm, key);
  732|    135|      case Xmp_video_ContentSignAlgo_1:
  ------------------
  |  Branch (732:7): [True: 135, False: 4.12k]
  ------------------
  733|    180|      case Xmp_video_ContentSignAlgo_2:
  ------------------
  |  Branch (733:7): [True: 45, False: 4.21k]
  ------------------
  734|    180|        return Exiv2::find(contentSignatureAlgorithm, key);
  735|     21|      case Xmp_video_ContentSignHashAlgo_1:
  ------------------
  |  Branch (735:7): [True: 21, False: 4.23k]
  ------------------
  736|    453|      case Xmp_video_ContentSignHashAlgo_2:
  ------------------
  |  Branch (736:7): [True: 432, False: 3.82k]
  ------------------
  737|    453|        return Exiv2::find(contentSignatureHashAlgorithm, key);
  738|     51|      case Xmp_video_ContentEncodingType:
  ------------------
  |  Branch (738:7): [True: 51, False: 4.20k]
  ------------------
  739|     51|        return Exiv2::find(encodingType, key);
  740|    359|      case Xmp_video_DisplayUnit:
  ------------------
  |  Branch (740:7): [True: 359, False: 3.89k]
  ------------------
  741|    359|        return Exiv2::find(displayUnit, key);
  742|    167|      case Xmp_video_AspectRatioType:
  ------------------
  |  Branch (742:7): [True: 167, False: 4.09k]
  ------------------
  743|    167|        return Exiv2::find(aspectRatioType, key);
  744|  1.39k|      case Xmp_video_PhysicalEquivalent:
  ------------------
  |  Branch (744:7): [True: 1.39k, False: 2.86k]
  ------------------
  745|  1.39k|        return Exiv2::find(chapterPhysicalEquivalent, key);
  746|    106|      case Xmp_video_TranslateCodec:
  ------------------
  |  Branch (746:7): [True: 106, False: 4.15k]
  ------------------
  747|    106|        return Exiv2::find(chapterTranslateCodec, key);
  748|      0|      case Video_Audio_CodecID:
  ------------------
  |  Branch (748:7): [True: 0, False: 4.25k]
  ------------------
  749|      0|        return Exiv2::find(trackCodec, key);
  750|     20|      case Video_Audio_CodecName:
  ------------------
  |  Branch (750:7): [True: 20, False: 4.23k]
  ------------------
  751|     20|        return Exiv2::find(codecInfo, key);
  752|      5|      case CodecDownloadURL:
  ------------------
  |  Branch (752:7): [True: 5, False: 4.25k]
  ------------------
  753|     15|      case CodecInfoURL:
  ------------------
  |  Branch (753:7): [True: 10, False: 4.24k]
  ------------------
  754|     15|        return Exiv2::find(codecDownloadUrl, key);
  755|  4.25k|    }
  756|      0|    return nullptr;
  757|  4.25k|  }();

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

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

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

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

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

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

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

_ZN5Exiv28Internal16OlympusMakerNote7tagListEv:
   33|   229k|  static constexpr auto tagList() {
   34|   229k|    return tagInfo_;
   35|   229k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListCsEv:
   37|  99.5k|  static constexpr auto tagListCs() {
   38|  99.5k|    return tagInfoCs_;
   39|  99.5k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListEqEv:
   41|  8.75k|  static constexpr auto tagListEq() {
   42|  8.75k|    return tagInfoEq_;
   43|  8.75k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListRdEv:
   45|  8.85k|  static constexpr auto tagListRd() {
   46|  8.85k|    return tagInfoRd_;
   47|  8.85k|  }
_ZN5Exiv28Internal16OlympusMakerNote10tagListRd2Ev:
   49|  8.38k|  static constexpr auto tagListRd2() {
   50|  8.38k|    return tagInfoRd2_;
   51|  8.38k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListIpEv:
   53|  6.54k|  static constexpr auto tagListIp() {
   54|  6.54k|    return tagInfoIp_;
   55|  6.54k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListFiEv:
   57|  8.65k|  static constexpr auto tagListFi() {
   58|  8.65k|    return tagInfoFi_;
   59|  8.65k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListFeEv:
   61|  7.56k|  static constexpr auto tagListFe() {
   62|  7.56k|    return tagInfoFe_;
   63|  7.56k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListRiEv:
   65|  11.5k|  static constexpr auto tagListRi() {
   66|  11.5k|    return tagInfoRi_;
   67|  11.5k|  }

_ZN5Exiv28OrfImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   25|     66|    TiffImage(/*ImageType::orf, mdExif | mdIptc | mdXmp,*/ std::move(io), create) {
   26|     66|  setTypeSupported(ImageType::orf, mdExif | mdIptc | mdXmp);
   27|     66|}  // OrfImage::OrfImage
_ZNK5Exiv28OrfImage10pixelWidthEv:
   33|     24|uint32_t OrfImage::pixelWidth() const {
   34|     24|  auto imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.Image.ImageWidth"));
   35|     24|  if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
  ------------------
  |  Branch (35:7): [True: 9, False: 15]
  |  Branch (35:7): [True: 3, False: 21]
  |  Branch (35:40): [True: 3, False: 6]
  ------------------
   36|      3|    return imageWidth->toUint32();
   37|      3|  }
   38|     21|  return 0;
   39|     24|}
_ZNK5Exiv28OrfImage11pixelHeightEv:
   41|     24|uint32_t OrfImage::pixelHeight() const {
   42|     24|  auto imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.Image.ImageLength"));
   43|     24|  if (imageHeight != exifData_.end() && imageHeight->count() > 0) {
  ------------------
  |  Branch (43:7): [True: 12, False: 12]
  |  Branch (43:7): [True: 6, False: 18]
  |  Branch (43:41): [True: 6, False: 6]
  ------------------
   44|      6|    return imageHeight->toUint32();
   45|      6|  }
   46|     18|  return 0;
   47|     24|}
_ZN5Exiv28OrfImage14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
   54|     60|void OrfImage::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
   55|     60|  out << "ORF IMAGE" << '\n';
   56|     60|  if (io_->open() != 0)
  ------------------
  |  Branch (56:7): [True: 0, False: 60]
  ------------------
   57|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   58|       |  // Ensure that this is the correct image type
   59|     60|  if (imageType() == ImageType::none && !isOrfType(*io_, false)) {
  ------------------
  |  Branch (59:7): [True: 0, False: 60]
  |  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|     60|  io_->seek(0, BasicIo::beg);
   66|       |
   67|     60|  printTiffStructure(io(), out, option, depth);
   68|     60|}  // OrfImage::printStructure
_ZN5Exiv28OrfImage12readMetadataEv:
   70|     66|void OrfImage::readMetadata() {
   71|       |#ifdef EXIV2_DEBUG_MESSAGES
   72|       |  std::cerr << "Reading ORF file " << io_->path() << "\n";
   73|       |#endif
   74|     66|  if (io_->open() != 0) {
  ------------------
  |  Branch (74:7): [True: 0, False: 66]
  ------------------
   75|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   76|      0|  }
   77|     66|  IoCloser closer(*io_);
   78|       |  // Ensure that this is the correct image type
   79|     66|  if (!isOrfType(*io_, false)) {
  ------------------
  |  Branch (79:7): [True: 0, False: 66]
  ------------------
   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|     66|  clearMetadata();
   85|     66|  ByteOrder bo = OrfParser::decode(exifData_, iptcData_, xmpData_, io_->mmap(), io_->size());
   86|     66|  setByteOrder(bo);
   87|     66|}
_ZN5Exiv29OrfParser6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhm:
  113|     66|ByteOrder OrfParser::decode(ExifData& exifData, IptcData& iptcData, XmpData& xmpData, const byte* pData, size_t size) {
  114|     66|  OrfHeader orfHeader;
  115|     66|  return TiffParserWorker::decode(exifData, iptcData, xmpData, pData, size, Tag::root, TiffMapping::findDecoder,
  116|     66|                                  &orfHeader);
  117|     66|}
_ZN5Exiv214newOrfInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  139|     66|Image::UniquePtr newOrfInstance(BasicIo::UniquePtr io, bool create) {
  140|     66|  auto image = std::make_unique<OrfImage>(std::move(io), create);
  141|     66|  if (!image->good()) {
  ------------------
  |  Branch (141:7): [True: 0, False: 66]
  ------------------
  142|      0|    return nullptr;
  143|      0|  }
  144|     66|  return image;
  145|     66|}
_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: 121, False: 14.0k]
  ------------------
  152|    121|    return false;
  153|    121|  }
  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.0k|OrfHeader::OrfHeader(ByteOrder byteOrder) : TiffHeaderBase(0x4f52, 8, byteOrder, 0x00000008) {
    7|  14.0k|}
_ZN5Exiv28Internal9OrfHeader4readEPKhm:
    9|  14.0k|bool OrfHeader::read(const byte* pData, size_t size) {
   10|  14.0k|  if (size < 8)
  ------------------
  |  Branch (10:7): [True: 0, False: 14.0k]
  ------------------
   11|      0|    return false;
   12|       |
   13|  14.0k|  if (pData[0] == 'I' && pData[0] == pData[1]) {
  ------------------
  |  Branch (13:7): [True: 267, False: 13.8k]
  |  Branch (13:26): [True: 255, False: 12]
  ------------------
   14|    255|    setByteOrder(littleEndian);
   15|  13.8k|  } else if (pData[0] == 'M' && pData[0] == pData[1]) {
  ------------------
  |  Branch (15:14): [True: 55, False: 13.7k]
  |  Branch (15:33): [True: 43, False: 12]
  ------------------
   16|     43|    setByteOrder(bigEndian);
   17|  13.7k|  } else {
   18|  13.7k|    return false;
   19|  13.7k|  }
   20|       |
   21|    298|  uint16_t sig = getUShort(pData + 2, byteOrder());
   22|    298|  if (tag() != sig && 0x5352 != sig)
  ------------------
  |  Branch (22:7): [True: 270, False: 28]
  |  Branch (22:23): [True: 34, False: 236]
  ------------------
   23|     34|    return false;  // #658: Added 0x5352 "SR" for SP-560UZ
   24|    264|  sig_ = sig;
   25|    264|  setOffset(getULong(pData + 4, byteOrder()));
   26|    264|  return true;
   27|    298|}

_ZN5Exiv28Internal18PanasonicMakerNote11print0x000fERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  559|  1.10k|std::ostream& PanasonicMakerNote::print0x000f(std::ostream& os, const Value& value, const ExifData*) {
  560|  1.10k|  if (value.count() < 2 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (560:7): [True: 342, False: 760]
  |  Branch (560:28): [True: 32, False: 728]
  ------------------
  561|    374|    return os << value;
  562|    374|  }
  563|    728|  const auto l0 = value.toInt64(0);
  564|    728|  const auto l1 = value.toInt64(1);
  565|    728|  if (l0 == 0 && l1 == 1)
  ------------------
  |  Branch (565:7): [True: 196, False: 532]
  |  Branch (565:18): [True: 32, False: 164]
  ------------------
  566|     32|    os << _("Spot mode on or 9 area");
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  567|    696|  else if (l0 == 0 && l1 == 16)
  ------------------
  |  Branch (567:12): [True: 164, False: 532]
  |  Branch (567:23): [True: 12, False: 152]
  ------------------
  568|     12|    os << _("Spot mode off or 3-area (high speed)");
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  569|    684|  else if (l0 == 0 && l1 == 23)
  ------------------
  |  Branch (569:12): [True: 152, False: 532]
  |  Branch (569:23): [True: 38, False: 114]
  ------------------
  570|     38|    os << _("23-area");
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  571|    646|  else if (l0 == 0 && l1 == 49)
  ------------------
  |  Branch (571:12): [True: 114, False: 532]
  |  Branch (571:23): [True: 32, False: 82]
  ------------------
  572|     32|    os << _("49-area");
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  573|    614|  else if (l0 == 0 && l1 == 225)
  ------------------
  |  Branch (573:12): [True: 82, False: 532]
  |  Branch (573:23): [True: 18, False: 64]
  ------------------
  574|     18|    os << _("225-area");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  575|    596|  else if (l0 == 1 && l1 == 0)
  ------------------
  |  Branch (575:12): [True: 114, False: 482]
  |  Branch (575:23): [True: 36, False: 78]
  ------------------
  576|     36|    os << _("Spot focusing");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  577|    560|  else if (l0 == 1 && l1 == 1)
  ------------------
  |  Branch (577:12): [True: 78, False: 482]
  |  Branch (577:23): [True: 14, False: 64]
  ------------------
  578|     14|    os << _("5-area");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  579|    546|  else if (l0 == 16 && l1 == 0)
  ------------------
  |  Branch (579:12): [True: 62, False: 484]
  |  Branch (579:24): [True: 34, False: 28]
  ------------------
  580|     34|    os << _("1-area");
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  581|    512|  else if (l0 == 16 && l1 == 16)
  ------------------
  |  Branch (581:12): [True: 28, False: 484]
  |  Branch (581:24): [True: 14, False: 14]
  ------------------
  582|     14|    os << _("1-area (high speed)");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  583|    498|  else if (l0 == 32 && l1 == 0)
  ------------------
  |  Branch (583:12): [True: 172, False: 326]
  |  Branch (583:24): [True: 78, False: 94]
  ------------------
  584|     78|    os << _("3-area (auto)");
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  585|    420|  else if (l0 == 32 && l1 == 1)
  ------------------
  |  Branch (585:12): [True: 94, False: 326]
  |  Branch (585:24): [True: 16, False: 78]
  ------------------
  586|     16|    os << _("3-area (left)");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  587|    404|  else if (l0 == 32 && l1 == 2)
  ------------------
  |  Branch (587:12): [True: 78, False: 326]
  |  Branch (587:24): [True: 30, False: 48]
  ------------------
  588|     30|    os << _("3-area (center)");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  589|    374|  else if (l0 == 32 && l1 == 3)
  ------------------
  |  Branch (589:12): [True: 48, False: 326]
  |  Branch (589:24): [True: 18, False: 30]
  ------------------
  590|     18|    os << _("3-area (right)");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  591|    356|  else if (l0 == 64 && l1 == 0)
  ------------------
  |  Branch (591:12): [True: 14, False: 342]
  |  Branch (591:24): [True: 6, False: 8]
  ------------------
  592|      6|    os << _("Face Detect");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  593|    350|  else if (l0 == 128 && l1 == 0)
  ------------------
  |  Branch (593:12): [True: 70, False: 280]
  |  Branch (593:25): [True: 50, False: 20]
  ------------------
  594|     50|    os << _("Spot Focusing 2");
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  595|    300|  else if (l0 == 240 && l1 == 0)
  ------------------
  |  Branch (595:12): [True: 34, False: 266]
  |  Branch (595:25): [True: 18, False: 16]
  ------------------
  596|     18|    os << _("Tracking");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  597|    282|  else
  598|    282|    os << value;
  599|    728|  return os;
  600|  1.10k|}  // PanasonicMakerNote::print0x000f
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0023ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  603|     76|std::ostream& PanasonicMakerNote::print0x0023(std::ostream& os, const Value& value, const ExifData*) {
  604|     76|  return os << stringFormat("{:1}{}", value.toInt64() / 3, _(" EV"));
  ------------------
  |  |   18|     76|#define stringFormat std::format
  ------------------
                return os << stringFormat("{:1}{}", value.toInt64() / 3, _(" EV"));
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  605|     76|}  // PanasonicMakerNote::print0x0023
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0029ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  608|    134|std::ostream& PanasonicMakerNote::print0x0029(std::ostream& os, const Value& value, const ExifData*) {
  609|    134|  auto time = value.toInt64();
  610|    134|  return os << stringFormat("{:02}:{:02}:{:02}.{:02}", time / 360000, (time % 360000) / 6000, (time % 6000) / 100,
  ------------------
  |  |   18|    134|#define stringFormat std::format
  ------------------
  611|    134|                            time % 100);
  612|       |
  613|    134|}  // PanasonicMakerNote::print0x0029
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0033ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  616|    310|std::ostream& PanasonicMakerNote::print0x0033(std::ostream& os, const Value& value, const ExifData*) {
  617|    310|  if (value.toString() == "9999:99:99 00:00:00") {
  ------------------
  |  Branch (617:7): [True: 0, False: 310]
  ------------------
  618|      0|    os << N_("not set");
  ------------------
  |  |   41|      0|#define N_(String) String
  ------------------
  619|    310|  } else {
  620|    310|    os << value;
  621|    310|  }
  622|    310|  return os;
  623|    310|}  // PanasonicMakerNote::print0x0033
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0036ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  626|     52|std::ostream& PanasonicMakerNote::print0x0036(std::ostream& os, const Value& value, const ExifData*) {
  627|     52|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (627:7): [True: 14, False: 38]
  ------------------
  628|     14|    os << N_("not set");
  ------------------
  |  |   41|     14|#define N_(String) String
  ------------------
  629|     38|  else
  630|     38|    os << value;
  631|     52|  return os;
  632|     52|}  // PanasonicMakerNote::print0x0036
_ZN5Exiv28Internal18PanasonicMakerNote11print0x003cERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  635|    100|std::ostream& PanasonicMakerNote::print0x003c(std::ostream& os, const Value& value, const ExifData*) {
  636|    100|  switch (value.toInt64()) {
  637|     34|    case 65534:
  ------------------
  |  Branch (637:5): [True: 34, False: 66]
  ------------------
  638|     34|      os << N_("Intelligent ISO");
  ------------------
  |  |   41|     34|#define N_(String) String
  ------------------
  639|     34|      break;
  640|     22|    case 65535:
  ------------------
  |  Branch (640:5): [True: 22, False: 78]
  ------------------
  641|     22|      os << N_("n/a");
  ------------------
  |  |   41|     22|#define N_(String) String
  ------------------
  642|     22|      break;
  643|     44|    default:
  ------------------
  |  Branch (643:5): [True: 44, False: 56]
  ------------------
  644|     44|      os << value;
  645|     44|      break;
  646|    100|  }
  647|    100|  return os;
  648|    100|}  // PanasonicMakerNote::print0x003c
_ZN5Exiv28Internal18PanasonicMakerNote18printPanasonicTextERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  650|    214|std::ostream& PanasonicMakerNote::printPanasonicText(std::ostream& os, const Value& value, const ExifData*) {
  651|    214|  if (value.size() > 0 && value.typeId() == undefined) {
  ------------------
  |  Branch (651:7): [True: 214, False: 0]
  |  Branch (651:27): [True: 88, False: 126]
  ------------------
  652|  1.07k|    for (size_t i = 0; i < value.size(); i++) {
  ------------------
  |  Branch (652:24): [True: 1.03k, False: 40]
  ------------------
  653|  1.03k|      if (value.toInt64(i) == 0) {
  ------------------
  |  Branch (653:11): [True: 48, False: 988]
  ------------------
  654|     48|        break;
  655|     48|      }
  656|    988|      os << static_cast<char>(value.toInt64(i));
  657|    988|    }
  658|     88|    return os;
  659|     88|  }
  660|       |
  661|    126|  return os << value;
  662|    214|}  // PanasonicMakerNote::printPanasonicText
_ZN5Exiv28Internal18PanasonicMakerNote13printPressureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  665|     70|std::ostream& PanasonicMakerNote::printPressure(std::ostream& os, const Value& value, const ExifData*) {
  666|     70|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (666:7): [True: 2, False: 68]
  ------------------
  667|      2|    os << N_("infinite");
  ------------------
  |  |   41|      2|#define N_(String) String
  ------------------
  668|     68|  else
  669|     68|    os << value << N_(" hPa");
  ------------------
  |  |   41|     68|#define N_(String) String
  ------------------
  670|     70|  return os;
  671|     70|}  // PanasonicMakerNote::printPressure
_ZN5Exiv28Internal18PanasonicMakerNote18printAccelerometerERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  673|     74|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|     74|  const auto i = static_cast<int16_t>(value.toInt64());
  676|     74|  return os << i;
  677|     74|}  // 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|     34|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|     34|  const auto i = static_cast<int16_t>(value.toInt64());
  688|     34|  return os << stringFormat("{:.1f}", -i / 10.0);
  ------------------
  |  |   18|     34|#define stringFormat std::format
  ------------------
  689|     34|}  // PanasonicMakerNote::printPitchAngle

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

_ZN5Exiv28Internal15PentaxMakerNote12printVersionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  953|  5.14k|std::ostream& PentaxMakerNote::printVersion(std::ostream& os, const Value& value, const ExifData*) {
  954|  5.14k|  std::string val = value.toString();
  955|  5.14k|  std::replace(val.begin(), val.end(), ' ', '.');
  956|  5.14k|  os << val;
  957|  5.14k|  return os;
  958|  5.14k|}
_ZN5Exiv28Internal15PentaxMakerNote15printResolutionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  960|  1.53k|std::ostream& PentaxMakerNote::printResolution(std::ostream& os, const Value& value, const ExifData*) {
  961|  1.53k|  std::string val = value.toString();
  962|  1.53k|  std::replace(val.begin(), val.end(), ' ', 'x');
  963|  1.53k|  os << val;
  964|  1.53k|  return os;
  965|  1.53k|}
_ZN5Exiv28Internal15PentaxMakerNote9printDateERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  967|    362|std::ostream& PentaxMakerNote::printDate(std::ostream& os, const Value& value, const ExifData*) {
  968|       |  /* I choose same format as is used inside EXIF itself */
  969|    362|  return os << stringFormat("{}:{:02}:{:02}", ((static_cast<uint16_t>(value.toInt64(0)) << 8) + value.toInt64(1)),
  ------------------
  |  |   18|    362|#define stringFormat std::format
  ------------------
  970|    362|                            value.toInt64(2), value.toInt64(3));
  971|    362|}
_ZN5Exiv28Internal15PentaxMakerNote9printTimeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  973|    352|std::ostream& PentaxMakerNote::printTime(std::ostream& os, const Value& value, const ExifData*) {
  974|    352|  return os << stringFormat("{:02}:{:02}:{:02}", value.toInt64(0), value.toInt64(1), value.toInt64(2));
  ------------------
  |  |   18|    352|#define stringFormat std::format
  ------------------
  975|    352|}
_ZN5Exiv28Internal15PentaxMakerNote13printExposureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  977|     76|std::ostream& PentaxMakerNote::printExposure(std::ostream& os, const Value& value, const ExifData*) {
  978|     76|  return os << stringFormat("{:g} ms", static_cast<float>(value.toInt64()) / 100);
  ------------------
  |  |   18|     76|#define stringFormat std::format
  ------------------
  979|     76|}
_ZN5Exiv28Internal15PentaxMakerNote11printFValueERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  981|     54|std::ostream& PentaxMakerNote::printFValue(std::ostream& os, const Value& value, const ExifData*) {
  982|     54|  return os << stringFormat("F{:.2g}", static_cast<float>(value.toInt64()) / 10);
  ------------------
  |  |   18|     54|#define stringFormat std::format
  ------------------
  983|     54|}
_ZN5Exiv28Internal15PentaxMakerNote16printFocalLengthERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  985|     56|std::ostream& PentaxMakerNote::printFocalLength(std::ostream& os, const Value& value, const ExifData*) {
  986|     56|  return os << stringFormat("{:.1f} mm", static_cast<float>(value.toInt64()) / 100);
  ------------------
  |  |   18|     56|#define stringFormat std::format
  ------------------
  987|     56|}
_ZN5Exiv28Internal15PentaxMakerNote17printCompensationERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  989|    116|std::ostream& PentaxMakerNote::printCompensation(std::ostream& os, const Value& value, const ExifData*) {
  990|    116|  return os << stringFormat("{:.2g} EV", (static_cast<float>(value.toInt64()) - 50) / 10);
  ------------------
  |  |   18|    116|#define stringFormat std::format
  ------------------
  991|    116|}
_ZN5Exiv28Internal15PentaxMakerNote16printTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  993|     74|std::ostream& PentaxMakerNote::printTemperature(std::ostream& os, const Value& value, const ExifData*) {
  994|     74|  return os << stringFormat("{} C", value.toInt64());
  ------------------
  |  |   18|     74|#define stringFormat std::format
  ------------------
  995|     74|}
_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|    480|std::ostream& PentaxMakerNote::printBracketing(std::ostream& os, const Value& value, const ExifData*) {
 1002|    480|  std::ios::fmtflags f(os.flags());
 1003|    480|  if (auto l0 = value.toUint32(0); l0 < 10) {
  ------------------
  |  Branch (1003:36): [True: 344, False: 136]
  ------------------
 1004|    344|    os << std::setprecision(2) << static_cast<float>(l0) / 3 << " EV";
 1005|    344|  } else {
 1006|    136|    os << std::setprecision(2) << static_cast<float>(l0) - 9.5F << " EV";
 1007|    136|  }
 1008|       |
 1009|    480|  if (value.count() == 2) {
  ------------------
  |  Branch (1009:7): [True: 394, False: 86]
  ------------------
 1010|    394|    const auto l1 = value.toUint32(1);
 1011|    394|    os << " (";
 1012|    394|    if (l1 == 0) {
  ------------------
  |  Branch (1012:9): [True: 94, False: 300]
  ------------------
 1013|     94|      os << _("No extended bracketing");
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
 1014|    300|    } else {
 1015|    300|      auto type = l1 >> 8;
 1016|    300|      auto range = static_cast<byte>(l1);
 1017|    300|      switch (type) {
 1018|     70|        case 1:
  ------------------
  |  Branch (1018:9): [True: 70, False: 230]
  ------------------
 1019|     70|          os << _("WB-BA");
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
 1020|     70|          break;
 1021|     44|        case 2:
  ------------------
  |  Branch (1021:9): [True: 44, False: 256]
  ------------------
 1022|     44|          os << _("WB-GM");
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
 1023|     44|          break;
 1024|     66|        case 3:
  ------------------
  |  Branch (1024:9): [True: 66, False: 234]
  ------------------
 1025|     66|          os << _("Saturation");
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
 1026|     66|          break;
 1027|     12|        case 4:
  ------------------
  |  Branch (1027:9): [True: 12, False: 288]
  ------------------
 1028|     12|          os << _("Sharpness");
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
 1029|     12|          break;
 1030|     18|        case 5:
  ------------------
  |  Branch (1030:9): [True: 18, False: 282]
  ------------------
 1031|     18|          os << _("Contrast");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
 1032|     18|          break;
 1033|     90|        default:
  ------------------
  |  Branch (1033:9): [True: 90, False: 210]
  ------------------
 1034|     90|          os << _("Unknown ") << type;
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
 1035|     90|          break;
 1036|    300|      }
 1037|    300|      os << " " << +range;
 1038|    300|    }
 1039|    394|    os << ")";
 1040|    394|  }
 1041|    480|  os.flags(f);
 1042|    480|  return os;
 1043|    480|}
_ZN5Exiv28Internal15PentaxMakerNote17printShutterCountERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1045|    558|std::ostream& PentaxMakerNote::printShutterCount(std::ostream& os, const Value& value, const ExifData* metadata) {
 1046|    558|  if (!metadata)
  ------------------
  |  Branch (1046:7): [True: 279, False: 279]
  ------------------
 1047|    279|    return os << "undefined";
 1048|       |
 1049|    279|  auto dateIt = metadata->findKey(ExifKey("Exif.PentaxDng.Date"));
 1050|    279|  if (dateIt == metadata->end()) {
  ------------------
  |  Branch (1050:7): [True: 31, False: 248]
  ------------------
 1051|     31|    dateIt = metadata->findKey(ExifKey("Exif.Pentax.Date"));
 1052|     31|  }
 1053|       |
 1054|    279|  auto timeIt = metadata->findKey(ExifKey("Exif.PentaxDng.Time"));
 1055|    279|  if (timeIt == metadata->end()) {
  ------------------
  |  Branch (1055:7): [True: 129, False: 150]
  ------------------
 1056|    129|    timeIt = metadata->findKey(ExifKey("Exif.Pentax.Time"));
 1057|    129|  }
 1058|       |
 1059|    279|  if (dateIt == metadata->end() || dateIt->size() != 4 || timeIt == metadata->end() || timeIt->size() != 3 ||
  ------------------
  |  Branch (1059:7): [True: 31, False: 248]
  |  Branch (1059:7): [True: 206, False: 73]
  |  Branch (1059:36): [True: 37, False: 211]
  |  Branch (1059:59): [True: 69, False: 142]
  |  Branch (1059:88): [True: 34, False: 108]
  ------------------
 1060|    206|      value.size() != 4) {
  ------------------
  |  Branch (1060:7): [True: 35, False: 73]
  ------------------
 1061|    206|    os << "undefined";
 1062|    206|    return os;
 1063|    206|  }
 1064|     73|  const uint32_t date = (dateIt->toUint32(0) << 24) + (dateIt->toUint32(1) << 16) + (dateIt->toUint32(2) << 8) +
 1065|     73|                        (dateIt->toUint32(3) << 0);
 1066|     73|  const uint32_t time = (timeIt->toUint32(0) << 24) + (timeIt->toUint32(1) << 16) + (timeIt->toUint32(2) << 8);
 1067|     73|  const uint32_t countEnc =
 1068|     73|      (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|     73|  const uint32_t count = countEnc ^ date ^ (~time);
 1074|     73|  os << count;
 1075|     73|  return os;
 1076|    279|}
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: 844, False: 1.46k]
  ------------------
 1286|    844|    return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    844|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1287|  1.46k|  if (metadata && lif->fct_)
  ------------------
  |  Branch (1287:7): [True: 633, False: 829]
  |  Branch (1287:19): [True: 633, False: 0]
  ------------------
 1288|    633|    return lif->fct_(os, value, metadata);
 1289|    829|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (1289:7): [True: 757, False: 72]
  |  Branch (1289:42): [True: 0, False: 72]
  ------------------
 1290|    561|    return os << "(" << value << ")";
 1291|    268|  return os << value;
 1292|    829|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL15resolveLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1254|     92|static std::ostream& resolveLensType(std::ostream& os, const Value& value, const ExifData* metadata) {
 1255|     92|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     92|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1256|     92|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x319ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1224|     86|{
 1225|     86|  try {
 1226|     86|    unsigned long index = 0;
 1227|       |
 1228|     86|    const auto lensInfo = findLensInfo(metadata);
 1229|     86|    if (value.count() == 4) {
  ------------------
  |  Branch (1229:9): [True: 28, False: 58]
  ------------------
 1230|     28|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1231|     28|      if (model.starts_with("PENTAX K-3") && lensInfo->count() == 128 && lensInfo->toUint32(1) == 131 &&
  ------------------
  |  Branch (1231:11): [True: 0, False: 28]
  |  Branch (1231:46): [True: 0, False: 0]
  |  Branch (1231:74): [True: 0, False: 0]
  ------------------
 1232|      0|          lensInfo->toUint32(2) == 128)
  ------------------
  |  Branch (1232:11): [True: 0, False: 0]
  ------------------
 1233|      0|        index = 6;
 1234|     28|    }
 1235|     86|    if (value.count() == 2) {
  ------------------
  |  Branch (1235:9): [True: 39, False: 47]
  ------------------
 1236|     39|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1237|     39|      if (model.starts_with("PENTAX K100D") && lensInfo->count() == 44)
  ------------------
  |  Branch (1237:11): [True: 10, False: 29]
  |  Branch (1237:48): [True: 0, False: 10]
  ------------------
 1238|      0|        index = 6;
 1239|     39|      if (model.starts_with("PENTAX *ist DL") && lensInfo->count() == 36)
  ------------------
  |  Branch (1239:11): [True: 10, False: 29]
  |  Branch (1239:50): [True: 0, False: 10]
  ------------------
 1240|      0|        index = 6;
 1241|     39|    }
 1242|       |
 1243|     86|    if (index > 0) {
  ------------------
  |  Branch (1243:9): [True: 0, False: 86]
  ------------------
 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|     86|  } catch (...) {
 1249|     18|  }
 1250|     86|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     86|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1251|     86|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL12findLensInfoEPKNS_8ExifDataE:
 1096|    529|static ExifData::const_iterator findLensInfo(const ExifData* metadata) {
 1097|    529|  const auto dngLensInfo = metadata->findKey(ExifKey("Exif.PentaxDng.LensInfo"));
 1098|    529|  if (dngLensInfo != metadata->end()) {
  ------------------
  |  Branch (1098:7): [True: 417, False: 112]
  ------------------
 1099|    417|    return dngLensInfo;
 1100|    417|  }
 1101|    112|  const auto lensInfo = metadata->findKey(ExifKey("Exif.Pentax.LensInfo"));
 1102|    112|  if (lensInfo != metadata->end()) {
  ------------------
  |  Branch (1102:7): [True: 31, False: 81]
  ------------------
 1103|     31|    return lensInfo;
 1104|     31|  }
 1105|     81|  throw LensInfoNotFound();
 1106|    112|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL12getKeyStringERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
 1079|    150|static std::string getKeyString(const std::string& key, const ExifData* metadata) {
 1080|    150|  std::string result;
 1081|    150|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1081:7): [True: 118, False: 32]
  ------------------
 1082|    118|    result = metadata->findKey(ExifKey(key))->toString();
 1083|    118|  }
 1084|    150|  return result;
 1085|    150|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x32cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1109|     12|static std::ostream& resolveLens0x32c(std::ostream& os, const Value& value, const ExifData* metadata) {
 1110|     12|  try {
 1111|     12|    unsigned long index = 0;
 1112|       |
 1113|     12|    long focalLength = getKeyLong("Exif.Photo.FocalLength", metadata);
 1114|     12|    bool bFL10_20 = 10 <= focalLength && focalLength <= 20;
  ------------------
  |  Branch (1114:21): [True: 0, False: 12]
  |  Branch (1114:42): [True: 0, False: 0]
  ------------------
 1115|       |
 1116|       |    // std::cout << "model,focalLength = " << model << "," << focalLength << '\n';
 1117|     12|    if (bFL10_20) {
  ------------------
  |  Branch (1117:9): [True: 0, False: 12]
  ------------------
 1118|      0|      index = 1;
 1119|      0|    }
 1120|       |
 1121|     12|    if (index > 0) {
  ------------------
  |  Branch (1121:9): [True: 0, False: 12]
  ------------------
 1122|      0|      const unsigned long lensID = 0x32c;
 1123|      0|      auto td = Exiv2::find(pentaxLensType, lensID);
 1124|      0|      return os << _(td[index].label_);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
 1125|      0|    }
 1126|     12|  } catch (...) {
 1127|      0|  }
 1128|     12|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     12|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1129|     12|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL10getKeyLongERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
 1087|     12|static long getKeyLong(const std::string& key, const ExifData* metadata) {
 1088|     12|  long result = -1;
 1089|     12|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1089:7): [True: 0, False: 12]
  ------------------
 1090|      0|    result = static_cast<long>(metadata->findKey(ExifKey(key))->toFloat(0));
 1091|      0|  }
 1092|     12|  return result;
 1093|     12|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x3ffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1136|    305|{
 1137|    305|  try {
 1138|    305|    unsigned long index = 0;
 1139|       |
 1140|       |    // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Pentax.html#LensData
 1141|    305|    const auto lensInfo = findLensInfo(metadata);
 1142|    305|    if (lensInfo->count() < 5)
  ------------------
  |  Branch (1142:9): [True: 36, False: 269]
  ------------------
 1143|     36|      return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     36|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1144|       |
 1145|    269|    if (value.count() == 2) {
  ------------------
  |  Branch (1145:9): [True: 117, False: 152]
  ------------------
 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|    117|      unsigned long base = 1;
 1152|       |
 1153|    117|      unsigned int autoAperture = lensInfo->toUint32(base + 1) & 0x01;
 1154|    117|      unsigned int minAperture = lensInfo->toUint32(base + 2) & 0x06;
 1155|    117|      unsigned int minFocusDistance = lensInfo->toUint32(base + 3) & 0xf8;
 1156|       |
 1157|    117|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 4) == 148)
  ------------------
  |  Branch (1157:11): [True: 77, False: 40]
  |  Branch (1157:34): [True: 57, False: 20]
  |  Branch (1157:56): [True: 40, False: 17]
  |  Branch (1157:84): [True: 8, False: 32]
  ------------------
 1158|      8|        index = 8;
 1159|    117|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 5) == 110)
  ------------------
  |  Branch (1159:11): [True: 77, False: 40]
  |  Branch (1159:34): [True: 57, False: 20]
  |  Branch (1159:56): [True: 40, False: 17]
  |  Branch (1159:84): [True: 18, False: 22]
  ------------------
 1160|     18|        index = 7;
 1161|    117|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 4) == 110)
  ------------------
  |  Branch (1161:11): [True: 77, False: 40]
  |  Branch (1161:34): [True: 57, False: 20]
  |  Branch (1161:56): [True: 40, False: 17]
  |  Branch (1161:84): [True: 18, False: 22]
  ------------------
 1162|     18|        index = 7;
 1163|       |
 1164|    152|    } else if (value.count() == 3) {
  ------------------
  |  Branch (1164:16): [True: 44, False: 108]
  ------------------
 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|     44|      if (lensInfo->toUint32(4) == 0 && lensInfo->toUint32(5) == 40 && lensInfo->toUint32(6) == 148)
  ------------------
  |  Branch (1170:11): [True: 26, False: 18]
  |  Branch (1170:41): [True: 20, False: 6]
  |  Branch (1170:72): [True: 10, False: 10]
  ------------------
 1171|     10|        index = 8;
 1172|       |
 1173|    108|    } else if (value.count() == 4) {
  ------------------
  |  Branch (1173:16): [True: 74, False: 34]
  ------------------
 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|     74|      if (lensInfo->count() == 128 && lensInfo->toUint32(1) == 131 && lensInfo->toUint32(2) == 128)
  ------------------
  |  Branch (1177:11): [True: 20, False: 54]
  |  Branch (1177:39): [True: 13, False: 7]
  |  Branch (1177:71): [True: 3, False: 10]
  ------------------
 1178|      3|        index = 8;
 1179|       |      // #1155
 1180|     74|      if (lensInfo->toUint32(6) == 5)
  ------------------
  |  Branch (1180:11): [True: 18, False: 56]
  ------------------
 1181|     18|        index = 7;
 1182|     74|    }
 1183|       |
 1184|    269|    if (index > 0) {
  ------------------
  |  Branch (1184:9): [True: 57, False: 212]
  ------------------
 1185|     57|      const unsigned long lensID = 0x3ff;
 1186|     57|      auto td = Exiv2::find(pentaxLensType, lensID);
 1187|     57|      return os << _(td[index].label_);
  ------------------
  |  |   40|     57|#define _(String) (String)
  ------------------
 1188|     57|    }
 1189|    269|  } catch (...) {
 1190|     27|  }
 1191|    212|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    212|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1192|    305|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x8ffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1198|    138|{
 1199|    138|  try {
 1200|    138|    unsigned long index = 0;
 1201|       |
 1202|    138|    const auto lensInfo = findLensInfo(metadata);
 1203|    138|    if (value.count() == 4) {
  ------------------
  |  Branch (1203:9): [True: 83, False: 55]
  ------------------
 1204|     83|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1205|     83|      if (model.starts_with("PENTAX K-3") && lensInfo->count() == 128 && lensInfo->toUint32(1) == 168 &&
  ------------------
  |  Branch (1205:11): [True: 28, False: 55]
  |  Branch (1205:46): [True: 22, False: 6]
  |  Branch (1205:74): [True: 16, False: 6]
  ------------------
 1206|     16|          lensInfo->toUint32(2) == 144)
  ------------------
  |  Branch (1206:11): [True: 10, False: 6]
  ------------------
 1207|     10|        index = 7;
 1208|     83|    }
 1209|       |
 1210|    138|    if (index > 0) {
  ------------------
  |  Branch (1210:9): [True: 10, False: 128]
  ------------------
 1211|     10|      const unsigned long lensID = 0x8ff;
 1212|     10|      auto td = Exiv2::find(pentaxLensType, lensID);
 1213|     10|      return os << _(td[index].label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
 1214|     10|    }
 1215|    138|  } catch (...) {
 1216|     40|  }
 1217|    128|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    128|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1218|    138|}
pentaxmn_int.cpp:_ZZN5Exiv28InternalL13printLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK9LensIdFcteqEj:
 1265|  24.4k|    bool operator==(uint32_t id) const {
 1266|  24.4k|      return id_ == id;
 1267|  24.4k|    }
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm298ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLensTypeEELi2ELi1ELi2EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.41k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.41k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.41k|  std::ios::fmtflags f(os.flags());
   35|  1.41k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 1.01k, False: 393]
  ------------------
   36|  1.01k|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 0, False: 1.01k]
  |  Branch (36:51): [True: 123, False: 894]
  ------------------
   37|    123|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    123|    return printValue(os, value, metadata);
   39|    123|  }
   40|  1.28k|  uint32_t l = 0;
   41|  2.76k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 2.15k, False: 614]
  ------------------
   42|  2.15k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 129, False: 2.02k]
  |  Branch (42:33): [True: 544, False: 1.47k]
  ------------------
   43|    673|      return printValue(os, value, metadata);
   44|    673|    }
   45|  1.47k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  1.47k|  }
   47|       |
   48|    614|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 494, False: 120]
  ------------------
   49|    494|    os << _(td->label_);
  ------------------
  |  |   40|    494|#define _(String) (String)
  ------------------
   50|    494|  } else {
   51|    120|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
   52|    120|  }
   53|       |
   54|    614|  os.flags(f);
   55|    614|  return os;
   56|  1.28k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21pentaxImageProcessingEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.96k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.96k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.96k|  std::ios::fmtflags f(os.flags());
   35|  1.96k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 140, False: 1.82k]
  ------------------
   36|    140|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 84, False: 56]
  |  Branch (36:51): [True: 56, False: 0]
  ------------------
   37|    140|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    140|    return printValue(os, value, metadata);
   39|    140|  }
   40|  1.82k|  uint32_t l = 0;
   41|  7.08k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 6.10k, False: 986]
  ------------------
   42|  6.10k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 318, False: 5.78k]
  |  Branch (42:33): [True: 522, False: 5.26k]
  ------------------
   43|    840|      return printValue(os, value, metadata);
   44|    840|    }
   45|  5.26k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  5.26k|  }
   47|       |
   48|    986|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 738, False: 248]
  ------------------
   49|    738|    os << _(td->label_);
  ------------------
  |  |   40|    738|#define _(String) (String)
  ------------------
   50|    738|  } else {
   51|    248|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    248|#define _(String) (String)
  ------------------
   52|    248|  }
   53|       |
   54|    986|  os.flags(f);
   55|    986|  return os;
   56|  1.82k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17pentaxPictureModeEELi3ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  5.28k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  5.28k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  5.28k|  std::ios::fmtflags f(os.flags());
   35|  5.28k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 184, False: 5.09k]
  ------------------
   36|    184|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 60, False: 124]
  |  Branch (36:51): [True: 124, False: 0]
  ------------------
   37|    184|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    184|    return printValue(os, value, metadata);
   39|    184|  }
   40|  5.09k|  uint32_t l = 0;
   41|  19.0k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 14.6k, False: 4.43k]
  ------------------
   42|  14.6k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 338, False: 14.2k]
  |  Branch (42:33): [True: 322, False: 13.9k]
  ------------------
   43|    660|      return printValue(os, value, metadata);
   44|    660|    }
   45|  13.9k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  13.9k|  }
   47|       |
   48|  4.43k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 3.92k, False: 518]
  ------------------
   49|  3.92k|    os << _(td->label_);
  ------------------
  |  |   40|  3.92k|#define _(String) (String)
  ------------------
   50|  3.92k|  } else {
   51|    518|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    518|#define _(String) (String)
  ------------------
   52|    518|  }
   53|       |
   54|  4.43k|  os.flags(f);
   55|  4.43k|  return os;
   56|  5.09k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxDriveModeEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  4.06k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  4.06k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  4.06k|  std::ios::fmtflags f(os.flags());
   35|  4.06k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 202, False: 3.86k]
  ------------------
   36|    202|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 60, False: 142]
  |  Branch (36:51): [True: 142, False: 0]
  ------------------
   37|    202|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    202|    return printValue(os, value, metadata);
   39|    202|  }
   40|  3.86k|  uint32_t l = 0;
   41|  15.6k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 13.2k, False: 2.41k]
  ------------------
   42|  13.2k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 658, False: 12.5k]
  |  Branch (42:33): [True: 798, False: 11.7k]
  ------------------
   43|  1.45k|      return printValue(os, value, metadata);
   44|  1.45k|    }
   45|  11.7k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  11.7k|  }
   47|       |
   48|  2.41k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 1.94k, False: 462]
  ------------------
   49|  1.94k|    os << _(td->label_);
  ------------------
  |  |   40|  1.94k|#define _(String) (String)
  ------------------
   50|  1.94k|  } else {
   51|    462|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    462|#define _(String) (String)
  ------------------
   52|    462|  }
   53|       |
   54|  2.41k|  os.flags(f);
   55|  2.41k|  return os;
   56|  3.86k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxDynamicRangeExpansionEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.43k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.43k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.43k|  std::ios::fmtflags f(os.flags());
   35|  1.43k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 182, False: 1.25k]
  ------------------
   36|    182|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 48, False: 134]
  |  Branch (36:51): [True: 134, False: 0]
  ------------------
   37|    182|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    182|    return printValue(os, value, metadata);
   39|    182|  }
   40|  1.25k|  uint32_t l = 0;
   41|  3.71k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 3.38k, False: 332]
  ------------------
   42|  3.38k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 420, False: 2.96k]
  |  Branch (42:33): [True: 502, False: 2.45k]
  ------------------
   43|    922|      return printValue(os, value, metadata);
   44|    922|    }
   45|  2.45k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  2.45k|  }
   47|       |
   48|    332|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 74, False: 258]
  ------------------
   49|     74|    os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
   50|    258|  } else {
   51|    258|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    258|#define _(String) (String)
  ------------------
   52|    258|  }
   53|       |
   54|    332|  os.flags(f);
   55|    332|  return os;
   56|  1.25k|}

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

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

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

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

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

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

_ZNK5Exiv29XmpNsInfoeqERKNS0_2NsE:
 4939|   595k|bool XmpNsInfo::operator==(const XmpNsInfo::Ns& ns) const {
 4940|   595k|  return ns_ == ns.ns_;
 4941|   595k|}
_ZNK5Exiv29XmpNsInfoeqERKNS0_6PrefixE:
 4943|  34.9M|bool XmpNsInfo::operator==(const XmpNsInfo::Prefix& prefix) const {
 4944|  34.9M|  return prefix_ == prefix.prefix_;
 4945|  34.9M|}
_ZN5Exiv213XmpProperties8getMutexEv:
 4952|  1.78M|std::mutex& XmpProperties::getMutex() {
 4953|  1.78M|  static std::mutex m;
 4954|  1.78M|  return m;
 4955|  1.78M|}
_ZN5Exiv213XmpProperties24lookupNsRegistryUnlockedERKNS_9XmpNsInfo6PrefixERKNS0_7XmpLockE:
 4963|  1.74M|const XmpNsInfo* XmpProperties::lookupNsRegistryUnlocked(const XmpNsInfo::Prefix& prefix, const XmpLock&) {
 4964|  8.08M|  for (const auto& [_, p] : nsRegistry_) {
  ------------------
  |  Branch (4964:27): [True: 8.08M, False: 1.74M]
  ------------------
 4965|  8.08M|    if (p == prefix)
  ------------------
  |  Branch (4965:9): [True: 3.93k, False: 8.08M]
  ------------------
 4966|  3.93k|      return &p;
 4967|  8.08M|  }
 4968|  1.74M|  return nullptr;
 4969|  1.74M|}
_ZN5Exiv213XmpProperties18registerNsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKNS0_7XmpLockE:
 4976|      5|void XmpProperties::registerNsUnlocked(const std::string& ns, const std::string& prefix, const XmpLock& lock) {
 4977|      5|  if (ns.empty())
  ------------------
  |  Branch (4977:7): [True: 0, False: 5]
  ------------------
 4978|      0|    return;
 4979|      5|  std::string ns2 = ns;
 4980|      5|  if (ns2.back() != '/' && ns2.back() != '#')
  ------------------
  |  Branch (4980:7): [True: 4, False: 1]
  |  Branch (4980:28): [True: 4, False: 0]
  ------------------
 4981|      4|    ns2 += '/';
 4982|       |
 4983|       |  // 1. Check if this URI is already registered with this exact prefix
 4984|      5|  auto it = nsRegistry_.find(ns2);
 4985|      5|  if (it != nsRegistry_.end() && std::strcmp(it->second.prefix_, prefix.c_str()) == 0) {
  ------------------
  |  Branch (4985:7): [True: 0, False: 5]
  |  Branch (4985:7): [True: 0, False: 5]
  |  Branch (4985:34): [True: 0, False: 0]
  ------------------
 4986|      0|    return;  // Already registered with this prefix
 4987|      0|  }
 4988|       |
 4989|       |  // 2. Check if this prefix is already registered with a DIFFERENT URI
 4990|      5|  if (auto xnp = lookupNsRegistryUnlocked(XmpNsInfo::Prefix{prefix}, lock)) {
  ------------------
  |  Branch (4990:12): [True: 0, False: 5]
  ------------------
 4991|      0|#ifndef SUPPRESS_WARNINGS
 4992|      0|    if (ns2 != xnp->ns_)
  ------------------
  |  Branch (4992:9): [True: 0, False: 0]
  ------------------
 4993|      0|      EXV_WARNING << "Updating namespace URI for " << prefix << " from " << xnp->ns_ << " to " << ns2 << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 4994|      0|#endif
 4995|      0|    unregisterNsUnlocked(xnp->ns_, lock);
 4996|      0|  }
 4997|       |
 4998|       |  // 3. Ensure the URI is unregistered if it's currently used with a different prefix
 4999|       |  // (This handles the case where prefix changed for the same URI, preventing memory leak)
 5000|      5|  unregisterNsUnlocked(ns2, lock);
 5001|       |  // Allocated memory is freed when the namespace is unregistered.
 5002|       |  // Using malloc/free for better system compatibility in case
 5003|       |  // users don't unregister their namespaces explicitly.
 5004|      5|  XmpNsInfo xn;
 5005|      5|  auto c = new char[ns2.size() + 1];
 5006|      5|  std::strcpy(c, ns2.c_str());
 5007|      5|  xn.ns_ = c;
 5008|      5|  c = new char[prefix.size() + 1];
 5009|      5|  std::strcpy(c, prefix.c_str());
 5010|      5|  xn.prefix_ = c;
 5011|      5|  xn.xmpPropertyInfo_ = nullptr;
 5012|      5|  xn.desc_ = "";
 5013|      5|  nsRegistry_[ns2] = xn;
 5014|      5|}
_ZN5Exiv213XmpProperties20unregisterNsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5021|      5|void XmpProperties::unregisterNsUnlocked(const std::string& ns, const XmpLock&) {
 5022|      5|  unregisterNsNoLock(ns, LifetimeKey{});
 5023|      5|}
_ZN5Exiv213XmpProperties18unregisterNsNoLockERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS0_11LifetimeKeyE:
 5025|     10|void XmpProperties::unregisterNsNoLock(const std::string& ns, LifetimeKey) {
 5026|     10|  auto i = nsRegistry_.find(ns);
 5027|     10|  if (i != nsRegistry_.end()) {
  ------------------
  |  Branch (5027:7): [True: 5, False: 5]
  ------------------
 5028|      5|    delete[] i->second.prefix_;
 5029|      5|    delete[] i->second.ns_;
 5030|      5|    nsRegistry_.erase(i);
 5031|      5|  }
 5032|     10|}
_ZN5Exiv213XmpProperties21unregisterAllNsNoLockENS0_11LifetimeKeyE:
 5042|      1|void XmpProperties::unregisterAllNsNoLock(LifetimeKey) {
 5043|       |  /// \todo check if we are not unregistering the first NS
 5044|      1|  auto i = nsRegistry_.begin();
 5045|      6|  while (i != nsRegistry_.end()) {
  ------------------
  |  Branch (5045:10): [True: 5, False: 1]
  ------------------
 5046|      5|    auto kill = i++;
 5047|      5|    unregisterNsNoLock(kill->first, LifetimeKey{});
 5048|      5|  }
 5049|      1|}
_ZN5Exiv213XmpProperties14prefixUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5056|  15.0k|std::string XmpProperties::prefixUnlocked(const std::string& ns, const XmpLock&) {
 5057|  15.0k|  std::string ns2 = ns;
 5058|  15.0k|  if (ns2.back() != '/' && ns2.back() != '#')
  ------------------
  |  Branch (5058:7): [True: 10.4k, False: 4.58k]
  |  Branch (5058:28): [True: 9.77k, False: 716]
  ------------------
 5059|  9.77k|    ns2 += '/';
 5060|       |
 5061|  15.0k|  auto i = nsRegistry_.find(ns2);
 5062|  15.0k|  std::string p;
 5063|  15.0k|  if (i != nsRegistry_.end())
  ------------------
  |  Branch (5063:7): [True: 1.25k, False: 13.8k]
  ------------------
 5064|  1.25k|    p = i->second.prefix_;
 5065|  13.8k|  else if (auto xn = Exiv2::find(xmpNsInfo, XmpNsInfo::Ns{std::move(ns2)}))
  ------------------
  |  Branch (5065:17): [True: 1.34k, False: 12.4k]
  ------------------
 5066|  1.34k|    p = std::string(xn->prefix_);
 5067|  15.0k|  return p;
 5068|  15.0k|}
_ZN5Exiv213XmpProperties10nsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5075|   862k|std::string XmpProperties::nsUnlocked(const std::string& prefix, const XmpLock& lock) {
 5076|   862k|  if (auto xn = lookupNsRegistryUnlocked(XmpNsInfo::Prefix{prefix}, lock))
  ------------------
  |  Branch (5076:12): [True: 2.50k, False: 860k]
  ------------------
 5077|  2.50k|    return xn->ns_;
 5078|   860k|  return nsInfoUnlocked(prefix, lock)->ns_;
 5079|   862k|}
_ZN5Exiv213XmpProperties21prefixIsBoundUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5081|  3.22k|bool XmpProperties::prefixIsBoundUnlocked(const std::string& prefix, const XmpLock& lock) {
 5082|  3.22k|  const auto pf = XmpNsInfo::Prefix{prefix};
 5083|  3.22k|  return lookupNsRegistryUnlocked(pf, lock) != nullptr || Exiv2::find(xmpNsInfo, pf) != nullptr;
  ------------------
  |  Branch (5083:10): [True: 1.42k, False: 1.79k]
  |  Branch (5083:59): [True: 1.79k, False: 5]
  ------------------
 5084|  3.22k|}
_ZN5Exiv213XmpProperties20propertyTypeUnlockedERKNS_6XmpKeyERKNS0_7XmpLockE:
 5111|  23.1k|TypeId XmpProperties::propertyTypeUnlocked(const XmpKey& key, const XmpLock& lock) {
 5112|  23.1k|  const XmpPropertyInfo* pi = propertyInfoUnlocked(key, lock);
 5113|  23.1k|  return pi ? pi->typeId_ : xmpText;
  ------------------
  |  Branch (5113:10): [True: 22.4k, False: 682]
  ------------------
 5114|  23.1k|}
_ZN5Exiv213XmpProperties20propertyInfoUnlockedERKNS_6XmpKeyERKNS0_7XmpLockE:
 5121|  23.1k|const XmpPropertyInfo* XmpProperties::propertyInfoUnlocked(const XmpKey& key, const XmpLock& lock) {
 5122|  23.1k|  std::string prefix = key.groupName();
 5123|  23.1k|  std::string property = key.tagName();
 5124|       |  // If property is a path for a nested property, determines the innermost element
 5125|  23.1k|  if (auto i = property.find_last_of('/'); i != std::string::npos) {
  ------------------
  |  Branch (5125:44): [True: 0, False: 23.1k]
  ------------------
 5126|      0|    i = std::distance(property.begin(), std::find_if(property.begin() + i, property.end(), isalpha));
 5127|      0|    property = property.substr(i);
 5128|      0|    i = property.find_first_of(':');
 5129|      0|    if (i != std::string::npos) {
  ------------------
  |  Branch (5129:9): [True: 0, False: 0]
  ------------------
 5130|      0|      prefix = property.substr(0, i);
 5131|      0|      property = property.substr(i + 1);
 5132|      0|    }
 5133|       |#ifdef EXIV2_DEBUG_MESSAGES
 5134|       |    std::cout << "Nested key: " << key.key() << ", prefix: " << prefix << ", property: " << property << "\n";
 5135|       |#endif
 5136|      0|  }
 5137|  23.1k|  if (auto pl = propertyListUnlocked(prefix, lock)) {
  ------------------
  |  Branch (5137:12): [True: 23.1k, False: 0]
  ------------------
 5138|  3.19M|    for (size_t j = 0; pl[j].name_; ++j) {
  ------------------
  |  Branch (5138:24): [True: 3.19M, False: 682]
  ------------------
 5139|  3.19M|      if (property == pl[j].name_) {
  ------------------
  |  Branch (5139:11): [True: 22.4k, False: 3.16M]
  ------------------
 5140|  22.4k|        return pl + j;
 5141|  22.4k|      }
 5142|  3.19M|    }
 5143|  23.1k|  }
 5144|    682|  return nullptr;
 5145|  23.1k|}
_ZN5Exiv213XmpProperties20propertyListUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5162|  23.1k|const XmpPropertyInfo* XmpProperties::propertyListUnlocked(const std::string& prefix, const XmpLock& lock) {
 5163|  23.1k|  return nsInfoUnlocked(prefix, lock)->xmpPropertyInfo_;
 5164|  23.1k|}
_ZN5Exiv213XmpProperties14nsInfoUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5171|   883k|const XmpNsInfo* XmpProperties::nsInfoUnlocked(const std::string& prefix, const XmpLock& lock) {
 5172|   883k|  const auto pf = XmpNsInfo::Prefix{prefix};
 5173|   883k|  const XmpNsInfo* xn = lookupNsRegistryUnlocked(pf, lock);
 5174|   883k|  if (!xn)
  ------------------
  |  Branch (5174:7): [True: 883k, False: 0]
  ------------------
 5175|   883k|    xn = Exiv2::find(xmpNsInfo, pf);
 5176|   883k|  if (!xn)
  ------------------
  |  Branch (5176:7): [True: 0, False: 883k]
  ------------------
 5177|      0|    throw Error(ErrorCode::kerNoNamespaceInfoForXmpPrefix, prefix);
 5178|   883k|  return xn;
 5179|   883k|}
_ZN5Exiv213XmpProperties13printPropertyERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS_5ValueE:
 5207|  18.2k|std::ostream& XmpProperties::printProperty(std::ostream& os, const std::string& key, const Value& value) {
 5208|  18.2k|  XmpLock lock;
 5209|  18.2k|  return printPropertyUnlocked(os, key, value, lock);
 5210|  18.2k|}
_ZN5Exiv213XmpProperties21printPropertyUnlockedERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS_5ValueERKNS0_7XmpLockE:
 5213|  18.2k|                                                   const XmpLock&) {
 5214|  18.2k|  PrintFct fct = printValue;
 5215|  18.2k|  if (value.count() != 0) {
  ------------------
  |  Branch (5215:7): [True: 17.5k, False: 750]
  ------------------
 5216|  17.5k|    if (auto info = Exiv2::find(xmpPrintInfo, key))
  ------------------
  |  Branch (5216:14): [True: 0, False: 17.5k]
  ------------------
 5217|      0|      fct = info->printFct_;
 5218|  17.5k|  }
 5219|  18.2k|  return fct(os, value, nullptr);
 5220|  18.2k|}
_ZN5Exiv26XmpKey4ImplC2ERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_RKNS_13XmpProperties7XmpLockE:
 5250|  11.1k|XmpKey::Impl::Impl(const std::string& prefix, const std::string& property, const XmpProperties::XmpLock& lock) {
 5251|       |  // Validate prefix unlocked (must hold lock)
 5252|  11.1k|  if (XmpProperties::nsUnlocked(prefix, lock).empty())
  ------------------
  |  Branch (5252:7): [True: 0, False: 11.1k]
  ------------------
 5253|      0|    throw Error(ErrorCode::kerNoNamespaceForPrefix, prefix);
 5254|       |
 5255|  11.1k|  property_ = property;
 5256|  11.1k|  prefix_ = prefix;
 5257|  11.1k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 5259|  89.2k|XmpKey::XmpKey(const std::string& key) : p_(std::make_unique<Impl>()) {
 5260|  89.2k|  p_->decomposeKey(key);
 5261|  89.2k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_13XmpProperties7XmpLockE:
 5263|   762k|XmpKey::XmpKey(const std::string& key, const XmpProperties::XmpLock& lock) : p_(std::make_unique<Impl>()) {
 5264|   762k|  p_->decomposeKeyUnlocked(key, lock);
 5265|   762k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKNS_13XmpProperties7XmpLockE:
 5271|  11.1k|    p_(std::make_unique<Impl>(prefix, property, lock)) {
 5272|  11.1k|}
_ZN5Exiv26XmpKeyD2Ev:
 5274|   940k|XmpKey::~XmpKey() = default;
_ZN5Exiv26XmpKeyC2ERKS0_:
 5276|  78.1k|XmpKey::XmpKey(const XmpKey& rhs) : p_(std::make_unique<Impl>(*rhs.p_)) {
 5277|  78.1k|}
_ZNK5Exiv26XmpKey5cloneEv:
 5286|  78.1k|XmpKey::UniquePtr XmpKey::clone() const {
 5287|  78.1k|  return UniquePtr(clone_());
 5288|  78.1k|}
_ZNK5Exiv26XmpKey6clone_Ev:
 5290|  78.1k|XmpKey* XmpKey::clone_() const {
 5291|  78.1k|  return new XmpKey(*this);
 5292|  78.1k|}
_ZNK5Exiv26XmpKey3keyEv:
 5294|  11.2M|std::string XmpKey::key() const {
 5295|  11.2M|  return std::string(Exiv2::XmpKey::Impl::familyName_) + "." + p_->prefix_ + "." + p_->property_;
 5296|  11.2M|}
_ZNK5Exiv26XmpKey9groupNameEv:
 5302|  26.3k|std::string XmpKey::groupName() const {
 5303|  26.3k|  return p_->prefix_;
 5304|  26.3k|}
_ZNK5Exiv26XmpKey7tagNameEv:
 5306|  39.4k|std::string XmpKey::tagName() const {
 5307|  39.4k|  return p_->property_;
 5308|  39.4k|}
_ZN5Exiv26XmpKey4Impl12decomposeKeyERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 5336|  89.2k|void XmpKey::Impl::decomposeKey(const std::string& key) {
 5337|  89.2k|  XmpProperties::XmpLock lock;
 5338|  89.2k|  decomposeKeyUnlocked(key, lock);
 5339|  89.2k|}  // XmpKey::Impl::decomposeKey
_ZN5Exiv26XmpKey4Impl20decomposeKeyUnlockedERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKNS_13XmpProperties7XmpLockE:
 5341|   851k|void XmpKey::Impl::decomposeKeyUnlocked(const std::string& key, const XmpProperties::XmpLock& lock) {
 5342|       |  // Get the family name, prefix and property name parts of the key
 5343|   851k|  if (!key.starts_with(familyName_))
  ------------------
  |  Branch (5343:7): [True: 35, False: 851k]
  ------------------
 5344|     35|    throw Error(ErrorCode::kerInvalidKey, key);
 5345|   851k|  std::string::size_type pos1 = key.find('.');
 5346|   851k|  std::string::size_type pos0 = pos1 + 1;
 5347|   851k|  pos1 = key.find('.', pos0);
 5348|   851k|  if (pos1 == std::string::npos)
  ------------------
  |  Branch (5348:7): [True: 0, False: 851k]
  ------------------
 5349|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5350|   851k|  std::string prefix = key.substr(pos0, pos1 - pos0);
 5351|   851k|  if (prefix.empty())
  ------------------
  |  Branch (5351:7): [True: 0, False: 851k]
  ------------------
 5352|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5353|   851k|  std::string property = key.substr(pos1 + 1);
 5354|   851k|  if (property.empty())
  ------------------
  |  Branch (5354:7): [True: 0, False: 851k]
  ------------------
 5355|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5356|       |
 5357|       |  // Validate prefix unlocked (must hold lock)
 5358|   851k|  if (XmpProperties::nsUnlocked(prefix, lock).empty())
  ------------------
  |  Branch (5358:7): [True: 0, False: 851k]
  ------------------
 5359|      0|    throw Error(ErrorCode::kerNoNamespaceForPrefix, prefix);
 5360|       |
 5361|   851k|  property_ = std::move(property);
 5362|   851k|  prefix_ = std::move(prefix);
 5363|   851k|}  // XmpKey::Impl::decomposeKeyUnlocked
properties.cpp:_ZNK12_GLOBAL__N_112XmpPrintInfoeqERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   21|  1.17M|  bool operator==(const std::string& key) const {
   22|  1.17M|    return key == key_;
   23|  1.17M|  }
_ZN5Exiv26XmpKey4ImplC2Ev:
 5224|   851k|  Impl() = default;                                                                             //!< Default constructor

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

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

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

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

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

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

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

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

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

_ZN5Exiv28Internal14SigmaMakerNote15printStripLabelERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   71|    394|std::ostream& SigmaMakerNote::printStripLabel(std::ostream& os, const Value& value, const ExifData*) {
   72|    394|  std::string v = value.toString();
   73|    394|  if (auto pos = v.find(':'); pos != std::string::npos) {
  ------------------
  |  Branch (73:31): [True: 184, False: 210]
  ------------------
   74|    184|    if (v.at(pos + 1) == ' ')
  ------------------
  |  Branch (74:9): [True: 74, False: 110]
  ------------------
   75|     74|      ++pos;
   76|    184|    v = v.substr(pos + 1);
   77|    184|  }
   78|    394|  return os << v;
   79|    394|}
_ZN5Exiv28Internal14SigmaMakerNote11print0x0008ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   81|    454|std::ostream& SigmaMakerNote::print0x0008(std::ostream& os, const Value& value, const ExifData*) {
   82|    454|  std::string v = value.toString();
   83|    454|  if (v.empty()) {
  ------------------
  |  Branch (83:7): [True: 122, False: 332]
  ------------------
   84|    122|    return os;
   85|    122|  }
   86|    332|  switch (v.front()) {
   87|     16|    case 'P':
  ------------------
  |  Branch (87:5): [True: 16, False: 316]
  ------------------
   88|     16|      return os << _("Program");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
   89|     66|    case 'A':
  ------------------
  |  Branch (89:5): [True: 66, False: 266]
  ------------------
   90|     66|      return os << _("Aperture priority");
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
   91|     20|    case 'S':
  ------------------
  |  Branch (91:5): [True: 20, False: 312]
  ------------------
   92|     20|      return os << _("Shutter priority");
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
   93|     16|    case 'M':
  ------------------
  |  Branch (93:5): [True: 16, False: 316]
  ------------------
   94|     16|      return os << _("Manual");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
   95|    214|    default:
  ------------------
  |  Branch (95:5): [True: 214, False: 118]
  ------------------
   96|    214|      return os << "(" << value << ")";
   97|    332|  }
   98|    332|}
_ZN5Exiv28Internal14SigmaMakerNote11print0x0009ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  100|    434|std::ostream& SigmaMakerNote::print0x0009(std::ostream& os, const Value& value, const ExifData*) {
  101|    434|  std::string v = value.toString();
  102|    434|  if (v.empty()) {
  ------------------
  |  Branch (102:7): [True: 90, False: 344]
  ------------------
  103|     90|    return os;
  104|     90|  }
  105|    344|  switch (v.front()) {
  106|     72|    case 'A':
  ------------------
  |  Branch (106:5): [True: 72, False: 272]
  ------------------
  107|     72|      return os << _("Average");
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  108|     60|    case 'C':
  ------------------
  |  Branch (108:5): [True: 60, False: 284]
  ------------------
  109|     60|      return os << _("Center");
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  110|     36|    case '8':
  ------------------
  |  Branch (110:5): [True: 36, False: 308]
  ------------------
  111|     36|      return os << _("8-Segment");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  112|    176|    default:
  ------------------
  |  Branch (112:5): [True: 176, False: 168]
  ------------------
  113|    176|      return os << "(" << value << ")";
  114|    344|  }
  115|    344|}

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

_ZN5Exiv28Internal13SonyMakerNote25printWhiteBalanceFineTuneERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  919|    108|std::ostream& SonyMakerNote::printWhiteBalanceFineTune(std::ostream& os, const Value& value, const ExifData*) {
  920|    108|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (920:7): [True: 48, False: 60]
  |  Branch (920:29): [True: 46, False: 14]
  ------------------
  921|     94|    return os << "(" << value << ")";
  922|       |
  923|       |  // Sony writes the tag as an unsignedLong but treat it as a signedLong. Source:
  924|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L681
  925|     14|  return os << static_cast<int32_t>(value.toUint32(0));
  926|    108|}
_ZN5Exiv28Internal13SonyMakerNote19printMultiBurstModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  928|    720|std::ostream& SonyMakerNote::printMultiBurstMode(std::ostream& os, const Value& value, const ExifData* metadata) {
  929|    720|  if (value.count() != 1 || value.typeId() != undefined)
  ------------------
  |  Branch (929:7): [True: 602, False: 118]
  |  Branch (929:29): [True: 118, False: 0]
  ------------------
  930|    720|    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|    720|}
_ZN5Exiv28Internal13SonyMakerNote19printMultiBurstSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  938|    170|std::ostream& SonyMakerNote::printMultiBurstSize(std::ostream& os, const Value& value, const ExifData*) {
  939|    170|  if (value.count() != 1 || value.typeId() != unsignedShort)
  ------------------
  |  Branch (939:7): [True: 124, False: 46]
  |  Branch (939:29): [True: 40, False: 6]
  ------------------
  940|    164|    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|      6|  return os << value.toUint32(0);
  946|    170|}
_ZN5Exiv28Internal13SonyMakerNote15printAutoHDRStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  948|    338|std::ostream& SonyMakerNote::printAutoHDRStd(std::ostream& os, const Value& value, const ExifData* metadata) {
  949|    338|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (949:7): [True: 18, False: 320]
  |  Branch (949:29): [True: 28, False: 292]
  ------------------
  950|     46|    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|    292|  const auto v0 = value.toUint32(0);
  956|    292|  EXV_PRINT_TAG(sonyHDRStdPart1)(os, (v0 & 0x00ff), metadata);
  ------------------
  |  |  199|    292|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
  957|    292|  os << ", ";
  958|    292|  EXV_PRINT_TAG(sonyHDRStdPart2)(os, (v0 >> 16), metadata);
  ------------------
  |  |  199|    292|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
  959|       |
  960|    292|  return os;
  961|    338|}
_ZN5Exiv28Internal13SonyMakerNote16printWBShiftABGMERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  963|    334|std::ostream& SonyMakerNote::printWBShiftABGM(std::ostream& os, const Value& value, const ExifData*) {
  964|    334|  if (value.count() != 2 || value.typeId() != signedLong)
  ------------------
  |  Branch (964:7): [True: 50, False: 284]
  |  Branch (964:29): [True: 58, False: 226]
  ------------------
  965|    108|    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|    226|  const auto v0 = value.toInt64(0);
  972|    226|  const auto v1 = value.toInt64(1);
  973|       |
  974|    226|  os << "A/B: ";
  975|    226|  if (v0 == 0) {
  ------------------
  |  Branch (975:7): [True: 28, False: 198]
  ------------------
  976|     28|    os << 0;
  977|    198|  } else if (v0 < 0) {
  ------------------
  |  Branch (977:14): [True: 102, False: 96]
  ------------------
  978|    102|    os << "A" << -v0;
  979|    102|  } else {
  980|     96|    os << "B" << v0;
  981|     96|  }
  982|       |
  983|    226|  os << ", G/M: ";
  984|    226|  if (v1 == 0)
  ------------------
  |  Branch (984:7): [True: 32, False: 194]
  ------------------
  985|     32|    return os << 0;
  986|       |
  987|    194|  if (v1 < 0)
  ------------------
  |  Branch (987:7): [True: 102, False: 92]
  ------------------
  988|    102|    return os << "G" << -v1;
  989|       |
  990|     92|  return os << "M" << v1;
  991|    194|}
_ZN5Exiv28Internal13SonyMakerNote15printFocusMode2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  993|  2.34k|std::ostream& SonyMakerNote::printFocusMode2(std::ostream& os, const Value& value, const ExifData* metadata) {
  994|  2.34k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (994:7): [True: 150, False: 2.19k]
  |  Branch (994:29): [True: 74, False: 2.12k]
  |  Branch (994:63): [True: 1.04k, False: 1.07k]
  ------------------
  995|  1.27k|    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.07k|  std::string model;
 1000|  1.07k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1000:7): [True: 264, False: 813]
  ------------------
 1001|    264|    return os << "(" << value << ")";
 1002|       |
 1003|    813|  const auto v0 = value.toUint32(0);
 1004|       |
 1005|    813|  constexpr std::array models{"DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2"};
 1006|    813|  if (!model.starts_with("DSC-") ||
  ------------------
  |  Branch (1006:7): [True: 219, False: 594]
  ------------------
 1007|    594|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1007:7): [True: 356, False: 238]
  ------------------
 1008|    575|    return EXV_PRINT_TAG(sonyFocusMode2)(os, v0, metadata);
  ------------------
  |  |  199|    575|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1009|       |
 1010|    238|  return os << _("n/a");
  ------------------
  |  |   40|    238|#define _(String) (String)
  ------------------
 1011|    813|}
_ZN5Exiv28Internal13SonyMakerNote22printAFAreaModeSettingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1013|  4.89k|std::ostream& SonyMakerNote::printAFAreaModeSetting(std::ostream& os, const Value& value, const ExifData* metadata) {
 1014|  4.89k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1014:7): [True: 411, False: 4.48k]
  |  Branch (1014:29): [True: 78, False: 4.41k]
  |  Branch (1014:63): [True: 895, False: 3.51k]
  ------------------
 1015|  1.38k|    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.51k|  std::string model;
 1020|  3.51k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1020:7): [True: 125, False: 3.39k]
  ------------------
 1021|    125|    return os << "(" << value << ")";
 1022|       |
 1023|  3.39k|  const auto v0 = value.toUint32(0);
 1024|       |
 1025|  3.39k|  for (auto m : {"SLT-", "HV"})
  ------------------
  |  Branch (1025:15): [True: 6.51k, False: 3.07k]
  ------------------
 1026|  6.51k|    if (model.starts_with(m))
  ------------------
  |  Branch (1026:9): [True: 315, False: 6.19k]
  ------------------
 1027|    315|      return EXV_PRINT_TAG(sonyAFAreaModeSettingSet1)(os, v0, metadata);
  ------------------
  |  |  199|    315|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1028|       |
 1029|  3.07k|  constexpr std::array models2{
 1030|  3.07k|      "NEX-", "ILCE-", "ILME-", "DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2",
 1031|  3.07k|  };
 1032|  3.07k|  if (std::any_of(models2.begin(), models2.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1032:7): [True: 1.00k, False: 2.07k]
  ------------------
 1033|  1.00k|    return EXV_PRINT_TAG(sonyAFAreaModeSettingSet2)(os, v0, metadata);
  ------------------
  |  |  199|  1.00k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1034|       |
 1035|  2.07k|  if (model.starts_with("ILCA-"))
  ------------------
  |  Branch (1035:7): [True: 1.47k, False: 604]
  ------------------
 1036|  1.47k|    return EXV_PRINT_TAG(sonyAFAreaModeSettingSet3)(os, v0, metadata);
  ------------------
  |  |  199|  1.47k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1037|       |
 1038|    604|  return os << _("n/a");
  ------------------
  |  |   40|    604|#define _(String) (String)
  ------------------
 1039|  2.07k|}
_ZN5Exiv28Internal13SonyMakerNote25printFlexibleSpotPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1041|  2.03k|std::ostream& SonyMakerNote::printFlexibleSpotPosition(std::ostream& os, const Value& value, const ExifData* metadata) {
 1042|  2.03k|  if (value.count() != 2 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1042:7): [True: 118, False: 1.91k]
  |  Branch (1042:29): [True: 64, False: 1.84k]
  |  Branch (1042:64): [True: 924, False: 924]
  ------------------
 1043|  1.10k|    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|    924|  std::string model;
 1048|    924|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1048:7): [True: 227, False: 697]
  ------------------
 1049|    227|    return os << "(" << value << ")";
 1050|       |
 1051|    697|  constexpr std::array models{
 1052|    697|      "NEX-", "ILCE-", "ILME-", "DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2",
 1053|    697|  };
 1054|    697|  if (std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1054:7): [True: 353, False: 344]
  ------------------
 1055|    353|    return os << value.toUint32(0) << ", " << value.toUint32(1);
 1056|       |
 1057|    344|  return os << _("n/a");
  ------------------
  |  |   40|    344|#define _(String) (String)
  ------------------
 1058|    697|}
_ZN5Exiv28Internal13SonyMakerNote20printAFPointSelectedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1060|  8.72k|std::ostream& SonyMakerNote::printAFPointSelected(std::ostream& os, const Value& value, const ExifData* metadata) {
 1061|  8.72k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1061:7): [True: 50, False: 8.67k]
  |  Branch (1061:29): [True: 148, False: 8.52k]
  |  Branch (1061:63): [True: 4.26k, False: 4.26k]
  ------------------
 1062|  4.46k|    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.26k|  std::string model;
 1067|  4.26k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1067:7): [True: 213, False: 4.04k]
  ------------------
 1068|    213|    return os << "(" << value << ")";
 1069|       |
 1070|  4.04k|  uint32_t aFAreaModeSetting = 0;
 1071|  4.04k|  const auto status = getAFAreaModeSetting(metadata, aFAreaModeSetting);
 1072|       |
 1073|  4.04k|  for (auto m : {"SLT-", "HV-"})
  ------------------
  |  Branch (1073:15): [True: 7.76k, False: 3.67k]
  ------------------
 1074|  7.76k|    if (model.starts_with(m))
  ------------------
  |  Branch (1074:9): [True: 379, False: 7.38k]
  ------------------
 1075|    379|      return EXV_PRINT_TAG(sonyAFPointSelectedSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    379|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1076|       |
 1077|  3.67k|  for (auto m : {"ILCE-", "ILME-"})
  ------------------
  |  Branch (1077:15): [True: 7.25k, False: 3.46k]
  ------------------
 1078|  7.25k|    if (model.starts_with(m) && status && aFAreaModeSetting == 4)
  ------------------
  |  Branch (1078:9): [True: 801, False: 6.45k]
  |  Branch (1078:33): [True: 357, False: 444]
  |  Branch (1078:43): [True: 208, False: 149]
  ------------------
 1079|    208|      return EXV_PRINT_TAG(sonyAFPointSelectedSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    208|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1080|       |
 1081|  3.46k|  for (auto m : {"ILCA-68", "ILCA-77M2"})
  ------------------
  |  Branch (1081:15): [True: 6.46k, False: 2.75k]
  ------------------
 1082|  6.46k|    if (model.starts_with(m) && status && aFAreaModeSetting != 8)
  ------------------
  |  Branch (1082:9): [True: 1.00k, False: 5.45k]
  |  Branch (1082:33): [True: 837, False: 169]
  |  Branch (1082:43): [True: 712, False: 125]
  ------------------
 1083|    712|      return EXV_PRINT_TAG(sonyAFPointSelectedSet2)(os, value, metadata);
  ------------------
  |  |  199|    712|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1084|       |
 1085|  2.75k|  if (model.starts_with("ILCA-99M2") && status && aFAreaModeSetting != 8)
  ------------------
  |  Branch (1085:7): [True: 640, False: 2.11k]
  |  Branch (1085:41): [True: 601, False: 39]
  |  Branch (1085:51): [True: 380, False: 221]
  ------------------
 1086|    380|    return EXV_PRINT_TAG(sonyAFPointSelectedSet3)(os, value, metadata);
  ------------------
  |  |  199|    380|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1087|       |
 1088|  2.37k|  if (model.starts_with("ILCA-") && status && aFAreaModeSetting == 8)
  ------------------
  |  Branch (1088:7): [True: 618, False: 1.75k]
  |  Branch (1088:37): [True: 407, False: 211]
  |  Branch (1088:47): [True: 346, False: 61]
  ------------------
 1089|    346|    return EXV_PRINT_TAG(sonyAFPointSelectedSet4)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    346|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1090|       |
 1091|  2.02k|  for (auto m : {"NEX-", "ILCE-", "ILME-"})
  ------------------
  |  Branch (1091:15): [True: 5.26k, False: 1.27k]
  ------------------
 1092|  5.26k|    if (model.starts_with(m))
  ------------------
  |  Branch (1092:9): [True: 750, False: 4.51k]
  ------------------
 1093|    750|      return EXV_PRINT_TAG(sonyAFPointSelectedSet5)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    750|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1094|       |
 1095|  1.27k|  return os << _("n/a");
  ------------------
  |  |   40|  1.27k|#define _(String) (String)
  ------------------
 1096|  2.02k|}
_ZN5Exiv28Internal13SonyMakerNote17printAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1098|  1.11k|std::ostream& SonyMakerNote::printAFPointsUsed(std::ostream& os, const Value& value, const ExifData* metadata) {
 1099|  1.11k|  if (value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1099:7): [True: 150, False: 966]
  |  Branch (1099:41): [True: 483, False: 483]
  ------------------
 1100|    633|    return os << "(" << value << ")";
 1101|       |
 1102|    483|  std::string model;
 1103|    483|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1103:7): [True: 90, False: 393]
  ------------------
 1104|     90|    return os << "(" << value << ")";
 1105|       |
 1106|    393|  constexpr std::array models1{"ILCA-", "DSC-"};
 1107|    393|  if (std::none_of(models1.begin(), models1.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1107:7): [True: 184, False: 209]
  ------------------
 1108|    184|    return EXV_PRINT_TAG_BITLIST_ALL_LE(sonyAFPointsUsedSet1)(os, value, metadata);
  ------------------
  |  |  289|    184|#define EXV_PRINT_TAG_BITLIST_ALL_LE(array) printTagBitlistAllLE<std::size(array), array>
  ------------------
 1109|       |
 1110|    209|  for (auto m : {"ILCA-68", "ILCA-77M2"})
  ------------------
  |  Branch (1110:15): [True: 398, False: 105]
  ------------------
 1111|    398|    if (model.starts_with(m))
  ------------------
  |  Branch (1111:9): [True: 104, False: 294]
  ------------------
 1112|    104|      return EXV_PRINT_TAG_BITLIST_ALL_LE(sonyAFPointsUsedSet2)(os, value, metadata);
  ------------------
  |  |  289|    104|#define EXV_PRINT_TAG_BITLIST_ALL_LE(array) printTagBitlistAllLE<std::size(array), array>
  ------------------
 1113|       |
 1114|    105|  return os << _("n/a");
  ------------------
  |  |   40|    105|#define _(String) (String)
  ------------------
 1115|    209|}
_ZN5Exiv28Internal13SonyMakerNote15printAFTrackingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1117|  1.94k|std::ostream& SonyMakerNote::printAFTracking(std::ostream& os, const Value& value, const ExifData* metadata) {
 1118|  1.94k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1118:7): [True: 58, False: 1.88k]
  |  Branch (1118:29): [True: 84, False: 1.80k]
  |  Branch (1118:63): [True: 900, False: 900]
  ------------------
 1119|  1.04k|    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|    900|  std::string model;
 1124|    900|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1124:7): [True: 125, False: 775]
  ------------------
 1125|    125|    return os << "(" << value << ")";
 1126|       |
 1127|    775|  constexpr std::array models{"DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2"};
 1128|    775|  if (!model.starts_with("DSC-") ||
  ------------------
  |  Branch (1128:7): [True: 207, False: 568]
  ------------------
 1129|    568|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1129:7): [True: 306, False: 262]
  ------------------
 1130|    513|    return EXV_PRINT_TAG(sonyAFTracking)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    513|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1131|       |
 1132|    262|  return os << _("n/a");
  ------------------
  |  |   40|    262|#define _(String) (String)
  ------------------
 1133|    775|}
_ZN5Exiv28Internal13SonyMakerNote27printFocalPlaneAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1135|    102|std::ostream& SonyMakerNote::printFocalPlaneAFPointsUsed(std::ostream& os, const Value& value, const ExifData*) {
 1136|    102|  if (value.typeId() != unsignedByte)
  ------------------
  |  Branch (1136:7): [True: 44, False: 58]
  ------------------
 1137|     44|    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|    304|std::ostream& SonyMakerNote::printWBShiftABGMPrecise(std::ostream& os, const Value& value, const ExifData*) {
 1146|    304|  if (value.count() != 2 || value.typeId() != signedLong)
  ------------------
  |  Branch (1146:7): [True: 6, False: 298]
  |  Branch (1146:29): [True: 208, False: 90]
  ------------------
 1147|    214|    return os << "(" << value << ")";
 1148|       |
 1149|     90|  std::ios::fmtflags f(os.flags());
 1150|       |
 1151|     90|  const auto temp0 = static_cast<double>(value.toInt64(0)) / 1000.0;
 1152|     90|  const auto temp1 = static_cast<double>(value.toInt64(1)) / 1000.0;
 1153|       |
 1154|     90|  os << "A/B: ";
 1155|     90|  if (temp0 == 0) {
  ------------------
  |  Branch (1155:7): [True: 18, False: 72]
  ------------------
 1156|     18|    os << 0;
 1157|     72|  } else if (temp0 < 0) {
  ------------------
  |  Branch (1157:14): [True: 40, False: 32]
  ------------------
 1158|     40|    os << "A" << std::fixed << std::setprecision(2) << -temp0;
 1159|     40|  } else {
 1160|     32|    os << "B" << std::fixed << std::setprecision(2) << temp0;
 1161|     32|  }
 1162|     90|  os << ", G/M: ";
 1163|     90|  if (temp1 == 0) {
  ------------------
  |  Branch (1163:7): [True: 14, False: 76]
  ------------------
 1164|     14|    os << 0;
 1165|     76|  } else if (temp1 < 0) {
  ------------------
  |  Branch (1165:14): [True: 34, False: 42]
  ------------------
 1166|     34|    os << "G" << std::fixed << std::setprecision(2) << -temp1;
 1167|     42|  } else {
 1168|     42|    os << "M" << std::fixed << std::setprecision(2) << temp1;
 1169|     42|  }
 1170|       |
 1171|     90|  os.flags(f);
 1172|     90|  return os;
 1173|    304|}
_ZN5Exiv28Internal13SonyMakerNote31printExposureStandardAdjustmentERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1175|    240|std::ostream& SonyMakerNote::printExposureStandardAdjustment(std::ostream& os, const Value& value, const ExifData*) {
 1176|    240|  if (value.count() != 1 || value.typeId() != signedRational) {
  ------------------
  |  Branch (1176:7): [True: 48, False: 192]
  |  Branch (1176:29): [True: 38, False: 154]
  ------------------
 1177|     86|    return os << "(" << value << ")";
 1178|     86|  }
 1179|       |
 1180|    154|  const auto [r, s] = value.toRational();
 1181|    154|  return os << stringFormat("{:.1f}", static_cast<double>(r) / static_cast<double>(s));
  ------------------
  |  |   18|    154|#define stringFormat std::format
  ------------------
 1182|    240|}
_ZN5Exiv28Internal13SonyMakerNote19printPixelShiftInfoERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1184|    316|std::ostream& SonyMakerNote::printPixelShiftInfo(std::ostream& os, const Value& value, const ExifData*) {
 1185|    316|  if (value.count() != 6 || value.typeId() != undefined)
  ------------------
  |  Branch (1185:7): [True: 128, False: 188]
  |  Branch (1185:29): [True: 70, False: 118]
  ------------------
 1186|    198|    return os << "(" << value << ")";
 1187|       |
 1188|       |  // Tag format:
 1189|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1504
 1190|    118|  if (value.toString() == "0 0 0 0 0 0")
  ------------------
  |  Branch (1190:7): [True: 30, False: 88]
  ------------------
 1191|     30|    return os << _("n/a");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 1192|       |
 1193|       |  // Convert from little endian format
 1194|     88|  auto groupID = (value.toUint32(3) << 24) + (value.toUint32(2) << 16) + (value.toUint32(1) << 8) + value.toUint32(0);
 1195|       |
 1196|     88|  return os << stringFormat("Group {:02}{:02}{:02}{:02}, Shot {}/{} (0x{:x})", (groupID >> 17) & 0x1f,
  ------------------
  |  |   18|     88|#define stringFormat std::format
  ------------------
 1197|     88|                            (groupID >> 12) & 0x1f, (groupID >> 6) & 0x3f, groupID & 0x3f, value.toUint32(4),
 1198|     88|                            value.toUint32(5), (groupID >> 22));
 1199|    118|}
_ZN5Exiv28Internal13SonyMakerNote19printFocusFrameSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1201|    144|std::ostream& SonyMakerNote::printFocusFrameSize(std::ostream& os, const Value& value, const ExifData*) {
 1202|    144|  if (value.count() != 6 || value.typeId() != undefined)
  ------------------
  |  Branch (1202:7): [True: 56, False: 88]
  |  Branch (1202:29): [True: 14, False: 74]
  ------------------
 1203|     70|    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|     74|  if (value.toUint32(4) == 0 && value.toUint32(5) == 0)
  ------------------
  |  Branch (1208:7): [True: 44, False: 30]
  |  Branch (1208:33): [True: 22, False: 22]
  ------------------
 1209|     22|    return os << _("n/a");
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
 1210|       |
 1211|       |  // Convert from little endian format
 1212|     52|  return os << ((value.toUint32(1) << 8) + value.toUint32(0)) << "x" << ((value.toUint32(3) << 8) + value.toUint32(2));
 1213|     74|}
_ZN5Exiv28Internal13SonyMakerNote21printColorTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1215|    202|std::ostream& SonyMakerNote::printColorTemperature(std::ostream& os, const Value& value, const ExifData*) {
 1216|    202|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1216:7): [True: 48, False: 154]
  |  Branch (1216:29): [True: 26, False: 128]
  ------------------
 1217|     74|    return os << "(" << value << ")";
 1218|       |
 1219|    128|  auto v0 = value.toUint32(0);
 1220|    128|  if (v0 == 0)
  ------------------
  |  Branch (1220:7): [True: 62, False: 66]
  ------------------
 1221|     62|    return os << _("Auto");
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
 1222|       |
 1223|     66|  if (v0 == 0xffffffff)
  ------------------
  |  Branch (1223:7): [True: 14, False: 52]
  ------------------
 1224|     14|    return os << _("n/a");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 1225|       |
 1226|     52|  return os << v0 << " K";
 1227|     66|}
_ZN5Exiv28Internal13SonyMakerNote28printColorCompensationFilterERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1229|    182|std::ostream& SonyMakerNote::printColorCompensationFilter(std::ostream& os, const Value& value, const ExifData*) {
 1230|    182|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1230:7): [True: 92, False: 90]
  |  Branch (1230:29): [True: 14, False: 76]
  ------------------
 1231|    106|    return os << "(" << value << ")";
 1232|       |
 1233|       |  // Tag is written as an unsignedLong but used as a signedLong. See
 1234|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2093
 1235|       |
 1236|     76|  int64_t temp = static_cast<int32_t>(value.toUint32(0));
 1237|     76|  os << "G/M: ";
 1238|     76|  if (temp == 0)
  ------------------
  |  Branch (1238:7): [True: 34, False: 42]
  ------------------
 1239|     34|    return os << "0";
 1240|       |
 1241|     42|  if (temp < 0)
  ------------------
  |  Branch (1241:7): [True: 28, False: 14]
  ------------------
 1242|     28|    return os << "G" << -temp;
 1243|       |
 1244|     14|  return os << "M" << temp;
 1245|     42|}
_ZN5Exiv28Internal13SonyMakerNote13printLensSpecERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1286|    652|std::ostream& SonyMakerNote::printLensSpec(std::ostream& os, const Value& value, const ExifData*) {
 1287|    652|  if (value.count() != 8 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (1287:7): [True: 38, False: 614]
  |  Branch (1287:29): [True: 30, False: 584]
  ------------------
 1288|     68|    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|    584|  const auto focalLenMin = value.toUint32(2);
 1313|    584|  const auto focalLenMax1 = value.toUint32(3);
 1314|    584|  const auto focalLenMax2 = value.toUint32(4);
 1315|    584|  const auto appertureMin = value.toUint32(5);
 1316|    584|  const auto apertureMax = value.toUint32(6);
 1317|       |
 1318|    584|  if (value.toString() == "0 0 0 0 0 0 0 0" || focalLenMin == 0 || appertureMin == 0)
  ------------------
  |  Branch (1318:7): [True: 52, False: 532]
  |  Branch (1318:7): [True: 162, False: 422]
  |  Branch (1318:48): [True: 76, False: 456]
  |  Branch (1318:68): [True: 34, False: 422]
  ------------------
 1319|    162|    return os << _("Unknown");
  ------------------
  |  |   40|    162|#define _(String) (String)
  ------------------
 1320|       |
 1321|    422|  std::string flagsStart;
 1322|    422|  std::string flagsEnd;
 1323|    422|  findLensSpecFlags(value, flagsStart, flagsEnd);
 1324|       |
 1325|       |  // Output <Flgs 1>
 1326|    422|  if (!flagsStart.empty())
  ------------------
  |  Branch (1326:7): [True: 318, False: 104]
  ------------------
 1327|    318|    os << flagsStart << " ";
 1328|       |
 1329|       |  // Output <Focal len min>
 1330|    422|  auto temp = ((focalLenMin >> 4) & 0x0f);
 1331|    422|  if (temp != 0)  // Remove leading zero
  ------------------
  |  Branch (1331:7): [True: 260, False: 162]
  ------------------
 1332|    260|    os << temp;
 1333|       |
 1334|    422|  os << (focalLenMin & 0x0f);
 1335|       |
 1336|    422|  if (focalLenMax1 != 0 || focalLenMax2 != 0) {
  ------------------
  |  Branch (1336:7): [True: 308, False: 114]
  |  Branch (1336:28): [True: 40, False: 74]
  ------------------
 1337|    336|    os << "-";
 1338|    336|  }
 1339|       |
 1340|    422|  if (focalLenMax1 != 0) {
  ------------------
  |  Branch (1340:7): [True: 296, False: 126]
  ------------------
 1341|       |    // Output <Focal len max 1>
 1342|    296|    temp = ((focalLenMax1 >> 4) & 0x0f);
 1343|    296|    if (temp != 0)  // Remove leading zero
  ------------------
  |  Branch (1343:9): [True: 186, False: 110]
  ------------------
 1344|    186|      os << temp;
 1345|    296|    os << (focalLenMax1 & 0x0f);
 1346|       |
 1347|       |    // Output <Focal len max 2>
 1348|    296|    os << ((focalLenMax2 >> 4) & 0x0f) << (focalLenMax2 & 0x0f);
 1349|    296|  } else {
 1350|       |    // Output <Focal len max 2>
 1351|    126|    if (focalLenMax2 != 0)
  ------------------
  |  Branch (1351:9): [True: 40, False: 86]
  ------------------
 1352|     40|      os << ((focalLenMax2 >> 4) & 0x0f) << (focalLenMax2 & 0x0f);
 1353|    126|  }
 1354|       |
 1355|    422|  os << "mm";
 1356|       |
 1357|       |  // Output <Aperture min>
 1358|    422|  os << " F" << ((appertureMin >> 4) & 0x0f) << "." << (appertureMin & 0x0f);
 1359|       |
 1360|       |  // Output <Aperture max>
 1361|    422|  if (apertureMax != 0)
  ------------------
  |  Branch (1361:7): [True: 288, False: 134]
  ------------------
 1362|    288|    os << "-" << ((apertureMax >> 4) & 0x0f) << "." << (apertureMax & 0x0f);
 1363|       |
 1364|       |  // Output <Flags 3>
 1365|    422|  if (!flagsEnd.empty())
  ------------------
  |  Branch (1365:7): [True: 328, False: 94]
  ------------------
 1366|    328|    os << " " << flagsEnd;
 1367|    422|  return os;
 1368|    584|}
_ZN5Exiv28Internal13SonyMakerNote14printImageSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1370|    132|std::ostream& SonyMakerNote::printImageSize(std::ostream& os, const Value& value, const ExifData*) {
 1371|    132|  if (value.count() != 2 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1371:7): [True: 114, False: 18]
  |  Branch (1371:29): [True: 8, False: 10]
  ------------------
 1372|    122|    return os << "(" << value << ")";
 1373|       |
 1374|       |  // Values are stored as Height then Width
 1375|     10|  return os << value.toString(1) << " x " << value.toString(0);
 1376|    132|}
_ZN5Exiv28Internal13SonyMakerNote14printFocusModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1378|    416|std::ostream& SonyMakerNote::printFocusMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1379|    416|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1379:7): [True: 196, False: 220]
  |  Branch (1379:29): [True: 20, False: 200]
  |  Branch (1379:64): [True: 100, False: 100]
  ------------------
 1380|    316|    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|    100|  if (std::string metaVersion; !getMetaVersion(metadata, metaVersion) || metaVersion != "DC7303320222000")
  ------------------
  |  Branch (1385:32): [True: 61, False: 39]
  |  Branch (1385:74): [True: 21, False: 18]
  ------------------
 1386|     82|    return EXV_PRINT_TAG(sonyFocusMode)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     82|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1387|       |
 1388|     18|  return os << _("n/a");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
 1389|    100|}
_ZN5Exiv28Internal13SonyMakerNote11printAFModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1391|    722|std::ostream& SonyMakerNote::printAFMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1392|    722|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1392:7): [True: 30, False: 692]
  |  Branch (1392:29): [True: 38, False: 654]
  |  Branch (1392:64): [True: 327, False: 327]
  ------------------
 1393|    395|    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|    327|  if (std::string metaVersion; !getMetaVersion(metadata, metaVersion) || metaVersion != "DC7303320222000")
  ------------------
  |  Branch (1397:32): [True: 126, False: 201]
  |  Branch (1397:74): [True: 47, False: 154]
  ------------------
 1398|    173|    return EXV_PRINT_TAG(sonyAFModeSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    173|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1399|       |
 1400|    154|  if (uint32_t focusMode2 = 0; getFocusMode2(metadata, focusMode2) && focusMode2 != 0)
  ------------------
  |  Branch (1400:32): [True: 94, False: 60]
  |  Branch (1400:71): [True: 77, False: 17]
  ------------------
 1401|     77|    return EXV_PRINT_TAG(sonyAFModeSet2)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     77|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1402|       |
 1403|     77|  return os << _("n/a");
  ------------------
  |  |   40|     77|#define _(String) (String)
  ------------------
 1404|    154|}
_ZN5Exiv28Internal13SonyMakerNote15printFocusMode3ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1406|    864|std::ostream& SonyMakerNote::printFocusMode3(std::ostream& os, const Value& value, const ExifData* metadata) {
 1407|    864|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1407:7): [True: 14, False: 850]
  |  Branch (1407:29): [True: 230, False: 620]
  |  Branch (1407:64): [True: 310, False: 310]
  ------------------
 1408|    554|    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|    310|  if (std::string metaVersion; getMetaVersion(metadata, metaVersion) && metaVersion == "DC7303320222000")
  ------------------
  |  Branch (1412:32): [True: 136, False: 174]
  |  Branch (1412:73): [True: 41, False: 95]
  ------------------
 1413|     41|    return EXV_PRINT_TAG(sonyFocusMode3)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     41|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1414|       |
 1415|    269|  return os << _("n/a");
  ------------------
  |  |   40|    269|#define _(String) (String)
  ------------------
 1416|    310|}
_ZN5Exiv28Internal13SonyMakerNote27printHighISONoiseReduction2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1419|  1.15k|                                                         const ExifData* metadata) {
 1420|  1.15k|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1420:7): [True: 116, False: 1.04k]
  |  Branch (1420:29): [True: 38, False: 1.00k]
  |  Branch (1420:64): [True: 501, False: 501]
  ------------------
 1421|    655|    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|    501|  std::string model;
 1426|    501|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1426:7): [True: 96, False: 405]
  ------------------
 1427|     96|    return os << "(" << value << ")";
 1428|       |
 1429|    405|  if (model.starts_with("DSC-") || model.starts_with("Stellar"))
  ------------------
  |  Branch (1429:7): [True: 230, False: 175]
  |  Branch (1429:36): [True: 17, False: 158]
  ------------------
 1430|    247|    return EXV_PRINT_TAG(sonyHighISONoiseReduction2)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    247|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1431|       |
 1432|    158|  return os << _("n/a");
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
 1433|    405|}
_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: 12, False: 110]
  |  Branch (1875:33): [True: 122, False: 0]
  |  Branch (1875:54): [True: 12, False: 110]
  ------------------
 1876|     12|    return os << value << " °C";
 1877|       |
 1878|    110|  return os << N_("n/a");
  ------------------
  |  |   41|    110|#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: 106, False: 120]
  ------------------
 1887|     48|    case 0:
  ------------------
  |  Branch (1887:5): [True: 48, False: 178]
  ------------------
 1888|     48|      return os << N_("Manual");
  ------------------
  |  |   41|     48|#define N_(String) String
  ------------------
 1889|     14|    case 2:
  ------------------
  |  Branch (1889:5): [True: 14, False: 212]
  ------------------
 1890|     14|      return os << N_("AF-S");
  ------------------
  |  |   41|     14|#define N_(String) String
  ------------------
 1891|     28|    case 3:
  ------------------
  |  Branch (1891:5): [True: 28, False: 198]
  ------------------
 1892|     28|      return os << N_("AF-C");
  ------------------
  |  |   41|     28|#define N_(String) String
  ------------------
 1893|     12|    case 4:
  ------------------
  |  Branch (1893:5): [True: 12, False: 214]
  ------------------
 1894|     12|      return os << N_("AF-A");
  ------------------
  |  |   41|     12|#define N_(String) String
  ------------------
 1895|      4|    case 6:
  ------------------
  |  Branch (1895:5): [True: 4, False: 222]
  ------------------
 1896|      4|      return os << N_("DMF");
  ------------------
  |  |   41|      4|#define N_(String) String
  ------------------
 1897|    226|  }
 1898|       |
 1899|    120|  return os << "(" << val << ")";
 1900|    226|}
_ZN5Exiv28Internal13SonyMakerNote26printSony2FpFocusPosition2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1903|    226|                                                        const ExifData* metadata) {
 1904|    226|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1904:7): [True: 0, False: 226]
  |  Branch (1904:29): [True: 113, False: 113]
  ------------------
 1905|    113|    return os << "(" << value << ")";
 1906|       |
 1907|    113|  std::string model;
 1908|    113|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1908:7): [True: 43, False: 70]
  ------------------
 1909|     43|    return os << "(" << value << ")";
 1910|       |
 1911|       |  // Ranges of models that do not support this tag
 1912|     70|  for (const auto& m : {"DSC-", "Stellar"})
  ------------------
  |  Branch (1912:22): [True: 123, False: 50]
  ------------------
 1913|    123|    if (model.starts_with(m))
  ------------------
  |  Branch (1913:9): [True: 20, False: 103]
  ------------------
 1914|     20|      return os << N_("n/a");
  ------------------
  |  |   41|     20|#define N_(String) String
  ------------------
 1915|       |
 1916|     50|  const auto val = value.toInt64();
 1917|     50|  if (val == 255)
  ------------------
  |  Branch (1917:7): [True: 8, False: 42]
  ------------------
 1918|      8|    return os << N_("Infinity");
  ------------------
  |  |   41|      8|#define N_(String) String
  ------------------
 1919|       |
 1920|     42|  return os << val;
 1921|     50|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc1CameraTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1933|     56|                                                             const ExifData* metadata) {
 1934|     56|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1934:7): [True: 0, False: 56]
  |  Branch (1934:29): [True: 28, False: 28]
  ------------------
 1935|     28|    return os << "(" << value << ")";
 1936|       |
 1937|     28|  auto pos = metadata->findKey(ExifKey("Exif.SonyMisc1.0x0004"));
 1938|     28|  if (pos != metadata->end() && pos->count() == 1 && pos->toInt64() != 0 && pos->toInt64() < 100)
  ------------------
  |  Branch (1938:7): [True: 28, False: 0]
  |  Branch (1938:7): [True: 6, False: 22]
  |  Branch (1938:33): [True: 28, False: 0]
  |  Branch (1938:54): [True: 16, False: 12]
  |  Branch (1938:77): [True: 6, False: 10]
  ------------------
 1939|      6|    return os << value << " °C";
 1940|       |
 1941|     22|  return os << N_("n/a");
  ------------------
  |  |   41|     22|#define N_(String) String
  ------------------
 1942|     28|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc2bLensZoomPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1997|     58|                                                             const ExifData* metadata) {
 1998|     58|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1998:7): [True: 0, False: 58]
  |  Branch (1998:29): [True: 29, False: 29]
  ------------------
 1999|     29|    return os << "(" << value << ")";
 2000|       |
 2001|     29|  std::string model;
 2002|     29|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2002:7): [True: 9, False: 20]
  ------------------
 2003|      9|    return os << "(" << value << ")";
 2004|       |
 2005|       |  // Models that do not support this tag
 2006|     20|  for (auto m : {"SLT-", "HV", "ILCA-"})
  ------------------
  |  Branch (2006:15): [True: 54, False: 14]
  ------------------
 2007|     54|    if (Internal::contains(model, m))
  ------------------
  |  Branch (2007:9): [True: 6, False: 48]
  ------------------
 2008|      6|      return os << N_("n/a");
  ------------------
  |  |   41|      6|#define N_(String) String
  ------------------
 2009|       |
 2010|     14|  return os << stringFormat("{}%", std::lround(value.toInt64() / 10.24));
  ------------------
  |  |   18|     14|#define stringFormat std::format
  ------------------
 2011|     20|}
_ZN5Exiv28Internal13SonyMakerNote29printSonyMisc2bFocusPosition2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2014|     58|                                                           const ExifData* metadata) {
 2015|     58|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (2015:7): [True: 0, False: 58]
  |  Branch (2015:29): [True: 29, False: 29]
  ------------------
 2016|     29|    return os << "(" << value << ")";
 2017|       |
 2018|     29|  std::string model;
 2019|     29|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2019:7): [True: 9, False: 20]
  ------------------
 2020|      9|    return os << "(" << value << ")";
 2021|       |
 2022|       |  // Models that do not support this tag
 2023|     20|  for (auto m : {"SLT-", "HV", "ILCA-"})
  ------------------
  |  Branch (2023:15): [True: 54, False: 14]
  ------------------
 2024|     54|    if (Internal::contains(model, m))
  ------------------
  |  Branch (2024:9): [True: 6, False: 48]
  ------------------
 2025|      6|      return os << N_("n/a");
  ------------------
  |  |   41|      6|#define N_(String) String
  ------------------
 2026|       |
 2027|     14|  return os << value;
 2028|     20|}
_ZN5Exiv28Internal13SonyMakerNote37printSonyMisc3cShotNumberSincePowerUpERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2106|    214|                                                                   const ExifData* metadata) {
 2107|    214|  if (value.count() != 1 || value.typeId() != unsignedLong || !metadata)
  ------------------
  |  Branch (2107:7): [True: 0, False: 214]
  |  Branch (2107:29): [True: 24, False: 190]
  |  Branch (2107:63): [True: 95, False: 95]
  ------------------
 2108|    119|    return os << "(" << value << ")";
 2109|       |
 2110|     95|  std::string model;
 2111|     95|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2111:7): [True: 42, False: 53]
  ------------------
 2112|     42|    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|     53|  static constexpr const char* models[] = {
 2117|     53|      "ILCA-68",     "ILCA-77M2",   "ILCA-99M2",   "ILCE-5000",  "ILCE-5100", "ILCE-6000",  "ILCE-6300",
 2118|     53|      "ILCE-6500",   "ILCE-7",      "ILCE-7M2",    "ILCE-7R",    "ILCE-7RM2", "ILCE-7S",    "ILCE-7SM2",
 2119|     53|      "ILCE-7SM5",   "ILCE-QX1",    "DSC-HX350",   "DSC-HX400V", "DSC-HX60V", "DSC-HX80",   "DSC-HX90",
 2120|     53|      "DSC-HX90V",   "DSC-QX30",    "DSC-RX0",     "DSC-RX1RM2", "DSC-RX10",  "DSC-RX10M2", "DSC-RX10M3",
 2121|     53|      "DSC-RX100M3", "DSC-RX100M4", "DSC-RX100M5", "DSC-WX220",  "DSC-WX350", "DSC-WX500",
 2122|     53|  };
 2123|       |
 2124|     53|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2124:7): [True: 8, False: 45]
  ------------------
 2125|      8|    return os << value.toInt64();
 2126|       |
 2127|     45|  return os << N_("n/a");
  ------------------
  |  |   41|     45|#define N_(String) String
  ------------------
 2128|     53|}
_ZN5Exiv28Internal13SonyMakerNote29printSonyMisc3cSequenceNumberERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2130|    416|std::ostream& SonyMakerNote::printSonyMisc3cSequenceNumber(std::ostream& os, const Value& value, const ExifData*) {
 2131|    416|  return (value.count() != 1 || value.typeId() != unsignedLong) ? os << "(" << value << ")"
  ------------------
  |  Branch (2131:11): [True: 0, False: 416]
  |  Branch (2131:33): [True: 48, False: 368]
  ------------------
 2132|    416|                                                                : os << (value.toInt64() + 1);
 2133|    416|}
_ZN5Exiv28Internal13SonyMakerNote23printSonyMisc3cQuality2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2135|    200|std::ostream& SonyMakerNote::printSonyMisc3cQuality2(std::ostream& os, const Value& value, const ExifData* metadata) {
 2136|    200|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (2136:7): [True: 0, False: 200]
  |  Branch (2136:29): [True: 0, False: 200]
  |  Branch (2136:63): [True: 100, False: 100]
  ------------------
 2137|    100|    return os << "(" << value << ")";
 2138|       |
 2139|    100|  std::string model;
 2140|    100|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2140:7): [True: 36, False: 64]
  ------------------
 2141|     36|    return os << "(" << value << ")";
 2142|       |
 2143|     64|  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|     64|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2148|       |
 2149|     64|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2149:7): [True: 11, False: 53]
  ------------------
 2150|     11|    return EXV_PRINT_TAG(sonyMisc3cQuality2a)(os, val, metadata);
  ------------------
  |  |  199|     11|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2151|       |
 2152|     53|  return EXV_PRINT_TAG(sonyMisc3cQuality2b)(os, val, metadata);
  ------------------
  |  |  199|     53|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2153|     64|}
_ZN5Exiv28Internal13SonyMakerNote30printSonyMisc3cSonyImageHeightERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2156|    132|                                                            const ExifData* metadata) {
 2157|    132|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (2157:7): [True: 0, False: 132]
  |  Branch (2157:29): [True: 24, False: 108]
  |  Branch (2157:64): [True: 54, False: 54]
  ------------------
 2158|     78|    return os << "(" << value << ")";
 2159|       |
 2160|     54|  std::string model;
 2161|     54|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2161:7): [True: 16, False: 38]
  ------------------
 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|     38|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2167|       |
 2168|     38|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2168:7): [True: 6, False: 32]
  ------------------
 2169|      6|    return os << N_("n/a");
  ------------------
  |  |   41|      6|#define N_(String) String
  ------------------
 2170|       |
 2171|     32|  const auto val = value.toInt64();
 2172|     32|  if (val > 0)
  ------------------
  |  Branch (2172:7): [True: 22, False: 10]
  ------------------
 2173|     22|    return os << (8 * val);
 2174|     10|  return os << N_("n/a");
  ------------------
  |  |   41|     10|#define N_(String) String
  ------------------
 2175|     32|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc3cModelReleaseYearERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2178|    108|                                                             const ExifData* metadata) {
 2179|    108|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (2179:7): [True: 0, False: 108]
  |  Branch (2179:29): [True: 0, False: 108]
  |  Branch (2179:63): [True: 54, False: 54]
  ------------------
 2180|     54|    return os << "(" << value << ")";
 2181|       |
 2182|     54|  std::string model;
 2183|     54|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2183:7): [True: 13, False: 41]
  ------------------
 2184|     13|    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|     41|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2189|       |
 2190|     41|  if (Exiv2::find(models, model)) {
  ------------------
  |  Branch (2190:7): [True: 5, False: 36]
  ------------------
 2191|      5|    return os << N_("n/a");
  ------------------
  |  |   41|      5|#define N_(String) String
  ------------------
 2192|      5|  }
 2193|       |
 2194|     36|  const auto val = value.toInt64();
 2195|     36|  if (val > 99)
  ------------------
  |  Branch (2195:7): [True: 11, False: 25]
  ------------------
 2196|     11|    return os << "(" << val << ")";
 2197|       |
 2198|     25|  if (val == 0)
  ------------------
  |  Branch (2198:7): [True: 6, False: 19]
  ------------------
 2199|      6|    return os << "2000";
 2200|       |
 2201|     19|  return os << "20" << val;
 2202|     25|}
_ZN5Exiv28Internal15sonyTagDecipherEtPKhmPNS0_13TiffComponentE:
 2331|    639|DataBuf sonyTagDecipher(uint16_t tag, const byte* bytes, size_t size, TiffComponent* object) {
 2332|    639|  return sonyTagCipher(tag, bytes, size, object, true);
 2333|    639|}
_ZN5Exiv28Internal15sonyTagEncipherEtPKhmPNS0_13TiffComponentE:
 2334|     32|DataBuf sonyTagEncipher(uint16_t tag, const byte* bytes, size_t size, TiffComponent* object) {
 2335|     32|  return sonyTagCipher(tag, bytes, size, object, false);
 2336|     32|}
sonymn_int.cpp:_ZN5Exiv28InternalL8getModelEPKNS_8ExifDataERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  814|  12.1k|static auto getModel(const ExifData* metadata, std::string& val) {
  815|  12.1k|  auto pos = metadata->findKey(ExifKey("Exif.Image.Model"));
  816|  12.1k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == asciiString) {
  ------------------
  |  Branch (816:7): [True: 5.67k, False: 6.45k]
  |  Branch (816:7): [True: 4.65k, False: 7.47k]
  |  Branch (816:33): [True: 5.00k, False: 671]
  |  Branch (816:53): [True: 4.65k, False: 350]
  ------------------
  817|  4.65k|    val = pos->toString(0);
  818|  4.65k|    return true;
  819|  4.65k|  }
  820|       |
  821|       |  // NOTE: As using the translated SonyModelID value, need to be synchronized with the array format
  822|  7.47k|  pos = metadata->findKey(ExifKey("Exif.Sony1.SonyModelID"));
  823|  7.47k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedShort) {
  ------------------
  |  Branch (823:7): [True: 438, False: 7.04k]
  |  Branch (823:7): [True: 224, False: 7.25k]
  |  Branch (823:33): [True: 302, False: 136]
  |  Branch (823:53): [True: 224, False: 78]
  ------------------
  824|    224|    if (auto temp = pos->print(metadata); !Internal::contains(temp, ' ')) {
  ------------------
  |  Branch (824:43): [True: 185, False: 39]
  ------------------
  825|    185|      val = std::move(temp);
  826|    185|      return true;
  827|    185|    }
  828|     39|    val = "";
  829|     39|    return false;
  830|    224|  }
  831|  7.25k|  pos = metadata->findKey(ExifKey("Exif.Sony2.SonyModelID"));
  832|  7.25k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedShort) {
  ------------------
  |  Branch (832:7): [True: 6.24k, False: 1.00k]
  |  Branch (832:7): [True: 6.02k, False: 1.22k]
  |  Branch (832:33): [True: 6.09k, False: 150]
  |  Branch (832:53): [True: 6.02k, False: 67]
  ------------------
  833|  6.02k|    if (auto temp = pos->print(metadata); !Internal::contains(temp, ' ')) {
  ------------------
  |  Branch (833:43): [True: 5.98k, False: 43]
  ------------------
  834|  5.98k|      val = std::move(temp);
  835|  5.98k|      return true;
  836|  5.98k|    }
  837|     43|    val = "";
  838|     43|    return false;
  839|  6.02k|  }
  840|       |
  841|  1.22k|  val = "";
  842|  1.22k|  return false;
  843|  7.25k|}
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote15printFocusMode2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1007|  2.75k|      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|  22.5k|  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|  4.78k|  if (std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
sonymn_int.cpp:_ZN5Exiv28InternalL20getAFAreaModeSettingEPKNS_8ExifDataERj:
  845|  4.04k|static auto getAFAreaModeSetting(const ExifData* metadata, uint32_t& val) {
  846|  4.04k|  auto pos = metadata->findKey(ExifKey("Exif.Sony1.AFAreaModeSetting"));
  847|  4.04k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (847:7): [True: 772, False: 3.27k]
  |  Branch (847:7): [True: 528, False: 3.52k]
  |  Branch (847:33): [True: 614, False: 158]
  |  Branch (847:53): [True: 528, False: 86]
  ------------------
  848|    528|    std::ostringstream oss;
  849|    528|    pos->write(oss, metadata);
  850|    528|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|    528|#define _(String) (String)
  ------------------
  |  Branch (850:9): [True: 55, False: 473]
  ------------------
  851|     55|      val = 0;
  852|     55|      return false;
  853|     55|    }
  854|       |
  855|    473|    val = pos->toUint32(0);
  856|    473|    return true;
  857|    528|  }
  858|  3.52k|  pos = metadata->findKey(ExifKey("Exif.Sony2.AFAreaModeSetting"));
  859|  3.52k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (859:7): [True: 2.62k, False: 894]
  |  Branch (859:7): [True: 2.37k, False: 1.14k]
  |  Branch (859:33): [True: 2.51k, False: 111]
  |  Branch (859:53): [True: 2.37k, False: 139]
  ------------------
  860|  2.37k|    std::ostringstream oss;
  861|  2.37k|    pos->write(oss, metadata);
  862|  2.37k|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|  2.37k|#define _(String) (String)
  ------------------
  |  Branch (862:9): [True: 381, False: 1.99k]
  ------------------
  863|    381|      val = 0;
  864|    381|      return false;
  865|    381|    }
  866|       |
  867|  1.99k|    val = pos->toUint32(0);
  868|  1.99k|    return true;
  869|  2.37k|  }
  870|       |
  871|  1.14k|  val = 0;
  872|  1.14k|  return false;
  873|  3.52k|}
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote17printAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1107|    666|  if (std::none_of(models1.begin(), models1.end(), [&model](auto m) { return model.starts_with(m); }))
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote15printAFTrackingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1129|  2.64k|      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|    422|static void findLensSpecFlags(const Value& value, std::string& flagsStart, std::string& flagsEnd) {
 1248|    422|  static constexpr struct LensSpecFlags {
 1249|    422|    int64_t mask;  // Contains all the bits set in the flags.val_ array values
 1250|    422|    TagDetails flags[4];
 1251|    422|    bool prepend;
 1252|    422|  } lSFArray[] = {
 1253|    422|      {0x4000, {{0x4000, "PZ"}}, true},
 1254|    422|      {0x0300, {{0x0100, "DT"}, {0x0200, "FE"}, {0x0300, "E"}}, true},
 1255|    422|      {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    422|#define N_(String) String
  ------------------
                    {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    422|#define N_(String) String
  ------------------
                    {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    422|#define N_(String) String
  ------------------
 1256|    422|      {0x000c, {{0x0004, "ZA"}, {0x0008, "G"}}, false},
 1257|    422|      {0x0003, {{0x0001, "SSM"}, {0x0002, "SAM"}}, false},
 1258|    422|      {0x8000, {{0x8000, "OSS"}}, false},
 1259|    422|      {0x2000, {{0x2000, "LE"}}, false},
 1260|    422|      {0x0800, {{0x0800, "II"}}, false},
 1261|    422|  };
 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|    422|  const auto joinedV0V7 = ((value.toUint32(0) << 8) + value.toUint32(7));
 1270|  3.33k|  for (const auto& i : lSFArray) {
  ------------------
  |  Branch (1270:22): [True: 3.33k, False: 410]
  ------------------
 1271|  3.33k|    if (auto temp = i.mask & joinedV0V7) {  // Check if a flag matches in the current LensSpecFlags
  ------------------
  |  Branch (1271:14): [True: 1.88k, False: 1.45k]
  ------------------
 1272|  1.88k|      if (auto f = Exiv2::find(i.flags, temp)) {
  ------------------
  |  Branch (1272:16): [True: 1.86k, False: 12]
  ------------------
 1273|  1.86k|        if (i.prepend)
  ------------------
  |  Branch (1273:13): [True: 465, False: 1.40k]
  ------------------
 1274|    465|          flagsStart = flagsStart.empty() ? f->label_ : stringFormat("{} {}", f->label_, flagsStart);
  ------------------
  |  |   18|    140|#define stringFormat std::format
  ------------------
  |  Branch (1274:24): [True: 325, False: 140]
  ------------------
 1275|  1.40k|        else
 1276|  1.40k|          flagsEnd = flagsEnd.empty() ? f->label_ : stringFormat("{} {}", flagsEnd, f->label_);
  ------------------
  |  |   18|  1.06k|#define stringFormat std::format
  ------------------
  |  Branch (1276:22): [True: 337, False: 1.06k]
  ------------------
 1277|  1.86k|        continue;
 1278|  1.86k|      }
 1279|       |      // Should never get in here. LensSpecFlags.mask should contain all the
 1280|       |      // bits in all the LensSpecFlags.flags.val_ entries
 1281|     12|      throw Error(ErrorCode::kerErrorMessage, "LensSpecFlags mask doesn't match the bits in the flags array");
 1282|  1.88k|    }
 1283|  3.33k|  }
 1284|    422|}
sonymn_int.cpp:_ZN5Exiv28InternalL14getMetaVersionEPKNS_8ExifDataERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  875|    737|static auto getMetaVersion(const ExifData* metadata, std::string& val) {
  876|    737|  const auto pos = metadata->findKey(ExifKey("Exif.SonySInfo1.MetaVersion"));
  877|       |
  878|    737|  if (pos != metadata->end() && pos->typeId() == asciiString) {
  ------------------
  |  Branch (878:7): [True: 448, False: 289]
  |  Branch (878:7): [True: 448, False: 289]
  |  Branch (878:33): [True: 448, False: 0]
  ------------------
  879|    448|    std::string temp = pos->toString();
  880|    448|    if (!temp.empty()) {
  ------------------
  |  Branch (880:9): [True: 376, False: 72]
  ------------------
  881|    376|      val = std::move(temp);
  882|    376|      return true;
  883|    376|    }
  884|    448|  }
  885|    361|  val = "";
  886|    361|  return false;
  887|    737|}
sonymn_int.cpp:_ZN5Exiv28InternalL13getFocusMode2EPKNS_8ExifDataERj:
  889|    154|static auto getFocusMode2(const ExifData* metadata, uint32_t& val) {
  890|    154|  auto pos = metadata->findKey(ExifKey("Exif.Sony1.FocusMode2"));
  891|       |
  892|    154|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (892:7): [True: 0, False: 154]
  |  Branch (892:7): [True: 0, False: 154]
  |  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|    154|  pos = metadata->findKey(ExifKey("Exif.Sony2.FocusMode2"));
  904|    154|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (904:7): [True: 135, False: 19]
  |  Branch (904:7): [True: 103, False: 51]
  |  Branch (904:33): [True: 117, False: 18]
  |  Branch (904:53): [True: 103, False: 14]
  ------------------
  905|    103|    std::ostringstream oss;
  906|    103|    pos->write(oss, metadata);
  907|    103|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|    103|#define _(String) (String)
  ------------------
  |  Branch (907:9): [True: 9, False: 94]
  ------------------
  908|      9|      val = 0;
  909|      9|      return false;
  910|      9|    }
  911|     94|    val = pos->toUint32(0);
  912|     94|    return true;
  913|    103|  }
  914|       |
  915|     51|  val = 0;
  916|     51|  return false;
  917|    154|}
sonymn_int.cpp:_ZN5Exiv28InternalL13sonyTagCipherEtPKhmPKNS0_13TiffComponentEb:
 2307|    671|                             bool bDecipher) {
 2308|    671|  DataBuf b(bytes, size);  // copy the data
 2309|       |
 2310|       |  // initialize the code table
 2311|    671|  byte code[256];
 2312|   167k|  for (uint32_t i = 0; i < 249; i++) {
  ------------------
  |  Branch (2312:24): [True: 167k, False: 671]
  ------------------
 2313|   167k|    if (bDecipher) {
  ------------------
  |  Branch (2313:9): [True: 159k, False: 7.96k]
  ------------------
 2314|   159k|      code[(i * i * i) % 249] = static_cast<byte>(i);
 2315|   159k|    } else {
 2316|  7.96k|      code[i] = (i * i * i) % 249;
 2317|  7.96k|    }
 2318|   167k|  }
 2319|  5.36k|  for (uint32_t i = 249; i < 256; i++) {
  ------------------
  |  Branch (2319:26): [True: 4.69k, False: 671]
  ------------------
 2320|  4.69k|    code[i] = static_cast<byte>(i);
 2321|  4.69k|  }
 2322|       |
 2323|       |  // code byte-by-byte
 2324|   830k|  for (uint32_t i = 0; i < size; i++) {
  ------------------
  |  Branch (2324:24): [True: 829k, False: 671]
  ------------------
 2325|   829k|    b.write_uint8(i, code[bytes[i]]);
 2326|   829k|  }
 2327|       |
 2328|    671|  return b;
 2329|    671|}

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

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

_ZN5Exiv28Internal10ifdTagListEv:
 1778|  2.01M|const TagInfo* ifdTagList() {
 1779|  2.01M|  return ifdTagInfo;
 1780|  2.01M|}
_ZN5Exiv28Internal11exifTagListEv:
 2216|  69.6k|const TagInfo* exifTagList() {
 2217|  69.6k|  return exifTagInfo;
 2218|  69.6k|}
_ZN5Exiv28Internal10gpsTagListEv:
 2432|  55.2k|const TagInfo* gpsTagList() {
 2433|  55.2k|  return gpsTagInfo;
 2434|  55.2k|}
_ZN5Exiv28Internal10mpfTagListEv:
 2481|    205|const TagInfo* mpfTagList() {
 2482|    205|  return mpfTagInfo;
 2483|    205|}
_ZN5Exiv28Internal10iopTagListEv:
 2507|  13.8k|const TagInfo* iopTagList() {
 2508|  13.8k|  return iopTagInfo;
 2509|  13.8k|}
_ZN5Exiv28Internal9mnTagListEv:
 2523|   168k|const TagInfo* mnTagList() {
 2524|   168k|  return mnTagInfo;
 2525|   168k|}
_ZN5Exiv28Internal10isMakerIfdENS_5IfdIdE:
 2527|  14.8M|bool isMakerIfd(IfdId ifdId) {
 2528|  14.8M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2528:12): [True: 14.8M, False: 0]
  ------------------
 2529|  14.8M|    return std::string_view("Makernote") == ii->ifdName_;
 2530|      0|  return false;
 2531|  14.8M|}
_ZN5Exiv28Internal9isExifIfdENS_5IfdIdE:
 2533|  16.5M|bool isExifIfd(IfdId ifdId) {
 2534|  16.5M|  switch (ifdId) {
 2535|   959k|    case IfdId::ifd0Id:
  ------------------
  |  Branch (2535:5): [True: 959k, False: 15.6M]
  ------------------
 2536|  1.00M|    case IfdId::exifId:
  ------------------
  |  Branch (2536:5): [True: 48.6k, False: 16.5M]
  ------------------
 2537|  1.05M|    case IfdId::gpsId:
  ------------------
  |  Branch (2537:5): [True: 42.4k, False: 16.5M]
  ------------------
 2538|  1.06M|    case IfdId::iopId:
  ------------------
  |  Branch (2538:5): [True: 11.8k, False: 16.5M]
  ------------------
 2539|  1.08M|    case IfdId::ifd1Id:
  ------------------
  |  Branch (2539:5): [True: 23.7k, False: 16.5M]
  ------------------
 2540|  1.09M|    case IfdId::ifd2Id:
  ------------------
  |  Branch (2540:5): [True: 9.46k, False: 16.5M]
  ------------------
 2541|  1.09M|    case IfdId::ifd3Id:
  ------------------
  |  Branch (2541:5): [True: 1.91k, False: 16.5M]
  ------------------
 2542|  1.09M|    case IfdId::mpfId:
  ------------------
  |  Branch (2542:5): [True: 0, False: 16.5M]
  ------------------
 2543|  1.23M|    case IfdId::subImage1Id:
  ------------------
  |  Branch (2543:5): [True: 138k, False: 16.4M]
  ------------------
 2544|  1.35M|    case IfdId::subImage2Id:
  ------------------
  |  Branch (2544:5): [True: 117k, False: 16.4M]
  ------------------
 2545|  1.45M|    case IfdId::subImage3Id:
  ------------------
  |  Branch (2545:5): [True: 101k, False: 16.4M]
  ------------------
 2546|  1.55M|    case IfdId::subImage4Id:
  ------------------
  |  Branch (2546:5): [True: 99.9k, False: 16.4M]
  ------------------
 2547|  1.57M|    case IfdId::subImage5Id:
  ------------------
  |  Branch (2547:5): [True: 18.9k, False: 16.5M]
  ------------------
 2548|  1.58M|    case IfdId::subImage6Id:
  ------------------
  |  Branch (2548:5): [True: 13.0k, False: 16.5M]
  ------------------
 2549|  1.60M|    case IfdId::subImage7Id:
  ------------------
  |  Branch (2549:5): [True: 16.5k, False: 16.5M]
  ------------------
 2550|  1.61M|    case IfdId::subImage8Id:
  ------------------
  |  Branch (2550:5): [True: 14.9k, False: 16.5M]
  ------------------
 2551|  1.63M|    case IfdId::subImage9Id:
  ------------------
  |  Branch (2551:5): [True: 15.8k, False: 16.5M]
  ------------------
 2552|  1.64M|    case IfdId::subThumb1Id:
  ------------------
  |  Branch (2552:5): [True: 10.2k, False: 16.5M]
  ------------------
 2553|  1.70M|    case IfdId::panaRawId:
  ------------------
  |  Branch (2553:5): [True: 64.5k, False: 16.5M]
  ------------------
 2554|  1.70M|      return true;
 2555|  14.8M|    default:
  ------------------
  |  Branch (2555:5): [True: 14.8M, False: 1.70M]
  ------------------
 2556|  14.8M|      return false;
 2557|  16.5M|  }
 2558|  16.5M|}
_ZN5Exiv28Internal7tagListENS_5IfdIdE:
 2568|  17.7M|const TagInfo* tagList(IfdId ifdId) {
 2569|  17.7M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2569:12): [True: 17.7M, False: 0]
  ------------------
 2570|  17.7M|    if (ii->tagList_)
  ------------------
  |  Branch (2570:9): [True: 17.7M, False: 0]
  ------------------
 2571|  17.7M|      return ii->tagList_();
 2572|      0|  return nullptr;
 2573|  17.7M|}  // tagList
_ZN5Exiv28Internal7tagInfoEtNS_5IfdIdE:
 2575|  17.2M|const TagInfo* tagInfo(uint16_t tag, IfdId ifdId) {
 2576|  17.2M|  if (auto ti = tagList(ifdId)) {
  ------------------
  |  Branch (2576:12): [True: 17.2M, False: 0]
  ------------------
 2577|  17.2M|    int idx = 0;
 2578|   775M|    for (idx = 0; ti[idx].tag_ != 0xffff; ++idx) {
  ------------------
  |  Branch (2578:19): [True: 760M, False: 14.9M]
  ------------------
 2579|   760M|      if (ti[idx].tag_ == tag)
  ------------------
  |  Branch (2579:11): [True: 2.33M, False: 758M]
  ------------------
 2580|  2.33M|        break;
 2581|   760M|    }
 2582|  17.2M|    return ti + idx;
 2583|  17.2M|  }
 2584|      0|  return nullptr;
 2585|  17.2M|}  // tagInfo
_ZN5Exiv28Internal7tagInfoERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5IfdIdE:
 2587|   494k|const TagInfo* tagInfo(const std::string& tagName, IfdId ifdId) {
 2588|   494k|  if (tagName.empty())
  ------------------
  |  Branch (2588:7): [True: 0, False: 494k]
  ------------------
 2589|      0|    return nullptr;
 2590|   494k|  if (auto ti = tagList(ifdId)) {
  ------------------
  |  Branch (2590:12): [True: 494k, False: 0]
  ------------------
 2591|  24.3M|    for (int idx = 0; ti[idx].tag_ != 0xffff; ++idx) {
  ------------------
  |  Branch (2591:23): [True: 24.3M, False: 30.1k]
  ------------------
 2592|  24.3M|      if (tagName == ti[idx].name_) {
  ------------------
  |  Branch (2592:11): [True: 463k, False: 23.8M]
  ------------------
 2593|   463k|        return ti + idx;
 2594|   463k|      }
 2595|  24.3M|    }
 2596|   494k|  }
 2597|  30.1k|  return nullptr;
 2598|   494k|}  // tagInfo
_ZN5Exiv28Internal7groupIdERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 2600|  18.9M|IfdId groupId(const std::string& groupName) {
 2601|  18.9M|  if (auto ii = Exiv2::find(groupInfo, groupName))
  ------------------
  |  Branch (2601:12): [True: 18.9M, False: 0]
  ------------------
 2602|  18.9M|    return IfdId{ii->ifdId_};
 2603|      0|  return IfdId::ifdIdNotSet;
 2604|  18.9M|}
_ZN5Exiv28Internal9groupNameENS_5IfdIdE:
 2612|  16.0M|const char* groupName(IfdId ifdId) {
 2613|  16.0M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2613:12): [True: 16.0M, False: 0]
  ------------------
 2614|  16.0M|    return ii->groupName_;
 2615|      0|  return groupInfo[0].groupName_;
 2616|  16.0M|}
_ZN5Exiv28Internal10printValueERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2618|   273k|std::ostream& printValue(std::ostream& os, const Value& value, const ExifData*) {
 2619|   273k|  return os << value;
 2620|   273k|}
_ZN5Exiv28Internal12printBitmaskERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2622|  1.84k|std::ostream& printBitmask(std::ostream& os, const Value& value, const ExifData* metadata) {
 2623|  1.84k|  if (value.typeId() == Exiv2::unsignedShort || value.typeId() == Exiv2::signedShort) {
  ------------------
  |  Branch (2623:7): [True: 464, False: 1.37k]
  |  Branch (2623:49): [True: 990, False: 386]
  ------------------
 2624|  1.45k|    uint16_t bit = 0;
 2625|  1.45k|    uint16_t comma = 0;
 2626|  7.36M|    for (size_t i = 0; i < value.count(); i++) {  // for each element in value array
  ------------------
  |  Branch (2626:24): [True: 7.36M, False: 1.45k]
  ------------------
 2627|  7.36M|      auto bits = static_cast<uint16_t>(value.toInt64(i));
 2628|   125M|      for (uint16_t b = 0; b < 16; ++b) {  // for every bit
  ------------------
  |  Branch (2628:28): [True: 117M, False: 7.36M]
  ------------------
 2629|   117M|        if (bits & (1 << b)) {
  ------------------
  |  Branch (2629:13): [True: 102M, False: 14.9M]
  ------------------
 2630|   102M|          if (comma++) {
  ------------------
  |  Branch (2630:15): [True: 102M, False: 2.93k]
  ------------------
 2631|   102M|            os << ",";
 2632|   102M|          }
 2633|   102M|          os << bit;
 2634|   102M|        }
 2635|   117M|        bit++;
 2636|   117M|      }
 2637|  7.36M|    }
 2638|       |    // if no bits are set, print "(none)"
 2639|  1.45k|    if (!comma)
  ------------------
  |  Branch (2639:9): [True: 64, False: 1.39k]
  ------------------
 2640|     64|      os << N_("(none)");
  ------------------
  |  |   41|     64|#define N_(String) String
  ------------------
 2641|  1.45k|  } else {
 2642|    386|    printValue(os, value, metadata);
 2643|    386|  }
 2644|  1.84k|  return os;
 2645|  1.84k|}
_ZN5Exiv28Internal7fnumberEf:
 2647|  10.6k|float fnumber(float apertureValue) {
 2648|  10.6k|  float result = std::exp2(apertureValue / 2.F);
 2649|  10.6k|  if (std::abs(result - 3.5F) < 0.1F) {
  ------------------
  |  Branch (2649:7): [True: 130, False: 10.4k]
  ------------------
 2650|    130|    result = 3.5F;
 2651|    130|  }
 2652|  10.6k|  return result;
 2653|  10.6k|}
_ZN5Exiv28Internal12exposureTimeEf:
 2655|  1.65k|URational exposureTime(float shutterSpeedValue) {
 2656|  1.65k|  URational ur(1, 1);
 2657|  1.65k|  const double tmp = std::exp2(shutterSpeedValue);
 2658|  1.65k|  if (tmp > 1) {
  ------------------
  |  Branch (2658:7): [True: 1.10k, False: 544]
  ------------------
 2659|  1.10k|    const double x = std::round(tmp);
 2660|       |    // Check that x is within the range of a uint32_t before casting.
 2661|  1.10k|    if (x <= std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (2661:9): [True: 600, False: 506]
  ------------------
 2662|    600|      ur.second = static_cast<uint32_t>(x);
 2663|    600|    }
 2664|  1.10k|  } else {
 2665|    544|    const double x = std::round(1 / tmp);
 2666|       |    // Check that x is within the range of a uint32_t before casting.
 2667|    544|    if (0 <= x && x <= std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (2667:9): [True: 544, False: 0]
  |  Branch (2667:19): [True: 406, False: 138]
  ------------------
 2668|    406|      ur.first = static_cast<uint32_t>(x);
 2669|    406|    }
 2670|    544|  }
 2671|  1.65k|  return ur;
 2672|  1.65k|}
_ZN5Exiv28Internal9tagNumberERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5IfdIdE:
 2674|   494k|uint16_t tagNumber(const std::string& tagName, IfdId ifdId) {
 2675|   494k|  auto ti = tagInfo(tagName, ifdId);
 2676|   494k|  if (ti && ti->tag_ != 0xffff)
  ------------------
  |  Branch (2676:7): [True: 463k, False: 30.1k]
  |  Branch (2676:13): [True: 463k, False: 0]
  ------------------
 2677|   463k|    return ti->tag_;
 2678|  30.1k|  if (!isHex(tagName, 4, "0x"))
  ------------------
  |  Branch (2678:7): [True: 0, False: 30.1k]
  ------------------
 2679|      0|    throw Error(ErrorCode::kerInvalidTag, tagName, ifdId);
 2680|  30.1k|  return static_cast<uint16_t>(std::stoi(tagName, nullptr, 16));
 2681|  30.1k|}  // tagNumber
_ZN5Exiv28Internal10printInt64ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2683|  1.89k|std::ostream& printInt64(std::ostream& os, const Value& value, const ExifData*) {
 2684|  1.89k|  Rational r = value.toRational();
 2685|  1.89k|  if (r.second > 0)
  ------------------
  |  Branch (2685:7): [True: 1.77k, False: 118]
  ------------------
 2686|  1.77k|    return os << static_cast<int64_t>(r.first) / r.second;
 2687|    118|  return os << "(" << value << ")";
 2688|  1.89k|}  // printLong
_ZN5Exiv28Internal10printFloatERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2690|  1.59k|std::ostream& printFloat(std::ostream& os, const Value& value, const ExifData*) {
 2691|  1.59k|  Rational r = value.toRational();
 2692|  1.59k|  if (r.second != 0) {
  ------------------
  |  Branch (2692:7): [True: 1.51k, False: 84]
  ------------------
 2693|  1.51k|    os << value.toFloat();
 2694|  1.51k|  } else {
 2695|     84|    os << "(" << value << ")";
 2696|     84|  }
 2697|  1.59k|  return os;
 2698|  1.59k|}  // printFloat
_ZN5Exiv28Internal12printDegreesERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2700|  1.17k|std::ostream& printDegrees(std::ostream& os, const Value& value, const ExifData*) {
 2701|  1.17k|  std::ios::fmtflags f(os.flags());
 2702|  1.17k|  if (value.count() == 3) {
  ------------------
  |  Branch (2702:7): [True: 910, False: 262]
  ------------------
 2703|    910|    Rational deg = value.toRational(0);
 2704|    910|    Rational min = value.toRational(1);
 2705|    910|    Rational sec = value.toRational(2);
 2706|    910|    if ((deg.second != 1) || (min.second <= 0) || (sec.second <= 0)) {
  ------------------
  |  Branch (2706:9): [True: 226, False: 684]
  |  Branch (2706:30): [True: 142, False: 542]
  |  Branch (2706:51): [True: 196, False: 346]
  ------------------
 2707|    564|      return os << "(" << value << ")";
 2708|    564|    }
 2709|    346|    const int32_t dd = deg.first;
 2710|    346|    const int32_t mm = min.first / min.second;
 2711|    346|    const int32_t rem = min.first % min.second;
 2712|    346|    if ((min.second > 1) && (rem > 0)) {
  ------------------
  |  Branch (2712:9): [True: 128, False: 218]
  |  Branch (2712:29): [True: 102, False: 26]
  ------------------
 2713|    102|      if ((sec.first == 0) && (sec.second == 1) && (rem <= std::numeric_limits<int32_t>::max() / 60)) {
  ------------------
  |  Branch (2713:11): [True: 38, False: 64]
  |  Branch (2713:31): [True: 32, False: 6]
  |  Branch (2713:52): [True: 28, False: 4]
  ------------------
 2714|     28|        sec.first = 60 * rem;
 2715|     28|        sec.second = min.second;
 2716|     74|      } else {
 2717|     74|        return os << "(" << value << ")";
 2718|     74|      }
 2719|    102|    }
 2720|    272|    const float ss = static_cast<float>(sec.first) / sec.second;
 2721|    272|    os << dd << " deg ";
 2722|    272|    os << mm << "' ";
 2723|    272|    std::ostringstream oss;
 2724|    272|    oss.copyfmt(os);
 2725|    272|    os << std::fixed << std::setprecision(sec.second > 1 ? 2 : 0) << ss << "\"";
  ------------------
  |  Branch (2725:43): [True: 54, False: 218]
  ------------------
 2726|    272|    os.copyfmt(oss);
 2727|    272|  } else {
 2728|    262|    os << "(" << value << ")";
 2729|    262|  }
 2730|    534|  os.flags(f);
 2731|    534|  return os;
 2732|  1.17k|}  // printDegrees
_ZN5Exiv28Internal9printUcs2ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2734|    802|std::ostream& printUcs2(std::ostream& os, const Value& value, const ExifData*) {
 2735|    802|  bool cnv = false;
 2736|    802|  if (value.typeId() == unsignedByte && value.size() > 0) {
  ------------------
  |  Branch (2736:7): [True: 612, False: 190]
  |  Branch (2736:41): [True: 612, False: 0]
  ------------------
 2737|    612|    DataBuf buf(value.size());
 2738|    612|    value.copy(buf.data(), invalidByteOrder);
 2739|       |    // Strip trailing odd byte due to failing UCS-2 conversion
 2740|    612|    if (buf.size() % 2 == 1) {
  ------------------
  |  Branch (2740:9): [True: 272, False: 340]
  ------------------
 2741|    272|      buf.resize(buf.size() - 1);
 2742|    272|    }
 2743|       |
 2744|       |    // Strip trailing UCS-2 0-characters
 2745|  2.06k|    while (buf.size() >= 2) {
  ------------------
  |  Branch (2745:12): [True: 1.98k, False: 74]
  ------------------
 2746|  1.98k|      if (buf.read_uint8(buf.size() - 1) != 0 || buf.read_uint8(buf.size() - 2) != 0)
  ------------------
  |  Branch (2746:11): [True: 358, False: 1.62k]
  |  Branch (2746:50): [True: 180, False: 1.44k]
  ------------------
 2747|    538|        break;
 2748|  1.44k|      buf.resize(buf.size() - 2);
 2749|  1.44k|    }
 2750|       |
 2751|    612|    std::string str(buf.c_str(), buf.size());
 2752|    612|    cnv = convertStringCharset(str, "UCS-2LE", "UTF-8");
 2753|    612|    if (cnv)
  ------------------
  |  Branch (2753:9): [True: 554, False: 58]
  ------------------
 2754|    554|      os << str;
 2755|    612|  }
 2756|    802|  if (!cnv)
  ------------------
  |  Branch (2756:7): [True: 248, False: 554]
  ------------------
 2757|    248|    os << value;
 2758|    802|  return os;
 2759|    802|}
_ZN5Exiv28Internal13printExifUnitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2761|    410|std::ostream& printExifUnit(std::ostream& os, const Value& value, const ExifData* metadata) {
 2762|    410|  return EXV_PRINT_TAG(exifUnit)(os, value, metadata);
  ------------------
  |  |  199|    410|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2763|    410|}
_ZN5Exiv28Internal22printLensSpecificationERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2765|  1.13k|std::ostream& printLensSpecification(std::ostream& os, const Value& value, const ExifData*) {
 2766|  1.13k|  std::ios::fmtflags f(os.flags());
 2767|       |  // check type and count of values
 2768|  1.13k|  if (value.typeId() != unsignedRational || value.count() != 4 ||
  ------------------
  |  Branch (2768:7): [True: 34, False: 1.09k]
  |  Branch (2768:7): [True: 268, False: 862]
  |  Branch (2768:45): [True: 10, False: 1.08k]
  ------------------
 2769|       |      // divisor may be zero only if dividend is not zero
 2770|  1.08k|      (value.toRational(0).first != 0 && value.toRational(0).second == 0) ||
  ------------------
  |  Branch (2770:8): [True: 900, False: 186]
  |  Branch (2770:42): [True: 94, False: 806]
  ------------------
 2771|    992|      (value.toRational(1).first != 0 && value.toRational(1).second == 0) ||
  ------------------
  |  Branch (2771:8): [True: 672, False: 320]
  |  Branch (2771:42): [True: 30, False: 642]
  ------------------
 2772|    962|      (value.toRational(2).first != 0 && value.toRational(2).second == 0) ||
  ------------------
  |  Branch (2772:8): [True: 728, False: 234]
  |  Branch (2772:42): [True: 34, False: 694]
  ------------------
 2773|    928|      (value.toRational(3).first != 0 && value.toRational(3).second == 0)) {
  ------------------
  |  Branch (2773:8): [True: 760, False: 168]
  |  Branch (2773:42): [True: 66, False: 694]
  ------------------
 2774|    268|    return os << "(" << value << ")";
 2775|    268|  }
 2776|       |  // values numerically are ok, so they can be converted
 2777|       |  // here first and second can be zero, so initialise float with 0.0f
 2778|    862|  float focalLength1 = 0.0f;
 2779|    862|  if (value.toRational(0).first != 0)
  ------------------
  |  Branch (2779:7): [True: 692, False: 170]
  ------------------
 2780|    692|    focalLength1 = value.toFloat(0);
 2781|    862|  float focalLength2 = 0.0f;
 2782|    862|  if (value.toRational(1).first != 0)
  ------------------
  |  Branch (2782:7): [True: 564, False: 298]
  ------------------
 2783|    564|    focalLength2 = value.toFloat(1);
 2784|    862|  float fNumber1 = 0.0f;
 2785|    862|  if (value.toRational(2).first != 0)
  ------------------
  |  Branch (2785:7): [True: 646, False: 216]
  ------------------
 2786|    646|    fNumber1 = value.toFloat(2);
 2787|    862|  float fNumber2 = 0.0f;
 2788|    862|  if (value.toRational(3).first != 0)
  ------------------
  |  Branch (2788:7): [True: 694, False: 168]
  ------------------
 2789|    694|    fNumber2 = value.toFloat(3);
 2790|       |
 2791|       |  // first value must not be bigger than second
 2792|    862|  if ((std::isgreater(focalLength1, focalLength2) && std::isgreater(focalLength2, 0.0f)) ||
  ------------------
  |  Branch (2792:8): [True: 330, False: 532]
  |  Branch (2792:54): [True: 150, False: 180]
  ------------------
 2793|    712|      (std::isgreater(fNumber1, fNumber2) && std::isgreater(fNumber2, 0.0f))) {
  ------------------
  |  Branch (2793:8): [True: 242, False: 470]
  |  Branch (2793:46): [True: 190, False: 52]
  ------------------
 2794|    340|    return os << "(" << value << ")";
 2795|    340|  }
 2796|       |
 2797|       |  // no lens specification available
 2798|    522|  if (focalLength1 == 0.0f && focalLength2 == 0.0f && fNumber1 == 0.0f && fNumber2 == 0.0f)
  ------------------
  |  Branch (2798:7): [True: 168, False: 354]
  |  Branch (2798:31): [True: 118, False: 50]
  |  Branch (2798:55): [True: 80, False: 38]
  |  Branch (2798:75): [True: 36, False: 44]
  ------------------
 2799|     36|    return os << _("n/a");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
 2800|       |
 2801|       |  // lens specification available - at least parts
 2802|    486|  if (focalLength1 == 0.0f)
  ------------------
  |  Branch (2802:7): [True: 132, False: 354]
  ------------------
 2803|    132|    os << _("n/a");
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
 2804|    354|  else
 2805|    354|    os << std::setprecision(5) << focalLength1;
 2806|    486|  if (focalLength1 != focalLength2) {
  ------------------
  |  Branch (2806:7): [True: 322, False: 164]
  ------------------
 2807|    322|    if (focalLength2 == 0.0f)
  ------------------
  |  Branch (2807:9): [True: 170, False: 152]
  ------------------
 2808|    170|      os << "-n/a ";
 2809|    152|    else
 2810|    152|      os << "-" << std::setprecision(5) << focalLength2;
 2811|    322|  }
 2812|    486|  os << "mm";
 2813|    486|  std::ostringstream oss;
 2814|    486|  oss.copyfmt(os);
 2815|       |
 2816|    486|  if (std::isgreater(fNumber1, 0.0f) || std::isgreater(fNumber2, 0.0f)) {
  ------------------
  |  Branch (2816:7): [True: 308, False: 178]
  |  Branch (2816:41): [True: 104, False: 74]
  ------------------
 2817|    412|    os << " F";
 2818|    412|    if (fNumber1 == 0.0f)
  ------------------
  |  Branch (2818:9): [True: 104, False: 308]
  ------------------
 2819|    104|      os << " n/a";
 2820|    308|    else
 2821|    308|      os << std::setprecision(2) << fNumber1;
 2822|    412|    if (fNumber1 != fNumber2) {
  ------------------
  |  Branch (2822:9): [True: 292, False: 120]
  ------------------
 2823|    292|      if (fNumber2 == 0.0f)
  ------------------
  |  Branch (2823:11): [True: 52, False: 240]
  ------------------
 2824|     52|        os << "-n/a";
 2825|    240|      else
 2826|    240|        os << "-" << std::setprecision(2) << fNumber2;
 2827|    292|    }
 2828|    412|  }
 2829|    486|  os.copyfmt(oss);
 2830|    486|  os.flags(f);
 2831|    486|  return os;
 2832|    522|}
_ZN5Exiv28Internal11print0x0000ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2834|  1.28k|std::ostream& print0x0000(std::ostream& os, const Value& value, const ExifData*) {
 2835|  1.28k|  if (value.size() != 4 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (2835:7): [True: 1.18k, False: 98]
  |  Branch (2835:28): [True: 66, False: 32]
  ------------------
 2836|  1.25k|    return os << value;
 2837|  1.25k|  }
 2838|       |
 2839|    128|  for (int i = 0; i < 3; i++) {
  ------------------
  |  Branch (2839:19): [True: 96, False: 32]
  ------------------
 2840|     96|    os << value.toInt64(i);
 2841|     96|    os << ".";
 2842|     96|  }
 2843|     32|  os << value.toInt64(3);
 2844|       |
 2845|     32|  return os;
 2846|  1.28k|}
_ZN5Exiv28Internal11print0x0005ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2848|    184|std::ostream& print0x0005(std::ostream& os, const Value& value, const ExifData* metadata) {
 2849|    184|  return EXV_PRINT_TAG(exifGPSAltitudeRef)(os, value, metadata);
  ------------------
  |  |  199|    184|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2850|    184|}
_ZN5Exiv28Internal11print0x0006ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2852|    386|std::ostream& print0x0006(std::ostream& os, const Value& value, const ExifData*) {
 2853|    386|  std::ios::fmtflags f(os.flags());
 2854|    386|  std::ostringstream oss;
 2855|    386|  oss.copyfmt(os);
 2856|    386|  const int32_t d = value.toRational().second;
 2857|    386|  if (d == 0)
  ------------------
  |  Branch (2857:7): [True: 22, False: 364]
  ------------------
 2858|     22|    return os << "(" << value << ")";
 2859|    364|  const int p = d > 1 ? 1 : 0;
  ------------------
  |  Branch (2859:17): [True: 136, False: 228]
  ------------------
 2860|    364|  os << std::fixed << std::setprecision(p) << value.toFloat() << " m";
 2861|    364|  os.copyfmt(oss);
 2862|       |
 2863|    364|  os.flags(f);
 2864|    364|  return os;
 2865|    386|}
_ZN5Exiv28Internal11print0x0007ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2867|    716|std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*) {
 2868|    716|  std::ios::fmtflags f(os.flags());
 2869|    716|  if (value.count() == 3) {
  ------------------
  |  Branch (2869:7): [True: 512, False: 204]
  ------------------
 2870|  1.64k|    for (int i = 0; i < 3; ++i) {
  ------------------
  |  Branch (2870:21): [True: 1.31k, False: 336]
  ------------------
 2871|  1.31k|      if (value.toRational(i).second == 0) {
  ------------------
  |  Branch (2871:11): [True: 176, False: 1.13k]
  ------------------
 2872|    176|        return os << "(" << value << ")";
 2873|    176|      }
 2874|  1.31k|    }
 2875|    336|    std::ostringstream oss;
 2876|    336|    oss.copyfmt(os);
 2877|    336|    const double t = (3600.0 * value.toInt64(0)) + (60.0 * value.toInt64(1)) + value.toFloat(2);
 2878|    336|    enforce<std::overflow_error>(std::isfinite(t), "Non-finite time value");
 2879|    336|    int p = 0;
 2880|    336|    const double fraction = std::fmod(t, 1);
 2881|    336|    if (fraction != 0)
  ------------------
  |  Branch (2881:9): [True: 218, False: 118]
  ------------------
 2882|    218|      p = 1;
 2883|    336|    const double ss = std::fmod(t, 60);
 2884|    336|    const double minutes = (t - ss) / 60;
 2885|    336|    const auto mm = static_cast<int>(std::fmod(minutes, 60));
 2886|    336|    const double hours = (minutes - mm) / 60;
 2887|    336|    const auto hh = static_cast<int>(std::fmod(hours, 24));
 2888|       |
 2889|    336|    os << std::setw(2) << std::setfill('0') << std::right << hh << ":" << std::setw(2) << std::setfill('0')
 2890|    336|       << std::right << mm << ":" << std::setw(2 + (p * 2)) << std::setfill('0') << std::right << std::fixed
 2891|    336|       << std::setprecision(p) << ss;
 2892|       |
 2893|    336|    os.copyfmt(oss);
 2894|    336|  } else {
 2895|    204|    os << value;
 2896|    204|  }
 2897|       |
 2898|    540|  os.flags(f);
 2899|    540|  return os;
 2900|    716|}
_ZN5Exiv28Internal11print0x0009ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2902|    110|std::ostream& print0x0009(std::ostream& os, const Value& value, const ExifData* metadata) {
 2903|    110|  return EXV_PRINT_TAG(exifGPSStatus)(os, value, metadata);
  ------------------
  |  |  199|    110|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2904|    110|}
_ZN5Exiv28Internal11print0x000aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2906|     60|std::ostream& print0x000a(std::ostream& os, const Value& value, const ExifData* metadata) {
 2907|     60|  return EXV_PRINT_TAG(exifGPSMeasureMode)(os, value, metadata);
  ------------------
  |  |  199|     60|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2908|     60|}
_ZN5Exiv28Internal11print0x000cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2910|    200|std::ostream& print0x000c(std::ostream& os, const Value& value, const ExifData* metadata) {
 2911|    200|  return EXV_PRINT_TAG(exifGPSSpeedRef)(os, value, metadata);
  ------------------
  |  |  199|    200|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2912|    200|}
_ZN5Exiv28Internal11print0x0019ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2914|    174|std::ostream& print0x0019(std::ostream& os, const Value& value, const ExifData* metadata) {
 2915|    174|  return EXV_PRINT_TAG(exifGPSDestDistanceRef)(os, value, metadata);
  ------------------
  |  |  199|    174|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2916|    174|}
_ZN5Exiv28Internal11print0x001eERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2918|    136|std::ostream& print0x001e(std::ostream& os, const Value& value, const ExifData* metadata) {
 2919|    136|  return EXV_PRINT_TAG(exifGPSDifferential)(os, value, metadata);
  ------------------
  |  |  199|    136|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2920|    136|}
_ZN5Exiv28Internal11print0x0112ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2922|  1.14k|std::ostream& print0x0112(std::ostream& os, const Value& value, const ExifData* metadata) {
 2923|  1.14k|  return EXV_PRINT_TAG(exifOrientation)(os, value, metadata);
  ------------------
  |  |  199|  1.14k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2924|  1.14k|}
_ZN5Exiv28Internal11print0x0213ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2931|    290|std::ostream& print0x0213(std::ostream& os, const Value& value, const ExifData* metadata) {
 2932|    290|  return EXV_PRINT_TAG(exifYCbCrPositioning)(os, value, metadata);
  ------------------
  |  |  199|    290|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2933|    290|}
_ZN5Exiv28Internal11print0x8298ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2935|    182|std::ostream& print0x8298(std::ostream& os, const Value& value, const ExifData*) {
 2936|       |  // Print the copyright information in the format Photographer, Editor
 2937|    182|  std::string val = value.toString();
 2938|    182|  std::string::size_type pos = val.find('\0');
 2939|    182|  if (pos != std::string::npos) {
  ------------------
  |  Branch (2939:7): [True: 0, False: 182]
  ------------------
 2940|      0|    std::string photographer(val, 0, pos);
 2941|      0|    if (photographer != " ")
  ------------------
  |  Branch (2941:9): [True: 0, False: 0]
  ------------------
 2942|      0|      os << photographer;
 2943|      0|    std::string editor(val, pos + 1);
 2944|      0|    if (!editor.empty()) {
  ------------------
  |  Branch (2944:9): [True: 0, False: 0]
  ------------------
 2945|      0|      if (photographer != " ")
  ------------------
  |  Branch (2945:11): [True: 0, False: 0]
  ------------------
 2946|      0|        os << ", ";
 2947|      0|      os << editor;
 2948|      0|    }
 2949|    182|  } else {
 2950|    182|    os << val;
 2951|    182|  }
 2952|    182|  return os;
 2953|    182|}
_ZN5Exiv28Internal11print0x829aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2955|    476|std::ostream& print0x829a(std::ostream& os, const Value& value, const ExifData*) {
 2956|    476|  if (value.count() == 0)
  ------------------
  |  Branch (2956:7): [True: 0, False: 476]
  ------------------
 2957|      0|    return os;
 2958|    476|  if (value.typeId() != unsignedRational)
  ------------------
  |  Branch (2958:7): [True: 46, False: 430]
  ------------------
 2959|     46|    return os << "(" << value << ")";
 2960|       |
 2961|    430|  using Exiv2::operator<<;
 2962|    430|  URational t = value.toRational();
 2963|    430|  if (t.first == 0 || t.second == 0) {
  ------------------
  |  Branch (2963:7): [True: 74, False: 356]
  |  Branch (2963:23): [True: 66, False: 290]
  ------------------
 2964|    140|    os << "(" << t << ")";
 2965|    290|  } else if (t.second == t.first) {
  ------------------
  |  Branch (2965:14): [True: 24, False: 266]
  ------------------
 2966|     24|    os << "1 s";
 2967|    266|  } else if (t.second % t.first == 0) {
  ------------------
  |  Branch (2967:14): [True: 144, False: 122]
  ------------------
 2968|    144|    t.second = t.second / t.first;
 2969|    144|    t.first = 1;
 2970|    144|    os << t << " s";
 2971|    144|  } else {
 2972|    122|    os << static_cast<float>(t.first) / t.second << " s";
 2973|    122|  }
 2974|    430|  return os;
 2975|    476|}
_ZN5Exiv28Internal11print0x829dERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2977|    320|std::ostream& print0x829d(std::ostream& os, const Value& value, const ExifData*) {
 2978|    320|  Rational fnumber = value.toRational();
 2979|    320|  if (fnumber.second != 0)
  ------------------
  |  Branch (2979:7): [True: 242, False: 78]
  ------------------
 2980|    242|    return os << stringFormat("F{:.2g}", static_cast<float>(fnumber.first) / fnumber.second);
  ------------------
  |  |   18|    242|#define stringFormat std::format
  ------------------
 2981|     78|  return os << "(" << value << ")";
 2982|    320|}
_ZN5Exiv28Internal11print0x8822ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2991|    890|std::ostream& print0x8822(std::ostream& os, const Value& value, const ExifData* metadata) {
 2992|    890|  return EXV_PRINT_TAG(exifExposureProgram)(os, value, metadata);
  ------------------
  |  |  199|    890|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2993|    890|}
_ZN5Exiv28Internal11print0x8827ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2995|    230|std::ostream& print0x8827(std::ostream& os, const Value& value, const ExifData*) {
 2996|    230|  return os << value.toInt64();
 2997|    230|}
_ZN5Exiv28Internal11print0x9101ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2999|    214|std::ostream& print0x9101(std::ostream& os, const Value& value, const ExifData*) {
 3000|   151k|  for (size_t i = 0; i < value.count(); ++i) {
  ------------------
  |  Branch (3000:22): [True: 151k, False: 214]
  ------------------
 3001|   151k|    const auto l = value.toInt64(i);
 3002|   151k|    switch (l) {
 3003|  77.5k|      case 0:
  ------------------
  |  Branch (3003:7): [True: 77.5k, False: 73.8k]
  ------------------
 3004|  77.5k|        break;
 3005|  5.73k|      case 1:
  ------------------
  |  Branch (3005:7): [True: 5.73k, False: 145k]
  ------------------
 3006|  5.73k|        os << "Y";
 3007|  5.73k|        break;
 3008|  3.99k|      case 2:
  ------------------
  |  Branch (3008:7): [True: 3.99k, False: 147k]
  ------------------
 3009|  3.99k|        os << "Cb";
 3010|  3.99k|        break;
 3011|  4.30k|      case 3:
  ------------------
  |  Branch (3011:7): [True: 4.30k, False: 147k]
  ------------------
 3012|  4.30k|        os << "Cr";
 3013|  4.30k|        break;
 3014|  1.97k|      case 4:
  ------------------
  |  Branch (3014:7): [True: 1.97k, False: 149k]
  ------------------
 3015|  1.97k|        os << "R";
 3016|  1.97k|        break;
 3017|  1.75k|      case 5:
  ------------------
  |  Branch (3017:7): [True: 1.75k, False: 149k]
  ------------------
 3018|  1.75k|        os << "G";
 3019|  1.75k|        break;
 3020|  1.02k|      case 6:
  ------------------
  |  Branch (3020:7): [True: 1.02k, False: 150k]
  ------------------
 3021|  1.02k|        os << "B";
 3022|  1.02k|        break;
 3023|  55.1k|      default:
  ------------------
  |  Branch (3023:7): [True: 55.1k, False: 96.2k]
  ------------------
 3024|  55.1k|        os << "(" << l << ")";
 3025|  55.1k|        break;
 3026|   151k|    }
 3027|   151k|  }
 3028|    214|  return os;
 3029|    214|}
_ZN5Exiv28Internal11print0x9201ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3031|  1.00k|std::ostream& print0x9201(std::ostream& os, const Value& value, const ExifData*) {
 3032|  1.00k|  Rational r = value.toRational();
 3033|  1.00k|  if (!value.ok() || r.second == 0)
  ------------------
  |  Branch (3033:7): [True: 0, False: 1.00k]
  |  Branch (3033:22): [True: 60, False: 944]
  ------------------
 3034|     60|    return os << "(" << value << ")";
 3035|       |
 3036|    944|  URational ur = exposureTime(static_cast<float>(r.first) / r.second);
 3037|    944|  os << ur.first;
 3038|    944|  if (ur.second > 1) {
  ------------------
  |  Branch (3038:7): [True: 320, False: 624]
  ------------------
 3039|    320|    os << "/" << ur.second;
 3040|    320|  }
 3041|    944|  return os << " s";
 3042|  1.00k|}
_ZN5Exiv28Internal11print0x9202ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3044|    918|std::ostream& print0x9202(std::ostream& os, const Value& value, const ExifData*) {
 3045|    918|  if (value.count() == 0 || value.toRational().second == 0)
  ------------------
  |  Branch (3045:7): [True: 0, False: 918]
  |  Branch (3045:7): [True: 120, False: 798]
  |  Branch (3045:29): [True: 120, False: 798]
  ------------------
 3046|    120|    return os << "(" << value << ")";
 3047|    798|  return os << stringFormat("F{:.2g}", fnumber(value.toFloat()));
  ------------------
  |  |   18|    798|#define stringFormat std::format
  ------------------
 3048|    918|}
_ZN5Exiv28Internal11print0x9204ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3050|    800|std::ostream& print0x9204(std::ostream& os, const Value& value, const ExifData*) {
 3051|    800|  Rational bias = value.toRational();
 3052|       |
 3053|    800|  if (bias.first == 0 || bias.first == std::numeric_limits<std::int32_t>::min()) {
  ------------------
  |  Branch (3053:7): [True: 86, False: 714]
  |  Branch (3053:26): [True: 22, False: 692]
  ------------------
 3054|    108|    os << "0 EV";
 3055|    692|  } else if (bias.second <= 0) {
  ------------------
  |  Branch (3055:14): [True: 62, False: 630]
  ------------------
 3056|     62|    os << "(" << bias.first << "/" << bias.second << ")";
 3057|    630|  } else {
 3058|    630|    int32_t d = std::gcd(bias.first, bias.second);
 3059|    630|    int32_t num = std::abs(bias.first) / d;
 3060|    630|    int32_t den = bias.second / d;
 3061|    630|    os << (bias.first < 0 ? "-" : "+") << num;
  ------------------
  |  Branch (3061:12): [True: 140, False: 490]
  ------------------
 3062|    630|    if (den != 1) {
  ------------------
  |  Branch (3062:9): [True: 328, False: 302]
  ------------------
 3063|    328|      os << "/" << den;
 3064|    328|    }
 3065|    630|    os << " EV";
 3066|    630|  }
 3067|    800|  return os;
 3068|    800|}
_ZN5Exiv28Internal11print0x9206ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3070|    272|std::ostream& print0x9206(std::ostream& os, const Value& value, const ExifData*) {
 3071|    272|  Rational distance = value.toRational();
 3072|    272|  if (distance.first == 0)
  ------------------
  |  Branch (3072:7): [True: 24, False: 248]
  ------------------
 3073|     24|    return os << _("Unknown");
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
 3074|    248|  if (static_cast<uint32_t>(distance.first) == std::numeric_limits<uint32_t>::max())
  ------------------
  |  Branch (3074:7): [True: 30, False: 218]
  ------------------
 3075|     30|    return os << _("Infinity");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 3076|    218|  if (distance.second != 0)
  ------------------
  |  Branch (3076:7): [True: 182, False: 36]
  ------------------
 3077|    182|    return os << stringFormat("{:.2f} m", static_cast<float>(distance.first) / distance.second);
  ------------------
  |  |   18|    182|#define stringFormat std::format
  ------------------
 3078|     36|  return os << "(" << value << ")";
 3079|    218|}
_ZN5Exiv28Internal11print0x9207ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3088|  2.85k|std::ostream& print0x9207(std::ostream& os, const Value& value, const ExifData* metadata) {
 3089|  2.85k|  return EXV_PRINT_TAG(exifMeteringMode)(os, value, metadata);
  ------------------
  |  |  199|  2.85k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3090|  2.85k|}
_ZN5Exiv28Internal11print0x9208ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3092|  2.59k|std::ostream& print0x9208(std::ostream& os, const Value& value, const ExifData* metadata) {
 3093|  2.59k|  return EXV_PRINT_TAG(exifLightSource)(os, value, metadata);
  ------------------
  |  |  199|  2.59k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3094|  2.59k|}
_ZN5Exiv28Internal11print0x920aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3096|    810|std::ostream& print0x920a(std::ostream& os, const Value& value, const ExifData*) {
 3097|    810|  Rational length = value.toRational();
 3098|    810|  if (length.second != 0)
  ------------------
  |  Branch (3098:7): [True: 702, False: 108]
  ------------------
 3099|    702|    return os << stringFormat("{:.1f} mm", static_cast<float>(length.first) / length.second);
  ------------------
  |  |   18|    702|#define stringFormat std::format
  ------------------
 3100|    108|  return os << "(" << value << ")";
 3101|    810|}
_ZN5Exiv28Internal11print0xa001ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3110|    258|std::ostream& print0xa001(std::ostream& os, const Value& value, const ExifData* metadata) {
 3111|    258|  return EXV_PRINT_TAG(exifColorSpace)(os, value, metadata);
  ------------------
  |  |  199|    258|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3112|    258|}
_ZN5Exiv28Internal11print0xa217ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3125|    572|std::ostream& print0xa217(std::ostream& os, const Value& value, const ExifData* metadata) {
 3126|    572|  return EXV_PRINT_TAG(exifSensingMethod)(os, value, metadata);
  ------------------
  |  |  199|    572|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3127|    572|}
_ZN5Exiv28Internal11print0xa300ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3136|    154|std::ostream& print0xa300(std::ostream& os, const Value& value, const ExifData* metadata) {
 3137|    154|  return EXV_PRINT_TAG(exifFileSource)(os, value, metadata);
  ------------------
  |  |  199|    154|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3138|    154|}
_ZN5Exiv28Internal11print0xa301ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3145|     58|std::ostream& print0xa301(std::ostream& os, const Value& value, const ExifData* metadata) {
 3146|     58|  return EXV_PRINT_TAG(exifSceneType)(os, value, metadata);
  ------------------
  |  |  199|     58|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3147|     58|}
_ZN5Exiv28Internal11print0xa401ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3155|    184|std::ostream& print0xa401(std::ostream& os, const Value& value, const ExifData* metadata) {
 3156|    184|  return EXV_PRINT_TAG(exifCustomRendered)(os, value, metadata);
  ------------------
  |  |  199|    184|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3157|    184|}
_ZN5Exiv28Internal11print0xa402ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3166|    264|std::ostream& print0xa402(std::ostream& os, const Value& value, const ExifData* metadata) {
 3167|    264|  return EXV_PRINT_TAG(exifExposureMode)(os, value, metadata);
  ------------------
  |  |  199|    264|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3168|    264|}
_ZN5Exiv28Internal11print0xa403ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3176|    344|std::ostream& print0xa403(std::ostream& os, const Value& value, const ExifData* metadata) {
 3177|    344|  return EXV_PRINT_TAG(exifWhiteBalance)(os, value, metadata);
  ------------------
  |  |  199|    344|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3178|    344|}
_ZN5Exiv28Internal11print0xa404ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3180|    176|std::ostream& print0xa404(std::ostream& os, const Value& value, const ExifData*) {
 3181|    176|  Rational zoom = value.toRational();
 3182|    176|  if (zoom.second == 0)
  ------------------
  |  Branch (3182:7): [True: 34, False: 142]
  ------------------
 3183|     34|    return os << _("Digital zoom not used");
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
 3184|    142|  return os << stringFormat("{:.1f}", static_cast<float>(zoom.first) / zoom.second);
  ------------------
  |  |   18|    142|#define stringFormat std::format
  ------------------
 3185|    176|}
_ZN5Exiv28Internal11print0xa405ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3187|     64|std::ostream& print0xa405(std::ostream& os, const Value& value, const ExifData*) {
 3188|     64|  if (auto length = value.toInt64(); length != 0)
  ------------------
  |  Branch (3188:38): [True: 26, False: 38]
  ------------------
 3189|     26|    return os << length << ".0 mm";
 3190|     38|  return os << _("Unknown");
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
 3191|     64|}
_ZN5Exiv28Internal11print0xa406ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3201|    496|std::ostream& print0xa406(std::ostream& os, const Value& value, const ExifData* metadata) {
 3202|    496|  return EXV_PRINT_TAG(exifSceneCaptureType)(os, value, metadata);
  ------------------
  |  |  199|    496|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3203|    496|}
_ZN5Exiv28Internal11print0xa407ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3211|    516|std::ostream& print0xa407(std::ostream& os, const Value& value, const ExifData* metadata) {
 3212|    516|  return EXV_PRINT_TAG(exifGainControl)(os, value, metadata);
  ------------------
  |  |  199|    516|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3213|    516|}
_ZN5Exiv28Internal11print0xa409ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3222|    308|std::ostream& print0xa409(std::ostream& os, const Value& value, const ExifData* metadata) {
 3223|    308|  return EXV_PRINT_TAG(exifSaturation)(os, value, metadata);
  ------------------
  |  |  199|    308|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3224|    308|}
_ZN5Exiv28Internal11print0xa40cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3234|    266|std::ostream& print0xa40c(std::ostream& os, const Value& value, const ExifData* metadata) {
 3235|    266|  return EXV_PRINT_TAG(exifSubjectDistanceRange)(os, value, metadata);
  ------------------
  |  |  199|    266|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3236|    266|}
_ZN5Exiv28Internal14printGPSDirRefERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3238|    130|std::ostream& printGPSDirRef(std::ostream& os, const Value& value, const ExifData* metadata) {
 3239|    130|  return EXV_PRINT_TAG(exifGPSDirRef)(os, value, metadata);
  ------------------
  |  |  199|    130|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3240|    130|}
_ZN5Exiv28Internal19printNormalSoftHardERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3249|    254|std::ostream& printNormalSoftHard(std::ostream& os, const Value& value, const ExifData* metadata) {
 3250|    254|  return EXV_PRINT_TAG(exifNormalSoftHard)(os, value, metadata);
  ------------------
  |  |  199|    254|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3251|    254|}
_ZN5Exiv28Internal16printExifVersionERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3253|  4.21k|std::ostream& printExifVersion(std::ostream& os, const Value& value, const ExifData*) {
 3254|  4.21k|  if (value.size() != 4 || value.typeId() != undefined) {
  ------------------
  |  Branch (3254:7): [True: 2.35k, False: 1.86k]
  |  Branch (3254:28): [True: 608, False: 1.25k]
  ------------------
 3255|  2.95k|    return os << "(" << value << ")";
 3256|  2.95k|  }
 3257|       |
 3258|  1.25k|  char s[5];
 3259|  6.28k|  for (int i = 0; i < 4; ++i) {
  ------------------
  |  Branch (3259:19): [True: 5.02k, False: 1.25k]
  ------------------
 3260|  5.02k|    s[i] = static_cast<char>(value.toInt64(i));
 3261|  5.02k|  }
 3262|  1.25k|  s[4] = '\0';
 3263|       |
 3264|  1.25k|  return printVersion(os, s);
 3265|  4.21k|}
_ZN5Exiv28Internal7tagListERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 3294|  4.06k|const TagInfo* tagList(const std::string& groupName) {
 3295|  4.06k|  auto ii = Exiv2::find(groupInfo, groupName);
 3296|  4.06k|  if (!ii || !ii->tagList_) {
  ------------------
  |  Branch (3296:7): [True: 0, False: 4.06k]
  |  Branch (3296:14): [True: 0, False: 4.06k]
  ------------------
 3297|      0|    return nullptr;
 3298|      0|  }
 3299|  4.06k|  return ii->tagList_();
 3300|  4.06k|}
tags_int.cpp:_ZN12_GLOBAL__N_112printVersionERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS0_17basic_string_viewIcS3_EE:
   33|  1.25k|std::ostream& printVersion(std::ostream& os, std::string_view str) {
   34|  1.25k|  if (str.size() != 4) {
  ------------------
  |  Branch (34:7): [True: 74, False: 1.18k]
  ------------------
   35|     74|    return os << "(" << str << ")";
   36|     74|  }
   37|  1.18k|  if (str.front() != '0')
  ------------------
  |  Branch (37:7): [True: 124, False: 1.05k]
  ------------------
   38|    124|    os << str.front();
   39|  1.18k|  return os << str[1] << "." << str[2] << str[3];
   40|  1.25k|}

_ZNK5Exiv28Internal10TagDetailseqEl:
   50|  9.39M|  bool operator==(int64_t key) const {
   51|  9.39M|    return key == val_;
   52|  9.39M|  }
_ZNK5Exiv28Internal16StringTagDetailseqENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   64|  30.4k|  bool operator==(std::string_view key) const {
   65|  30.4k|    return key == val_;
   66|  30.4k|  }
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13nikon2QualityEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13nikon2QualityEEEERNSt3__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: 240, False: 84]
  ------------------
  184|    240|    return os << _(td->label_);
  ------------------
  |  |   40|    240|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    324|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikon2ColorModeEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikon2ColorModeEEEERNSt3__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: 38, False: 38]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|     76|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikon2ImageAdjustmentEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    676|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    676|  static_assert(N > 0, "Passed zero length printTag");
  195|    676|  return printTag<N, array>(os, value.toInt64(), data);
  196|    676|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikon2ImageAdjustmentEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    676|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    676|  static_assert(N > 0, "Passed zero length printTag");
  183|    676|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 418, False: 258]
  ------------------
  184|    418|    return os << _(td->label_);
  ------------------
  |  |   40|    418|#define _(String) (String)
  ------------------
  185|    258|  return os << "(" << value << ")";
  186|    676|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikon2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    836|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    836|  static_assert(N > 0, "Passed zero length printTag");
  195|    836|  return printTag<N, array>(os, value.toInt64(), data);
  196|    836|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikon2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    836|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    836|  static_assert(N > 0, "Passed zero length printTag");
  183|    836|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 488, False: 348]
  ------------------
  184|    488|    return os << _(td->label_);
  ------------------
  |  |   40|    488|#define _(String) (String)
  ------------------
  185|    348|  return os << "(" << value << ")";
  186|    836|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikon2WhiteBalanceEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikon2WhiteBalanceEEEERNSt3__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: 586, False: 410]
  ------------------
  184|    586|    return os << _(td->label_);
  ------------------
  |  |   40|    586|#define _(String) (String)
  ------------------
  185|    410|  return os << "(" << value << ")";
  186|    996|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashCompEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    758|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    758|  static_assert(N > 0, "Passed zero length printTag");
  195|    758|  return printTag<N, array>(os, value.toInt64(), data);
  196|    758|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashCompEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    758|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    758|  static_assert(N > 0, "Passed zero length printTag");
  183|    758|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 624, False: 134]
  ------------------
  184|    624|    return os << _(td->label_);
  ------------------
  |  |   40|    624|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    758|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    170|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    170|  static_assert(N > 0, "Passed zero length printTag");
  195|    170|  return printTag<N, array>(os, value.toInt64(), data);
  196|    170|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    170|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    170|  static_assert(N > 0, "Passed zero length printTag");
  183|    170|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 88, False: 82]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    170|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOffOnEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOffOnEEEERNSt3__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: 72, False: 112]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    184|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonActiveDLightingEEEERNSt3__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_L20nikonActiveDLightingEEEERNSt3__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: 274, False: 74]
  ------------------
  184|    274|    return os << _(td->label_);
  ------------------
  |  |   40|    274|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    348|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9nikonOlnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    156|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    156|  static_assert(N > 0, "Passed zero length printTag");
  195|    156|  return printTag<N, array>(os, value.toInt64(), data);
  196|    156|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9nikonOlnhEEEERNSt3__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: 118, False: 38]
  ------------------
  184|    118|    return os << _(td->label_);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    156|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonShutterModesEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonShutterModesEEEERNSt3__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: 194, False: 80]
  ------------------
  184|    194|    return os << _(td->label_);
  ------------------
  |  |   40|    194|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    274|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashModeEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashModeEEEERNSt3__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: 504, False: 76]
  ------------------
  184|    504|    return os << _(td->label_);
  ------------------
  |  |   40|    504|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    580|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonAutoBracketReleaseEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonAutoBracketReleaseEEEERNSt3__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: 176, False: 40]
  ------------------
  184|    176|    return os << _(td->label_);
  ------------------
  |  |   40|    176|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    216|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19nikonNefCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    688|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    688|  static_assert(N > 0, "Passed zero length printTag");
  195|    688|  return printTag<N, array>(os, value.toInt64(), data);
  196|    688|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19nikonNefCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    688|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    688|  static_assert(N > 0, "Passed zero length printTag");
  183|    688|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 236, False: 452]
  ------------------
  184|    236|    return os << _(td->label_);
  ------------------
  |  |   40|    236|#define _(String) (String)
  ------------------
  185|    452|  return os << "(" << value << ")";
  186|    688|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26nikonHighISONoiseReductionEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26nikonHighISONoiseReductionEEEERNSt3__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: 104, False: 68]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    172|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOnOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     18|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     18|  static_assert(N > 0, "Passed zero length printTag");
  195|     18|  return printTag<N, array>(os, value.toInt64(), data);
  196|     18|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOnOffEEEERNSt3__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: 6, False: 12]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     12|  return os << "(" << value << ")";
  186|     18|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonAdjustEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     80|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     80|  static_assert(N > 0, "Passed zero length printTag");
  195|     80|  return printTag<N, array>(os, value.toInt64(), data);
  196|     80|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonAdjustEEEERNSt3__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: 22, False: 58]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|     80|}
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: 34, False: 38]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     38|  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|     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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8aftOnOffEEEERNSt3__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: 20, False: 64]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|     84|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonYesNoEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonYesNoEEEERNSt3__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: 28, False: 132]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    160|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonDateDisplayFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     74|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     74|  static_assert(N > 0, "Passed zero length printTag");
  195|     74|  return printTag<N, array>(os, value.toInt64(), data);
  196|     74|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonDateDisplayFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     74|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     74|  static_assert(N > 0, "Passed zero length printTag");
  183|     74|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 62]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|     74|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonIsoExpansionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     26|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     26|  static_assert(N > 0, "Passed zero length printTag");
  195|     26|  return printTag<N, array>(os, value.toInt64(), data);
  196|     26|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonIsoExpansionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     26|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     26|  static_assert(N > 0, "Passed zero length printTag");
  183|     26|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 20]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     26|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonAfAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    108|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    108|  static_assert(N > 0, "Passed zero length printTag");
  195|    108|  return printTag<N, array>(os, value.toInt64(), data);
  196|    108|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonAfAreaModeEEEERNSt3__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: 64, False: 44]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    108|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12nikonAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12nikonAfPointEEEERNSt3__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: 62, False: 40]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    102|}
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: 48, False: 32]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|     80|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonMultiExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|      8|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|      8|  static_assert(N > 0, "Passed zero length printTag");
  195|      8|  return printTag<N, array>(os, value.toInt64(), data);
  196|      8|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonMultiExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|      8|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|      8|  static_assert(N > 0, "Passed zero length printTag");
  183|      8|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4, False: 4]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|      4|  return os << "(" << value << ")";
  186|      8|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16nikonFlashSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16nikonFlashSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    148|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    148|  static_assert(N > 0, "Passed zero length printTag");
  183|    148|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 108]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    148|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonFlashFirmwareEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    136|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    136|  static_assert(N > 0, "Passed zero length printTag");
  195|    136|  return printTag<N, array>(os, value.toInt64(), data);
  196|    136|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonFlashFirmwareEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    136|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    136|  static_assert(N > 0, "Passed zero length printTag");
  183|    136|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 88]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    136|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonExternalFlashFlagsEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonExternalFlashFlagsEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm81ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonFlashGNDistanceEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm81ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonFlashGNDistanceEEEERNSt3__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: 70, False: 62]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    132|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashControlModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     42|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     42|  static_assert(N > 0, "Passed zero length printTag");
  195|     42|  return printTag<N, array>(os, value.toInt64(), data);
  196|     42|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    108|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    108|  static_assert(N > 0, "Passed zero length printTag");
  195|    108|  return printTag<N, array>(os, value.toInt64(), data);
  196|    108|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashColorFilterEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFlashAWLModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     34|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     34|  static_assert(N > 0, "Passed zero length printTag");
  195|     34|  return printTag<N, array>(os, value.toInt64(), data);
  196|     34|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFlashAWLModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     34|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     34|  static_assert(N > 0, "Passed zero length printTag");
  183|     34|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 8]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|     34|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     40|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     40|  static_assert(N > 0, "Passed zero length printTag");
  195|     40|  return printTag<N, array>(os, value.toInt64(), data);
  196|     40|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     40|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     40|  static_assert(N > 0, "Passed zero length printTag");
  183|     40|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 30]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     40|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     12|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     12|  static_assert(N > 0, "Passed zero length printTag");
  195|     12|  return printTag<N, array>(os, value.toInt64(), data);
  196|     12|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     12|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     12|  static_assert(N > 0, "Passed zero length printTag");
  183|     12|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8, False: 4]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|      4|  return os << "(" << value << ")";
  186|     12|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm52ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonZMountLensIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    142|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    142|  static_assert(N > 0, "Passed zero length printTag");
  195|    142|  return printTag<N, array>(os, value.toInt64(), data);
  196|    142|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm52ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonZMountLensIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    142|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    142|  static_assert(N > 0, "Passed zero length printTag");
  183|    142|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 102, False: 40]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|     40|  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|    100|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    100|  static_assert(N > 0, "Passed zero length printTag");
  208|    100|  const auto val = value.toUint32();
  209|    100|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 100]
  ------------------
  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|    100|  bool sep = false;
  215|  1.10k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.10k, False: 100]
  ------------------
  216|  1.10k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 241, False: 859]
  ------------------
  217|    241|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 145, False: 96]
  ------------------
  218|    145|        os << ", " << _(label);
  ------------------
  |  |   40|    145|#define _(String) (String)
  ------------------
  219|    145|      } else {
  220|     96|        os << _(label);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  221|     96|        sep = true;
  222|     96|      }
  223|    241|    }
  224|  1.10k|  }
  225|    100|  return os;
  226|    100|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20nikonShootingModeD70EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    155|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    155|  static_assert(N > 0, "Passed zero length printTag");
  208|    155|  const auto val = value.toUint32();
  209|    155|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 155]
  ------------------
  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|    155|  bool sep = false;
  215|  1.08k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.08k, False: 155]
  ------------------
  216|  1.08k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 380, False: 705]
  ------------------
  217|    380|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 242, False: 138]
  ------------------
  218|    242|        os << ", " << _(label);
  ------------------
  |  |   40|    242|#define _(String) (String)
  ------------------
  219|    242|      } else {
  220|    138|        os << _(label);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  221|    138|        sep = true;
  222|    138|      }
  223|    380|    }
  224|  1.08k|  }
  225|    155|  return os;
  226|    155|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L17nikonShootingModeEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    651|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    651|  static_assert(N > 0, "Passed zero length printTag");
  208|    651|  const auto val = value.toUint32();
  209|    651|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 651]
  ------------------
  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|    651|  bool sep = false;
  215|  5.85k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 5.85k, False: 651]
  ------------------
  216|  5.85k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 1.81k, False: 4.04k]
  ------------------
  217|  1.81k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 1.17k, False: 636]
  ------------------
  218|  1.17k|        os << ", " << _(label);
  ------------------
  |  |   40|  1.17k|#define _(String) (String)
  ------------------
  219|  1.17k|      } else {
  220|    636|        os << _(label);
  ------------------
  |  |   40|    636|#define _(String) (String)
  ------------------
  221|    636|        sep = true;
  222|    636|      }
  223|  1.81k|    }
  224|  5.85k|  }
  225|    651|  return os;
  226|    651|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm3ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L18nikonFlashAdaptorsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|     56|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|     56|  static_assert(N > 0, "Passed zero length printTag");
  208|     56|  const auto val = value.toUint32();
  209|     56|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 56]
  ------------------
  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|     56|  bool sep = false;
  215|    168|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 168, False: 56]
  ------------------
  216|    168|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 88, False: 80]
  ------------------
  217|     88|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 42, False: 46]
  ------------------
  218|     42|        os << ", " << _(label);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  219|     46|      } else {
  220|     46|        os << _(label);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  221|     46|        sep = true;
  222|     46|      }
  223|     88|    }
  224|    168|  }
  225|     56|  return os;
  226|     56|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashControlModeEEEERNSt3__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: 286, False: 110]
  ------------------
  184|    286|    return os << _(td->label_);
  ------------------
  |  |   40|    286|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    396|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonFlashExposureCompEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     46|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     46|  static_assert(N > 0, "Passed zero length printTag");
  183|     46|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 0]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|      0|  return os << "(" << value << ")";
  186|     46|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25nikonFlashIlluminationPatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     34|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     34|  static_assert(N > 0, "Passed zero length printTag");
  183|     34|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 18]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     34|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNewSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.10k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.10k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.10k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNewSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.10k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.10k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.81k, False: 292]
  ------------------
  184|  4.81k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.81k|#define _(String) (String)
  ------------------
  185|    292|  return os << "(" << value << ")";
  186|  5.10k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifSubfileTypeEEEERNSt3__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: 220, False: 364]
  ------------------
  184|    220|    return os << _(td->label_);
  ------------------
  |  |   40|    220|#define _(String) (String)
  ------------------
  185|    364|  return os << "(" << value << ")";
  186|    584|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm34ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.99k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.99k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.99k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.99k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm34ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.99k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.99k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.99k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.43k, False: 560]
  ------------------
  184|  1.43k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.43k|#define _(String) (String)
  ------------------
  185|    560|  return os << "(" << value << ")";
  186|  1.99k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29exifPhotometricInterpretationEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29exifPhotometricInterpretationEEEERNSt3__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: 534, False: 270]
  ------------------
  184|    534|    return os << _(td->label_);
  ------------------
  |  |   40|    534|#define _(String) (String)
  ------------------
  185|    270|  return os << "(" << value << ")";
  186|    804|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifThresholdingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    310|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    310|  static_assert(N > 0, "Passed zero length printTag");
  195|    310|  return printTag<N, array>(os, value.toInt64(), data);
  196|    310|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifThresholdingEEEERNSt3__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: 150, False: 160]
  ------------------
  184|    150|    return os << _(td->label_);
  ------------------
  |  |   40|    150|#define _(String) (String)
  ------------------
  185|    160|  return os << "(" << value << ")";
  186|    310|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23exifPlanarConfigurationEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23exifPlanarConfigurationEEEERNSt3__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: 114, False: 44]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    158|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifPredictorEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifPredictorEEEERNSt3__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: 198, False: 208]
  ------------------
  184|    198|    return os << _(td->label_);
  ------------------
  |  |   40|    198|#define _(String) (String)
  ------------------
  185|    208|  return os << "(" << value << ")";
  186|    406|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10exifInkSetEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10exifInkSetEEEERNSt3__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: 154, False: 106]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    260|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifSampleFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    376|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    376|  static_assert(N > 0, "Passed zero length printTag");
  195|    376|  return printTag<N, array>(os, value.toInt64(), data);
  196|    376|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifSampleFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    376|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    376|  static_assert(N > 0, "Passed zero length printTag");
  183|    376|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 232, False: 144]
  ------------------
  184|    232|    return os << _(td->label_);
  ------------------
  |  |   40|    232|#define _(String) (String)
  ------------------
  185|    144|  return os << "(" << value << ")";
  186|    376|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11exifIndexedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    176|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    176|  static_assert(N > 0, "Passed zero length printTag");
  195|    176|  return printTag<N, array>(os, value.toInt64(), data);
  196|    176|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11exifIndexedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    176|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    176|  static_assert(N > 0, "Passed zero length printTag");
  183|    176|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 104, False: 72]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    176|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25exifJpegLosslessPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.80k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.80k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.80k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.80k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25exifJpegLosslessPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.80k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.80k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.80k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.14k, False: 664]
  ------------------
  184|  1.14k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.14k|#define _(String) (String)
  ------------------
  185|    664|  return os << "(" << value << ")";
  186|  1.80k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm27ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9exifFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.45k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.45k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.45k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.45k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm27ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9exifFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.45k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.45k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.45k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.85k, False: 602]
  ------------------
  184|  3.85k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.85k|#define _(String) (String)
  ------------------
  185|    602|  return os << "(" << value << ")";
  186|  4.45k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28tiffFocalPlaneResolutionUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    622|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    622|  static_assert(N > 0, "Passed zero length printTag");
  195|    622|  return printTag<N, array>(os, value.toInt64(), data);
  196|    622|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28tiffFocalPlaneResolutionUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    622|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    622|  static_assert(N > 0, "Passed zero length printTag");
  183|    622|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 286, False: 336]
  ------------------
  184|    286|    return os << _(td->label_);
  ------------------
  |  |   40|    286|#define _(String) (String)
  ------------------
  185|    336|  return os << "(" << value << ")";
  186|    622|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17tiffSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    694|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    694|  static_assert(N > 0, "Passed zero length printTag");
  195|    694|  return printTag<N, array>(os, value.toInt64(), data);
  196|    694|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17tiffSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    694|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    694|  static_assert(N > 0, "Passed zero length printTag");
  183|    694|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 494, False: 200]
  ------------------
  184|    494|    return os << _(td->label_);
  ------------------
  |  |   40|    494|#define _(String) (String)
  ------------------
  185|    200|  return os << "(" << value << ")";
  186|    694|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12dngCfaLayoutEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12dngCfaLayoutEEEERNSt3__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: 360, False: 210]
  ------------------
  184|    360|    return os << _(td->label_);
  ------------------
  |  |   40|    360|#define _(String) (String)
  ------------------
  185|    210|  return os << "(" << value << ")";
  186|    570|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngMakerNoteSafetyEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngMakerNoteSafetyEEEERNSt3__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: 244, False: 204]
  ------------------
  184|    244|    return os << _(td->label_);
  ------------------
  |  |   40|    244|#define _(String) (String)
  ------------------
  185|    204|  return os << "(" << value << ")";
  186|    448|}
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: 184, False: 42]
  ------------------
  184|    184|    return os << _(td->label_);
  ------------------
  |  |   40|    184|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    226|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngProfileEmbedPolicyEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngProfileEmbedPolicyEEEERNSt3__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: 138, False: 68]
  ------------------
  184|    138|    return os << _(td->label_);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    206|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20dngPreviewColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    360|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    360|  static_assert(N > 0, "Passed zero length printTag");
  195|    360|  return printTag<N, array>(os, value.toInt64(), data);
  196|    360|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20dngPreviewColorSpaceEEEERNSt3__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: 280, False: 80]
  ------------------
  184|    280|    return os << _(td->label_);
  ------------------
  |  |   40|    280|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    360|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngProfileEncodingEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngProfileEncodingEEEERNSt3__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: 60, False: 40]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    100|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngDefaultBlackRenderEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngDefaultBlackRenderEEEERNSt3__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: 40, False: 24]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|     64|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14dngDepthFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    164|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    164|  static_assert(N > 0, "Passed zero length printTag");
  195|    164|  return printTag<N, array>(os, value.toInt64(), data);
  196|    164|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14dngDepthFormatEEEERNSt3__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: 102, False: 62]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    164|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13dngDepthUnitsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    114|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    114|  static_assert(N > 0, "Passed zero length printTag");
  195|    114|  return printTag<N, array>(os, value.toInt64(), data);
  196|    114|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13dngDepthUnitsEEEERNSt3__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: 66, False: 48]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|    114|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19dngDepthMeasureTypeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19dngDepthMeasureTypeEEEERNSt3__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: 126, False: 30]
  ------------------
  184|    126|    return os << _(td->label_);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    156|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifLensCorrectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     40|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     40|  static_assert(N > 0, "Passed zero length printTag");
  195|     40|  return printTag<N, array>(os, value.toInt64(), data);
  196|     40|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifLensCorrectionEEEERNSt3__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: 34, False: 6]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     40|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNoiseReductionEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNoiseReductionEEEERNSt3__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: 48, False: 22]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|     70|}
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: 70, False: 36]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    106|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSLatitudeRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    200|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    200|  static_assert(N > 0, "Passed zero length printTag");
  195|    200|  return printTag<N, array>(os, value.toInt64(), data);
  196|    200|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSLatitudeRefEEEERNSt3__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: 92, False: 108]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    200|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSLongitudeRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     72|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     72|  static_assert(N > 0, "Passed zero length printTag");
  195|     72|  return printTag<N, array>(os, value.toInt64(), data);
  196|     72|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSLongitudeRefEEEERNSt3__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: 20, False: 52]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|     72|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm32ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.61k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.61k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.61k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.61k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm32ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.61k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.61k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.61k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.18k, False: 426]
  ------------------
  184|  2.18k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.18k|#define _(String) (String)
  ------------------
  185|    426|  return os << "(" << value << ")";
  186|  2.61k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8exifUnitEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8exifUnitEEEERNSt3__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: 316, False: 94]
  ------------------
  184|    316|    return os << _(td->label_);
  ------------------
  |  |   40|    316|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    410|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSAltitudeRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    184|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    184|  static_assert(N > 0, "Passed zero length printTag");
  195|    184|  return printTag<N, array>(os, value.toInt64(), data);
  196|    184|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSAltitudeRefEEEERNSt3__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: 122, False: 62]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    184|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSStatusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    110|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    110|  static_assert(N > 0, "Passed zero length printTag");
  195|    110|  return printTag<N, array>(os, value.toInt64(), data);
  196|    110|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSStatusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    110|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    110|  static_assert(N > 0, "Passed zero length printTag");
  183|    110|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 82]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    110|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSMeasureModeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSMeasureModeEEEERNSt3__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: 48, False: 12]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     12|  return os << "(" << value << ")";
  186|     60|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGPSSpeedRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    200|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    200|  static_assert(N > 0, "Passed zero length printTag");
  195|    200|  return printTag<N, array>(os, value.toInt64(), data);
  196|    200|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGPSSpeedRefEEEERNSt3__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: 112, False: 88]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    200|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22exifGPSDestDistanceRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    174|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    174|  static_assert(N > 0, "Passed zero length printTag");
  195|    174|  return printTag<N, array>(os, value.toInt64(), data);
  196|    174|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22exifGPSDestDistanceRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    174|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    174|  static_assert(N > 0, "Passed zero length printTag");
  183|    174|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 64]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    174|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSDifferentialEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    136|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    136|  static_assert(N > 0, "Passed zero length printTag");
  195|    136|  return printTag<N, array>(os, value.toInt64(), data);
  196|    136|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSDifferentialEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    136|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    136|  static_assert(N > 0, "Passed zero length printTag");
  183|    136|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 64, False: 72]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    136|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.14k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.14k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.14k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.14k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.14k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.14k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.14k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 698, False: 448]
  ------------------
  184|    698|    return os << _(td->label_);
  ------------------
  |  |   40|    698|#define _(String) (String)
  ------------------
  185|    448|  return os << "(" << value << ")";
  186|  1.14k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifYCbCrPositioningEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    290|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    290|  static_assert(N > 0, "Passed zero length printTag");
  195|    290|  return printTag<N, array>(os, value.toInt64(), data);
  196|    290|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifYCbCrPositioningEEEERNSt3__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: 236, False: 54]
  ------------------
  184|    236|    return os << _(td->label_);
  ------------------
  |  |   40|    236|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    290|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    890|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    890|  static_assert(N > 0, "Passed zero length printTag");
  195|    890|  return printTag<N, array>(os, value.toInt64(), data);
  196|    890|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    890|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    890|  static_assert(N > 0, "Passed zero length printTag");
  183|    890|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 698, False: 192]
  ------------------
  184|    698|    return os << _(td->label_);
  ------------------
  |  |   40|    698|#define _(String) (String)
  ------------------
  185|    192|  return os << "(" << value << ")";
  186|    890|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.85k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.85k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.85k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.85k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.85k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.85k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.85k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.05k, False: 794]
  ------------------
  184|  2.05k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.05k|#define _(String) (String)
  ------------------
  185|    794|  return os << "(" << value << ")";
  186|  2.85k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    258|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    258|  static_assert(N > 0, "Passed zero length printTag");
  195|    258|  return printTag<N, array>(os, value.toInt64(), data);
  196|    258|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    258|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    258|  static_assert(N > 0, "Passed zero length printTag");
  183|    258|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 216, False: 42]
  ------------------
  184|    216|    return os << _(td->label_);
  ------------------
  |  |   40|    216|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    258|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17exifSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    572|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    572|  static_assert(N > 0, "Passed zero length printTag");
  195|    572|  return printTag<N, array>(os, value.toInt64(), data);
  196|    572|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17exifSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    572|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    572|  static_assert(N > 0, "Passed zero length printTag");
  183|    572|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 474, False: 98]
  ------------------
  184|    474|    return os << _(td->label_);
  ------------------
  |  |   40|    474|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    572|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifFileSourceEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifFileSourceEEEERNSt3__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: 52, False: 102]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    154|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifSceneTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     58|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     58|  static_assert(N > 0, "Passed zero length printTag");
  195|     58|  return printTag<N, array>(os, value.toInt64(), data);
  196|     58|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifSceneTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     58|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     58|  static_assert(N > 0, "Passed zero length printTag");
  183|     58|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 48]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|     58|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCustomRenderedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    184|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    184|  static_assert(N > 0, "Passed zero length printTag");
  195|    184|  return printTag<N, array>(os, value.toInt64(), data);
  196|    184|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCustomRenderedEEEERNSt3__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: 130, False: 54]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    184|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifExposureModeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifExposureModeEEEERNSt3__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: 228, False: 36]
  ------------------
  184|    228|    return os << _(td->label_);
  ------------------
  |  |   40|    228|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    264|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifWhiteBalanceEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifWhiteBalanceEEEERNSt3__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: 154, False: 190]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|    190|  return os << "(" << value << ")";
  186|    344|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifSceneCaptureTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    496|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    496|  static_assert(N > 0, "Passed zero length printTag");
  195|    496|  return printTag<N, array>(os, value.toInt64(), data);
  196|    496|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifSceneCaptureTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    496|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    496|  static_assert(N > 0, "Passed zero length printTag");
  183|    496|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 274, False: 222]
  ------------------
  184|    274|    return os << _(td->label_);
  ------------------
  |  |   40|    274|#define _(String) (String)
  ------------------
  185|    222|  return os << "(" << value << ")";
  186|    496|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGainControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    516|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    516|  static_assert(N > 0, "Passed zero length printTag");
  195|    516|  return printTag<N, array>(os, value.toInt64(), data);
  196|    516|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGainControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    516|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    516|  static_assert(N > 0, "Passed zero length printTag");
  183|    516|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 408, False: 108]
  ------------------
  184|    408|    return os << _(td->label_);
  ------------------
  |  |   40|    408|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    516|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    308|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    308|  static_assert(N > 0, "Passed zero length printTag");
  195|    308|  return printTag<N, array>(os, value.toInt64(), data);
  196|    308|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    308|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    308|  static_assert(N > 0, "Passed zero length printTag");
  183|    308|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 174, False: 134]
  ------------------
  184|    174|    return os << _(td->label_);
  ------------------
  |  |   40|    174|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    308|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24exifSubjectDistanceRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    266|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    266|  static_assert(N > 0, "Passed zero length printTag");
  195|    266|  return printTag<N, array>(os, value.toInt64(), data);
  196|    266|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24exifSubjectDistanceRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    266|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    266|  static_assert(N > 0, "Passed zero length printTag");
  183|    266|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 186, False: 80]
  ------------------
  184|    186|    return os << _(td->label_);
  ------------------
  |  |   40|    186|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    266|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSDirRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    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_L13exifGPSDirRefEEEERNSt3__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: 102, False: 28]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|    130|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNormalSoftHardEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    254|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    254|  static_assert(N > 0, "Passed zero length printTag");
  195|    254|  return printTag<N, array>(os, value.toInt64(), data);
  196|    254|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNormalSoftHardEEEERNSt3__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: 220, False: 34]
  ------------------
  184|    220|    return os << _(td->label_);
  ------------------
  |  |   40|    220|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    254|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm533ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     32|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     32|  static_assert(N > 0, "Passed zero length printTag");
  195|     32|  return printTag<N, array>(os, value.toInt64(), data);
  196|     32|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm533ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsLensTypeEEEERNSt3__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: 32, False: 0]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|      0|  return os << "(" << value << ")";
  186|     32|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm357ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonModelIdEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm357ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonModelIdEEEERNSt3__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: 136, False: 108]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    244|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSerialNumberFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     76|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     76|  static_assert(N > 0, "Passed zero length printTag");
  195|     76|  return printTag<N, array>(os, value.toInt64(), data);
  196|     76|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSerialNumberFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     76|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     76|  static_assert(N > 0, "Passed zero length printTag");
  183|     76|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 18]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     76|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonSuperMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    258|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    258|  static_assert(N > 0, "Passed zero length printTag");
  195|    258|  return printTag<N, array>(os, value.toInt64(), data);
  196|    258|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonSuperMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    258|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    258|  static_assert(N > 0, "Passed zero length printTag");
  183|    258|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 136, False: 122]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    258|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonDateStampModeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonDateStampModeEEEERNSt3__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: 164, False: 70]
  ------------------
  184|    164|    return os << _(td->label_);
  ------------------
  |  |   40|    164|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    234|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonColorSpaceEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonColorSpaceEEEERNSt3__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: 22, False: 110]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    132|}
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: 878, False: 186]
  ------------------
  184|    878|    return os << _(td->label_);
  ------------------
  |  |   40|    878|#define _(String) (String)
  ------------------
  185|    186|  return os << "(" << value << ")";
  186|  1.06k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonPictureStyleEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonPictureStyleEEEERNSt3__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: 200, False: 96]
  ------------------
  184|    200|    return os << _(td->label_);
  ------------------
  |  |   40|    200|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    296|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonSiWhiteBalanceEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonSiWhiteBalanceEEEERNSt3__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: 146, False: 288]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|    288|  return os << "(" << value << ")";
  186|    434|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonAFMicroAdjModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonAFMicroAdjModeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.14k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.14k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.14k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.14k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.14k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.14k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.14k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 136, False: 1.00k]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|  1.00k|  return os << "(" << value << ")";
  186|  1.14k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAutoLightingOptimizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    136|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    136|  static_assert(N > 0, "Passed zero length printTag");
  195|    136|  return printTag<N, array>(os, value.toInt64(), data);
  196|    136|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAutoLightingOptimizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    136|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    136|  static_assert(N > 0, "Passed zero length printTag");
  183|    136|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8, False: 128]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    136|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    134|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    134|  static_assert(N > 0, "Passed zero length printTag");
  195|    134|  return printTag<N, array>(os, value.toInt64(), data);
  196|    134|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    134|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    134|  static_assert(N > 0, "Passed zero length printTag");
  183|    134|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 120]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    134|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonHighISONoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    126|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    126|  static_assert(N > 0, "Passed zero length printTag");
  195|    126|  return printTag<N, array>(os, value.toInt64(), data);
  196|    126|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonHighISONoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    126|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    126|  static_assert(N > 0, "Passed zero length printTag");
  183|    126|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 110]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    126|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonDigitalLensOptimizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    126|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    126|  static_assert(N > 0, "Passed zero length printTag");
  195|    126|  return printTag<N, array>(os, value.toInt64(), data);
  196|    126|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonDigitalLensOptimizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    126|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    126|  static_assert(N > 0, "Passed zero length printTag");
  183|    126|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 112]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    126|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonDualPixelRawEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    126|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    126|  static_assert(N > 0, "Passed zero length printTag");
  195|    126|  return printTag<N, array>(os, value.toInt64(), data);
  196|    126|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonDualPixelRawEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    126|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    126|  static_assert(N > 0, "Passed zero length printTag");
  183|    126|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 116]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    126|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAmbienceSelectionEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAmbienceSelectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 84]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    102|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonMultiExposureEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonMultiExposureEEEERNSt3__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: 22, False: 122]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    144|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonMultiExposureControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     82|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     82|  static_assert(N > 0, "Passed zero length printTag");
  195|     82|  return printTag<N, array>(os, value.toInt64(), data);
  196|     82|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonMultiExposureControlEEEERNSt3__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: 6, False: 76]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|     82|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonFilterInfoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     40|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     40|  static_assert(N > 0, "Passed zero length printTag");
  195|     40|  return printTag<N, array>(os, value.toInt64(), data);
  196|     40|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonFilterInfoEEEERNSt3__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: 14, False: 26]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     40|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonMiniatureFilterOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|      8|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|      8|  static_assert(N > 0, "Passed zero length printTag");
  195|      8|  return printTag<N, array>(os, value.toInt64(), data);
  196|      8|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonMiniatureFilterOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|      8|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|      8|  static_assert(N > 0, "Passed zero length printTag");
  183|      8|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4, False: 4]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|      4|  return os << "(" << value << ")";
  186|      8|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8canonHdrEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     82|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     82|  static_assert(N > 0, "Passed zero length printTag");
  195|     82|  return printTag<N, array>(os, value.toInt64(), data);
  196|     82|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8canonHdrEEEERNSt3__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: 14, False: 68]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|     82|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonHdrEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     82|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     82|  static_assert(N > 0, "Passed zero length printTag");
  195|     82|  return printTag<N, array>(os, value.toInt64(), data);
  196|     82|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonHdrEffectEEEERNSt3__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: 12, False: 70]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|     82|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAIServoFirstImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    416|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    416|  static_assert(N > 0, "Passed zero length printTag");
  195|    416|  return printTag<N, array>(os, value.toInt64(), data);
  196|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAIServoFirstImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    416|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    416|  static_assert(N > 0, "Passed zero length printTag");
  183|    416|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 374]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    374|  return os << "(" << value << ")";
  186|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAIServoSecondImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    416|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    416|  static_assert(N > 0, "Passed zero length printTag");
  195|    416|  return printTag<N, array>(os, value.toInt64(), data);
  196|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAIServoSecondImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    416|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    416|  static_assert(N > 0, "Passed zero length printTag");
  183|    416|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 52, False: 364]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|    364|  return os << "(" << value << ")";
  186|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonUSMLensElectronicMFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    416|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    416|  static_assert(N > 0, "Passed zero length printTag");
  195|    416|  return printTag<N, array>(os, value.toInt64(), data);
  196|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonUSMLensElectronicMFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    416|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    416|  static_assert(N > 0, "Passed zero length printTag");
  183|    416|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 374]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    374|  return os << "(" << value << ")";
  186|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonAFAssistBeamEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    416|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    416|  static_assert(N > 0, "Passed zero length printTag");
  195|    416|  return printTag<N, array>(os, value.toInt64(), data);
  196|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonAFAssistBeamEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    416|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    416|  static_assert(N > 0, "Passed zero length printTag");
  183|    416|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 378]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|    378|  return os << "(" << value << ")";
  186|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21canonOneShotAFReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    416|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    416|  static_assert(N > 0, "Passed zero length printTag");
  195|    416|  return printTag<N, array>(os, value.toInt64(), data);
  196|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21canonOneShotAFReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    416|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    416|  static_assert(N > 0, "Passed zero length printTag");
  183|    416|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 388]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    388|  return os << "(" << value << ")";
  186|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAutoAFPointSelEOSiTRAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    416|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    416|  static_assert(N > 0, "Passed zero length printTag");
  195|    416|  return printTag<N, array>(os, value.toInt64(), data);
  196|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAutoAFPointSelEOSiTRAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    416|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    416|  static_assert(N > 0, "Passed zero length printTag");
  183|    416|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 380]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    380|  return os << "(" << value << ")";
  186|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonLensDriveWhenAFImpossibleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    416|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    416|  static_assert(N > 0, "Passed zero length printTag");
  195|    416|  return printTag<N, array>(os, value.toInt64(), data);
  196|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonLensDriveWhenAFImpossibleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    416|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    416|  static_assert(N > 0, "Passed zero length printTag");
  183|    416|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 362]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|    362|  return os << "(" << value << ")";
  186|    416|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonSelectAFAreaSelectionModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    398|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    398|  static_assert(N > 0, "Passed zero length printTag");
  195|    398|  return printTag<N, array>(os, value.toInt64(), data);
  196|    398|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonSelectAFAreaSelectionModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    398|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    398|  static_assert(N > 0, "Passed zero length printTag");
  183|    398|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 348]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    348|  return os << "(" << value << ")";
  186|    398|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAFAreaSelectionMethodEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAFAreaSelectionMethodEEEERNSt3__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: 34, False: 362]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    362|  return os << "(" << value << ")";
  186|    396|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonOrientationLinkedAFEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonOrientationLinkedAFEEEERNSt3__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: 36, False: 358]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    358|  return os << "(" << value << ")";
  186|    394|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28canonManualAFPointSelPatternEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28canonManualAFPointSelPatternEEEERNSt3__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: 38, False: 346]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|    346|  return os << "(" << value << ")";
  186|    384|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonAFPointDisplayDuringFocusEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonAFPointDisplayDuringFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    384|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    384|  static_assert(N > 0, "Passed zero length printTag");
  183|    384|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 350]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    350|  return os << "(" << value << ")";
  186|    384|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAVFDisplayIlluminationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    382|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    382|  static_assert(N > 0, "Passed zero length printTag");
  195|    382|  return printTag<N, array>(os, value.toInt64(), data);
  196|    382|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAVFDisplayIlluminationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    382|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    382|  static_assert(N > 0, "Passed zero length printTag");
  183|    382|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 354]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    354|  return os << "(" << value << ")";
  186|    382|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAFStatusViewfinderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    382|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    382|  static_assert(N > 0, "Passed zero length printTag");
  195|    382|  return printTag<N, array>(os, value.toInt64(), data);
  196|    382|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAFStatusViewfinderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    382|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    382|  static_assert(N > 0, "Passed zero length printTag");
  183|    382|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 350]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    350|  return os << "(" << value << ")";
  186|    382|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonInitialAFPointInServoEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonInitialAFPointInServoEEEERNSt3__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: 26, False: 318]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    318|  return os << "(" << value << ")";
  186|    344|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonCsMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.22k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.22k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.22k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.22k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonCsMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.22k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.22k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.22k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 4.19k]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|  4.19k|  return os << "(" << value << ")";
  186|  4.22k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.69k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.69k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.69k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.69k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.69k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.69k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.69k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 550, False: 4.14k]
  ------------------
  184|    550|    return os << _(td->label_);
  ------------------
  |  |   40|    550|#define _(String) (String)
  ------------------
  185|  4.14k|  return os << "(" << value << ")";
  186|  4.69k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.19k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.19k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.19k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.19k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.19k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.19k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.19k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.62k, False: 2.57k]
  ------------------
  184|  1.62k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.62k|#define _(String) (String)
  ------------------
  185|  2.57k|  return os << "(" << value << ")";
  186|  4.19k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsDriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.19k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.19k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.19k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.19k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsDriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.19k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.19k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.19k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 404, False: 3.79k]
  ------------------
  184|    404|    return os << _(td->label_);
  ------------------
  |  |   40|    404|#define _(String) (String)
  ------------------
  185|  3.79k|  return os << "(" << value << ")";
  186|  4.19k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.19k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.19k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.19k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.19k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.19k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.19k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.19k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.34k, False: 854]
  ------------------
  184|  3.34k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.34k|#define _(String) (String)
  ------------------
  185|    854|  return os << "(" << value << ")";
  186|  4.19k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonCsRecordModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.18k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.18k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonCsRecordModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.18k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.18k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 188, False: 4.00k]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|  4.00k|  return os << "(" << value << ")";
  186|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.18k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.18k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.18k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.18k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.68k, False: 2.50k]
  ------------------
  184|  1.68k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.68k|#define _(String) (String)
  ------------------
  185|  2.50k|  return os << "(" << value << ")";
  186|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsEasyModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.18k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.18k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsEasyModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.18k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.18k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.57k, False: 614]
  ------------------
  184|  3.57k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.57k|#define _(String) (String)
  ------------------
  185|    614|  return os << "(" << value << ")";
  186|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.18k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.18k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.18k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.18k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.18k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.22k, False: 966]
  ------------------
  184|  3.22k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.22k|#define _(String) (String)
  ------------------
  185|    966|  return os << "(" << value << ")";
  186|  4.18k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonCsLnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  12.5k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  12.5k|  static_assert(N > 0, "Passed zero length printTag");
  195|  12.5k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  12.5k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonCsLnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  12.5k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  12.5k|  static_assert(N > 0, "Passed zero length printTag");
  183|  12.5k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.04k, False: 8.47k]
  ------------------
  184|  4.04k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.04k|#define _(String) (String)
  ------------------
  185|  8.47k|  return os << "(" << value << ")";
  186|  12.5k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsISOSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.16k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.16k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.16k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.16k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsISOSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.16k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.16k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.16k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 964, False: 3.20k]
  ------------------
  184|    964|    return os << _(td->label_);
  ------------------
  |  |   40|    964|#define _(String) (String)
  ------------------
  185|  3.20k|  return os << "(" << value << ")";
  186|  4.16k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonCsMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.16k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.16k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.16k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.16k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonCsMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.16k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.16k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.16k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.38k, False: 2.77k]
  ------------------
  184|  1.38k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.38k|#define _(String) (String)
  ------------------
  185|  2.77k|  return os << "(" << value << ")";
  186|  4.16k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.16k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.16k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.16k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.16k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.16k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.16k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.16k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.05k, False: 2.10k]
  ------------------
  184|  2.05k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.05k|#define _(String) (String)
  ------------------
  185|  2.10k|  return os << "(" << value << ")";
  186|  4.16k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.15k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.15k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.15k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.15k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.15k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.15k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.15k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 4.10k]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|  4.10k|  return os << "(" << value << ")";
  186|  4.15k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.08k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.08k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.08k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.08k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.08k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.08k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.08k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.56k, False: 1.51k]
  ------------------
  184|  2.56k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.56k|#define _(String) (String)
  ------------------
  185|  1.51k|  return os << "(" << value << ")";
  186|  4.08k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20canonCsFlashActivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.98k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.98k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.98k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.98k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20canonCsFlashActivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.98k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.98k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.98k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 390, False: 3.59k]
  ------------------
  184|    390|    return os << _(td->label_);
  ------------------
  |  |   40|    390|#define _(String) (String)
  ------------------
  185|  3.59k|  return os << "(" << value << ")";
  186|  3.98k|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L19canonCsFlashDetailsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|  3.96k|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|  3.96k|  static_assert(N > 0, "Passed zero length printTag");
  208|  3.96k|  const auto val = value.toUint32();
  209|  3.96k|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 1.69k, False: 2.27k]
  ------------------
  210|  1.69k|    auto [mask, label] = *array;
  211|  1.69k|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 1.69k]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|  1.69k|  }
  214|  3.96k|  bool sep = false;
  215|  35.6k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 35.6k, False: 3.96k]
  ------------------
  216|  35.6k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 10.1k, False: 25.5k]
  ------------------
  217|  10.1k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 7.91k, False: 2.20k]
  ------------------
  218|  7.91k|        os << ", " << _(label);
  ------------------
  |  |   40|  7.91k|#define _(String) (String)
  ------------------
  219|  7.91k|      } else {
  220|  2.20k|        os << _(label);
  ------------------
  |  |   40|  2.20k|#define _(String) (String)
  ------------------
  221|  2.20k|        sep = true;
  222|  2.20k|      }
  223|  10.1k|    }
  224|  35.6k|  }
  225|  3.96k|  return os;
  226|  3.96k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsFocusContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.91k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.91k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.91k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.91k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsFocusContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.91k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.91k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.91k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.75k, False: 2.16k]
  ------------------
  184|  1.75k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.75k|#define _(String) (String)
  ------------------
  185|  2.16k|  return os << "(" << value << ")";
  186|  3.91k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsAESettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.91k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.91k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.91k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.91k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsAESettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.91k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.91k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.91k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.99k, False: 924]
  ------------------
  184|  2.99k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.99k|#define _(String) (String)
  ------------------
  185|    924|  return os << "(" << value << ")";
  186|  3.91k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonCsImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.91k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.91k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.91k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.91k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonCsImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.91k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.91k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.91k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.75k, False: 2.16k]
  ------------------
  184|  1.75k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.75k|#define _(String) (String)
  ------------------
  185|  2.16k|  return os << "(" << value << ")";
  186|  3.91k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonCsSpotMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.82k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.82k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.82k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.82k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonCsSpotMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.82k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.82k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.82k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.99k, False: 832]
  ------------------
  184|  2.99k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.99k|#define _(String) (String)
  ------------------
  185|    832|  return os << "(" << value << ")";
  186|  3.82k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsPhotoEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.82k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.82k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.82k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.82k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsPhotoEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.82k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.82k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.82k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.55k, False: 2.27k]
  ------------------
  184|  1.55k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.55k|#define _(String) (String)
  ------------------
  185|  2.27k|  return os << "(" << value << ")";
  186|  3.82k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsSRAWQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.44k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.44k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.44k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.44k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsSRAWQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.44k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.44k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.44k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.19k, False: 1.25k]
  ------------------
  184|  3.19k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.19k|#define _(String) (String)
  ------------------
  185|  1.25k|  return os << "(" << value << ")";
  186|  4.44k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11slowShutterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    378|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    378|  static_assert(N > 0, "Passed zero length printTag");
  195|    378|  return printTag<N, array>(os, value.toInt64(), data);
  196|    378|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11slowShutterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    378|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    378|  static_assert(N > 0, "Passed zero length printTag");
  183|    378|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 98, False: 280]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|    280|  return os << "(" << value << ")";
  186|    378|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonSiFlashBiasEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    374|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    374|  static_assert(N > 0, "Passed zero length printTag");
  195|    374|  return printTag<N, array>(os, value.toInt64(), data);
  196|    374|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonSiFlashBiasEEEERNSt3__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: 114, False: 260]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|    260|  return os << "(" << value << ")";
  186|    374|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22autoExposureBracketingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    374|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    374|  static_assert(N > 0, "Passed zero length printTag");
  195|    374|  return printTag<N, array>(os, value.toInt64(), data);
  196|    374|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22autoExposureBracketingEEEERNSt3__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: 130, False: 244]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|    244|  return os << "(" << value << ")";
  186|    374|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10cameraTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    302|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    302|  static_assert(N > 0, "Passed zero length printTag");
  195|    302|  return printTag<N, array>(os, value.toInt64(), data);
  196|    302|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10cameraTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    302|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    302|  static_assert(N > 0, "Passed zero length printTag");
  183|    302|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 102, False: 200]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    200|  return os << "(" << value << ")";
  186|    302|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10autoRotateEEEERNSt3__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_L10autoRotateEEEERNSt3__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: 54, False: 230]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|    230|  return os << "(" << value << ")";
  186|    284|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8ndRotateEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8ndRotateEEEERNSt3__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: 102, False: 182]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    182|  return os << "(" << value << ")";
  186|    284|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10selfTimer2EEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10selfTimer2EEEERNSt3__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: 100, False: 176]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|    176|  return os << "(" << value << ")";
  186|    276|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonPaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     28|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     28|  static_assert(N > 0, "Passed zero length printTag");
  195|     28|  return printTag<N, array>(os, value.toInt64(), data);
  196|     28|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonPaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     28|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     28|  static_assert(N > 0, "Passed zero length printTag");
  183|     28|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 14]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|     28|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L19canonPiAFPointsUsedEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    114|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    114|  static_assert(N > 0, "Passed zero length printTag");
  208|    114|  const auto val = value.toUint32();
  209|    114|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 6, False: 108]
  ------------------
  210|      6|    auto [mask, label] = *array;
  211|      6|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 6]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      6|  }
  214|    114|  bool sep = false;
  215|    798|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 798, False: 114]
  ------------------
  216|    798|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 310, False: 488]
  ------------------
  217|    310|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 204, False: 106]
  ------------------
  218|    204|        os << ", " << _(label);
  ------------------
  |  |   40|    204|#define _(String) (String)
  ------------------
  219|    204|      } else {
  220|    106|        os << _(label);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  221|    106|        sep = true;
  222|    106|      }
  223|    310|    }
  224|    798|  }
  225|    114|  return os;
  226|    114|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L22canonPiAFPointsUsed20DEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    114|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    114|  static_assert(N > 0, "Passed zero length printTag");
  208|    114|  const auto val = value.toUint32();
  209|    114|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 114]
  ------------------
  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|    114|  bool sep = false;
  215|  1.02k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.02k, False: 114]
  ------------------
  216|  1.02k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 410, False: 616]
  ------------------
  217|    410|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 300, False: 110]
  ------------------
  218|    300|        os << ", " << _(label);
  ------------------
  |  |   40|    300|#define _(String) (String)
  ------------------
  219|    300|      } else {
  220|    110|        os << _(label);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  221|    110|        sep = true;
  222|    110|      }
  223|    410|    }
  224|  1.02k|  }
  225|    114|  return os;
  226|    114|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonBracketModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    538|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    538|  static_assert(N > 0, "Passed zero length printTag");
  195|    538|  return printTag<N, array>(os, value.toInt64(), data);
  196|    538|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonBracketModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    538|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    538|  static_assert(N > 0, "Passed zero length printTag");
  183|    538|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 108, False: 430]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    430|  return os << "(" << value << ")";
  186|    538|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRawJpgSizeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRawJpgSizeEEEERNSt3__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: 216, False: 272]
  ------------------
  184|    216|    return os << _(td->label_);
  ------------------
  |  |   40|    216|#define _(String) (String)
  ------------------
  185|    272|  return os << "(" << value << ")";
  186|    488|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonNoiseReductionEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonNoiseReductionEEEERNSt3__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: 112, False: 376]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    376|  return os << "(" << value << ")";
  186|    488|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonWBBracketModeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonWBBracketModeEEEERNSt3__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: 156, False: 332]
  ------------------
  184|    156|    return os << _(td->label_);
  ------------------
  |  |   40|    156|#define _(String) (String)
  ------------------
  185|    332|  return os << "(" << value << ")";
  186|    488|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonFilterEffectEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonFilterEffectEEEERNSt3__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: 150, False: 338]
  ------------------
  184|    150|    return os << _(td->label_);
  ------------------
  |  |   40|    150|#define _(String) (String)
  ------------------
  185|    338|  return os << "(" << value << ")";
  186|    488|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    466|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    466|  static_assert(N > 0, "Passed zero length printTag");
  195|    466|  return printTag<N, array>(os, value.toInt64(), data);
  196|    466|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    466|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    466|  static_assert(N > 0, "Passed zero length printTag");
  183|    466|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 140, False: 326]
  ------------------
  184|    140|    return os << _(td->label_);
  ------------------
  |  |   40|    140|#define _(String) (String)
  ------------------
  185|    326|  return os << "(" << value << ")";
  186|    466|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonShutterModeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonShutterModeEEEERNSt3__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: 44, False: 262]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    262|  return os << "(" << value << ")";
  186|    306|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRFLensTypeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRFLensTypeEEEERNSt3__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: 32, False: 166]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    166|  return os << "(" << value << ")";
  186|    198|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonToneCurveEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonToneCurveEEEERNSt3__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: 20, False: 44]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|     64|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSharpnessFrequencyEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSharpnessFrequencyEEEERNSt3__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: 20, False: 44]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|     64|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm35ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonTimeZoneCityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    290|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    290|  static_assert(N > 0, "Passed zero length printTag");
  195|    290|  return printTag<N, array>(os, value.toInt64(), data);
  196|    290|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm35ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonTimeZoneCityEEEERNSt3__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: 90, False: 200]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    200|  return os << "(" << value << ")";
  186|    290|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm3ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L18canonSiAFPointUsedEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    314|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    314|  static_assert(N > 0, "Passed zero length printTag");
  208|    314|  const auto val = value.toUint32();
  209|    314|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 314]
  ------------------
  210|      0|    auto [mask, label] = *array;
  211|      0|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 0]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      0|  }
  214|    314|  bool sep = false;
  215|    942|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 942, False: 314]
  ------------------
  216|    942|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 428, False: 514]
  ------------------
  217|    428|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 194, False: 234]
  ------------------
  218|    194|        os << ", " << _(label);
  ------------------
  |  |   40|    194|#define _(String) (String)
  ------------------
  219|    234|      } else {
  220|    234|        os << _(label);
  ------------------
  |  |   40|    234|#define _(String) (String)
  ------------------
  221|    234|        sep = true;
  222|    234|      }
  223|    428|    }
  224|    942|  }
  225|    314|  return os;
  226|    314|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casioRecordingModeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casioRecordingModeEEEERNSt3__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: 496, False: 162]
  ------------------
  184|    496|    return os << _(td->label_);
  ------------------
  |  |   40|    496|#define _(String) (String)
  ------------------
  185|    162|  return os << "(" << value << ")";
  186|    658|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casioQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    248|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    248|  static_assert(N > 0, "Passed zero length printTag");
  195|    248|  return printTag<N, array>(os, value.toInt64(), data);
  196|    248|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casioQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    248|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    248|  static_assert(N > 0, "Passed zero length printTag");
  183|    248|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 118, False: 130]
  ------------------
  184|    118|    return os << _(td->label_);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    248|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFocusModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFocusModeEEEERNSt3__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: 128, False: 88]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    216|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFlashModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFlashModeEEEERNSt3__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: 268, False: 142]
  ------------------
  184|    268|    return os << _(td->label_);
  ------------------
  |  |   40|    268|#define _(String) (String)
  ------------------
  185|    142|  return os << "(" << value << ")";
  186|    410|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioFlashIntensityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    620|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    620|  static_assert(N > 0, "Passed zero length printTag");
  195|    620|  return printTag<N, array>(os, value.toInt64(), data);
  196|    620|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioFlashIntensityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    620|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    620|  static_assert(N > 0, "Passed zero length printTag");
  183|    620|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 210, False: 410]
  ------------------
  184|    210|    return os << _(td->label_);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
  185|    410|  return os << "(" << value << ")";
  186|    620|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casioWhiteBalanceEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casioWhiteBalanceEEEERNSt3__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: 430, False: 374]
  ------------------
  184|    430|    return os << _(td->label_);
  ------------------
  |  |   40|    430|#define _(String) (String)
  ------------------
  185|    374|  return os << "(" << value << ")";
  186|    804|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 100, False: 62]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    162|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    110|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    110|  static_assert(N > 0, "Passed zero length printTag");
  195|    110|  return printTag<N, array>(os, value.toInt64(), data);
  196|    110|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    110|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    110|  static_assert(N > 0, "Passed zero length printTag");
  183|    110|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 36]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    110|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casioContrastEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casioContrastEEEERNSt3__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: 356, False: 66]
  ------------------
  184|    356|    return os << _(td->label_);
  ------------------
  |  |   40|    356|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    422|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casioSaturationEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casioSaturationEEEERNSt3__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: 284, False: 286]
  ------------------
  184|    284|    return os << _(td->label_);
  ------------------
  |  |   40|    284|#define _(String) (String)
  ------------------
  185|    286|  return os << "(" << value << ")";
  186|    570|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioEnhancementEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioEnhancementEEEERNSt3__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: 108, False: 272]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    272|  return os << "(" << value << ")";
  186|    380|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    310|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    310|  static_assert(N > 0, "Passed zero length printTag");
  195|    310|  return printTag<N, array>(os, value.toInt64(), data);
  196|    310|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    310|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    310|  static_assert(N > 0, "Passed zero length printTag");
  183|    310|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 210, False: 100]
  ------------------
  184|    210|    return os << _(td->label_);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    310|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20casioFlashIntensity2EEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20casioFlashIntensity2EEEERNSt3__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: 144, False: 76]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    220|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioCCDSensitivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    248|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    248|  static_assert(N > 0, "Passed zero length printTag");
  195|    248|  return printTag<N, array>(os, value.toInt64(), data);
  196|    248|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioCCDSensitivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    248|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    248|  static_assert(N > 0, "Passed zero length printTag");
  183|    248|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 182, False: 66]
  ------------------
  184|    182|    return os << _(td->label_);
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    248|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2QualityModeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2QualityModeEEEERNSt3__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: 102, False: 92]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    194|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ImageSizeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ImageSizeEEEERNSt3__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: 300, False: 40]
  ------------------
  184|    300|    return os << _(td->label_);
  ------------------
  |  |   40|    300|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    340|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2FocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    180|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    180|  static_assert(N > 0, "Passed zero length printTag");
  195|    180|  return printTag<N, array>(os, value.toInt64(), data);
  196|    180|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2FocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    180|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    180|  static_assert(N > 0, "Passed zero length printTag");
  183|    180|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 70]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    180|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2IsoSpeedEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2IsoSpeedEEEERNSt3__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: 100, False: 178]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|    178|  return os << "(" << value << ")";
  186|    278|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    332|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    332|  static_assert(N > 0, "Passed zero length printTag");
  195|    332|  return printTag<N, array>(os, value.toInt64(), data);
  196|    332|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    332|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    332|  static_assert(N > 0, "Passed zero length printTag");
  183|    332|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 258, False: 74]
  ------------------
  184|    258|    return os << _(td->label_);
  ------------------
  |  |   40|    258|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    332|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2SaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    272|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    272|  static_assert(N > 0, "Passed zero length printTag");
  195|    272|  return printTag<N, array>(os, value.toInt64(), data);
  196|    272|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2SaturationEEEERNSt3__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: 206, False: 66]
  ------------------
  184|    206|    return os << _(td->label_);
  ------------------
  |  |   40|    206|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    272|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2ContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    236|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    236|  static_assert(N > 0, "Passed zero length printTag");
  195|    236|  return printTag<N, array>(os, value.toInt64(), data);
  196|    236|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2ContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    236|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    236|  static_assert(N > 0, "Passed zero length printTag");
  183|    236|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 212, False: 24]
  ------------------
  184|    212|    return os << _(td->label_);
  ------------------
  |  |   40|    212|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|    236|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2SharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    324|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    324|  static_assert(N > 0, "Passed zero length printTag");
  195|    324|  return printTag<N, array>(os, value.toInt64(), data);
  196|    324|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2SharpnessEEEERNSt3__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: 244, False: 80]
  ------------------
  184|    244|    return os << _(td->label_);
  ------------------
  |  |   40|    244|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    324|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casio2WhiteBalance2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    244|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    244|  static_assert(N > 0, "Passed zero length printTag");
  195|    244|  return printTag<N, array>(os, value.toInt64(), data);
  196|    244|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casio2WhiteBalance2EEEERNSt3__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: 206, False: 38]
  ------------------
  184|    206|    return os << _(td->label_);
  ------------------
  |  |   40|    206|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    244|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    180|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    180|  static_assert(N > 0, "Passed zero length printTag");
  195|    180|  return printTag<N, array>(os, value.toInt64(), data);
  196|    180|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    180|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    180|  static_assert(N > 0, "Passed zero length printTag");
  183|    180|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 128, False: 52]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    180|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2QualityEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2QualityEEEERNSt3__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: 90, False: 36]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    126|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2FocusMode2EEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2FocusMode2EEEERNSt3__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: 276, False: 92]
  ------------------
  184|    276|    return os << _(td->label_);
  ------------------
  |  |   40|    276|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    368|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2AutoISOEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    202|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    202|  static_assert(N > 0, "Passed zero length printTag");
  195|    202|  return printTag<N, array>(os, value.toInt64(), data);
  196|    202|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2AutoISOEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    202|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    202|  static_assert(N > 0, "Passed zero length printTag");
  183|    202|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 142, False: 60]
  ------------------
  184|    142|    return os << _(td->label_);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|    202|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casio2AFModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    176|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    176|  static_assert(N > 0, "Passed zero length printTag");
  195|    176|  return printTag<N, array>(os, value.toInt64(), data);
  196|    176|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casio2AFModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    176|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    176|  static_assert(N > 0, "Passed zero length printTag");
  183|    176|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 136, False: 40]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    176|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    136|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    136|  static_assert(N > 0, "Passed zero length printTag");
  195|    136|  return printTag<N, array>(os, value.toInt64(), data);
  196|    136|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    136|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    136|  static_assert(N > 0, "Passed zero length printTag");
  183|    136|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 82, False: 54]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    136|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2EnhancementEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2EnhancementEEEERNSt3__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: 102, False: 36]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    138|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    110|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    110|  static_assert(N > 0, "Passed zero length printTag");
  195|    110|  return printTag<N, array>(os, value.toInt64(), data);
  196|    110|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    110|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    110|  static_assert(N > 0, "Passed zero length printTag");
  183|    110|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 90, False: 20]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|    110|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2ArtModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    546|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    546|  static_assert(N > 0, "Passed zero length printTag");
  195|    546|  return printTag<N, array>(os, value.toInt64(), data);
  196|    546|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2ArtModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    546|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    546|  static_assert(N > 0, "Passed zero length printTag");
  183|    546|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 476, False: 70]
  ------------------
  184|    476|    return os << _(td->label_);
  ------------------
  |  |   40|    476|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    546|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2LightingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    110|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    110|  static_assert(N > 0, "Passed zero length printTag");
  195|    110|  return printTag<N, array>(os, value.toInt64(), data);
  196|    110|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2LightingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    110|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    110|  static_assert(N > 0, "Passed zero length printTag");
  183|    110|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 72]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    110|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21casio2PortraitRefinerEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21casio2PortraitRefinerEEEERNSt3__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: 162, False: 88]
  ------------------
  184|    162|    return os << _(td->label_);
  ------------------
  |  |   40|    162|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    250|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26casio2SpecialEffectSettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    266|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    266|  static_assert(N > 0, "Passed zero length printTag");
  195|    266|  return printTag<N, array>(os, value.toInt64(), data);
  196|    266|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26casio2SpecialEffectSettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    266|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    266|  static_assert(N > 0, "Passed zero length printTag");
  183|    266|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 200, False: 66]
  ------------------
  184|    200|    return os << _(td->label_);
  ------------------
  |  |   40|    200|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    266|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2DriveModeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2DriveModeEEEERNSt3__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: 526, False: 36]
  ------------------
  184|    526|    return os << _(td->label_);
  ------------------
  |  |   40|    526|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    562|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2VideoQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    110|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    110|  static_assert(N > 0, "Passed zero length printTag");
  195|    110|  return printTag<N, array>(os, value.toInt64(), data);
  196|    110|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2VideoQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    110|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    110|  static_assert(N > 0, "Passed zero length printTag");
  183|    110|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 18]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|    110|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    296|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    296|  static_assert(N > 0, "Passed zero length printTag");
  195|    296|  return printTag<N, array>(os, value.toInt64(), data);
  196|    296|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiSharpnessEEEERNSt3__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: 166, False: 130]
  ------------------
  184|    166|    return os << _(td->label_);
  ------------------
  |  |   40|    166|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    296|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    912|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    912|  static_assert(N > 0, "Passed zero length printTag");
  195|    912|  return printTag<N, array>(os, value.toInt64(), data);
  196|    912|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    912|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    912|  static_assert(N > 0, "Passed zero length printTag");
  183|    912|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 448, False: 464]
  ------------------
  184|    448|    return os << _(td->label_);
  ------------------
  |  |   40|    448|#define _(String) (String)
  ------------------
  185|    464|  return os << "(" << value << ")";
  186|    912|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    594|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    594|  static_assert(N > 0, "Passed zero length printTag");
  195|    594|  return printTag<N, array>(os, value.toInt64(), data);
  196|    594|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    594|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    594|  static_assert(N > 0, "Passed zero length printTag");
  183|    594|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 190, False: 404]
  ------------------
  184|    190|    return os << _(td->label_);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  185|    404|  return os << "(" << value << ")";
  186|    594|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8fujiToneEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8fujiToneEEEERNSt3__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: 98, False: 228]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|    228|  return os << "(" << value << ")";
  186|    326|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    246|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    246|  static_assert(N > 0, "Passed zero length printTag");
  195|    246|  return printTag<N, array>(os, value.toInt64(), data);
  196|    246|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiContrastEEEERNSt3__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: 76, False: 170]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|    170|  return os << "(" << value << ")";
  186|    246|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiNoiseReductionEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiNoiseReductionEEEERNSt3__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: 44, False: 292]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    292|  return os << "(" << value << ")";
  186|    336|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiHighIsoNREEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiHighIsoNREEEERNSt3__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: 120, False: 190]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|    190|  return os << "(" << value << ")";
  186|    310|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiClarityEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiClarityEEEERNSt3__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: 38, False: 196]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|    196|  return os << "(" << value << ")";
  186|    234|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    252|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    252|  static_assert(N > 0, "Passed zero length printTag");
  195|    252|  return printTag<N, array>(os, value.toInt64(), data);
  196|    252|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    252|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    252|  static_assert(N > 0, "Passed zero length printTag");
  183|    252|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 100, False: 152]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|    152|  return os << "(" << value << ")";
  186|    252|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiOffOnEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiOffOnEEEERNSt3__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: 80, False: 192]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|    192|  return os << "(" << value << ")";
  186|    272|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusModeEEEERNSt3__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_L13fujiFocusModeEEEERNSt3__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: 52, False: 62]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    114|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusAreaEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    242|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    242|  static_assert(N > 0, "Passed zero length printTag");
  195|    242|  return printTag<N, array>(os, value.toInt64(), data);
  196|    242|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusAreaEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    242|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    242|  static_assert(N > 0, "Passed zero length printTag");
  183|    242|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 78, False: 164]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|    164|  return os << "(" << value << ")";
  186|    242|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.82k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.82k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.82k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.82k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.82k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.82k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.82k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.52k, False: 294]
  ------------------
  184|  1.52k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.52k|#define _(String) (String)
  ------------------
  185|    294|  return os << "(" << value << ")";
  186|  1.82k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiExrModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    142|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    142|  static_assert(N > 0, "Passed zero length printTag");
  195|    142|  return printTag<N, array>(os, value.toInt64(), data);
  196|    142|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiExrModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    142|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    142|  static_assert(N > 0, "Passed zero length printTag");
  183|    142|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 106]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    142|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10fujiSHToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    592|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    592|  static_assert(N > 0, "Passed zero length printTag");
  195|    592|  return printTag<N, array>(os, value.toInt64(), data);
  196|    592|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10fujiSHToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    592|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    592|  static_assert(N > 0, "Passed zero length printTag");
  183|    592|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 332, False: 260]
  ------------------
  184|    332|    return os << _(td->label_);
  ------------------
  |  |   40|    332|#define _(String) (String)
  ------------------
  185|    260|  return os << "(" << value << ")";
  186|    592|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiOff0Weak32Strong64EEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiOff0Weak32Strong64EEEERNSt3__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: 108, False: 248]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    248|  return os << "(" << value << ")";
  186|    356|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiCropModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    208|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    208|  static_assert(N > 0, "Passed zero length printTag");
  195|    208|  return printTag<N, array>(os, value.toInt64(), data);
  196|    208|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiCropModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    208|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    208|  static_assert(N > 0, "Passed zero length printTag");
  183|    208|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 158, False: 50]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    208|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiShutterTypeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiShutterTypeEEEERNSt3__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: 204, False: 30]
  ------------------
  184|    204|    return os << _(td->label_);
  ------------------
  |  |   40|    204|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    234|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14fujiContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    186|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    186|  static_assert(N > 0, "Passed zero length printTag");
  195|    186|  return printTag<N, array>(os, value.toInt64(), data);
  196|    186|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14fujiContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    186|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    186|  static_assert(N > 0, "Passed zero length printTag");
  183|    186|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 98, False: 88]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    186|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21fujiPanoramaDirectionEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21fujiPanoramaDirectionEEEERNSt3__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: 84, False: 84]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    168|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiAdvancedFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    692|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    692|  static_assert(N > 0, "Passed zero length printTag");
  195|    692|  return printTag<N, array>(os, value.toInt64(), data);
  196|    692|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiAdvancedFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    692|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    692|  static_assert(N > 0, "Passed zero length printTag");
  183|    692|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 190, False: 502]
  ------------------
  184|    190|    return os << _(td->label_);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  185|    502|  return os << "(" << value << ")";
  186|    692|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiFinePixColorEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiFinePixColorEEEERNSt3__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: 86, False: 106]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    192|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiDynamicRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    338|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    338|  static_assert(N > 0, "Passed zero length printTag");
  195|    338|  return printTag<N, array>(os, value.toInt64(), data);
  196|    338|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiDynamicRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    338|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    338|  static_assert(N > 0, "Passed zero length printTag");
  183|    338|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 322]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|    322|  return os << "(" << value << ")";
  186|    338|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.05k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.05k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.05k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.05k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.05k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.05k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.05k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 680, False: 374]
  ------------------
  184|    680|    return os << _(td->label_);
  ------------------
  |  |   40|    680|#define _(String) (String)
  ------------------
  185|    374|  return os << "(" << value << ")";
  186|  1.05k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDynamicRangeSettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    382|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    382|  static_assert(N > 0, "Passed zero length printTag");
  195|    382|  return printTag<N, array>(os, value.toInt64(), data);
  196|    382|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDynamicRangeSettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    382|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    382|  static_assert(N > 0, "Passed zero length printTag");
  183|    382|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 160, False: 222]
  ------------------
  184|    160|    return os << _(td->label_);
  ------------------
  |  |   40|    160|#define _(String) (String)
  ------------------
  185|    222|  return os << "(" << value << ")";
  186|    382|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20fujiSceneRecognitionEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20fujiSceneRecognitionEEEERNSt3__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: 196, False: 388]
  ------------------
  184|    196|    return os << _(td->label_);
  ------------------
  |  |   40|    196|#define _(String) (String)
  ------------------
  185|    388|  return os << "(" << value << ")";
  186|    584|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19fujiImageGenerationEEEERNSt3__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_L19fujiImageGenerationEEEERNSt3__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: 26, False: 22]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|     48|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiDRangePriorityEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiDRangePriorityEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDRangePriorityFixedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    166|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    166|  static_assert(N > 0, "Passed zero length printTag");
  195|    166|  return printTag<N, array>(os, value.toInt64(), data);
  196|    166|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDRangePriorityFixedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    166|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    166|  static_assert(N > 0, "Passed zero length printTag");
  183|    166|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 64, False: 102]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    166|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiDRangePriorityAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     58|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     58|  static_assert(N > 0, "Passed zero length printTag");
  195|     58|  return printTag<N, array>(os, value.toInt64(), data);
  196|     58|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiDRangePriorityAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     58|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     58|  static_assert(N > 0, "Passed zero length printTag");
  183|     58|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 28]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|     58|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16minoltaColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    646|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    646|  static_assert(N > 0, "Passed zero length printTag");
  195|    646|  return printTag<N, array>(os, value.toInt64(), data);
  196|    646|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16minoltaColorModeEEEERNSt3__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: 500, False: 146]
  ------------------
  184|    500|    return os << _(td->label_);
  ------------------
  |  |   40|    500|#define _(String) (String)
  ------------------
  185|    146|  return os << "(" << value << ")";
  186|    646|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    618|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    618|  static_assert(N > 0, "Passed zero length printTag");
  195|    618|  return printTag<N, array>(os, value.toInt64(), data);
  196|    618|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    618|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    618|  static_assert(N > 0, "Passed zero length printTag");
  183|    618|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 490, False: 128]
  ------------------
  184|    490|    return os << _(td->label_);
  ------------------
  |  |   40|    490|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    618|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25minoltaImageStabilizationEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25minoltaImageStabilizationEEEERNSt3__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: 78, False: 86]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    164|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28minoltaWhiteBalanceStd0x0115EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28minoltaWhiteBalanceStd0x0115EEEERNSt3__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: 448, False: 136]
  ------------------
  184|    448|    return os << _(td->label_);
  ------------------
  |  |   40|    448|#define _(String) (String)
  ------------------
  185|    136|  return os << "(" << value << ")";
  186|    584|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaExposureModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    678|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    678|  static_assert(N > 0, "Passed zero length printTag");
  195|    678|  return printTag<N, array>(os, value.toInt64(), data);
  196|    678|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaExposureModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    678|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    678|  static_assert(N > 0, "Passed zero length printTag");
  183|    678|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 644]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    644|  return os << "(" << value << ")";
  186|    678|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFlashModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    674|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    674|  static_assert(N > 0, "Passed zero length printTag");
  195|    674|  return printTag<N, array>(os, value.toInt64(), data);
  196|    674|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFlashModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    674|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    674|  static_assert(N > 0, "Passed zero length printTag");
  183|    674|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 552]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|    552|  return os << "(" << value << ")";
  186|    674|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    672|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    672|  static_assert(N > 0, "Passed zero length printTag");
  195|    672|  return printTag<N, array>(os, value.toInt64(), data);
  196|    672|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    672|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    672|  static_assert(N > 0, "Passed zero length printTag");
  183|    672|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 86, False: 586]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    586|  return os << "(" << value << ")";
  186|    672|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageSizeStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageSizeStdEEEERNSt3__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: 70, False: 600]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|    600|  return os << "(" << value << ")";
  186|    670|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaImageQualityStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaImageQualityStdEEEERNSt3__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: 154, False: 516]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|    516|  return os << "(" << value << ")";
  186|    670|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaDriveModeStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaDriveModeStdEEEERNSt3__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: 66, False: 604]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    604|  return os << "(" << value << ")";
  186|    670|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaMeteringModeStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaMeteringModeStdEEEERNSt3__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: 48, False: 622]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|    622|  return os << "(" << value << ")";
  186|    670|}
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: 66, False: 548]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    548|  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: 56, False: 558]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    558|  return os << "(" << value << ")";
  186|    614|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.38k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.38k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.38k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.38k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.38k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.38k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.38k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 188, False: 1.19k]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|  1.19k|  return os << "(" << value << ")";
  186|  1.38k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSharpnessStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    602|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    602|  static_assert(N > 0, "Passed zero length printTag");
  195|    602|  return printTag<N, array>(os, value.toInt64(), data);
  196|    602|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSharpnessStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    602|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    602|  static_assert(N > 0, "Passed zero length printTag");
  183|    602|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 532]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|    532|  return os << "(" << value << ")";
  186|    602|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24minoltaSubjectProgramStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    602|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    602|  static_assert(N > 0, "Passed zero length printTag");
  195|    602|  return printTag<N, array>(os, value.toInt64(), data);
  196|    602|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24minoltaSubjectProgramStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    602|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    602|  static_assert(N > 0, "Passed zero length printTag");
  183|    602|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 86, False: 516]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    516|  return os << "(" << value << ")";
  186|    602|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaISOSettingStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    594|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    594|  static_assert(N > 0, "Passed zero length printTag");
  195|    594|  return printTag<N, array>(os, value.toInt64(), data);
  196|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaISOSettingStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    594|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    594|  static_assert(N > 0, "Passed zero length printTag");
  183|    594|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 502]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    502|  return os << "(" << value << ")";
  186|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaModelStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    594|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    594|  static_assert(N > 0, "Passed zero length printTag");
  195|    594|  return printTag<N, array>(os, value.toInt64(), data);
  196|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaModelStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    594|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    594|  static_assert(N > 0, "Passed zero length printTag");
  183|    594|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 472]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|    472|  return os << "(" << value << ")";
  186|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaIntervalModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    590|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    590|  static_assert(N > 0, "Passed zero length printTag");
  195|    590|  return printTag<N, array>(os, value.toInt64(), data);
  196|    590|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaIntervalModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    590|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    590|  static_assert(N > 0, "Passed zero length printTag");
  183|    590|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 60, False: 530]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|    530|  return os << "(" << value << ")";
  186|    590|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaFolderNameStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    590|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    590|  static_assert(N > 0, "Passed zero length printTag");
  195|    590|  return printTag<N, array>(os, value.toInt64(), data);
  196|    590|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaFolderNameStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    590|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    590|  static_assert(N > 0, "Passed zero length printTag");
  183|    590|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 544]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    544|  return os << "(" << value << ")";
  186|    590|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    590|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    590|  static_assert(N > 0, "Passed zero length printTag");
  195|    590|  return printTag<N, array>(os, value.toInt64(), data);
  196|    590|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    590|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    590|  static_assert(N > 0, "Passed zero length printTag");
  183|    590|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 102, False: 488]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    488|  return os << "(" << value << ")";
  186|    590|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaWideFocusZoneStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    586|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    586|  static_assert(N > 0, "Passed zero length printTag");
  195|    586|  return printTag<N, array>(os, value.toInt64(), data);
  196|    586|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaWideFocusZoneStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    586|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    586|  static_assert(N > 0, "Passed zero length printTag");
  183|    586|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 530]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    530|  return os << "(" << value << ")";
  186|    586|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    632|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    632|  static_assert(N > 0, "Passed zero length printTag");
  195|    632|  return printTag<N, array>(os, value.toInt64(), data);
  196|    632|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    632|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    632|  static_assert(N > 0, "Passed zero length printTag");
  183|    632|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 52, False: 580]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|    580|  return os << "(" << value << ")";
  186|    632|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusAreaStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    586|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    586|  static_assert(N > 0, "Passed zero length printTag");
  195|    586|  return printTag<N, array>(os, value.toInt64(), data);
  196|    586|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusAreaStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    586|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    586|  static_assert(N > 0, "Passed zero length printTag");
  183|    586|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 528]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|    528|  return os << "(" << value << ")";
  186|    586|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDECPositionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    586|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    586|  static_assert(N > 0, "Passed zero length printTag");
  195|    586|  return printTag<N, array>(os, value.toInt64(), data);
  196|    586|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDECPositionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    586|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    586|  static_assert(N > 0, "Passed zero length printTag");
  183|    586|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 516]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|    516|  return os << "(" << value << ")";
  186|    586|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaColorProfileStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    586|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    586|  static_assert(N > 0, "Passed zero length printTag");
  195|    586|  return printTag<N, array>(os, value.toInt64(), data);
  196|    586|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaColorProfileStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    586|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    586|  static_assert(N > 0, "Passed zero length printTag");
  183|    586|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 528]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|    528|  return os << "(" << value << ")";
  186|    586|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDataImprintStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDataImprintStdEEEERNSt3__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: 90, False: 494]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    494|  return os << "(" << value << ")";
  186|    584|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaFlashMeteringStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    642|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    642|  static_assert(N > 0, "Passed zero length printTag");
  195|    642|  return printTag<N, array>(os, value.toInt64(), data);
  196|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaFlashMeteringStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    642|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    642|  static_assert(N > 0, "Passed zero length printTag");
  183|    642|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 550]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    550|  return os << "(" << value << ")";
  186|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode7DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode7DEEEERNSt3__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: 30, False: 64]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|     94|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize7DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize7DEEEERNSt3__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: 32, False: 58]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|     90|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality7DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality7DEEEERNSt3__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: 28, False: 62]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|     90|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance7DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance7DEEEERNSt3__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: 42, False: 48]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|     90|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusMode7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusMode7DEEEERNSt3__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: 22, False: 64]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|     86|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaAFPoints7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaAFPoints7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     64|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     64|  static_assert(N > 0, "Passed zero length printTag");
  195|     64|  return printTag<N, array>(os, value.toInt64(), data);
  196|     64|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     64|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     64|  static_assert(N > 0, "Passed zero length printTag");
  183|     64|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 30]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     64|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     54|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     54|  static_assert(N > 0, "Passed zero length printTag");
  195|     54|  return printTag<N, array>(os, value.toInt64(), data);
  196|     54|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     54|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     54|  static_assert(N > 0, "Passed zero length printTag");
  183|     54|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 36]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|     54|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     40|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     40|  static_assert(N > 0, "Passed zero length printTag");
  195|     40|  return printTag<N, array>(os, value.toInt64(), data);
  196|     40|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation7DEEEERNSt3__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: 6, False: 34]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     40|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode5DEEEERNSt3__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: 56, False: 214]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    214|  return os << "(" << value << ")";
  186|    270|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize5DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize5DEEEERNSt3__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: 44, False: 62]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    106|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality5DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality5DEEEERNSt3__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: 30, False: 76]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    106|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance5DEEEERNSt3__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: 94, False: 174]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|    174|  return os << "(" << value << ")";
  186|    268|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaFocusPosition5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    100|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    100|  static_assert(N > 0, "Passed zero length printTag");
  195|    100|  return printTag<N, array>(os, value.toInt64(), data);
  196|    100|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaFocusPosition5DEEEERNSt3__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: 36, False: 64]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    100|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusArea5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    100|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    100|  static_assert(N > 0, "Passed zero length printTag");
  195|    100|  return printTag<N, array>(os, value.toInt64(), data);
  196|    100|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusArea5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    100|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    100|  static_assert(N > 0, "Passed zero length printTag");
  183|    100|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 72]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    100|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaMeteringMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    100|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    100|  static_assert(N > 0, "Passed zero length printTag");
  195|    100|  return printTag<N, array>(os, value.toInt64(), data);
  196|    100|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaMeteringMode5DEEEERNSt3__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: 32, False: 68]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    100|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    100|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    100|  static_assert(N > 0, "Passed zero length printTag");
  195|    100|  return printTag<N, array>(os, value.toInt64(), data);
  196|    100|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting5DEEEERNSt3__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: 40, False: 60]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|    100|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     72|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     72|  static_assert(N > 0, "Passed zero length printTag");
  195|     72|  return printTag<N, array>(os, value.toInt64(), data);
  196|     72|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace5DEEEERNSt3__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: 30, False: 42]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|     72|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     46|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     46|  static_assert(N > 0, "Passed zero length printTag");
  195|     46|  return printTag<N, array>(os, value.toInt64(), data);
  196|     46|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     46|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     46|  static_assert(N > 0, "Passed zero length printTag");
  183|     46|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 40]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     46|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaPictureFinish5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     46|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     46|  static_assert(N > 0, "Passed zero length printTag");
  195|     46|  return printTag<N, array>(os, value.toInt64(), data);
  196|     46|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaPictureFinish5DEEEERNSt3__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: 24, False: 22]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|     46|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaAFMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     36|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     36|  static_assert(N > 0, "Passed zero length printTag");
  195|     36|  return printTag<N, array>(os, value.toInt64(), data);
  196|     36|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaAFMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     36|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     36|  static_assert(N > 0, "Passed zero length printTag");
  183|     36|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 22]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|     36|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyDriveMode2A100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyDriveMode2A100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 122]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFocusModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFocusModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 134]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 128]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyMeteringModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyMeteringModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 130]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyZoneMatchingModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyZoneMatchingModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 132]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyColorSpaceA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyColorSpaceA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 130]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyDriveModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyDriveModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 114]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonySelfTimerTimeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonySelfTimerTimeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 128]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyContinuousBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyContinuousBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 156]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|    156|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29sonySingleFrameBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29sonySingleFrameBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4, False: 158]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyWhiteBalanceBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyWhiteBalanceBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 156]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|    156|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyWhiteBalanceSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyWhiteBalanceSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 112]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyPresetWhiteBalanceA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyPresetWhiteBalanceA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 150]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|    150|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31sonyColorTemperatureSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31sonyColorTemperatureSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 130]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyCustomWBSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyCustomWBSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 124]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyCustomWBErrorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyCustomWBErrorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 134]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyImageSizeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    160|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    160|  static_assert(N > 0, "Passed zero length printTag");
  195|    160|  return printTag<N, array>(os, value.toInt64(), data);
  196|    160|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyImageSizeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    160|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    160|  static_assert(N > 0, "Passed zero length printTag");
  183|    160|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 128]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    160|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyInstantPlaybackSetupA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    160|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    160|  static_assert(N > 0, "Passed zero length printTag");
  195|    160|  return printTag<N, array>(os, value.toInt64(), data);
  196|    160|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyInstantPlaybackSetupA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    160|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    160|  static_assert(N > 0, "Passed zero length printTag");
  183|    160|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 122]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    160|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyFlashDefaultA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyFlashDefaultA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 80]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyAutoBracketOrderA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyAutoBracketOrderA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 86]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusHoldButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusHoldButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 80]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAELButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAELButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 80]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyControlDialSetA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyControlDialSetA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 84]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyExposureCompensationModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyExposureCompensationModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 76]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyAFAreaIlluminationA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyAFAreaIlluminationA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 78]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMonitorDisplayOffA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMonitorDisplayOffA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 80]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyRecordDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyRecordDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 78]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyPlayDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyPlayDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 88]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    104|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyExposureIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    432|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    432|  static_assert(N > 0, "Passed zero length printTag");
  195|    432|  return printTag<N, array>(os, value.toInt64(), data);
  196|    432|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyExposureIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    432|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    432|  static_assert(N > 0, "Passed zero length printTag");
  183|    432|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 322]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    322|  return os << "(" << value << ")";
  186|    432|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L33sonyMeteringOffScaleIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L33sonyMeteringOffScaleIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 38]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusModeSwitchA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusModeSwitchA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 44]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashTypeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashTypeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 40]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyBatteryLevelA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     60|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     60|  static_assert(N > 0, "Passed zero length printTag");
  195|     60|  return printTag<N, array>(os, value.toInt64(), data);
  196|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyBatteryLevelA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     60|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     60|  static_assert(N > 0, "Passed zero length printTag");
  183|     60|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 50]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|     60|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm205ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaSonyLensIDEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.37k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.37k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.37k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.37k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm205ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaSonyLensIDEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.37k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.37k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.37k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.95k, False: 422]
  ------------------
  184|  2.95k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.95k|#define _(String) (String)
  ------------------
  185|    422|  return os << "(" << value << ")";
  186|  3.37k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 60, False: 102]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    162|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyBoolFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.76k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.76k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.76k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.76k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyBoolFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.76k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.76k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.76k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 690, False: 2.07k]
  ------------------
  184|    690|    return os << _(td->label_);
  ------------------
  |  |   40|    690|#define _(String) (String)
  ------------------
  185|  2.07k|  return os << "(" << value << ")";
  186|  2.76k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30minoltaSonyBoolInverseFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    762|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    762|  static_assert(N > 0, "Passed zero length printTag");
  195|    762|  return printTag<N, array>(os, value.toInt64(), data);
  196|    762|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30minoltaSonyBoolInverseFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    762|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    762|  static_assert(N > 0, "Passed zero length printTag");
  183|    762|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 192, False: 570]
  ------------------
  184|    192|    return os << _(td->label_);
  ------------------
  |  |   40|    192|#define _(String) (String)
  ------------------
  185|    570|  return os << "(" << value << ")";
  186|    762|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaSonyAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    594|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    594|  static_assert(N > 0, "Passed zero length printTag");
  195|    594|  return printTag<N, array>(os, value.toInt64(), data);
  196|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaSonyAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    594|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    594|  static_assert(N > 0, "Passed zero length printTag");
  183|    594|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 136, False: 458]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|    458|  return os << "(" << value << ")";
  186|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27minoltaSonyLocalAFAreaPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    594|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    594|  static_assert(N > 0, "Passed zero length printTag");
  195|    594|  return printTag<N, array>(os, value.toInt64(), data);
  196|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27minoltaSonyLocalAFAreaPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    594|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    594|  static_assert(N > 0, "Passed zero length printTag");
  183|    594|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 524]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|    524|  return os << "(" << value << ")";
  186|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L36minoltaSonyDynamicRangeOptimizerModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    756|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    756|  static_assert(N > 0, "Passed zero length printTag");
  195|    756|  return printTag<N, array>(os, value.toInt64(), data);
  196|    756|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L36minoltaSonyDynamicRangeOptimizerModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    756|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    756|  static_assert(N > 0, "Passed zero length printTag");
  183|    756|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 198, False: 558]
  ------------------
  184|    198|    return os << _(td->label_);
  ------------------
  |  |   40|    198|#define _(String) (String)
  ------------------
  185|    558|  return os << "(" << value << ")";
  186|    756|}
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: 148, False: 360]
  ------------------
  184|    148|    return os << _(td->label_);
  ------------------
  |  |   40|    148|#define _(String) (String)
  ------------------
  185|    360|  return os << "(" << value << ")";
  186|    508|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyQualityCsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    450|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    450|  static_assert(N > 0, "Passed zero length printTag");
  195|    450|  return printTag<N, array>(os, value.toInt64(), data);
  196|    450|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyQualityCsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    450|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    450|  static_assert(N > 0, "Passed zero length printTag");
  183|    450|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 96, False: 354]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|    354|  return os << "(" << value << ")";
  186|    450|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSonyRotationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    458|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    458|  static_assert(N > 0, "Passed zero length printTag");
  195|    458|  return printTag<N, array>(os, value.toInt64(), data);
  196|    458|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSonyRotationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    458|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    458|  static_assert(N > 0, "Passed zero length printTag");
  183|    458|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 86, False: 372]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    372|  return os << "(" << value << ")";
  186|    458|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonySceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.51k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.51k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.51k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.51k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonySceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.51k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.51k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.51k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.98k, False: 522]
  ------------------
  184|  1.98k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.98k|#define _(String) (String)
  ------------------
  185|    522|  return os << "(" << value << ")";
  186|  2.51k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29minoltaSonyTeleconverterModelEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29minoltaSonyTeleconverterModelEEEERNSt3__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: 330, False: 110]
  ------------------
  184|    330|    return os << _(td->label_);
  ------------------
  |  |   40|    330|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    440|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyZoneMatchingEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyZoneMatchingEEEERNSt3__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: 106, False: 92]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    198|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14olympusQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    444|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    444|  static_assert(N > 0, "Passed zero length printTag");
  195|    444|  return printTag<N, array>(os, value.toInt64(), data);
  196|    444|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14olympusQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    444|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    444|  static_assert(N > 0, "Passed zero length printTag");
  183|    444|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 256, False: 188]
  ------------------
  184|    256|    return os << _(td->label_);
  ------------------
  |  |   40|    256|#define _(String) (String)
  ------------------
  185|    188|  return os << "(" << value << ")";
  186|    444|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    530|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    530|  static_assert(N > 0, "Passed zero length printTag");
  195|    530|  return printTag<N, array>(os, value.toInt64(), data);
  196|    530|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    530|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    530|  static_assert(N > 0, "Passed zero length printTag");
  183|    530|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 286, False: 244]
  ------------------
  184|    286|    return os << _(td->label_);
  ------------------
  |  |   40|    286|#define _(String) (String)
  ------------------
  185|    244|  return os << "(" << value << ")";
  186|    530|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    398|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    398|  static_assert(N > 0, "Passed zero length printTag");
  195|    398|  return printTag<N, array>(os, value.toInt64(), data);
  196|    398|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    398|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    398|  static_assert(N > 0, "Passed zero length printTag");
  183|    398|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 294, False: 104]
  ------------------
  184|    294|    return os << _(td->label_);
  ------------------
  |  |   40|    294|#define _(String) (String)
  ------------------
  185|    104|  return os << "(" << value << ")";
  186|    398|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusOneTouchWbEEEERNSt3__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_L17olympusOneTouchWbEEEERNSt3__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: 198, False: 76]
  ------------------
  184|    198|    return os << _(td->label_);
  ------------------
  |  |   40|    198|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    274|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm45ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.84k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.84k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.84k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.84k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm45ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.84k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.84k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.84k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.48k, False: 358]
  ------------------
  184|  2.48k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.48k|#define _(String) (String)
  ------------------
  185|    358|  return os << "(" << value << ")";
  186|  2.84k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusFlashDeviceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    100|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    100|  static_assert(N > 0, "Passed zero length printTag");
  195|    100|  return printTag<N, array>(os, value.toInt64(), data);
  196|    100|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusFlashDeviceEEEERNSt3__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: 78, False: 22]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|    100|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusFocusRangeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusFocusRangeEEEERNSt3__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: 68, False: 66]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    134|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusFocusModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusFocusModeEEEERNSt3__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: 30, False: 30]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     60|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     26|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     26|  static_assert(N > 0, "Passed zero length printTag");
  195|     26|  return printTag<N, array>(os, value.toInt64(), data);
  196|     26|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     26|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     26|  static_assert(N > 0, "Passed zero length printTag");
  183|     26|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 6]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     26|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    186|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    186|  static_assert(N > 0, "Passed zero length printTag");
  195|    186|  return printTag<N, array>(os, value.toInt64(), data);
  196|    186|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    186|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    186|  static_assert(N > 0, "Passed zero length printTag");
  183|    186|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 114, False: 72]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    186|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusCCDScanModeEEEERNSt3__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_L18olympusCCDScanModeEEEERNSt3__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: 64, False: 14]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|     78|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusNoYesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    220|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    220|  static_assert(N > 0, "Passed zero length printTag");
  195|    220|  return printTag<N, array>(os, value.toInt64(), data);
  196|    220|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusNoYesEEEERNSt3__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: 158, False: 62]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    220|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 136, False: 304]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|    304|  return os << "(" << value << ")";
  186|    440|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusMeteringModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusMeteringModeEEEERNSt3__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: 130, False: 196]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|    196|  return os << "(" << value << ")";
  186|    326|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusMacroModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusMacroModeEEEERNSt3__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: 124, False: 110]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    234|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusFocusProcessEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusFocusProcessEEEERNSt3__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: 138, False: 52]
  ------------------
  184|    138|    return os << _(td->label_);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    190|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusAFSearchEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusAFSearchEEEERNSt3__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: 88, False: 14]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|    102|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L16olympusFlashModeEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    874|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    874|  static_assert(N > 0, "Passed zero length printTag");
  208|    874|  const auto val = value.toUint32();
  209|    874|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 220, False: 654]
  ------------------
  210|    220|    auto [mask, label] = *array;
  211|    220|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 220, False: 0]
  ------------------
  212|    220|      return os << _(label);
  ------------------
  |  |   40|    220|#define _(String) (String)
  ------------------
  213|    220|  }
  214|    654|  bool sep = false;
  215|  4.57k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 4.57k, False: 654]
  ------------------
  216|  4.57k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 1.31k, False: 3.26k]
  ------------------
  217|  1.31k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 666, False: 652]
  ------------------
  218|    666|        os << ", " << _(label);
  ------------------
  |  |   40|    666|#define _(String) (String)
  ------------------
  219|    666|      } else {
  220|    652|        os << _(label);
  ------------------
  |  |   40|    652|#define _(String) (String)
  ------------------
  221|    652|        sep = true;
  222|    652|      }
  223|  1.31k|    }
  224|  4.57k|  }
  225|    654|  return os;
  226|    874|}
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: 656, False: 334]
  ------------------
  184|    656|    return os << _(td->label_);
  ------------------
  |  |   40|    656|#define _(String) (String)
  ------------------
  185|    334|  return os << "(" << value << ")";
  186|    990|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusFlashControlModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusFlashControlModeEEEERNSt3__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: 76, False: 42]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    118|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.21k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.21k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.21k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.21k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.21k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.21k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.21k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 632, False: 584]
  ------------------
  184|    632|    return os << _(td->label_);
  ------------------
  |  |   40|    632|#define _(String) (String)
  ------------------
  185|    584|  return os << "(" << value << ")";
  186|  1.21k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusModifiedSaturationEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusModifiedSaturationEEEERNSt3__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: 192, False: 84]
  ------------------
  184|    192|    return os << _(td->label_);
  ------------------
  |  |   40|    192|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    276|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    110|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    110|  static_assert(N > 0, "Passed zero length printTag");
  195|    110|  return printTag<N, array>(os, value.toInt64(), data);
  196|    110|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    110|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    110|  static_assert(N > 0, "Passed zero length printTag");
  183|    110|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 82, False: 28]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|    110|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm4ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L21olympusNoiseReductionEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    260|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    260|  static_assert(N > 0, "Passed zero length printTag");
  208|    260|  const auto val = value.toUint32();
  209|    260|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 38, False: 222]
  ------------------
  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|    260|  bool sep = false;
  215|  1.04k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.04k, False: 260]
  ------------------
  216|  1.04k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 386, False: 654]
  ------------------
  217|    386|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 166, False: 220]
  ------------------
  218|    166|        os << ", " << _(label);
  ------------------
  |  |   40|    166|#define _(String) (String)
  ------------------
  219|    220|      } else {
  220|    220|        os << _(label);
  ------------------
  |  |   40|    220|#define _(String) (String)
  ------------------
  221|    220|        sep = true;
  222|    220|      }
  223|    386|    }
  224|  1.04k|  }
  225|    260|  return os;
  226|    260|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    862|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    862|  static_assert(N > 0, "Passed zero length printTag");
  195|    862|  return printTag<N, array>(os, value.toInt64(), data);
  196|    862|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    862|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    862|  static_assert(N > 0, "Passed zero length printTag");
  183|    862|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 600, False: 262]
  ------------------
  184|    600|    return os << _(td->label_);
  ------------------
  |  |   40|    600|#define _(String) (String)
  ------------------
  185|    262|  return os << "(" << value << ")";
  186|    862|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26olympusPictureModeBWFilterEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26olympusPictureModeBWFilterEEEERNSt3__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: 204, False: 52]
  ------------------
  184|    204|    return os << _(td->label_);
  ------------------
  |  |   40|    204|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    256|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusPictureModeToneEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusPictureModeToneEEEERNSt3__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: 132, False: 82]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    214|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     44|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     44|  static_assert(N > 0, "Passed zero length printTag");
  195|     44|  return printTag<N, array>(os, value.toInt64(), data);
  196|     44|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     44|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     44|  static_assert(N > 0, "Passed zero length printTag");
  183|     44|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 12]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     12|  return os << "(" << value << ")";
  186|     44|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    128|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    128|  static_assert(N > 0, "Passed zero length printTag");
  195|    128|  return printTag<N, array>(os, value.toInt64(), data);
  196|    128|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusImageStabilizationEEEERNSt3__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: 90, False: 38]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    128|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusEqFlashTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    830|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    830|  static_assert(N > 0, "Passed zero length printTag");
  195|    830|  return printTag<N, array>(os, value.toInt64(), data);
  196|    830|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusEqFlashTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    830|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    830|  static_assert(N > 0, "Passed zero length printTag");
  183|    830|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 392, False: 438]
  ------------------
  184|    392|    return os << _(td->label_);
  ------------------
  |  |   40|    392|#define _(String) (String)
  ------------------
  185|    438|  return os << "(" << value << ")";
  186|    830|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusEqFlashModelEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusEqFlashModelEEEERNSt3__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: 214, False: 30]
  ------------------
  184|    214|    return os << _(td->label_);
  ------------------
  |  |   40|    214|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    244|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdColorSpaceEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdColorSpaceEEEERNSt3__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: 136, False: 62]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    198|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusRdEngineEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusRdEngineEEEERNSt3__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: 352, False: 148]
  ------------------
  184|    352|    return os << _(td->label_);
  ------------------
  |  |   40|    352|#define _(String) (String)
  ------------------
  185|    148|  return os << "(" << value << ")";
  186|    500|}
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: 112, False: 84]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    196|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm8ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L17olympusRdSettingsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    906|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    906|  static_assert(N > 0, "Passed zero length printTag");
  208|    906|  const auto val = value.toUint32();
  209|    906|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 28, False: 878]
  ------------------
  210|     28|    auto [mask, label] = *array;
  211|     28|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 28]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|     28|  }
  214|    906|  bool sep = false;
  215|  7.24k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 7.24k, False: 906]
  ------------------
  216|  7.24k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 2.45k, False: 4.79k]
  ------------------
  217|  2.45k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 1.63k, False: 814]
  ------------------
  218|  1.63k|        os << ", " << _(label);
  ------------------
  |  |   40|  1.63k|#define _(String) (String)
  ------------------
  219|  1.63k|      } else {
  220|    814|        os << _(label);
  ------------------
  |  |   40|    814|#define _(String) (String)
  ------------------
  221|    814|        sep = true;
  222|    814|      }
  223|  2.45k|    }
  224|  7.24k|  }
  225|    906|  return os;
  226|    906|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusRd2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    124|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    124|  static_assert(N > 0, "Passed zero length printTag");
  195|    124|  return printTag<N, array>(os, value.toInt64(), data);
  196|    124|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusRd2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    124|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    124|  static_assert(N > 0, "Passed zero length printTag");
  183|    124|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 86]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    124|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRd2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    240|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    240|  static_assert(N > 0, "Passed zero length printTag");
  195|    240|  return printTag<N, array>(os, value.toInt64(), data);
  196|    240|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRd2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    240|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    240|  static_assert(N > 0, "Passed zero length printTag");
  183|    240|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 182, False: 58]
  ------------------
  184|    182|    return os << _(td->label_);
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    240|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusRd2EngineEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusRd2EngineEEEERNSt3__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: 58, False: 36]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|     94|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PictureModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PictureModeEEEERNSt3__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: 196, False: 282]
  ------------------
  184|    196|    return os << _(td->label_);
  ------------------
  |  |   40|    196|#define _(String) (String)
  ------------------
  185|    282|  return os << "(" << value << ")";
  186|    478|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PM_BWFilterEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PM_BWFilterEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusRd2PMPictureToneEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusRd2PMPictureToneEEEERNSt3__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: 100, False: 44]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    144|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29olympusIpMultipleExposureModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29olympusIpMultipleExposureModeEEEERNSt3__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: 40, False: 6]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     46|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusIpAspectRatioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     58|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     58|  static_assert(N > 0, "Passed zero length printTag");
  195|     58|  return printTag<N, array>(os, value.toInt64(), data);
  196|     58|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusIpAspectRatioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     58|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     58|  static_assert(N > 0, "Passed zero length printTag");
  183|     58|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 10]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     10|  return os << "(" << value << ")";
  186|     58|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28olympusFiExternalFlashBounceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     18|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     18|  static_assert(N > 0, "Passed zero length printTag");
  195|     18|  return printTag<N, array>(os, value.toInt64(), data);
  196|     18|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28olympusFiExternalFlashBounceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     18|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     18|  static_assert(N > 0, "Passed zero length printTag");
  183|     18|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 6]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     18|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRiLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRiLightSourceEEEERNSt3__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: 296, False: 66]
  ------------------
  184|    296|    return os << _(td->label_);
  ------------------
  |  |   40|    296|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    362|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10artFiltersEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    928|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    928|  static_assert(N > 0, "Passed zero length printTag");
  183|    928|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 718, False: 210]
  ------------------
  184|    718|    return os << _(td->label_);
  ------------------
  |  |   40|    718|#define _(String) (String)
  ------------------
  185|    210|  return os << "(" << value << ")";
  186|    928|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    802|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    802|  static_assert(N > 0, "Passed zero length printTag");
  195|    802|  return printTag<N, array>(os, value.toInt64(), data);
  196|    802|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    802|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    802|  static_assert(N > 0, "Passed zero length printTag");
  183|    802|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 378, False: 424]
  ------------------
  184|    378|    return os << _(td->label_);
  ------------------
  |  |   40|    378|#define _(String) (String)
  ------------------
  185|    424|  return os << "(" << value << ")";
  186|    802|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    464|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    464|  static_assert(N > 0, "Passed zero length printTag");
  195|    464|  return printTag<N, array>(os, value.toInt64(), data);
  196|    464|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    464|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    464|  static_assert(N > 0, "Passed zero length printTag");
  183|    464|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 312, False: 152]
  ------------------
  184|    312|    return os << _(td->label_);
  ------------------
  |  |   40|    312|#define _(String) (String)
  ------------------
  185|    152|  return os << "(" << value << ")";
  186|    464|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    654|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    654|  static_assert(N > 0, "Passed zero length printTag");
  195|    654|  return printTag<N, array>(os, value.toInt64(), data);
  196|    654|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    654|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    654|  static_assert(N > 0, "Passed zero length printTag");
  183|    654|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 366, False: 288]
  ------------------
  184|    366|    return os << _(td->label_);
  ------------------
  |  |   40|    366|#define _(String) (String)
  ------------------
  185|    288|  return os << "(" << value << ")";
  186|    654|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicImageStabilizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    426|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    426|  static_assert(N > 0, "Passed zero length printTag");
  195|    426|  return printTag<N, array>(os, value.toInt64(), data);
  196|    426|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicImageStabilizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    426|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    426|  static_assert(N > 0, "Passed zero length printTag");
  183|    426|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 254, False: 172]
  ------------------
  184|    254|    return os << _(td->label_);
  ------------------
  |  |   40|    254|#define _(String) (String)
  ------------------
  185|    172|  return os << "(" << value << ")";
  186|    426|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    464|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    464|  static_assert(N > 0, "Passed zero length printTag");
  195|    464|  return printTag<N, array>(os, value.toInt64(), data);
  196|    464|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    464|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    464|  static_assert(N > 0, "Passed zero length printTag");
  183|    464|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 112, False: 352]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    352|  return os << "(" << value << ")";
  186|    464|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm77ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    400|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    400|  static_assert(N > 0, "Passed zero length printTag");
  195|    400|  return printTag<N, array>(os, value.toInt64(), data);
  196|    400|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm77ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    400|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    400|  static_assert(N > 0, "Passed zero length printTag");
  183|    400|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 264, False: 136]
  ------------------
  184|    264|    return os << _(td->label_);
  ------------------
  |  |   40|    264|#define _(String) (String)
  ------------------
  185|    136|  return os << "(" << value << ")";
  186|    400|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicAudioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    242|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    242|  static_assert(N > 0, "Passed zero length printTag");
  195|    242|  return printTag<N, array>(os, value.toInt64(), data);
  196|    242|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicAudioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    242|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    242|  static_assert(N > 0, "Passed zero length printTag");
  183|    242|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 158, False: 84]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    242|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicColorEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    276|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    276|  static_assert(N > 0, "Passed zero length printTag");
  195|    276|  return printTag<N, array>(os, value.toInt64(), data);
  196|    276|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicColorEffectEEEERNSt3__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: 74, False: 202]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|    202|  return os << "(" << value << ")";
  186|    276|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicBurstModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    170|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    170|  static_assert(N > 0, "Passed zero length printTag");
  195|    170|  return printTag<N, array>(os, value.toInt64(), data);
  196|    170|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicBurstModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    170|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    170|  static_assert(N > 0, "Passed zero length printTag");
  183|    170|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 108, False: 62]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    170|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicContrastEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicContrastEEEERNSt3__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: 282, False: 196]
  ------------------
  184|    282|    return os << _(td->label_);
  ------------------
  |  |   40|    282|#define _(String) (String)
  ------------------
  185|    196|  return os << "(" << value << ")";
  186|    478|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    376|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    376|  static_assert(N > 0, "Passed zero length printTag");
  195|    376|  return printTag<N, array>(os, value.toInt64(), data);
  196|    376|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    376|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    376|  static_assert(N > 0, "Passed zero length printTag");
  183|    376|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 256, False: 120]
  ------------------
  184|    256|    return os << _(td->label_);
  ------------------
  |  |   40|    256|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    376|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicSelfTimerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    120|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    120|  static_assert(N > 0, "Passed zero length printTag");
  195|    120|  return printTag<N, array>(os, value.toInt64(), data);
  196|    120|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicSelfTimerEEEERNSt3__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: 72, False: 48]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|    120|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicRotationEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicRotationEEEERNSt3__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: 146, False: 184]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|    184|  return os << "(" << value << ")";
  186|    330|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicAFAssistLampEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    196|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    196|  static_assert(N > 0, "Passed zero length printTag");
  195|    196|  return printTag<N, array>(os, value.toInt64(), data);
  196|    196|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicAFAssistLampEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    196|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    196|  static_assert(N > 0, "Passed zero length printTag");
  183|    196|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 138]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|    138|  return os << "(" << value << ")";
  186|    196|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    400|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    400|  static_assert(N > 0, "Passed zero length printTag");
  195|    400|  return printTag<N, array>(os, value.toInt64(), data);
  196|    400|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    400|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    400|  static_assert(N > 0, "Passed zero length printTag");
  183|    400|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 216, False: 184]
  ------------------
  184|    216|    return os << _(td->label_);
  ------------------
  |  |   40|    216|#define _(String) (String)
  ------------------
  185|    184|  return os << "(" << value << ")";
  186|    400|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicOpticalZoomModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    196|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    196|  static_assert(N > 0, "Passed zero length printTag");
  195|    196|  return printTag<N, array>(os, value.toInt64(), data);
  196|    196|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicOpticalZoomModeEEEERNSt3__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: 106, False: 90]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    196|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicConversionLensEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    236|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    236|  static_assert(N > 0, "Passed zero length printTag");
  195|    236|  return printTag<N, array>(os, value.toInt64(), data);
  196|    236|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicConversionLensEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    236|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    236|  static_assert(N > 0, "Passed zero length printTag");
  183|    236|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 102, False: 134]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    236|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicWorldTimeLocationEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicWorldTimeLocationEEEERNSt3__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: 28, False: 38]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|     66|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicTextStampEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     80|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     80|  static_assert(N > 0, "Passed zero length printTag");
  195|     80|  return printTag<N, array>(os, value.toInt64(), data);
  196|     80|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicTextStampEEEERNSt3__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: 28, False: 52]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|     80|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicFilmModeEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicFilmModeEEEERNSt3__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: 278, False: 158]
  ------------------
  184|    278|    return os << _(td->label_);
  ------------------
  |  |   40|    278|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|    436|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicBracketSettingsEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicBracketSettingsEEEERNSt3__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: 124, False: 90]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    214|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashCurtainEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashCurtainEEEERNSt3__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: 110, False: 188]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    188|  return os << "(" << value << ")";
  186|    298|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34panasonicLongShutterNoiseReductionEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34panasonicLongShutterNoiseReductionEEEERNSt3__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: 32, False: 50]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|     82|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicIntelligentExposureEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    280|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    280|  static_assert(N > 0, "Passed zero length printTag");
  195|    280|  return printTag<N, array>(os, value.toInt64(), data);
  196|    280|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicIntelligentExposureEEEERNSt3__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: 200, False: 80]
  ------------------
  184|    200|    return os << _(td->label_);
  ------------------
  |  |   40|    200|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    280|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashWarningEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashWarningEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    116|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    116|  static_assert(N > 0, "Passed zero length printTag");
  183|    116|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 50]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    116|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30panasonicIntelligentResolutionEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30panasonicIntelligentResolutionEEEERNSt3__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: 122, False: 36]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    158|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicIntelligentDRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    286|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    286|  static_assert(N > 0, "Passed zero length printTag");
  195|    286|  return printTag<N, array>(os, value.toInt64(), data);
  196|    286|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicIntelligentDRangeEEEERNSt3__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: 190, False: 96]
  ------------------
  184|    190|    return os << _(td->label_);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    286|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicClearRetouchEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicClearRetouchEEEERNSt3__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: 48, False: 20]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     68|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicPhotoStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    236|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    236|  static_assert(N > 0, "Passed zero length printTag");
  195|    236|  return printTag<N, array>(os, value.toInt64(), data);
  196|    236|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicPhotoStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    236|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    236|  static_assert(N > 0, "Passed zero length printTag");
  183|    236|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 132, False: 104]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|    104|  return os << "(" << value << ")";
  186|    236|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicShadingCompensationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    120|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    120|  static_assert(N > 0, "Passed zero length printTag");
  195|    120|  return printTag<N, array>(os, value.toInt64(), data);
  196|    120|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicShadingCompensationEEEERNSt3__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: 62, False: 58]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    120|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicCameraOrientationEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicCameraOrientationEEEERNSt3__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: 318, False: 122]
  ------------------
  184|    318|    return os << _(td->label_);
  ------------------
  |  |   40|    318|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    440|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31panasonicSweepPanoramaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    424|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    424|  static_assert(N > 0, "Passed zero length printTag");
  195|    424|  return printTag<N, array>(os, value.toInt64(), data);
  196|    424|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31panasonicSweepPanoramaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    424|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    424|  static_assert(N > 0, "Passed zero length printTag");
  183|    424|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 348, False: 76]
  ------------------
  184|    348|    return os << _(td->label_);
  ------------------
  |  |   40|    348|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    424|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicTimerRecordingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    140|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    140|  static_assert(N > 0, "Passed zero length printTag");
  195|    140|  return printTag<N, array>(os, value.toInt64(), data);
  196|    140|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicTimerRecordingEEEERNSt3__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: 108, False: 32]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    140|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12panasonicHDREEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12panasonicHDREEEERNSt3__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: 176, False: 160]
  ------------------
  184|    176|    return os << _(td->label_);
  ------------------
  |  |   40|    176|#define _(String) (String)
  ------------------
  185|    160|  return os << "(" << value << ")";
  186|    336|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicShutterTypeEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicShutterTypeEEEERNSt3__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: 90, False: 44]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    134|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicTouchAEEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicTouchAEEEEERNSt3__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: 46, False: 68]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    114|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicFlashFiredEEEERNSt3__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_L19panasonicFlashFiredEEEERNSt3__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: 52, False: 54]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    106|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    398|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    398|  static_assert(N > 0, "Passed zero length printTag");
  195|    398|  return printTag<N, array>(os, value.toInt64(), data);
  196|    398|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    398|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    398|  static_assert(N > 0, "Passed zero length printTag");
  183|    398|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 332, False: 66]
  ------------------
  184|    332|    return os << _(td->label_);
  ------------------
  |  |   40|    332|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    398|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm147ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    236|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    236|  static_assert(N > 0, "Passed zero length printTag");
  195|    236|  return printTag<N, array>(os, value.toInt64(), data);
  196|    236|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm147ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    236|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    236|  static_assert(N > 0, "Passed zero length printTag");
  183|    236|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 218]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|    218|  return os << "(" << value << ")";
  186|    236|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    938|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    938|  static_assert(N > 0, "Passed zero length printTag");
  195|    938|  return printTag<N, array>(os, value.toInt64(), data);
  196|    938|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    938|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    938|  static_assert(N > 0, "Passed zero length printTag");
  183|    938|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 492, False: 446]
  ------------------
  184|    492|    return os << _(td->label_);
  ------------------
  |  |   40|    492|#define _(String) (String)
  ------------------
  185|    446|  return os << "(" << value << ")";
  186|    938|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10pentaxSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.01k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.01k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.01k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.01k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10pentaxSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.01k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.01k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.01k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 818, False: 192]
  ------------------
  184|    818|    return os << _(td->label_);
  ------------------
  |  |   40|    818|#define _(String) (String)
  ------------------
  185|    192|  return os << "(" << value << ")";
  186|  1.01k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    852|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    852|  static_assert(N > 0, "Passed zero length printTag");
  195|    852|  return printTag<N, array>(os, value.toInt64(), data);
  196|    852|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    852|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    852|  static_assert(N > 0, "Passed zero length printTag");
  183|    852|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 722, False: 130]
  ------------------
  184|    722|    return os << _(td->label_);
  ------------------
  |  |   40|    722|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    852|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    980|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    980|  static_assert(N > 0, "Passed zero length printTag");
  195|    980|  return printTag<N, array>(os, value.toInt64(), data);
  196|    980|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    980|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    980|  static_assert(N > 0, "Passed zero length printTag");
  183|    980|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 714, False: 266]
  ------------------
  184|    714|    return os << _(td->label_);
  ------------------
  |  |   40|    714|#define _(String) (String)
  ------------------
  185|    266|  return os << "(" << value << ")";
  186|    980|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxAFPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    874|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    874|  static_assert(N > 0, "Passed zero length printTag");
  195|    874|  return printTag<N, array>(os, value.toInt64(), data);
  196|    874|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxAFPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    874|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    874|  static_assert(N > 0, "Passed zero length printTag");
  183|    874|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 658, False: 216]
  ------------------
  184|    658|    return os << _(td->label_);
  ------------------
  |  |   40|    658|#define _(String) (String)
  ------------------
  185|    216|  return os << "(" << value << ")";
  186|    874|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxAFPointFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.04k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.04k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.04k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.04k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxAFPointFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.04k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.04k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.04k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 824, False: 220]
  ------------------
  184|    824|    return os << _(td->label_);
  ------------------
  |  |   40|    824|#define _(String) (String)
  ------------------
  185|    220|  return os << "(" << value << ")";
  186|  1.04k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm79ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9pentaxISOEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm79ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9pentaxISOEEEERNSt3__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: 212, False: 340]
  ------------------
  184|    212|    return os << _(td->label_);
  ------------------
  |  |   40|    212|#define _(String) (String)
  ------------------
  185|    340|  return os << "(" << value << ")";
  186|    552|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxMeteringModeEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxMeteringModeEEEERNSt3__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: 58, False: 60]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|    118|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.01k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.01k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.01k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.01k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.01k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.01k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.01k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 834, False: 184]
  ------------------
  184|    834|    return os << _(td->label_);
  ------------------
  |  |   40|    834|#define _(String) (String)
  ------------------
  185|    184|  return os << "(" << value << ")";
  186|  1.01k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22pentaxWhiteBalanceModeEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22pentaxWhiteBalanceModeEEEERNSt3__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: 380, False: 278]
  ------------------
  184|    380|    return os << _(td->label_);
  ------------------
  |  |   40|    380|#define _(String) (String)
  ------------------
  185|    278|  return os << "(" << value << ")";
  186|    658|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    798|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    798|  static_assert(N > 0, "Passed zero length printTag");
  195|    798|  return printTag<N, array>(os, value.toInt64(), data);
  196|    798|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    798|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    798|  static_assert(N > 0, "Passed zero length printTag");
  183|    798|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 722, False: 76]
  ------------------
  184|    722|    return os << _(td->label_);
  ------------------
  |  |   40|    722|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    798|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    622|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    622|  static_assert(N > 0, "Passed zero length printTag");
  195|    622|  return printTag<N, array>(os, value.toInt64(), data);
  196|    622|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    622|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    622|  static_assert(N > 0, "Passed zero length printTag");
  183|    622|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 476, False: 146]
  ------------------
  184|    476|    return os << _(td->label_);
  ------------------
  |  |   40|    476|#define _(String) (String)
  ------------------
  185|    146|  return os << "(" << value << ")";
  186|    622|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    790|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    790|  static_assert(N > 0, "Passed zero length printTag");
  195|    790|  return printTag<N, array>(os, value.toInt64(), data);
  196|    790|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    790|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    790|  static_assert(N > 0, "Passed zero length printTag");
  183|    790|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 600, False: 190]
  ------------------
  184|    600|    return os << _(td->label_);
  ------------------
  |  |   40|    600|#define _(String) (String)
  ------------------
  185|    190|  return os << "(" << value << ")";
  186|    790|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLocationEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLocationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    210|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    210|  static_assert(N > 0, "Passed zero length printTag");
  183|    210|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 136, False: 74]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    210|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12pentaxCitiesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.37k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.37k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.37k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.37k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12pentaxCitiesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.37k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.37k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.37k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.77k, False: 600]
  ------------------
  184|  1.77k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.77k|#define _(String) (String)
  ------------------
  185|    600|  return os << "(" << value << ")";
  186|  2.37k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxYesNoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    186|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    186|  static_assert(N > 0, "Passed zero length printTag");
  195|    186|  return printTag<N, array>(os, value.toInt64(), data);
  196|    186|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxYesNoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    186|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    186|  static_assert(N > 0, "Passed zero length printTag");
  183|    186|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 68, False: 118]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|    118|  return os << "(" << value << ")";
  186|    186|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    202|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    202|  static_assert(N > 0, "Passed zero length printTag");
  195|    202|  return printTag<N, array>(os, value.toInt64(), data);
  196|    202|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    202|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    202|  static_assert(N > 0, "Passed zero length printTag");
  183|    202|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 86, False: 116]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    202|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxOffOnEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxOffOnEEEERNSt3__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: 28, False: 74]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    102|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxImageToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    836|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    836|  static_assert(N > 0, "Passed zero length printTag");
  195|    836|  return printTag<N, array>(os, value.toInt64(), data);
  196|    836|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxImageToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    836|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    836|  static_assert(N > 0, "Passed zero length printTag");
  183|    836|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 632, False: 204]
  ------------------
  184|    632|    return os << _(td->label_);
  ------------------
  |  |   40|    632|#define _(String) (String)
  ------------------
  185|    204|  return os << "(" << value << ")";
  186|    836|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxHighISONoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    760|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    760|  static_assert(N > 0, "Passed zero length printTag");
  195|    760|  return printTag<N, array>(os, value.toInt64(), data);
  196|    760|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxHighISONoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    760|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    760|  static_assert(N > 0, "Passed zero length printTag");
  183|    760|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 472, False: 288]
  ------------------
  184|    472|    return os << _(td->label_);
  ------------------
  |  |   40|    472|#define _(String) (String)
  ------------------
  185|    288|  return os << "(" << value << ")";
  186|    760|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16samsung2LensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.04k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.04k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.04k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.04k|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16samsung2LensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.04k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.04k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.04k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.61k, False: 438]
  ------------------
  184|  1.61k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.61k|#define _(String) (String)
  ------------------
  185|    438|  return os << "(" << value << ")";
  186|  2.04k|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2ColorSpaceEEEERNSt3__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|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2ColorSpaceEEEERNSt3__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: 58, False: 32]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|     90|}
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: 32, False: 18]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     50|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13samsungPwModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     54|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     54|  static_assert(N > 0, "Passed zero length printTag");
  195|     54|  return printTag<N, array>(os, value.toInt64(), data);
  196|     54|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13samsungPwModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     54|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     54|  static_assert(N > 0, "Passed zero length printTag");
  183|     54|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 26]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     54|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyHDRStdPart1EEEERNSt3__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: 270, False: 22]
  ------------------
  184|    270|    return os << _(td->label_);
  ------------------
  |  |   40|    270|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|    292|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyHDRStdPart2EEEERNSt3__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: 130, False: 162]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|    162|  return os << "(" << value << ")";
  186|    292|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    575|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    575|  static_assert(N > 0, "Passed zero length printTag");
  183|    575|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 194, False: 381]
  ------------------
  184|    194|    return os << _(td->label_);
  ------------------
  |  |   40|    194|#define _(String) (String)
  ------------------
  185|    381|  return os << "(" << value << ")";
  186|    575|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    315|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    315|  static_assert(N > 0, "Passed zero length printTag");
  183|    315|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 244, False: 71]
  ------------------
  184|    244|    return os << _(td->label_);
  ------------------
  |  |   40|    244|#define _(String) (String)
  ------------------
  185|     71|  return os << "(" << value << ")";
  186|    315|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.00k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.00k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.00k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 813, False: 188]
  ------------------
  184|    813|    return os << _(td->label_);
  ------------------
  |  |   40|    813|#define _(String) (String)
  ------------------
  185|    188|  return os << "(" << value << ")";
  186|  1.00k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.47k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.47k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.47k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.05k, False: 412]
  ------------------
  184|  1.05k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.05k|#define _(String) (String)
  ------------------
  185|    412|  return os << "(" << value << ")";
  186|  1.47k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    587|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    587|  static_assert(N > 0, "Passed zero length printTag");
  183|    587|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 517, False: 70]
  ------------------
  184|    517|    return os << _(td->label_);
  ------------------
  |  |   40|    517|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    587|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    712|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    712|  static_assert(N > 0, "Passed zero length printTag");
  195|    712|  return printTag<N, array>(os, value.toInt64(), data);
  196|    712|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    712|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    712|  static_assert(N > 0, "Passed zero length printTag");
  183|    712|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 464, False: 248]
  ------------------
  184|    464|    return os << _(td->label_);
  ------------------
  |  |   40|    464|#define _(String) (String)
  ------------------
  185|    248|  return os << "(" << value << ")";
  186|    712|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet3EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet3EEEERNSt3__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: 131, False: 249]
  ------------------
  184|    131|    return os << _(td->label_);
  ------------------
  |  |   40|    131|#define _(String) (String)
  ------------------
  185|    249|  return os << "(" << value << ")";
  186|    380|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet4EEEERNSt3__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: 221, False: 125]
  ------------------
  184|    221|    return os << _(td->label_);
  ------------------
  |  |   40|    221|#define _(String) (String)
  ------------------
  185|    125|  return os << "(" << value << ")";
  186|    346|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet5EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    750|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    750|  static_assert(N > 0, "Passed zero length printTag");
  183|    750|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 476, False: 274]
  ------------------
  184|    476|    return os << _(td->label_);
  ------------------
  |  |   40|    476|#define _(String) (String)
  ------------------
  185|    274|  return os << "(" << value << ")";
  186|    750|}
sonymn_int.cpp:_ZN5Exiv28Internal20printTagBitlistAllLEILm19ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20sonyAFPointsUsedSet1EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  238|    184|std::ostream& printTagBitlistAllLE(std::ostream& os, const Value& value, const ExifData*) {
  239|    184|  static_assert(N > 0, "Passed zero length TagDetailsBitlistSorted");
  240|       |
  241|    184|  uint32_t vN = 0;
  242|    184|  uint32_t currentVNBit = 0;
  243|    184|  size_t lastArrayPos = 0;  // Prevents unneeded searching of array
  244|    184|  constexpr auto maxArrayBit = (array + N - 1)->first;
  245|    184|  auto allVNZero = true;
  246|    184|  auto useSep = false;
  247|       |
  248|       |  // For each value
  249|  4.19k|  for (size_t i = 0; i < value.count(); i++) {
  ------------------
  |  Branch (249:22): [True: 4.01k, False: 184]
  ------------------
  250|  4.01k|    vN = value.toUint32(i);
  251|  4.01k|    if (vN == 0) {  // If all bits zero, then nothing to process
  ------------------
  |  Branch (251:9): [True: 1.24k, False: 2.76k]
  ------------------
  252|  1.24k|      currentVNBit += 8;
  253|  1.24k|      continue;
  254|  1.24k|    }
  255|  2.76k|    allVNZero = false;
  256|       |    // Cycle through every bit in that byte
  257|  24.9k|    for (auto j = 0; j < 8; j++, currentVNBit++) {
  ------------------
  |  Branch (257:22): [True: 22.1k, False: 2.76k]
  ------------------
  258|  22.1k|      if ((vN >> j & 0x01) == 0) {  // If bit not set, then nothing to process
  ------------------
  |  Branch (258:11): [True: 10.0k, False: 12.1k]
  ------------------
  259|  10.0k|        continue;
  260|  10.0k|      }
  261|  12.1k|      if (currentVNBit > maxArrayBit) {  // If beyond array values, output unknown index
  ------------------
  |  Branch (261:11): [True: 10.4k, False: 1.63k]
  ------------------
  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.68k|      for (size_t k = lastArrayPos; k < N; ++k) {
  ------------------
  |  Branch (267:37): [True: 3.68k, False: 0]
  ------------------
  268|  3.68k|        auto [bit, label] = *(array + k);
  269|       |
  270|  3.68k|        if (currentVNBit == bit) {
  ------------------
  |  Branch (270:13): [True: 1.63k, False: 2.04k]
  ------------------
  271|  1.63k|          lastArrayPos = k;
  272|  1.63k|          if (useSep) {
  ------------------
  |  Branch (272:15): [True: 1.48k, False: 152]
  ------------------
  273|  1.48k|            os << ", " << _(label);
  ------------------
  |  |   40|  1.48k|#define _(String) (String)
  ------------------
  274|  1.48k|          } else {
  275|    152|            os << _(label);
  ------------------
  |  |   40|    152|#define _(String) (String)
  ------------------
  276|    152|            useSep = true;
  277|    152|          }
  278|  1.63k|          break;
  279|  1.63k|        }
  280|  3.68k|      }
  281|  1.63k|    }
  282|  2.76k|  }
  283|    184|  if (allVNZero)
  ------------------
  |  Branch (283:7): [True: 27, False: 157]
  ------------------
  284|     27|    os << _("None");
  ------------------
  |  |   40|     27|#define _(String) (String)
  ------------------
  285|    184|  return os;
  286|    184|}
sonymn_int.cpp:_ZN5Exiv28Internal20printTagBitlistAllLEILm80ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20sonyAFPointsUsedSet2EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  238|    104|std::ostream& printTagBitlistAllLE(std::ostream& os, const Value& value, const ExifData*) {
  239|    104|  static_assert(N > 0, "Passed zero length TagDetailsBitlistSorted");
  240|       |
  241|    104|  uint32_t vN = 0;
  242|    104|  uint32_t currentVNBit = 0;
  243|    104|  size_t lastArrayPos = 0;  // Prevents unneeded searching of array
  244|    104|  constexpr auto maxArrayBit = (array + N - 1)->first;
  245|    104|  auto allVNZero = true;
  246|    104|  auto useSep = false;
  247|       |
  248|       |  // For each value
  249|  1.73k|  for (size_t i = 0; i < value.count(); i++) {
  ------------------
  |  Branch (249:22): [True: 1.63k, False: 104]
  ------------------
  250|  1.63k|    vN = value.toUint32(i);
  251|  1.63k|    if (vN == 0) {  // If all bits zero, then nothing to process
  ------------------
  |  Branch (251:9): [True: 661, False: 971]
  ------------------
  252|    661|      currentVNBit += 8;
  253|    661|      continue;
  254|    661|    }
  255|    971|    allVNZero = false;
  256|       |    // Cycle through every bit in that byte
  257|  8.73k|    for (auto j = 0; j < 8; j++, currentVNBit++) {
  ------------------
  |  Branch (257:22): [True: 7.76k, False: 971]
  ------------------
  258|  7.76k|      if ((vN >> j & 0x01) == 0) {  // If bit not set, then nothing to process
  ------------------
  |  Branch (258:11): [True: 3.21k, False: 4.55k]
  ------------------
  259|  3.21k|        continue;
  260|  3.21k|      }
  261|  4.55k|      if (currentVNBit > maxArrayBit) {  // If beyond array values, output unknown index
  ------------------
  |  Branch (261:11): [True: 1.30k, False: 3.24k]
  ------------------
  262|  1.30k|        os << ", [" << currentVNBit << "]";
  263|  1.30k|        continue;
  264|  1.30k|      }
  265|       |
  266|       |      // Check to see if the numbered bit is found in the array
  267|  13.4k|      for (size_t k = lastArrayPos; k < N; ++k) {
  ------------------
  |  Branch (267:37): [True: 12.2k, False: 1.13k]
  ------------------
  268|  12.2k|        auto [bit, label] = *(array + k);
  269|       |
  270|  12.2k|        if (currentVNBit == bit) {
  ------------------
  |  Branch (270:13): [True: 2.11k, False: 10.1k]
  ------------------
  271|  2.11k|          lastArrayPos = k;
  272|  2.11k|          if (useSep) {
  ------------------
  |  Branch (272:15): [True: 2.04k, False: 65]
  ------------------
  273|  2.04k|            os << ", " << _(label);
  ------------------
  |  |   40|  2.04k|#define _(String) (String)
  ------------------
  274|  2.04k|          } else {
  275|     65|            os << _(label);
  ------------------
  |  |   40|     65|#define _(String) (String)
  ------------------
  276|     65|            useSep = true;
  277|     65|          }
  278|  2.11k|          break;
  279|  2.11k|        }
  280|  12.2k|      }
  281|  3.24k|    }
  282|    971|  }
  283|    104|  if (allVNZero)
  ------------------
  |  Branch (283:7): [True: 36, False: 68]
  ------------------
  284|     36|    os << _("None");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  285|    104|  return os;
  286|    104|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFTrackingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    513|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    513|  static_assert(N > 0, "Passed zero length printTag");
  183|    513|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 473, False: 40]
  ------------------
  184|    473|    return os << _(td->label_);
  ------------------
  |  |   40|    473|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    513|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFocusModeEEEERNSt3__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: 43, False: 39]
  ------------------
  184|     43|    return os << _(td->label_);
  ------------------
  |  |   40|     43|#define _(String) (String)
  ------------------
  185|     39|  return os << "(" << value << ")";
  186|     82|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFModeSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    173|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    173|  static_assert(N > 0, "Passed zero length printTag");
  183|    173|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 152, False: 21]
  ------------------
  184|    152|    return os << _(td->label_);
  ------------------
  |  |   40|    152|#define _(String) (String)
  ------------------
  185|     21|  return os << "(" << value << ")";
  186|    173|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFModeSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     77|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     77|  static_assert(N > 0, "Passed zero length printTag");
  183|     77|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 59, False: 18]
  ------------------
  184|     59|    return os << _(td->label_);
  ------------------
  |  |   40|     59|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     77|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFocusMode3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     41|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     41|  static_assert(N > 0, "Passed zero length printTag");
  183|     41|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 7]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|      7|  return os << "(" << value << ")";
  186|     41|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyHighISONoiseReduction2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    247|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    247|  static_assert(N > 0, "Passed zero length printTag");
  183|    247|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 176, False: 71]
  ------------------
  184|    176|    return os << _(td->label_);
  ------------------
  |  |   40|    176|#define _(String) (String)
  ------------------
  185|     71|  return os << "(" << value << ")";
  186|    247|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.46k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.46k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.46k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.46k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyImageQualityEEEERNSt3__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: 1.20k, False: 258]
  ------------------
  184|  1.20k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.20k|#define _(String) (String)
  ------------------
  185|    258|  return os << "(" << value << ")";
  186|  1.46k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    638|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    638|  static_assert(N > 0, "Passed zero length printTag");
  195|    638|  return printTag<N, array>(os, value.toInt64(), data);
  196|    638|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    638|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    638|  static_assert(N > 0, "Passed zero length printTag");
  183|    638|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 500, False: 138]
  ------------------
  184|    500|    return os << _(td->label_);
  ------------------
  |  |   40|    500|#define _(String) (String)
  ------------------
  185|    138|  return os << "(" << value << ")";
  186|    638|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    714|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    714|  static_assert(N > 0, "Passed zero length printTag");
  195|    714|  return printTag<N, array>(os, value.toInt64(), data);
  196|    714|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    714|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    714|  static_assert(N > 0, "Passed zero length printTag");
  183|    714|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 488, False: 226]
  ------------------
  184|    488|    return os << _(td->label_);
  ------------------
  |  |   40|    488|#define _(String) (String)
  ------------------
  185|    226|  return os << "(" << value << ")";
  186|    714|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyHighISONoiseReductionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    656|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    656|  static_assert(N > 0, "Passed zero length printTag");
  195|    656|  return printTag<N, array>(os, value.toInt64(), data);
  196|    656|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyHighISONoiseReductionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    656|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    656|  static_assert(N > 0, "Passed zero length printTag");
  183|    656|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 438, False: 218]
  ------------------
  184|    438|    return os << _(td->label_);
  ------------------
  |  |   40|    438|#define _(String) (String)
  ------------------
  185|    218|  return os << "(" << value << ")";
  186|    656|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA1EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA1EEEERNSt3__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: 156, False: 64]
  ------------------
  184|    156|    return os << _(td->label_);
  ------------------
  |  |   40|    156|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    220|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm36ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyPictureEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.32k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm36ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyPictureEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.16k, False: 162]
  ------------------
  184|  1.16k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.16k|#define _(String) (String)
  ------------------
  185|    162|  return os << "(" << value << ")";
  186|  1.32k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySoftSkinEffectEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySoftSkinEffectEEEERNSt3__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: 164, False: 100]
  ------------------
  184|    164|    return os << _(td->label_);
  ------------------
  |  |   40|    164|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    264|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyVignettingCorrectionEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyVignettingCorrectionEEEERNSt3__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: 126, False: 68]
  ------------------
  184|    126|    return os << _(td->label_);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    194|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLateralChromaticAberrationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    406|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    406|  static_assert(N > 0, "Passed zero length printTag");
  195|    406|  return printTag<N, array>(os, value.toInt64(), data);
  196|    406|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLateralChromaticAberrationEEEERNSt3__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: 316, False: 90]
  ------------------
  184|    316|    return os << _(td->label_);
  ------------------
  |  |   40|    316|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    406|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyDistortionCorrectionSettingsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    186|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    186|  static_assert(N > 0, "Passed zero length printTag");
  195|    186|  return printTag<N, array>(os, value.toInt64(), data);
  196|    186|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyDistortionCorrectionSettingsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    186|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    186|  static_assert(N > 0, "Passed zero length printTag");
  183|    186|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 162, False: 24]
  ------------------
  184|    162|    return os << _(td->label_);
  ------------------
  |  |   40|    162|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|    186|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyNoYesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    204|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    204|  static_assert(N > 0, "Passed zero length printTag");
  195|    204|  return printTag<N, array>(os, value.toInt64(), data);
  196|    204|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyNoYesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    204|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    204|  static_assert(N > 0, "Passed zero length printTag");
  183|    204|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 94, False: 110]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    204|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyFlashActionEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyFlashActionEEEERNSt3__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: 124, False: 58]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    182|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyMultiFrameNREffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     26|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     26|  static_assert(N > 0, "Passed zero length printTag");
  195|     26|  return printTag<N, array>(os, value.toInt64(), data);
  196|     26|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyMultiFrameNREffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     26|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     26|  static_assert(N > 0, "Passed zero length printTag");
  183|     26|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 6]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     26|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString2ILm5ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L25sonyVariableLowPassFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  128|    782|std::ostream& printTagString2(std::ostream& os, const Value& value, const ExifData* data) {
  129|    782|  static_assert(N > 0, "Passed zero length printTagString2");
  130|    782|  if (value.count() < 2)
  ------------------
  |  Branch (130:7): [True: 14, False: 768]
  ------------------
  131|     14|    return os << "(" << value << ")";
  132|    768|  std::string temp = value.toString(0) + " " + value.toString(1);
  133|    768|  return printTagString<N, array>(os, temp, data);
  134|    782|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm5ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L25sonyVariableLowPassFilterEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    768|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    768|  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|    768|  } else {
  114|    768|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 350, False: 418]
  ------------------
  115|    350|      return os << _(td->label_);
  ------------------
  |  |   40|    350|#define _(String) (String)
  ------------------
  116|    418|    return os << "(" << value << ")";
  117|    768|  }
  118|    768|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyRAWFileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    360|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    360|  static_assert(N > 0, "Passed zero length printTag");
  195|    360|  return printTag<N, array>(os, value.toInt64(), data);
  196|    360|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyRAWFileTypeEEEERNSt3__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: 256, False: 104]
  ------------------
  184|    256|    return os << _(td->label_);
  ------------------
  |  |   40|    256|#define _(String) (String)
  ------------------
  185|    104|  return os << "(" << value << ")";
  186|    360|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyPrioritySetInAWBEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    458|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    458|  static_assert(N > 0, "Passed zero length printTag");
  195|    458|  return printTag<N, array>(os, value.toInt64(), data);
  196|    458|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyPrioritySetInAWBEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    458|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    458|  static_assert(N > 0, "Passed zero length printTag");
  183|    458|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 310, False: 148]
  ------------------
  184|    310|    return os << _(td->label_);
  ------------------
  |  |   40|    310|#define _(String) (String)
  ------------------
  185|    148|  return os << "(" << value << ")";
  186|    458|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyMeteringMode2EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyMeteringMode2EEEERNSt3__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: 148, False: 168]
  ------------------
  184|    148|    return os << _(td->label_);
  ------------------
  |  |   40|    148|#define _(String) (String)
  ------------------
  185|    168|  return os << "(" << value << ")";
  186|    316|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString2ILm30ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L15sonyQuality2StdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  128|    576|std::ostream& printTagString2(std::ostream& os, const Value& value, const ExifData* data) {
  129|    576|  static_assert(N > 0, "Passed zero length printTagString2");
  130|    576|  if (value.count() < 2)
  ------------------
  |  Branch (130:7): [True: 50, False: 526]
  ------------------
  131|     50|    return os << "(" << value << ")";
  132|    526|  std::string temp = value.toString(0) + " " + value.toString(1);
  133|    526|  return printTagString<N, array>(os, temp, data);
  134|    576|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm30ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L15sonyQuality2StdEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    526|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    526|  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|    526|  } else {
  114|    526|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 94, False: 432]
  ------------------
  115|     94|      return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  116|    432|    return os << "(" << value << ")";
  117|    526|  }
  118|    526|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyJPEGHEIFSwitchEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyJPEGHEIFSwitchEEEERNSt3__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: 48, False: 98]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    146|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString4ILm16ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L14sonyFileFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  144|    592|std::ostream& printTagString4(std::ostream& os, const Value& value, const ExifData* data) {
  145|    592|  static_assert(N > 0, "Passed zero length printTagString4");
  146|    592|  if (value.count() < 4)
  ------------------
  |  Branch (146:7): [True: 124, False: 468]
  ------------------
  147|    124|    return os << "(" << value << ")";
  148|    468|  std::string temp = value.toString(0) + " " + value.toString(1) + " " + value.toString(2) + " " + value.toString(3);
  149|    468|  return printTagString<N, array>(os, temp, data);
  150|    592|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm16ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L14sonyFileFormatEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    468|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    468|  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|    468|  } else {
  114|    468|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 182, False: 286]
  ------------------
  115|    182|      return os << _(td->label_);
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
  116|    286|    return os << "(" << value << ")";
  117|    468|  }
  118|    468|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm113ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11sonyModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  8.36k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  8.36k|  static_assert(N > 0, "Passed zero length printTag");
  195|  8.36k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  8.36k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm113ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11sonyModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  8.36k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  8.36k|  static_assert(N > 0, "Passed zero length printTag");
  183|  8.36k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 7.46k, False: 900]
  ------------------
  184|  7.46k|    return os << _(td->label_);
  ------------------
  |  |   40|  7.46k|#define _(String) (String)
  ------------------
  185|    900|  return os << "(" << value << ")";
  186|  8.36k|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm19ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L20sonyCreativeStyleStdEENS_5ValueEEERNSt3__113basic_ostreamIcNS7_11char_traitsIcEEEESC_RKT1_PKNS_8ExifDataE:
  107|    420|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    420|  static_assert(N > 0, "Passed zero length printTagString");
  109|    420|  if constexpr (std::is_same_v<T, Value>) {
  110|    420|    if (auto td = Exiv2::find(array, value.toString(0)))
  ------------------
  |  Branch (110:14): [True: 48, False: 372]
  ------------------
  111|     48|      return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  112|    372|    return os << "(" << value << ")";
  113|       |  } else {
  114|       |    if (auto td = Exiv2::find(array, value))
  115|       |      return os << _(td->label_);
  116|       |    return os << "(" << value << ")";
  117|       |  }
  118|    420|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb025EEEERNSt3__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:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb025EEEERNSt3__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: 602, False: 122]
  ------------------
  184|    602|    return os << _(td->label_);
  ------------------
  |  |   40|    602|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    724|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    408|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    408|  static_assert(N > 0, "Passed zero length printTag");
  195|    408|  return printTag<N, array>(os, value.toInt64(), data);
  196|    408|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    408|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    408|  static_assert(N > 0, "Passed zero length printTag");
  183|    408|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 170, False: 238]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|    238|  return os << "(" << value << ")";
  186|    408|}
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.53k, False: 604]
  ------------------
  184|  2.53k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.53k|#define _(String) (String)
  ------------------
  185|    604|  return os << "(" << value << ")";
  186|  3.13k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    266|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    266|  static_assert(N > 0, "Passed zero length printTag");
  195|    266|  return printTag<N, array>(os, value.toInt64(), data);
  196|    266|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    266|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    266|  static_assert(N > 0, "Passed zero length printTag");
  183|    266|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 194, False: 72]
  ------------------
  184|    194|    return os << _(td->label_);
  ------------------
  |  |   40|    194|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    266|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm31ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.64k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.64k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.64k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.64k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm31ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.64k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.64k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.64k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.52k, False: 1.11k]
  ------------------
  184|  3.52k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.52k|#define _(String) (String)
  ------------------
  185|  1.11k|  return os << "(" << value << ")";
  186|  4.64k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAFIlluminatorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     90|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     90|  static_assert(N > 0, "Passed zero length printTag");
  195|     90|  return printTag<N, array>(os, value.toInt64(), data);
  196|     90|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAFIlluminatorEEEERNSt3__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: 74, False: 16]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|     16|  return os << "(" << value << ")";
  186|     90|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyJPEGQualityEEEERNSt3__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_L15sonyJPEGQualityEEEERNSt3__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: 138, False: 124]
  ------------------
  184|    138|    return os << _(td->label_);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    262|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFlashLevelEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFlashLevelEEEERNSt3__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: 642, False: 196]
  ------------------
  184|    642|    return os << _(td->label_);
  ------------------
  |  |   40|    642|#define _(String) (String)
  ------------------
  185|    196|  return os << "(" << value << ")";
  186|    838|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.30k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.30k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.30k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.30k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.30k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.30k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.30k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 706, False: 598]
  ------------------
  184|    706|    return os << _(td->label_);
  ------------------
  |  |   40|    706|#define _(String) (String)
  ------------------
  185|    598|  return os << "(" << value << ")";
  186|  1.30k|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagNoErrorILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySequenceNumberEENS_5ValueEEERNSt3__113basic_ostreamIcNS7_11char_traitsIcEEEESC_RKT1_PKNS_8ExifDataE:
  160|    194|std::ostream& printTagNoError(std::ostream& os, const T& value, const ExifData*) {
  161|    194|  static_assert(N > 0, "Passed zero length printTagNoError");
  162|    194|  if constexpr (std::is_same_v<T, Value>) {
  163|    194|    if (auto td = Exiv2::find(array, value.toInt64()))
  ------------------
  |  Branch (163:14): [True: 82, False: 112]
  ------------------
  164|     82|      return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  165|    112|    return os << value;
  166|       |  } else {
  167|       |    if (auto td = Exiv2::find(array, value))
  168|       |      return os << _(td->label_);
  169|       |    return os << value;
  170|       |  }
  171|    194|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyAntiBlurEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    386|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    386|  static_assert(N > 0, "Passed zero length printTag");
  195|    386|  return printTag<N, array>(os, value.toInt64(), data);
  196|    386|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyAntiBlurEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    386|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    386|  static_assert(N > 0, "Passed zero length printTag");
  183|    386|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 98, False: 288]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|    288|  return os << "(" << value << ")";
  186|    386|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb04fEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb04fEEEERNSt3__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: 372, False: 242]
  ------------------
  184|    372|    return os << _(td->label_);
  ------------------
  |  |   40|    372|#define _(String) (String)
  ------------------
  185|    242|  return os << "(" << value << ")";
  186|    614|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyIntelligentAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    116|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    116|  static_assert(N > 0, "Passed zero length printTag");
  195|    116|  return printTag<N, array>(os, value.toInt64(), data);
  196|    116|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyIntelligentAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    116|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    116|  static_assert(N > 0, "Passed zero length printTag");
  183|    116|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 58]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    116|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyWhiteBalance2EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyWhiteBalance2EEEERNSt3__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: 804, False: 152]
  ------------------
  184|    804|    return os << _(td->label_);
  ------------------
  |  |   40|    804|#define _(String) (String)
  ------------------
  185|    152|  return os << "(" << value << ")";
  186|    956|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    464|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    464|  static_assert(N > 0, "Passed zero length printTag");
  195|    464|  return printTag<N, array>(os, value.toInt64(), data);
  196|    464|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    464|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    464|  static_assert(N > 0, "Passed zero length printTag");
  183|    464|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 94, False: 370]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|    370|  return os << "(" << value << ")";
  186|    464|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyCSFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    432|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    432|  static_assert(N > 0, "Passed zero length printTag");
  195|    432|  return printTag<N, array>(os, value.toInt64(), data);
  196|    432|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyCSFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    432|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    432|  static_assert(N > 0, "Passed zero length printTag");
  183|    432|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 106, False: 326]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|    326|  return os << "(" << value << ")";
  186|    432|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    432|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    432|  static_assert(N > 0, "Passed zero length printTag");
  195|    432|  return printTag<N, array>(os, value.toInt64(), data);
  196|    432|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    432|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    432|  static_assert(N > 0, "Passed zero length printTag");
  183|    432|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 402]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    402|  return os << "(" << value << ")";
  186|    432|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyCreativeStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    432|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    432|  static_assert(N > 0, "Passed zero length printTag");
  195|    432|  return printTag<N, array>(os, value.toInt64(), data);
  196|    432|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyCreativeStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    432|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    432|  static_assert(N > 0, "Passed zero length printTag");
  183|    432|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 340]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    340|  return os << "(" << value << ")";
  186|    432|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    352|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    352|  static_assert(N > 0, "Passed zero length printTag");
  195|    352|  return printTag<N, array>(os, value.toInt64(), data);
  196|    352|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    352|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    352|  static_assert(N > 0, "Passed zero length printTag");
  183|    352|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 86, False: 266]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    266|  return os << "(" << value << ")";
  186|    352|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyAFIlluminatorCSEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    346|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    346|  static_assert(N > 0, "Passed zero length printTag");
  195|    346|  return printTag<N, array>(os, value.toInt64(), data);
  196|    346|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyAFIlluminatorCSEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    346|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    346|  static_assert(N > 0, "Passed zero length printTag");
  183|    346|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 104, False: 242]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|    242|  return os << "(" << value << ")";
  186|    346|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyImageStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    346|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    346|  static_assert(N > 0, "Passed zero length printTag");
  195|    346|  return printTag<N, array>(os, value.toInt64(), data);
  196|    346|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyImageStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    346|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    346|  static_assert(N > 0, "Passed zero length printTag");
  183|    346|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 224]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|    224|  return os << "(" << value << ")";
  186|    346|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    352|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    352|  static_assert(N > 0, "Passed zero length printTag");
  195|    352|  return printTag<N, array>(os, value.toInt64(), data);
  196|    352|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    352|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    352|  static_assert(N > 0, "Passed zero length printTag");
  183|    352|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 134, False: 218]
  ------------------
  184|    134|    return os << _(td->label_);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  185|    218|  return os << "(" << value << ")";
  186|    352|}
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: 28, False: 268]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    268|  return os << "(" << value << ")";
  186|    296|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyAspectRatioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    290|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    290|  static_assert(N > 0, "Passed zero length printTag");
  195|    290|  return printTag<N, array>(os, value.toInt64(), data);
  196|    290|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyAspectRatioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    290|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    290|  static_assert(N > 0, "Passed zero length printTag");
  183|    290|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 272]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|    272|  return os << "(" << value << ")";
  186|    290|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyExposureLevelIncrementsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    290|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    290|  static_assert(N > 0, "Passed zero length printTag");
  195|    290|  return printTag<N, array>(os, value.toInt64(), data);
  196|    290|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyExposureLevelIncrementsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    290|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    290|  static_assert(N > 0, "Passed zero length printTag");
  183|    290|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 278]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|    278|  return os << "(" << value << ")";
  186|    290|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sony2FpAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    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: 154, False: 72]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    226|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyExposureProgram3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     58|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     58|  static_assert(N > 0, "Passed zero length printTag");
  195|     58|  return printTag<N, array>(os, value.toInt64(), data);
  196|     58|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyExposureProgram3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     58|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     58|  static_assert(N > 0, "Passed zero length printTag");
  183|     58|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 48]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|     58|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyReleaseMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    214|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    214|  static_assert(N > 0, "Passed zero length printTag");
  195|    214|  return printTag<N, array>(os, value.toInt64(), data);
  196|    214|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyReleaseMode2EEEERNSt3__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: 108, False: 106]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    214|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    214|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    214|  static_assert(N > 0, "Passed zero length printTag");
  195|    214|  return printTag<N, array>(os, value.toInt64(), data);
  196|    214|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength1EEEERNSt3__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: 156, False: 58]
  ------------------
  184|    156|    return os << _(td->label_);
  ------------------
  |  |   40|    156|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    214|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    202|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    202|  static_assert(N > 0, "Passed zero length printTag");
  195|    202|  return printTag<N, array>(os, value.toInt64(), data);
  196|    202|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    202|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    202|  static_assert(N > 0, "Passed zero length printTag");
  183|    202|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 92]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    202|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyMisc3cCameraOrientationEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyMisc3cCameraOrientationEEEERNSt3__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: 50, False: 150]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    150|  return os << "(" << value << ")";
  186|    200|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyMisc3cQuality2aEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     11|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     11|  static_assert(N > 0, "Passed zero length printTag");
  183|     11|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 5, False: 6]
  ------------------
  184|      5|    return os << _(td->label_);
  ------------------
  |  |   40|      5|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     11|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyMisc3cQuality2bEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     53|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     53|  static_assert(N > 0, "Passed zero length printTag");
  183|     53|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 27, False: 26]
  ------------------
  184|     27|    return os << _(td->label_);
  ------------------
  |  |   40|     27|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     53|}

_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.5k|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.5k|  const std::string& path = iIo.path();
  106|  10.5k|  if (path.ends_with(".tga") || path.ends_with(".TGA")) {
  ------------------
  |  Branch (106:7): [True: 0, False: 10.5k]
  |  Branch (106:33): [True: 0, False: 10.5k]
  ------------------
  107|      0|    return true;
  108|      0|  }
  109|  10.5k|  byte buf[26];
  110|  10.5k|  const size_t curPos = iIo.tell();
  111|  10.5k|  if (curPos < 26)
  ------------------
  |  Branch (111:7): [True: 10.4k, False: 73]
  ------------------
  112|  10.4k|    return false;
  113|       |
  114|     73|  iIo.seek(-26, BasicIo::end);
  115|     73|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (115:7): [True: 0, False: 73]
  |  Branch (115:22): [True: 0, False: 73]
  ------------------
  116|      0|    return false;
  117|      0|  }
  118|     73|  iIo.read(buf, sizeof(buf));
  119|     73|  if (iIo.error()) {
  ------------------
  |  Branch (119:7): [True: 0, False: 73]
  ------------------
  120|      0|    return false;
  121|      0|  }
  122|       |  // some TARGA files, but not all, have a signature string at the end
  123|     73|  bool matched = (memcmp(buf + 8, "TRUEVISION-XFILE", 16) == 0);
  124|     73|  iIo.seek(curPos, BasicIo::beg);
  125|     73|  return matched;
  126|     73|}

_ZNK5Exiv28Internal15TiffMappingInfoeqERKNS1_3KeyE:
   41|  91.8M|bool TiffMappingInfo::operator==(const TiffMappingInfo::Key& key) const {
   42|  91.8M|  return (make_ == "*" || key.m_.starts_with(make_)) && (Tag::all == extendedTag_ || key.e_ == extendedTag_) &&
  ------------------
  |  Branch (42:11): [True: 91.8M, False: 0]
  |  Branch (42:27): [True: 0, False: 0]
  |  Branch (42:58): [True: 18.3M, False: 73.4M]
  |  Branch (42:86): [True: 20.6k, False: 73.4M]
  ------------------
   43|  18.3M|         key.g_ == group_;
  ------------------
  |  Branch (43:10): [True: 5.91k, False: 18.3M]
  ------------------
   44|  91.8M|}
_ZN5Exiv28Internal9IoWrapperC2ERNS_7BasicIoEPKhmPNS0_12OffsetWriterE:
   47|  13.3k|    io_(io), pHeader_(pHeader), size_(size), pow_(pow) {
   48|  13.3k|  if (!pHeader_ || size_ == 0)
  ------------------
  |  Branch (48:7): [True: 5.00k, False: 8.30k]
  |  Branch (48:20): [True: 0, False: 8.30k]
  ------------------
   49|  5.00k|    wroteHeader_ = true;
   50|  13.3k|}
_ZN5Exiv28Internal9IoWrapper5writeEPKhm:
   52|  3.63M|size_t IoWrapper::write(const byte* pData, size_t wcount) {
   53|  3.63M|  if (!wroteHeader_ && wcount > 0) {
  ------------------
  |  Branch (53:7): [True: 8.27k, False: 3.62M]
  |  Branch (53:24): [True: 8.27k, False: 0]
  ------------------
   54|  8.27k|    io_.write(pHeader_, size_);
   55|  8.27k|    wroteHeader_ = true;
   56|  8.27k|  }
   57|  3.63M|  return io_.write(pData, wcount);
   58|  3.63M|}
_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|   145k|TiffDirectory::TiffDirectory(uint16_t tag, IfdId group, bool hasNext) : TiffComponent(tag, group), hasNext_(hasNext) {
   77|   145k|}
_ZN5Exiv28Internal10TiffSubIfdC2EtNS_5IfdIdES2_:
   80|  46.5k|    TiffEntryBase(tag, group, ttUnsignedLong), newGroup_(newGroup) {
   81|  46.5k|}
_ZN5Exiv28Internal16TiffIfdMakernoteC2EtNS_5IfdIdES2_NSt3__110unique_ptrINS0_8MnHeaderENS3_14default_deleteIS5_EEEEb:
   85|  35.3k|    TiffComponent(tag, group), pHeader_(std::move(pHeader)), ifd_(tag, mnGroup, hasNext) {
   86|  35.3k|}
_ZN5Exiv28Internal16TiffIfdMakernoteD2Ev:
   88|  35.3k|TiffIfdMakernote::~TiffIfdMakernote() = default;
_ZN5Exiv28Internal15TiffBinaryArrayC2EtNS_5IfdIdERKNS0_8ArrayCfgEPKNS0_8ArrayDefEm:
   92|  60.1k|    TiffEntryBase(tag, group, arrayCfg.elTiffType_), arrayCfg_(&arrayCfg), arrayDef_(arrayDef), defSize_(defSize) {
   93|  60.1k|}
_ZN5Exiv28Internal15TiffBinaryArrayC2EtNS_5IfdIdEPKNS0_8ArraySetEmPFitPKhmPNS0_13TiffComponentEE:
   97|  4.19k|    TiffEntryBase(tag, group),  // Todo: Does it make a difference that there is no type?
   98|  4.19k|    cfgSelFct_(cfgSelFct),
   99|  4.19k|    arraySet_(arraySet),
  100|  4.19k|    setSize_(setSize) {
  101|       |  // We'll figure out the correct cfg later
  102|  4.19k|}
_ZN5Exiv28Internal13TiffEntryBaseC2EtNS_5IfdIdENS0_8TiffTypeE:
  118|  21.5M|    TiffComponent(tag, group), tiffType_(tiffType) {
  119|  21.5M|}
_ZN5Exiv28Internal13TiffEntryBaseD2Ev:
  121|  21.5M|TiffEntryBase::~TiffEntryBase() = default;
_ZN5Exiv28Internal17TiffDataEntryBaseC2EtNS_5IfdIdEtS2_:
  142|  55.1k|    TiffEntryBase(tag, group), szTag_(szTag), szGroup_(szGroup) {
  143|  55.1k|}
_ZN5Exiv28Internal13TiffSizeEntryC2EtNS_5IfdIdEtS2_:
  148|  72.6k|    TiffEntryBase(tag, group), dtTag_(dtTag), dtGroup_(dtGroup) {
  149|  72.6k|}
_ZN5Exiv28Internal11TiffMnEntryC2EtNS_5IfdIdES2_:
  152|  49.5k|    TiffEntryBase(tag, group, ttUndefined), mnGroup_(mnGroup) {
  153|  49.5k|}
_ZN5Exiv28Internal11TiffMnEntryD2Ev:
  155|  49.5k|TiffMnEntry::~TiffMnEntry() = default;
_ZNK5Exiv28Internal13TiffEntryBase3idxEv:
  205|  24.6M|int TiffEntryBase::idx() const {
  206|  24.6M|  return idx_;
  207|  24.6M|}
_ZN5Exiv28Internal13TiffEntryBase7setDataENSt3__110shared_ptrINS_7DataBufEEE:
  209|   138k|void TiffEntryBase::setData(std::shared_ptr<DataBuf> buf) {
  210|   138k|  storage_ = std::move(buf);
  211|   138k|  pData_ = storage_->data();
  212|   138k|  size_ = storage_->size();
  213|   138k|}
_ZN5Exiv28Internal13TiffEntryBase7setDataEPhmNSt3__110shared_ptrINS_7DataBufEEE:
  215|  15.9M|void TiffEntryBase::setData(byte* pData, size_t size, std::shared_ptr<DataBuf> storage) {
  216|  15.9M|  pData_ = pData;
  217|  15.9M|  size_ = size;
  218|  15.9M|  storage_ = std::move(storage);
  219|  15.9M|  if (!pData_)
  ------------------
  |  Branch (219:7): [True: 0, False: 15.9M]
  ------------------
  220|      0|    size_ = 0;
  221|  15.9M|}
_ZN5Exiv28Internal13TiffEntryBase11updateValueENSt3__110unique_ptrINS_5ValueENS2_14default_deleteIS4_EEEENS_9ByteOrderE:
  223|  2.35M|void TiffEntryBase::updateValue(Value::UniquePtr value, ByteOrder byteOrder) {
  224|  2.35M|  if (!value)
  ------------------
  |  Branch (224:7): [True: 0, False: 2.35M]
  ------------------
  225|      0|    return;
  226|  2.35M|  if (size_t newSize = value->size(); newSize > size_) {
  ------------------
  |  Branch (226:39): [True: 138k, False: 2.22M]
  ------------------
  227|   138k|    auto d = std::make_shared<DataBuf>(newSize);
  228|   138k|    setData(std::move(d));
  229|   138k|  }
  230|  2.35M|  if (pData_) {
  ------------------
  |  Branch (230:7): [True: 142k, False: 2.21M]
  ------------------
  231|   142k|    memset(pData_, 0x0, size_);
  232|   142k|  }
  233|  2.35M|  size_ = value->copy(pData_, byteOrder);
  234|  2.35M|  setValue(std::move(value));
  235|  2.35M|}
_ZN5Exiv28Internal13TiffEntryBase8setValueENSt3__110unique_ptrINS_5ValueENS2_14default_deleteIS4_EEEE:
  237|  18.4M|void TiffEntryBase::setValue(Value::UniquePtr value) {
  238|  18.4M|  if (!value)
  ------------------
  |  Branch (238:7): [True: 0, False: 18.4M]
  ------------------
  239|      0|    return;
  240|  18.4M|  tiffType_ = toTiffType(value->typeId());
  241|  18.4M|  count_ = value->count();
  242|  18.4M|  pValue_ = std::move(value);
  243|  18.4M|}
_ZN5Exiv28Internal13TiffDataEntry9setStripsEPKNS_5ValueEPKhmm:
  245|  7.90k|void TiffDataEntry::setStrips(const Value* pSize, const byte* pData, size_t sizeData, size_t baseOffset) {
  246|  7.90k|  if (!pValue() || !pSize) {
  ------------------
  |  Branch (246:7): [True: 443, False: 7.46k]
  |  Branch (246:20): [True: 577, False: 6.88k]
  ------------------
  247|  1.02k|#ifndef SUPPRESS_WARNINGS
  248|  1.02k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  1.02k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.02k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.02k|  LogMsg(LogMsg::warn).os()
  ------------------
  249|      0|                << tag() << ": Size or data offset value not set, ignoring them.\n";
  250|  1.02k|#endif
  251|  1.02k|    return;
  252|  1.02k|  }
  253|  6.88k|  if (pValue()->count() == 0) {
  ------------------
  |  Branch (253:7): [True: 1.51k, False: 5.37k]
  ------------------
  254|  1.51k|#ifndef SUPPRESS_WARNINGS
  255|  1.51k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  1.51k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.51k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.51k|  LogMsg(LogMsg::warn).os()
  ------------------
  256|      0|                << tag() << ": Data offset entry value is empty, ignoring it.\n";
  257|  1.51k|#endif
  258|  1.51k|    return;
  259|  1.51k|  }
  260|  5.37k|  if (pValue()->count() != pSize->count()) {
  ------------------
  |  Branch (260:7): [True: 1.45k, False: 3.92k]
  ------------------
  261|  1.45k|#ifndef SUPPRESS_WARNINGS
  262|  1.45k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  1.45k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.45k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.45k|  LogMsg(LogMsg::warn).os()
  ------------------
  263|      0|                << tag() << ": Size and data offset entries have different"
  264|      0|                << " number of components, ignoring them.\n";
  265|  1.45k|#endif
  266|  1.45k|    return;
  267|  1.45k|  }
  268|  3.92k|  size_t size = 0;
  269|  8.34k|  for (size_t i = 0; i < pSize->count(); ++i) {
  ------------------
  |  Branch (269:22): [True: 4.42k, False: 3.92k]
  ------------------
  270|  4.42k|    size = Safe::add<size_t>(size, pSize->toUint32(i));
  271|  4.42k|  }
  272|  3.92k|  const size_t offset = pValue()->toUint32(0);
  273|  3.92k|  if (size > sizeData || offset > sizeData - size || baseOffset > sizeData - size - offset) {
  ------------------
  |  Branch (273:7): [True: 120, False: 3.80k]
  |  Branch (273:26): [True: 181, False: 3.62k]
  |  Branch (273:54): [True: 87, False: 3.53k]
  ------------------
  274|    388|#ifndef SUPPRESS_WARNINGS
  275|    388|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|    388|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 388]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    388|  LogMsg(LogMsg::warn).os()
  ------------------
  276|      0|                << tag() << ": Data area exceeds data buffer, ignoring it.\n";
  277|    388|#endif
  278|    388|    return;
  279|    388|  }
  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.53k|  if (pValue()->toUint32(pValue()->count() - 1) + pSize->toUint32(pSize->count() - 1) != size + offset) {
  ------------------
  |  Branch (282:7): [True: 43, False: 3.49k]
  ------------------
  283|     43|#ifndef SUPPRESS_WARNINGS
  284|     43|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|     43|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 43]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     43|  LogMsg(LogMsg::warn).os()
  ------------------
  285|      0|                << tag() << ": Data area is not contiguous, ignoring it.\n";
  286|     43|#endif
  287|     43|    return;
  288|     43|  }
  289|  3.49k|  pDataArea_ = const_cast<byte*>(pData) + baseOffset + offset;
  290|  3.49k|  sizeDataArea_ = size;
  291|  3.49k|  const_cast<Value*>(pValue())->setDataArea(pDataArea_, sizeDataArea_);
  292|  3.49k|}  // TiffDataEntry::setStrips
_ZN5Exiv28Internal14TiffImageEntry9setStripsEPKNS_5ValueEPKhmm:
  294|  26.2k|void TiffImageEntry::setStrips(const Value* pSize, const byte* pData, size_t sizeData, size_t baseOffset) {
  295|  26.2k|  if (!pValue() || !pSize) {
  ------------------
  |  Branch (295:7): [True: 1.41k, False: 24.7k]
  |  Branch (295:20): [True: 1.69k, False: 23.0k]
  ------------------
  296|  3.10k|#ifndef SUPPRESS_WARNINGS
  297|  3.10k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  3.10k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 3.10k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  3.10k|  LogMsg(LogMsg::warn).os()
  ------------------
  298|      0|                << tag() << ": Size or data offset value not set, ignoring them.\n";
  299|  3.10k|#endif
  300|  3.10k|    return;
  301|  3.10k|  }
  302|  23.0k|  if (pValue()->count() != pSize->count()) {
  ------------------
  |  Branch (302:7): [True: 4.55k, False: 18.5k]
  ------------------
  303|  4.55k|#ifndef SUPPRESS_WARNINGS
  304|  4.55k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  4.55k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 4.55k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  4.55k|  LogMsg(LogMsg::warn).os()
  ------------------
  305|      0|                << tag() << ": Size and data offset entries have different"
  306|      0|                << " number of components, ignoring them.\n";
  307|  4.55k|#endif
  308|  4.55k|    return;
  309|  4.55k|  }
  310|  35.9k|  for (size_t i = 0; i < pValue()->count(); ++i) {
  ------------------
  |  Branch (310:22): [True: 17.3k, False: 18.5k]
  ------------------
  311|  17.3k|    const size_t offset = pValue()->toUint32(i);
  312|  17.3k|    const size_t size = pSize->toUint32(i);
  313|       |
  314|  17.3k|    if (size > sizeData || offset > sizeData - size || baseOffset > sizeData - size - offset) {
  ------------------
  |  Branch (314:9): [True: 4.45k, False: 12.9k]
  |  Branch (314:28): [True: 3.06k, False: 9.85k]
  |  Branch (314:56): [True: 28, False: 9.82k]
  ------------------
  315|  7.54k|#ifndef SUPPRESS_WARNINGS
  316|  7.54k|      EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  7.54k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 7.54k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  7.54k|  LogMsg(LogMsg::warn).os()
  ------------------
  317|      0|                  << tag() << ": Strip " << std::dec << i << " is outside of the data area; ignored.\n";
  318|  7.54k|#endif
  319|  9.82k|    } else if (size != 0) {
  ------------------
  |  Branch (319:16): [True: 7.93k, False: 1.88k]
  ------------------
  320|  7.93k|      const byte* pStrip = pData + baseOffset + offset;
  321|  7.93k|      strips_.emplace_back(pStrip, size);
  322|  7.93k|    }
  323|  17.3k|  }
  324|  18.5k|}  // TiffImageEntry::setStrips
_ZNK5Exiv28Internal16TiffIfdMakernote9ifdOffsetEv:
  326|  28.7k|size_t TiffIfdMakernote::ifdOffset() const {
  327|  28.7k|  if (!pHeader_)
  ------------------
  |  Branch (327:7): [True: 13.7k, False: 14.9k]
  ------------------
  328|  13.7k|    return 0;
  329|  14.9k|  return pHeader_->ifdOffset();
  330|  28.7k|}
_ZNK5Exiv28Internal16TiffIfdMakernote9byteOrderEv:
  332|  69.4k|ByteOrder TiffIfdMakernote::byteOrder() const {
  333|  69.4k|  if (!pHeader_ || pHeader_->byteOrder() == invalidByteOrder) {
  ------------------
  |  Branch (333:7): [True: 28.4k, False: 41.0k]
  |  Branch (333:20): [True: 31.6k, False: 9.31k]
  ------------------
  334|  60.0k|    return imageByteOrder_;
  335|  60.0k|  }
  336|  9.31k|  return pHeader_->byteOrder();
  337|  69.4k|}
_ZNK5Exiv28Internal16TiffIfdMakernote8mnOffsetEv:
  339|  28.3k|size_t TiffIfdMakernote::mnOffset() const {
  340|  28.3k|  return mnOffset_;
  341|  28.3k|}
_ZNK5Exiv28Internal16TiffIfdMakernote10baseOffsetEv:
  343|  34.8k|size_t TiffIfdMakernote::baseOffset() const {
  344|  34.8k|  if (!pHeader_)
  ------------------
  |  Branch (344:7): [True: 14.1k, False: 20.6k]
  ------------------
  345|  14.1k|    return 0;
  346|  20.6k|  return pHeader_->baseOffset(mnOffset_);
  347|  34.8k|}
_ZN5Exiv28Internal16TiffIfdMakernote10readHeaderEPKhmNS_9ByteOrderE:
  349|  29.1k|bool TiffIfdMakernote::readHeader(const byte* pData, size_t size, ByteOrder byteOrder) {
  350|  29.1k|  if (!pHeader_)
  ------------------
  |  Branch (350:7): [True: 13.7k, False: 15.4k]
  ------------------
  351|  13.7k|    return true;
  352|  15.4k|  return pHeader_->read(pData, size, byteOrder);
  353|  29.1k|}
_ZN5Exiv28Internal16TiffIfdMakernote12setByteOrderENS_9ByteOrderE:
  355|  4.83k|void TiffIfdMakernote::setByteOrder(ByteOrder byteOrder) {
  356|  4.83k|  if (pHeader_)
  ------------------
  |  Branch (356:7): [True: 4.38k, False: 448]
  ------------------
  357|  4.38k|    pHeader_->setByteOrder(byteOrder);
  358|  4.83k|}
_ZNK5Exiv28Internal16TiffIfdMakernote10sizeHeaderEv:
  360|  49.7k|size_t TiffIfdMakernote::sizeHeader() const {
  361|  49.7k|  if (!pHeader_)
  ------------------
  |  Branch (361:7): [True: 4.07k, False: 45.7k]
  ------------------
  362|  4.07k|    return 0;
  363|  45.7k|  return pHeader_->size();
  364|  49.7k|}
_ZNK5Exiv28Internal16TiffIfdMakernote11writeHeaderERNS0_9IoWrapperENS_9ByteOrderE:
  366|  6.09k|size_t TiffIfdMakernote::writeHeader(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
  367|  6.09k|  if (!pHeader_)
  ------------------
  |  Branch (367:7): [True: 447, False: 5.64k]
  ------------------
  368|    447|    return 0;
  369|  5.64k|  return pHeader_->write(ioWrapper, byteOrder);
  370|  6.09k|}
_ZNK5Exiv28Internal8ArrayDef4sizeEtNS_5IfdIdE:
  372|  27.6M|size_t ArrayDef::size(uint16_t tag, IfdId group) const {
  373|  27.6M|  TypeId typeId = toTypeId(tiffType_, tag, group);
  374|  27.6M|  return count_ * TypeInfo::typeSize(typeId);
  375|  27.6M|}
_ZN5Exiv28Internal15TiffBinaryArray10initializeENS_5IfdIdE:
  377|   884k|bool TiffBinaryArray::initialize(IfdId group) {
  378|   884k|  if (arrayCfg_)
  ------------------
  |  Branch (378:7): [True: 883k, False: 97]
  ------------------
  379|   883k|    return true;  // Not a complex array or already initialized
  380|       |
  381|    354|  for (size_t idx = 0; idx < setSize_; ++idx) {
  ------------------
  |  Branch (381:24): [True: 354, False: 0]
  ------------------
  382|    354|    if (arraySet_[idx].cfg_.group_ == group) {
  ------------------
  |  Branch (382:9): [True: 97, False: 257]
  ------------------
  383|     97|      arrayCfg_ = &arraySet_[idx].cfg_;
  384|     97|      arrayDef_ = arraySet_[idx].def_;
  385|     97|      defSize_ = arraySet_[idx].defSize_;
  386|     97|      return true;
  387|     97|    }
  388|    354|  }
  389|      0|  return false;
  390|     97|}
_ZN5Exiv28Internal15TiffBinaryArray10initializeEPNS0_13TiffComponentE:
  392|  12.4k|bool TiffBinaryArray::initialize(TiffComponent* pRoot) {
  393|  12.4k|  if (!cfgSelFct_)
  ------------------
  |  Branch (393:7): [True: 10.5k, False: 1.93k]
  ------------------
  394|  10.5k|    return true;  // Not a complex array
  395|       |
  396|  1.93k|  int idx = cfgSelFct_(tag(), pData(), TiffEntryBase::doSize(), pRoot);
  397|  1.93k|  if (idx > -1) {
  ------------------
  |  Branch (397:7): [True: 1.56k, False: 371]
  ------------------
  398|  1.56k|    arrayCfg_ = &arraySet_[idx].cfg_;
  399|  1.56k|    arrayDef_ = arraySet_[idx].def_;
  400|  1.56k|    defSize_ = arraySet_[idx].defSize_;
  401|  1.56k|  }
  402|  1.93k|  return idx > -1;
  403|  12.4k|}
_ZN5Exiv28Internal15TiffBinaryArray14iniOrigDataBufEv:
  405|  47.5k|void TiffBinaryArray::iniOrigDataBuf() {
  406|  47.5k|  origData_ = const_cast<byte*>(pData());
  407|  47.5k|  origSize_ = TiffEntryBase::doSize();
  408|  47.5k|}
_ZN5Exiv28Internal15TiffBinaryArray10addElementEmRKNS0_8ArrayDefE:
  419|  13.2M|size_t TiffBinaryArray::addElement(size_t idx, const ArrayDef& def) {
  420|  13.2M|  auto tag = static_cast<uint16_t>(idx / cfg()->tagStep());
  421|  13.2M|  auto sz = std::min<size_t>(def.size(tag, cfg()->group_), TiffEntryBase::doSize() - idx);
  422|  13.2M|  auto tc = TiffCreator::create(tag, cfg()->group_);
  423|  13.2M|  auto tp = dynamic_cast<TiffBinaryElement*>(tc.get());
  424|  13.2M|  if (!tp)
  ------------------
  |  Branch (424:7): [True: 0, False: 13.2M]
  ------------------
  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.2M|  tp->setStart(pData() + idx);
  429|  13.2M|  auto s = storage();
  430|  13.2M|  tp->setData(const_cast<byte*>(pData() + idx), sz, std::move(s));
  431|  13.2M|  tp->setElDef(def);
  432|  13.2M|  tp->setElByteOrder(cfg()->byteOrder_);
  433|  13.2M|  addChild(std::move(tc));
  434|  13.2M|  return sz;
  435|  13.2M|}  // TiffBinaryArray::addElement
_ZN5Exiv28Internal13TiffComponent7addPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPS1_NS2_10unique_ptrIS1_NS2_14default_deleteIS1_EEEE:
  438|  14.2M|                                      TiffComponent::UniquePtr object) {
  439|  14.2M|  return doAddPath(tag, tiffPath, pRoot, std::move(object));
  440|  14.2M|}  // TiffComponent::addPath
_ZN5Exiv28Internal13TiffComponent9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPS1_NS2_10unique_ptrIS1_NS2_14default_deleteIS1_EEEE:
  443|  2.35M|                                        TiffComponent::UniquePtr /*object*/) {
  444|  2.35M|  return this;
  445|  2.35M|}  // TiffComponent::doAddPath
_ZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  448|  5.85M|                                        TiffComponent::UniquePtr object) {
  449|  5.85M|  tiffPath.pop();
  450|  5.85M|  const TiffPathItem tpi = tiffPath.top();
  451|       |
  452|  5.85M|  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|  5.85M|  if (tiffPath.size() > 1 || (tpi.extendedTag() == 0x927c && tpi.group() == IfdId::exifId)) {
  ------------------
  |  Branch (457:7): [True: 4.35M, False: 1.50M]
  |  Branch (457:31): [True: 678, False: 1.50M]
  |  Branch (457:62): [True: 401, False: 277]
  ------------------
  458|  4.35M|    if (tpi.extendedTag() == Tag::next) {
  ------------------
  |  Branch (458:9): [True: 4.13k, False: 4.34M]
  ------------------
  459|  4.13k|      tc = pNext_.get();
  460|  4.34M|    } else {
  461|  38.2M|      for (auto&& component : components_) {
  ------------------
  |  Branch (461:29): [True: 38.2M, False: 17.5k]
  ------------------
  462|  38.2M|        if (component->tag() == tpi.tag() && component->group() == tpi.group()) {
  ------------------
  |  Branch (462:13): [True: 4.38M, False: 33.8M]
  |  Branch (462:46): [True: 4.32M, False: 54.1k]
  ------------------
  463|  4.32M|          tc = component.get();
  464|  4.32M|          break;
  465|  4.32M|        }
  466|  38.2M|      }
  467|  4.34M|    }
  468|  4.35M|  }
  469|       |
  470|  5.85M|  if (tc)
  ------------------
  |  Branch (470:7): [True: 4.33M, False: 1.52M]
  ------------------
  471|  4.33M|    return tc->addPath(tag, tiffPath, pRoot, std::move(object));
  472|       |
  473|  1.52M|  auto atc = [&] {
  474|  1.52M|    if (tiffPath.size() == 1 && object) {
  475|  1.52M|      return std::move(object);
  476|  1.52M|    }
  477|  1.52M|    return TiffCreator::create(tpi.extendedTag(), tpi.group());
  478|  1.52M|  }();
  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.52M|  if (tiffPath.size() == 1 && dynamic_cast<const TiffSubIfd*>(atc.get()))
  ------------------
  |  Branch (482:7): [True: 1.50M, False: 17.7k]
  |  Branch (482:31): [True: 15.6k, False: 1.48M]
  ------------------
  483|  15.6k|    return nullptr;
  484|       |
  485|  1.50M|  tc = [&] {
  486|  1.50M|    if (tpi.extendedTag() == Tag::next)
  487|  1.50M|      return this->addNext(std::move(atc));
  488|  1.50M|    return this->addChild(std::move(atc));
  489|  1.50M|  }();
  490|  1.50M|  return tc->addPath(tag, tiffPath, pRoot, nullptr);
  491|  1.52M|}  // TiffDirectory::doAddPath
_ZN5Exiv28Internal10TiffSubIfd9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  494|  1.74M|                                     TiffComponent::UniquePtr object) {
  495|  1.74M|  const TiffPathItem tpi1 = tiffPath.top();
  496|  1.74M|  tiffPath.pop();
  497|  1.74M|  if (tiffPath.empty()) {
  ------------------
  |  Branch (497:7): [True: 0, False: 1.74M]
  ------------------
  498|       |    // If the last element in the path is the sub-IFD tag itself we're done.
  499|       |    // But that shouldn't happen - see TiffDirectory::doAddPath
  500|      0|    return this;
  501|      0|  }
  502|  1.74M|  const TiffPathItem tpi2 = tiffPath.top();
  503|  1.74M|  tiffPath.push(tpi1);
  504|  1.74M|  for (const auto& ifd : ifds_)
  ------------------
  |  Branch (504:24): [True: 1.74M, False: 7.92k]
  ------------------
  505|  1.74M|    if (ifd->group() == tpi2.group())
  ------------------
  |  Branch (505:9): [True: 1.74M, False: 0]
  ------------------
  506|  1.74M|      return ifd->addPath(tag, tiffPath, pRoot, std::move(object));
  507|       |
  508|  7.92k|  auto tc = [&] {
  509|  7.92k|    if (tiffPath.size() == 1 && object) {
  510|  7.92k|      return addChild(std::move(object));
  511|  7.92k|    }
  512|  7.92k|    return addChild(std::make_unique<TiffDirectory>(tpi1.tag(), tpi2.group()));
  513|  7.92k|  }();
  514|  7.92k|  setCount(ifds_.size());
  515|  7.92k|  return tc->addPath(tag, tiffPath, pRoot, nullptr);
  516|  1.74M|}  // TiffSubIfd::doAddPath
_ZN5Exiv28Internal11TiffMnEntry9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  519|  1.72M|                                      TiffComponent::UniquePtr object) {
  520|  1.72M|  const TiffPathItem tpi1 = tiffPath.top();
  521|  1.72M|  tiffPath.pop();
  522|  1.72M|  if (tiffPath.empty()) {
  ------------------
  |  Branch (522:7): [True: 7.82k, False: 1.71M]
  ------------------
  523|       |    // If the last element in the path is the makernote tag itself we're done
  524|  7.82k|    return this;
  525|  7.82k|  }
  526|  1.71M|  const TiffPathItem tpi2 = tiffPath.top();
  527|  1.71M|  tiffPath.push(tpi1);
  528|  1.71M|  if (!mn_) {
  ------------------
  |  Branch (528:7): [True: 6.12k, False: 1.70M]
  ------------------
  529|  6.12k|    mnGroup_ = tpi2.group();
  530|  6.12k|    mn_ = TiffMnCreator::create(tpi1.tag(), tpi1.group(), mnGroup_);
  531|  6.12k|  }
  532|  1.71M|  return mn_->addPath(tag, tiffPath, pRoot, std::move(object));
  533|  1.72M|}  // TiffMnEntry::doAddPath
_ZN5Exiv28Internal16TiffIfdMakernote9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  536|  1.71M|                                           TiffComponent::UniquePtr object) {
  537|  1.71M|  return ifd_.addPath(tag, tiffPath, pRoot, std::move(object));
  538|  1.71M|}
_ZN5Exiv28Internal15TiffBinaryArray9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  541|   896k|                                          TiffComponent::UniquePtr object) {
  542|   896k|  pRoot_ = pRoot;
  543|   896k|  if (tiffPath.size() == 1) {
  ------------------
  |  Branch (543:7): [True: 11.9k, False: 884k]
  ------------------
  544|       |    // An unknown complex binary array has no children and acts like a standard TIFF entry
  545|  11.9k|    return this;
  546|  11.9k|  }
  547|   884k|  tiffPath.pop();
  548|   884k|  const TiffPathItem tpi = tiffPath.top();
  549|       |  // Initialize the binary array (if it is a complex array)
  550|   884k|  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|   884k|  if (tiffPath.size() > 1) {
  ------------------
  |  Branch (554:7): [True: 0, False: 884k]
  ------------------
  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|   884k|  if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (560:7): [True: 884k, False: 0]
  |  Branch (560:31): [True: 0, False: 884k]
  ------------------
  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|   884k|  auto tc = addChild(TiffCreator::create(tpi.extendedTag(), tpi.group()));
  567|   884k|  setCount(elements_.size());
  568|   884k|  return tc->addPath(tag, tiffPath, pRoot, std::move(object));
  569|   884k|}  // TiffBinaryArray::doAddPath
_ZN5Exiv28Internal13TiffComponent8addChildENSt3__110shared_ptrIS1_EE:
  571|  21.6M|TiffComponent* TiffComponent::addChild(TiffComponent::SharedPtr tiffComponent) {
  572|  21.6M|  return doAddChild(std::move(tiffComponent));
  573|  21.6M|}  // TiffComponent::addChild
_ZN5Exiv28Internal13TiffDirectory10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  579|  7.41M|TiffComponent* TiffDirectory::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  580|  7.41M|  return components_.emplace_back(std::move(tiffComponent)).get();
  581|  7.41M|}  // TiffDirectory::doAddChild
_ZN5Exiv28Internal10TiffSubIfd10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  583|  53.6k|TiffComponent* TiffSubIfd::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  584|  53.6k|  auto d = std::dynamic_pointer_cast<TiffDirectory>(std::move(tiffComponent));
  585|  53.6k|  if (!d)
  ------------------
  |  Branch (585:7): [True: 0, False: 53.6k]
  ------------------
  586|      0|    throw Error(ErrorCode::kerErrorMessage, "dynamic_pointer_cast to TiffDirectory failed");
  587|       |
  588|  53.6k|  return ifds_.emplace_back(std::move(d)).get();
  589|  53.6k|}  // TiffSubIfd::doAddChild
_ZN5Exiv28Internal15TiffBinaryArray10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  602|  14.1M|TiffComponent* TiffBinaryArray::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  603|  14.1M|  setDecoded(true);
  604|  14.1M|  return elements_.emplace_back(std::move(tiffComponent)).get();
  605|  14.1M|}  // TiffBinaryArray::doAddChild
_ZN5Exiv28Internal13TiffComponent7addNextENSt3__110unique_ptrIS1_NS2_14default_deleteIS1_EEEE:
  607|  2.14k|TiffComponent* TiffComponent::addNext(TiffComponent::UniquePtr tiffComponent) {
  608|  2.14k|  return doAddNext(std::move(tiffComponent));
  609|  2.14k|}  // TiffComponent::addNext
_ZN5Exiv28Internal13TiffDirectory9doAddNextENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEE:
  615|  2.14k|TiffComponent* TiffDirectory::doAddNext(TiffComponent::UniquePtr tiffComponent) {
  616|  2.14k|  if (hasNext_) {
  ------------------
  |  Branch (616:7): [True: 2.14k, False: 0]
  ------------------
  617|  2.14k|    pNext_ = std::move(tiffComponent);
  618|  2.14k|    return pNext_.get();
  619|  2.14k|  }
  620|      0|  return nullptr;
  621|  2.14k|}  // TiffDirectory::doAddNext
_ZN5Exiv28Internal13TiffComponent6acceptERNS0_11TiffVisitorE:
  634|   115M|void TiffComponent::accept(TiffVisitor& visitor) {
  635|   115M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (635:7): [True: 115M, False: 8.66k]
  ------------------
  636|   115M|    doAccept(visitor);  // one for NVI :)
  637|   115M|}  // TiffComponent::accept
_ZN5Exiv28Internal9TiffEntry8doAcceptERNS0_11TiffVisitorE:
  639|  40.3M|void TiffEntry::doAccept(TiffVisitor& visitor) {
  640|  40.3M|  visitor.visitEntry(this);
  641|  40.3M|}  // TiffEntry::doAccept
_ZN5Exiv28Internal13TiffDataEntry8doAcceptERNS0_11TiffVisitorE:
  643|  92.5k|void TiffDataEntry::doAccept(TiffVisitor& visitor) {
  644|  92.5k|  visitor.visitDataEntry(this);
  645|  92.5k|}  // TiffDataEntry::doAccept
_ZN5Exiv28Internal14TiffImageEntry8doAcceptERNS0_11TiffVisitorE:
  647|  1.34M|void TiffImageEntry::doAccept(TiffVisitor& visitor) {
  648|  1.34M|  visitor.visitImageEntry(this);
  649|  1.34M|}  // TiffImageEntry::doAccept
_ZN5Exiv28Internal13TiffSizeEntry8doAcceptERNS0_11TiffVisitorE:
  651|  2.02M|void TiffSizeEntry::doAccept(TiffVisitor& visitor) {
  652|  2.02M|  visitor.visitSizeEntry(this);
  653|  2.02M|}  // TiffSizeEntry::doAccept
_ZN5Exiv28Internal13TiffDirectory8doAcceptERNS0_11TiffVisitorE:
  655|  1.18M|void TiffDirectory::doAccept(TiffVisitor& visitor) {
  656|  1.18M|  visitor.visitDirectory(this);
  657|  45.3M|  for (auto&& component : components_) {
  ------------------
  |  Branch (657:25): [True: 45.3M, False: 934k]
  ------------------
  658|  45.3M|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (658:9): [True: 247k, False: 45.1M]
  ------------------
  659|   247k|      break;
  660|  45.1M|    component->accept(visitor);
  661|  45.1M|  }
  662|  1.18M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (662:7): [True: 926k, False: 255k]
  ------------------
  663|   926k|    visitor.visitDirectoryNext(this);
  664|  1.18M|  if (pNext_)
  ------------------
  |  Branch (664:7): [True: 25.1k, False: 1.15M]
  ------------------
  665|  25.1k|    pNext_->accept(visitor);
  666|  1.18M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (666:7): [True: 918k, False: 263k]
  ------------------
  667|   918k|    visitor.visitDirectoryEnd(this);
  668|  1.18M|}  // TiffDirectory::doAccept
_ZN5Exiv28Internal10TiffSubIfd8doAcceptERNS0_11TiffVisitorE:
  670|   206k|void TiffSubIfd::doAccept(TiffVisitor& visitor) {
  671|   206k|  visitor.visitSubIfd(this);
  672|   741k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (672:19): [True: 741k, False: 176k]
  ------------------
  673|   741k|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (673:9): [True: 30.7k, False: 710k]
  ------------------
  674|  30.7k|      break;
  675|   710k|    ifd->accept(visitor);
  676|   710k|  }
  677|   206k|}  // TiffSubIfd::doAccept
_ZN5Exiv28Internal11TiffMnEntry8doAcceptERNS0_11TiffVisitorE:
  679|   179k|void TiffMnEntry::doAccept(TiffVisitor& visitor) {
  680|   179k|  visitor.visitMnEntry(this);
  681|   179k|  if (mn_)
  ------------------
  |  Branch (681:7): [True: 132k, False: 46.3k]
  ------------------
  682|   132k|    mn_->accept(visitor);
  683|   179k|  if (!visitor.go(TiffVisitor::geKnownMakernote)) {
  ------------------
  |  Branch (683:7): [True: 1.22k, False: 178k]
  ------------------
  684|  1.22k|    mn_ = nullptr;
  685|  1.22k|  }
  686|       |
  687|   179k|}  // TiffMnEntry::doAccept
_ZN5Exiv28Internal16TiffIfdMakernote8doAcceptERNS0_11TiffVisitorE:
  689|   128k|void TiffIfdMakernote::doAccept(TiffVisitor& visitor) {
  690|   128k|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (690:7): [True: 128k, False: 0]
  ------------------
  691|   128k|    visitor.visitIfdMakernote(this);
  692|   128k|  if (visitor.go(TiffVisitor::geKnownMakernote))
  ------------------
  |  Branch (692:7): [True: 127k, False: 497]
  ------------------
  693|   127k|    ifd_.accept(visitor);
  694|   128k|  if (visitor.go(TiffVisitor::geKnownMakernote) && visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (694:7): [True: 127k, False: 497]
  |  Branch (694:52): [True: 89.6k, False: 38.0k]
  ------------------
  695|  89.6k|    visitor.visitIfdMakernoteEnd(this);
  696|   128k|}
_ZN5Exiv28Internal15TiffBinaryArray8doAcceptERNS0_11TiffVisitorE:
  698|   299k|void TiffBinaryArray::doAccept(TiffVisitor& visitor) {
  699|   299k|  visitor.visitBinaryArray(this);
  700|  68.8M|  for (auto&& element : elements_) {
  ------------------
  |  Branch (700:23): [True: 68.8M, False: 294k]
  ------------------
  701|  68.8M|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (701:9): [True: 4.80k, False: 68.8M]
  ------------------
  702|  4.80k|      break;
  703|  68.8M|    element->accept(visitor);
  704|  68.8M|  }
  705|   299k|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (705:7): [True: 251k, False: 47.8k]
  ------------------
  706|   251k|    visitor.visitBinaryArrayEnd(this);
  707|   299k|}
_ZN5Exiv28Internal17TiffBinaryElement8doAcceptERNS0_11TiffVisitorE:
  709|  69.6M|void TiffBinaryElement::doAccept(TiffVisitor& visitor) {
  710|  69.6M|  visitor.visitBinaryElement(this);
  711|  69.6M|}
_ZN5Exiv28Internal13TiffEntryBase6encodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  713|  2.37M|void TiffEntryBase::encode(TiffEncoder& encoder, const Exifdatum* datum) {
  714|  2.37M|  doEncode(encoder, datum);
  715|  2.37M|}
_ZN5Exiv28Internal17TiffBinaryElement8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  717|   884k|void TiffBinaryElement::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  718|   884k|  encoder.encodeBinaryElement(this, datum);
  719|   884k|}
_ZN5Exiv28Internal15TiffBinaryArray8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  721|  12.0k|void TiffBinaryArray::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  722|  12.0k|  encoder.encodeBinaryArray(this, datum);
  723|  12.0k|}
_ZN5Exiv28Internal13TiffDataEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  725|  3.14k|void TiffDataEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  726|  3.14k|  encoder.encodeDataEntry(this, datum);
  727|  3.14k|}
_ZN5Exiv28Internal9TiffEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  729|  1.44M|void TiffEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  730|  1.44M|  encoder.encodeTiffEntry(this, datum);
  731|  1.44M|}
_ZN5Exiv28Internal14TiffImageEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  733|  9.36k|void TiffImageEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  734|  9.36k|  encoder.encodeImageEntry(this, datum);
  735|  9.36k|}
_ZN5Exiv28Internal11TiffMnEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  737|  7.89k|void TiffMnEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  738|  7.89k|  encoder.encodeMnEntry(this, datum);
  739|  7.89k|}
_ZN5Exiv28Internal13TiffSizeEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  741|  14.9k|void TiffSizeEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  742|  14.9k|  encoder.encodeSizeEntry(this, datum);
  743|  14.9k|}
_ZN5Exiv28Internal10TiffSubIfd8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  745|     82|void TiffSubIfd::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  746|     82|  encoder.encodeSubIfd(this, datum);
  747|     82|}
_ZNK5Exiv28Internal13TiffComponent5countEv:
  749|  1.70M|size_t TiffComponent::count() const {
  750|  1.70M|  return doCount();
  751|  1.70M|}
_ZNK5Exiv28Internal13TiffDirectory7doCountEv:
  753|   127k|size_t TiffDirectory::doCount() const {
  754|   127k|  return components_.size();
  755|   127k|}
_ZNK5Exiv28Internal13TiffEntryBase7doCountEv:
  757|  1.57M|size_t TiffEntryBase::doCount() const {
  758|  1.57M|  return count_;
  759|  1.57M|}
_ZNK5Exiv28Internal11TiffMnEntry7doCountEv:
  761|  12.3k|size_t TiffMnEntry::doCount() const {
  762|  12.3k|  if (!mn_) {
  ------------------
  |  Branch (762:7): [True: 6.19k, False: 6.11k]
  ------------------
  763|  6.19k|    return TiffEntryBase::doCount();
  764|  6.19k|  }
  765|  6.11k|#ifndef SUPPRESS_WARNINGS
  766|       |  // Count of IFD makernote in tag Exif.Photo.MakerNote is the size of the
  767|       |  // Makernote in bytes
  768|  6.11k|  if (tiffType() != ttUndefined && tiffType() != ttUnsignedByte && tiffType() != ttSignedByte) {
  ------------------
  |  Branch (768:7): [True: 1.38k, False: 4.73k]
  |  Branch (768:36): [True: 1.36k, False: 19]
  |  Branch (768:68): [True: 1.31k, False: 46]
  ------------------
  769|  1.31k|    EXV_ERROR << stringFormat(
  ------------------
  |  |  142|  1.31k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 1.31k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  1.31k|  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.31k|  }
  773|  6.11k|#endif
  774|  6.11k|  return mn_->size();
  775|  12.3k|}
_ZNK5Exiv28Internal15TiffBinaryArray7doCountEv:
  781|  16.7k|size_t TiffBinaryArray::doCount() const {
  782|  16.7k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (782:7): [True: 215, False: 16.5k]
  |  Branch (782:17): [True: 11.4k, False: 5.01k]
  ------------------
  783|  11.7k|    return TiffEntryBase::doCount();
  784|       |
  785|  5.01k|  if (elements_.empty())
  ------------------
  |  Branch (785:7): [True: 0, False: 5.01k]
  ------------------
  786|      0|    return 0;
  787|       |
  788|  5.01k|  TypeId typeId = toTypeId(tiffType(), tag(), group());
  789|  5.01k|  size_t typeSize = TypeInfo::typeSize(typeId);
  790|  5.01k|  if (0 == typeSize) {
  ------------------
  |  Branch (790:7): [True: 172, False: 4.83k]
  ------------------
  791|    172|#ifndef SUPPRESS_WARNINGS
  792|    172|    EXV_WARNING << stringFormat("Directory {}, entry 0x{:04x} has unknown Exif (TIFF) type {}; setting type size 1.\n",
  ------------------
  |  |  138|    172|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 172]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    172|  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|    172|#endif
  795|    172|    typeSize = 1;
  796|    172|  }
  797|       |
  798|  5.01k|  return size() / typeSize;
  799|  5.01k|}
_ZN5Exiv28Internal13TiffComponent5writeERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  806|  2.41M|                            size_t& imageIdx) {
  807|  2.41M|  return doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  808|  2.41M|}  // TiffComponent::write
_ZN5Exiv28Internal13TiffDirectory7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  811|  22.5k|                              size_t& imageIdx) {
  812|  22.5k|  bool isRootDir = (imageIdx == std::string::npos);
  813|       |
  814|       |  // Number of components to write
  815|  22.5k|  const size_t compCount = count();
  816|  22.5k|  if (compCount > 0xffff)
  ------------------
  |  Branch (816:7): [True: 0, False: 22.5k]
  ------------------
  817|      0|    throw Error(ErrorCode::kerTooManyTiffDirectoryEntries, groupName(group()));
  818|       |
  819|       |  // Size of next IFD, if any
  820|  22.5k|  size_t sizeNext = 0;
  821|  22.5k|  if (pNext_)
  ------------------
  |  Branch (821:7): [True: 237, False: 22.2k]
  ------------------
  822|    237|    sizeNext = pNext_->size();
  823|       |
  824|       |  // Nothing to do if there are no entries and the size of the next IFD is 0
  825|  22.5k|  if (compCount == 0 && sizeNext == 0)
  ------------------
  |  Branch (825:7): [True: 153, False: 22.3k]
  |  Branch (825:25): [True: 31, False: 122]
  ------------------
  826|     31|    return 0;
  827|       |
  828|       |  // Remember the offset of the CR2 RAW IFD
  829|  22.4k|  if (group() == IfdId::ifd3Id) {
  ------------------
  |  Branch (829:7): [True: 0, False: 22.4k]
  ------------------
  830|       |#ifdef EXIV2_DEBUG_MESSAGES
  831|       |    std::cerr << "Directory " << groupName(group()) << " offset is 0x" << std::setw(8) << std::setfill('0') << std::hex
  832|       |              << offset << std::dec << "\n";
  833|       |#endif
  834|      0|    ioWrapper.setTarget(OffsetWriter::cr2RawIfdOffset, offset);
  835|      0|  }
  836|       |  // Size of all directory entries, without values and additional data
  837|  22.4k|  const size_t sizeDir = 2 + (12 * compCount) + (hasNext_ ? 4 : 0);
  ------------------
  |  Branch (837:50): [True: 22.4k, False: 46]
  ------------------
  838|       |
  839|       |  // TIFF standard requires IFD entries to be sorted in ascending order by tag.
  840|       |  // Not sorting makernote directories sometimes preserves them better.
  841|  22.4k|  if (group() < IfdId::mnId) {
  ------------------
  |  Branch (841:7): [True: 13.4k, False: 9.02k]
  ------------------
  842|  13.4k|    std::sort(components_.begin(), components_.end(), cmpTagLt);
  843|  13.4k|  }
  844|       |  // Size of IFD values and additional data
  845|  22.4k|  size_t sizeValue = 0;
  846|  22.4k|  size_t sizeData = 0;
  847|  1.50M|  for (auto&& component : components_) {
  ------------------
  |  Branch (847:25): [True: 1.50M, False: 22.4k]
  ------------------
  848|  1.50M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (848:40): [True: 73.7k, False: 1.43M]
  ------------------
  849|  73.7k|      sv += sv & 1;  // Align value to word boundary
  850|  73.7k|      sizeValue += sv;
  851|  73.7k|    }
  852|       |    // Also add the size of data, but only if needed
  853|  1.50M|    if (isRootDir) {
  ------------------
  |  Branch (853:9): [True: 661k, False: 843k]
  ------------------
  854|   661k|      auto sd = component->sizeData();
  855|   661k|      sd += sd & 1;  // Align data to word boundary
  856|   661k|      sizeData += sd;
  857|   661k|    }
  858|  1.50M|  }
  859|       |
  860|  22.4k|  size_t idx = 0;                 // Current IFD index / bytes written
  861|  22.4k|  valueIdx = sizeDir;             // Offset to the current IFD value
  862|  22.4k|  dataIdx = sizeDir + sizeValue;  // Offset to the entry's data area
  863|  22.4k|  if (isRootDir) {                // Absolute offset to the image data
  ------------------
  |  Branch (863:7): [True: 8.27k, False: 14.2k]
  ------------------
  864|  8.27k|    imageIdx = offset + dataIdx + sizeData + sizeNext;
  865|  8.27k|    imageIdx += imageIdx & 1;  // Align image data to word boundary
  866|  8.27k|  }
  867|       |
  868|       |  // 1st: Write the IFD, a) Number of directory entries
  869|  22.4k|  byte buf[4];
  870|  22.4k|  us2Data(buf, static_cast<uint16_t>(compCount), byteOrder);
  871|  22.4k|  ioWrapper.write(buf, 2);
  872|  22.4k|  idx += 2;
  873|       |  // b) Directory entries - may contain pointers to the value or data
  874|  1.50M|  for (auto&& component : components_) {
  ------------------
  |  Branch (874:25): [True: 1.50M, False: 22.4k]
  ------------------
  875|  1.50M|    idx += writeDirEntry(ioWrapper, byteOrder, offset, component.get(), valueIdx, dataIdx, imageIdx);
  876|  1.50M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (876:40): [True: 73.6k, False: 1.43M]
  ------------------
  877|  73.6k|      sv += sv & 1;  // Align value to word boundary
  878|  73.6k|      valueIdx += sv;
  879|  73.6k|    }
  880|  1.50M|    auto sd = component->sizeData();
  881|  1.50M|    sd += sd & 1;  // Align data to word boundary
  882|  1.50M|    dataIdx += sd;
  883|  1.50M|  }
  884|       |  // c) Pointer to the next IFD
  885|  22.4k|  if (hasNext_) {
  ------------------
  |  Branch (885:7): [True: 22.3k, False: 87]
  ------------------
  886|  22.3k|    memset(buf, 0x0, 4);
  887|  22.3k|    if (pNext_ && sizeNext) {
  ------------------
  |  Branch (887:9): [True: 237, False: 22.1k]
  |  Branch (887:19): [True: 236, False: 1]
  ------------------
  888|    236|      l2Data(buf, static_cast<uint32_t>(offset + dataIdx), byteOrder);
  889|    236|    }
  890|  22.3k|    ioWrapper.write(buf, 4);
  891|  22.3k|    idx += 4;
  892|  22.3k|  }
  893|       |
  894|       |  // 2nd: Write IFD values - may contain pointers to additional data
  895|  22.4k|  valueIdx = sizeDir;
  896|  22.4k|  dataIdx = sizeDir + sizeValue;
  897|  1.50M|  for (auto&& component : components_) {
  ------------------
  |  Branch (897:25): [True: 1.50M, False: 22.4k]
  ------------------
  898|  1.50M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (898:40): [True: 73.6k, False: 1.42M]
  ------------------
  899|  73.6k|      size_t d = component->write(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  900|  73.6k|      enforce(sv == d, ErrorCode::kerImageWriteFailed);
  901|  73.6k|      if ((sv & 1) == 1) {
  ------------------
  |  Branch (901:11): [True: 19.7k, False: 53.9k]
  ------------------
  902|  19.7k|        ioWrapper.putb(0x0);  // Align value to word boundary
  903|  19.7k|        sv += 1;
  904|  19.7k|      }
  905|  73.6k|      idx += sv;
  906|  73.6k|      valueIdx += sv;
  907|  73.6k|    }
  908|  1.50M|    auto sd = component->sizeData();
  909|  1.50M|    sd += sd & 1;  // Align data to word boundary
  910|  1.50M|    dataIdx += sd;
  911|  1.50M|  }
  912|       |
  913|       |  // 3rd: Write data - may contain offsets too (eg sub-IFD)
  914|  22.4k|  dataIdx = sizeDir + sizeValue;
  915|  22.4k|  idx += writeData(ioWrapper, byteOrder, offset, dataIdx, imageIdx);
  916|       |
  917|       |  // 4th: Write next-IFD
  918|  22.4k|  if (pNext_ && sizeNext) {
  ------------------
  |  Branch (918:7): [True: 237, False: 22.2k]
  |  Branch (918:17): [True: 236, False: 1]
  ------------------
  919|    236|    idx += pNext_->write(ioWrapper, byteOrder, offset + idx, std::string::npos, std::string::npos, imageIdx);
  920|    236|  }
  921|       |
  922|       |  // 5th, at the root directory level only: write image data
  923|  22.4k|  if (isRootDir) {
  ------------------
  |  Branch (923:7): [True: 8.19k, False: 14.2k]
  ------------------
  924|  8.19k|    idx += writeImage(ioWrapper, byteOrder);
  925|  8.19k|  }
  926|       |
  927|  22.4k|  return idx;
  928|  22.5k|}
_ZN5Exiv28Internal13TiffDirectory13writeDirEntryERNS0_9IoWrapperENS_9ByteOrderEmPNS0_13TiffComponentEmmRm:
  931|  1.50M|                                    TiffComponent* pTiffComponent, size_t valueIdx, size_t dataIdx, size_t& imageIdx) {
  932|  1.50M|  auto pDirEntry = dynamic_cast<TiffEntryBase*>(pTiffComponent);
  933|  1.50M|  if (!pDirEntry)
  ------------------
  |  Branch (933:7): [True: 0, False: 1.50M]
  ------------------
  934|      0|    return 0;
  935|  1.50M|  byte buf[8];
  936|  1.50M|  us2Data(buf, pDirEntry->tag(), byteOrder);
  937|  1.50M|  us2Data(buf + 2, pDirEntry->tiffType(), byteOrder);
  938|  1.50M|  ul2Data(buf + 4, static_cast<uint32_t>(pDirEntry->count()), byteOrder);
  939|  1.50M|  ioWrapper.write(buf, 8);
  940|  1.50M|  if (pDirEntry->size() > 4) {
  ------------------
  |  Branch (940:7): [True: 73.6k, False: 1.43M]
  ------------------
  941|  73.6k|    pDirEntry->setOffset(Safe::add<size_t>(offset, valueIdx));
  942|  73.6k|    ul2Data(buf, static_cast<uint32_t>(pDirEntry->offset()), byteOrder);
  943|  73.6k|    ioWrapper.write(buf, 4);
  944|  1.43M|  } else {
  945|  1.43M|    const size_t len = pDirEntry->write(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  946|  1.43M|#ifndef SUPPRESS_WARNINGS
  947|  1.43M|    if (len > 4) {
  ------------------
  |  Branch (947:9): [True: 3, False: 1.43M]
  ------------------
  948|      3|      EXV_ERROR << "Unexpected length in TiffDirectory::writeDirEntry(): len == " << len << ".\n";
  ------------------
  |  |  142|      3|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 3]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      3|  LogMsg(LogMsg::error).os()
  ------------------
  949|      3|    }
  950|  1.43M|#endif
  951|  1.43M|    if (len < 4) {
  ------------------
  |  Branch (951:9): [True: 1.41M, False: 17.6k]
  ------------------
  952|  1.41M|      memset(buf, 0x0, 4);
  953|  1.41M|      ioWrapper.write(buf, 4 - len);
  954|  1.41M|    }
  955|  1.43M|  }
  956|  1.50M|  return 12;
  957|  1.50M|}  // TiffDirectory::writeDirEntry
_ZN5Exiv28Internal13TiffEntryBase7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  960|  1.47M|                              size_t /*dataIdx*/, size_t& /*imageIdx*/) {
  961|  1.47M|  if (!pValue_ || pValue_->size() == 0)
  ------------------
  |  Branch (961:7): [True: 0, False: 1.47M]
  |  Branch (961:19): [True: 1.37M, False: 100k]
  ------------------
  962|  1.37M|    return 0;
  963|       |
  964|   100k|  DataBuf buf(pValue_->size());
  965|   100k|  pValue_->copy(buf.data(), byteOrder);
  966|   100k|  ioWrapper.write(buf.c_data(), buf.size());
  967|   100k|  return buf.size();
  968|  1.47M|}  // TiffEntryBase::doWrite
_ZN5Exiv28Internal13TiffEntryBase11writeOffsetEPhmNS0_8TiffTypeENS_9ByteOrderE:
  970|  11.4k|size_t TiffEntryBase::writeOffset(byte* buf, size_t offset, TiffType tiffType, ByteOrder byteOrder) {
  971|  11.4k|  size_t rc = 0;
  972|  11.4k|  switch (tiffType) {
  973|    397|    case ttUnsignedShort:
  ------------------
  |  Branch (973:5): [True: 397, False: 11.0k]
  ------------------
  974|    885|    case ttSignedShort:
  ------------------
  |  Branch (974:5): [True: 488, False: 10.9k]
  ------------------
  975|    885|      if (offset > std::numeric_limits<uint16_t>::max())
  ------------------
  |  Branch (975:11): [True: 7, False: 878]
  ------------------
  976|      7|        throw Error(ErrorCode::kerOffsetOutOfRange);
  977|    878|      rc = us2Data(buf, static_cast<uint16_t>(offset), byteOrder);
  978|    878|      break;
  979|  10.0k|    case ttUnsignedLong:
  ------------------
  |  Branch (979:5): [True: 10.0k, False: 1.39k]
  ------------------
  980|  10.4k|    case ttSignedLong:
  ------------------
  |  Branch (980:5): [True: 439, False: 10.9k]
  ------------------
  981|  10.4k|      rc = l2Data(buf, static_cast<uint32_t>(offset), byteOrder);
  982|  10.4k|      break;
  983|     68|    default:
  ------------------
  |  Branch (983:5): [True: 68, False: 11.3k]
  ------------------
  984|     68|      throw Error(ErrorCode::kerUnsupportedDataAreaOffsetType);
  985|  11.4k|  }
  986|  11.3k|  return rc;
  987|  11.4k|}  // TiffEntryBase::writeOffset
_ZN5Exiv28Internal13TiffDataEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  990|  3.04k|                              size_t dataIdx, size_t& /*imageIdx*/) {
  991|  3.04k|  if (!pValue() || pValue()->count() == 0)
  ------------------
  |  Branch (991:7): [True: 0, False: 3.04k]
  |  Branch (991:20): [True: 2.96k, False: 86]
  ------------------
  992|  2.96k|    return 0;
  993|       |
  994|     86|  DataBuf buf(pValue()->size());
  995|     86|  size_t idx = 0;
  996|     86|  const size_t prevOffset = pValue()->toUint32(0);
  997|  2.43k|  for (size_t i = 0; i < count(); ++i) {
  ------------------
  |  Branch (997:22): [True: 2.34k, False: 86]
  ------------------
  998|  2.34k|    const size_t iOffset = pValue()->toUint32(i);
  999|  2.34k|    enforce(prevOffset <= iOffset, ErrorCode::kerOffsetOutOfRange);
 1000|  2.34k|    const auto newDataIdx = Safe::add<size_t>(iOffset - prevOffset, dataIdx);
 1001|  2.34k|    idx += writeOffset(buf.data(idx), Safe::add(offset, newDataIdx), tiffType(), byteOrder);
 1002|  2.34k|  }
 1003|     86|  ioWrapper.write(buf.c_data(), buf.size());
 1004|     86|  return buf.size();
 1005|  3.04k|}
_ZN5Exiv28Internal14TiffImageEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1008|  9.22k|                               size_t dataIdx, size_t& imageIdx) {
 1009|  9.22k|  size_t o2 = imageIdx;
 1010|       |  // For makernotes, write TIFF image data to the data area
 1011|  9.22k|  if (group() > IfdId::mnId)
  ------------------
  |  Branch (1011:7): [True: 90, False: 9.13k]
  ------------------
 1012|     90|    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.22k|  DataBuf buf(strips_.size() * 4);
 1018|  9.22k|  size_t idx = 0;
 1019|  9.22k|  for (const auto& [_, off] : strips_) {
  ------------------
  |  Branch (1019:29): [True: 1.17k, False: 9.22k]
  ------------------
 1020|  1.17k|    idx += writeOffset(buf.data(idx), o2, tiffType(), byteOrder);
 1021|       |    // Align strip data to word boundary
 1022|  1.17k|    const auto sz = Safe::add(off, off & 1);
 1023|  1.17k|    o2 = Safe::add(o2, sz);
 1024|  1.17k|    if (group() <= IfdId::mnId)
  ------------------
  |  Branch (1024:9): [True: 1.10k, False: 66]
  ------------------
 1025|  1.10k|      imageIdx = Safe::add(imageIdx, sz);
 1026|  1.17k|  }
 1027|  9.22k|  ioWrapper.write(buf.c_data(), buf.size());
 1028|  9.22k|  return buf.size();
 1029|  9.22k|}  // TiffImageEntry::doWrite
_ZN5Exiv28Internal10TiffSubIfd7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1032|  7.88k|                           size_t dataIdx, size_t& /*imageIdx*/) {
 1033|  7.88k|  DataBuf buf(ifds_.size() * 4);
 1034|  7.88k|  size_t idx = 0;
 1035|       |  // Sort IFDs by group, needed if image data tags were copied first
 1036|  7.88k|  std::sort(ifds_.begin(), ifds_.end(), [](const auto& lhs, const auto& rhs) { return lhs->group() < rhs->group(); });
 1037|  7.88k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (1037:19): [True: 7.88k, False: 7.88k]
  ------------------
 1038|  7.88k|    idx += writeOffset(buf.data(idx), offset + dataIdx, tiffType(), byteOrder);
 1039|  7.88k|    dataIdx += ifd->size();
 1040|  7.88k|  }
 1041|  7.88k|  ioWrapper.write(buf.c_data(), buf.size());
 1042|  7.88k|  return buf.size();
 1043|  7.88k|}  // TiffSubIfd::doWrite
_ZN5Exiv28Internal11TiffMnEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1046|  12.2k|                            size_t& imageIdx) {
 1047|  12.2k|  if (!mn_) {
  ------------------
  |  Branch (1047:7): [True: 6.15k, False: 6.09k]
  ------------------
 1048|  6.15k|    return TiffEntryBase::doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
 1049|  6.15k|  }
 1050|  6.09k|  return mn_->write(ioWrapper, byteOrder, offset + valueIdx, std::string::npos, std::string::npos, imageIdx);
 1051|  12.2k|}  // TiffMnEntry::doWrite
_ZN5Exiv28Internal16TiffIfdMakernote7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1054|  6.09k|                                 size_t /*dataIdx*/, size_t& imageIdx) {
 1055|  6.09k|  mnOffset_ = offset;
 1056|  6.09k|  setImageByteOrder(byteOrder);
 1057|  6.09k|  auto len = writeHeader(ioWrapper, this->byteOrder());
 1058|  6.09k|  len += ifd_.write(ioWrapper, this->byteOrder(), offset - baseOffset() + len, std::string::npos, std::string::npos,
 1059|  6.09k|                    imageIdx);
 1060|  6.09k|  return len;
 1061|  6.09k|}  // TiffIfdMakernote::doWrite
_ZN5Exiv28Internal15TiffBinaryArray7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1064|  16.7k|                                size_t dataIdx, size_t& imageIdx) {
 1065|  16.7k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (1065:7): [True: 215, False: 16.5k]
  |  Branch (1065:17): [True: 11.4k, False: 5.00k]
  ------------------
 1066|  11.7k|    return TiffEntryBase::doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
 1067|  5.00k|  if (cfg()->byteOrder_ != invalidByteOrder)
  ------------------
  |  Branch (1067:7): [True: 623, False: 4.38k]
  ------------------
 1068|    623|    byteOrder = cfg()->byteOrder_;
 1069|       |  // Tags must be sorted in ascending order
 1070|  5.00k|  std::sort(elements_.begin(), elements_.end(), cmpTagLt);
 1071|  5.00k|  size_t idx = 0;
 1072|  5.00k|  MemIo mio;  // memory stream in which to store data
 1073|  5.00k|  IoWrapper mioWrapper(mio, nullptr, 0, nullptr);
 1074|       |  // Some array entries need to have the size in the first element
 1075|  5.00k|  if (cfg()->hasSize_) {
  ------------------
  |  Branch (1075:7): [True: 96, False: 4.91k]
  ------------------
 1076|     96|    byte buf[4];
 1077|     96|    size_t elSize = TypeInfo::typeSize(toTypeId(cfg()->elTiffType_, 0, cfg()->group_));
 1078|     96|    switch (elSize) {
 1079|     92|      case 2:
  ------------------
  |  Branch (1079:7): [True: 92, False: 4]
  ------------------
 1080|     92|        idx += us2Data(buf, static_cast<uint16_t>(size()), byteOrder);
 1081|     92|        break;
 1082|      4|      case 4:
  ------------------
  |  Branch (1082:7): [True: 4, False: 92]
  ------------------
 1083|      4|        idx += ul2Data(buf, static_cast<uint32_t>(size()), byteOrder);
 1084|      4|        break;
 1085|      0|      default:
  ------------------
  |  Branch (1085:7): [True: 0, False: 96]
  ------------------
 1086|      0|        break;
 1087|     96|    }
 1088|     96|    mioWrapper.write(buf, elSize);
 1089|     96|  }
 1090|       |  // write all tags of the array (Todo: assumes that there are no duplicates, need check)
 1091|   883k|  for (auto&& element : elements_) {
  ------------------
  |  Branch (1091:23): [True: 883k, False: 5.00k]
  ------------------
 1092|       |    // Skip the manufactured tag, if it exists
 1093|   883k|    if (cfg()->hasSize_ && element->tag() == 0)
  ------------------
  |  Branch (1093:9): [True: 7.89k, False: 875k]
  |  Branch (1093:28): [True: 96, False: 7.80k]
  ------------------
 1094|     96|      continue;
 1095|   883k|    size_t newIdx = element->tag() * cfg()->tagStep();
 1096|   883k|    idx += fillGap(mioWrapper, idx, newIdx);
 1097|   883k|    idx += element->write(mioWrapper, byteOrder, offset + newIdx, valueIdx, dataIdx, imageIdx);
 1098|   883k|  }
 1099|  5.00k|  if (cfg()->hasFillers_ && def()) {
  ------------------
  |  Branch (1099:7): [True: 4.20k, False: 803]
  |  Branch (1099:29): [True: 4.20k, False: 0]
  ------------------
 1100|  4.20k|    const ArrayDef* lastDef = def() + defSize() - 1;
 1101|  4.20k|    auto lastTag = static_cast<uint16_t>(lastDef->idx_ / cfg()->tagStep());
 1102|  4.20k|    idx += fillGap(mioWrapper, idx, lastDef->idx_ + lastDef->size(lastTag, cfg()->group_));
 1103|  4.20k|  }
 1104|       |
 1105|  5.00k|  if (cfg()->cryptFct_) {
  ------------------
  |  Branch (1105:7): [True: 126, False: 4.88k]
  ------------------
 1106|       |    // Select sonyTagEncipher
 1107|    126|    CryptFct cryptFct = cfg()->cryptFct_;
 1108|    126|    if (cryptFct == &sonyTagDecipher) {
  ------------------
  |  Branch (1108:9): [True: 32, False: 94]
  ------------------
 1109|     32|      cryptFct = sonyTagEncipher;
 1110|     32|    }
 1111|    126|    DataBuf buf = cryptFct(tag(), mio.mmap(), mio.size(), pRoot_);
 1112|    126|    if (!buf.empty()) {
  ------------------
  |  Branch (1112:9): [True: 32, False: 94]
  ------------------
 1113|     32|      mio.seek(0, Exiv2::BasicIo::beg);
 1114|     32|      mio.write(buf.c_data(), buf.size());
 1115|     32|    }
 1116|    126|  }
 1117|  5.00k|  ioWrapper.write(mio.mmap(), mio.size());
 1118|       |
 1119|  5.00k|  return idx;
 1120|  5.00k|}  // TiffBinaryArray::doWrite
_ZN5Exiv28Internal17TiffBinaryElement7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1123|   883k|                                  size_t /*dataIdx*/, size_t& /*imageIdx*/) {
 1124|   883k|  auto pv = pValue();
 1125|   883k|  if (!pv || pv->count() == 0)
  ------------------
  |  Branch (1125:7): [True: 0, False: 883k]
  |  Branch (1125:14): [True: 851k, False: 32.1k]
  ------------------
 1126|   851k|    return 0;
 1127|  32.1k|  DataBuf buf(pv->size());
 1128|  32.1k|  pv->copy(buf.data(), byteOrder);
 1129|  32.1k|  ioWrapper.write(buf.c_data(), buf.size());
 1130|  32.1k|  return buf.size();
 1131|   883k|}  // TiffBinaryElement::doWrite
_ZNK5Exiv28Internal13TiffComponent9writeDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1134|  1.52M|                                size_t& imageIdx) const {
 1135|  1.52M|  return doWriteData(ioWrapper, byteOrder, offset, dataIdx, imageIdx);
 1136|  1.52M|}  // TiffComponent::writeData
_ZNK5Exiv28Internal13TiffDirectory11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1139|  22.3k|                                  size_t& imageIdx) const {
 1140|  22.3k|  size_t len = 0;
 1141|  1.50M|  for (auto&& component : components_) {
  ------------------
  |  Branch (1141:25): [True: 1.50M, False: 22.3k]
  ------------------
 1142|  1.50M|    len += component->writeData(ioWrapper, byteOrder, offset, dataIdx + len, imageIdx);
 1143|  1.50M|  }
 1144|  22.3k|  return len;
 1145|  22.3k|}  // TiffDirectory::doWriteData
_ZNK5Exiv28Internal13TiffEntryBase11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1148|  1.48M|                                  size_t /*dataIdx*/, size_t& /*imageIdx*/) const {
 1149|  1.48M|  return 0;
 1150|  1.48M|}  // TiffEntryBase::doWriteData
_ZNK5Exiv28Internal14TiffImageEntry11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1153|  9.16k|                                   size_t& /*imageIdx*/) const {
 1154|  9.16k|  size_t len = 0;
 1155|       |  // For makernotes, write TIFF image data to the data area
 1156|  9.16k|  if (group() > IfdId::mnId) {  // Todo: FIX THIS HACK!!!
  ------------------
  |  Branch (1156:7): [True: 84, False: 9.08k]
  ------------------
 1157|     84|    len = writeImage(ioWrapper, byteOrder);
 1158|     84|  }
 1159|  9.16k|  return len;
 1160|  9.16k|}  // TiffImageEntry::doWriteData
_ZNK5Exiv28Internal13TiffDataEntry11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1163|  3.00k|                                  size_t& /*imageIdx*/) const {
 1164|  3.00k|  if (!pValue())
  ------------------
  |  Branch (1164:7): [True: 0, False: 3.00k]
  ------------------
 1165|      0|    return 0;
 1166|       |
 1167|  3.00k|  DataBuf buf = pValue()->dataArea();
 1168|  3.00k|  if (!buf.empty())
  ------------------
  |  Branch (1168:7): [True: 15, False: 2.99k]
  ------------------
 1169|     15|    ioWrapper.write(buf.c_data(), buf.size());
 1170|       |  // Align data to word boundary
 1171|  3.00k|  size_t align = (buf.size() & 1);
 1172|  3.00k|  if (align)
  ------------------
  |  Branch (1172:7): [True: 14, False: 2.99k]
  ------------------
 1173|     14|    ioWrapper.putb(0x0);
 1174|       |
 1175|  3.00k|  return buf.size() + align;
 1176|  3.00k|}  // TiffDataEntry::doWriteData
_ZNK5Exiv28Internal10TiffSubIfd11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1179|  7.87k|                               size_t& imageIdx) const {
 1180|  7.87k|  size_t len = 0;
 1181|  7.87k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (1181:19): [True: 7.87k, False: 7.87k]
  ------------------
 1182|  7.87k|    len += ifd->write(ioWrapper, byteOrder, offset + dataIdx + len, std::string::npos, std::string::npos, imageIdx);
 1183|  7.87k|  }
 1184|       |  // Align data to word boundary
 1185|  7.87k|  size_t align = (len & 1);
 1186|  7.87k|  if (align)
  ------------------
  |  Branch (1186:7): [True: 0, False: 7.87k]
  ------------------
 1187|      0|    ioWrapper.putb(0x0);
 1188|       |
 1189|  7.87k|  return len + align;
 1190|  7.87k|}  // TiffSubIfd::doWriteData
_ZNK5Exiv28Internal13TiffComponent10writeImageERNS0_9IoWrapperENS_9ByteOrderE:
 1197|   695k|size_t TiffComponent::writeImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1198|   695k|  return doWriteImage(ioWrapper, byteOrder);
 1199|   695k|}  // TiffComponent::writeImage
_ZNK5Exiv28Internal13TiffDirectory12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1201|  13.3k|size_t TiffDirectory::doWriteImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1202|  13.3k|  size_t len = 0;
 1203|  13.3k|  const TiffComponent* pSubIfd = nullptr;
 1204|   682k|  for (const auto& component : components_) {
  ------------------
  |  Branch (1204:30): [True: 682k, False: 13.3k]
  ------------------
 1205|   682k|    if (component->tag() == 0x014a) {
  ------------------
  |  Branch (1205:9): [True: 24, False: 682k]
  ------------------
 1206|       |      // Hack: delay writing of sub-IFD image data to get the order correct
 1207|     24|#ifndef SUPPRESS_WARNINGS
 1208|     24|      if (pSubIfd) {
  ------------------
  |  Branch (1208:11): [True: 10, False: 14]
  ------------------
 1209|     10|        EXV_ERROR << "Multiple sub-IFD image data tags found\n";
  ------------------
  |  |  142|     10|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 10]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|     10|  LogMsg(LogMsg::error).os()
  ------------------
 1210|     10|      }
 1211|     24|#endif
 1212|     24|      pSubIfd = component.get();
 1213|     24|      continue;
 1214|     24|    }
 1215|   682k|    len += component->writeImage(ioWrapper, byteOrder);
 1216|   682k|  }
 1217|  13.3k|  if (pSubIfd) {
  ------------------
  |  Branch (1217:7): [True: 14, False: 13.3k]
  ------------------
 1218|     14|    len += pSubIfd->writeImage(ioWrapper, byteOrder);
 1219|     14|  }
 1220|  13.3k|  if (pNext_) {
  ------------------
  |  Branch (1220:7): [True: 218, False: 13.1k]
  ------------------
 1221|    218|    len += pNext_->writeImage(ioWrapper, byteOrder);
 1222|    218|  }
 1223|  13.3k|  return len;
 1224|  13.3k|}  // TiffDirectory::doWriteImage
_ZNK5Exiv28Internal13TiffEntryBase12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1226|   668k|size_t TiffEntryBase::doWriteImage(IoWrapper& /*ioWrapper*/, ByteOrder /*byteOrder*/) const {
 1227|   668k|  return 0;
 1228|   668k|}  // TiffEntryBase::doWriteImage
_ZNK5Exiv28Internal10TiffSubIfd12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1230|  4.93k|size_t TiffSubIfd::doWriteImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1231|  4.93k|  return std::transform_reduce(ifds_.begin(), ifds_.end(), size_t{}, std::plus(),
 1232|  4.93k|                               [&](const auto& ifd) { return ifd->writeImage(ioWrapper, byteOrder); });
 1233|  4.93k|}  // TiffSubIfd::doWriteImage
_ZNK5Exiv28Internal14TiffImageEntry12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1243|  9.16k|size_t TiffImageEntry::doWriteImage(IoWrapper& ioWrapper, ByteOrder /*byteOrder*/) const {
 1244|  9.16k|  if (!pValue())
  ------------------
  |  Branch (1244:7): [True: 0, False: 9.16k]
  ------------------
 1245|      0|    throw Error(ErrorCode::kerImageWriteFailed);  // #1296
 1246|       |
 1247|  9.16k|  size_t len = pValue()->sizeDataArea();
 1248|  9.16k|  if (len > 0) {
  ------------------
  |  Branch (1248:7): [True: 90, False: 9.07k]
  ------------------
 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|     90|    DataBuf buf = pValue()->dataArea();
 1254|     90|    ioWrapper.write(buf.c_data(), buf.size());
 1255|     90|    size_t align = len & 1;  // Align image data to word boundary
 1256|     90|    if (align)
  ------------------
  |  Branch (1256:9): [True: 37, False: 53]
  ------------------
 1257|     37|      ioWrapper.putb(0x0);
 1258|     90|    len += align;
 1259|  9.07k|  } 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.07k|    len = 0;
 1265|  9.07k|    for (auto&& [f, s] : strips_) {
  ------------------
  |  Branch (1265:24): [True: 185, False: 9.07k]
  ------------------
 1266|    185|      ioWrapper.write(f, s);
 1267|    185|      len += s;
 1268|    185|      size_t align = s & 1;  // Align strip data to word boundary
 1269|    185|      if (align)
  ------------------
  |  Branch (1269:11): [True: 119, False: 66]
  ------------------
 1270|    119|        ioWrapper.putb(0x0);
 1271|    185|      len += align;
 1272|    185|    }
 1273|  9.07k|  }
 1274|       |#ifdef EXIV2_DEBUG_MESSAGES
 1275|       |  std::cerr << ", len = " << len << " bytes\n";
 1276|       |#endif
 1277|  9.16k|  return len;
 1278|  9.16k|}  // TiffImageEntry::doWriteImage
_ZNK5Exiv28Internal13TiffComponent4sizeEv:
 1280|  14.2M|size_t TiffComponent::size() const {
 1281|  14.2M|  return doSize();
 1282|  14.2M|}
_ZNK5Exiv28Internal13TiffDirectory6doSizeEv:
 1284|   105k|size_t TiffDirectory::doSize() const {
 1285|   105k|  size_t compCount = count();
 1286|       |  // Size of the directory, without values and additional data
 1287|   105k|  size_t len = 2 + (12 * compCount) + (hasNext_ ? 4 : 0);
  ------------------
  |  Branch (1287:40): [True: 104k, False: 414]
  ------------------
 1288|       |  // Size of IFD values and data
 1289|  7.42M|  for (auto&& component : components_) {
  ------------------
  |  Branch (1289:25): [True: 7.42M, False: 105k]
  ------------------
 1290|  7.42M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (1290:40): [True: 357k, False: 7.07M]
  ------------------
 1291|   357k|      sv += sv & 1;  // Align value to word boundary
 1292|   357k|      len += sv;
 1293|   357k|    }
 1294|  7.42M|    auto sd = component->sizeData();
 1295|  7.42M|    sd += sd & 1;  // Align data to word boundary
 1296|  7.42M|    len += sd;
 1297|  7.42M|  }
 1298|       |  // Size of next-IFD, if any
 1299|   105k|  size_t sizeNext = 0;
 1300|   105k|  if (pNext_) {
  ------------------
  |  Branch (1300:7): [True: 0, False: 105k]
  ------------------
 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|   105k|  if (compCount == 0 && sizeNext == 0)
  ------------------
  |  Branch (1305:7): [True: 52, False: 105k]
  |  Branch (1305:25): [True: 52, False: 0]
  ------------------
 1306|     52|    len = 0;
 1307|   105k|  return len;
 1308|   105k|}
_ZNK5Exiv28Internal13TiffEntryBase6doSizeEv:
 1310|  53.2M|size_t TiffEntryBase::doSize() const {
 1311|  53.2M|  return size_;
 1312|  53.2M|}
_ZNK5Exiv28Internal14TiffImageEntry6doSizeEv:
 1314|  38.1k|size_t TiffImageEntry::doSize() const {
 1315|  38.1k|  return strips_.size() * 4;
 1316|  38.1k|}
_ZNK5Exiv28Internal10TiffSubIfd6doSizeEv:
 1318|  58.0k|size_t TiffSubIfd::doSize() const {
 1319|  58.0k|  return ifds_.size() * 4;
 1320|  58.0k|}
_ZNK5Exiv28Internal11TiffMnEntry6doSizeEv:
 1322|  68.5k|size_t TiffMnEntry::doSize() const {
 1323|  68.5k|  if (!mn_) {
  ------------------
  |  Branch (1323:7): [True: 24.9k, False: 43.6k]
  ------------------
 1324|  24.9k|    return TiffEntryBase::doSize();
 1325|  24.9k|  }
 1326|  43.6k|  return mn_->size();
 1327|  68.5k|}
_ZNK5Exiv28Internal16TiffIfdMakernote6doSizeEv:
 1329|  49.7k|size_t TiffIfdMakernote::doSize() const {
 1330|  49.7k|  return sizeHeader() + ifd_.size();
 1331|  49.7k|}
_ZNK5Exiv28Internal15TiffBinaryArray6doSizeEv:
 1333|   222k|size_t TiffBinaryArray::doSize() const {
 1334|   222k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (1334:7): [True: 2.80k, False: 219k]
  |  Branch (1334:17): [True: 149k, False: 70.2k]
  ------------------
 1335|   152k|    return TiffEntryBase::doSize();
 1336|       |
 1337|  70.2k|  if (elements_.empty())
  ------------------
  |  Branch (1337:7): [True: 0, False: 70.2k]
  ------------------
 1338|      0|    return 0;
 1339|       |
 1340|       |  // Remaining assumptions:
 1341|       |  // - array elements don't "overlap"
 1342|       |  // - no duplicate tags in the array
 1343|  70.2k|  size_t idx = 0;
 1344|  70.2k|  size_t sz = cfg()->tagStep();
 1345|  12.3M|  for (auto&& element : elements_) {
  ------------------
  |  Branch (1345:23): [True: 12.3M, False: 70.2k]
  ------------------
 1346|  12.3M|    if (element->tag() > idx) {
  ------------------
  |  Branch (1346:9): [True: 652k, False: 11.7M]
  ------------------
 1347|   652k|      idx = element->tag();
 1348|   652k|      sz = element->size();
 1349|   652k|    }
 1350|  12.3M|  }
 1351|  70.2k|  idx *= cfg()->tagStep();
 1352|  70.2k|  idx += sz;
 1353|       |
 1354|  70.2k|  if (cfg()->hasFillers_ && def()) {
  ------------------
  |  Branch (1354:7): [True: 58.9k, False: 11.3k]
  |  Branch (1354:29): [True: 58.9k, False: 0]
  ------------------
 1355|  58.9k|    const ArrayDef* lastDef = def() + defSize() - 1;
 1356|  58.9k|    auto lastTag = static_cast<uint16_t>(lastDef->idx_ / cfg()->tagStep());
 1357|  58.9k|    idx = std::max<size_t>(idx, lastDef->idx_ + lastDef->size(lastTag, cfg()->group_));
 1358|  58.9k|  }
 1359|  70.2k|  return idx;
 1360|       |
 1361|  70.2k|}  // TiffBinaryArray::doSize
_ZNK5Exiv28Internal17TiffBinaryElement6doSizeEv:
 1363|   652k|size_t TiffBinaryElement::doSize() const {
 1364|   652k|  if (!pValue())
  ------------------
  |  Branch (1364:7): [True: 0, False: 652k]
  ------------------
 1365|      0|    return 0;
 1366|   652k|  return pValue()->size();
 1367|   652k|}
_ZNK5Exiv28Internal13TiffComponent8sizeDataEv:
 1369|  11.0M|size_t TiffComponent::sizeData() const {
 1370|  11.0M|  return doSizeData();
 1371|  11.0M|}
_ZNK5Exiv28Internal13TiffEntryBase10doSizeDataEv:
 1377|  10.9M|size_t TiffEntryBase::doSizeData() const {
 1378|  10.9M|  return 0;
 1379|  10.9M|}
_ZNK5Exiv28Internal14TiffImageEntry10doSizeDataEv:
 1381|  28.7k|size_t TiffImageEntry::doSizeData() const {
 1382|  28.7k|  size_t len = 0;
 1383|       |  // For makernotes, TIFF image data is written to the data area
 1384|  28.7k|  if (group() > IfdId::mnId) {  // Todo: Fix this hack!!
  ------------------
  |  Branch (1384:7): [True: 1.36k, False: 27.3k]
  ------------------
 1385|  1.36k|    len = sizeImage();
 1386|  1.36k|  }
 1387|  28.7k|  return len;
 1388|  28.7k|}
_ZNK5Exiv28Internal13TiffDataEntry10doSizeDataEv:
 1390|  27.0k|size_t TiffDataEntry::doSizeData() const {
 1391|  27.0k|  if (!pValue())
  ------------------
  |  Branch (1391:7): [True: 0, False: 27.0k]
  ------------------
 1392|      0|    return 0;
 1393|  27.0k|  return pValue()->sizeDataArea();
 1394|  27.0k|}
_ZNK5Exiv28Internal10TiffSubIfd10doSizeDataEv:
 1396|  47.2k|size_t TiffSubIfd::doSizeData() const {
 1397|  47.2k|  return std::transform_reduce(ifds_.begin(), ifds_.end(), size_t{}, std::plus(), std::mem_fn(&TiffSubIfd::size));
 1398|  47.2k|}
_ZNK5Exiv28Internal13TiffComponent9sizeImageEv:
 1404|  1.36k|size_t TiffComponent::sizeImage() const {
 1405|  1.36k|  return doSizeImage();
 1406|  1.36k|}
_ZNK5Exiv28Internal14TiffImageEntry11doSizeImageEv:
 1426|  1.36k|size_t TiffImageEntry::doSizeImage() const {
 1427|  1.36k|  if (!pValue())
  ------------------
  |  Branch (1427:7): [True: 0, False: 1.36k]
  ------------------
 1428|      0|    return 0;
 1429|  1.36k|  auto len = pValue()->sizeDataArea();
 1430|  1.36k|  if (len != 0)
  ------------------
  |  Branch (1430:7): [True: 0, False: 1.36k]
  ------------------
 1431|      0|    return len;
 1432|       |
 1433|  1.36k|  return std::transform_reduce(strips_.begin(), strips_.end(), len, std::plus(),
 1434|  1.36k|                               [](const auto& s) { return s.second; });
 1435|  1.36k|}  // TiffImageEntry::doSizeImage
_ZN5Exiv28Internal8toTypeIdENS0_8TiffTypeEtNS_5IfdIdE:
 1452|  46.8M|TypeId toTypeId(TiffType tiffType, uint16_t tag, IfdId group) {
 1453|  46.8M|  auto ti = static_cast<TypeId>(tiffType);
 1454|       |  // On the fly type conversion for Exif.Photo.UserComment, Exif.GPSProcessingMethod, GPSAreaInformation
 1455|  46.8M|  if (const TagInfo* pTag = ti == undefined ? findTagInfo(tag, group) : nullptr) {
  ------------------
  |  Branch (1455:22): [True: 4.20k, False: 46.8M]
  ------------------
 1456|  4.20k|    if (pTag->typeId_ == comment) {
  ------------------
  |  Branch (1456:9): [True: 2.90k, False: 1.29k]
  ------------------
 1457|  2.90k|      ti = comment;
 1458|  2.90k|    }
 1459|  4.20k|  }
 1460|       |  // http://dev.exiv2.org/boards/3/topics/1337 change unsignedByte to signedByte
 1461|       |  // Exif.NikonAFT.AFFineTuneAdj || Exif.Pentax.Temperature
 1462|  46.8M|  if (ti == Exiv2::unsignedByte &&
  ------------------
  |  Branch (1462:7): [True: 2.69M, False: 44.1M]
  ------------------
 1463|  2.69M|      ((tag == 0x0002 && group == IfdId::nikonAFTId) || (tag == 0x0047 && group == IfdId::pentaxId))) {
  ------------------
  |  Branch (1463:9): [True: 3.84k, False: 2.69M]
  |  Branch (1463:26): [True: 245, False: 3.59k]
  |  Branch (1463:58): [True: 725, False: 2.69M]
  |  Branch (1463:75): [True: 45, False: 680]
  ------------------
 1464|    290|    ti = Exiv2::signedByte;
 1465|    290|  }
 1466|  46.8M|  return ti;
 1467|  46.8M|}
_ZN5Exiv28Internal10toTiffTypeENS_6TypeIdE:
 1469|  18.4M|TiffType toTiffType(TypeId typeId) {
 1470|  18.4M|  if (static_cast<uint32_t>(typeId) > 0xffff) {
  ------------------
  |  Branch (1470:7): [True: 0, False: 18.4M]
  ------------------
 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|  18.4M|  return static_cast<TiffType>(typeId);
 1478|  18.4M|}
_ZN5Exiv28Internal8cmpTagLtERKNSt3__110shared_ptrINS0_13TiffComponentEEES6_:
 1480|  13.5M|bool cmpTagLt(const TiffComponent::SharedPtr& lhs, const TiffComponent::SharedPtr& rhs) {
 1481|  13.5M|  if (lhs->tag() != rhs->tag())
  ------------------
  |  Branch (1481:7): [True: 9.34M, False: 4.25M]
  ------------------
 1482|  9.34M|    return lhs->tag() < rhs->tag();
 1483|  4.25M|  return lhs->idx() < rhs->idx();
 1484|  13.5M|}
_ZN5Exiv28Internal12newTiffEntryEtNS_5IfdIdE:
 1486|  7.05M|TiffComponent::UniquePtr newTiffEntry(uint16_t tag, IfdId group) {
 1487|  7.05M|  return std::make_unique<TiffEntry>(tag, group);
 1488|  7.05M|}
_ZN5Exiv28Internal14newTiffMnEntryEtNS_5IfdIdE:
 1490|  49.5k|TiffComponent::UniquePtr newTiffMnEntry(uint16_t tag, IfdId group) {
 1491|  49.5k|  return std::make_unique<TiffMnEntry>(tag, group, IfdId::mnId);
 1492|  49.5k|}
_ZN5Exiv28Internal20newTiffBinaryElementEtNS_5IfdIdE:
 1494|  14.2M|TiffComponent::UniquePtr newTiffBinaryElement(uint16_t tag, IfdId group) {
 1495|  14.2M|  return std::make_unique<TiffBinaryElement>(tag, group);
 1496|  14.2M|}
tiffcomposite_int.cpp:_ZZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_0clEv:
  473|  1.52M|  auto atc = [&] {
  474|  1.52M|    if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (474:9): [True: 1.50M, False: 17.7k]
  |  Branch (474:33): [True: 0, False: 1.50M]
  ------------------
  475|      0|      return std::move(object);
  476|      0|    }
  477|  1.52M|    return TiffCreator::create(tpi.extendedTag(), tpi.group());
  478|  1.52M|  }();
tiffcomposite_int.cpp:_ZZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_1clEv:
  485|  1.50M|  tc = [&] {
  486|  1.50M|    if (tpi.extendedTag() == Tag::next)
  ------------------
  |  Branch (486:9): [True: 237, False: 1.50M]
  ------------------
  487|    237|      return this->addNext(std::move(atc));
  488|  1.50M|    return this->addChild(std::move(atc));
  489|  1.50M|  }();
tiffcomposite_int.cpp:_ZZN5Exiv28Internal10TiffSubIfd9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_0clEv:
  508|  7.92k|  auto tc = [&] {
  509|  7.92k|    if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (509:9): [True: 0, False: 7.92k]
  |  Branch (509:33): [True: 0, False: 0]
  ------------------
  510|      0|      return addChild(std::move(object));
  511|      0|    }
  512|  7.92k|    return addChild(std::make_unique<TiffDirectory>(tpi1.tag(), tpi2.group()));
  513|  7.92k|  }();
tiffcomposite_int.cpp:_ZZNK5Exiv28Internal10TiffSubIfd12doWriteImageERNS0_9IoWrapperENS_9ByteOrderEENK3$_0clINSt3__110shared_ptrINS0_13TiffDirectoryEEEEEDaRKT_:
 1232|  4.93k|                               [&](const auto& ifd) { return ifd->writeImage(ioWrapper, byteOrder); });
tiffcomposite_int.cpp:_ZZNK5Exiv28Internal14TiffImageEntry11doSizeImageEvENK3$_0clINSt3__14pairIPKhmEEEEDaRKT_:
 1434|    460|                               [](const auto& s) { return s.second; });
tiffcomposite_int.cpp:_ZN5Exiv28InternalL11findTagInfoEtNS_5IfdIdE:
 1437|   109k|static const TagInfo* findTagInfo(uint16_t tag, IfdId group) {
 1438|   109k|  const TagInfo* tags = [=] {
 1439|   109k|    if (group == IfdId::gpsId)
 1440|   109k|      return Internal::gpsTagList();
 1441|   109k|    return group == IfdId::exifId ? Internal::exifTagList() : nullptr;
 1442|   109k|  }();
 1443|   109k|  if (tags)
  ------------------
  |  Branch (1443:7): [True: 4.84k, False: 104k]
  ------------------
 1444|   151k|    for (size_t idx = 0; tags[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (1444:26): [True: 150k, False: 645]
  ------------------
 1445|   150k|      if (tags[idx].tag_ == tag)
  ------------------
  |  Branch (1445:11): [True: 4.20k, False: 146k]
  ------------------
 1446|  4.20k|        return tags + idx;
 1447|   105k|  return nullptr;
 1448|   109k|}
tiffcomposite_int.cpp:_ZZN5Exiv28InternalL11findTagInfoEtNS_5IfdIdEENK3$_0clEv:
 1438|   109k|  const TagInfo* tags = [=] {
 1439|   109k|    if (group == IfdId::gpsId)
  ------------------
  |  Branch (1439:9): [True: 3.41k, False: 106k]
  ------------------
 1440|  3.41k|      return Internal::gpsTagList();
 1441|   106k|    return group == IfdId::exifId ? Internal::exifTagList() : nullptr;
  ------------------
  |  Branch (1441:12): [True: 1.42k, False: 104k]
  ------------------
 1442|   109k|  }();
tiffcomposite_int.cpp:_ZN12_GLOBAL__N_17fillGapERN5Exiv28Internal9IoWrapperEmm:
 1503|   887k|size_t fillGap(Exiv2::Internal::IoWrapper& ioWrapper, size_t curr, size_t tobe) {
 1504|   887k|  if (curr < tobe) {
  ------------------
  |  Branch (1504:7): [True: 439k, False: 447k]
  ------------------
 1505|   439k|    Exiv2::DataBuf buf(tobe - curr);
 1506|   439k|    ioWrapper.write(buf.c_data(), buf.size());
 1507|   439k|    return tobe - curr;
 1508|   439k|  }
 1509|   447k|  return 0;
 1510|   887k|}

_ZN5Exiv28Internal12TiffPathItemC2EjNS_5IfdIdE:
   74|  9.12M|  constexpr TiffPathItem(uint32_t extendedTag, IfdId group) : extendedTag_(extendedTag), group_(group) {
   75|  9.12M|  }
_ZNK5Exiv28Internal12TiffPathItem3tagEv:
   81|  38.2M|  [[nodiscard]] uint16_t tag() const {
   82|  38.2M|    return static_cast<uint16_t>(extendedTag_);
   83|  38.2M|  }
_ZNK5Exiv28Internal12TiffPathItem11extendedTagEv:
   85|  9.77M|  [[nodiscard]] uint32_t extendedTag() const {
   86|  9.77M|    return extendedTag_;
   87|  9.77M|  }
_ZNK5Exiv28Internal12TiffPathItem5groupEv:
   89|  9.43M|  [[nodiscard]] IfdId group() const {
   90|  9.43M|    return group_;
   91|  9.43M|  }
_ZN5Exiv28Internal13TiffComponentC2EtNS_5IfdIdE:
  170|  21.7M|  constexpr TiffComponent(uint16_t tag, IfdId group) : tag_(tag), group_(group) {
  171|  21.7M|  }
_ZN5Exiv28Internal13TiffComponent8setStartEPKh:
  216|  19.3M|  void setStart(const byte* pStart) {
  217|  19.3M|    pStart_ = const_cast<byte*>(pStart);
  218|  19.3M|  }
_ZNK5Exiv28Internal13TiffComponent3tagEv:
  240|   234M|  [[nodiscard]] uint16_t tag() const {
  241|   234M|    return tag_;
  242|   234M|  }
_ZNK5Exiv28Internal13TiffComponent5groupEv:
  244|  85.2M|  [[nodiscard]] IfdId group() const {
  245|  85.2M|    return group_;
  246|  85.2M|  }
_ZNK5Exiv28Internal13TiffComponent5startEv:
  248|  19.5M|  [[nodiscard]] byte* start() const {
  249|  19.5M|    return pStart_;
  250|  19.5M|  }
_ZN5Exiv28Internal13TiffEntryBase9setOffsetEm:
  416|  16.1M|  void setOffset(size_t offset) {
  417|  16.1M|    offset_ = offset;
  418|  16.1M|  }
_ZNK5Exiv28Internal13TiffEntryBase8tiffTypeEv:
  458|  1.56M|  [[nodiscard]] TiffType tiffType() const {
  459|  1.56M|    return tiffType_;
  460|  1.56M|  }
_ZNK5Exiv28Internal13TiffEntryBase6offsetEv:
  465|  73.6k|  [[nodiscard]] size_t offset() const {
  466|  73.6k|    return offset_;
  467|  73.6k|  }
_ZNK5Exiv28Internal13TiffEntryBase5pDataEv:
  476|  26.6M|  [[nodiscard]] const byte* pData() const {
  477|  26.6M|    return pData_;
  478|  26.6M|  }
_ZNK5Exiv28Internal13TiffEntryBase6pValueEv:
  480|  37.7M|  [[nodiscard]] const Value* pValue() const {
  481|  37.7M|    return pValue_.get();
  482|  37.7M|  }
_ZN5Exiv28Internal13TiffEntryBase8setCountEm:
  497|   892k|  void setCount(size_t count) {
  498|   892k|    count_ = count;
  499|   892k|  }
_ZN5Exiv28Internal13TiffEntryBase6setIdxEi:
  501|  16.0M|  void setIdx(int idx) {
  502|  16.0M|    idx_ = idx;
  503|  16.0M|  }
_ZNK5Exiv28Internal13TiffEntryBase7storageEv:
  540|  13.2M|  [[nodiscard]] std::shared_ptr<DataBuf> storage() const {
  541|  13.2M|    return storage_;
  542|  13.2M|  }
_ZNK5Exiv28Internal17TiffDataEntryBase5szTagEv:
  623|  42.8k|  [[nodiscard]] uint16_t szTag() const {
  624|  42.8k|    return szTag_;
  625|  42.8k|  }
_ZNK5Exiv28Internal17TiffDataEntryBase7szGroupEv:
  627|  42.8k|  [[nodiscard]] IfdId szGroup() const {
  628|  42.8k|    return szGroup_;
  629|  42.8k|  }
_ZNK5Exiv28Internal13TiffSizeEntry5dtTagEv:
  789|  57.7k|  [[nodiscard]] uint16_t dtTag() const {
  790|  57.7k|    return dtTag_;
  791|  57.7k|  }
_ZNK5Exiv28Internal13TiffSizeEntry7dtGroupEv:
  793|  57.7k|  [[nodiscard]] IfdId dtGroup() const {
  794|  57.7k|    return dtGroup_;
  795|  57.7k|  }
_ZNK5Exiv28Internal13TiffDirectory7hasNextEv:
  842|  23.1k|  [[nodiscard]] bool hasNext() const {
  843|  23.1k|    return hasNext_;
  844|  23.1k|  }
_ZN5Exiv28Internal16TiffIfdMakernote17setImageByteOrderENS_9ByteOrderE:
 1106|  35.2k|  void setImageByteOrder(ByteOrder byteOrder) {
 1107|  35.2k|    imageByteOrder_ = byteOrder;
 1108|  35.2k|  }
_ZNK5Exiv28Internal8ArrayDefeqEm:
 1217|  16.4M|  bool operator==(size_t idx) const {
 1218|  16.4M|    return idx_ == idx;
 1219|  16.4M|  }
_ZNK5Exiv28Internal8ArrayCfg7tagStepEv:
 1234|  14.3M|  [[nodiscard]] size_t tagStep() const {
 1235|  14.3M|    return elDefaultDef_.size(0, group_);
 1236|  14.3M|  }
_ZN5Exiv28Internal15TiffBinaryArray10setDecodedEb:
 1310|  14.1M|  void setDecoded(bool decoded) {
 1311|  14.1M|    decoded_ = decoded;
 1312|  14.1M|  }
_ZNK5Exiv28Internal15TiffBinaryArray3cfgEv:
 1318|  55.4M|  [[nodiscard]] const ArrayCfg* cfg() const {
 1319|  55.4M|    return arrayCfg_;
 1320|  55.4M|  }
_ZNK5Exiv28Internal15TiffBinaryArray3defEv:
 1322|   138k|  [[nodiscard]] const ArrayDef* def() const {
 1323|   138k|    return arrayDef_;
 1324|   138k|  }
_ZNK5Exiv28Internal15TiffBinaryArray7defSizeEv:
 1326|  75.1k|  [[nodiscard]] size_t defSize() const {
 1327|  75.1k|    return defSize_;
 1328|  75.1k|  }
_ZNK5Exiv28Internal15TiffBinaryArray7decodedEv:
 1330|   297k|  [[nodiscard]] bool decoded() const {
 1331|   297k|    return decoded_;
 1332|   297k|  }
_ZN5Exiv28Internal17TiffBinaryElement8setElDefERKNS0_8ArrayDefE:
 1404|  13.2M|  void setElDef(const ArrayDef& def) {
 1405|  13.2M|    elDef_ = def;
 1406|  13.2M|  }
_ZN5Exiv28Internal17TiffBinaryElement14setElByteOrderENS_9ByteOrderE:
 1410|  13.2M|  void setElByteOrder(ByteOrder byteOrder) {
 1411|  13.2M|    elByteOrder_ = byteOrder;
 1412|  13.2M|  }
_ZNK5Exiv28Internal17TiffBinaryElement5elDefEv:
 1420|  13.3M|  [[nodiscard]] const ArrayDef* elDef() const {
 1421|  13.3M|    return &elDef_;
 1422|  13.3M|  }
_ZNK5Exiv28Internal17TiffBinaryElement11elByteOrderEv:
 1426|  13.3M|  [[nodiscard]] ByteOrder elByteOrder() const {
 1427|  13.3M|    return elByteOrder_;
 1428|  13.3M|  }
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  34.6k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  34.6k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  34.6k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE56EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|     96|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|     96|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|     96|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE5EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    219|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    219|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    219|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE21EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  11.3k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  11.3k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  11.3k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE6EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  1.11k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  1.11k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  1.11k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE5EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  9.66k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  9.66k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  9.66k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE6EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    103|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    103|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    103|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.89k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.89k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.89k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  3.25k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  3.25k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  3.25k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    821|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    821|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    821|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    940|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    940|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    940|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  10.0k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  10.0k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  10.0k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  21.4k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  21.4k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  21.4k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.82k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.82k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.82k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  6.07k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  6.07k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  6.07k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE9EEENSt3__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|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.21k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.21k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.21k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    219|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    219|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    219|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    342|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    342|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    342|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  4.40k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  4.40k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  4.40k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  5.15k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  5.15k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  5.15k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.18k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.18k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.18k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    997|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    997|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    997|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    507|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    507|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    507|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    379|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    379|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    379|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.47k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.47k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.47k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  4.84k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  4.84k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  4.84k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.19k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.19k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.19k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.16k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.16k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.16k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    561|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    561|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    561|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    498|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    498|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    498|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.30k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.30k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.30k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  3.98k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  3.98k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  3.98k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    924|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    924|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    924|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    961|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    961|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    961|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    138|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    138|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    138|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    343|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    343|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    343|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.14k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.14k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.14k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  4.32k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  4.32k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  4.32k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    258|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    258|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    258|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    453|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    453|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    453|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    383|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    383|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    383|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    724|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    724|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    724|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    946|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    946|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    946|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.20k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.20k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.20k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    447|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    447|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    447|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    148|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    148|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    148|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    462|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    462|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    462|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    539|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    539|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    539|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    737|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    737|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    737|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    931|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    931|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    931|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    246|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    246|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    246|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    545|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    545|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    545|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    433|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    433|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    433|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    730|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    730|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    730|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    767|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    767|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    767|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    969|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    969|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    969|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    345|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    345|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    345|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    464|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    464|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    464|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    623|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    623|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    623|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    216|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    216|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    216|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    623|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    623|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    623|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    585|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    585|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    585|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    396|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    396|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    396|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    485|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    485|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    485|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    618|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    618|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    618|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    182|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    182|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    182|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    612|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    612|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    612|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    589|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    589|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    589|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE7EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    937|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    937|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    937|}
_ZN5Exiv28Internal16newTiffThumbDataILt279ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|     69|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|     69|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|     69|}
_ZN5Exiv28Internal16newTiffThumbSizeILt273ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|    363|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|    363|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|    363|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    372|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    372|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    372|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    242|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    242|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    242|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    136|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    136|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    136|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  1.77k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  1.77k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  1.77k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  2.42k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  2.42k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  2.42k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    507|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    507|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    507|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     58|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     58|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     58|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    375|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    375|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    375|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    336|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    336|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    336|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    273|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    273|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    273|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    449|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    449|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    449|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    253|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    253|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    253|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     78|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     78|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     78|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    205|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    205|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    205|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    270|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    270|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    270|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    358|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    358|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    358|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|     94|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|     94|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|     94|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     87|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     87|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     87|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    206|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    206|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    206|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    193|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    193|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    193|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    303|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    303|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    303|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10minoCsoCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  21.7k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  21.7k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  21.7k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10minoCsnCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  4.70k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  4.70k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  4.70k|}
_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|  11.3k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  11.3k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  11.3k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE101EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    840|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    840|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    840|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE102EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    138|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    138|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    138|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE103EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    552|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    552|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    552|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE104EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    154|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    154|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    154|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE105EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.47k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.47k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.47k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE106EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    225|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    225|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    225|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE107EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    920|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    920|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    920|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE108EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    634|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    634|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    634|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE109EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.64k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.64k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.64k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE110EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    432|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    432|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    432|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE111EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    278|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    278|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    278|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE112EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  3.88k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  3.88k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  3.88k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE113EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  7.07k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  7.07k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  7.07k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE114EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  2.83k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  2.83k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  2.83k|}
_ZN5Exiv28Internal16newTiffImageDataILt258ELNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.05k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.05k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.05k|}
_ZN5Exiv28Internal16newTiffImageSizeILt257ELNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    714|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    714|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    714|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonCsCfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonCsDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  13.8k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  13.8k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  13.8k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  13.8k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonSiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  2.61k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  2.61k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  2.61k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPaCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  1.33k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  1.33k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  1.33k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonCfCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    678|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    678|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    678|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPiCfgEEEENSt3__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:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonTiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    547|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    547|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    547|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonFiCfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonFiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    955|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    955|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    955|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    955|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPrCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    199|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    199|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    199|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L15canonAfMiAdjCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     46|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     46|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     46|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L15canonVigCor2CfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     38|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     38|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     38|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12canonLiOpCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    339|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    339|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    339|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonLeCfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonLeDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|     45|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|     45|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|     45|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|     45|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonAmCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    179|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    179|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    179|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonMeCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    250|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    250|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    250|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonFilCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     78|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     78|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     78|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonHdrCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    195|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    195|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    195|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonAfCCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    765|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    765|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    765|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12canonRawBCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     23|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     23|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     23|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    207|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    207|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    207|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonVrCfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonVrDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    145|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    145|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    145|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    145|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonPcCfgEELm13ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonPcDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    186|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    186|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    186|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    186|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonWtCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonWtDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    298|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    298|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    298|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    298|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonIiCfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonIiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    206|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    206|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    206|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    206|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonAfCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonAfDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    200|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    200|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    200|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    200|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm6ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonSiSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    180|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    180|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    180|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    180|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm6ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonCbSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    322|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    322|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    322|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    322|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm4ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonLdSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    251|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    251|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    251|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    251|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm5ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonFlSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    179|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    179|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    179|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    179|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonMeCfgEELm4ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonMeDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    121|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    121|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    121|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    121|}
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|    420|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    420|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    420|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    420|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L11nikonAFTCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L11nikonAFTDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    200|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    200|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    200|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    200|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    111|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    111|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    111|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|    127|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|    127|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|    127|}
_ZN5Exiv28Internal16newTiffThumbSizeILt4ELNS_5IfdIdE117EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  3.00k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  3.00k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  3.00k|}
_ZN5Exiv28Internal16newTiffThumbDataILt3ELNS_5IfdIdE117EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  2.84k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  2.84k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  2.84k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt4ELNS_5IfdIdE116EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  1.81k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  1.81k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  1.81k|}
_ZN5Exiv28Internal16newTiffThumbDataILt3ELNS_5IfdIdE116EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  1.69k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  1.69k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  1.69k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12samsungPwCfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L12samsungPwDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  4.98k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  4.98k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  4.98k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  4.98k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    507|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    507|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    507|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  2.40k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  2.40k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  2.40k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  3.23k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  3.23k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  3.23k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L12sony2010eSetEEXadL_ZNS0_17sony2010eSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|     87|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|     87|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|     87|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|     87|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony2FpSetEEXadL_ZNS0_15sony2FpSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    804|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    804|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    804|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    804|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L13sonyMisc2bSetEEXadL_ZNS0_18sonyMisc2bSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    166|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    166|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    166|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    166|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L13sonyMisc3cSetEEXadL_ZNS0_18sonyMisc3cSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    364|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    364|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    364|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    364|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12sonyMisc1CfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L12sonyMisc1DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    147|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    147|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    147|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    147|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L13sonySInfo1CfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L13sonySInfo1DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    993|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    993|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    993|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    993|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony1CsSetEEXadL_ZNS0_14sonyCsSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    748|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    748|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    748|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    748|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    304|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    304|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    304|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony2CsSetEEXadL_ZNS0_14sonyCsSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    990|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    990|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    990|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    990|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12sony1MCsoCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    621|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    621|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    621|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12sony1MCsnCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    417|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    417|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    417|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12sony1MCs7CfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs7DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    390|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    390|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    390|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    390|}
_ZN5Exiv28Internal16newTiffThumbDataILt137ELNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    358|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    358|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    358|}
_ZN5Exiv28Internal16newTiffThumbSizeILt136ELNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|     17|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|     17|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|     17|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L15sony1MCsA100CfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L15sony1MCsA100DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    285|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    285|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    285|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    285|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10minoCs7CfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs7DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  1.11k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  1.11k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  1.11k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  1.11k|}
_ZN5Exiv28Internal16newTiffThumbDataILt137ELNS_5IfdIdE57EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|     50|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|     50|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|     50|}
_ZN5Exiv28Internal16newTiffThumbSizeILt136ELNS_5IfdIdE57EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|    119|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|    119|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|    119|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10minoCs5CfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs5DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    263|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    263|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    263|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    263|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE19EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  2.37k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  2.37k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  2.37k|}
_ZN5Exiv28Internal13TiffComponentD2Ev:
  173|  21.7M|  virtual ~TiffComponent() = default;
_ZN5Exiv28Internal13TiffDirectoryD2Ev:
  830|   145k|  ~TiffDirectory() override = default;
_ZN5Exiv28Internal10TiffSubIfdD2Ev:
  937|  46.5k|  ~TiffSubIfd() override = default;
_ZN5Exiv28Internal15TiffBinaryArrayD2Ev:
 1269|  64.3k|  ~TiffBinaryArray() override = default;

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

_ZNK5Exiv28Internal13FindExifdatumclERKNS_9ExifdatumE:
   29|  16.7M|bool FindExifdatum::operator()(const Exiv2::Exifdatum& md) const {
   30|  16.7M|  return ifdId_ == md.ifdId();
   31|  16.7M|}
_ZN5Exiv28Internal11TiffMapping11findDecoderENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEjNS_5IfdIdE:
 1991|  15.9M|DecoderFct TiffMapping::findDecoder(std::string_view make, uint32_t extendedTag, IfdId group) {
 1992|  15.9M|  DecoderFct decoderFct = &TiffDecoder::decodeStdTiffEntry;
 1993|  15.9M|  if (auto td = Exiv2::find(tiffMappingInfo_, TiffMappingInfo::Key{make, extendedTag, group})) {
  ------------------
  |  Branch (1993:12): [True: 5.22k, False: 15.9M]
  ------------------
 1994|       |    // This may set decoderFct to 0, meaning that the tag should not be decoded
 1995|  5.22k|    decoderFct = td->decoderFct_;
 1996|  5.22k|  }
 1997|  15.9M|  return decoderFct;
 1998|  15.9M|}
_ZN5Exiv28Internal11TiffMapping11findEncoderENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEjNS_5IfdIdE:
 2000|  2.37M|EncoderFct TiffMapping::findEncoder(std::string_view make, uint32_t extendedTag, IfdId group) {
 2001|  2.37M|  EncoderFct encoderFct = nullptr;
 2002|  2.37M|  if (auto td = Exiv2::find(tiffMappingInfo_, TiffMappingInfo::Key{make, extendedTag, group})) {
  ------------------
  |  Branch (2002:12): [True: 686, False: 2.37M]
  ------------------
 2003|       |    // Returns 0 if no special encoder function is found
 2004|    686|    encoderFct = td->encoderFct_;
 2005|    686|  }
 2006|  2.37M|  return encoderFct;
 2007|  2.37M|}
_ZN5Exiv28Internal11TiffCreator6createEjNS_5IfdIdE:
 2009|  21.7M|TiffComponent::UniquePtr TiffCreator::create(uint32_t extendedTag, IfdId group) {
 2010|  21.7M|  auto tag = static_cast<uint16_t>(extendedTag);
 2011|  21.7M|  auto i = tiffGroupTable_.find(TiffGroupKey(extendedTag, group));
 2012|       |  // If the lookup failed then try again with Tag::all.
 2013|  21.7M|  if (i == tiffGroupTable_.end()) {
  ------------------
  |  Branch (2013:7): [True: 21.3M, False: 355k]
  ------------------
 2014|  21.3M|    i = tiffGroupTable_.find(TiffGroupKey(Tag::all, group));
 2015|  21.3M|  }
 2016|  21.7M|  if (i != tiffGroupTable_.end() && i->second) {
  ------------------
  |  Branch (2016:7): [True: 21.6M, False: 68.9k]
  |  Branch (2016:7): [True: 21.6M, False: 80.3k]
  |  Branch (2016:37): [True: 21.6M, False: 11.3k]
  ------------------
 2017|  21.6M|    return i->second(tag, group);
 2018|  21.6M|  }
 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|  80.3k|  return nullptr;
 2028|  21.7M|}  // TiffCreator::create
_ZN5Exiv28Internal11TiffCreator7getPathEjNS_5IfdIdEj:
 2030|  2.38M|TiffPath TiffCreator::getPath(uint32_t extendedTag, IfdId group, uint32_t root) {
 2031|  2.38M|  TiffPath ret;
 2032|  9.12M|  while (true) {
  ------------------
  |  Branch (2032:10): [True: 9.12M, Folded]
  ------------------
 2033|  9.12M|    ret.emplace(extendedTag, group);
 2034|  9.12M|    const auto ts = tiffTreeTable_.find(TiffGroupKey(root, group));
 2035|  9.12M|    assert(ts != tiffTreeTable_.end());
 2036|  9.12M|    extendedTag = ts->second.second;
 2037|  9.12M|    group = ts->second.first;
 2038|  9.12M|    if (ts->first == TiffGroupKey(root, IfdId::ifdIdNotSet)) {
  ------------------
  |  Branch (2038:9): [True: 2.38M, False: 6.73M]
  ------------------
 2039|  2.38M|      break;
 2040|  2.38M|    }
 2041|  9.12M|  }
 2042|  2.38M|  return ret;
 2043|  2.38M|}
_ZN5Exiv28Internal16TiffParserWorker6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhmjPFMNS0_11TiffDecoderEFvPKNS0_13TiffEntryBaseEENSt3__117basic_string_viewIcNSG_11char_traitsIcEEEEjNS_5IfdIdEEPNS0_14TiffHeaderBaseE:
 2046|  41.0k|                                   size_t size, uint32_t root, FindDecoderFct findDecoderFct, TiffHeaderBase* pHeader) {
 2047|       |  // Create standard TIFF header if necessary
 2048|  41.0k|  std::unique_ptr<TiffHeaderBase> ph;
 2049|  41.0k|  if (!pHeader) {
  ------------------
  |  Branch (2049:7): [True: 37.8k, False: 3.20k]
  ------------------
 2050|  37.8k|    ph = std::make_unique<TiffHeader>();
 2051|  37.8k|    pHeader = ph.get();
 2052|  37.8k|  }
 2053|       |
 2054|  41.0k|  if (auto rootDir = parse(pData, size, root, pHeader)) {
  ------------------
  |  Branch (2054:12): [True: 40.8k, False: 222]
  ------------------
 2055|  40.8k|    auto decoder = TiffDecoder(exifData, iptcData, xmpData, rootDir.get(), findDecoderFct);
 2056|  40.8k|    rootDir->accept(decoder);
 2057|  40.8k|  }
 2058|  41.0k|  return pHeader->byteOrder();
 2059|       |
 2060|  41.0k|}  // TiffParserWorker::decode
_ZN5Exiv28Internal16TiffParserWorker6encodeERNS_7BasicIoEPKhmRKNS_8ExifDataERKNS_8IptcDataERKNS_7XmpDataEjPFMNS0_11TiffEncoderEFvPNS0_13TiffEntryBaseEPKNS_9ExifdatumEENSt3__117basic_string_viewIcNSN_11char_traitsIcEEEEjNS_5IfdIdEEPNS0_14TiffHeaderBaseEPNS0_12OffsetWriterE:
 2065|  8.34k|                                     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.34k|  WriteMethod writeMethod = wmIntrusive;
 2074|  8.34k|  auto parsedTree = parse(pData, size, root, pHeader);
 2075|  8.34k|  auto primaryGroups = findPrimaryGroups(parsedTree);
 2076|  8.34k|  if (parsedTree) {
  ------------------
  |  Branch (2076:7): [True: 647, False: 7.70k]
  ------------------
 2077|       |    // Attempt to update existing TIFF components based on metadata entries
 2078|    647|    TiffEncoder encoder(exifData, iptcData, xmpData, parsedTree.get(), false, primaryGroups, pHeader, findEncoderFct);
 2079|    647|    parsedTree->accept(encoder);
 2080|    647|    if (!encoder.dirty())
  ------------------
  |  Branch (2080:9): [True: 47, False: 600]
  ------------------
 2081|     47|      writeMethod = wmNonIntrusive;
 2082|    647|  }
 2083|  8.34k|  if (writeMethod == wmIntrusive) {
  ------------------
  |  Branch (2083:7): [True: 8.30k, False: 47]
  ------------------
 2084|  8.30k|    auto createdTree = TiffCreator::create(root, IfdId::ifdIdNotSet);
 2085|  8.30k|    if (parsedTree) {
  ------------------
  |  Branch (2085:9): [True: 600, False: 7.70k]
  ------------------
 2086|       |      // Copy image tags from the original image to the composite
 2087|    600|      TiffCopier copier(createdTree.get(), root, pHeader, primaryGroups);
 2088|    600|      parsedTree->accept(copier);
 2089|    600|    }
 2090|       |    // Add entries from metadata to composite
 2091|  8.30k|    TiffEncoder encoder(exifData, iptcData, xmpData, createdTree.get(), !parsedTree, std::move(primaryGroups), pHeader,
 2092|  8.30k|                        findEncoderFct);
 2093|  8.30k|    encoder.add(createdTree.get(), std::move(parsedTree), root);
 2094|       |    // Write binary representation from the composite tree
 2095|  8.30k|    DataBuf header = pHeader->write();
 2096|  8.30k|    auto tempIo = MemIo();
 2097|  8.30k|    IoWrapper ioWrapper(tempIo, header.c_data(), header.size(), pOffsetWriter);
 2098|  8.30k|    auto imageIdx(std::string::npos);
 2099|  8.30k|    createdTree->write(ioWrapper, pHeader->byteOrder(), header.size(), std::string::npos, std::string::npos, imageIdx);
 2100|  8.30k|    if (pOffsetWriter)
  ------------------
  |  Branch (2100:9): [True: 0, False: 8.30k]
  ------------------
 2101|      0|      pOffsetWriter->writeOffsets(tempIo);
 2102|  8.30k|    io.transfer(tempIo);  // may throw
 2103|  8.30k|#ifndef SUPPRESS_WARNINGS
 2104|  8.30k|    EXV_INFO << "Write strategy: Intrusive\n";
  ------------------
  |  |  134|  8.30k|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 8.30k]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|  8.30k|  LogMsg(LogMsg::info).os()
  ------------------
 2105|  8.30k|#endif
 2106|  8.30k|  }
 2107|     47|#ifndef SUPPRESS_WARNINGS
 2108|     47|  else {
 2109|     47|    EXV_INFO << "Write strategy: Non-intrusive\n";
  ------------------
  |  |  134|     47|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 47]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|     47|  LogMsg(LogMsg::info).os()
  ------------------
 2110|     47|  }
 2111|  8.34k|#endif
 2112|  8.34k|  return writeMethod;
 2113|  8.34k|}  // TiffParserWorker::encode
_ZN5Exiv28Internal16TiffParserWorker5parseEPKhmjPNS0_14TiffHeaderBaseE:
 2116|  49.3k|                                                 TiffHeaderBase* pHeader) {
 2117|  49.3k|  TiffComponent::UniquePtr rootDir;
 2118|  49.3k|  if (!pData || size == 0)
  ------------------
  |  Branch (2118:7): [True: 7.81k, False: 41.5k]
  |  Branch (2118:17): [True: 0, False: 41.5k]
  ------------------
 2119|  7.81k|    return rootDir;
 2120|  41.5k|  if (!pHeader->read(pData, size) || pHeader->offset() >= size) {
  ------------------
  |  Branch (2120:7): [True: 51, False: 41.5k]
  |  Branch (2120:38): [True: 61, False: 41.4k]
  ------------------
 2121|    112|    throw Error(ErrorCode::kerNotAnImage, "TIFF");
 2122|    112|  }
 2123|  41.4k|  rootDir = TiffCreator::create(root, IfdId::ifdIdNotSet);
 2124|  41.4k|  if (rootDir) {
  ------------------
  |  Branch (2124:7): [True: 41.4k, False: 0]
  ------------------
 2125|  41.4k|    rootDir->setStart(pData + pHeader->offset());
 2126|  41.4k|    auto state = TiffRwState{pHeader->byteOrder(), 0};
 2127|  41.4k|    auto reader = TiffReader{pData, size, rootDir.get(), state};
 2128|  41.4k|    rootDir->accept(reader);
 2129|  41.4k|    reader.postProcess();
 2130|  41.4k|  }
 2131|  41.4k|  return rootDir;
 2132|       |
 2133|  41.5k|}  // TiffParserWorker::parse
_ZN5Exiv28Internal16TiffParserWorker17findPrimaryGroupsERKNSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEE:
 2135|  8.34k|PrimaryGroups TiffParserWorker::findPrimaryGroups(const TiffComponent::UniquePtr& pSourceDir) {
 2136|  8.34k|  PrimaryGroups ret;
 2137|  8.34k|  if (!pSourceDir)
  ------------------
  |  Branch (2137:7): [True: 7.70k, False: 647]
  ------------------
 2138|  7.70k|    return ret;
 2139|       |
 2140|    647|  static constexpr auto imageGroups = std::array{
 2141|    647|      IfdId::ifd0Id,      IfdId::ifd1Id,      IfdId::ifd2Id,      IfdId::ifd3Id,      IfdId::subImage1Id,
 2142|    647|      IfdId::subImage2Id, IfdId::subImage3Id, IfdId::subImage4Id, IfdId::subImage5Id, IfdId::subImage6Id,
 2143|    647|      IfdId::subImage7Id, IfdId::subImage8Id, IfdId::subImage9Id,
 2144|    647|  };
 2145|       |
 2146|  8.41k|  for (auto imageGroup : imageGroups) {
  ------------------
  |  Branch (2146:24): [True: 8.41k, False: 647]
  ------------------
 2147|  8.41k|    TiffFinder finder(0x00fe, imageGroup);
 2148|  8.41k|    pSourceDir->accept(finder);
 2149|  8.41k|    auto te = dynamic_cast<const TiffEntryBase*>(finder.result());
 2150|  8.41k|    if (!te)
  ------------------
  |  Branch (2150:9): [True: 8.34k, False: 63]
  ------------------
 2151|  8.34k|      continue;
 2152|     63|    const Value* pV = te->pValue();
 2153|     63|    if (pV && pV->typeId() == unsignedLong && pV->count() == 1 && (pV->toInt64() & 1) == 0) {
  ------------------
  |  Branch (2153:9): [True: 50, False: 13]
  |  Branch (2153:15): [True: 28, False: 22]
  |  Branch (2153:47): [True: 21, False: 7]
  |  Branch (2153:67): [True: 12, False: 9]
  ------------------
 2154|     12|      ret.push_back(te->group());
 2155|     12|    }
 2156|     63|  }
 2157|    647|  return ret;
 2158|  8.34k|}  // TiffParserWorker::findPrimaryGroups
_ZN5Exiv28Internal14TiffHeaderBaseC2EtjNS_9ByteOrderEj:
 2161|   271k|    tag_(tag), size_(size), byteOrder_(byteOrder), offset_(offset) {
 2162|   271k|}
_ZN5Exiv28Internal14TiffHeaderBase4readEPKhm:
 2164|   217k|bool TiffHeaderBase::read(const byte* pData, size_t size) {
 2165|   217k|  if (!pData || size < 8)
  ------------------
  |  Branch (2165:7): [True: 0, False: 217k]
  |  Branch (2165:17): [True: 16, False: 217k]
  ------------------
 2166|     16|    return false;
 2167|       |
 2168|   217k|  if (pData[0] == 'I' && pData[0] == pData[1]) {
  ------------------
  |  Branch (2168:7): [True: 7.76k, False: 210k]
  |  Branch (2168:26): [True: 7.63k, False: 129]
  ------------------
 2169|  7.63k|    byteOrder_ = littleEndian;
 2170|   210k|  } else if (pData[0] == 'M' && pData[0] == pData[1]) {
  ------------------
  |  Branch (2170:14): [True: 99.5k, False: 110k]
  |  Branch (2170:33): [True: 99.3k, False: 255]
  ------------------
 2171|  99.3k|    byteOrder_ = bigEndian;
 2172|   110k|  } else {
 2173|   110k|    return false;
 2174|   110k|  }
 2175|   106k|  uint16_t t = getUShort(pData + 2, byteOrder_);
 2176|   106k|  if (t != 444 && t != 17234 && tag_ != t)
  ------------------
  |  Branch (2176:7): [True: 106k, False: 56]
  |  Branch (2176:19): [True: 106k, False: 120]
  |  Branch (2176:33): [True: 12.8k, False: 93.9k]
  ------------------
 2177|  12.8k|    return false;  // 444 is for the JPEG-XR; 17234 is for DCP
 2178|  94.1k|  tag_ = t;
 2179|  94.1k|  offset_ = getULong(pData + 4, byteOrder_);
 2180|       |
 2181|  94.1k|  return true;
 2182|   106k|}
_ZNK5Exiv28Internal14TiffHeaderBase5writeEv:
 2184|  8.44k|DataBuf TiffHeaderBase::write() const {
 2185|  8.44k|  DataBuf buf(8);
 2186|  8.44k|  switch (byteOrder_) {
  ------------------
  |  Branch (2186:11): [True: 8.44k, False: 0]
  ------------------
 2187|  7.76k|    case littleEndian:
  ------------------
  |  Branch (2187:5): [True: 7.76k, False: 680]
  ------------------
 2188|  7.76k|      buf.write_uint8(0, 'I');
 2189|  7.76k|      break;
 2190|    680|    case bigEndian:
  ------------------
  |  Branch (2190:5): [True: 680, False: 7.76k]
  ------------------
 2191|    680|      buf.write_uint8(0, 'M');
 2192|    680|      break;
 2193|      0|    case invalidByteOrder:
  ------------------
  |  Branch (2193:5): [True: 0, False: 8.44k]
  ------------------
 2194|      0|      break;
 2195|  8.44k|  }
 2196|  8.44k|  buf.write_uint8(1, buf.read_uint8(0));
 2197|  8.44k|  buf.write_uint16(2, tag_, byteOrder_);
 2198|  8.44k|  buf.write_uint32(4, 0x00000008, byteOrder_);
 2199|  8.44k|  return buf;
 2200|  8.44k|}
_ZNK5Exiv28Internal14TiffHeaderBase9byteOrderEv:
 2218|   142k|ByteOrder TiffHeaderBase::byteOrder() const {
 2219|   142k|  return byteOrder_;
 2220|   142k|}
_ZN5Exiv28Internal14TiffHeaderBase12setByteOrderENS_9ByteOrderE:
 2222|  20.1k|void TiffHeaderBase::setByteOrder(ByteOrder byteOrder) {
 2223|  20.1k|  byteOrder_ = byteOrder;
 2224|  20.1k|}
_ZNK5Exiv28Internal14TiffHeaderBase6offsetEv:
 2226|  84.9k|uint32_t TiffHeaderBase::offset() const {
 2227|  84.9k|  return offset_;
 2228|  84.9k|}
_ZN5Exiv28Internal14TiffHeaderBase9setOffsetEj:
 2230|  17.3k|void TiffHeaderBase::setOffset(uint32_t offset) {
 2231|  17.3k|  offset_ = offset;
 2232|  17.3k|}
_ZNK5Exiv28Internal14TiffHeaderBase3tagEv:
 2238|  22.1k|uint16_t TiffHeaderBase::tag() const {
 2239|  22.1k|  return tag_;
 2240|  22.1k|}
_ZN5Exiv28Internal14isTiffImageTagEtNS_5IfdIdE:
 2324|   144k|bool isTiffImageTag(uint16_t tag, IfdId group) {
 2325|   144k|  const bool result = isTiffImageTagLookup(tag, group);
 2326|       |#ifdef EXIV2_DEBUG_MESSAGES
 2327|       |  if (result) {
 2328|       |    ExifKey key(tag, groupName(group));
 2329|       |    std::cerr << "Image tag: " << key << " (3)\n";
 2330|       |  } else {
 2331|       |    std::cerr << "Not an image tag: " << tag << " (4)\n";
 2332|       |  }
 2333|       |#endif
 2334|   144k|  return result;
 2335|   144k|}
_ZN5Exiv28Internal10TiffHeaderC2ENS_9ByteOrderEjb:
 2338|   200k|    TiffHeaderBase(42, 8, byteOrder, offset), hasImageTags_(hasImageTags) {
 2339|   200k|}
_ZNK5Exiv28Internal10TiffHeader10isImageTagEtNS_5IfdIdERKNSt3__16vectorIS2_NS3_9allocatorIS2_EEEE:
 2341|   219k|bool TiffHeader::isImageTag(uint16_t tag, IfdId group, const PrimaryGroups& pPrimaryGroups) const {
 2342|   219k|  if (!hasImageTags_) {
  ------------------
  |  Branch (2342:7): [True: 219k, False: 0]
  ------------------
 2343|       |#ifdef EXIV2_DEBUG_MESSAGES
 2344|       |    std::cerr << "No image tags in this image\n";
 2345|       |#endif
 2346|   219k|    return false;
 2347|   219k|  }
 2348|       |#ifdef EXIV2_DEBUG_MESSAGES
 2349|       |  ExifKey key(tag, groupName(group));
 2350|       |#endif
 2351|       |  // If there are primary groups and none matches group, we're done
 2352|      0|  if (!pPrimaryGroups.empty() &&
  ------------------
  |  Branch (2352:7): [True: 0, False: 0]
  |  Branch (2352:7): [True: 0, False: 0]
  ------------------
 2353|      0|      std::find(pPrimaryGroups.begin(), pPrimaryGroups.end(), group) == pPrimaryGroups.end()) {
  ------------------
  |  Branch (2353:7): [True: 0, False: 0]
  ------------------
 2354|       |#ifdef EXIV2_DEBUG_MESSAGES
 2355|       |    std::cerr << "Not an image tag: " << key << " (1)\n";
 2356|       |#endif
 2357|      0|    return false;
 2358|      0|  }
 2359|       |  // All tags of marked primary groups other than IFD0 are considered
 2360|       |  // image tags. That should take care of NEFs until we know better.
 2361|      0|  if (!pPrimaryGroups.empty() && group != IfdId::ifd0Id) {
  ------------------
  |  Branch (2361:7): [True: 0, False: 0]
  |  Branch (2361:34): [True: 0, False: 0]
  ------------------
 2362|       |#ifdef EXIV2_DEBUG_MESSAGES
 2363|       |    ExifKey key(tag, groupName(group));
 2364|       |    std::cerr << "Image tag: " << key << " (2)\n";
 2365|       |#endif
 2366|      0|    return true;
 2367|      0|  }
 2368|       |  // Finally, if tag, group is one of the TIFF image tags -> bingo!
 2369|      0|  return isTiffImageTag(tag, group);
 2370|      0|}  // TiffHeader::isImageTag
tiffimage_int.cpp:_ZN5Exiv28InternalL20isTiffImageTagLookupEtNS_5IfdIdE:
 2246|   144k|static bool isTiffImageTagLookup(uint16_t tag, IfdId group) {
 2247|   144k|  if (group != IfdId::ifd0Id) {
  ------------------
  |  Branch (2247:7): [True: 0, False: 144k]
  ------------------
 2248|      0|    return false;
 2249|      0|  }
 2250|       |  //! List of TIFF image tags
 2251|   144k|  switch (tag) {
 2252|      0|    case 0x00fe:  // Exif.Image.NewSubfileType
  ------------------
  |  Branch (2252:5): [True: 0, False: 144k]
  ------------------
 2253|      0|    case 0x00ff:  // Exif.Image.SubfileType
  ------------------
  |  Branch (2253:5): [True: 0, False: 144k]
  ------------------
 2254|  4.47k|    case 0x0100:  // Exif.Image.ImageWidth
  ------------------
  |  Branch (2254:5): [True: 4.47k, False: 139k]
  ------------------
 2255|  52.7k|    case 0x0101:  // Exif.Image.ImageLength
  ------------------
  |  Branch (2255:5): [True: 48.2k, False: 95.9k]
  ------------------
 2256|  55.7k|    case 0x0102:  // Exif.Image.BitsPerSample
  ------------------
  |  Branch (2256:5): [True: 3.03k, False: 141k]
  ------------------
 2257|  55.8k|    case 0x0103:  // Exif.Image.Compression
  ------------------
  |  Branch (2257:5): [True: 70, False: 144k]
  ------------------
 2258|  55.9k|    case 0x0106:  // Exif.Image.PhotometricInterpretation
  ------------------
  |  Branch (2258:5): [True: 86, False: 144k]
  ------------------
 2259|  55.9k|    case 0x010a:  // Exif.Image.FillOrder
  ------------------
  |  Branch (2259:5): [True: 28, False: 144k]
  ------------------
 2260|  58.9k|    case 0x0111:  // Exif.Image.StripOffsets
  ------------------
  |  Branch (2260:5): [True: 3.00k, False: 141k]
  ------------------
 2261|  59.0k|    case 0x0115:  // Exif.Image.SamplesPerPixel
  ------------------
  |  Branch (2261:5): [True: 118, False: 144k]
  ------------------
 2262|  59.1k|    case 0x0116:  // Exif.Image.RowsPerStrip
  ------------------
  |  Branch (2262:5): [True: 21, False: 144k]
  ------------------
 2263|  61.6k|    case 0x0117:  // Exif.Image.StripByteCounts
  ------------------
  |  Branch (2263:5): [True: 2.58k, False: 141k]
  ------------------
 2264|  62.2k|    case 0x011a:  // Exif.Image.XResolution
  ------------------
  |  Branch (2264:5): [True: 535, False: 143k]
  ------------------
 2265|  62.3k|    case 0x011b:  // Exif.Image.YResolution
  ------------------
  |  Branch (2265:5): [True: 84, False: 144k]
  ------------------
 2266|  62.3k|    case 0x011c:  // Exif.Image.PlanarConfiguration
  ------------------
  |  Branch (2266:5): [True: 69, False: 144k]
  ------------------
 2267|  62.4k|    case 0x0122:  // Exif.Image.GrayResponseUnit
  ------------------
  |  Branch (2267:5): [True: 106, False: 144k]
  ------------------
 2268|  62.6k|    case 0x0123:  // Exif.Image.GrayResponseCurve
  ------------------
  |  Branch (2268:5): [True: 157, False: 144k]
  ------------------
 2269|  62.7k|    case 0x0124:  // Exif.Image.T4Options
  ------------------
  |  Branch (2269:5): [True: 91, False: 144k]
  ------------------
 2270|  62.8k|    case 0x0125:  // Exif.Image.T6Options
  ------------------
  |  Branch (2270:5): [True: 77, False: 144k]
  ------------------
 2271|  62.8k|    case 0x0128:  // Exif.Image.ResolutionUnit
  ------------------
  |  Branch (2271:5): [True: 69, False: 144k]
  ------------------
 2272|  62.9k|    case 0x0129:  // Exif.Image.PageNumber
  ------------------
  |  Branch (2272:5): [True: 41, False: 144k]
  ------------------
 2273|  63.0k|    case 0x012d:  // Exif.Image.TransferFunction
  ------------------
  |  Branch (2273:5): [True: 122, False: 144k]
  ------------------
 2274|  63.1k|    case 0x013d:  // Exif.Image.Predictor
  ------------------
  |  Branch (2274:5): [True: 78, False: 144k]
  ------------------
 2275|  63.1k|    case 0x013e:  // Exif.Image.WhitePoint
  ------------------
  |  Branch (2275:5): [True: 18, False: 144k]
  ------------------
 2276|  63.2k|    case 0x013f:  // Exif.Image.PrimaryChromaticities
  ------------------
  |  Branch (2276:5): [True: 130, False: 144k]
  ------------------
 2277|  63.3k|    case 0x0140:  // Exif.Image.ColorMap
  ------------------
  |  Branch (2277:5): [True: 118, False: 144k]
  ------------------
 2278|  63.4k|    case 0x0141:  // Exif.Image.HalftoneHints
  ------------------
  |  Branch (2278:5): [True: 99, False: 144k]
  ------------------
 2279|  63.5k|    case 0x0142:  // Exif.Image.TileWidth
  ------------------
  |  Branch (2279:5): [True: 84, False: 144k]
  ------------------
 2280|  63.6k|    case 0x0143:  // Exif.Image.TileLength
  ------------------
  |  Branch (2280:5): [True: 31, False: 144k]
  ------------------
 2281|  63.7k|    case 0x0144:  // Exif.Image.TileOffsets
  ------------------
  |  Branch (2281:5): [True: 156, False: 144k]
  ------------------
 2282|  63.9k|    case 0x0145:  // Exif.Image.TileByteCounts
  ------------------
  |  Branch (2282:5): [True: 174, False: 144k]
  ------------------
 2283|  64.0k|    case 0x014c:  // Exif.Image.InkSet
  ------------------
  |  Branch (2283:5): [True: 93, False: 144k]
  ------------------
 2284|  64.0k|    case 0x014d:  // Exif.Image.InkNames
  ------------------
  |  Branch (2284:5): [True: 62, False: 144k]
  ------------------
 2285|  64.1k|    case 0x014e:  // Exif.Image.NumberOfInks
  ------------------
  |  Branch (2285:5): [True: 33, False: 144k]
  ------------------
 2286|  64.1k|    case 0x0150:  // Exif.Image.DotRange
  ------------------
  |  Branch (2286:5): [True: 37, False: 144k]
  ------------------
 2287|  64.2k|    case 0x0151:  // Exif.Image.TargetPrinter
  ------------------
  |  Branch (2287:5): [True: 109, False: 144k]
  ------------------
 2288|  64.2k|    case 0x0152:  // Exif.Image.ExtraSamples
  ------------------
  |  Branch (2288:5): [True: 30, False: 144k]
  ------------------
 2289|  64.3k|    case 0x0153:  // Exif.Image.SampleFormat
  ------------------
  |  Branch (2289:5): [True: 34, False: 144k]
  ------------------
 2290|  64.3k|    case 0x0154:  // Exif.Image.SMinSampleValue
  ------------------
  |  Branch (2290:5): [True: 55, False: 144k]
  ------------------
 2291|  64.4k|    case 0x0155:  // Exif.Image.SMaxSampleValue
  ------------------
  |  Branch (2291:5): [True: 21, False: 144k]
  ------------------
 2292|  64.4k|    case 0x0156:  // Exif.Image.TransferRange
  ------------------
  |  Branch (2292:5): [True: 33, False: 144k]
  ------------------
 2293|  64.4k|    case 0x0157:  // Exif.Image.ClipPath
  ------------------
  |  Branch (2293:5): [True: 27, False: 144k]
  ------------------
 2294|  64.5k|    case 0x0158:  // Exif.Image.XClipPathUnits
  ------------------
  |  Branch (2294:5): [True: 121, False: 144k]
  ------------------
 2295|  64.6k|    case 0x0159:  // Exif.Image.YClipPathUnits
  ------------------
  |  Branch (2295:5): [True: 96, False: 144k]
  ------------------
 2296|  64.7k|    case 0x015a:  // Exif.Image.Indexed
  ------------------
  |  Branch (2296:5): [True: 36, False: 144k]
  ------------------
 2297|  64.7k|    case 0x015b:  // Exif.Image.JPEGTables
  ------------------
  |  Branch (2297:5): [True: 72, False: 144k]
  ------------------
 2298|  66.1k|    case 0x0200:  // Exif.Image.JPEGProc
  ------------------
  |  Branch (2298:5): [True: 1.39k, False: 142k]
  ------------------
 2299|  71.3k|    case 0x0201:  // Exif.Image.JPEGInterchangeFormat
  ------------------
  |  Branch (2299:5): [True: 5.12k, False: 139k]
  ------------------
 2300|  78.1k|    case 0x0202:  // Exif.Image.JPEGInterchangeFormatLength
  ------------------
  |  Branch (2300:5): [True: 6.86k, False: 137k]
  ------------------
 2301|  78.3k|    case 0x0203:  // Exif.Image.JPEGRestartInterval
  ------------------
  |  Branch (2301:5): [True: 144, False: 144k]
  ------------------
 2302|  78.5k|    case 0x0205:  // Exif.Image.JPEGLosslessPredictors
  ------------------
  |  Branch (2302:5): [True: 254, False: 143k]
  ------------------
 2303|  78.6k|    case 0x0206:  // Exif.Image.JPEGPointTransforms
  ------------------
  |  Branch (2303:5): [True: 56, False: 144k]
  ------------------
 2304|  78.6k|    case 0x0207:  // Exif.Image.JPEGQTables
  ------------------
  |  Branch (2304:5): [True: 52, False: 144k]
  ------------------
 2305|  78.7k|    case 0x0208:  // Exif.Image.JPEGDCTables
  ------------------
  |  Branch (2305:5): [True: 72, False: 144k]
  ------------------
 2306|  78.8k|    case 0x0209:  // Exif.Image.JPEGACTables
  ------------------
  |  Branch (2306:5): [True: 54, False: 144k]
  ------------------
 2307|  78.8k|    case 0x0211:  // Exif.Image.YCbCrCoefficients
  ------------------
  |  Branch (2307:5): [True: 43, False: 144k]
  ------------------
 2308|  78.9k|    case 0x0212:  // Exif.Image.YCbCrSubSampling
  ------------------
  |  Branch (2308:5): [True: 99, False: 144k]
  ------------------
 2309|  79.0k|    case 0x0213:  // Exif.Image.YCbCrPositioning
  ------------------
  |  Branch (2309:5): [True: 108, False: 144k]
  ------------------
 2310|  79.0k|    case 0x0214:  // Exif.Image.ReferenceBlackWhite
  ------------------
  |  Branch (2310:5): [True: 17, False: 144k]
  ------------------
 2311|  79.0k|    case 0x828d:  // Exif.Image.CFARepeatPatternDim
  ------------------
  |  Branch (2311:5): [True: 21, False: 144k]
  ------------------
 2312|  79.1k|    case 0x828e:  // Exif.Image.CFAPattern
  ------------------
  |  Branch (2312:5): [True: 29, False: 144k]
  ------------------
 2313|       |    // case 0x8773:  // Exif.Image.InterColorProfile
 2314|  79.1k|    case 0x8824:  // Exif.Image.SpectralSensitivity
  ------------------
  |  Branch (2314:5): [True: 19, False: 144k]
  ------------------
 2315|  79.1k|    case 0x8828:  // Exif.Image.OECF
  ------------------
  |  Branch (2315:5): [True: 6, False: 144k]
  ------------------
 2316|  79.2k|    case 0x9102:  // Exif.Image.CompressedBitsPerPixel
  ------------------
  |  Branch (2316:5): [True: 120, False: 144k]
  ------------------
 2317|  79.3k|    case 0x9217:  // Exif.Image.SensingMethod
  ------------------
  |  Branch (2317:5): [True: 53, False: 144k]
  ------------------
 2318|  79.3k|      return true;
 2319|  64.9k|    default:
  ------------------
  |  Branch (2319:5): [True: 64.9k, False: 79.3k]
  ------------------
 2320|  64.9k|      return false;
 2321|   144k|  }
 2322|   144k|}

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

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

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

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

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

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

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

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

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

XMP_NewExpatAdapter:
   68|  2.79k|{
   69|  2.79k|	return new ExpatAdapter;
   70|  2.79k|}	// XMP_NewExpatAdapter
_ZN12ExpatAdapterC2Ev:
   74|  2.79k|ExpatAdapter::ExpatAdapter() : parser(0)
   75|  2.79k|{
   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|  2.79k|	this->parser = XML_ParserCreateNS ( 0, FullNameSeparator );
  ------------------
  |  |   33|  2.79k|#define FullNameSeparator	'@'
  ------------------
   85|  2.79k|	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: 2.79k]
  ------------------
   86|       |	
   87|  2.79k|	XML_SetUserData ( this->parser, this );
   88|       |	
   89|  2.79k|	XML_SetNamespaceDeclHandler ( this->parser, StartNamespaceDeclHandler, EndNamespaceDeclHandler );
   90|  2.79k|	XML_SetElementHandler ( this->parser, StartElementHandler, EndElementHandler );
   91|       |
   92|  2.79k|	XML_SetCharacterDataHandler ( this->parser, CharacterDataHandler );
   93|  2.79k|	XML_SetCdataSectionHandler ( this->parser, StartCdataSectionHandler, EndCdataSectionHandler );
   94|       |
   95|  2.79k|	XML_SetProcessingInstructionHandler ( this->parser, ProcessingInstructionHandler );
   96|  2.79k|	XML_SetCommentHandler ( this->parser, CommentHandler );
   97|       |
   98|  2.79k|	#if BanAllEntityUsage
   99|  2.79k|		XML_SetStartDoctypeDeclHandler ( this->parser, StartDoctypeDeclHandler );
  100|  2.79k|		isAborted = false;
  101|  2.79k|	#endif
  102|       |
  103|  2.79k|	this->parseStack.push_back ( &this->tree );	// Push the XML root node.
  104|       |
  105|  2.79k|}	// ExpatAdapter::ExpatAdapter
_ZN12ExpatAdapterD2Ev:
  110|  2.79k|{
  111|       |
  112|  2.79k|	if ( this->parser != 0 ) XML_ParserFree ( this->parser );
  ------------------
  |  Branch (112:7): [True: 2.79k, False: 0]
  ------------------
  113|  2.79k|	this->parser = 0;
  114|       |
  115|  2.79k|}	// ExpatAdapter::~ExpatAdapter
_ZN12ExpatAdapter11ParseBufferEPKvmb:
  126|  2.79k|{
  127|  2.79k|	enum XML_Status status;
  128|       |	
  129|  2.79k|	if ( length == 0 ) {	// Expat does not like empty buffers.
  ------------------
  |  Branch (129:7): [True: 0, False: 2.79k]
  ------------------
  130|      0|		if ( ! last ) return;
  ------------------
  |  Branch (130:8): [True: 0, False: 0]
  ------------------
  131|      0|		buffer = kOneSpace;
  132|      0|		length = 1;
  133|      0|	}
  134|       |	
  135|  2.79k|	status = XML_Parse ( this->parser, (const char *)buffer, length, last );
  136|       |	
  137|  2.79k|	#if BanAllEntityUsage
  138|  2.79k|		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: 2.79k]
  ------------------
  139|  2.79k|	#endif
  140|       |
  141|  2.79k|	if ( status != XML_STATUS_OK ) {
  ------------------
  |  Branch (141:7): [True: 5, False: 2.79k]
  ------------------
  142|       |	
  143|      5|		XMP_StringPtr errMsg = "XML parsing failure";
  144|       |
  145|       |		#if 0	// XMP_DebugBuild	// Disable for now to make test output uniform. Restore later with thread safety.
  146|       |		
  147|       |			// *** This is a good candidate for a callback error notification mechanism.
  148|       |			// *** This code is not thread safe, the sExpatMessage isn't locked. But that's OK for debug usage.
  149|       |
  150|       |			enum XML_Error expatErr = XML_GetErrorCode ( this->parser );
  151|       |			const char *   expatMsg = XML_ErrorString ( expatErr );
  152|       |			int errLine = XML_GetCurrentLineNumber ( this->parser );
  153|       |		
  154|       |			char msgBuffer[1000];
  155|       |			// AUDIT: Use of sizeof(msgBuffer) for snprintf length is safe.
  156|       |			snprintf ( msgBuffer, sizeof(msgBuffer), "# Expat error %d at line %d, \"%s\"", expatErr, errLine, expatMsg );
  157|       |			sExpatMessage = msgBuffer;
  158|       |			errMsg = sExpatMessage.c_str();
  159|       |
  160|       |			#if  DumpXMLParseEvents
  161|       |				if ( this->parseLog != 0 ) fprintf ( this->parseLog, "%s\n", errMsg, expatErr, errLine, expatMsg );
  162|       |			#endif
  163|       |
  164|       |		#endif
  165|       |
  166|      5|		XMP_Throw ( errMsg, kXMPErr_BadXML );
  ------------------
  |  |  199|      5|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  167|       |
  168|      0|	}
  169|       |	
  170|  2.79k|}	// ExpatAdapter::ParseBuffer
ExpatAdapter.cpp:_ZL25StartNamespaceDeclHandlerPvPKcS1_:
  242|  9.20k|{
  243|  9.20k|	IgnoreParam(userData);
  ------------------
  |  |  117|  9.20k|#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|  9.20k|	if ( prefix == 0 ) prefix = "_dflt_";	// Have default namespace.
  ------------------
  |  Branch (252:7): [True: 13, False: 9.19k]
  ------------------
  253|  9.20k|	if ( uri == 0 ) return;	// Ignore, have xmlns:pre="", no URI to register.
  ------------------
  |  Branch (253:7): [True: 4, False: 9.20k]
  ------------------
  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|  9.20k|	if ( XMP_LitMatch ( uri, "http://purl.org/dc/1.1/" ) ) uri = "http://purl.org/dc/elements/1.1/";
  ------------------
  |  |   96|  9.20k|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  |  |  ------------------
  |  |  |  Branch (96:28): [True: 93, False: 9.11k]
  |  |  ------------------
  ------------------
  263|  9.20k|	XMPMeta::RegisterNamespace ( uri, prefix );
  264|       |
  265|  9.20k|}	// StartNamespaceDeclHandler
ExpatAdapter.cpp:_ZL23EndNamespaceDeclHandlerPvPKc:
  270|  9.20k|{
  271|  9.20k|	IgnoreParam(userData);
  ------------------
  |  |  117|  9.20k|#define IgnoreParam(p)	(void)p
  ------------------
  272|       |
  273|       |	#if XMP_DebugBuild & DumpXMLParseEvents		// Avoid unused variable warning.
  274|       |		ExpatAdapter * thiz = (ExpatAdapter*)userData;
  275|       |	#endif
  276|       |
  277|  9.20k|	if ( prefix == 0 ) prefix = "_dflt_";	// Have default namespace.
  ------------------
  |  Branch (277:7): [True: 13, False: 9.19k]
  ------------------
  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|  9.20k|}	// EndNamespaceDeclHandler
ExpatAdapter.cpp:_ZL19StartElementHandlerPvPKcPS1_:
  293|  17.0k|{
  294|  17.0k|	XMP_Assert ( attrs != 0 );
  ------------------
  |  |  142|  17.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  295|  17.0k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  296|       |	
  297|  17.0k|	size_t attrCount = 0;
  298|  44.9k|	for ( XMP_StringPtr* a = attrs; *a != 0; ++a ) ++attrCount;
  ------------------
  |  Branch (298:34): [True: 27.8k, False: 17.0k]
  ------------------
  299|  17.0k|	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: 17.0k]
  ------------------
  300|  17.0k|	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|  17.0k|	XML_Node * parentNode = thiz->parseStack.back();
  316|  17.0k|	XML_Node * elemNode   = new XML_Node ( parentNode, "", kElemNode );
  317|       |	
  318|  17.0k|	SetQualName ( name, elemNode );
  319|       |	
  320|  31.0k|	for ( XMP_StringPtr* attr = attrs; *attr != 0; attr += 2 ) {
  ------------------
  |  Branch (320:37): [True: 13.9k, False: 17.0k]
  ------------------
  321|       |
  322|  13.9k|		XMP_StringPtr attrName = *attr;
  323|  13.9k|		XMP_StringPtr attrValue = *(attr+1);
  324|  13.9k|		XML_Node * attrNode = new XML_Node ( elemNode, "", kAttrNode );
  325|       |
  326|  13.9k|		SetQualName ( attrName, attrNode );
  327|  13.9k|		attrNode->value = attrValue;
  328|  13.9k|		if ( attrNode->name == "xml:lang" ) NormalizeLangValue ( &attrNode->value );
  ------------------
  |  Branch (328:8): [True: 417, False: 13.5k]
  ------------------
  329|  13.9k|		elemNode->attrs.push_back ( attrNode );
  330|       |
  331|  13.9k|	}
  332|       |	
  333|  17.0k|	parentNode->content.push_back ( elemNode );
  334|  17.0k|	thiz->parseStack.push_back ( elemNode );
  335|       |	
  336|  17.0k|	if ( elemNode->name == "rdf:RDF" ) {
  ------------------
  |  Branch (336:7): [True: 2.62k, False: 14.4k]
  ------------------
  337|  2.62k|		thiz->rootNode = elemNode;
  338|  2.62k|		++thiz->rootCount;
  339|  2.62k|	}
  340|       |	#if XMP_DebugBuild
  341|       |		++thiz->elemNesting;
  342|       |	#endif
  343|       |
  344|  17.0k|}	// StartElementHandler
ExpatAdapter.cpp:_ZL11SetQualNamePKcP8XML_Node:
  187|  31.0k|{
  188|       |	// Expat delivers the full name as a catenation of namespace URI, separator, and local name.
  189|       |
  190|       |	// As a compatibility hack, an "about" or "ID" attribute of an rdf:Description element is
  191|       |	// changed to "rdf:about" or rdf:ID. Easier done here than in the RDF recognizer.
  192|       |	
  193|       |	// As a bug fix hack, change a URI of "http://purl.org/dc/1.1/" to ""http://purl.org/dc/elements/1.1/.
  194|       |	// Early versions of Flash that put XMP in SWF used a bad URI for the dc: namespace.
  195|       |
  196|       |	// ! This code presumes the RDF namespace prefix is "rdf".
  197|       |
  198|  31.0k|	size_t sepPos = strlen(fullName);
  199|   404k|	for ( --sepPos; sepPos > 0; --sepPos ) {
  ------------------
  |  Branch (199:18): [True: 403k, False: 1.17k]
  ------------------
  200|   403k|		if ( fullName[sepPos] == FullNameSeparator ) break;
  ------------------
  |  |   33|   403k|#define FullNameSeparator	'@'
  ------------------
  |  Branch (200:8): [True: 29.8k, False: 373k]
  ------------------
  201|   403k|	}
  202|       |
  203|  31.0k|	if ( fullName[sepPos] == FullNameSeparator ) {
  ------------------
  |  |   33|  31.0k|#define FullNameSeparator	'@'
  ------------------
  |  Branch (203:7): [True: 29.8k, False: 1.17k]
  ------------------
  204|       |
  205|  29.8k|		XMP_StringPtr prefix;
  206|  29.8k|		XMP_StringLen prefixLen;
  207|  29.8k|		XMP_StringPtr localPart = fullName + sepPos + 1;
  208|       |
  209|  29.8k|		node->ns.assign ( fullName, sepPos );
  210|  29.8k|		if ( node->ns == "http://purl.org/dc/1.1/" ) node->ns = "http://purl.org/dc/elements/1.1/";
  ------------------
  |  Branch (210:8): [True: 240, False: 29.5k]
  ------------------
  211|       |
  212|  29.8k|		bool found = XMPMeta::GetNamespacePrefix ( node->ns.c_str(), &prefix, &prefixLen );
  213|  29.8k|		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: 29.8k]
  ------------------
  214|  29.8k|		node->nsPrefixLen = prefixLen;	// ! Includes the ':'.
  215|       |		
  216|  29.8k|		node->name = prefix;
  217|  29.8k|		node->name += localPart;
  218|       |
  219|  29.8k|	} else {
  220|       |
  221|  1.17k|		node->name = fullName;	// The name is not in a namespace.
  222|       |	
  223|  1.17k|		if ( node->parent->name == "rdf:Description" ) {
  ------------------
  |  Branch (223:8): [True: 259, False: 916]
  ------------------
  224|    259|			if ( node->name == "about" ) {
  ------------------
  |  Branch (224:9): [True: 44, False: 215]
  ------------------
  225|     44|				node->ns   = kXMP_NS_RDF;
  226|     44|				node->name = "rdf:about";
  227|     44|				node->nsPrefixLen = 4;	// ! Include the ':'.
  228|    215|			} else if ( node->name == "ID" ) {
  ------------------
  |  Branch (228:16): [True: 17, False: 198]
  ------------------
  229|     17|				node->ns   = kXMP_NS_RDF;
  230|     17|				node->name = "rdf:ID";
  231|     17|				node->nsPrefixLen = 4;	// ! Include the ':'.
  232|     17|			}
  233|    259|		}
  234|       |		
  235|  1.17k|	}
  236|       |
  237|  31.0k|}	// SetQualName
ExpatAdapter.cpp:_ZL17EndElementHandlerPvPKc:
  349|  17.0k|{
  350|  17.0k|	IgnoreParam(name);
  ------------------
  |  |  117|  17.0k|#define IgnoreParam(p)	(void)p
  ------------------
  351|       |	
  352|  17.0k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  353|       |
  354|       |	#if XMP_DebugBuild
  355|       |		--thiz->elemNesting;
  356|       |	#endif
  357|  17.0k|	(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|  17.0k|}	// EndElementHandler
ExpatAdapter.cpp:_ZL20CharacterDataHandlerPvPKci:
  371|  39.3k|{
  372|  39.3k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  373|       |	
  374|  39.3k|	if ( (cData == 0) || (len == 0) ) { cData = ""; len = 0; }
  ------------------
  |  Branch (374:7): [True: 0, False: 39.3k]
  |  Branch (374:23): [True: 0, False: 39.3k]
  ------------------
  375|       |	
  376|       |	#if XMP_DebugBuild & DumpXMLParseEvents
  377|       |		if ( thiz->parseLog != 0 ) {
  378|       |			PrintIndent ( thiz->parseLog, thiz->elemNesting );
  379|       |			fprintf ( thiz->parseLog, "CharContent: \"" );
  380|       |			for ( int i = 0; i < len; ++i ) fprintf ( thiz->parseLog, "%c", cData[i] );
  381|       |			fprintf ( thiz->parseLog, "\"\n" );
  382|       |		}
  383|       |	#endif
  384|       |	
  385|  39.3k|	XML_Node * parentNode = thiz->parseStack.back();
  386|  39.3k|	XML_Node * cDataNode  = new XML_Node ( parentNode, "", kCDataNode );
  387|       |	
  388|  39.3k|	cDataNode->value.assign ( cData, len );
  389|  39.3k|	parentNode->content.push_back ( cDataNode );
  390|       |	
  391|  39.3k|}	// CharacterDataHandler
ExpatAdapter.cpp:_ZL28ProcessingInstructionHandlerPvPKcS1_:
  436|  1.74k|{
  437|  1.74k|	XMP_Assert ( target != 0 );
  ------------------
  |  |  142|  1.74k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  438|  1.74k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  439|       |
  440|  1.74k|	if ( ! XMP_LitMatch ( target, "xpacket" ) ) return;	// Ignore all PIs except the XMP packet wrapper.
  ------------------
  |  |   96|  1.74k|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  |  Branch (440:7): [True: 868, False: 881]
  ------------------
  441|    881|	if ( data == 0 ) data = "";
  ------------------
  |  Branch (441:7): [True: 0, False: 881]
  ------------------
  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|    881|	XML_Node * parentNode = thiz->parseStack.back();
  451|    881|	XML_Node * piNode  = new XML_Node ( parentNode, target, kPINode );
  452|       |	
  453|    881|	piNode->value.assign ( data );
  454|    881|	parentNode->content.push_back ( piNode );
  455|       |	
  456|    881|}	// ProcessingInstructionHandler

_Z10ProcessRDFP8XMP_NodeRK8XML_Nodej:
  624|  2.57k|{
  625|  2.57k|	IgnoreParam(options);
  ------------------
  |  |  117|  2.57k|#define IgnoreParam(p)	(void)p
  ------------------
  626|       |	
  627|  2.57k|	RDF_RDF ( xmpTree, rdfNode );
  628|       |
  629|  2.57k|}	// ProcessRDF
ParseRDF.cpp:_ZL7RDF_RDFP8XMP_NodeRK8XML_Node:
  646|  2.57k|{
  647|       |
  648|  2.57k|	if ( ! xmlNode.attrs.empty() ) XMP_Throw ( "Invalid attributes of rdf:RDF element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     21|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (648:7): [True: 21, False: 2.55k]
  ------------------
  649|  2.55k|	RDF_NodeElementList ( xmpTree, xmlNode, kIsTopLevel );
  650|       |
  651|  2.55k|}	// RDF_RDF
ParseRDF.cpp:_ZL19RDF_NodeElementListP8XMP_NodeRK8XML_Nodeb:
  663|  2.55k|{
  664|  2.55k|	XMP_Assert ( isTopLevel );
  ------------------
  |  |  142|  2.55k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  665|       |	
  666|  2.55k|	XML_cNodePos currChild = xmlParent.content.begin();	// *** Change these loops to the indexed pattern.
  667|  2.55k|	XML_cNodePos endChild  = xmlParent.content.end();
  668|       |
  669|  6.55k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (669:10): [True: 4.00k, False: 2.55k]
  ------------------
  670|  4.00k|		if ( (*currChild)->IsWhitespaceNode() ) continue;
  ------------------
  |  Branch (670:8): [True: 1.44k, False: 2.56k]
  ------------------
  671|  2.56k|		RDF_NodeElement ( xmpParent, **currChild, isTopLevel );
  672|  2.56k|	}
  673|       |
  674|  2.55k|}	// RDF_NodeElementList
ParseRDF.cpp:_ZL15RDF_NodeElementP8XMP_NodeRK8XML_Nodeb:
  694|  3.78k|{
  695|  3.78k|	RDFTermKind nodeTerm = GetRDFTermKind ( xmlNode.name );
  696|  3.78k|	if ( (nodeTerm != kRDFTerm_Description) && (nodeTerm != kRDFTerm_Other) ) {
  ------------------
  |  Branch (696:7): [True: 1.30k, False: 2.47k]
  |  Branch (696:45): [True: 3, False: 1.30k]
  ------------------
  697|      3|		XMP_Throw ( "Node element must be rdf:Description or typedNode", kXMPErr_BadRDF );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  698|      0|	}
  699|       |
  700|  3.77k|	if ( isTopLevel && (nodeTerm == kRDFTerm_Other) ) {
  ------------------
  |  Branch (700:7): [True: 2.56k, False: 1.21k]
  |  Branch (700:21): [True: 90, False: 2.47k]
  ------------------
  701|     90|		XMP_Throw ( "Top level typedNode not allowed", kXMPErr_BadXMP );
  ------------------
  |  |  199|     90|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  702|  3.68k|	} else {
  703|  3.68k|		RDF_NodeElementAttrs ( xmpParent, xmlNode, isTopLevel );
  704|  3.68k|		RDF_PropertyElementList ( xmpParent, xmlNode, isTopLevel );
  705|  3.68k|	}
  706|       |
  707|  3.77k|}	// RDF_NodeElement
ParseRDF.cpp:_ZL14GetRDFTermKindRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  264|  21.9k|{
  265|  21.9k|	RDFTermKind term = kRDFTerm_Other;
  266|       |
  267|       |	// Arranged to hopefully minimize the parse time for large XMP.
  268|       |
  269|  21.9k|	if ( (name.size() > 4) && (strncmp ( name.c_str(), "rdf:", 4 ) == 0) ) {
  ------------------
  |  Branch (269:7): [True: 21.8k, False: 86]
  |  Branch (269:28): [True: 8.66k, False: 13.1k]
  ------------------
  270|       |
  271|  8.66k|		if ( name == "rdf:li" ) {
  ------------------
  |  Branch (271:8): [True: 2.45k, False: 6.21k]
  ------------------
  272|  2.45k|			term = kRDFTerm_li;
  273|  6.21k|		} else if ( name == "rdf:parseType" ) {
  ------------------
  |  Branch (273:15): [True: 24, False: 6.18k]
  ------------------
  274|     24|			term = kRDFTerm_parseType;
  275|  6.18k|		} else if ( name == "rdf:Description" ) {
  ------------------
  |  Branch (275:15): [True: 2.47k, False: 3.71k]
  ------------------
  276|  2.47k|			term = kRDFTerm_Description;
  277|  3.71k|		} else if ( name == "rdf:about" ) {
  ------------------
  |  Branch (277:15): [True: 314, False: 3.39k]
  ------------------
  278|    314|			term = kRDFTerm_about;
  279|  3.39k|		} else if ( name == "rdf:resource" ) {
  ------------------
  |  Branch (279:15): [True: 4, False: 3.39k]
  ------------------
  280|      4|			term = kRDFTerm_resource;
  281|  3.39k|		} else if ( name == "rdf:RDF" ) {
  ------------------
  |  Branch (281:15): [True: 18, False: 3.37k]
  ------------------
  282|     18|			term = kRDFTerm_RDF;
  283|  3.37k|		} else if ( name == "rdf:ID" ) {
  ------------------
  |  Branch (283:15): [True: 218, False: 3.15k]
  ------------------
  284|    218|			term = kRDFTerm_ID;
  285|  3.15k|		} else if ( name == "rdf:nodeID" ) {
  ------------------
  |  Branch (285:15): [True: 33, False: 3.12k]
  ------------------
  286|     33|			term = kRDFTerm_nodeID;
  287|  3.12k|		} else if ( name == "rdf:datatype" ) {
  ------------------
  |  Branch (287:15): [True: 3, False: 3.12k]
  ------------------
  288|      3|			term = kRDFTerm_datatype;
  289|  3.12k|		} else if ( name == "rdf:aboutEach" ) {
  ------------------
  |  Branch (289:15): [True: 21, False: 3.10k]
  ------------------
  290|     21|			term = kRDFTerm_aboutEach;
  291|  3.10k|		} else if ( name == "rdf:aboutEachPrefix" ) {
  ------------------
  |  Branch (291:15): [True: 5, False: 3.09k]
  ------------------
  292|      5|			term = kRDFTerm_aboutEachPrefix;
  293|  3.09k|		} else if ( name == "rdf:bagID" ) {
  ------------------
  |  Branch (293:15): [True: 21, False: 3.07k]
  ------------------
  294|     21|			term = kRDFTerm_bagID;
  295|     21|		}
  296|       |
  297|  8.66k|	}
  298|       |
  299|  21.9k|	return term;
  300|       |
  301|  21.9k|}	// GetRDFTermKind
ParseRDF.cpp:_ZL20RDF_NodeElementAttrsP8XMP_NodeRK8XML_Nodeb:
  731|  3.68k|{
  732|  3.68k|	XMP_OptionBits exclusiveAttrs = 0;	// Used to detect attributes that are mutually exclusive.
  733|       |
  734|  3.68k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
  735|  3.68k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
  736|       |
  737|  13.4k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (737:10): [True: 10.0k, False: 3.35k]
  ------------------
  738|       |
  739|  10.0k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
  740|       |
  741|  10.0k|		switch ( attrTerm ) {
  742|       |
  743|     59|			case kRDFTerm_ID     :
  ------------------
  |  Branch (743:4): [True: 59, False: 9.99k]
  ------------------
  744|     78|			case kRDFTerm_nodeID :
  ------------------
  |  Branch (744:4): [True: 19, False: 10.0k]
  ------------------
  745|    390|			case kRDFTerm_about  :
  ------------------
  |  Branch (745:4): [True: 312, False: 9.73k]
  ------------------
  746|       |
  747|    390|				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: 390]
  ------------------
  748|    390|				exclusiveAttrs |= (1 << attrTerm);
  749|       |
  750|    390|				if ( isTopLevel && (attrTerm == kRDFTerm_about) ) {
  ------------------
  |  Branch (750:10): [True: 390, False: 0]
  |  Branch (750:24): [True: 312, False: 78]
  ------------------
  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|    312|					XMP_Assert ( xmpParent->parent == 0 );	// Must be the tree root node.
  ------------------
  |  |  142|    312|	#define XMP_Assert(c)	((void) 0)
  ------------------
  754|    312|					if ( xmpParent->name.empty() ) {
  ------------------
  |  Branch (754:11): [True: 312, False: 0]
  ------------------
  755|    312|						xmpParent->name = (*currAttr)->value;
  756|    312|					} 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|    312|				}
  760|       |
  761|    390|				break;
  762|       |
  763|  9.57k|			case kRDFTerm_Other :
  ------------------
  |  Branch (763:4): [True: 9.57k, False: 476]
  ------------------
  764|  9.57k|				AddChildNode ( xmpParent, **currAttr, (*currAttr)->value.c_str(), isTopLevel );
  765|  9.57k|				break;
  766|       |
  767|     86|			default :
  ------------------
  |  Branch (767:4): [True: 86, False: 9.96k]
  ------------------
  768|     86|				XMP_Throw ( "Invalid nodeElement attribute", kXMPErr_BadRDF );
  ------------------
  |  |  199|     86|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  769|       |
  770|  10.0k|		}
  771|       |
  772|  10.0k|	}
  773|       |
  774|  3.68k|}	// RDF_NodeElementAttrs
ParseRDF.cpp:_ZL12AddChildNodeP8XMP_NodeRK8XML_NodePKcb:
  362|  15.9k|{
  363|       |	#if 0
  364|       |		cout << "AddChildNode, parent = " << xmpParent->name << ", child = " << xmlNode.name;
  365|       |		cout << ", value = \"" << value << '"';
  366|       |		if ( isTopLevel ) cout << ", top level";
  367|       |		cout << endl;
  368|       |	#endif
  369|       |	
  370|  15.9k|	if ( xmlNode.ns.empty() ) {
  ------------------
  |  Branch (370:7): [True: 200, False: 15.7k]
  ------------------
  371|    200|		XMP_Throw ( "XML namespace required for all elements and attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|    200|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  372|      0|	}
  373|       |		
  374|  15.7k|	XMP_StringPtr  childName    = xmlNode.name.c_str();
  375|  15.7k|	const bool     isArrayItem  = (xmlNode.name == "rdf:li");
  376|  15.7k|	const bool     isValueNode  = (xmlNode.name == "rdf:value");
  377|  15.7k|	XMP_OptionBits childOptions = 0;
  378|       |	
  379|  15.7k|	if ( isTopLevel ) {
  ------------------
  |  Branch (379:7): [True: 12.1k, False: 3.56k]
  ------------------
  380|       |
  381|       |		// Lookup the schema node, adjust the XMP parent pointer.
  382|  12.1k|		XMP_Assert ( xmpParent->parent == 0 );	// Incoming parent must be the tree root.
  ------------------
  |  |  142|  12.1k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  383|  12.1k|		XMP_Node * schemaNode = FindSchemaNode ( xmpParent, xmlNode.ns.c_str(), kXMP_CreateNodes );
  ------------------
  |  |  295|  12.1k|#define kXMP_CreateNodes	true
  ------------------
  384|  12.1k|		if ( schemaNode->options & kXMP_NewImplicitNode ) schemaNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  12.1k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
              		if ( schemaNode->options & kXMP_NewImplicitNode ) schemaNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  4.53k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (384:8): [True: 4.53k, False: 7.63k]
  ------------------
  385|       |			// *** Should use "opt &= ~flag" (no conditional), need runtime check for proper 32 bit code.
  386|  12.1k|		xmpParent = schemaNode;
  387|       |		
  388|       |		// If this is an alias set the isAlias flag in the node and the hasAliases flag in the tree.
  389|  12.1k|		if ( sRegisteredAliasMap->find ( xmlNode.name ) != sRegisteredAliasMap->end() ) {
  ------------------
  |  Branch (389:8): [True: 0, False: 12.1k]
  ------------------
  390|      0|			childOptions |= kXMP_PropIsAlias;
  391|      0|			schemaNode->parent->options |= kXMP_PropHasAliases;
  392|      0|		}
  393|       |		
  394|  12.1k|	}
  395|       |
  396|       |	// Make sure that this is not a duplicate of a named node.
  397|  15.7k|	if ( ! (isArrayItem | isValueNode) ) {
  ------------------
  |  Branch (397:7): [True: 13.2k, False: 2.48k]
  ------------------
  398|  13.2k|		if ( FindChildNode ( xmpParent, childName, kXMP_ExistingOnly ) != 0 ) {
  ------------------
  |  |  296|  13.2k|#define kXMP_ExistingOnly	false
  ------------------
  |  Branch (398:8): [True: 3, False: 13.2k]
  ------------------
  399|      3|			XMP_Throw ( "Duplicate property or field node", kXMPErr_BadXMP );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  400|      0|		}
  401|       |		
  402|  13.2k|	}
  403|       |	
  404|       |	// Add the new child to the XMP parent node.
  405|  15.7k|	XMP_Node * newChild = new XMP_Node ( xmpParent, childName, value, childOptions );
  406|  15.7k|	if ( (! isValueNode) || xmpParent->children.empty() ) {
  ------------------
  |  Branch (406:7): [True: 15.6k, False: 58]
  |  Branch (406:26): [True: 40, False: 18]
  ------------------
  407|  15.7k|		 xmpParent->children.push_back ( newChild );
  408|  15.7k|	} else {
  409|     30|		 xmpParent->children.insert ( xmpParent->children.begin(), newChild );
  410|     30|	}
  411|  15.7k|	if ( isValueNode ) {
  ------------------
  |  Branch (411:7): [True: 58, False: 15.6k]
  ------------------
  412|     58|		if ( isTopLevel || (! (xmpParent->options & kXMP_PropValueIsStruct)) ) XMP_Throw ( "Misplaced rdf:value element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     58|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (412:8): [True: 58, False: 0]
  |  Branch (412:22): [True: 0, False: 0]
  ------------------
  413|      0|		xmpParent->options |= kRDF_HasValueElem;
  414|      0|	}
  415|       |	
  416|  15.6k|	if ( isArrayItem ) {
  ------------------
  |  Branch (416:7): [True: 2.42k, False: 13.2k]
  ------------------
  417|  2.42k|		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.42k]
  ------------------
  418|  2.42k|		newChild->name = kXMP_ArrayItemName;
  ------------------
  |  |  293|  2.42k|#define kXMP_ArrayItemName	"[]"
  ------------------
  419|       |		#if 0	// *** XMP_DebugBuild
  420|       |			newChild->_namePtr = newChild->name.c_str();
  421|       |		#endif
  422|  2.42k|	}
  423|       |	
  424|  15.6k|	return newChild;
  425|       |
  426|  15.6k|}	// AddChildNode
ParseRDF.cpp:_ZL23RDF_PropertyElementListP8XMP_NodeRK8XML_Nodeb:
  786|  3.35k|{
  787|  3.35k|	XML_cNodePos currChild = xmlParent.content.begin();
  788|  3.35k|	XML_cNodePos endChild  = xmlParent.content.end();
  789|       |
  790|  19.6k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (790:10): [True: 16.3k, False: 3.29k]
  ------------------
  791|  16.3k|		if ( (*currChild)->IsWhitespaceNode() ) continue;
  ------------------
  |  Branch (791:8): [True: 11.0k, False: 5.33k]
  ------------------
  792|  5.33k|		if ( (*currChild)->kind != kElemNode ) {
  ------------------
  |  Branch (792:8): [True: 66, False: 5.27k]
  ------------------
  793|     66|			XMP_Throw ( "Expected property element node not found", kXMPErr_BadRDF );
  ------------------
  |  |  199|     66|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  794|      0|		}
  795|  5.27k|		RDF_PropertyElement ( xmpParent, **currChild, isTopLevel );
  796|  5.27k|	}
  797|       |
  798|  3.35k|}	// RDF_PropertyElementList
ParseRDF.cpp:_ZL19RDF_PropertyElementP8XMP_NodeRK8XML_Nodeb:
  853|  5.27k|{
  854|  5.27k|	RDFTermKind nodeTerm = GetRDFTermKind ( xmlNode.name );
  855|  5.27k|	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.26k]
  ------------------
  856|       |	
  857|  5.26k|	if ( xmlNode.attrs.size() > 3 ) {
  ------------------
  |  Branch (857:7): [True: 136, False: 5.13k]
  ------------------
  858|       |
  859|       |		// Only an emptyPropertyElt can have more than 3 attributes.
  860|    136|		RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  861|       |
  862|  5.13k|	} 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.13k|		XML_cNodePos currAttr = xmlNode.attrs.begin();
  868|  5.13k|		XML_cNodePos endAttr  = xmlNode.attrs.end();
  869|  5.13k|		XMP_VarString * attrName = 0;
  870|       |
  871|  5.46k|		for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (871:11): [True: 690, False: 4.77k]
  ------------------
  872|    690|			attrName = &((*currAttr)->name);
  873|    690|			if ( (*attrName != "xml:lang") && (*attrName != "rdf:ID") ) break;
  ------------------
  |  Branch (873:9): [True: 447, False: 243]
  |  Branch (873:38): [True: 363, False: 84]
  ------------------
  874|    690|		}
  875|       |
  876|  5.13k|		if ( currAttr != endAttr ) {
  ------------------
  |  Branch (876:8): [True: 363, False: 4.77k]
  ------------------
  877|       |
  878|    363|			XMP_Assert ( attrName != 0 );
  ------------------
  |  |  142|    363|	#define XMP_Assert(c)	((void) 0)
  ------------------
  879|    363|			XMP_VarString& attrValue = (*currAttr)->value;
  880|       |
  881|    363|			if ( *attrName == "rdf:datatype" ) {
  ------------------
  |  Branch (881:9): [True: 0, False: 363]
  ------------------
  882|      0|				RDF_LiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  883|    363|			} else if ( *attrName != "rdf:parseType" ) {
  ------------------
  |  Branch (883:16): [True: 351, False: 12]
  ------------------
  884|    351|				RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  885|    351|			} else if ( attrValue == "Literal" ) {
  ------------------
  |  Branch (885:16): [True: 0, False: 12]
  ------------------
  886|      0|				RDF_ParseTypeLiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  887|     12|			} else if ( attrValue == "Resource" ) {
  ------------------
  |  Branch (887:16): [True: 0, False: 12]
  ------------------
  888|      0|				RDF_ParseTypeResourcePropertyElement ( xmpParent, xmlNode, isTopLevel );
  889|     12|			} else if ( attrValue == "Collection" ) {
  ------------------
  |  Branch (889:16): [True: 0, False: 12]
  ------------------
  890|      0|				RDF_ParseTypeCollectionPropertyElement ( xmpParent, xmlNode, isTopLevel );
  891|     12|			} else {
  892|     12|				RDF_ParseTypeOtherPropertyElement ( xmpParent, xmlNode, isTopLevel );
  893|     12|			}
  894|       |
  895|  4.77k|		} else {
  896|       |
  897|       |			// Only rdf:ID and xml:lang, could be a resourcePropertyElt, a literalPropertyElt, or an.
  898|       |			// emptyPropertyElt. Look at the child XML nodes to decide which.
  899|       |
  900|  4.77k|			if ( xmlNode.content.empty() ) {
  ------------------
  |  Branch (900:9): [True: 1.08k, False: 3.68k]
  ------------------
  901|       |
  902|  1.08k|				RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  903|       |
  904|  3.68k|			} else {
  905|       |			
  906|  3.68k|				XML_cNodePos currChild = xmlNode.content.begin();
  907|  3.68k|				XML_cNodePos endChild  = xmlNode.content.end();
  908|       |
  909|  10.0k|				for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (909:13): [True: 7.61k, False: 2.45k]
  ------------------
  910|  7.61k|					if ( (*currChild)->kind != kCDataNode ) break;
  ------------------
  |  Branch (910:11): [True: 1.23k, False: 6.38k]
  ------------------
  911|  7.61k|				}
  912|       |				
  913|  3.68k|				if ( currChild == endChild ) {
  ------------------
  |  Branch (913:10): [True: 2.45k, False: 1.23k]
  ------------------
  914|  2.45k|					RDF_LiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  915|  2.45k|				} else {
  916|  1.23k|					RDF_ResourcePropertyElement ( xmpParent, xmlNode, isTopLevel );
  917|  1.23k|				}
  918|       |			
  919|  3.68k|			}
  920|       |
  921|  4.77k|		}
  922|       |		
  923|  5.13k|	}
  924|       |
  925|  5.26k|}	// RDF_PropertyElement
ParseRDF.cpp:_ZL21IsPropertyElementNameh:
  349|  5.27k|{
  350|       |
  351|  5.27k|	if 	( (term == kRDFTerm_Description) || IsOldTerm ( term ) ) return false;
  ------------------
  |  Branch (351:8): [True: 0, False: 5.27k]
  |  Branch (351:42): [True: 0, False: 5.27k]
  ------------------
  352|  5.27k|	return (! IsCoreSyntaxTerm ( term ));
  353|       |
  354|  5.27k|}	// IsPropertyElementName
ParseRDF.cpp:_ZL9IsOldTermh:
  333|  5.27k|{
  334|       |
  335|  5.27k|	if 	( (kRDFTerm_FirstOld <= term) && (term <= kRDFTerm_LastOld) ) return true;
  ------------------
  |  Branch (335:8): [True: 0, False: 5.27k]
  |  Branch (335:39): [True: 0, False: 0]
  ------------------
  336|  5.27k|	return false;
  337|       |
  338|  5.27k|}	// IsOldTerm
ParseRDF.cpp:_ZL16IsCoreSyntaxTermh:
  316|  5.27k|{
  317|       |
  318|  5.27k|	if 	( (kRDFTerm_FirstCore <= term) && (term <= kRDFTerm_LastCore) ) return true;
  ------------------
  |  Branch (318:8): [True: 2.45k, False: 2.81k]
  |  Branch (318:40): [True: 3, False: 2.45k]
  ------------------
  319|  5.26k|	return false;
  320|       |
  321|  5.27k|}	// IsCoreSyntaxTerm
ParseRDF.cpp:_ZL24RDF_EmptyPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1189|  1.57k|{
 1190|  1.57k|	bool hasPropertyAttrs = false;
 1191|  1.57k|	bool hasResourceAttr  = false;
 1192|  1.57k|	bool hasNodeIDAttr    = false;
 1193|  1.57k|	bool hasValueAttr     = false;
 1194|       |	
 1195|  1.57k|	const XML_Node * valueNode = 0;	// ! Can come from rdf:value or rdf:resource.
 1196|       |	
 1197|  1.57k|	if ( ! xmlNode.content.empty() ) XMP_Throw ( "Nested content not allowed with rdf:resource or property attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|     10|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1197:7): [True: 10, False: 1.56k]
  ------------------
 1198|       |	
 1199|       |	// First figure out what XMP this maps to and remember the XML node for a simple value.
 1200|       |	
 1201|  1.56k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
 1202|  1.56k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
 1203|       |
 1204|  3.01k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1204:10): [True: 1.46k, False: 1.55k]
  ------------------
 1205|       |
 1206|  1.46k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
 1207|       |
 1208|  1.46k|		switch ( attrTerm ) {
 1209|       |
 1210|     84|			case kRDFTerm_ID :
  ------------------
  |  Branch (1210:4): [True: 84, False: 1.37k]
  ------------------
 1211|       |				// Nothing to do.
 1212|     84|				break;
 1213|       |
 1214|      4|			case kRDFTerm_resource :
  ------------------
  |  Branch (1214:4): [True: 4, False: 1.45k]
  ------------------
 1215|      4|				if ( hasNodeIDAttr ) XMP_Throw ( "Empty property element can't have both rdf:resource and rdf:nodeID", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1215:10): [True: 0, False: 4]
  ------------------
 1216|      4|				if ( hasValueAttr ) XMP_Throw ( "Empty property element can't have both rdf:value and rdf:resource", kXMPErr_BadXMP );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1216:10): [True: 3, False: 1]
  ------------------
 1217|      1|				hasResourceAttr = true;
 1218|      1|				if ( ! hasValueAttr ) valueNode = *currAttr;
  ------------------
  |  Branch (1218:10): [True: 1, False: 0]
  ------------------
 1219|      1|				break;
 1220|       |
 1221|      8|			case kRDFTerm_nodeID :
  ------------------
  |  Branch (1221:4): [True: 8, False: 1.45k]
  ------------------
 1222|      8|				if ( hasResourceAttr ) XMP_Throw ( "Empty property element can't have both rdf:resource and rdf:nodeID", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1222:10): [True: 0, False: 8]
  ------------------
 1223|      8|				hasNodeIDAttr = true;
 1224|      8|				break;
 1225|       |
 1226|  1.36k|			case kRDFTerm_Other :
  ------------------
  |  Branch (1226:4): [True: 1.36k, False: 99]
  ------------------
 1227|  1.36k|				if ( (*currAttr)->name == "rdf:value" ) {
  ------------------
  |  Branch (1227:10): [True: 35, False: 1.32k]
  ------------------
 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.32k|				} else if ( (*currAttr)->name != "xml:lang" ) {
  ------------------
  |  Branch (1231:17): [True: 1.25k, False: 77]
  ------------------
 1232|  1.25k|					hasPropertyAttrs = true;
 1233|  1.25k|				}
 1234|  1.36k|				break;
 1235|       |
 1236|  1.36k|			default :
  ------------------
  |  Branch (1236:4): [True: 3, False: 1.45k]
  ------------------
 1237|      3|				XMP_Throw ( "Unrecognized attribute of empty property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1238|      0|				break;
 1239|       |
 1240|  1.46k|		}
 1241|       |
 1242|  1.46k|	}
 1243|       |	
 1244|       |	// Create the right kind of child node and visit the attributes again to add the fields or qualifiers.
 1245|       |	// ! Because of implementation vagaries, the xmpParent is the tree root for top level properties.
 1246|       |	// ! The schema is found, created if necessary, by AddChildNode.
 1247|       |	
 1248|  1.55k|	XMP_Node * childNode = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
 1249|  1.55k|	bool childIsStruct = false;
 1250|       |	
 1251|  1.55k|	if ( hasValueAttr | hasResourceAttr ) {
  ------------------
  |  Branch (1251:7): [True: 33, False: 1.52k]
  ------------------
 1252|     33|		childNode->value = valueNode->value;
 1253|     33|		if ( ! hasValueAttr ) childNode->options |= kXMP_PropValueIsURI;	// ! Might have both rdf:value and rdf:resource.
  ------------------
  |  Branch (1253:8): [True: 1, False: 32]
  ------------------
 1254|  1.52k|	} else if ( hasPropertyAttrs ) {
  ------------------
  |  Branch (1254:14): [True: 426, False: 1.09k]
  ------------------
 1255|    426|		childNode->options |= kXMP_PropValueIsStruct;
 1256|    426|		childIsStruct = true;
 1257|    426|	}
 1258|       |		
 1259|  1.55k|	currAttr = xmlNode.attrs.begin();
 1260|  1.55k|	endAttr  = xmlNode.attrs.end();
 1261|       |
 1262|  2.94k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1262:10): [True: 1.40k, False: 1.53k]
  ------------------
 1263|       |
 1264|  1.40k|		if ( *currAttr == valueNode ) continue;	// Skip the rdf:value or rdf:resource attribute holding the value.
  ------------------
  |  Branch (1264:8): [True: 33, False: 1.37k]
  ------------------
 1265|  1.37k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
 1266|       |
 1267|  1.37k|		switch ( attrTerm ) {
 1268|       |
 1269|     75|			case kRDFTerm_ID       :
  ------------------
  |  Branch (1269:4): [True: 75, False: 1.30k]
  ------------------
 1270|     81|			case kRDFTerm_nodeID   :
  ------------------
  |  Branch (1270:4): [True: 6, False: 1.37k]
  ------------------
 1271|     81|				break;	// Ignore all rdf:ID and rdf:nodeID attributes.w
 1272|       |				
 1273|      0|			case kRDFTerm_resource :
  ------------------
  |  Branch (1273:4): [True: 0, False: 1.37k]
  ------------------
 1274|      0|				AddQualifierNode ( childNode, **currAttr );
 1275|      0|				break;
 1276|       |
 1277|  1.29k|			case kRDFTerm_Other :
  ------------------
  |  Branch (1277:4): [True: 1.29k, False: 81]
  ------------------
 1278|  1.29k|				if ( (! childIsStruct) || (*currAttr)->name == "xml:lang" ) {
  ------------------
  |  Branch (1278:10): [True: 146, False: 1.14k]
  |  Branch (1278:31): [True: 28, False: 1.12k]
  ------------------
 1279|    174|					AddQualifierNode ( childNode, **currAttr );
 1280|  1.12k|				} else {
 1281|  1.12k|					AddChildNode ( childNode, **currAttr, (*currAttr)->value.c_str(), false );
 1282|  1.12k|				}
 1283|  1.29k|				break;
 1284|       |
 1285|      0|			default :
  ------------------
  |  Branch (1285:4): [True: 0, False: 1.37k]
  ------------------
 1286|      0|				XMP_Throw ( "Unrecognized attribute of empty property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1287|      0|				break;
 1288|       |
 1289|  1.37k|		}
 1290|       |
 1291|  1.37k|	}
 1292|       |
 1293|  1.55k|}	// RDF_EmptyPropertyElement
ParseRDF.cpp:_ZL16AddQualifierNodeP8XMP_NodeRK8XML_Node:
  483|    368|{
  484|    368|	if ( attr.ns.empty() ) {
  ------------------
  |  Branch (484:7): [True: 2, False: 366]
  ------------------
  485|      2|		XMP_Throw ( "XML namespace required for all elements and attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|      2|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  486|      0|	}
  487|       |	
  488|    366|	return AddQualifierNode ( xmpParent, attr.name, attr.value );
  489|       |
  490|    368|}	// AddQualifierNode
ParseRDF.cpp:_ZL16AddQualifierNodeP8XMP_NodeRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  435|    390|{
  436|       |
  437|       |	#if 0
  438|       |		cout << "AddQualifierNode, parent = " << xmpParent->name << ", name = " << name;
  439|       |		cout << ", value = \"" << value << '"' << endl;
  440|       |	#endif
  441|       |	
  442|    390|	const bool isLang = (name == "xml:lang");
  443|    390|	const bool isType = (name == "rdf:type");
  444|       |
  445|    390|	XMP_Node * newQual = 0;
  446|       |
  447|    390|		newQual = new XMP_Node ( xmpParent, name, value, kXMP_PropIsQualifier );
  448|       |
  449|    390|		if ( ! (isLang | isType) ) {
  ------------------
  |  Branch (449:8): [True: 101, False: 289]
  ------------------
  450|    101|			xmpParent->qualifiers.push_back ( newQual );
  451|    289|		} else if ( isLang ) {
  ------------------
  |  Branch (451:15): [True: 265, False: 24]
  ------------------
  452|    265|			if ( xmpParent->qualifiers.empty() ) {
  ------------------
  |  Branch (452:9): [True: 263, False: 2]
  ------------------
  453|    263|				xmpParent->qualifiers.push_back ( newQual );
  454|    263|			} else {
  455|      2|				xmpParent->qualifiers.insert ( xmpParent->qualifiers.begin(), newQual );
  456|      2|			}
  457|    265|			xmpParent->options |= kXMP_PropHasLang;
  458|    265|		} else {
  459|     24|			XMP_Assert ( isType );
  ------------------
  |  |  142|     24|	#define XMP_Assert(c)	((void) 0)
  ------------------
  460|     24|			if ( xmpParent->qualifiers.empty() ) {
  ------------------
  |  Branch (460:9): [True: 24, False: 0]
  ------------------
  461|     24|				xmpParent->qualifiers.push_back ( newQual );
  462|     24|			} 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|     24|			xmpParent->options |= kXMP_PropHasType;
  468|     24|		}
  469|       |
  470|    390|		xmpParent->options |= kXMP_PropHasQualifiers;
  471|       |
  472|    390|	return newQual;
  473|       |
  474|    390|}	// AddQualifierNode
ParseRDF.cpp:_ZL26RDF_LiteralPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1014|  2.45k|{
 1015|  2.45k|	XMP_Node * newChild = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
 1016|       |	
 1017|  2.45k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
 1018|  2.45k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
 1019|       |
 1020|  2.64k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1020:10): [True: 193, False: 2.45k]
  ------------------
 1021|    193|		XMP_VarString & attrName = (*currAttr)->name;
 1022|    193|		if ( attrName == "xml:lang" ) {
  ------------------
  |  Branch (1022:8): [True: 193, False: 0]
  ------------------
 1023|    193|			AddQualifierNode ( newChild, **currAttr );
 1024|    193|		} 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|    193|	}
 1030|       |	
 1031|  2.45k|	XML_cNodePos currChild = xmlNode.content.begin();
 1032|  2.45k|	XML_cNodePos endChild  = xmlNode.content.end();
 1033|  2.45k|	size_t      textSize  = 0;
 1034|       |
 1035|  6.40k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (1035:10): [True: 3.95k, False: 2.45k]
  ------------------
 1036|  3.95k|		if ( (*currChild)->kind != kCDataNode ) XMP_Throw ( "Invalid child of literal property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1036:8): [True: 0, False: 3.95k]
  ------------------
 1037|  3.95k|		textSize += (*currChild)->value.size();
 1038|  3.95k|	}
 1039|       |	
 1040|  2.45k|	newChild->value.reserve ( textSize );
 1041|       |
 1042|  6.40k|	for ( currChild = xmlNode.content.begin(); currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (1042:45): [True: 3.95k, False: 2.45k]
  ------------------
 1043|  3.95k|		newChild->value += (*currChild)->value;
 1044|  3.95k|	}
 1045|       |
 1046|       |	#if 0	// *** XMP_DebugBuild
 1047|       |		newChild->_valuePtr = newChild->value.c_str();
 1048|       |	#endif
 1049|       |	
 1050|  2.45k|}	// RDF_LiteralPropertyElement
ParseRDF.cpp:_ZL33RDF_ParseTypeOtherPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1146|     12|{
 1147|     12|	IgnoreParam(xmpParent); IgnoreParam(xmlNode); IgnoreParam(isTopLevel); 
  ------------------
  |  |  117|     12|#define IgnoreParam(p)	(void)p
  ------------------
              	IgnoreParam(xmpParent); IgnoreParam(xmlNode); IgnoreParam(isTopLevel); 
  ------------------
  |  |  117|     12|#define IgnoreParam(p)	(void)p
  ------------------
              	IgnoreParam(xmpParent); IgnoreParam(xmlNode); IgnoreParam(isTopLevel); 
  ------------------
  |  |  117|     12|#define IgnoreParam(p)	(void)p
  ------------------
 1148|       |
 1149|     12|	XMP_Throw ( "ParseTypeOther property element not allowed", kXMPErr_BadXMP );
  ------------------
  |  |  199|     12|#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.23k|{
  943|  1.23k|	if ( isTopLevel && (xmlNode.name == "iX:changes") ) return;	// Strip old "punchcard" chaff.
  ------------------
  |  Branch (943:7): [True: 1.22k, False: 5]
  |  Branch (943:21): [True: 0, False: 1.22k]
  ------------------
  944|       |	
  945|  1.23k|	XMP_Node * newCompound = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
  946|       |	
  947|  1.23k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
  948|  1.23k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
  949|       |
  950|  1.23k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (950:10): [True: 1, False: 1.23k]
  ------------------
  951|      1|		XMP_VarString & attrName = (*currAttr)->name;
  952|      1|		if ( attrName == "xml:lang" ) {
  ------------------
  |  Branch (952:8): [True: 1, False: 0]
  ------------------
  953|      1|			AddQualifierNode ( newCompound, **currAttr );
  954|      1|		} else if ( attrName == "rdf:ID" ) {
  ------------------
  |  Branch (954:15): [True: 0, False: 0]
  ------------------
  955|      0|			continue;	// Ignore all rdf:ID attributes.
  956|      0|		} else {
  957|      0|			XMP_Throw ( "Invalid attribute for resource property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  958|      0|		}
  959|      1|	}
  960|       |	
  961|  1.23k|	XML_cNodePos currChild = xmlNode.content.begin();
  962|  1.23k|	XML_cNodePos endChild  = xmlNode.content.end();
  963|       |
  964|  3.63k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (964:10): [True: 3.63k, False: 2]
  ------------------
  965|  3.63k|		if ( ! (*currChild)->IsWhitespaceNode() ) break;
  ------------------
  |  Branch (965:8): [True: 1.23k, False: 2.40k]
  ------------------
  966|  3.63k|	}
  967|  1.23k|	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.23k]
  ------------------
  968|  1.23k|	if ( (*currChild)->kind != kElemNode ) XMP_Throw ( "Children of resource property element must be XML elements", kXMPErr_BadRDF );
  ------------------
  |  |  199|     15|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (968:7): [True: 15, False: 1.21k]
  ------------------
  969|       |
  970|  1.21k|	if ( (*currChild)->name == "rdf:Bag" ) {
  ------------------
  |  Branch (970:7): [True: 136, False: 1.08k]
  ------------------
  971|    136|		newCompound->options |= kXMP_PropValueIsArray;
  972|  1.08k|	} else if ( (*currChild)->name == "rdf:Seq" ) {
  ------------------
  |  Branch (972:14): [True: 768, False: 315]
  ------------------
  973|    768|		newCompound->options |= kXMP_PropValueIsArray | kXMP_PropArrayIsOrdered;
  974|    768|	} else if ( (*currChild)->name == "rdf:Alt" ) {
  ------------------
  |  Branch (974:14): [True: 288, False: 27]
  ------------------
  975|    288|		newCompound->options |= kXMP_PropValueIsArray | kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate;
  976|    288|	} else {
  977|     27|		newCompound->options |= kXMP_PropValueIsStruct;
  978|     27|		if ( (*currChild)->name != "rdf:Description" ) {
  ------------------
  |  Branch (978:8): [True: 25, False: 2]
  ------------------
  979|     25|			XMP_VarString typeName ( (*currChild)->ns );
  980|     25|			size_t        colonPos = (*currChild)->name.find_first_of(':');
  981|     25|			if ( colonPos == XMP_VarString::npos ) XMP_Throw ( "All XML elements must be in a namespace", kXMPErr_BadXMP );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (981:9): [True: 1, False: 24]
  ------------------
  982|     24|			typeName.append ( (*currChild)->name, colonPos, XMP_VarString::npos );
  983|     24|			AddQualifierNode ( newCompound, XMP_VarString("rdf:type"), typeName );
  984|     24|		}
  985|     27|	}
  986|       |
  987|  1.21k|	RDF_NodeElement ( newCompound, **currChild, kNotTopLevel );
  988|  1.21k|	if ( newCompound->options & kRDF_HasValueElem ) {
  ------------------
  |  Branch (988:7): [True: 0, False: 1.21k]
  ------------------
  989|      0|		FixupQualifiedNode ( newCompound );
  990|  1.21k|	} else if ( newCompound->options & kXMP_PropArrayIsAlternate ) {
  ------------------
  |  Branch (990:14): [True: 280, False: 938]
  ------------------
  991|    280|		DetectAltText ( newCompound );
  992|    280|	}
  993|       |
  994|  3.31k|	for ( ++currChild; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (994:21): [True: 2.12k, False: 1.19k]
  ------------------
  995|  2.12k|		if ( ! (*currChild)->IsWhitespaceNode() ) XMP_Throw ( "Invalid child of resource property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     26|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (995:8): [True: 26, False: 2.09k]
  ------------------
  996|  2.09k|	}
  997|       |
  998|  1.21k|}	// 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|  36.4k|{
  568|  36.4k|	UTF8Unit inUnit;	// ! Don't read until we know there is input.
  569|  36.4k|	size_t unitCount = 0;
  570|       |
  571|  36.4k|	UC_Assert ( (utf8In != 0) && (cpOut != 0) && (utf8Read != 0) );
  572|  36.4k|	if ( utf8Len == 0 ) goto Done;
  ------------------
  |  Branch (572:7): [True: 0, False: 36.4k]
  ------------------
  573|  36.4k|	inUnit = *utf8In;
  574|  36.4k|	if ( inUnit >= 0x80 ) goto MultiByte;	// ! Force linear execution path for ASCII.
  ------------------
  |  Branch (574:7): [True: 36.4k, 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|  36.4k|MultiByte:
  584|  36.4k|	CodePoint_from_UTF8_Multi ( utf8In, utf8Len, cpOut, utf8Read );
  585|  36.4k|	return;
  586|       |	
  587|      0|}	// CodePoint_from_UTF8
UnicodeConversions.cpp:_ZL25CodePoint_from_UTF8_MultiPKhmPjPm:
  516|  36.4k|{
  517|  36.4k|	UTF8Unit  inUnit = *utf8In;
  518|  36.4k|	size_t    unitCount = 0;
  519|  36.4k|	UTF32Unit cp;	// ! Avoid gcc complaints about declarations after goto's.
  520|  36.4k|	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|  36.4k|	size_t bytesNeeded = 0;	// Count the leading 1 bits in the first byte.
  535|   109k|	for ( UTF8Unit temp = inUnit; temp > 0x7F; temp = temp << 1 ) ++bytesNeeded;
  ------------------
  |  Branch (535:32): [True: 72.9k, False: 36.4k]
  ------------------
  536|       |		// *** Consider CPU-specific assembly inline, e.g. cntlzw on PowerPC.
  537|       |	
  538|  36.4k|	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: 36.4k]
  |  Branch (538:28): [True: 0, False: 36.4k]
  ------------------
  539|  36.4k|	if ( bytesNeeded > utf8Len ) goto Done;	// Not enough input in this buffer.
  ------------------
  |  Branch (539:7): [True: 0, False: 36.4k]
  ------------------
  540|  36.4k|	unitCount = bytesNeeded;
  541|       |	
  542|  36.4k|	cp = inUnit & ((1 << (7-unitCount)) - 1);	// Isolate the initial data bits in the bottom of cp.
  543|       |	
  544|  36.4k|	utf8Pos = utf8In + 1;	// We've absorbed the first byte.
  545|  72.9k|	for ( --bytesNeeded; bytesNeeded > 0; --bytesNeeded, ++utf8Pos ) {
  ------------------
  |  Branch (545:23): [True: 36.5k, False: 36.4k]
  ------------------
  546|  36.5k|		inUnit = *utf8Pos;
  547|  36.5k|		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: 36.5k]
  ------------------
  548|  36.5k|		cp = (cp << 6) | (inUnit & 0x3F);
  549|  36.5k|	}
  550|       |	
  551|  36.4k|	if ( cp >= 0xD800 ) {	// Skip the next comparisons most of the time.
  ------------------
  |  Branch (551:7): [True: 11, False: 36.4k]
  ------------------
  552|     11|		if ( (0xD800 <= cp) && (cp <= 0xDFFF) ) UC_Throw ( "Bad UTF-8 - surrogate code point", kXMPErr_BadParam );
  ------------------
  |  |   18|      0|	#define UC_Throw(msg,id)  throw XMP_Error ( id, msg )
  ------------------
  |  Branch (552:8): [True: 11, False: 0]
  |  Branch (552:26): [True: 0, False: 11]
  ------------------
  553|     11|		if ( cp > 0x10FFFF ) UC_Throw ( "Bad UTF-8 - out of range", kXMPErr_BadParam );
  ------------------
  |  |   18|      0|	#define UC_Throw(msg,id)  throw XMP_Error ( id, msg )
  ------------------
  |  Branch (553:8): [True: 0, False: 11]
  ------------------
  554|     11|	}
  555|       |	
  556|  36.4k|	*cpOut = cp;	// ! Don't put after Done, don't write if no input.
  557|       |	
  558|  36.4k|Done:	
  559|  36.4k|	*utf8Read = unitCount;
  560|  36.4k|	return;
  561|       |	
  562|  36.4k|}	// CodePoint_from_UTF8_Multi

XMPCore_Impl.cpp:_ZL19VerifySimpleXMLNamePKcS0_:
   87|  43.4k|{
   88|       |
   89|  43.4k|	const XMP_Uns8 * nameStart = (const XMP_Uns8 *) _nameStart;
   90|  43.4k|	const XMP_Uns8 * nameEnd   = (const XMP_Uns8 *) _nameEnd;
   91|  43.4k|	const XMP_Uns8 * namePos   = nameStart;
   92|  43.4k|	XMP_Uns32 cp;
   93|       |	
   94|       |	// The first character is more restricted.
   95|       |	
   96|  43.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: 43.4k]
  ------------------
   97|       |
   98|  43.4k|	cp = *namePos;
   99|  43.4k|	if ( cp < 0x80 ) {
  ------------------
  |  Branch (99:7): [True: 43.3k, False: 59]
  ------------------
  100|  43.3k|		++namePos;
  101|  43.3k|		if ( ! IsStartChar_ASCII(cp) ) goto NameError;
  ------------------
  |  Branch (101:8): [True: 0, False: 43.3k]
  ------------------
  102|  43.3k|	} else {
  103|     59|		cp = GetCodePoint ( &namePos );
  104|     59|		if ( ! IsStartChar_NonASCII(cp) ) goto NameError;
  ------------------
  |  Branch (104:8): [True: 0, False: 59]
  ------------------
  105|     59|	}
  106|       |
  107|       |	// Check the rest of the name.
  108|       |	
  109|  1.76M|	while ( namePos < nameEnd ) {
  ------------------
  |  Branch (109:10): [True: 1.72M, False: 43.4k]
  ------------------
  110|  1.72M|		cp = *namePos;
  111|  1.72M|		if ( cp < 0x80 ) {
  ------------------
  |  Branch (111:8): [True: 1.70M, False: 18.1k]
  ------------------
  112|  1.70M|			++namePos;
  113|  1.70M|			if ( (! IsStartChar_ASCII(cp)) && (! IsOtherChar_ASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (113:9): [True: 88.6k, False: 1.61M]
  |  Branch (113:38): [True: 0, False: 88.6k]
  ------------------
  114|  1.70M|		} else {
  115|  18.1k|			cp = GetCodePoint ( &namePos );
  116|  18.1k|			if ( (! IsStartChar_NonASCII(cp)) && (! IsOtherChar_NonASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (116:9): [True: 14.1k, False: 3.99k]
  |  Branch (116:41): [True: 0, False: 14.1k]
  ------------------
  117|  18.1k|		}
  118|  1.72M|	}
  119|       |
  120|  43.4k|	return;
  121|       |
  122|  43.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|  1.74M|{
   32|       |	// ASCII starting characters for an XML name.
   33|  1.74M|	if ( (('a' <= cp) && (cp <= 'z')) || (('A' <= cp) && (cp <= 'Z')) || (cp == '_') ) return true;
  ------------------
  |  Branch (33:8): [True: 1.12M, False: 627k]
  |  Branch (33:23): [True: 1.12M, False: 0]
  |  Branch (33:40): [True: 538k, False: 88.6k]
  |  Branch (33:55): [True: 533k, False: 4.97k]
  |  Branch (33:71): [True: 4.97k, False: 88.6k]
  ------------------
   34|  88.6k|	return false;
   35|  1.74M|}
XMPCore_Impl.cpp:_ZL12GetCodePointPPKh:
   19|  18.2k|{
   20|  18.2k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  18.2k|	XMP_Uns32 cp;
   22|  18.2k|	size_t u8Len;
   23|  18.2k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  18.2k|	*utf8Str_io = u8Ptr + u8Len;
   25|  18.2k|	return cp;
   26|  18.2k|}
XMPCore_Impl.cpp:_ZL20IsStartChar_NonASCIIj:
   40|  18.2k|{
   41|       |	// Non-ASCII starting characters for an XML name.
   42|       |	
   43|  18.2k|	if ( ((0xC0 <= cp) && (cp <= 0xD6))  || ((0xD8 <= cp) && (cp <= 0xF6)) ) return true;
  ------------------
  |  Branch (43:8): [True: 4.10k, False: 14.1k]
  |  Branch (43:24): [True: 494, False: 3.61k]
  |  Branch (43:43): [True: 3.61k, False: 14.1k]
  |  Branch (43:59): [True: 691, False: 2.92k]
  ------------------
   44|  17.0k|	if ( ((0xF8 <= cp) && (cp <= 0x2FF)) || ((0x370 <= cp) && (cp <= 0x37D)) ) return true;
  ------------------
  |  Branch (44:8): [True: 2.92k, False: 14.1k]
  |  Branch (44:24): [True: 1.13k, False: 1.79k]
  |  Branch (44:43): [True: 1.73k, False: 14.1k]
  |  Branch (44:60): [True: 0, False: 1.73k]
  ------------------
   45|       |
   46|  15.9k|	if ( ((0x37F <= cp) && (cp <= 0x1FFF))  || ((0x200C <= cp) && (cp <= 0x200D)) ) return true;
  ------------------
  |  Branch (46:8): [True: 1.73k, False: 14.1k]
  |  Branch (46:25): [True: 1.72k, False: 8]
  |  Branch (46:46): [True: 8, False: 14.1k]
  |  Branch (46:64): [True: 0, False: 8]
  ------------------
   47|  14.1k|	if ( ((0x2070 <= cp) && (cp <= 0x218F)) || ((0x2C00 <= cp) && (cp <= 0x2FEF)) ) return true;
  ------------------
  |  Branch (47:8): [True: 8, False: 14.1k]
  |  Branch (47:26): [True: 0, False: 8]
  |  Branch (47:46): [True: 8, False: 14.1k]
  |  Branch (47:64): [True: 0, False: 8]
  ------------------
   48|  14.1k|	if ( ((0x3001 <= cp) && (cp <= 0xD7FF)) || ((0xF900 <= cp) && (cp <= 0xFDCF)) ) return true;
  ------------------
  |  Branch (48:8): [True: 8, False: 14.1k]
  |  Branch (48:26): [True: 8, False: 0]
  |  Branch (48:46): [True: 0, False: 14.1k]
  |  Branch (48:64): [True: 0, False: 0]
  ------------------
   49|  14.1k|	if ( ((0xFDF0 <= cp) && (cp <= 0xFFFD)) || ((0x10000 <= cp) && (cp <= 0xEFFFF)) ) return true;
  ------------------
  |  Branch (49:8): [True: 0, False: 14.1k]
  |  Branch (49:26): [True: 0, False: 0]
  |  Branch (49:46): [True: 0, False: 14.1k]
  |  Branch (49:65): [True: 0, False: 0]
  ------------------
   50|       |
   51|  14.1k|	return false;
   52|       |
   53|  14.1k|}
XMPCore_Impl.cpp:_ZL17IsOtherChar_ASCIIj:
   58|  88.6k|{
   59|       |	// ASCII following characters for an XML name.
   60|  88.6k|	if ( (('0' <= cp) && (cp <= '9')) || (cp == '-') || (cp == '.') ) return true;
  ------------------
  |  Branch (60:8): [True: 49.2k, False: 39.3k]
  |  Branch (60:23): [True: 49.2k, False: 0]
  |  Branch (60:39): [True: 31.2k, False: 8.04k]
  |  Branch (60:54): [True: 8.04k, False: 0]
  ------------------
   61|      0|	return false;
   62|  88.6k|}
XMPCore_Impl.cpp:_ZL20IsOtherChar_NonASCIIj:
   67|  14.1k|{
   68|       |	// Non-ASCII following characters for an XML name.
   69|  14.1k|	if ( (cp == 0xB7) || ((0x300 <= cp) && (cp <= 0x36F))  || ((0x203F <= cp) && (cp <= 0x2040)) ) return true;
  ------------------
  |  Branch (69:7): [True: 14.1k, False: 58]
  |  Branch (69:24): [True: 58, False: 0]
  |  Branch (69:41): [True: 58, False: 0]
  |  Branch (69:61): [True: 0, False: 0]
  |  Branch (69:79): [True: 0, False: 0]
  ------------------
   70|      0|	return false;
   71|  14.1k|}
XMPMeta-GetSet.cpp:_ZL12GetCodePointPPKh:
   19|  1.34k|{
   20|  1.34k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  1.34k|	XMP_Uns32 cp;
   22|  1.34k|	size_t u8Len;
   23|  1.34k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  1.34k|	*utf8Str_io = u8Ptr + u8Len;
   25|  1.34k|	return cp;
   26|  1.34k|}
XMPMeta.cpp:_ZL19VerifySimpleXMLNamePKcS0_:
   87|  9.28k|{
   88|       |
   89|  9.28k|	const XMP_Uns8 * nameStart = (const XMP_Uns8 *) _nameStart;
   90|  9.28k|	const XMP_Uns8 * nameEnd   = (const XMP_Uns8 *) _nameEnd;
   91|  9.28k|	const XMP_Uns8 * namePos   = nameStart;
   92|  9.28k|	XMP_Uns32 cp;
   93|       |	
   94|       |	// The first character is more restricted.
   95|       |	
   96|  9.28k|	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: 9.28k]
  ------------------
   97|       |
   98|  9.28k|	cp = *namePos;
   99|  9.28k|	if ( cp < 0x80 ) {
  ------------------
  |  Branch (99:7): [True: 9.21k, False: 73]
  ------------------
  100|  9.21k|		++namePos;
  101|  9.21k|		if ( ! IsStartChar_ASCII(cp) ) goto NameError;
  ------------------
  |  Branch (101:8): [True: 0, False: 9.21k]
  ------------------
  102|  9.21k|	} else {
  103|     73|		cp = GetCodePoint ( &namePos );
  104|     73|		if ( ! IsStartChar_NonASCII(cp) ) goto NameError;
  ------------------
  |  Branch (104:8): [True: 0, False: 73]
  ------------------
  105|     73|	}
  106|       |
  107|       |	// Check the rest of the name.
  108|       |	
  109|  1.37M|	while ( namePos < nameEnd ) {
  ------------------
  |  Branch (109:10): [True: 1.36M, False: 9.28k]
  ------------------
  110|  1.36M|		cp = *namePos;
  111|  1.36M|		if ( cp < 0x80 ) {
  ------------------
  |  Branch (111:8): [True: 1.34M, False: 16.7k]
  ------------------
  112|  1.34M|			++namePos;
  113|  1.34M|			if ( (! IsStartChar_ASCII(cp)) && (! IsOtherChar_ASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (113:9): [True: 60.4k, False: 1.28M]
  |  Branch (113:38): [True: 0, False: 60.4k]
  ------------------
  114|  1.34M|		} else {
  115|  16.7k|			cp = GetCodePoint ( &namePos );
  116|  16.7k|			if ( (! IsStartChar_NonASCII(cp)) && (! IsOtherChar_NonASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (116:9): [True: 14.1k, False: 2.65k]
  |  Branch (116:41): [True: 0, False: 14.1k]
  ------------------
  117|  16.7k|		}
  118|  1.36M|	}
  119|       |
  120|  9.28k|	return;
  121|       |
  122|  9.28k|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|  1.35M|{
   32|       |	// ASCII starting characters for an XML name.
   33|  1.35M|	if ( (('a' <= cp) && (cp <= 'z')) || (('A' <= cp) && (cp <= 'Z')) || (cp == '_') ) return true;
  ------------------
  |  Branch (33:8): [True: 818k, False: 536k]
  |  Branch (33:23): [True: 818k, False: 0]
  |  Branch (33:40): [True: 475k, False: 60.4k]
  |  Branch (33:55): [True: 471k, False: 4.31k]
  |  Branch (33:71): [True: 4.31k, False: 60.4k]
  ------------------
   34|  60.4k|	return false;
   35|  1.35M|}
XMPMeta.cpp:_ZL12GetCodePointPPKh:
   19|  16.8k|{
   20|  16.8k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  16.8k|	XMP_Uns32 cp;
   22|  16.8k|	size_t u8Len;
   23|  16.8k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  16.8k|	*utf8Str_io = u8Ptr + u8Len;
   25|  16.8k|	return cp;
   26|  16.8k|}
XMPMeta.cpp:_ZL20IsStartChar_NonASCIIj:
   40|  16.8k|{
   41|       |	// Non-ASCII starting characters for an XML name.
   42|       |	
   43|  16.8k|	if ( ((0xC0 <= cp) && (cp <= 0xD6))  || ((0xD8 <= cp) && (cp <= 0xF6)) ) return true;
  ------------------
  |  Branch (43:8): [True: 2.74k, False: 14.0k]
  |  Branch (43:24): [True: 39, False: 2.70k]
  |  Branch (43:43): [True: 2.70k, False: 14.0k]
  |  Branch (43:59): [True: 358, False: 2.34k]
  ------------------
   44|  16.4k|	if ( ((0xF8 <= cp) && (cp <= 0x2FF)) || ((0x370 <= cp) && (cp <= 0x37D)) ) return true;
  ------------------
  |  Branch (44:8): [True: 2.34k, False: 14.0k]
  |  Branch (44:24): [True: 1.70k, False: 642]
  |  Branch (44:43): [True: 627, False: 14.1k]
  |  Branch (44:60): [True: 0, False: 627]
  ------------------
   45|       |
   46|  14.7k|	if ( ((0x37F <= cp) && (cp <= 0x1FFF))  || ((0x200C <= cp) && (cp <= 0x200D)) ) return true;
  ------------------
  |  Branch (46:8): [True: 627, False: 14.1k]
  |  Branch (46:25): [True: 580, False: 47]
  |  Branch (46:46): [True: 47, False: 14.1k]
  |  Branch (46:64): [True: 0, False: 47]
  ------------------
   47|  14.1k|	if ( ((0x2070 <= cp) && (cp <= 0x218F)) || ((0x2C00 <= cp) && (cp <= 0x2FEF)) ) return true;
  ------------------
  |  Branch (47:8): [True: 47, False: 14.1k]
  |  Branch (47:26): [True: 0, False: 47]
  |  Branch (47:46): [True: 47, False: 14.1k]
  |  Branch (47:64): [True: 0, False: 47]
  ------------------
   48|  14.1k|	if ( ((0x3001 <= cp) && (cp <= 0xD7FF)) || ((0xF900 <= cp) && (cp <= 0xFDCF)) ) return true;
  ------------------
  |  Branch (48:8): [True: 47, False: 14.1k]
  |  Branch (48:26): [True: 47, False: 0]
  |  Branch (48:46): [True: 0, False: 14.1k]
  |  Branch (48:64): [True: 0, False: 0]
  ------------------
   49|  14.1k|	if ( ((0xFDF0 <= cp) && (cp <= 0xFFFD)) || ((0x10000 <= cp) && (cp <= 0xEFFFF)) ) return true;
  ------------------
  |  Branch (49:8): [True: 0, False: 14.1k]
  |  Branch (49:26): [True: 0, False: 0]
  |  Branch (49:46): [True: 0, False: 14.1k]
  |  Branch (49:65): [True: 0, False: 0]
  ------------------
   50|       |
   51|  14.1k|	return false;
   52|       |
   53|  14.1k|}
XMPMeta.cpp:_ZL17IsOtherChar_ASCIIj:
   58|  60.4k|{
   59|       |	// ASCII following characters for an XML name.
   60|  60.4k|	if ( (('0' <= cp) && (cp <= '9')) || (cp == '-') || (cp == '.') ) return true;
  ------------------
  |  Branch (60:8): [True: 28.9k, False: 31.5k]
  |  Branch (60:23): [True: 28.9k, False: 0]
  |  Branch (60:39): [True: 29.4k, False: 2.09k]
  |  Branch (60:54): [True: 2.09k, False: 0]
  ------------------
   61|      0|	return false;
   62|  60.4k|}
XMPMeta.cpp:_ZL20IsOtherChar_NonASCIIj:
   67|  14.1k|{
   68|       |	// Non-ASCII following characters for an XML name.
   69|  14.1k|	if ( (cp == 0xB7) || ((0x300 <= cp) && (cp <= 0x36F))  || ((0x203F <= cp) && (cp <= 0x2040)) ) return true;
  ------------------
  |  Branch (69:7): [True: 14.0k, False: 15]
  |  Branch (69:24): [True: 15, False: 0]
  |  Branch (69:41): [True: 15, False: 0]
  |  Branch (69:61): [True: 0, False: 0]
  |  Branch (69:79): [True: 0, False: 0]
  ------------------
   70|      0|	return false;
   71|  14.1k|}

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

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

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

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

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

_ZN13XMP_AutoMutexC2Ev:
  222|  56.3k|	XMP_AutoMutex() : mutex(&sXMPCoreLock) { XMP_EnterCriticalRegion ( *mutex ); ReportLock(); };
  ------------------
  |  |  168|  56.3k|	#define ReportLock()			++sLockCount
  ------------------
_ZN13XMP_AutoMutexD2Ev:
  223|  56.3k|	~XMP_AutoMutex() { if ( mutex != 0 ) { ReportUnlock(); XMP_ExitCriticalRegion ( *mutex ); mutex = 0; } };
  ------------------
  |  |  169|  22.6k|	#define ReportUnlock()			--sLockCount
  ------------------
  |  Branch (223:26): [True: 22.6k, False: 33.6k]
  ------------------
_ZN13XMP_AutoMutex8KeepLockEv:
  224|  33.6k|	void KeepLock() { ReportKeepLock(); mutex = 0; };
_ZN13XPathStepInfoC2EPKcj:
  389|  39.7k|	XPathStepInfo ( XMP_StringPtr _step, XMP_OptionBits _options ) : step(_step), options(_options) {};
_ZN13XPathStepInfoC2ENSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEj:
  390|  12.4k|	XPathStepInfo ( XMP_VarString _step, XMP_OptionBits _options ) : step(_step), options(_options) {};
_ZN8XMP_NodeC2EPS_PKcj:
  434|  12.3k|		: options(_options), name(_name), parent(_parent)
  435|  12.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|  12.3k|	};
_ZN8XMP_NodeC2EPS_PKcS2_j:
  456|  15.7k|		: options(_options), name(_name), value(_value), parent(_parent)
  457|  15.7k|	{
  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|  15.7k|	};
_ZN8XMP_NodeC2EPS_RKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_j:
  467|    390|		: options(_options), name(_name), value(_value), parent(_parent)
  468|    390|	{
  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|    390|	};
_ZN8XMP_Node14RemoveChildrenEv:
  478|  32.5k|	{
  479|  57.4k|		for ( size_t i = 0, vLim = children.size(); i < vLim; ++i ) {
  ------------------
  |  Branch (479:47): [True: 24.8k, False: 32.5k]
  ------------------
  480|  24.8k|			if ( children[i] != 0 ) delete children[i];
  ------------------
  |  Branch (480:9): [True: 24.8k, False: 0]
  ------------------
  481|  24.8k|		}
  482|  32.5k|		children.clear();
  483|  32.5k|	}
_ZN8XMP_Node16RemoveQualifiersEv:
  486|  31.9k|	{
  487|  32.5k|		for ( size_t i = 0, vLim = qualifiers.size(); i < vLim; ++i ) {
  ------------------
  |  Branch (487:49): [True: 593, False: 31.9k]
  ------------------
  488|    593|			if ( qualifiers[i] != 0 ) delete qualifiers[i];
  ------------------
  |  Branch (488:9): [True: 593, False: 0]
  ------------------
  489|    593|		}
  490|  31.9k|		qualifiers.clear();
  491|  31.9k|	}
_ZN8XMP_Node9ClearNodeEv:
  494|  3.41k|	{
  495|  3.41k|		options = 0;
  496|  3.41k|		name.erase();
  497|  3.41k|		value.erase();
  498|  3.41k|		this->RemoveChildren();
  499|  3.41k|		this->RemoveQualifiers();
  500|  3.41k|	}
_ZN8XMP_NodeD2Ev:
  502|  28.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.03k|						   XMP_OptionBits  options ) : clientRefs(0), info(IterInfo(options,&xmpObj))
  428|  3.03k|{
  429|  3.03k|	if ( (options & kXMP_IterClassMask) != kXMP_IterProperties ) {
  ------------------
  |  Branch (429:7): [True: 0, False: 3.03k]
  ------------------
  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.03k|	if ( *propName != 0 ) {
  ------------------
  |  Branch (435:7): [True: 866, False: 2.16k]
  ------------------
  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|    866|		XMP_ExpandedXPath propPath;
  445|    866|		ExpandXPath ( schemaNS, propName, &propPath );
  446|    866|		XMP_Node * propNode = FindConstNode ( &xmpObj.tree, propPath );	// If not found get empty iteration.
  ------------------
  |  |  301|    866|#define FindConstNode(t,p)		FindNode ( const_cast<XMP_Node*>(t), p, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|    866|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  447|       |		
  448|    866|		if ( propNode != 0 ) {
  ------------------
  |  Branch (448:8): [True: 866, False: 0]
  ------------------
  449|       |
  450|    866|			XMP_VarString rootName ( propPath[1].step );	// The schema is [0].
  451|    866|			for ( size_t i = 2; i < propPath.size(); ++i ) {
  ------------------
  |  Branch (451:24): [True: 0, False: 866]
  ------------------
  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|    866|			propName = rootName.c_str();
  458|    866|			size_t leafOffset = rootName.size();
  459|  15.5k|			while ( (leafOffset > 0) && (propName[leafOffset] != '/') && (propName[leafOffset] != '[') ) --leafOffset;
  ------------------
  |  Branch (459:12): [True: 14.6k, False: 866]
  |  Branch (459:32): [True: 14.6k, False: 0]
  |  Branch (459:65): [True: 14.6k, False: 0]
  ------------------
  460|    866|			if ( propName[leafOffset] == '/' ) ++leafOffset;
  ------------------
  |  Branch (460:9): [True: 0, False: 866]
  ------------------
  461|       |
  462|    866|			info.tree.children.push_back ( IterNode ( propNode->options, propName, leafOffset ) );
  463|    866|			SetCurrSchema ( info, propPath[kSchemaStep].step.c_str() );
  464|    866|			if ( info.options & kXMP_IterJustChildren ) {
  ------------------
  |  Branch (464:9): [True: 0, False: 866]
  ------------------
  465|      0|				AddNodeOffspring ( info, info.tree.children.back(), propNode );
  466|      0|			}
  467|       |
  468|    866|		}
  469|       |	
  470|  2.16k|	} else if ( *schemaNS != 0 ) {
  ------------------
  |  Branch (470:14): [True: 0, False: 2.16k]
  ------------------
  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.16k|	} 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|  6.09k|		for ( size_t schemaNum = 0, schemaLim = xmpObj.tree.children.size(); schemaNum != schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (506:72): [True: 3.92k, False: 2.16k]
  ------------------
  507|       |
  508|  3.92k|			const XMP_Node * xmpSchema = xmpObj.tree.children[schemaNum];
  509|  3.92k|			info.tree.children.push_back ( IterNode ( kXMP_SchemaNode, xmpSchema->name, 0 ) );
  510|  3.92k|			IterNode & iterSchema = info.tree.children.back();
  511|       |
  512|  3.92k|			if ( ! (info.options & kXMP_IterJustChildren) ) {
  ------------------
  |  Branch (512:9): [True: 3.92k, False: 0]
  ------------------
  513|  3.92k|				AddSchemaProps ( info, iterSchema, xmpSchema );
  514|  3.92k|				if ( info.options & kXMP_IterIncludeAliases ) AddSchemaAliases ( info, iterSchema, xmpSchema->name.c_str() );
  ------------------
  |  Branch (514:10): [True: 0, False: 3.92k]
  ------------------
  515|  3.92k|				if ( iterSchema.children.empty() ) info.tree.children.pop_back();	// No properties, remove the schema node.
  ------------------
  |  Branch (515:10): [True: 0, False: 3.92k]
  ------------------
  516|  3.92k|			}
  517|       |
  518|  3.92k|		}
  519|       |		
  520|  2.16k|		if ( info.options & kXMP_IterIncludeAliases ) {
  ------------------
  |  Branch (520:8): [True: 0, False: 2.16k]
  ------------------
  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.16k|	}
  550|       |	
  551|       |	// Set the current iteration position to the first node to be visited.
  552|       |	
  553|  3.03k|	info.currPos = info.tree.children.begin();
  554|  3.03k|	info.endPos  = info.tree.children.end();
  555|       |	
  556|  3.03k|	if ( (info.options & kXMP_IterJustChildren) && (info.currPos != info.endPos) && (*schemaNS != 0) ) {
  ------------------
  |  Branch (556:7): [True: 0, False: 3.03k]
  |  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.03k|}	// XMPIterator for XMPMeta objects
_ZN11XMPIteratorD2Ev:
  591|  3.03k|{
  592|  3.03k|	XMP_Assert ( this->clientRefs <= 0 );
  ------------------
  |  |  142|  3.03k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  593|       |	// Let everything else default.
  594|       |	
  595|  3.03k|}	// ~XMPIterator
_ZN11XMPIterator4NextEPPKcPjS2_S3_S2_S3_S3_:
  617|  22.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|  22.8k|	if ( info.currPos == info.endPos ) return false;	// Happens at the start of an empty iteration.
  ------------------
  |  Branch (623:7): [True: 280, False: 22.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|  22.5k|	const XMP_Node * xmpNode = GetNextXMPNode ( info );
  631|  22.5k|	if ( xmpNode == 0 ) return false;
  ------------------
  |  Branch (631:7): [True: 2.59k, False: 19.9k]
  ------------------
  632|  19.9k|	bool isSchemaNode = XMP_NodeIsSchema ( info.currPos->options );
  633|       |	
  634|  19.9k|	if ( info.options & kXMP_IterJustLeafNodes ) {
  ------------------
  |  Branch (634:7): [True: 0, False: 19.9k]
  ------------------
  635|      0|		while ( isSchemaNode || (! xmpNode->children.empty()) ) {
  ------------------
  |  Branch (635:11): [True: 0, False: 0]
  |  Branch (635:27): [True: 0, False: 0]
  ------------------
  636|      0|			info.currPos->visitStage = kIter_VisitQualifiers;	// Skip to this node's children.
  637|      0|			xmpNode = GetNextXMPNode ( info );
  638|      0|			if ( xmpNode == 0 ) return false;
  ------------------
  |  Branch (638:9): [True: 0, False: 0]
  ------------------
  639|      0|			isSchemaNode = XMP_NodeIsSchema ( info.currPos->options );
  640|      0|		}
  641|      0|	}
  642|       |	
  643|  19.9k|	*schemaNS = info.currSchema.c_str();
  644|  19.9k|	*nsSize   = info.currSchema.size();
  645|       |
  646|  19.9k|	*propOptions = info.currPos->options;
  647|       |
  648|  19.9k|	*propPath  = "";
  649|  19.9k|	*pathSize  = 0;
  650|  19.9k|	*propValue = "";
  651|  19.9k|	*valueSize = 0;
  652|       |	
  653|  19.9k|	if ( ! (*propOptions & kXMP_SchemaNode) ) {
  ------------------
  |  Branch (653:7): [True: 16.0k, False: 3.91k]
  ------------------
  654|       |
  655|  16.0k|		*propPath = info.currPos->fullPath.c_str();
  656|  16.0k|		*pathSize = info.currPos->fullPath.size();
  657|  16.0k|		if ( info.options & kXMP_IterJustLeafName ) {
  ------------------
  |  Branch (657:8): [True: 0, False: 16.0k]
  ------------------
  658|      0|			*propPath += info.currPos->leafOffset;
  659|      0|			*pathSize -= info.currPos->leafOffset;
  660|      0|		}
  661|       |		
  662|  16.0k|		if ( ! (*propOptions & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (662:8): [True: 13.6k, False: 2.36k]
  ------------------
  663|  13.6k|			*propValue = xmpNode->value.c_str();
  664|  13.6k|			*valueSize = xmpNode->value.size();
  665|  13.6k|		}
  666|       |
  667|  16.0k|	}
  668|       |	
  669|       |	#if TraceIterators
  670|       |		printf ( "    Next node %s, stage = %s\n",
  671|       |			     info.currPos->fullPath.c_str(), sStageNames[info.currPos->visitStage] );
  672|       |	#endif
  673|       |	
  674|  19.9k|	return true;
  675|       |
  676|  19.9k|}	// Next
_ZN11XMPIterator10UnlockIterEj:
  729|  19.9k|{
  730|  19.9k|	UNUSED(options);
  731|       |
  732|  19.9k|	XMPMeta::Unlock ( 0 );
  733|       |	
  734|  19.9k|}	// UnlockIter
XMPIterator.cpp:_ZL13SetCurrSchemaR8IterInfoPKc:
  181|    866|{
  182|       |
  183|    866|	info.currSchema = schemaName;
  184|       |	#if 0	// *** XMP_DebugBuild
  185|       |		info._schemaPtr = info.currSchema.c_str();
  186|       |	#endif
  187|       |
  188|    866|}	// SetCurrSchema
XMPIterator.cpp:_ZL16AddNodeOffspringR8IterInfoR8IterNodePK8XMP_Node:
  114|  16.0k|{
  115|  16.0k|	XMP_VarString currPath ( iterParent.fullPath );
  116|  16.0k|	size_t        leafOffset = iterParent.fullPath.size();
  117|       |	
  118|  16.0k|	if ( (! xmpParent->qualifiers.empty()) && (! (info.options & kXMP_IterOmitQualifiers)) ) {
  ------------------
  |  Branch (118:7): [True: 357, False: 15.6k]
  |  Branch (118:44): [True: 357, False: 0]
  ------------------
  119|       |
  120|       |		#if TraceIterators
  121|       |			printf ( "    Adding qualifiers of %s\n", currPath.c_str() );
  122|       |		#endif
  123|       |
  124|    357|		currPath += "/?";	// All qualifiers are named and use paths like "Prop/?Qual".
  125|    357|		leafOffset += 2;
  126|       |		
  127|    846|		for ( size_t qualNum = 0, qualLim = xmpParent->qualifiers.size(); qualNum != qualLim; ++qualNum ) {
  ------------------
  |  Branch (127:69): [True: 489, False: 357]
  ------------------
  128|    489|			const XMP_Node * xmpQual = xmpParent->qualifiers[qualNum];
  129|    489|			currPath += xmpQual->name;
  130|    489|			iterParent.qualifiers.push_back ( IterNode ( xmpQual->options, currPath, leafOffset ) );
  131|    489|			currPath.erase ( leafOffset );
  132|       |			#if TraceIterators
  133|       |				printf ( "        %s\n", xmpQual->name.c_str() );
  134|       |			#endif
  135|    489|		}
  136|       |		
  137|    357|		leafOffset -= 2;
  138|    357|		currPath.erase ( leafOffset );
  139|       |
  140|    357|	}
  141|       |
  142|  16.0k|	if ( ! xmpParent->children.empty() ) {
  ------------------
  |  Branch (142:7): [True: 2.34k, False: 13.6k]
  ------------------
  143|       |	
  144|       |		#if TraceIterators
  145|       |			printf ( "    Adding children of %s\n", currPath.c_str() );
  146|       |		#endif
  147|       |
  148|  2.34k|		XMP_Assert ( xmpParent->options & kXMP_PropCompositeMask );
  ------------------
  |  |  142|  2.34k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  149|       |		
  150|  2.34k|		if ( xmpParent->options & kXMP_PropValueIsStruct ) {
  ------------------
  |  Branch (150:8): [True: 435, False: 1.91k]
  ------------------
  151|    435|			currPath += '/';
  152|    435|			leafOffset += 1;
  153|    435|		}
  154|       |		
  155|  7.69k|		for ( size_t childNum = 0, childLim = xmpParent->children.size(); childNum != childLim; ++childNum ) {
  ------------------
  |  Branch (155:69): [True: 5.35k, False: 2.34k]
  ------------------
  156|  5.35k|			const XMP_Node * xmpChild = xmpParent->children[childNum];
  157|  5.35k|			if ( ! (xmpParent->options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (157:9): [True: 1.11k, False: 4.23k]
  ------------------
  158|  1.11k|				currPath += xmpChild->name;
  159|  4.23k|			} else {
  160|  4.23k|				char buffer [32];	// AUDIT: Using sizeof(buffer) below for snprintf length is safe.
  161|  4.23k|				snprintf ( buffer, sizeof(buffer), "[%lu]", static_cast<unsigned long>(childNum+1) );	// ! XPath indices are one-based.
  162|  4.23k|				currPath += buffer;
  163|  4.23k|			}
  164|  5.35k|			iterParent.children.push_back ( IterNode ( xmpChild->options, currPath, leafOffset ) );
  165|  5.35k|			currPath.erase ( leafOffset );
  166|       |			#if TraceIterators
  167|       |				printf ( "        %s\n", (iterParent.children.back().fullPath.c_str() + leafOffset) );
  168|       |			#endif
  169|  5.35k|		}
  170|       |	
  171|  2.34k|	}
  172|       |
  173|  16.0k|}	// AddNodeOffspring
XMPIterator.cpp:_ZL14AddSchemaPropsR8IterInfoR8IterNodePK8XMP_Node:
   48|  3.92k|{
   49|  3.92k|	UNUSED(info);
   50|       |	#if TraceIterators
   51|       |		printf ( "    Adding properties of %s\n", xmpSchema->name.c_str() );
   52|       |	#endif
   53|       |
   54|  13.6k|	for ( size_t propNum = 0, propLim = xmpSchema->children.size(); propNum != propLim; ++propNum ) {
  ------------------
  |  Branch (54:66): [True: 9.76k, False: 3.92k]
  ------------------
   55|  9.76k|		const XMP_Node * xmpProp = xmpSchema->children[propNum];
   56|       |		// *** set the has-aliases bit when appropriate
   57|  9.76k|		iterSchema.children.push_back ( IterNode ( xmpProp->options, xmpProp->name, 0 ) );
   58|       |		#if TraceIterators
   59|       |			printf ( "        %s\n", xmpProp->name.c_str() );
   60|       |		#endif
   61|  9.76k|	}
   62|       |
   63|  3.92k|}	// AddSchemaProps
XMPIterator.cpp:_ZL14GetNextXMPNodeR8IterInfo:
  308|  22.5k|{
  309|  22.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|  22.5k|	if ( info.currPos->visitStage != kIter_BeforeVisit ) AdvanceIterPos ( info );
  ------------------
  |  Branch (322:7): [True: 19.7k, False: 2.75k]
  ------------------
  323|       |	
  324|  22.5k|	bool isSchemaNode = false;
  325|  22.5k|	XMP_ExpandedXPath expPath;	// Keep outside the loop to avoid constant construct/destruct.
  326|       |	
  327|  22.5k|	while ( info.currPos != info.endPos ) {
  ------------------
  |  Branch (327:10): [True: 19.9k, False: 2.59k]
  ------------------
  328|       |
  329|  19.9k|		isSchemaNode = XMP_NodeIsSchema ( info.currPos->options );
  330|  19.9k|		if ( isSchemaNode ) {
  ------------------
  |  Branch (330:8): [True: 3.91k, False: 16.0k]
  ------------------
  331|  3.91k|			SetCurrSchema ( info, info.currPos->fullPath );
  332|  3.91k|			xmpNode = FindConstSchema ( &info.xmpObj->tree, info.currPos->fullPath.c_str() );
  ------------------
  |  |  298|  3.91k|#define FindConstSchema(t,u)	FindSchemaNode ( const_cast<XMP_Node*>(t), u, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|  3.91k|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  333|  3.91k|			if ( xmpNode == 0 ) xmpNode = sDummySchema;
  ------------------
  |  Branch (333:9): [True: 0, False: 3.91k]
  ------------------
  334|  16.0k|		} else {
  335|  16.0k|			ExpandXPath ( info.currSchema.c_str(), info.currPos->fullPath.c_str(), &expPath );
  336|  16.0k|			xmpNode = FindConstNode ( &info.xmpObj->tree, expPath );
  ------------------
  |  |  301|  16.0k|#define FindConstNode(t,p)		FindNode ( const_cast<XMP_Node*>(t), p, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|  16.0k|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  337|  16.0k|		}
  338|  19.9k|		if ( xmpNode != 0 ) break;	// Exit the loop, we found a live XMP node.
  ------------------
  |  Branch (338:8): [True: 19.9k, False: 0]
  ------------------
  339|       |
  340|      0|		info.currPos->visitStage = kIter_VisitChildren;	// Make AdvanceIterPos move to the next sibling.
  341|      0|		info.currPos->children.clear();
  342|      0|		info.currPos->qualifiers.clear();
  343|      0|		AdvanceIterPos ( info );
  344|       |
  345|      0|	}
  346|       |
  347|  22.5k|	if ( info.currPos == info.endPos ) return 0;
  ------------------
  |  Branch (347:7): [True: 2.59k, False: 19.9k]
  ------------------
  348|       |	
  349|       |	// -------------------------------------------------------------------------------------------
  350|       |	// Now we've got the iteration node and corresponding XMP node. Add the iteration children for
  351|       |	// structs and arrays. The children of schema were added when the iterator was constructed.
  352|       |
  353|  19.9k|	XMP_Assert ( info.currPos->visitStage == kIter_BeforeVisit );
  ------------------
  |  |  142|  19.9k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  354|       |
  355|  19.9k|	if ( info.currPos->visitStage == kIter_BeforeVisit ) {
  ------------------
  |  Branch (355:7): [True: 19.9k, False: 0]
  ------------------
  356|  19.9k|		if ( (! isSchemaNode) && (! (info.options & kXMP_IterJustChildren)) ) {
  ------------------
  |  Branch (356:8): [True: 16.0k, False: 3.91k]
  |  Branch (356:28): [True: 16.0k, False: 0]
  ------------------
  357|  16.0k|			AddNodeOffspring ( info, *info.currPos, xmpNode );
  358|  16.0k|		}
  359|  19.9k|		info.currPos->visitStage = kIter_VisitSelf;
  360|  19.9k|	}
  361|       |	
  362|  19.9k|	return xmpNode;
  363|       |
  364|  22.5k|}	// GetNextXMPNode
XMPIterator.cpp:_ZL13SetCurrSchemaR8IterInfoRNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  192|  5.94k|{
  193|       |
  194|  5.94k|	info.currSchema = schemaName;
  195|       |	#if 0	// *** XMP_DebugBuild
  196|       |		info._schemaPtr = info.currSchema.c_str();
  197|       |	#endif
  198|       |
  199|  5.94k|}	// SetCurrSchema
XMPIterator.cpp:_ZL14AdvanceIterPosR8IterInfo:
  212|  19.7k|{
  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|  45.6k|	while ( true ) {
  ------------------
  |  Branch (220:10): [True: 45.6k, Folded]
  ------------------
  221|       |	
  222|  45.6k|		if ( info.currPos == info.endPos ) {
  ------------------
  |  Branch (222:8): [True: 8.89k, False: 36.7k]
  ------------------
  223|       |		
  224|       |			// ------------------------------------------------------------------------------------
  225|       |			// At the end of a set of siblings, move up to an ancestor. We've either just finished
  226|       |			// the qualifiers and will move to the children, or have just finished the children and
  227|       |			// will move on to the next sibling.
  228|       |			
  229|  8.89k|			if ( info.ancestors.empty() ) break;	// We're at the end of the schema list.
  ------------------
  |  Branch (229:9): [True: 2.59k, False: 6.30k]
  ------------------
  230|       |
  231|  6.30k|			IterPosPair & parent = info.ancestors.back();
  232|  6.30k|			info.currPos = parent.first;
  233|  6.30k|			info.endPos  = parent.second;
  234|  6.30k|			info.ancestors.pop_back();
  235|       |			
  236|       |			#if TraceIterators
  237|       |				printf ( "    Moved up to %s, stage = %s\n",
  238|       |				         info.currPos->fullPath.c_str(), sStageNames[info.currPos->visitStage] );
  239|       |			#endif
  240|       |		
  241|  36.7k|		} else {
  242|       |			
  243|       |			// -------------------------------------------------------------------------------------------
  244|       |			// Decide what to do with this iteration node based on its state. Don't use a switch statement,
  245|       |			// some of the cases want to break from the loop. A break in a switch just exits the case.
  246|       |			
  247|       |			#if TraceIterators
  248|       |				printf ( "    Moving from %s, stage = %s\n",
  249|       |				         info.currPos->fullPath.c_str(), sStageNames[info.currPos->visitStage] );
  250|       |			#endif
  251|       |			
  252|  36.7k|			if ( info.currPos->visitStage == kIter_BeforeVisit ) {		// Visit this node now.
  ------------------
  |  Branch (252:9): [True: 10.7k, False: 26.0k]
  ------------------
  253|  10.7k|				if ( info.currPos->options & kXMP_SchemaNode ) SetCurrSchema ( info, info.currPos->fullPath );
  ------------------
  |  Branch (253:10): [True: 2.02k, False: 8.68k]
  ------------------
  254|  10.7k|				break;
  255|  10.7k|			}
  256|       |
  257|  26.0k|			if ( info.currPos->visitStage == kIter_VisitSelf ) {		// Just finished visiting the value portion.
  ------------------
  |  Branch (257:9): [True: 19.7k, False: 6.30k]
  ------------------
  258|  19.7k|				info.currPos->visitStage = kIter_VisitQualifiers;		// Start visiting the qualifiers.
  259|  19.7k|				if ( ! info.currPos->qualifiers.empty() ) {
  ------------------
  |  Branch (259:10): [True: 289, False: 19.4k]
  ------------------
  260|    289|					info.ancestors.push_back ( IterPosPair ( info.currPos, info.endPos ) );
  261|    289|					info.endPos  = info.currPos->qualifiers.end();		// ! Set the parent's endPos before changing currPos!
  262|    289|					info.currPos = info.currPos->qualifiers.begin();
  263|    289|					break;
  264|    289|				}
  265|  19.7k|			}
  266|       |
  267|  25.7k|			if ( info.currPos->visitStage == kIter_VisitQualifiers ) {	// Just finished visiting the qualifiers.
  ------------------
  |  Branch (267:9): [True: 19.7k, False: 6.01k]
  ------------------
  268|  19.7k|				info.currPos->qualifiers.clear();
  269|  19.7k|				info.currPos->visitStage = kIter_VisitChildren;			// Start visiting the children.
  270|  19.7k|				if ( ! info.currPos->children.empty() ) {
  ------------------
  |  Branch (270:10): [True: 6.17k, False: 13.6k]
  ------------------
  271|  6.17k|					info.ancestors.push_back ( IterPosPair ( info.currPos, info.endPos ) );
  272|  6.17k|					info.endPos  = info.currPos->children.end();		// ! Set the parent's endPos before changing currPos!
  273|  6.17k|					info.currPos = info.currPos->children.begin();
  274|  6.17k|					break;
  275|  6.17k|				}
  276|  19.7k|			}
  277|       |
  278|  19.6k|			if ( info.currPos->visitStage == kIter_VisitChildren ) {	// Just finished visiting the children.
  ------------------
  |  Branch (278:9): [True: 19.6k, False: 0]
  ------------------
  279|  19.6k|				info.currPos->children.clear();
  280|  19.6k|				++info.currPos;											// Move to the next sibling.
  281|  19.6k|				continue;
  282|  19.6k|			}
  283|       |			
  284|       |			#if TraceIterators
  285|       |				if ( info.currPos != info.endPos ) {
  286|       |					printf ( "    Moved to %s, stage = %s\n",
  287|       |					         info.currPos->fullPath.c_str(), sStageNames[info.currPos->visitStage] );
  288|       |				}
  289|       |			#endif
  290|       |			
  291|  19.6k|		}
  292|       |
  293|  45.6k|	}	// Loop to find the next node.
  294|       |	
  295|  19.7k|	XMP_Assert ( (info.currPos == info.endPos) || (info.currPos->visitStage == kIter_BeforeVisit) );
  ------------------
  |  |  142|  19.7k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  296|       |
  297|  19.7k|}	// AdvanceIterPos

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

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

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

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

_ZN7XMPMetaC2Ev:
  588|  3.00k|XMPMeta::XMPMeta() : clientRefs(0), prevTkVer(0), tree(XMP_Node(0,"",0)), xmlParser(0)
  589|  3.00k|{
  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.00k|}	// XMPMeta
_ZN7XMPMetaD2Ev:
  599|  3.00k|{
  600|       |	#if XMP_TraceCTorDTor
  601|       |		printf ( "Destruct XMPMeta @ %.8X\n", this );
  602|       |	#endif
  603|       |
  604|  3.00k|	XMP_Assert ( this->clientRefs <= 0 );
  ------------------
  |  |  142|  3.00k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  605|  3.00k|	if ( xmlParser != 0 ) delete ( xmlParser );
  ------------------
  |  Branch (605:7): [True: 0, False: 3.00k]
  ------------------
  606|  3.00k|	xmlParser = 0;
  607|       |
  608|  3.00k|}	// ~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|  33.6k|{
  845|  33.6k|	UNUSED(options);
  846|       |
  847|       |    #if TraceXMPLocking
  848|       |    	fprintf ( xmpOut, "  Unlocking XMP toolkit, count = %d\n", sLockCount ); fflush ( xmpOut );
  849|       |	#endif
  850|  33.6k|    --sLockCount;
  851|  33.6k|    XMP_Assert ( sLockCount == 0 );
  ------------------
  |  |  142|  33.6k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  852|  33.6k|	XMP_ExitCriticalRegion ( sXMPCoreLock );
  853|       |
  854|  33.6k|}	// Unlock
_ZNK7XMPMeta12UnlockObjectEj:
  863|    214|{
  864|    214|	UNUSED(options);
  865|       |
  866|    214|	XMPMeta::Unlock ( 0 );
  867|       |
  868|    214|}	// UnlockObject
_ZN7XMPMeta17RegisterNamespaceEPKcS1_:
 1041|  9.28k|{
 1042|  9.28k|	if ( (*namespaceURI == 0) || (*prefix == 0) ) {
  ------------------
  |  Branch (1042:7): [True: 0, False: 9.28k]
  |  Branch (1042:31): [True: 0, False: 9.28k]
  ------------------
 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|  9.28k|	XMP_VarString	nsURI ( namespaceURI );
 1047|  9.28k|	XMP_VarString	prfix ( prefix );
 1048|  9.28k|	if ( prfix[prfix.size()-1] != ':' ) prfix += ':';
  ------------------
  |  Branch (1048:7): [True: 9.28k, False: 0]
  ------------------
 1049|  9.28k|	VerifySimpleXMLName ( prefix, prefix+prfix.size()-1 );	// Exclude the colon.
 1050|       |	
 1051|       |        // Set the new namespace in both maps.
 1052|  9.28k|        (*sNamespaceURIToPrefixMap)[nsURI] = prfix;
 1053|  9.28k|        (*sNamespacePrefixToURIMap)[prfix] = nsURI;
 1054|       |	
 1055|  9.28k|}	// RegisterNamespace
_ZN7XMPMeta18GetNamespacePrefixEPKcPS1_Pj:
 1066|  48.5k|{
 1067|  48.5k|	bool	found	= false;
 1068|       |	
 1069|  48.5k|	XMP_Assert ( *namespaceURI != 0 ); 	// ! Enforced by wrapper.
  ------------------
  |  |  142|  48.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1070|  48.5k|	XMP_Assert ( (namespacePrefix != 0) && (prefixSize != 0) );	// ! Enforced by wrapper.
  ------------------
  |  |  142|  48.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1071|       |
 1072|  48.5k|	XMP_VarString    nsURI ( namespaceURI );
 1073|  48.5k|	XMP_StringMapPos uriPos	= sNamespaceURIToPrefixMap->find ( nsURI );
 1074|       |	
 1075|  48.5k|	if ( uriPos != sNamespaceURIToPrefixMap->end() ) {
  ------------------
  |  Branch (1075:7): [True: 48.5k, False: 3]
  ------------------
 1076|  48.5k|		*namespacePrefix = uriPos->second.c_str();
 1077|  48.5k|		*prefixSize = uriPos->second.size();
 1078|  48.5k|		found = true;
 1079|  48.5k|	}
 1080|       |	
 1081|  48.5k|	return found;
 1082|       |	
 1083|  48.5k|}	// GetNamespacePrefix
_ZN7XMPMeta15DeleteNamespaceEPKc:
 1126|     16|{
 1127|     16|	XMP_StringMapPos uriPos = sNamespaceURIToPrefixMap->find ( namespaceURI );
 1128|     16|	if ( uriPos == sNamespaceURIToPrefixMap->end() ) return;
  ------------------
  |  Branch (1128:7): [True: 3, False: 13]
  ------------------
 1129|       |
 1130|     13|	XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( uriPos->second );
 1131|     13|	if ( prefixPos == sNamespacePrefixToURIMap->end() ) return;
  ------------------
  |  Branch (1131:7): [True: 0, False: 13]
  ------------------
 1132|       |	
 1133|     13|	sNamespaceURIToPrefixMap->erase ( uriPos );
 1134|     13|	sNamespacePrefixToURIMap->erase ( prefixPos );
 1135|       |
 1136|     13|}	// DeleteNamespace
_ZNK7XMPMeta15CountArrayItemsEPKcS1_:
 1510|    912|{
 1511|    912|	XMP_Assert ( (schemaNS != 0) && (arrayName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|    912|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1512|       |
 1513|    912|	XMP_ExpandedXPath	expPath;
 1514|    912|	ExpandXPath ( schemaNS, arrayName, &expPath );
 1515|       |	
 1516|    912|	const XMP_Node * arrayNode = FindConstNode ( &tree, expPath );
  ------------------
  |  |  301|    912|#define FindConstNode(t,p)		FindNode ( const_cast<XMP_Node*>(t), p, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|    912|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
 1517|       |
 1518|    912|	if ( arrayNode == 0 ) return 0;
  ------------------
  |  Branch (1518:7): [True: 0, False: 912]
  ------------------
 1519|    912|	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: 912]
  ------------------
 1520|    912|	return arrayNode->children.size();
 1521|       |	
 1522|    912|}	// CountArrayItems

_ZN8XMPUtils10InitializeEv:
  640|      1|{
  641|      1|	sComposedPath	= new XMP_VarString();
  642|      1|	sConvertedValue = new XMP_VarString();
  643|      1|	sBase64Str		= new XMP_VarString();
  644|      1|	sCatenatedItems = new XMP_VarString();
  645|      1|	sStandardXMP    = new XMP_VarString();
  646|      1|	sExtendedXMP    = new XMP_VarString();
  647|      1|	sExtendedDigest = new XMP_VarString();
  648|       |
  649|       |	#if XMP_MacBuild && __MWERKS__
  650|       |		LookupTimeProcs();
  651|       |	#endif
  652|       |
  653|      1|	return true;
  654|       |
  655|      1|}	// Initialize
_ZN8XMPUtils9TerminateEv:
  666|      1|{
  667|      1|	EliminateGlobal ( sComposedPath );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  668|      1|	EliminateGlobal ( sConvertedValue );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  669|      1|	EliminateGlobal ( sBase64Str );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  670|      1|	EliminateGlobal ( sCatenatedItems );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  671|      1|	EliminateGlobal ( sStandardXMP );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  672|      1|	EliminateGlobal ( sExtendedXMP );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  673|      1|	EliminateGlobal ( sExtendedDigest );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  674|       |
  675|      1|	return;
  676|       |
  677|      1|}	// Terminate
_ZN8XMPUtils20ComposeQualifierPathEPKcS1_S1_S1_PS1_Pj:
  790|     64|{
  791|     64|	XMP_Assert ( (schemaNS != 0) && (qualNS != 0) );		// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  792|     64|	XMP_Assert ( (*propName != 0) && (*qualName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  793|     64|	XMP_Assert ( (fullPath != 0) && (pathSize != 0) );		// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  794|       |
  795|     64|	XMP_ExpandedXPath expPath;	// Just for side effects to check namespace and basic path.
  796|     64|	ExpandXPath ( schemaNS, propName, &expPath );
  797|       |
  798|     64|	XMP_ExpandedXPath qualPath;
  799|     64|	ExpandXPath ( qualNS, qualName, &qualPath );
  800|     64|	if ( qualPath.size() != 2 ) XMP_Throw ( "The qualifier name must be simple", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (800:7): [True: 0, False: 64]
  ------------------
  801|       |
  802|     64|	XMP_StringLen reserveLen = strlen(propName) + qualPath[kRootPropStep].step.size() + 2;
  803|       |
  804|     64|	sComposedPath->erase();
  805|     64|	sComposedPath->reserve ( reserveLen );
  806|     64|	*sComposedPath = propName;
  807|     64|	*sComposedPath += "/?";
  808|     64|	*sComposedPath += qualPath[kRootPropStep].step;
  809|       |
  810|     64|	*fullPath = sComposedPath->c_str();
  811|     64|	*pathSize = sComposedPath->size();
  812|       |
  813|     64|}	// ComposeQualifierPath
_ZN8XMPUtils13ConvertToDateEPKcP12XMP_DateTime:
 1293|    155|{
 1294|    155|	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: 155]
  |  Branch (1294:26): [True: 1, False: 154]
  ------------------
 1295|       |
 1296|    154|	size_t	 pos = 0;
 1297|    154|	XMP_Int32 temp;
 1298|       |
 1299|    154|	XMP_Assert ( sizeof(*binValue) == sizeof(XMP_DateTime) );
  ------------------
  |  |  142|    154|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1300|    154|	(void) memset ( binValue, 0, sizeof(*binValue) );	// AUDIT: Safe, using sizeof destination.
 1301|       |
 1302|    154|	bool timeOnly = ( (strValue[0] == 'T') ||
  ------------------
  |  Branch (1302:20): [True: 63, False: 91]
  ------------------
 1303|     91|					  ((strlen(strValue) >= 2) && (strValue[1] == ':')) ||
  ------------------
  |  Branch (1303:9): [True: 89, False: 2]
  |  Branch (1303:36): [True: 21, False: 68]
  ------------------
 1304|     70|					  ((strlen(strValue) >= 3) && (strValue[2] == ':')) );
  ------------------
  |  Branch (1304:9): [True: 67, False: 3]
  |  Branch (1304:36): [True: 1, False: 66]
  ------------------
 1305|       |
 1306|    154|	if ( ! timeOnly ) {
  ------------------
  |  Branch (1306:7): [True: 69, False: 85]
  ------------------
 1307|       |
 1308|     69|		if ( strValue[0] == '-' ) pos = 1;
  ------------------
  |  Branch (1308:8): [True: 38, False: 31]
  ------------------
 1309|       |
 1310|     69|		temp = GatherInt ( strValue, &pos, "Invalid year in date string" ); // Extract the year.
 1311|     69|		if ( (strValue[pos] != 0) && (strValue[pos] != '-') ) XMP_Throw ( "Invalid date string, after year", kXMPErr_BadParam );
  ------------------
  |  |  199|      5|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1311:8): [True: 46, False: 23]
  |  Branch (1311:32): [True: 5, False: 41]
  ------------------
 1312|     64|		if ( strValue[0] == '-' ) temp = -temp;
  ------------------
  |  Branch (1312:8): [True: 31, False: 33]
  ------------------
 1313|     64|		binValue->year = temp;
 1314|     64|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1314:8): [True: 14, False: 50]
  ------------------
 1315|       |
 1316|     50|		++pos;
 1317|     50|		temp = GatherInt ( strValue, &pos, "Invalid month in date string" );	// Extract the month.
 1318|     50|		if ( (temp < 1) || (temp > 12) ) XMP_Throw ( "Month is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      7|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1318:8): [True: 18, False: 32]
  |  Branch (1318:22): [True: 4, False: 28]
  ------------------
 1319|     43|		if ( (strValue[pos] != 0) && (strValue[pos] != '-') ) XMP_Throw ( "Invalid date string, after month", kXMPErr_BadParam );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1319:8): [True: 16, False: 27]
  |  Branch (1319:32): [True: 1, False: 15]
  ------------------
 1320|     42|		binValue->month = temp;
 1321|     42|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1321:8): [True: 12, False: 30]
  ------------------
 1322|       |
 1323|     30|		++pos;
 1324|     30|		temp = GatherInt ( strValue, &pos, "Invalid day in date string" );	// Extract the day.
 1325|     30|		if ( (temp < 1) || (temp > 31) ) XMP_Throw ( "Day is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      7|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1325:8): [True: 21, False: 9]
  |  Branch (1325:22): [True: 4, False: 5]
  ------------------
 1326|     23|		if ( (strValue[pos] != 0) && (strValue[pos] != 'T') ) XMP_Throw ( "Invalid date string, after day", kXMPErr_BadParam );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1326:8): [True: 2, False: 21]
  |  Branch (1326:32): [True: 1, False: 1]
  ------------------
 1327|     22|		binValue->day = temp;
 1328|     22|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1328:8): [True: 3, False: 19]
  ------------------
 1329|       |
 1330|       |		// Allow year, month, and day to all be zero; implies the date portion is missing.
 1331|     19|		if ( (binValue->year != 0) || (binValue->month != 0) || (binValue->day != 0) ) {
  ------------------
  |  Branch (1331:8): [True: 19, False: 0]
  |  Branch (1331:33): [True: 0, False: 0]
  |  Branch (1331:59): [True: 0, False: 0]
  ------------------
 1332|       |			// Temporary fix for bug 1269463, silently fix out of range month or day.
 1333|       |			// if ( (binValue->month < 1) || (binValue->month > 12) ) XMP_Throw ( "Month is out of range", kXMPErr_BadParam );
 1334|       |			// if ( (binValue->day < 1) || (binValue->day > 31) ) XMP_Throw ( "Day is out of range", kXMPErr_BadParam );
 1335|      1|			if ( binValue->month < 1 ) binValue->month = 1;
  ------------------
  |  Branch (1335:9): [True: 0, False: 1]
  ------------------
 1336|      1|			if ( binValue->month > 12 ) binValue->month = 12;
  ------------------
  |  Branch (1336:9): [True: 0, False: 1]
  ------------------
 1337|      1|			if ( binValue->day < 1 ) binValue->day = 1;
  ------------------
  |  Branch (1337:9): [True: 0, False: 1]
  ------------------
 1338|      1|			if ( binValue->day > 31 ) binValue->day = 31;
  ------------------
  |  Branch (1338:9): [True: 0, False: 1]
  ------------------
 1339|      1|		}
 1340|       |
 1341|     19|	}
 1342|       |
 1343|    104|	if ( strValue[pos] == 'T' ) {
  ------------------
  |  Branch (1343:7): [True: 64, False: 40]
  ------------------
 1344|     64|		++pos;
 1345|     64|	} else if ( ! timeOnly ) {
  ------------------
  |  Branch (1345:14): [True: 0, False: 40]
  ------------------
 1346|      0|		XMP_Throw ( "Invalid date string, missing 'T' after date", kXMPErr_BadParam );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1347|      0|	}
 1348|       |
 1349|    104|	temp = GatherInt ( strValue, &pos, "Invalid hour in date string" ); // Extract the hour.
 1350|    104|	if ( strValue[pos] != ':' ) XMP_Throw ( "Invalid date string, after hour", kXMPErr_BadParam );
  ------------------
  |  |  199|      2|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1350:7): [True: 2, False: 102]
  ------------------
 1351|    102|	if ( temp < 0 || temp > 23 ) temp = 23;	// *** 1269463: XMP_Throw ( "Hour is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1351:7): [True: 23, False: 79]
  |  Branch (1351:19): [True: 44, False: 35]
  ------------------
 1352|    102|	binValue->hour = temp;
 1353|       |	// Don't check for done, we have to work up to the time zone.
 1354|       |
 1355|    102|	++pos;
 1356|    102|	temp = GatherInt ( strValue, &pos, "Invalid minute in date string" );	// And the minute.
 1357|    102|	if ( (strValue[pos] != ':') && (strValue[pos] != 'Z') &&
  ------------------
  |  Branch (1357:7): [True: 31, False: 71]
  |  Branch (1357:33): [True: 29, False: 2]
  ------------------
 1358|    100|		 (strValue[pos] != '+') && (strValue[pos] != '-') && (strValue[pos] != 0) ) XMP_Throw ( "Invalid date string, after minute", kXMPErr_BadParam );
  ------------------
  |  |  199|      2|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1358:4): [True: 20, False: 9]
  |  Branch (1358:30): [True: 10, False: 10]
  |  Branch (1358:56): [True: 2, False: 8]
  ------------------
 1359|    100|	if ( temp < 0 || temp > 59 ) temp = 59;	// *** 1269463: XMP_Throw ( "Minute is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1359:7): [True: 27, False: 73]
  |  Branch (1359:19): [True: 42, False: 31]
  ------------------
 1360|    100|	binValue->minute = temp;
 1361|       |	// Don't check for done, we have to work up to the time zone.
 1362|       |
 1363|    100|	if ( strValue[pos] == ':' ) {
  ------------------
  |  Branch (1363:7): [True: 44, False: 56]
  ------------------
 1364|       |
 1365|     44|		++pos;
 1366|     44|		temp = GatherInt ( strValue, &pos, "Invalid whole seconds in date string" );	// Extract the whole seconds.
 1367|     44|		if ( (strValue[pos] != '.') && (strValue[pos] != 'Z') &&
  ------------------
  |  Branch (1367:8): [True: 14, False: 30]
  |  Branch (1367:34): [True: 13, False: 1]
  ------------------
 1368|     13|			 (strValue[pos] != '+') && (strValue[pos] != '-') && (strValue[pos] != 0) ) {
  ------------------
  |  Branch (1368:5): [True: 11, False: 2]
  |  Branch (1368:31): [True: 7, False: 4]
  |  Branch (1368:57): [True: 3, False: 4]
  ------------------
 1369|      3|			XMP_Throw ( "Invalid date string, after whole seconds", kXMPErr_BadParam );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1370|      0|		}
 1371|     41|		if ( temp < 0 || temp > 59 ) temp = 59;	// *** 1269463: XMP_Throw ( "Whole second is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1371:8): [True: 3, False: 38]
  |  Branch (1371:20): [True: 6, False: 32]
  ------------------
 1372|     41|		binValue->second = temp;
 1373|       |		// Don't check for done, we have to work up to the time zone.
 1374|       |
 1375|     41|		if ( strValue[pos] == '.' ) {
  ------------------
  |  Branch (1375:8): [True: 27, False: 14]
  ------------------
 1376|       |
 1377|     27|			++pos;
 1378|     27|			size_t digits = pos;	// Will be the number of digits later.
 1379|       |
 1380|     27|			temp = GatherInt ( strValue, &pos, "Invalid fractional seconds in date string" );	// Extract the fractional seconds.
 1381|     27|			if ( (strValue[pos] != 'Z') && (strValue[pos] != '+') && (strValue[pos] != '-') && (strValue[pos] != 0) ) {
  ------------------
  |  Branch (1381:9): [True: 23, False: 4]
  |  Branch (1381:35): [True: 20, False: 3]
  |  Branch (1381:61): [True: 17, False: 3]
  |  Branch (1381:87): [True: 3, False: 14]
  ------------------
 1382|      3|				XMP_Throw ( "Invalid date string, after fractional second", kXMPErr_BadParam );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1383|      0|			}
 1384|       |
 1385|     24|			digits = pos - digits;
 1386|    569|			for ( ; digits > 9; --digits ) temp = temp / 10;
  ------------------
  |  Branch (1386:12): [True: 545, False: 24]
  ------------------
 1387|     48|			for ( ; digits < 9; ++digits ) temp = temp * 10;
  ------------------
  |  Branch (1387:12): [True: 24, False: 24]
  ------------------
 1388|       |
 1389|     24|			if ( temp < 0 || temp >= 1000*1000*1000 ) XMP_Throw ( "Fractional second is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1389:9): [True: 4, False: 20]
  |  Branch (1389:21): [True: 0, False: 20]
  ------------------
 1390|     24|			binValue->nanoSecond = temp;
 1391|       |			// Don't check for done, we have to work up to the time zone.
 1392|       |
 1393|     24|		}
 1394|       |
 1395|     41|	}
 1396|       |
 1397|     94|	if ( strValue[pos] == 'Z' ) {
  ------------------
  |  Branch (1397:7): [True: 3, False: 91]
  ------------------
 1398|       |
 1399|      3|		++pos;
 1400|       |
 1401|     91|	} else if ( strValue[pos] != 0 ) {
  ------------------
  |  Branch (1401:14): [True: 31, False: 60]
  ------------------
 1402|       |
 1403|     31|		if ( strValue[pos] == '+' ) {
  ------------------
  |  Branch (1403:8): [True: 14, False: 17]
  ------------------
 1404|     14|			binValue->tzSign = kXMP_TimeEastOfUTC;
 1405|     17|		} else if ( strValue[pos] == '-' ) {
  ------------------
  |  Branch (1405:15): [True: 17, False: 0]
  ------------------
 1406|     17|			binValue->tzSign = kXMP_TimeWestOfUTC;
 1407|     17|		} 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|     31|		++pos;
 1412|     31|		temp = GatherInt ( strValue, &pos, "Invalid time zone hour in date string" );	// Extract the time zone hour.
 1413|     31|		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: 25]
  ------------------
 1414|     25|		if ( temp < 0 || temp > 23 ) XMP_Throw ( "Time zone hour is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1414:8): [True: 5, False: 20]
  |  Branch (1414:20): [True: 3, False: 17]
  ------------------
 1415|     22|		binValue->tzHour = temp;
 1416|       |
 1417|     22|		++pos;
 1418|     22|		temp = GatherInt ( strValue, &pos, "Invalid time zone minute in date string" ); // Extract the time zone minute.
 1419|     22|		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: 8, False: 14]
  |  Branch (1419:20): [True: 3, False: 11]
  ------------------
 1420|     19|		binValue->tzMinute = temp;
 1421|       |
 1422|     60|	} else {
 1423|       |
 1424|     60|		XMPUtils::SetTimeZone( binValue );
 1425|       |
 1426|     60|	}
 1427|       |
 1428|     82|	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: 74]
  ------------------
 1429|       |
 1430|     74|}	// ConvertToDate
_ZN8XMPUtils11SetTimeZoneEP12XMP_DateTime:
 1946|     87|{
 1947|     87|	XMP_Assert ( xmpTime != 0 );	// ! Enforced by wrapper.
  ------------------
  |  |  142|     87|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1948|       |
 1949|     87|	if ( (xmpTime->tzSign != 0) || (xmpTime->tzHour != 0) || (xmpTime->tzMinute != 0) ) {
  ------------------
  |  Branch (1949:7): [True: 0, False: 87]
  |  Branch (1949:33): [True: 0, False: 87]
  |  Branch (1949:59): [True: 0, False: 87]
  ------------------
 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|     87|	ansi_tt ttTime;
 1956|     87|	ansi_tm tmLocal, tmUTC;
 1957|       |
 1958|     87|	if ( (xmpTime->year == 0) && (xmpTime->month == 0) && (xmpTime->day == 0) ) {
  ------------------
  |  Branch (1958:7): [True: 56, False: 31]
  |  Branch (1958:31): [True: 55, False: 1]
  |  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|     32|		if (xmpTime->year < std::numeric_limits<decltype(tmLocal.tm_year)>::min() + 1900) {
  ------------------
  |  Branch (1963:7): [True: 0, False: 32]
  ------------------
 1964|      0|			XMP_Throw ( "Invalid year", kXMPErr_BadParam);
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1965|     32|		} else if (xmpTime->year > std::numeric_limits<decltype(tmLocal.tm_year)>::max()) {
  ------------------
  |  Branch (1965:14): [True: 0, False: 32]
  ------------------
 1966|      0|			XMP_Throw ( "Invalid year", kXMPErr_BadParam);
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1967|     32|		} else {
 1968|     32|			tmLocal.tm_year = xmpTime->year - 1900;
 1969|     32|		}
 1970|     32|		tmLocal.tm_mon	 = xmpTime->month - 1;
 1971|     32|		tmLocal.tm_mday	 = xmpTime->day;
 1972|     32|	}
 1973|       |
 1974|     87|	tmLocal.tm_hour = xmpTime->hour;
 1975|     87|	tmLocal.tm_min = xmpTime->minute;
 1976|     87|	tmLocal.tm_sec = xmpTime->second;
 1977|     87|	tmLocal.tm_isdst = -1;	// Don't know if daylight time is in effect.
 1978|       |
 1979|     87|	ttTime = ansi_mktime ( &tmLocal );
  ------------------
  |  |   70|     87|	#define ansi_mktime		mktime
  ------------------
 1980|     87|	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: 87]
  ------------------
 1981|       |
 1982|       |	// Convert back to a localized ansi_tm time and get the corresponding UTC ansi_tm time.
 1983|       |
 1984|     87|	ansi_localtime ( &ttTime, &tmLocal );
  ------------------
  |  |   74|     87|	#define ansi_localtime	localtime_r
  ------------------
 1985|     87|	ansi_gmtime ( &ttTime, &tmUTC );
  ------------------
  |  |   73|     87|	#define ansi_gmtime		gmtime_r
  ------------------
 1986|       |
 1987|       |	// Get the offset direction and amount.
 1988|       |
 1989|     87|	ansi_tm tmx = tmLocal;	// ! Note that mktime updates the ansi_tm parameter, messing up difftime!
 1990|     87|	ansi_tm tmy = tmUTC;
 1991|     87|	tmx.tm_isdst = tmy.tm_isdst = 0;
 1992|     87|	ansi_tt ttx = ansi_mktime ( &tmx );
  ------------------
  |  |   70|     87|	#define ansi_mktime		mktime
  ------------------
 1993|     87|	ansi_tt tty = ansi_mktime ( &tmy );
  ------------------
  |  |   70|     87|	#define ansi_mktime		mktime
  ------------------
 1994|     87|	double diffSecs;
 1995|       |
 1996|     87|	if ( (ttx != -1) && (tty != -1) ) {
  ------------------
  |  Branch (1996:7): [True: 87, False: 0]
  |  Branch (1996:22): [True: 87, False: 0]
  ------------------
 1997|     87|		diffSecs = ansi_difftime ( ttx, tty );
  ------------------
  |  |   71|     87|	#define ansi_difftime	difftime
  ------------------
 1998|     87|	} 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|     87|	if ( diffSecs > 0.0 ) {
  ------------------
  |  Branch (2017:7): [True: 0, False: 87]
  ------------------
 2018|      0|		xmpTime->tzSign = kXMP_TimeEastOfUTC;
 2019|     87|	} else if ( diffSecs == 0.0 ) {
  ------------------
  |  Branch (2019:14): [True: 87, False: 0]
  ------------------
 2020|     87|		xmpTime->tzSign = kXMP_TimeIsUTC;
 2021|     87|	} else {
 2022|      0|		xmpTime->tzSign = kXMP_TimeWestOfUTC;
 2023|      0|		diffSecs = -diffSecs;
 2024|      0|	}
 2025|     87|	xmpTime->tzHour = XMP_Int32 ( diffSecs / 3600.0 );
 2026|     87|	xmpTime->tzMinute = XMP_Int32 ( (diffSecs / 60.0) - (xmpTime->tzHour * 60.0) );
 2027|       |
 2028|       |	// *** Save the tm_isdst flag in a qualifier?
 2029|       |
 2030|     87|	XMP_Assert ( (0 <= xmpTime->tzHour) && (xmpTime->tzHour <= 23) );
  ------------------
  |  |  142|     87|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2031|     87|	XMP_Assert ( (0 <= xmpTime->tzMinute) && (xmpTime->tzMinute <= 59) );
  ------------------
  |  |  142|     87|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2032|     87|	XMP_Assert ( (-1 <= xmpTime->tzSign) && (xmpTime->tzSign <= +1) );
  ------------------
  |  |  142|     87|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2033|     87|	XMP_Assert ( (xmpTime->tzSign == 0) ? ((xmpTime->tzHour == 0) && (xmpTime->tzMinute == 0)) :
  ------------------
  |  |  142|     87|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2034|     87|										  ((xmpTime->tzHour != 0) || (xmpTime->tzMinute != 0)) );
 2035|       |
 2036|     87|}	// SetTimeZone
_ZN8XMPUtils16ConvertToUTCTimeEP12XMP_DateTime:
 2045|     61|{
 2046|     61|	XMP_Assert ( time != 0 );	// ! Enforced by wrapper.
  ------------------
  |  |  142|     61|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2047|       |
 2048|     61|	XMP_Assert ( (0 <= time->tzHour) && (time->tzHour <= 23) );
  ------------------
  |  |  142|     61|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2049|     61|	XMP_Assert ( (0 <= time->tzMinute) && (time->tzMinute <= 59) );
  ------------------
  |  |  142|     61|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2050|     61|	XMP_Assert ( (-1 <= time->tzSign) && (time->tzSign <= +1) );
  ------------------
  |  |  142|     61|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2051|     61|	XMP_Assert ( (time->tzSign == 0) ? ((time->tzHour == 0) && (time->tzMinute == 0)) :
  ------------------
  |  |  142|     61|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2052|     61|									   ((time->tzHour != 0) || (time->tzMinute != 0)) );
 2053|       |
 2054|     61|	if ( time->tzSign == kXMP_TimeEastOfUTC ) {
  ------------------
  |  Branch (2054:7): [True: 3, False: 58]
  ------------------
 2055|       |		// We are before (east of) GMT, subtract the offset from the time.
 2056|      3|		time->hour -= time->tzHour;
 2057|      3|		time->minute -= time->tzMinute;
 2058|     58|	} else if ( time->tzSign == kXMP_TimeWestOfUTC ) {
  ------------------
  |  Branch (2058:14): [True: 3, False: 55]
  ------------------
 2059|       |		// We are behind (west of) GMT, add the offset to the time.
 2060|      3|		time->hour += time->tzHour;
 2061|      3|		time->minute += time->tzMinute;
 2062|      3|	}
 2063|       |
 2064|     61|	AdjustTimeOverflow ( time );
 2065|     61|	time->tzSign = time->tzHour = time->tzMinute = 0;
 2066|       |
 2067|     61|}	// ConvertToUTCTime
_ZN8XMPUtils18ConvertToLocalTimeEP12XMP_DateTime:
 2076|     61|{
 2077|     61|	XMP_Assert ( time != 0 );	// ! Enforced by wrapper.
  ------------------
  |  |  142|     61|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2078|       |
 2079|     61|	XMP_Assert ( (0 <= time->tzHour) && (time->tzHour <= 23) );
  ------------------
  |  |  142|     61|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2080|     61|	XMP_Assert ( (0 <= time->tzMinute) && (time->tzMinute <= 59) );
  ------------------
  |  |  142|     61|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2081|     61|	XMP_Assert ( (-1 <= time->tzSign) && (time->tzSign <= +1) );
  ------------------
  |  |  142|     61|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2082|     61|	XMP_Assert ( (time->tzSign == 0) ? ((time->tzHour == 0) && (time->tzMinute == 0)) :
  ------------------
  |  |  142|     61|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2083|     61|									   ((time->tzHour != 0) || (time->tzMinute != 0)) );
 2084|       |
 2085|     61|	ConvertToUTCTime ( time );	// The existing time zone might not be the local one.
 2086|     61|	SetTimeZone ( time );		// Fill in the local timezone offset, then adjust the time.
 2087|       |
 2088|     61|	if ( time->tzSign > 0 ) {
  ------------------
  |  Branch (2088:7): [True: 0, False: 61]
  ------------------
 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|     61|	} else if ( time->tzSign < 0 ) {
  ------------------
  |  Branch (2092:14): [True: 0, False: 61]
  ------------------
 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|     61|	AdjustTimeOverflow ( time );
 2099|       |
 2100|     61|}	// ConvertToLocalTime
XMPUtils.cpp:_ZL9GatherIntPKcPmS0_:
  368|    409|{
  369|    409|	size_t	 pos   = *_pos;
  370|    409|	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|    409|	const XMP_Int32 tens_upperbound = std::numeric_limits<XMP_Int32>::max() / 10;
  378|    409|	const XMP_Int32 ones_upperbound = std::numeric_limits<XMP_Int32>::max() % 10;
  379|       |
  380|  6.32k|	for ( char ch = strValue[pos]; ('0' <= ch) && (ch <= '9'); ++pos, ch = strValue[pos] ) {
  ------------------
  |  Branch (380:33): [True: 6.12k, False: 205]
  |  Branch (380:48): [True: 5.94k, False: 181]
  ------------------
  381|  5.94k|		const XMP_Int32 digit = ch - '0';
  382|  5.94k|		if (value >= tens_upperbound) {
  ------------------
  |  Branch (382:7): [True: 45, False: 5.89k]
  ------------------
  383|     45|			if (value > tens_upperbound || digit > ones_upperbound) {
  ------------------
  |  Branch (383:8): [True: 19, False: 26]
  |  Branch (383:35): [True: 4, False: 22]
  ------------------
  384|     23|				XMP_Throw ( errMsg, kXMPErr_BadParam );
  ------------------
  |  |  199|     23|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  385|      0|			}
  386|     45|		}
  387|  5.91k|		value = (value * 10) + digit;
  388|  5.91k|	}
  389|       |
  390|    386|	if ( pos == *_pos ) XMP_Throw ( errMsg, kXMPErr_BadParam );
  ------------------
  |  |  199|     19|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (390:7): [True: 19, False: 367]
  ------------------
  391|    367|	*_pos = pos;
  392|    367|	return value;
  393|       |
  394|    386|}	// GatherInt
XMPUtils.cpp:_ZL18AdjustTimeOverflowP12XMP_DateTime:
  214|    122|{
  215|    122|	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|    122|	if ( (time->year != 0) || (time->month != 0) || (time->day != 0) ) {
  ------------------
  |  Branch (225:7): [True: 59, False: 63]
  |  Branch (225:28): [True: 1, False: 62]
  |  Branch (225:50): [True: 0, False: 62]
  ------------------
  226|       |
  227|     73|		while ( time->month < 1 ) {
  ------------------
  |  Branch (227:11): [True: 13, False: 60]
  ------------------
  228|     13|			time->year -= 1;
  229|     13|			time->month += 12;
  230|     13|		}
  231|       |
  232|     60|		while ( time->month > 12 ) {
  ------------------
  |  Branch (232:11): [True: 0, False: 60]
  ------------------
  233|      0|			time->year += 1;
  234|      0|			time->month -= 12;
  235|      0|		}
  236|       |
  237|     85|		while ( time->day < 1 ) {
  ------------------
  |  Branch (237:11): [True: 25, False: 60]
  ------------------
  238|     25|			time->month -= 1;
  239|     25|			if ( time->month < 1 ) {	// ! Keep the months in range for indexing daysInMonth!
  ------------------
  |  Branch (239:9): [True: 2, False: 23]
  ------------------
  240|      2|				time->year -= 1;
  241|      2|				time->month += 12;
  242|      2|			}
  243|     25|			time->day += DaysInMonth ( time->year, time->month );	// ! Decrement month before so index here is right!
  244|     25|		}
  245|       |
  246|     63|		while ( time->day > DaysInMonth ( time->year, time->month ) ) {
  ------------------
  |  Branch (246:11): [True: 3, False: 60]
  ------------------
  247|      3|			time->day -= DaysInMonth ( time->year, time->month );	// ! Increment month after so index here is right!
  248|      3|			time->month += 1;
  249|      3|			if ( time->month > 12 ) {
  ------------------
  |  Branch (249:9): [True: 0, False: 3]
  ------------------
  250|      0|				time->year += 1;
  251|      0|				time->month -= 12;
  252|      0|			}
  253|      3|		}
  254|       |
  255|     60|	}
  256|       |
  257|    123|	while ( time->hour < 0 ) {
  ------------------
  |  Branch (257:10): [True: 1, False: 122]
  ------------------
  258|      1|		time->day -= 1;
  259|      1|		time->hour += 24;
  260|      1|	}
  261|       |
  262|    123|	while ( time->hour >= 24 ) {
  ------------------
  |  Branch (262:10): [True: 1, False: 122]
  ------------------
  263|      1|		time->day += 1;
  264|      1|		time->hour -= 24;
  265|      1|	}
  266|       |
  267|    125|	while ( time->minute < 0 ) {
  ------------------
  |  Branch (267:10): [True: 3, False: 122]
  ------------------
  268|      3|		time->hour -= 1;
  269|      3|		time->minute += 60;
  270|      3|	}
  271|       |
  272|    124|	while ( time->minute >= 60 ) {
  ------------------
  |  Branch (272:10): [True: 2, False: 122]
  ------------------
  273|      2|		time->hour += 1;
  274|      2|		time->minute -= 60;
  275|      2|	}
  276|       |
  277|    122|	while ( time->second < 0 ) {
  ------------------
  |  Branch (277:10): [True: 0, False: 122]
  ------------------
  278|      0|		time->minute -= 1;
  279|      0|		time->second += 60;
  280|      0|	}
  281|       |
  282|    122|	while ( time->second >= 60 ) {
  ------------------
  |  Branch (282:10): [True: 0, False: 122]
  ------------------
  283|      0|		time->minute += 1;
  284|      0|		time->second -= 60;
  285|      0|	}
  286|       |
  287|    122|	while ( time->nanoSecond < 0 ) {
  ------------------
  |  Branch (287:10): [True: 0, False: 122]
  ------------------
  288|      0|		time->second -= 1;
  289|      0|		time->nanoSecond += kBillion;
  290|      0|	}
  291|       |
  292|    122|	while ( time->nanoSecond >= kBillion ) {
  ------------------
  |  Branch (292:10): [True: 0, False: 122]
  ------------------
  293|      0|		time->second += 1;
  294|      0|		time->nanoSecond -= kBillion;
  295|      0|	}
  296|       |
  297|    122|	while ( time->second < 0 ) {
  ------------------
  |  Branch (297:10): [True: 0, False: 122]
  ------------------
  298|      0|		time->minute -= 1;
  299|      0|		time->second += 60;
  300|      0|	}
  301|       |
  302|    122|	while ( time->second >= 60 ) {
  ------------------
  |  Branch (302:10): [True: 0, False: 122]
  ------------------
  303|      0|		time->minute += 1;
  304|      0|		time->second -= 60;
  305|      0|	}
  306|       |
  307|    122|	while ( time->minute < 0 ) {
  ------------------
  |  Branch (307:10): [True: 0, False: 122]
  ------------------
  308|      0|		time->hour -= 1;
  309|      0|		time->minute += 60;
  310|      0|	}
  311|       |
  312|    122|	while ( time->minute >= 60 ) {
  ------------------
  |  Branch (312:10): [True: 0, False: 122]
  ------------------
  313|      0|		time->hour += 1;
  314|      0|		time->minute -= 60;
  315|      0|	}
  316|       |
  317|    123|	while ( time->hour < 0 ) {
  ------------------
  |  Branch (317:10): [True: 1, False: 122]
  ------------------
  318|      1|		time->day -= 1;
  319|      1|		time->hour += 24;
  320|      1|	}
  321|       |
  322|    123|	while ( time->hour >= 24 ) {
  ------------------
  |  Branch (322:10): [True: 1, False: 122]
  ------------------
  323|      1|		time->day += 1;
  324|      1|		time->hour -= 24;
  325|      1|	}
  326|       |
  327|    122|	if ( (time->year != 0) || (time->month != 0) || (time->day != 0) ) {
  ------------------
  |  Branch (327:7): [True: 58, False: 64]
  |  Branch (327:28): [True: 2, False: 62]
  |  Branch (327:50): [True: 4, False: 58]
  ------------------
  328|       |
  329|     68|		while ( time->month < 1 ) { // Make sure the months are OK first, for DaysInMonth.
  ------------------
  |  Branch (329:11): [True: 4, False: 64]
  ------------------
  330|      4|			time->year -= 1;
  331|      4|			time->month += 12;
  332|      4|		}
  333|       |
  334|     64|		while ( time->month > 12 ) {
  ------------------
  |  Branch (334:11): [True: 0, False: 64]
  ------------------
  335|      0|			time->year += 1;
  336|      0|			time->month -= 12;
  337|      0|		}
  338|       |
  339|     66|		while ( time->day < 1 ) {
  ------------------
  |  Branch (339:11): [True: 2, False: 64]
  ------------------
  340|      2|			time->month -= 1;
  341|      2|			if ( time->month < 1 ) {
  ------------------
  |  Branch (341:9): [True: 0, False: 2]
  ------------------
  342|      0|				time->year -= 1;
  343|      0|				time->month += 12;
  344|      0|			}
  345|      2|			time->day += DaysInMonth ( time->year, time->month );
  346|      2|		}
  347|       |
  348|     64|		while ( time->day > DaysInMonth ( time->year, time->month ) ) {
  ------------------
  |  Branch (348:11): [True: 0, False: 64]
  ------------------
  349|      0|			time->day -= DaysInMonth ( time->year, time->month );
  350|      0|			time->month += 1;
  351|      0|			if ( time->month > 12 ) {
  ------------------
  |  Branch (351:9): [True: 0, False: 0]
  ------------------
  352|      0|				time->year += 1;
  353|      0|				time->month -= 12;
  354|      0|			}
  355|      0|		}
  356|       |
  357|     64|	}
  358|       |
  359|    122|}	// AdjustTimeOverflow
XMPUtils.cpp:_ZL11DaysInMonthii:
  195|    157|{
  196|       |
  197|    157|	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|    157|	int days = daysInMonth [ month ];
  201|    157|	if ( (month == 2) && IsLeapYear ( year ) ) days += 1;
  ------------------
  |  Branch (201:7): [True: 56, False: 101]
  |  Branch (201:23): [True: 22, False: 34]
  ------------------
  202|       |
  203|    157|	return days;
  204|       |
  205|    157|}	// DaysInMonth
XMPUtils.cpp:_ZL10IsLeapYearl:
  176|     56|{
  177|       |	// This code uses the Gregorian calendar algorithm:
  178|       |	// https://en.wikipedia.org/wiki/Leap_year#Algorithm
  179|       |
  180|     56|	if ( (year % 4) != 0 ) return false;	// Not a multiple of 4.
  ------------------
  |  Branch (180:7): [True: 27, False: 29]
  ------------------
  181|     29|	if ( (year % 100) != 0 ) return true;	// A multiple of 4 but not a multiple of 100.
  ------------------
  |  Branch (181:7): [True: 17, False: 12]
  ------------------
  182|     12|	if ( (year % 400) == 0 ) return true;	// A multiple of 400.
  ------------------
  |  Branch (182:7): [True: 5, False: 7]
  ------------------
  183|       |
  184|      7|	return false;							// A multiple of 100 but not a multiple of 400.
  185|       |
  186|     12|}	// IsLeapYear

