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

_ZN5Exiv28AsfVideo7GUIDTagC2EjttNSt3__15arrayIhLm8EEE:
   82|    124|        data1_(data1), data2_(data2), data3_(data3), data4_(data4) {
   83|    124|    }
_ZNK5Exiv28AsfVideo12HeaderReader7getSizeEv:
  105|  1.46k|    [[nodiscard]] uint64_t getSize() const {
  106|  1.46k|      return size_;
  107|  1.46k|    }
_ZNK5Exiv28AsfVideo12HeaderReader16getRemainingSizeEv:
  109|    385|    [[nodiscard]] uint64_t getRemainingSize() const {
  110|    385|      return remaining_size_;
  111|    385|    }
_ZN5Exiv28AsfVideo12HeaderReader5getIdEv:
  113|  1.36k|    [[nodiscard]] DataBuf& getId() {
  114|  1.36k|      return IdBuf_;
  115|  1.36k|    }

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

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

_ZN5Exiv25ErrorC2INSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_9ErrorCodeERKT_:
  243|  2.66k|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|  2.66k|    setMsg(1);
  245|  2.66k|  }
_ZN5Exiv213toBasicStringIcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS2_IT_NS3_IS8_EENS5_IS8_EEEERKT0_:
  153|  2.66k|std::basic_string<charT> toBasicString(const T& arg) {
  154|  2.66k|  std::basic_ostringstream<charT> os;
  155|  2.66k|  os << arg;
  156|  2.66k|  return os.str();
  157|  2.66k|}
_ZN5Exiv213toBasicStringIcA4_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     80|std::basic_string<charT> toBasicString(const T& arg) {
  154|     80|  std::basic_ostringstream<charT> os;
  155|     80|  os << arg;
  156|     80|  return os.str();
  157|     80|}
_ZN5Exiv25ErrorC2IA10_cEENS_9ErrorCodeERKT_:
  243|     18|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     18|    setMsg(1);
  245|     18|  }
_ZN5Exiv213toBasicStringIcA10_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|}
_ZN5Exiv25ErrorC2IA5_cEENS_9ErrorCodeERKT_:
  243|  4.75k|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|  4.75k|    setMsg(1);
  245|  4.75k|  }
_ZN5Exiv213toBasicStringIcA5_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|  4.75k|std::basic_string<charT> toBasicString(const T& arg) {
  154|  4.75k|  std::basic_ostringstream<charT> os;
  155|  4.75k|  os << arg;
  156|  4.75k|  return os.str();
  157|  4.75k|}
_ZN5Exiv25ErrorC2IA4_cEENS_9ErrorCodeERKT_:
  243|     80|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     80|    setMsg(1);
  245|     80|  }
_ZN5Exiv25ErrorC2IPKcA6_cEENS_9ErrorCodeERKT_RKT0_:
  250|     17|      code_(code), arg1_(toBasicString<char>(arg1)), arg2_(toBasicString<char>(arg2)) {
  251|     17|    setMsg(2);
  252|     17|  }
_ZN5Exiv213toBasicStringIcPKcEENSt3__112basic_stringIT_NS3_11char_traitsIS5_EENS3_9allocatorIS5_EEEERKT0_:
  153|     38|std::basic_string<charT> toBasicString(const T& arg) {
  154|     38|  std::basic_ostringstream<charT> os;
  155|     38|  os << arg;
  156|     38|  return os.str();
  157|     38|}
_ZN5Exiv213toBasicStringIcA6_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     17|std::basic_string<charT> toBasicString(const T& arg) {
  154|     17|  std::basic_ostringstream<charT> os;
  155|     17|  os << arg;
  156|     17|  return os.str();
  157|     17|}
_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|     14|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     14|    setMsg(1);
  245|     14|  }
_ZN5Exiv213toBasicStringIcA61_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     14|std::basic_string<charT> toBasicString(const T& arg) {
  154|     14|  std::basic_ostringstream<charT> os;
  155|     14|  os << arg;
  156|     14|  return os.str();
  157|     14|}

_ZN5Exiv28ExifData5beginEv:
  438|  85.9k|  iterator begin() {
  439|  85.9k|    return exifMetadata_.begin();
  440|  85.9k|  }
_ZN5Exiv28ExifData3endEv:
  442|  5.21M|  iterator end() {
  443|  5.21M|    return exifMetadata_.end();
  444|  5.21M|  }
_ZNK5Exiv28ExifData5beginEv:
  455|  2.45k|  [[nodiscard]] const_iterator begin() const {
  456|  2.45k|    return exifMetadata_.begin();
  457|  2.45k|  }
_ZNK5Exiv28ExifData3endEv:
  459|   153k|  [[nodiscard]] const_iterator end() const {
  460|   153k|    return exifMetadata_.end();
  461|   153k|  }
_ZNK5Exiv28ExifData5emptyEv:
  468|  6.39k|  [[nodiscard]] bool empty() const {
  469|  6.39k|    return exifMetadata_.empty();
  470|  6.39k|  }
_ZN5Exiv210ExifParser6encodeERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ByteOrderERNS_8ExifDataE:
  564|  2.91k|  static void encode(Blob& blob, ByteOrder byteOrder, ExifData& exifData) {
  565|  2.91k|    encode(blob, nullptr, 0, byteOrder, exifData);
  566|  2.91k|  }

_ZNK5Exiv215ImageCtorParams6createEv:
   53|  5.85k|  bool create() const {
   54|  5.85k|    return create_;
   55|  5.85k|  }
_ZNK5Exiv215ImageCtorParams19max_recursion_depthEv:
   57|  33.1k|  size_t max_recursion_depth() const {
   58|  33.1k|    return max_recursion_depth_;
   59|  33.1k|  }
_ZNK5Exiv25Image17iccProfileDefinedEv:
  240|  1.19k|  [[nodiscard]] virtual bool iccProfileDefined() const {
  241|  1.19k|    return !iccProfile_.empty();
  242|  1.19k|  }
_ZN5Exiv25Image16setTypeSupportedENS_9ImageTypeEt:
  481|     64|  void setTypeSupported(ImageType imageType, uint16_t supportedMetadata) {
  482|     64|    imageType_ = imageType;
  483|     64|    supportedMetadata_ = supportedMetadata;
  484|     64|  }
_ZNK5Exiv25Image9imageTypeEv:
  487|  30.8k|  [[nodiscard]] ImageType imageType() const {
  488|  30.8k|    return imageType_;
  489|  30.8k|  }

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

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

_ZN5Exiv29MetadatumC2Ev:
  261|  45.4M|  Metadatum() = default;
_ZN5Exiv23KeyC2Ev:
   79|  67.6M|  Key() = default;
_ZN5Exiv23KeyC2ERKS0_:
   80|   557k|  Key(const Key&) = default;

_ZNK5Exiv212DecodeParams19max_recursion_depthEv:
   25|  44.7k|  size_t max_recursion_depth() const {
   26|  44.7k|    return max_recursion_depth_;
   27|  44.7k|  }

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

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

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

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

_ZN5Exiv27DataBuf5beginEv:
  158|  2.09M|  [[nodiscard]] auto begin() noexcept {
  159|  2.09M|    return pData_.begin();
  160|  2.09M|  }
_ZN5Exiv27DataBuf3endEv:
  162|  20.0k|  [[nodiscard]] auto end() noexcept {
  163|  20.0k|    return pData_.end();
  164|  20.0k|  }
_ZNK5Exiv27DataBuf5beginEv:
  166|  2.53k|  [[nodiscard]] auto begin() const noexcept {
  167|  2.53k|    return pData_.begin();
  168|  2.53k|  }
_ZNK5Exiv27DataBuf3endEv:
  170|  2.47k|  [[nodiscard]] auto end() const noexcept {
  171|  2.47k|    return pData_.end();
  172|  2.47k|  }
_ZNK5Exiv27DataBuf4sizeEv:
  174|  2.57M|  [[nodiscard]] size_t size() const {
  175|  2.57M|    return pData_.size();
  176|  2.57M|  }
_ZNK5Exiv27DataBuf5emptyEv:
  207|  18.2k|  [[nodiscard]] bool empty() const {
  208|  18.2k|    return pData_.empty();
  209|  18.2k|  }
_ZN5Exiv27DataBufC2Ev:
  126|  2.79M|  DataBuf() = default;
_ZN5Exiv27DataBufaSEOS0_:
  134|  2.21k|  DataBuf& operator=(DataBuf&& other) = default;
image.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_18RegistryENS_9ImageTypeELm30EEEPKT_RAT1__S5_RKT0_:
  460|  33.0k|const T* find(T (&src)[N], const K& key) {
  461|  33.0k|  static_assert(N > 0, "Passed zero length find");
  462|  33.0k|  auto rc = std::find(src, src + N, key);
  463|  33.0k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 0, False: 33.0k]
  ------------------
  464|  33.0k|}
_ZN5Exiv28toStringItEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  479|   109k|std::string toString(const T& arg) {
  480|   109k|  return toStringHelper(arg, std::is_integral<T>());
  481|   109k|}
_ZN5Exiv214toStringHelperItEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  468|   109k|std::string toStringHelper(const T& arg, std::true_type) {
  469|   109k|  return std::to_string(arg);
  470|   109k|}
_ZN5Exiv29getUShortIPKhEEtRKNS_5SliceIT_EENS_9ByteOrderE:
  240|  62.8M|uint16_t getUShort(const Slice<T>& buf, ByteOrder byteOrder) {
  241|  62.8M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (241:7): [True: 2.21M, False: 60.6M]
  ------------------
  242|  2.21M|    return static_cast<byte>(buf.at(1)) << 8 | static_cast<byte>(buf.at(0));
  243|  2.21M|  }
  244|  60.6M|  return static_cast<byte>(buf.at(0)) << 8 | static_cast<byte>(buf.at(1));
  245|  62.8M|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEhLm13EEEPKT_RAT1__S4_RKT0_:
  460|  75.4k|const T* find(T (&src)[N], const K& key) {
  461|  75.4k|  static_assert(N > 0, "Passed zero length find");
  462|  75.4k|  auto rc = std::find(src, src + N, key);
  463|  75.4k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 72.7k, False: 2.72k]
  ------------------
  464|  75.4k|}
types.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_113TypeInfoTableENS_6TypeIdELm24EEEPKT_RAT1__S5_RKT0_:
  460|  61.3M|const T* find(T (&src)[N], const K& key) {
  461|  61.3M|  static_assert(N > 0, "Passed zero length find");
  462|  61.3M|  auto rc = std::find(src, src + N, key);
  463|  61.3M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 5.23M, False: 56.1M]
  ------------------
  464|  61.3M|}
_ZN5Exiv28toStringIjEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  479|  6.82k|std::string toString(const T& arg) {
  480|  6.82k|  return toStringHelper(arg, std::is_integral<T>());
  481|  6.82k|}
_ZN5Exiv214toStringHelperIjEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  468|  6.82k|std::string toStringHelper(const T& arg, std::true_type) {
  469|  6.82k|  return std::to_string(arg);
  470|  6.82k|}
_ZN5Exiv28toStringINSt3__14pairIjjEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  479|    126|std::string toString(const T& arg) {
  480|    126|  return toStringHelper(arg, std::is_integral<T>());
  481|    126|}
_ZN5Exiv214toStringHelperINSt3__14pairIjjEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  473|    126|std::string toStringHelper(const T& arg, std::false_type) {
  474|    126|  std::ostringstream os;
  475|    126|  os << arg;
  476|    126|  return os.str();
  477|    126|}
_ZN5Exiv28toStringIsEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  479|  1.19k|std::string toString(const T& arg) {
  480|  1.19k|  return toStringHelper(arg, std::is_integral<T>());
  481|  1.19k|}
_ZN5Exiv214toStringHelperIsEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  468|  1.19k|std::string toStringHelper(const T& arg, std::true_type) {
  469|  1.19k|  return std::to_string(arg);
  470|  1.19k|}
_ZN5Exiv28toStringIiEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  479|   167k|std::string toString(const T& arg) {
  480|   167k|  return toStringHelper(arg, std::is_integral<T>());
  481|   167k|}
_ZN5Exiv214toStringHelperIiEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  468|   167k|std::string toStringHelper(const T& arg, std::true_type) {
  469|   167k|  return std::to_string(arg);
  470|   167k|}
_ZN5Exiv28toStringINSt3__14pairIiiEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  479|    378|std::string toString(const T& arg) {
  480|    378|  return toStringHelper(arg, std::is_integral<T>());
  481|    378|}
_ZN5Exiv214toStringHelperINSt3__14pairIiiEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  473|    378|std::string toStringHelper(const T& arg, std::false_type) {
  474|    378|  std::ostringstream os;
  475|    378|  os << arg;
  476|    378|  return os.str();
  477|    378|}
_ZN5Exiv28toStringIfEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  479|  1.69k|std::string toString(const T& arg) {
  480|  1.69k|  return toStringHelper(arg, std::is_integral<T>());
  481|  1.69k|}
_ZN5Exiv214toStringHelperIfEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  473|  1.69k|std::string toStringHelper(const T& arg, std::false_type) {
  474|  1.69k|  std::ostringstream os;
  475|  1.69k|  os << arg;
  476|  1.69k|  return os.str();
  477|  1.69k|}
_ZN5Exiv28toStringIdEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  479|   155k|std::string toString(const T& arg) {
  480|   155k|  return toStringHelper(arg, std::is_integral<T>());
  481|   155k|}
_ZN5Exiv214toStringHelperIdEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  473|   155k|std::string toStringHelper(const T& arg, std::false_type) {
  474|   155k|  std::ostringstream os;
  475|   155k|  os << arg;
  476|   155k|  return os.str();
  477|   155k|}
_ZN5Exiv28toStringImEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  479|  5.03k|std::string toString(const T& arg) {
  480|  5.03k|  return toStringHelper(arg, std::is_integral<T>());
  481|  5.03k|}
_ZN5Exiv214toStringHelperImEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  468|  5.03k|std::string toStringHelper(const T& arg, std::true_type) {
  469|  5.03k|  return std::to_string(arg);
  470|  5.03k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm4EEEPKT_RAT1__S4_RKT0_:
  460|  1.03k|const T* find(T (&src)[N], const K& key) {
  461|  1.03k|  static_assert(N > 0, "Passed zero length find");
  462|  1.03k|  auto rc = std::find(src, src + N, key);
  463|  1.03k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 580, False: 459]
  ------------------
  464|  1.03k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm6EEEPKT_RAT1__S4_RKT0_:
  460|    357|const T* find(T (&src)[N], const K& key) {
  461|    357|  static_assert(N > 0, "Passed zero length find");
  462|    357|  auto rc = std::find(src, src + N, key);
  463|    357|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 115, False: 242]
  ------------------
  464|    357|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm5EEEPKT_RAT1__S4_RKT0_:
  460|    377|const T* find(T (&src)[N], const K& key) {
  461|    377|  static_assert(N > 0, "Passed zero length find");
  462|    377|  auto rc = std::find(src, src + N, key);
  463|    377|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 271, False: 106]
  ------------------
  464|    377|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm198EEEPKT_RAT1__S4_RKT0_:
  460|  48.9k|const T* find(T (&src)[N], const K& key) {
  461|  48.9k|  static_assert(N > 0, "Passed zero length find");
  462|  48.9k|  auto rc = std::find(src, src + N, key);
  463|  48.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 688, False: 48.2k]
  ------------------
  464|  48.9k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm2EEEPKT_RAT1__S4_RKT0_:
  460|  1.25k|const T* find(T (&src)[N], const K& key) {
  461|  1.25k|  static_assert(N > 0, "Passed zero length find");
  462|  1.25k|  auto rc = std::find(src, src + N, key);
  463|  1.25k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 833, False: 422]
  ------------------
  464|  1.25k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm3EEEPKT_RAT1__S4_RKT0_:
  460|  3.68k|const T* find(T (&src)[N], const K& key) {
  461|  3.68k|  static_assert(N > 0, "Passed zero length find");
  462|  3.68k|  auto rc = std::find(src, src + N, key);
  463|  3.68k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 2.28k, False: 1.40k]
  ------------------
  464|  3.68k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm7EEEPKT_RAT1__S4_RKT0_:
  460|  2.43k|const T* find(T (&src)[N], const K& key) {
  461|  2.43k|  static_assert(N > 0, "Passed zero length find");
  462|  2.43k|  auto rc = std::find(src, src + N, key);
  463|  2.43k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 1.94k, False: 487]
  ------------------
  464|  2.43k|}
_ZN5Exiv28toStringIPKhEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_:
  479|  1.16k|std::string toString(const T& arg) {
  480|  1.16k|  return toStringHelper(arg, std::is_integral<T>());
  481|  1.16k|}
_ZN5Exiv214toStringHelperIPKhEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_NS3_17integral_constantIbLb0EEE:
  473|  1.16k|std::string toStringHelper(const T& arg, std::false_type) {
  474|  1.16k|  std::ostringstream os;
  475|  1.16k|  os << arg;
  476|  1.16k|  return os.str();
  477|  1.16k|}
_ZN5Exiv28toStringIlEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  479|    554|std::string toString(const T& arg) {
  480|    554|  return toStringHelper(arg, std::is_integral<T>());
  481|    554|}
_ZN5Exiv214toStringHelperIlEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  468|    554|std::string toStringHelper(const T& arg, std::true_type) {
  469|    554|  return std::to_string(arg);
  470|    554|}
_ZN5Exiv28toStringIPhEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKT_:
  479|   472k|std::string toString(const T& arg) {
  480|   472k|  return toStringHelper(arg, std::is_integral<T>());
  481|   472k|}
_ZN5Exiv214toStringHelperIPhEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKT_NS2_17integral_constantIbLb0EEE:
  473|   472k|std::string toStringHelper(const T& arg, std::false_type) {
  474|   472k|  std::ostringstream os;
  475|   472k|  os << arg;
  476|   472k|  return os.str();
  477|   472k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm6EEEPKT_RAT1__S4_RKT0_:
  460|    114|const T* find(T (&src)[N], const K& key) {
  461|    114|  static_assert(N > 0, "Passed zero length find");
  462|    114|  auto rc = std::find(src, src + N, key);
  463|    114|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 56, False: 58]
  ------------------
  464|    114|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm32EEEPKT_RAT1__SB_RKT0_:
  460|  2.18k|const T* find(T (&src)[N], const K& key) {
  461|  2.18k|  static_assert(N > 0, "Passed zero length find");
  462|  2.18k|  auto rc = std::find(src, src + N, key);
  463|  2.18k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 1.83k, False: 352]
  ------------------
  464|  2.18k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm61EEEPKT_RAT1__SB_RKT0_:
  460|  2.18k|const T* find(T (&src)[N], const K& key) {
  461|  2.18k|  static_assert(N > 0, "Passed zero length find");
  462|  2.18k|  auto rc = std::find(src, src + N, key);
  463|  2.18k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 1.98k, False: 206]
  ------------------
  464|  2.18k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm2EEEPKT_RAT1__SB_RKT0_:
  460|    580|const T* find(T (&src)[N], const K& key) {
  461|    580|  static_assert(N > 0, "Passed zero length find");
  462|    580|  auto rc = std::find(src, src + N, key);
  463|    580|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 517, False: 63]
  ------------------
  464|    580|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm41EEEPKT_RAT1__S4_RKT0_:
  460|   106k|const T* find(T (&src)[N], const K& key) {
  461|   106k|  static_assert(N > 0, "Passed zero length find");
  462|   106k|  auto rc = std::find(src, src + N, key);
  463|   106k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 98.2k, False: 8.38k]
  ------------------
  464|   106k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm3EEEPKT_RAT1__S4_RKT0_:
  460|  18.2k|const T* find(T (&src)[N], const K& key) {
  461|  18.2k|  static_assert(N > 0, "Passed zero length find");
  462|  18.2k|  auto rc = std::find(src, src + N, key);
  463|  18.2k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 8.38k, False: 9.87k]
  ------------------
  464|  18.2k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm6EEEPKT_RAT1__S4_RKT0_:
  460|  2.90k|const T* find(T (&src)[N], const K& key) {
  461|  2.90k|  static_assert(N > 0, "Passed zero length find");
  462|  2.90k|  auto rc = std::find(src, src + N, key);
  463|  2.90k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 2.30k, False: 606]
  ------------------
  464|  2.90k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm11EEEPKT_RAT1__S4_RKT0_:
  460|  2.89k|const T* find(T (&src)[N], const K& key) {
  461|  2.89k|  static_assert(N > 0, "Passed zero length find");
  462|  2.89k|  auto rc = std::find(src, src + N, key);
  463|  2.89k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 2.10k, False: 788]
  ------------------
  464|  2.89k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm2EEEPKT_RAT1__S4_RKT0_:
  460|    647|const T* find(T (&src)[N], const K& key) {
  461|    647|  static_assert(N > 0, "Passed zero length find");
  462|    647|  auto rc = std::find(src, src + N, key);
  463|    647|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 245, False: 402]
  ------------------
  464|    647|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm86EEEPKT_RAT1__SB_RKT0_:
  460|   144k|const T* find(T (&src)[N], const K& key) {
  461|   144k|  static_assert(N > 0, "Passed zero length find");
  462|   144k|  auto rc = std::find(src, src + N, key);
  463|   144k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 135k, False: 9.82k]
  ------------------
  464|   144k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm17EEEPKT_RAT1__SB_RKT0_:
  460|   108k|const T* find(T (&src)[N], const K& key) {
  461|   108k|  static_assert(N > 0, "Passed zero length find");
  462|   108k|  auto rc = std::find(src, src + N, key);
  463|   108k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 107k, False: 1.00k]
  ------------------
  464|   108k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEtLm31EEEPKT_RAT1__S4_RKT0_:
  460|    875|const T* find(T (&src)[N], const K& key) {
  461|    875|  static_assert(N > 0, "Passed zero length find");
  462|    875|  auto rc = std::find(src, src + N, key);
  463|    875|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 200, False: 675]
  ------------------
  464|    875|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm16EEEPKT_RAT1__SB_RKT0_:
  460|    543|const T* find(T (&src)[N], const K& key) {
  461|    543|  static_assert(N > 0, "Passed zero length find");
  462|    543|  auto rc = std::find(src, src + N, key);
  463|    543|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 174, False: 369]
  ------------------
  464|    543|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm6EEEPKT_RAT1__S4_RKT0_:
  460|  20.8k|const T* find(T (&src)[N], const K& key) {
  461|  20.8k|  static_assert(N > 0, "Passed zero length find");
  462|  20.8k|  auto rc = std::find(src, src + N, key);
  463|  20.8k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 10.0k, False: 10.7k]
  ------------------
  464|  20.8k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm2EEEPKT_RAT1__S4_RKT0_:
  460|  32.6k|const T* find(T (&src)[N], const K& key) {
  461|  32.6k|  static_assert(N > 0, "Passed zero length find");
  462|  32.6k|  auto rc = std::find(src, src + N, key);
  463|  32.6k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 24.4k, False: 8.20k]
  ------------------
  464|  32.6k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm5EEEPKT_RAT1__S4_RKT0_:
  460|  18.3k|const T* find(T (&src)[N], const K& key) {
  461|  18.3k|  static_assert(N > 0, "Passed zero length find");
  462|  18.3k|  auto rc = std::find(src, src + N, key);
  463|  18.3k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 9.87k, False: 8.46k]
  ------------------
  464|  18.3k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm4EEEPKT_RAT1__S4_RKT0_:
  460|  20.3k|const T* find(T (&src)[N], const K& key) {
  461|  20.3k|  static_assert(N > 0, "Passed zero length find");
  462|  20.3k|  auto rc = std::find(src, src + N, key);
  463|  20.3k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 7.57k, False: 12.7k]
  ------------------
  464|  20.3k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm7EEEPKT_RAT1__S4_RKT0_:
  460|  11.2k|const T* find(T (&src)[N], const K& key) {
  461|  11.2k|  static_assert(N > 0, "Passed zero length find");
  462|  11.2k|  auto rc = std::find(src, src + N, key);
  463|  11.2k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 4.80k, False: 6.47k]
  ------------------
  464|  11.2k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm17EEEPKT_RAT1__S4_RKT0_:
  460|  2.76k|const T* find(T (&src)[N], const K& key) {
  461|  2.76k|  static_assert(N > 0, "Passed zero length find");
  462|  2.76k|  auto rc = std::find(src, src + N, key);
  463|  2.76k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 948, False: 1.82k]
  ------------------
  464|  2.76k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm8EEEPKT_RAT1__S4_RKT0_:
  460|  20.9k|const T* find(T (&src)[N], const K& key) {
  461|  20.9k|  static_assert(N > 0, "Passed zero length find");
  462|  20.9k|  auto rc = std::find(src, src + N, key);
  463|  20.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 10.9k, False: 9.96k]
  ------------------
  464|  20.9k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm3EEEPKT_RAT1__S4_RKT0_:
  460|  65.3k|const T* find(T (&src)[N], const K& key) {
  461|  65.3k|  static_assert(N > 0, "Passed zero length find");
  462|  65.3k|  auto rc = std::find(src, src + N, key);
  463|  65.3k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 40.5k, False: 24.7k]
  ------------------
  464|  65.3k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm11EEEPKT_RAT1__S4_RKT0_:
  460|  12.2k|const T* find(T (&src)[N], const K& key) {
  461|  12.2k|  static_assert(N > 0, "Passed zero length find");
  462|  12.2k|  auto rc = std::find(src, src + N, key);
  463|  12.2k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 4.31k, False: 7.90k]
  ------------------
  464|  12.2k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm25EEEPKT_RAT1__S4_RKT0_:
  460|  2.74k|const T* find(T (&src)[N], const K& key) {
  461|  2.74k|  static_assert(N > 0, "Passed zero length find");
  462|  2.74k|  auto rc = std::find(src, src + N, key);
  463|  2.74k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 478, False: 2.26k]
  ------------------
  464|  2.74k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm19EEEPKT_RAT1__S4_RKT0_:
  460|    540|const T* find(T (&src)[N], const K& key) {
  461|    540|  static_assert(N > 0, "Passed zero length find");
  462|    540|  auto rc = std::find(src, src + N, key);
  463|    540|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 298, False: 242]
  ------------------
  464|    540|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm81EEEPKT_RAT1__S4_RKT0_:
  460|    104|const T* find(T (&src)[N], const K& key) {
  461|    104|  static_assert(N > 0, "Passed zero length find");
  462|    104|  auto rc = std::find(src, src + N, key);
  463|    104|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 38, False: 66]
  ------------------
  464|    104|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm10EEEPKT_RAT1__S4_RKT0_:
  460|  18.5k|const T* find(T (&src)[N], const K& key) {
  461|  18.5k|  static_assert(N > 0, "Passed zero length find");
  462|  18.5k|  auto rc = std::find(src, src + N, key);
  463|  18.5k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 11.8k, False: 6.68k]
  ------------------
  464|  18.5k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm53EEEPKT_RAT1__S4_RKT0_:
  460|    148|const T* find(T (&src)[N], const K& key) {
  461|    148|  static_assert(N > 0, "Passed zero length find");
  462|    148|  auto rc = std::find(src, src + N, key);
  463|    148|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 36, False: 112]
  ------------------
  464|    148|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm18EEEPKT_RAT1__S4_RKT0_:
  460|  6.61k|const T* find(T (&src)[N], const K& key) {
  461|  6.61k|  static_assert(N > 0, "Passed zero length find");
  462|  6.61k|  auto rc = std::find(src, src + N, key);
  463|  6.61k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 3.02k, False: 3.58k]
  ------------------
  464|  6.61k|}
nikonmn_int.cpp:_ZN5Exiv24findIKZNS_8Internal15Nikon3MakerNote11printLensIdERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataERKNS3_12basic_stringIcS6_NS3_9allocatorIcEEEEE8FMntLenshLm579EEEPKT_RAT1__SN_RKT0_:
  460|     83|const T* find(T (&src)[N], const K& key) {
  461|     83|  static_assert(N > 0, "Passed zero length find");
  462|     83|  auto rc = std::find(src, src + N, key);
  463|     83|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 3, False: 80]
  ------------------
  464|     83|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm12EEEPKT_RAT1__S4_RKT0_:
  460|  5.65k|const T* find(T (&src)[N], const K& key) {
  461|  5.65k|  static_assert(N > 0, "Passed zero length find");
  462|  5.65k|  auto rc = std::find(src, src + N, key);
  463|  5.65k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 2.91k, False: 2.73k]
  ------------------
  464|  5.65k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm13EEEPKT_RAT1__S4_RKT0_:
  460|  8.64k|const T* find(T (&src)[N], const K& key) {
  461|  8.64k|  static_assert(N > 0, "Passed zero length find");
  462|  8.64k|  auto rc = std::find(src, src + N, key);
  463|  8.64k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 1.94k, False: 6.69k]
  ------------------
  464|  8.64k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm34EEEPKT_RAT1__S4_RKT0_:
  460|  1.91k|const T* find(T (&src)[N], const K& key) {
  461|  1.91k|  static_assert(N > 0, "Passed zero length find");
  462|  1.91k|  auto rc = std::find(src, src + N, key);
  463|  1.91k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 568, False: 1.34k]
  ------------------
  464|  1.91k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm16EEEPKT_RAT1__S4_RKT0_:
  460|  2.79k|const T* find(T (&src)[N], const K& key) {
  461|  2.79k|  static_assert(N > 0, "Passed zero length find");
  462|  2.79k|  auto rc = std::find(src, src + N, key);
  463|  2.79k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 760, False: 2.03k]
  ------------------
  464|  2.79k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm27EEEPKT_RAT1__S4_RKT0_:
  460|  4.08k|const T* find(T (&src)[N], const K& key) {
  461|  4.08k|  static_assert(N > 0, "Passed zero length find");
  462|  4.08k|  auto rc = std::find(src, src + N, key);
  463|  4.08k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 528, False: 3.56k]
  ------------------
  464|  4.08k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm9EEEPKT_RAT1__S4_RKT0_:
  460|  12.6k|const T* find(T (&src)[N], const K& key) {
  461|  12.6k|  static_assert(N > 0, "Passed zero length find");
  462|  12.6k|  auto rc = std::find(src, src + N, key);
  463|  12.6k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 5.23k, False: 7.44k]
  ------------------
  464|  12.6k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm32EEEPKT_RAT1__S4_RKT0_:
  460|  2.85k|const T* find(T (&src)[N], const K& key) {
  461|  2.85k|  static_assert(N > 0, "Passed zero length find");
  462|  2.85k|  auto rc = std::find(src, src + N, key);
  463|  2.85k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 378, False: 2.47k]
  ------------------
  464|  2.85k|}
_ZN5Exiv24findIKNS_9GroupInfoENS_5IfdIdELm126EEEPKT_RAT1__S4_RKT0_:
  460|  64.1M|const T* find(T (&src)[N], const K& key) {
  461|  64.1M|  static_assert(N > 0, "Passed zero length find");
  462|  64.1M|  auto rc = std::find(src, src + N, key);
  463|  64.1M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 0, False: 64.1M]
  ------------------
  464|  64.1M|}
_ZN5Exiv24findIKNS_9GroupInfoENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEELm126EEEPKT_RAT1__SA_RKT0_:
  460|  24.1M|const T* find(T (&src)[N], const K& key) {
  461|  24.1M|  static_assert(N > 0, "Passed zero length find");
  462|  24.1M|  auto rc = std::find(src, src + N, key);
  463|  24.1M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 0, False: 24.1M]
  ------------------
  464|  24.1M|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm1EEEPKT_RAT1__S4_RKT0_:
  460|    100|const T* find(T (&src)[N], const K& key) {
  461|    100|  static_assert(N > 0, "Passed zero length find");
  462|    100|  auto rc = std::find(src, src + N, key);
  463|    100|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 76, False: 24]
  ------------------
  464|    100|}
_ZN5Exiv24findIKNS_8Internal15TiffMappingInfoENS2_3KeyELm5EEEPKT_RAT1__S5_RKT0_:
  460|  23.5M|const T* find(T (&src)[N], const K& key) {
  461|  23.5M|  static_assert(N > 0, "Passed zero length find");
  462|  23.5M|  auto rc = std::find(src, src + N, key);
  463|  23.5M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 23.4M, False: 5.73k]
  ------------------
  464|  23.5M|}
_ZN5Exiv27DataBufC2EOS0_:
  132|  1.65k|  DataBuf(DataBuf&&) = default;
_ZN5Exiv24findIKNS_9XmpNsInfoENS1_2NsELm47EEEPKT_RAT1__S4_RKT0_:
  460|  13.3k|const T* find(T (&src)[N], const K& key) {
  461|  13.3k|  static_assert(N > 0, "Passed zero length find");
  462|  13.3k|  auto rc = std::find(src, src + N, key);
  463|  13.3k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 12.1k, False: 1.14k]
  ------------------
  464|  13.3k|}
_ZN5Exiv24findIKNS_9XmpNsInfoENS1_6PrefixELm47EEEPKT_RAT1__S4_RKT0_:
  460|   758k|const T* find(T (&src)[N], const K& key) {
  461|   758k|  static_assert(N > 0, "Passed zero length find");
  462|   758k|  auto rc = std::find(src, src + N, key);
  463|   758k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 6, False: 758k]
  ------------------
  464|   758k|}
properties.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_112XmpPrintInfoENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm67EEEPKT_RAT1__SB_RKT0_:
  460|  18.1k|const T* find(T (&src)[N], const K& key) {
  461|  18.1k|  static_assert(N > 0, "Passed zero length find");
  462|  18.1k|  auto rc = std::find(src, src + N, key);
  463|  18.1k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 18.1k, False: 0]
  ------------------
  464|  18.1k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm534EEEPKT_RAT1__S4_RKT0_:
  460|     29|const T* find(T (&src)[N], const K& key) {
  461|     29|  static_assert(N > 0, "Passed zero length find");
  462|     29|  auto rc = std::find(src, src + N, key);
  463|     29|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 0, False: 29]
  ------------------
  464|     29|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm357EEEPKT_RAT1__S4_RKT0_:
  460|    260|const T* find(T (&src)[N], const K& key) {
  461|    260|  static_assert(N > 0, "Passed zero length find");
  462|    260|  auto rc = std::find(src, src + N, key);
  463|    260|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 164, False: 96]
  ------------------
  464|    260|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm14EEEPKT_RAT1__S4_RKT0_:
  460|  8.42k|const T* find(T (&src)[N], const K& key) {
  461|  8.42k|  static_assert(N > 0, "Passed zero length find");
  462|  8.42k|  auto rc = std::find(src, src + N, key);
  463|  8.42k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 5.35k, False: 3.07k]
  ------------------
  464|  8.42k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm22EEEPKT_RAT1__S4_RKT0_:
  460|  2.90k|const T* find(T (&src)[N], const K& key) {
  461|  2.90k|  static_assert(N > 0, "Passed zero length find");
  462|  2.90k|  auto rc = std::find(src, src + N, key);
  463|  2.90k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 998, False: 1.90k]
  ------------------
  464|  2.90k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm71EEEPKT_RAT1__S4_RKT0_:
  460|  4.32k|const T* find(T (&src)[N], const K& key) {
  461|  4.32k|  static_assert(N > 0, "Passed zero length find");
  462|  4.32k|  auto rc = std::find(src, src + N, key);
  463|  4.32k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 622, False: 3.70k]
  ------------------
  464|  4.32k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm38EEEPKT_RAT1__S4_RKT0_:
  460|  5.17k|const T* find(T (&src)[N], const K& key) {
  461|  5.17k|  static_assert(N > 0, "Passed zero length find");
  462|  5.17k|  auto rc = std::find(src, src + N, key);
  463|  5.17k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 3.45k, False: 1.71k]
  ------------------
  464|  5.17k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm76EEEPKT_RAT1__S4_RKT0_:
  460|    156|const T* find(T (&src)[N], const K& key) {
  461|    156|  static_assert(N > 0, "Passed zero length find");
  462|    156|  auto rc = std::find(src, src + N, key);
  463|    156|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 110, False: 46]
  ------------------
  464|    156|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm35EEEPKT_RAT1__S4_RKT0_:
  460|    246|const T* find(T (&src)[N], const K& key) {
  461|    246|  static_assert(N > 0, "Passed zero length find");
  462|    246|  auto rc = std::find(src, src + N, key);
  463|    246|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 160, False: 86]
  ------------------
  464|    246|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEhLm3EEEPKT_RAT1__S4_RKT0_:
  460|    156|const T* find(T (&src)[N], const K& key) {
  461|    156|  static_assert(N > 0, "Passed zero length find");
  462|    156|  auto rc = std::find(src, src + N, key);
  463|    156|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 80, False: 76]
  ------------------
  464|    156|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm20EEEPKT_RAT1__S4_RKT0_:
  460|  1.63k|const T* find(T (&src)[N], const K& key) {
  461|  1.63k|  static_assert(N > 0, "Passed zero length find");
  462|  1.63k|  auto rc = std::find(src, src + N, key);
  463|  1.63k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 555, False: 1.07k]
  ------------------
  464|  1.63k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm33EEEPKT_RAT1__S4_RKT0_:
  460|  2.11k|const T* find(T (&src)[N], const K& key) {
  461|  2.11k|  static_assert(N > 0, "Passed zero length find");
  462|  2.11k|  auto rc = std::find(src, src + N, key);
  463|  2.11k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 364, False: 1.75k]
  ------------------
  464|  2.11k|}
_ZN5Exiv24findIKNS_8Internal14TiffMnRegistryENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEELm26EEEPKT_RAT1__S9_RKT0_:
  460|  37.4k|const T* find(T (&src)[N], const K& key) {
  461|  37.4k|  static_assert(N > 0, "Passed zero length find");
  462|  37.4k|  auto rc = std::find(src, src + N, key);
  463|  37.4k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 1.61k, False: 35.8k]
  ------------------
  464|  37.4k|}
_ZN5Exiv24findIKNS_8Internal14TiffMnRegistryENS_5IfdIdELm26EEEPKT_RAT1__S5_RKT0_:
  460|  5.89k|const T* find(T (&src)[N], const K& key) {
  461|  5.89k|  static_assert(N > 0, "Passed zero length find");
  462|  5.89k|  auto rc = std::find(src, src + N, key);
  463|  5.89k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 0, False: 5.89k]
  ------------------
  464|  5.89k|}
_ZN5Exiv24findIKNS_8Internal13NikonArrayIdxENS2_3KeyELm34EEEPKT_RAT1__S5_RKT0_:
  460|    645|const T* find(T (&src)[N], const K& key) {
  461|    645|  static_assert(N > 0, "Passed zero length find");
  462|    645|  auto rc = std::find(src, src + N, key);
  463|    645|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 62, False: 583]
  ------------------
  464|    645|}
_ZN5Exiv28stringToIjEET_RKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERb:
  495|     27|T stringTo(const std::string& s, bool& ok) {
  496|     27|  std::istringstream is(s);
  497|     27|  T tmp = T();
  498|     27|  ok = static_cast<bool>(is >> tmp);
  499|     27|  std::string rest;
  500|     27|  is >> std::skipws >> rest;
  501|     27|  if (!rest.empty())
  ------------------
  |  Branch (501:7): [True: 14, False: 13]
  ------------------
  502|     14|    ok = false;
  503|     27|  return tmp;
  504|     27|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm19EEEPKT_RAT1__SB_RKT0_:
  460|     70|const T* find(T (&src)[N], const K& key) {
  461|     70|  static_assert(N > 0, "Passed zero length find");
  462|     70|  auto rc = std::find(src, src + N, key);
  463|     70|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 63, False: 7]
  ------------------
  464|     70|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm205EEEPKT_RAT1__S4_RKT0_:
  460|  3.78k|const T* find(T (&src)[N], const K& key) {
  461|  3.78k|  static_assert(N > 0, "Passed zero length find");
  462|  3.78k|  auto rc = std::find(src, src + N, key);
  463|  3.78k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 614, False: 3.16k]
  ------------------
  464|  3.78k|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm5EEEPKT_RAT1__SB_RKT0_:
  460|    189|const T* find(T (&src)[N], const K& key) {
  461|    189|  static_assert(N > 0, "Passed zero length find");
  462|    189|  auto rc = std::find(src, src + N, key);
  463|    189|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 182, False: 7]
  ------------------
  464|    189|}
minoltamn_int.cpp:_ZN5Exiv24findIKZNS_8Internal22printMinoltaSonyLensIDERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEE9LensIdFctjLm6EEEPKT_RAT1__SG_RKT0_:
  460|  1.89k|const T* find(T (&src)[N], const K& key) {
  461|  1.89k|  static_assert(N > 0, "Passed zero length find");
  462|  1.89k|  auto rc = std::find(src, src + N, key);
  463|  1.89k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 621, False: 1.27k]
  ------------------
  464|  1.89k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm15EEEPKT_RAT1__S4_RKT0_:
  460|  3.33k|const T* find(T (&src)[N], const K& key) {
  461|  3.33k|  static_assert(N > 0, "Passed zero length find");
  462|  3.33k|  auto rc = std::find(src, src + N, key);
  463|  3.33k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 910, False: 2.42k]
  ------------------
  464|  3.33k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm45EEEPKT_RAT1__S4_RKT0_:
  460|  2.41k|const T* find(T (&src)[N], const K& key) {
  461|  2.41k|  static_assert(N > 0, "Passed zero length find");
  462|  2.41k|  auto rc = std::find(src, src + N, key);
  463|  2.41k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 244, False: 2.17k]
  ------------------
  464|  2.41k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm23EEEPKT_RAT1__S4_RKT0_:
  460|  1.37k|const T* find(T (&src)[N], const K& key) {
  461|  1.37k|  static_assert(N > 0, "Passed zero length find");
  462|  1.37k|  auto rc = std::find(src, src + N, key);
  463|  1.37k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 632, False: 740]
  ------------------
  464|  1.37k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm77EEEPKT_RAT1__S4_RKT0_:
  460|    366|const T* find(T (&src)[N], const K& key) {
  461|    366|  static_assert(N > 0, "Passed zero length find");
  462|    366|  auto rc = std::find(src, src + N, key);
  463|    366|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 112, False: 254]
  ------------------
  464|    366|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEmLm298EEEPKT_RAT1__S4_RKT0_:
  460|     61|const T* find(T (&src)[N], const K& key) {
  461|     61|  static_assert(N > 0, "Passed zero length find");
  462|     61|  auto rc = std::find(src, src + N, key);
  463|     61|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 0, False: 61]
  ------------------
  464|     61|}
pentaxmn_int.cpp:_ZN5Exiv24findIKZNS_8InternalL13printLensTypeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEE9LensIdFctjLm14EEEPKT_RAT1__SG_RKT0_:
  460|  2.25k|const T* find(T (&src)[N], const K& key) {
  461|  2.25k|  static_assert(N > 0, "Passed zero length find");
  462|  2.25k|  auto rc = std::find(src, src + N, key);
  463|  2.25k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 816, False: 1.43k]
  ------------------
  464|  2.25k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm298EEEPKT_RAT1__S4_RKT0_:
  460|    647|const T* find(T (&src)[N], const K& key) {
  461|    647|  static_assert(N > 0, "Passed zero length find");
  462|    647|  auto rc = std::find(src, src + N, key);
  463|    647|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 102, False: 545]
  ------------------
  464|    647|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm147EEEPKT_RAT1__S4_RKT0_:
  460|    198|const T* find(T (&src)[N], const K& key) {
  461|    198|  static_assert(N > 0, "Passed zero length find");
  462|    198|  auto rc = std::find(src, src + N, key);
  463|    198|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 184, False: 14]
  ------------------
  464|    198|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm79EEEPKT_RAT1__S4_RKT0_:
  460|    802|const T* find(T (&src)[N], const K& key) {
  461|    802|  static_assert(N > 0, "Passed zero length find");
  462|    802|  auto rc = std::find(src, src + N, key);
  463|    802|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 612, False: 190]
  ------------------
  464|    802|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm75EEEPKT_RAT1__S4_RKT0_:
  460|  2.23k|const T* find(T (&src)[N], const K& key) {
  461|  2.23k|  static_assert(N > 0, "Passed zero length find");
  462|  2.23k|  auto rc = std::find(src, src + N, key);
  463|  2.23k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 728, False: 1.50k]
  ------------------
  464|  2.23k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm7EEEPKT_RAT1__S4_RKT0_:
  460|  1.04k|const T* find(T (&src)[N], const K& key) {
  461|  1.04k|  static_assert(N > 0, "Passed zero length find");
  462|  1.04k|  auto rc = std::find(src, src + N, key);
  463|  1.04k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 298, False: 742]
  ------------------
  464|  1.04k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm71EEEPKT_RAT1__S4_RKT0_:
  460|  4.48k|const T* find(T (&src)[N], const K& key) {
  461|  4.48k|  static_assert(N > 0, "Passed zero length find");
  462|  4.48k|  auto rc = std::find(src, src + N, key);
  463|  4.48k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 490, False: 3.99k]
  ------------------
  464|  4.48k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm20EEEPKT_RAT1__S4_RKT0_:
  460|  2.35k|const T* find(T (&src)[N], const K& key) {
  461|  2.35k|  static_assert(N > 0, "Passed zero length find");
  462|  2.35k|  auto rc = std::find(src, src + N, key);
  463|  2.35k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 432, False: 1.92k]
  ------------------
  464|  2.35k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm2EEEPKT_RAT1__S4_RKT0_:
  460|    208|const T* find(T (&src)[N], const K& key) {
  461|    208|  static_assert(N > 0, "Passed zero length find");
  462|    208|  auto rc = std::find(src, src + N, key);
  463|    208|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 110, False: 98]
  ------------------
  464|    208|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm80EEEPKT_RAT1__S4_RKT0_:
  460|  1.07k|const T* find(T (&src)[N], const K& key) {
  461|  1.07k|  static_assert(N > 0, "Passed zero length find");
  462|  1.07k|  auto rc = std::find(src, src + N, key);
  463|  1.07k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 465, False: 607]
  ------------------
  464|  1.07k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm36EEEPKT_RAT1__S4_RKT0_:
  460|  1.44k|const T* find(T (&src)[N], const K& key) {
  461|  1.44k|  static_assert(N > 0, "Passed zero length find");
  462|  1.44k|  auto rc = std::find(src, src + N, key);
  463|  1.44k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 164, False: 1.28k]
  ------------------
  464|  1.44k|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm5EEEPKT_RAT1__SB_RKT0_:
  460|    866|const T* find(T (&src)[N], const K& key) {
  461|    866|  static_assert(N > 0, "Passed zero length find");
  462|    866|  auto rc = std::find(src, src + N, key);
  463|    866|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 480, False: 386]
  ------------------
  464|    866|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm30EEEPKT_RAT1__SB_RKT0_:
  460|    482|const T* find(T (&src)[N], const K& key) {
  461|    482|  static_assert(N > 0, "Passed zero length find");
  462|    482|  auto rc = std::find(src, src + N, key);
  463|    482|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 398, False: 84]
  ------------------
  464|    482|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm16EEEPKT_RAT1__SB_RKT0_:
  460|    428|const T* find(T (&src)[N], const K& key) {
  461|    428|  static_assert(N > 0, "Passed zero length find");
  462|    428|  auto rc = std::find(src, src + N, key);
  463|    428|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 318, False: 110]
  ------------------
  464|    428|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm115EEEPKT_RAT1__S4_RKT0_:
  460|  9.61k|const T* find(T (&src)[N], const K& key) {
  461|  9.61k|  static_assert(N > 0, "Passed zero length find");
  462|  9.61k|  auto rc = std::find(src, src + N, key);
  463|  9.61k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 828, False: 8.78k]
  ------------------
  464|  9.61k|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm19EEEPKT_RAT1__SB_RKT0_:
  460|    310|const T* find(T (&src)[N], const K& key) {
  461|    310|  static_assert(N > 0, "Passed zero length find");
  462|    310|  auto rc = std::find(src, src + N, key);
  463|    310|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 304, False: 6]
  ------------------
  464|    310|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm26EEEPKT_RAT1__S4_RKT0_:
  460|  2.99k|const T* find(T (&src)[N], const K& key) {
  461|  2.99k|  static_assert(N > 0, "Passed zero length find");
  462|  2.99k|  auto rc = std::find(src, src + N, key);
  463|  2.99k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 546, False: 2.44k]
  ------------------
  464|  2.99k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm31EEEPKT_RAT1__S4_RKT0_:
  460|  4.55k|const T* find(T (&src)[N], const K& key) {
  461|  4.55k|  static_assert(N > 0, "Passed zero length find");
  462|  4.55k|  auto rc = std::find(src, src + N, key);
  463|  4.55k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 1.11k, False: 3.44k]
  ------------------
  464|  4.55k|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm34EEEPKT_RAT1__SB_RKT0_:
  460|     52|const T* find(T (&src)[N], const K& key) {
  461|     52|  static_assert(N > 0, "Passed zero length find");
  462|     52|  auto rc = std::find(src, src + N, key);
  463|     52|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (463:10): [True: 46, False: 6]
  ------------------
  464|     52|}

_ZNK5Exiv25Value6typeIdEv:
   85|  74.9M|  TypeId typeId() const {
   86|  74.9M|    return type_;
   87|  74.9M|  }
_ZNK5Exiv25Value5cloneEv:
   93|  47.9M|  UniquePtr clone() const {
   94|  47.9M|    return UniquePtr(clone_());
   95|  47.9M|  }
_ZNK5Exiv25Value2okEv:
  181|  2.23k|  bool ok() const {
  182|  2.23k|    return ok_;
  183|  2.23k|  }
_ZNK5Exiv222LangAltValueComparatorclERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  795|    246|  bool operator()(const std::string& str1, const std::string& str2) const {
  796|    246|    if (str1.size() != str2.size())
  ------------------
  |  Branch (796:9): [True: 152, False: 94]
  ------------------
  797|    152|      return str1.size() > str2.size();
  798|       |
  799|     94|    auto f = [](unsigned char a, unsigned char b) { return std::tolower(a) > std::tolower(b); };
  800|     94|    return std::lexicographical_compare(str1.begin(), str1.end(), str2.begin(), str2.end(), f);
  801|    246|  }
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_5ValueE:
  242|   318k|inline std::ostream& operator<<(std::ostream& os, const Value& value) {
  243|   318k|  return value.write(os);
  244|   318k|}
_ZN5Exiv27getTypeItEENS_6TypeIdEv:
 1083|  15.0M|inline TypeId getType<uint16_t>() {
 1084|  15.0M|  return unsignedShort;
 1085|  15.0M|}
_ZN5Exiv27getTypeIjEENS_6TypeIdEv:
 1088|  29.3k|inline TypeId getType<uint32_t>() {
 1089|  29.3k|  return unsignedLong;
 1090|  29.3k|}
_ZN5Exiv27getTypeINSt3__14pairIjjEEEENS_6TypeIdEv:
 1093|  48.0k|inline TypeId getType<URational>() {
 1094|  48.0k|  return unsignedRational;
 1095|  48.0k|}
_ZN5Exiv27getTypeIsEENS_6TypeIdEv:
 1098|  1.10M|inline TypeId getType<int16_t>() {
 1099|  1.10M|  return signedShort;
 1100|  1.10M|}
_ZN5Exiv27getTypeIiEENS_6TypeIdEv:
 1103|   130k|inline TypeId getType<int32_t>() {
 1104|   130k|  return signedLong;
 1105|   130k|}
_ZN5Exiv27getTypeINSt3__14pairIiiEEEENS_6TypeIdEv:
 1108|  34.4k|inline TypeId getType<Rational>() {
 1109|  34.4k|  return signedRational;
 1110|  34.4k|}
_ZN5Exiv27getTypeIfEENS_6TypeIdEv:
 1113|  10.6k|inline TypeId getType<float>() {
 1114|  10.6k|  return tiffFloat;
 1115|  10.6k|}
_ZN5Exiv27getTypeIdEENS_6TypeIdEv:
 1118|  7.65k|inline TypeId getType<double>() {
 1119|  7.65k|  return tiffDouble;
 1120|  7.65k|}
_ZN5Exiv28getValueItEET_PKhNS_9ByteOrderE:
 1314|  16.6M|inline uint16_t getValue(const byte* buf, ByteOrder byteOrder) {
 1315|  16.6M|  return getUShort(buf, byteOrder);
 1316|  16.6M|}
_ZN5Exiv28getValueIjEET_PKhNS_9ByteOrderE:
 1319|  2.08M|inline uint32_t getValue(const byte* buf, ByteOrder byteOrder) {
 1320|  2.08M|  return getULong(buf, byteOrder);
 1321|  2.08M|}
_ZN5Exiv28getValueINSt3__14pairIjjEEEET_PKhNS_9ByteOrderE:
 1324|   365k|inline URational getValue(const byte* buf, ByteOrder byteOrder) {
 1325|   365k|  return getURational(buf, byteOrder);
 1326|   365k|}
_ZN5Exiv28getValueIsEET_PKhNS_9ByteOrderE:
 1329|  7.66M|inline int16_t getValue(const byte* buf, ByteOrder byteOrder) {
 1330|  7.66M|  return getShort(buf, byteOrder);
 1331|  7.66M|}
_ZN5Exiv28getValueIiEET_PKhNS_9ByteOrderE:
 1334|   247k|inline int32_t getValue(const byte* buf, ByteOrder byteOrder) {
 1335|   247k|  return getLong(buf, byteOrder);
 1336|   247k|}
_ZN5Exiv28getValueINSt3__14pairIiiEEEET_PKhNS_9ByteOrderE:
 1339|   491k|inline Rational getValue(const byte* buf, ByteOrder byteOrder) {
 1340|   491k|  return getRational(buf, byteOrder);
 1341|   491k|}
_ZN5Exiv28getValueIfEET_PKhNS_9ByteOrderE:
 1344|   130k|inline float getValue(const byte* buf, ByteOrder byteOrder) {
 1345|   130k|  return getFloat(buf, byteOrder);
 1346|   130k|}
_ZN5Exiv28getValueIdEET_PKhNS_9ByteOrderE:
 1349|  18.7k|inline double getValue(const byte* buf, ByteOrder byteOrder) {
 1350|  18.7k|  return getDouble(buf, byteOrder);
 1351|  18.7k|}
_ZN5Exiv26toDataItEEmPhT_NS_9ByteOrderE:
 1372|   765k|inline size_t toData(byte* buf, uint16_t t, ByteOrder byteOrder) {
 1373|   765k|  return us2Data(buf, t, byteOrder);
 1374|   765k|}
_ZN5Exiv26toDataIjEEmPhT_NS_9ByteOrderE:
 1380|   130k|inline size_t toData(byte* buf, uint32_t t, ByteOrder byteOrder) {
 1381|   130k|  return ul2Data(buf, t, byteOrder);
 1382|   130k|}
_ZN5Exiv26toDataINSt3__14pairIjjEEEEmPhT_NS_9ByteOrderE:
 1388|   293k|inline size_t toData(byte* buf, URational t, ByteOrder byteOrder) {
 1389|   293k|  return ur2Data(buf, t, byteOrder);
 1390|   293k|}
_ZN5Exiv26toDataIsEEmPhT_NS_9ByteOrderE:
 1396|   166k|inline size_t toData(byte* buf, int16_t t, ByteOrder byteOrder) {
 1397|   166k|  return s2Data(buf, t, byteOrder);
 1398|   166k|}
_ZN5Exiv26toDataIiEEmPhT_NS_9ByteOrderE:
 1404|  40.2k|inline size_t toData(byte* buf, int32_t t, ByteOrder byteOrder) {
 1405|  40.2k|  return l2Data(buf, t, byteOrder);
 1406|  40.2k|}
_ZN5Exiv26toDataINSt3__14pairIiiEEEEmPhT_NS_9ByteOrderE:
 1412|  37.3k|inline size_t toData(byte* buf, Rational t, ByteOrder byteOrder) {
 1413|  37.3k|  return r2Data(buf, t, byteOrder);
 1414|  37.3k|}
_ZN5Exiv26toDataIfEEmPhT_NS_9ByteOrderE:
 1420|   118k|inline size_t toData(byte* buf, float t, ByteOrder byteOrder) {
 1421|   118k|  return f2Data(buf, t, byteOrder);
 1422|   118k|}
_ZN5Exiv26toDataIdEEmPhT_NS_9ByteOrderE:
 1428|  59.9k|inline size_t toData(byte* buf, double t, ByteOrder byteOrder) {
 1429|  59.9k|  return d2Data(buf, t, byteOrder);
 1430|  59.9k|}
_ZNK5Exiv29ValueTypeIdE7toInt64Em:
 1548|  3.48k|inline int64_t ValueType<double>::toInt64(size_t n) const {
 1549|  3.48k|  return float_to_integer_helper<int64_t>(n);
 1550|  3.48k|}
_ZNK5Exiv29ValueTypeIdE8toUint32Em:
 1553|  1.68k|inline uint32_t ValueType<double>::toUint32(size_t n) const {
 1554|  1.68k|  return float_to_integer_helper<uint32_t>(n);
 1555|  1.68k|}
_ZNK5Exiv29ValueTypeIfE7toInt64Em:
 1558|  6.46k|inline int64_t ValueType<float>::toInt64(size_t n) const {
 1559|  6.46k|  return float_to_integer_helper<int64_t>(n);
 1560|  6.46k|}
_ZNK5Exiv29ValueTypeIfE8toUint32Em:
 1562|  4.57k|inline uint32_t ValueType<float>::toUint32(size_t n) const {
 1563|  4.57k|  return float_to_integer_helper<uint32_t>(n);
 1564|  4.57k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE7toInt64Em:
 1567|  73.7k|inline int64_t ValueType<Rational>::toInt64(size_t n) const {
 1568|  73.7k|  return rational_to_integer_helper<int64_t>(n);
 1569|  73.7k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8toUint32Em:
 1571|  33.3k|inline uint32_t ValueType<Rational>::toUint32(size_t n) const {
 1572|  33.3k|  return rational_to_integer_helper<uint32_t>(n);
 1573|  33.3k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE7toInt64Em:
 1576|  20.9k|inline int64_t ValueType<URational>::toInt64(size_t n) const {
 1577|  20.9k|  return rational_to_integer_helper<int64_t>(n);
 1578|  20.9k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8toUint32Em:
 1580|  3.39k|inline uint32_t ValueType<URational>::toUint32(size_t n) const {
 1581|  3.39k|  return rational_to_integer_helper<uint32_t>(n);
 1582|  3.39k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE7toFloatEm:
 1591|    501|inline float ValueType<Rational>::toFloat(size_t n) const {
 1592|    501|  ok_ = (value_.at(n).second != 0);
 1593|    501|  if (!ok_)
  ------------------
  |  Branch (1593:7): [True: 10, False: 491]
  ------------------
 1594|     10|    return 0.0f;
 1595|    491|  return static_cast<float>(value_.at(n).first) / value_.at(n).second;
 1596|    501|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE7toFloatEm:
 1599|  3.31k|inline float ValueType<URational>::toFloat(size_t n) const {
 1600|  3.31k|  ok_ = (value_.at(n).second != 0);
 1601|  3.31k|  if (!ok_)
  ------------------
  |  Branch (1601:7): [True: 76, False: 3.23k]
  ------------------
 1602|     76|    return 0.0f;
 1603|  3.23k|  return static_cast<float>(value_.at(n).first) / value_.at(n).second;
 1604|  3.31k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE10toRationalEm:
 1613|  3.82k|inline Rational ValueType<Rational>::toRational(size_t n) const {
 1614|  3.82k|  ok_ = true;
 1615|  3.82k|  return {value_.at(n).first, value_.at(n).second};
 1616|  3.82k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE10toRationalEm:
 1619|  14.4k|inline Rational ValueType<URational>::toRational(size_t n) const {
 1620|  14.4k|  ok_ = true;
 1621|  14.4k|  return {value_.at(n).first, value_.at(n).second};
 1622|  14.4k|}
_ZNK5Exiv29ValueTypeIfE10toRationalEm:
 1625|  3.53k|inline Rational ValueType<float>::toRational(size_t n) const {
 1626|  3.53k|  ok_ = true;
 1627|       |  // Warning: This is a very simple conversion, see floatToRationalCast()
 1628|  3.53k|  return floatToRationalCast(value_.at(n));
 1629|  3.53k|}
_ZNK5Exiv29ValueTypeIdE10toRationalEm:
 1632|  1.83k|inline Rational ValueType<double>::toRational(size_t n) const {
 1633|  1.83k|  ok_ = true;
 1634|       |  // Warning: This is a very simple conversion, see floatToRationalCast()
 1635|  1.83k|  return floatToRationalCast(static_cast<float>(value_.at(n)));
 1636|  1.83k|}
_ZNK5Exiv29ValueTypeIdE23float_to_integer_helperIlEET_m:
 1212|  3.48k|  I float_to_integer_helper(size_t n) const {
 1213|  3.48k|    const auto v = value_.at(n);
 1214|  3.48k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 3.05k, False: 433]
  ------------------
 1215|  3.05k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 1.87k, False: 1.17k]
  ------------------
 1216|  1.87k|      return static_cast<I>(std::lround(v));
 1217|  1.87k|    }
 1218|  1.60k|    return 0;
 1219|  3.48k|  }
_ZNK5Exiv29ValueTypeIdE23float_to_integer_helperIjEET_m:
 1212|  1.68k|  I float_to_integer_helper(size_t n) const {
 1213|  1.68k|    const auto v = value_.at(n);
 1214|  1.68k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 916, False: 767]
  ------------------
 1215|    916|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 464, False: 452]
  ------------------
 1216|    464|      return static_cast<I>(std::lround(v));
 1217|    464|    }
 1218|  1.21k|    return 0;
 1219|  1.68k|  }
_ZNK5Exiv29ValueTypeIfE23float_to_integer_helperIlEET_m:
 1212|  6.46k|  I float_to_integer_helper(size_t n) const {
 1213|  6.46k|    const auto v = value_.at(n);
 1214|  6.46k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 5.42k, False: 1.03k]
  ------------------
 1215|  5.42k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 4.84k, False: 579]
  ------------------
 1216|  4.84k|      return static_cast<I>(std::lround(v));
 1217|  4.84k|    }
 1218|  1.61k|    return 0;
 1219|  6.46k|  }
_ZNK5Exiv29ValueTypeIfE23float_to_integer_helperIjEET_m:
 1212|  4.57k|  I float_to_integer_helper(size_t n) const {
 1213|  4.57k|    const auto v = value_.at(n);
 1214|  4.57k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 3.53k, False: 1.04k]
  ------------------
 1215|  3.53k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 2.89k, False: 644]
  ------------------
 1216|  2.89k|      return static_cast<I>(std::lround(v));
 1217|  2.89k|    }
 1218|  1.68k|    return 0;
 1219|  4.57k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE26rational_to_integer_helperIlEET_m:
 1223|  73.7k|  I rational_to_integer_helper(size_t n) const {
 1224|  73.7k|    auto a = value_.at(n).first;
 1225|  73.7k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  73.7k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 13.5k, False: 60.2k]
  ------------------
 1229|  13.5k|      return 0;
 1230|  13.5k|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  60.2k|#ifdef __cpp_if_constexpr
 1234|  60.2k|    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|  60.2k|      const auto imin = std::numeric_limits<I>::min();
 1240|  60.2k|      const auto imax = std::numeric_limits<I>::max();
 1241|  60.2k|      if (imax < b || a < imin || imax < a) {
  ------------------
  |  Branch (1241:11): [True: 81, False: 60.1k]
  |  Branch (1241:23): [True: 0, False: 60.1k]
  |  Branch (1241:35): [True: 0, False: 60.1k]
  ------------------
 1242|      0|        return 0;
 1243|      0|      }
 1244|  60.2k|#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|  60.2k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  73.7k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE26rational_to_integer_helperIjEET_m:
 1223|  33.3k|  I rational_to_integer_helper(size_t n) const {
 1224|  33.3k|    auto a = value_.at(n).first;
 1225|  33.3k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  33.3k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 6.40k, False: 26.9k]
  ------------------
 1229|  6.40k|      return 0;
 1230|  6.40k|    }
 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.41k, False: 24.5k]
  ------------------
 1258|  2.41k|        return 0;
 1259|  2.41k|      }
 1260|       |      // Inputs are not negative so convert them to unsigned.
 1261|  24.5k|      const auto a_u = static_cast<std::make_unsigned_t<decltype(a)>>(a);
 1262|  24.5k|      const auto b_u = static_cast<std::make_unsigned_t<decltype(b)>>(b);
 1263|  24.5k|      if (imax < b_u || imax < a_u) {
  ------------------
  |  Branch (1263:11): [True: 64, False: 24.4k]
  |  Branch (1263:25): [True: 0, False: 24.4k]
  ------------------
 1264|      0|        return 0;
 1265|      0|      }
 1266|  24.5k|    }
 1267|       |
 1268|  24.5k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  33.3k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE26rational_to_integer_helperIlEET_m:
 1223|  20.9k|  I rational_to_integer_helper(size_t n) const {
 1224|  20.9k|    auto a = value_.at(n).first;
 1225|  20.9k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  20.9k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 879, False: 20.1k]
  ------------------
 1229|    879|      return 0;
 1230|    879|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  20.1k|#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|  20.1k|    } 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|  20.1k|      const auto imax = static_cast<std::make_unsigned_t<I>>(std::numeric_limits<I>::max());
 1251|  20.1k|      if (imax < b || imax < a) {
  ------------------
  |  Branch (1251:11): [True: 73, False: 20.0k]
  |  Branch (1251:23): [True: 0, False: 20.0k]
  ------------------
 1252|      0|        return 0;
 1253|      0|      }
 1254|       |    } else {
 1255|       |      // conversion is from signed to unsigned
 1256|       |      const auto imax = std::numeric_limits<I>::max();
 1257|       |      if (a < 0) {
 1258|       |        return 0;
 1259|       |      }
 1260|       |      // Inputs are not negative so convert them to unsigned.
 1261|       |      const auto a_u = static_cast<std::make_unsigned_t<decltype(a)>>(a);
 1262|       |      const auto b_u = static_cast<std::make_unsigned_t<decltype(b)>>(b);
 1263|       |      if (imax < b_u || imax < a_u) {
 1264|       |        return 0;
 1265|       |      }
 1266|       |    }
 1267|       |
 1268|  20.1k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  20.9k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE26rational_to_integer_helperIjEET_m:
 1223|  3.39k|  I rational_to_integer_helper(size_t n) const {
 1224|  3.39k|    auto a = value_.at(n).first;
 1225|  3.39k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  3.39k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 410, False: 2.98k]
  ------------------
 1229|    410|      return 0;
 1230|    410|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  2.98k|#ifdef __cpp_if_constexpr
 1234|  2.98k|    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.98k|      const auto imin = std::numeric_limits<I>::min();
 1240|  2.98k|      const auto imax = std::numeric_limits<I>::max();
 1241|  2.98k|      if (imax < b || a < imin || imax < a) {
  ------------------
  |  Branch (1241:11): [True: 30, False: 2.95k]
  |  Branch (1241:23): [True: 0, False: 2.95k]
  |  Branch (1241:35): [True: 0, False: 2.95k]
  ------------------
 1242|      0|        return 0;
 1243|      0|      }
 1244|  2.98k|#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.98k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  3.39k|  }
_ZN5Exiv29ValueTypeItEC2Ev:
 1433|  15.0M|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  15.0M|}
_ZN5Exiv25ValueD2Ev:
   43|  69.3M|  virtual ~Value() = default;
_ZN5Exiv29ValueTypeItE4readEPKhmNS_9ByteOrderE:
 1467|  15.0M|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  15.0M|  value_.clear();
 1469|  15.0M|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  15.0M|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 15.0M, False: 0]
  |  Branch (1470:17): [True: 1.17k, False: 15.0M]
  ------------------
 1471|  1.17k|    len = (len / ts) * ts;
 1472|  31.7M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 16.6M, False: 15.0M]
  ------------------
 1473|  16.6M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  16.6M|  }
 1475|  15.0M|  return 0;
 1476|  15.0M|}
_ZN5Exiv29ValueTypeItE4readERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 1479|  1.06k|int ValueType<T>::read(const std::string& buf) {
 1480|  1.06k|  std::istringstream is(buf);
 1481|  1.06k|  T tmp;
 1482|  1.06k|  ValueList val;
 1483|  1.92k|  while (is >> tmp)
  ------------------
  |  Branch (1483:10): [True: 866, False: 1.06k]
  ------------------
 1484|    866|    val.push_back(tmp);
 1485|  1.06k|  if (!is.eof())
  ------------------
  |  Branch (1485:7): [True: 9, False: 1.05k]
  ------------------
 1486|      9|    return 1;
 1487|  1.05k|  value_ = std::move(val);
 1488|  1.05k|  return 0;
 1489|  1.06k|}
_ZN5Exiv29ValueTypeItE11setDataAreaEPKhm:
 1649|    321|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    321|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 186, False: 135]
  ------------------
 1651|    186|    pDataArea_ = Blob(buf, buf + len);
 1652|    135|  else
 1653|    135|    pDataArea_.clear();
 1654|    321|  return 0;
 1655|    321|}
_ZNK5Exiv29ValueTypeItE4copyEPhNS_9ByteOrderE:
 1492|  32.2k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  32.2k|  size_t offset = 0;
 1494|   765k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 765k, False: 32.2k]
  ------------------
 1495|   765k|    offset += toData(buf + offset, val, byteOrder);
 1496|   765k|  }
 1497|  32.2k|  return offset;
 1498|  32.2k|}
_ZNK5Exiv29ValueTypeItE5countEv:
 1501|  15.4M|size_t ValueType<T>::count() const {
 1502|  15.4M|  return value_.size();
 1503|  15.4M|}
_ZNK5Exiv29ValueTypeItE4sizeEv:
 1506|   216k|size_t ValueType<T>::size() const {
 1507|   216k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|   216k|}
_ZNK5Exiv29ValueTypeItE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  54.0k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  54.0k|  auto end = value_.end();
 1518|  54.0k|  auto i = value_.begin();
 1519|   361k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 307k, False: 54.0k]
  ------------------
 1520|   307k|    os << std::setprecision(15) << *i;
 1521|   307k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 253k, False: 53.9k]
  ------------------
 1522|   253k|      os << " ";
 1523|   307k|  }
 1524|  54.0k|  return os;
 1525|  54.0k|}
_ZNK5Exiv29ValueTypeItE8toStringEm:
 1528|    992|std::string ValueType<T>::toString(size_t n) const {
 1529|    992|  ok_ = true;
 1530|    992|  return Exiv2::toString<T>(value_.at(n));
 1531|    992|}
_ZNK5Exiv29ValueTypeItE7toInt64Em:
 1535|   245k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|   245k|  ok_ = true;
 1537|   245k|  return static_cast<int64_t>(value_.at(n));
 1538|   245k|}
_ZNK5Exiv29ValueTypeItE8toUint32Em:
 1540|  51.4k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  51.4k|  ok_ = true;
 1542|  51.4k|  return static_cast<uint32_t>(value_.at(n));
 1543|  51.4k|}
_ZNK5Exiv29ValueTypeItE7toFloatEm:
 1585|  10.0k|float ValueType<T>::toFloat(size_t n) const {
 1586|  10.0k|  ok_ = true;
 1587|  10.0k|  return static_cast<float>(value_.at(n));
 1588|  10.0k|}
_ZNK5Exiv29ValueTypeItE10toRationalEm:
 1607|    154|Rational ValueType<T>::toRational(size_t n) const {
 1608|    154|  ok_ = true;
 1609|    154|  return {value_.at(n), 1};
 1610|    154|}
_ZNK5Exiv29ValueTypeItE12sizeDataAreaEv:
 1639|  1.30k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.30k|  return pDataArea_.size();
 1641|  1.30k|}
_ZNK5Exiv29ValueTypeItE8dataAreaEv:
 1644|    119|DataBuf ValueType<T>::dataArea() const {
 1645|    119|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    119|}
_ZNK5Exiv29ValueTypeItE6clone_Ev:
 1511|  30.1M|ValueType<T>* ValueType<T>::clone_() const {
 1512|  30.1M|  return new ValueType<T>(*this);
 1513|  30.1M|}
_ZN5Exiv29ValueTypeItEC2ERKS1_:
 1447|  30.1M|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  30.1M|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 268, False: 30.1M]
  ------------------
 1449|    268|    pDataArea_ = rhs.pDataArea_;
 1450|  30.1M|}
_ZN5Exiv25ValueC2ERKS0_:
  225|  14.2M|  Value(const Value&) = default;
_ZN5Exiv29ValueTypeIjE4readEPKhmNS_9ByteOrderE:
 1467|   381k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|   381k|  value_.clear();
 1469|   381k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|   381k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 381k, False: 0]
  |  Branch (1470:17): [True: 159, False: 381k]
  ------------------
 1471|    159|    len = (len / ts) * ts;
 1472|  2.46M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 2.08M, False: 381k]
  ------------------
 1473|  2.08M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  2.08M|  }
 1475|   381k|  return 0;
 1476|   381k|}
_ZN5Exiv29ValueTypeIjE11setDataAreaEPKhm:
 1649|    249|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    249|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 178, False: 71]
  ------------------
 1651|    178|    pDataArea_ = Blob(buf, buf + len);
 1652|     71|  else
 1653|     71|    pDataArea_.clear();
 1654|    249|  return 0;
 1655|    249|}
_ZNK5Exiv29ValueTypeIjE4copyEPhNS_9ByteOrderE:
 1492|  53.0k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  53.0k|  size_t offset = 0;
 1494|   130k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 130k, False: 53.0k]
  ------------------
 1495|   130k|    offset += toData(buf + offset, val, byteOrder);
 1496|   130k|  }
 1497|  53.0k|  return offset;
 1498|  53.0k|}
_ZNK5Exiv29ValueTypeIjE5countEv:
 1501|   535k|size_t ValueType<T>::count() const {
 1502|   535k|  return value_.size();
 1503|   535k|}
_ZNK5Exiv29ValueTypeIjE4sizeEv:
 1506|   334k|size_t ValueType<T>::size() const {
 1507|   334k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|   334k|}
_ZNK5Exiv29ValueTypeIjE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  61.2k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  61.2k|  auto end = value_.end();
 1518|  61.2k|  auto i = value_.begin();
 1519|   483k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 422k, False: 61.2k]
  ------------------
 1520|   422k|    os << std::setprecision(15) << *i;
 1521|   422k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 361k, False: 60.9k]
  ------------------
 1522|   361k|      os << " ";
 1523|   422k|  }
 1524|  61.2k|  return os;
 1525|  61.2k|}
_ZNK5Exiv29ValueTypeIjE8toStringEm:
 1528|    262|std::string ValueType<T>::toString(size_t n) const {
 1529|    262|  ok_ = true;
 1530|    262|  return Exiv2::toString<T>(value_.at(n));
 1531|    262|}
_ZNK5Exiv29ValueTypeIjE7toInt64Em:
 1535|  33.8k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  33.8k|  ok_ = true;
 1537|  33.8k|  return static_cast<int64_t>(value_.at(n));
 1538|  33.8k|}
_ZNK5Exiv29ValueTypeIjE8toUint32Em:
 1540|  8.94k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  8.94k|  ok_ = true;
 1542|  8.94k|  return static_cast<uint32_t>(value_.at(n));
 1543|  8.94k|}
_ZNK5Exiv29ValueTypeIjE7toFloatEm:
 1585|    116|float ValueType<T>::toFloat(size_t n) const {
 1586|    116|  ok_ = true;
 1587|    116|  return static_cast<float>(value_.at(n));
 1588|    116|}
_ZNK5Exiv29ValueTypeIjE10toRationalEm:
 1607|    328|Rational ValueType<T>::toRational(size_t n) const {
 1608|    328|  ok_ = true;
 1609|    328|  return {value_.at(n), 1};
 1610|    328|}
_ZNK5Exiv29ValueTypeIjE12sizeDataAreaEv:
 1639|  1.80k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.80k|  return pDataArea_.size();
 1641|  1.80k|}
_ZNK5Exiv29ValueTypeIjE8dataAreaEv:
 1644|    233|DataBuf ValueType<T>::dataArea() const {
 1645|    233|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    233|}
_ZNK5Exiv29ValueTypeIjE6clone_Ev:
 1511|   850k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   850k|  return new ValueType<T>(*this);
 1513|   850k|}
_ZN5Exiv29ValueTypeIjEC2ERKS1_:
 1447|   850k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   850k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 219, False: 850k]
  ------------------
 1449|    219|    pDataArea_ = rhs.pDataArea_;
 1450|   850k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEEC2Ev:
 1433|  48.0k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  48.0k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEE4readEPKhmNS_9ByteOrderE:
 1467|  48.0k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  48.0k|  value_.clear();
 1469|  48.0k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  48.0k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 48.0k, False: 0]
  |  Branch (1470:17): [True: 0, False: 48.0k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   413k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 365k, False: 48.0k]
  ------------------
 1473|   365k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   365k|  }
 1475|  48.0k|  return 0;
 1476|  48.0k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEE11setDataAreaEPKhm:
 1649|    176|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    176|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 125, False: 51]
  ------------------
 1651|    125|    pDataArea_ = Blob(buf, buf + len);
 1652|     51|  else
 1653|     51|    pDataArea_.clear();
 1654|    176|  return 0;
 1655|    176|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE4copyEPhNS_9ByteOrderE:
 1492|  18.6k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  18.6k|  size_t offset = 0;
 1494|   293k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 293k, False: 18.6k]
  ------------------
 1495|   293k|    offset += toData(buf + offset, val, byteOrder);
 1496|   293k|  }
 1497|  18.6k|  return offset;
 1498|  18.6k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE5countEv:
 1501|   102k|size_t ValueType<T>::count() const {
 1502|   102k|  return value_.size();
 1503|   102k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE4sizeEv:
 1506|  56.7k|size_t ValueType<T>::size() const {
 1507|  56.7k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  56.7k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE5writeERNS1_13basic_ostreamIcNS1_11char_traitsIcEEEE:
 1516|  4.38k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  4.38k|  auto end = value_.end();
 1518|  4.38k|  auto i = value_.begin();
 1519|  26.0k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 21.7k, False: 4.38k]
  ------------------
 1520|  21.7k|    os << std::setprecision(15) << *i;
 1521|  21.7k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 17.5k, False: 4.16k]
  ------------------
 1522|  17.5k|      os << " ";
 1523|  21.7k|  }
 1524|  4.38k|  return os;
 1525|  4.38k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8toStringEm:
 1528|    126|std::string ValueType<T>::toString(size_t n) const {
 1529|    126|  ok_ = true;
 1530|    126|  return Exiv2::toString<T>(value_.at(n));
 1531|    126|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE12sizeDataAreaEv:
 1639|  1.93k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.93k|  return pDataArea_.size();
 1641|  1.93k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8dataAreaEv:
 1644|    229|DataBuf ValueType<T>::dataArea() const {
 1645|    229|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    229|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE6clone_Ev:
 1511|   122k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   122k|  return new ValueType<T>(*this);
 1513|   122k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEEC2ERKS4_:
 1447|   122k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   122k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 128, False: 122k]
  ------------------
 1449|    128|    pDataArea_ = rhs.pDataArea_;
 1450|   122k|}
_ZN5Exiv29ValueTypeIsEC2Ev:
 1433|  1.10M|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  1.10M|}
_ZN5Exiv29ValueTypeIsE4readEPKhmNS_9ByteOrderE:
 1467|  1.09M|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  1.09M|  value_.clear();
 1469|  1.09M|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  1.09M|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 1.09M, False: 0]
  |  Branch (1470:17): [True: 568, False: 1.09M]
  ------------------
 1471|    568|    len = (len / ts) * ts;
 1472|  8.76M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 7.66M, False: 1.09M]
  ------------------
 1473|  7.66M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  7.66M|  }
 1475|  1.09M|  return 0;
 1476|  1.09M|}
_ZN5Exiv29ValueTypeIsE4readERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 1479|  4.20k|int ValueType<T>::read(const std::string& buf) {
 1480|  4.20k|  std::istringstream is(buf);
 1481|  4.20k|  T tmp;
 1482|  4.20k|  ValueList val;
 1483|  12.2k|  while (is >> tmp)
  ------------------
  |  Branch (1483:10): [True: 8.01k, False: 4.20k]
  ------------------
 1484|  8.01k|    val.push_back(tmp);
 1485|  4.20k|  if (!is.eof())
  ------------------
  |  Branch (1485:7): [True: 0, False: 4.20k]
  ------------------
 1486|      0|    return 1;
 1487|  4.20k|  value_ = std::move(val);
 1488|  4.20k|  return 0;
 1489|  4.20k|}
_ZN5Exiv29ValueTypeIsE11setDataAreaEPKhm:
 1649|    265|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    265|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 129, False: 136]
  ------------------
 1651|    129|    pDataArea_ = Blob(buf, buf + len);
 1652|    136|  else
 1653|    136|    pDataArea_.clear();
 1654|    265|  return 0;
 1655|    265|}
_ZNK5Exiv29ValueTypeIsE4copyEPhNS_9ByteOrderE:
 1492|  7.81k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  7.81k|  size_t offset = 0;
 1494|   166k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 166k, False: 7.81k]
  ------------------
 1495|   166k|    offset += toData(buf + offset, val, byteOrder);
 1496|   166k|  }
 1497|  7.81k|  return offset;
 1498|  7.81k|}
_ZNK5Exiv29ValueTypeIsE5countEv:
 1501|  13.0M|size_t ValueType<T>::count() const {
 1502|  13.0M|  return value_.size();
 1503|  13.0M|}
_ZNK5Exiv29ValueTypeIsE4sizeEv:
 1506|  28.3k|size_t ValueType<T>::size() const {
 1507|  28.3k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  28.3k|}
_ZNK5Exiv29ValueTypeIsE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  11.9k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  11.9k|  auto end = value_.end();
 1518|  11.9k|  auto i = value_.begin();
 1519|   133k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 121k, False: 11.9k]
  ------------------
 1520|   121k|    os << std::setprecision(15) << *i;
 1521|   121k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 109k, False: 11.8k]
  ------------------
 1522|   109k|      os << " ";
 1523|   121k|  }
 1524|  11.9k|  return os;
 1525|  11.9k|}
_ZNK5Exiv29ValueTypeIsE8toStringEm:
 1528|    314|std::string ValueType<T>::toString(size_t n) const {
 1529|    314|  ok_ = true;
 1530|    314|  return Exiv2::toString<T>(value_.at(n));
 1531|    314|}
_ZNK5Exiv29ValueTypeIsE7toInt64Em:
 1535|  11.9M|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  11.9M|  ok_ = true;
 1537|  11.9M|  return static_cast<int64_t>(value_.at(n));
 1538|  11.9M|}
_ZNK5Exiv29ValueTypeIsE8toUint32Em:
 1540|  12.0k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  12.0k|  ok_ = true;
 1542|  12.0k|  return static_cast<uint32_t>(value_.at(n));
 1543|  12.0k|}
_ZNK5Exiv29ValueTypeIsE7toFloatEm:
 1585|    217|float ValueType<T>::toFloat(size_t n) const {
 1586|    217|  ok_ = true;
 1587|    217|  return static_cast<float>(value_.at(n));
 1588|    217|}
_ZNK5Exiv29ValueTypeIsE10toRationalEm:
 1607|    282|Rational ValueType<T>::toRational(size_t n) const {
 1608|    282|  ok_ = true;
 1609|    282|  return {value_.at(n), 1};
 1610|    282|}
_ZNK5Exiv29ValueTypeIsE12sizeDataAreaEv:
 1639|  3.52k|size_t ValueType<T>::sizeDataArea() const {
 1640|  3.52k|  return pDataArea_.size();
 1641|  3.52k|}
_ZNK5Exiv29ValueTypeIsE8dataAreaEv:
 1644|     63|DataBuf ValueType<T>::dataArea() const {
 1645|     63|  return {pDataArea_.data(), pDataArea_.size()};
 1646|     63|}
_ZNK5Exiv29ValueTypeIsE6clone_Ev:
 1511|  2.21M|ValueType<T>* ValueType<T>::clone_() const {
 1512|  2.21M|  return new ValueType<T>(*this);
 1513|  2.21M|}
_ZN5Exiv29ValueTypeIsEC2ERKS1_:
 1447|  2.21M|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  2.21M|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 172, False: 2.21M]
  ------------------
 1449|    172|    pDataArea_ = rhs.pDataArea_;
 1450|  2.21M|}
_ZN5Exiv29ValueTypeIiEC2Ev:
 1433|   130k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|   130k|}
_ZN5Exiv29ValueTypeIiE4readEPKhmNS_9ByteOrderE:
 1467|   130k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|   130k|  value_.clear();
 1469|   130k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|   130k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 130k, False: 0]
  |  Branch (1470:17): [True: 970, False: 129k]
  ------------------
 1471|    970|    len = (len / ts) * ts;
 1472|   377k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 247k, False: 130k]
  ------------------
 1473|   247k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   247k|  }
 1475|   130k|  return 0;
 1476|   130k|}
_ZN5Exiv29ValueTypeIiE11setDataAreaEPKhm:
 1649|    134|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    134|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 65, False: 69]
  ------------------
 1651|     65|    pDataArea_ = Blob(buf, buf + len);
 1652|     69|  else
 1653|     69|    pDataArea_.clear();
 1654|    134|  return 0;
 1655|    134|}
_ZNK5Exiv29ValueTypeIiE4copyEPhNS_9ByteOrderE:
 1492|  4.99k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  4.99k|  size_t offset = 0;
 1494|  40.2k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 40.2k, False: 4.99k]
  ------------------
 1495|  40.2k|    offset += toData(buf + offset, val, byteOrder);
 1496|  40.2k|  }
 1497|  4.99k|  return offset;
 1498|  4.99k|}
_ZNK5Exiv29ValueTypeIiE5countEv:
 1501|   169k|size_t ValueType<T>::count() const {
 1502|   169k|  return value_.size();
 1503|   169k|}
_ZNK5Exiv29ValueTypeIiE4sizeEv:
 1506|  19.1k|size_t ValueType<T>::size() const {
 1507|  19.1k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  19.1k|}
_ZNK5Exiv29ValueTypeIiE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  4.83k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  4.83k|  auto end = value_.end();
 1518|  4.83k|  auto i = value_.begin();
 1519|   219k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 214k, False: 4.83k]
  ------------------
 1520|   214k|    os << std::setprecision(15) << *i;
 1521|   214k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 210k, False: 4.61k]
  ------------------
 1522|   210k|      os << " ";
 1523|   214k|  }
 1524|  4.83k|  return os;
 1525|  4.83k|}
_ZNK5Exiv29ValueTypeIiE8toStringEm:
 1528|    206|std::string ValueType<T>::toString(size_t n) const {
 1529|    206|  ok_ = true;
 1530|    206|  return Exiv2::toString<T>(value_.at(n));
 1531|    206|}
_ZNK5Exiv29ValueTypeIiE7toInt64Em:
 1535|  22.1k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  22.1k|  ok_ = true;
 1537|  22.1k|  return static_cast<int64_t>(value_.at(n));
 1538|  22.1k|}
_ZNK5Exiv29ValueTypeIiE8toUint32Em:
 1540|  2.30k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  2.30k|  ok_ = true;
 1542|  2.30k|  return static_cast<uint32_t>(value_.at(n));
 1543|  2.30k|}
_ZNK5Exiv29ValueTypeIiE7toFloatEm:
 1585|     78|float ValueType<T>::toFloat(size_t n) const {
 1586|     78|  ok_ = true;
 1587|     78|  return static_cast<float>(value_.at(n));
 1588|     78|}
_ZNK5Exiv29ValueTypeIiE10toRationalEm:
 1607|    288|Rational ValueType<T>::toRational(size_t n) const {
 1608|    288|  ok_ = true;
 1609|    288|  return {value_.at(n), 1};
 1610|    288|}
_ZNK5Exiv29ValueTypeIiE12sizeDataAreaEv:
 1639|    560|size_t ValueType<T>::sizeDataArea() const {
 1640|    560|  return pDataArea_.size();
 1641|    560|}
_ZNK5Exiv29ValueTypeIiE8dataAreaEv:
 1644|     90|DataBuf ValueType<T>::dataArea() const {
 1645|     90|  return {pDataArea_.data(), pDataArea_.size()};
 1646|     90|}
_ZNK5Exiv29ValueTypeIiE6clone_Ev:
 1511|   271k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   271k|  return new ValueType<T>(*this);
 1513|   271k|}
_ZN5Exiv29ValueTypeIiEC2ERKS1_:
 1447|   271k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   271k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 85, False: 271k]
  ------------------
 1449|     85|    pDataArea_ = rhs.pDataArea_;
 1450|   271k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEEC2Ev:
 1433|  34.4k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  34.4k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEE4readEPKhmNS_9ByteOrderE:
 1467|  34.4k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  34.4k|  value_.clear();
 1469|  34.4k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  34.4k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 34.4k, False: 0]
  |  Branch (1470:17): [True: 0, False: 34.4k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   525k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 491k, False: 34.4k]
  ------------------
 1473|   491k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   491k|  }
 1475|  34.4k|  return 0;
 1476|  34.4k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEE11setDataAreaEPKhm:
 1649|  1.31k|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|  1.31k|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 957, False: 358]
  ------------------
 1651|    957|    pDataArea_ = Blob(buf, buf + len);
 1652|    358|  else
 1653|    358|    pDataArea_.clear();
 1654|  1.31k|  return 0;
 1655|  1.31k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE4copyEPhNS_9ByteOrderE:
 1492|  13.1k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  13.1k|  size_t offset = 0;
 1494|  37.3k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 37.3k, False: 13.1k]
  ------------------
 1495|  37.3k|    offset += toData(buf + offset, val, byteOrder);
 1496|  37.3k|  }
 1497|  13.1k|  return offset;
 1498|  13.1k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE5countEv:
 1501|   102k|size_t ValueType<T>::count() const {
 1502|   102k|  return value_.size();
 1503|   102k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE4sizeEv:
 1506|  39.4k|size_t ValueType<T>::size() const {
 1507|  39.4k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  39.4k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE5writeERNS1_13basic_ostreamIcNS1_11char_traitsIcEEEE:
 1516|  7.68k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  7.68k|  auto end = value_.end();
 1518|  7.68k|  auto i = value_.begin();
 1519|  60.8k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 53.1k, False: 7.68k]
  ------------------
 1520|  53.1k|    os << std::setprecision(15) << *i;
 1521|  53.1k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 45.5k, False: 7.62k]
  ------------------
 1522|  45.5k|      os << " ";
 1523|  53.1k|  }
 1524|  7.68k|  return os;
 1525|  7.68k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8toStringEm:
 1528|    378|std::string ValueType<T>::toString(size_t n) const {
 1529|    378|  ok_ = true;
 1530|    378|  return Exiv2::toString<T>(value_.at(n));
 1531|    378|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE12sizeDataAreaEv:
 1639|  2.09k|size_t ValueType<T>::sizeDataArea() const {
 1640|  2.09k|  return pDataArea_.size();
 1641|  2.09k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8dataAreaEv:
 1644|     70|DataBuf ValueType<T>::dataArea() const {
 1645|     70|  return {pDataArea_.data(), pDataArea_.size()};
 1646|     70|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE6clone_Ev:
 1511|  87.4k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  87.4k|  return new ValueType<T>(*this);
 1513|  87.4k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEEC2ERKS4_:
 1447|  87.4k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  87.4k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 1.68k, False: 85.7k]
  ------------------
 1449|  1.68k|    pDataArea_ = rhs.pDataArea_;
 1450|  87.4k|}
_ZN5Exiv29ValueTypeIfEC2Ev:
 1433|  10.6k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  10.6k|}
_ZN5Exiv29ValueTypeIfE4readEPKhmNS_9ByteOrderE:
 1467|  10.6k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  10.6k|  value_.clear();
 1469|  10.6k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  10.6k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 10.6k, False: 0]
  |  Branch (1470:17): [True: 0, False: 10.6k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   140k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 130k, False: 10.6k]
  ------------------
 1473|   130k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   130k|  }
 1475|  10.6k|  return 0;
 1476|  10.6k|}
_ZN5Exiv29ValueTypeIfE11setDataAreaEPKhm:
 1649|    715|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    715|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 345, False: 370]
  ------------------
 1651|    345|    pDataArea_ = Blob(buf, buf + len);
 1652|    370|  else
 1653|    370|    pDataArea_.clear();
 1654|    715|  return 0;
 1655|    715|}
_ZNK5Exiv29ValueTypeIfE4copyEPhNS_9ByteOrderE:
 1492|  7.32k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  7.32k|  size_t offset = 0;
 1494|   118k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 118k, False: 7.32k]
  ------------------
 1495|   118k|    offset += toData(buf + offset, val, byteOrder);
 1496|   118k|  }
 1497|  7.32k|  return offset;
 1498|  7.32k|}
_ZNK5Exiv29ValueTypeIfE5countEv:
 1501|  33.6k|size_t ValueType<T>::count() const {
 1502|  33.6k|  return value_.size();
 1503|  33.6k|}
_ZNK5Exiv29ValueTypeIfE4sizeEv:
 1506|  23.2k|size_t ValueType<T>::size() const {
 1507|  23.2k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  23.2k|}
_ZNK5Exiv29ValueTypeIfE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  2.76k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  2.76k|  auto end = value_.end();
 1518|  2.76k|  auto i = value_.begin();
 1519|  70.3k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 67.5k, False: 2.76k]
  ------------------
 1520|  67.5k|    os << std::setprecision(15) << *i;
 1521|  67.5k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 64.8k, False: 2.73k]
  ------------------
 1522|  64.8k|      os << " ";
 1523|  67.5k|  }
 1524|  2.76k|  return os;
 1525|  2.76k|}
_ZNK5Exiv29ValueTypeIfE8toStringEm:
 1528|    494|std::string ValueType<T>::toString(size_t n) const {
 1529|    494|  ok_ = true;
 1530|    494|  return Exiv2::toString<T>(value_.at(n));
 1531|    494|}
_ZNK5Exiv29ValueTypeIfE7toFloatEm:
 1585|    168|float ValueType<T>::toFloat(size_t n) const {
 1586|    168|  ok_ = true;
 1587|    168|  return static_cast<float>(value_.at(n));
 1588|    168|}
_ZNK5Exiv29ValueTypeIfE12sizeDataAreaEv:
 1639|  1.90k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.90k|  return pDataArea_.size();
 1641|  1.90k|}
_ZNK5Exiv29ValueTypeIfE8dataAreaEv:
 1644|    182|DataBuf ValueType<T>::dataArea() const {
 1645|    182|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    182|}
_ZNK5Exiv29ValueTypeIfE6clone_Ev:
 1511|  34.8k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  34.8k|  return new ValueType<T>(*this);
 1513|  34.8k|}
_ZN5Exiv29ValueTypeIfEC2ERKS1_:
 1447|  34.8k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  34.8k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 266, False: 34.5k]
  ------------------
 1449|    266|    pDataArea_ = rhs.pDataArea_;
 1450|  34.8k|}
_ZN5Exiv29ValueTypeIdEC2Ev:
 1433|  7.65k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  7.65k|}
_ZN5Exiv29ValueTypeIdE4readEPKhmNS_9ByteOrderE:
 1467|  7.65k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  7.65k|  value_.clear();
 1469|  7.65k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  7.65k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 7.65k, False: 0]
  |  Branch (1470:17): [True: 0, False: 7.65k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|  26.4k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 18.7k, False: 7.65k]
  ------------------
 1473|  18.7k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  18.7k|  }
 1475|  7.65k|  return 0;
 1476|  7.65k|}
_ZN5Exiv29ValueTypeIdE11setDataAreaEPKhm:
 1649|    293|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    293|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 164, False: 129]
  ------------------
 1651|    164|    pDataArea_ = Blob(buf, buf + len);
 1652|    129|  else
 1653|    129|    pDataArea_.clear();
 1654|    293|  return 0;
 1655|    293|}
_ZNK5Exiv29ValueTypeIdE4copyEPhNS_9ByteOrderE:
 1492|  6.72k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  6.72k|  size_t offset = 0;
 1494|  59.9k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 59.9k, False: 6.72k]
  ------------------
 1495|  59.9k|    offset += toData(buf + offset, val, byteOrder);
 1496|  59.9k|  }
 1497|  6.72k|  return offset;
 1498|  6.72k|}
_ZNK5Exiv29ValueTypeIdE5countEv:
 1501|  19.4k|size_t ValueType<T>::count() const {
 1502|  19.4k|  return value_.size();
 1503|  19.4k|}
_ZNK5Exiv29ValueTypeIdE4sizeEv:
 1506|  22.4k|size_t ValueType<T>::size() const {
 1507|  22.4k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  22.4k|}
_ZNK5Exiv29ValueTypeIdE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  1.24k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  1.24k|  auto end = value_.end();
 1518|  1.24k|  auto i = value_.begin();
 1519|  7.39k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 6.14k, False: 1.24k]
  ------------------
 1520|  6.14k|    os << std::setprecision(15) << *i;
 1521|  6.14k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 4.97k, False: 1.16k]
  ------------------
 1522|  4.97k|      os << " ";
 1523|  6.14k|  }
 1524|  1.24k|  return os;
 1525|  1.24k|}
_ZNK5Exiv29ValueTypeIdE8toStringEm:
 1528|     14|std::string ValueType<T>::toString(size_t n) const {
 1529|     14|  ok_ = true;
 1530|     14|  return Exiv2::toString<T>(value_.at(n));
 1531|     14|}
_ZNK5Exiv29ValueTypeIdE7toFloatEm:
 1585|    211|float ValueType<T>::toFloat(size_t n) const {
 1586|    211|  ok_ = true;
 1587|    211|  return static_cast<float>(value_.at(n));
 1588|    211|}
_ZNK5Exiv29ValueTypeIdE12sizeDataAreaEv:
 1639|  2.08k|size_t ValueType<T>::sizeDataArea() const {
 1640|  2.08k|  return pDataArea_.size();
 1641|  2.08k|}
_ZNK5Exiv29ValueTypeIdE8dataAreaEv:
 1644|    237|DataBuf ValueType<T>::dataArea() const {
 1645|    237|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    237|}
_ZNK5Exiv29ValueTypeIdE6clone_Ev:
 1511|  25.2k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  25.2k|  return new ValueType<T>(*this);
 1513|  25.2k|}
_ZN5Exiv29ValueTypeIdEC2ERKS1_:
 1447|  25.2k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  25.2k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 154, False: 25.0k]
  ------------------
 1449|    154|    pDataArea_ = rhs.pDataArea_;
 1450|  25.2k|}
_ZZNK5Exiv222LangAltValueComparatorclERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_ENKUlhhE_clEhh:
  799|    976|    auto f = [](unsigned char a, unsigned char b) { return std::tolower(a) > std::tolower(b); };
_ZN5Exiv29ValueTypeIjEC2Ev:
 1433|  29.3k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  29.3k|}

_ZNK5Exiv27XmpData9usePacketEv:
  217|  8.51k|  [[nodiscard]] bool usePacket() const {
  218|  8.51k|    return usePacket_;
  219|  8.51k|  }
_ZN5Exiv27XmpData9usePacketEb:
  222|  37.1k|  bool usePacket(bool b) {
  223|  37.1k|    bool r = usePacket_;
  224|  37.1k|    usePacket_ = b;
  225|  37.1k|    return r;
  226|  37.1k|  }
_ZN5Exiv27XmpData9setPacketENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  228|  36.0k|  void setPacket(std::string xmpPacket) {
  229|  36.0k|    xmpPacket_ = std::move(xmpPacket);
  230|  36.0k|    usePacket(false);
  231|  36.0k|  }
_ZNK5Exiv27XmpData10nsBindingsEv:
  261|  3.76k|  [[nodiscard]] const std::map<std::string, std::string>& nsBindings() const {
  262|  3.76k|    return nsBindings_;
  263|  3.76k|  }
_ZN5Exiv27XmpDataC2Ev:
  141|  39.8k|  XmpData() = default;
_ZN5Exiv28XmpdatumaSINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEERS0_RKT_:
  396|  10.6k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|  10.6k|    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|       |    setValue(Exiv2::toString(value));
  405|  10.6k|  return *this;
  406|  10.6k|}
_ZN5Exiv28XmpdatumaSIdEERS0_RKT_:
  396|   155k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|       |    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|   155k|    setValue(Exiv2::toString(value));
  405|   155k|  return *this;
  406|   155k|}
_ZN5Exiv28XmpdatumaSImEERS0_RKT_:
  396|  4.30k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|       |    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|  4.30k|    setValue(Exiv2::toString(value));
  405|  4.30k|  return *this;
  406|  4.30k|}
_ZN5Exiv28XmpdatumaSIjEERS0_RKT_:
  396|  6.56k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|       |    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|  6.56k|    setValue(Exiv2::toString(value));
  405|  6.56k|  return *this;
  406|  6.56k|}
_ZN5Exiv28XmpdatumaSIPKhEERS0_RKT_:
  396|  1.16k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|       |    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|  1.16k|    setValue(Exiv2::toString(value));
  405|  1.16k|  return *this;
  406|  1.16k|}
_ZN5Exiv28XmpdatumaSIA4_cEERS0_RKT_:
  396|  1.30k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|  1.30k|    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|       |    setValue(Exiv2::toString(value));
  405|  1.30k|  return *this;
  406|  1.30k|}
_ZN5Exiv28XmpdatumaSIlEERS0_RKT_:
  396|    554|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|       |    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|    554|    setValue(Exiv2::toString(value));
  405|    554|  return *this;
  406|    554|}
_ZN5Exiv28XmpdatumaSIfEERS0_RKT_:
  396|  1.20k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|       |    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|  1.20k|    setValue(Exiv2::toString(value));
  405|  1.20k|  return *this;
  406|  1.20k|}
_ZN5Exiv28XmpdatumaSIA18_cEERS0_RKT_:
  396|    286|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|    286|    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|       |    setValue(Exiv2::toString(value));
  405|    286|  return *this;
  406|    286|}
_ZN5Exiv28XmpdatumaSItEERS0_RKT_:
  396|   108k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|       |    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|   108k|    setValue(Exiv2::toString(value));
  405|   108k|  return *this;
  406|   108k|}
_ZN5Exiv28XmpdatumaSIsEERS0_RKT_:
  396|    881|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|       |    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|    881|    setValue(Exiv2::toString(value));
  405|    881|  return *this;
  406|    881|}
_ZN5Exiv28XmpdatumaSIPhEERS0_RKT_:
  396|   159k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|       |    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|   159k|    setValue(Exiv2::toString(value));
  405|   159k|  return *this;
  406|   159k|}
_ZN5Exiv28XmpdatumaSIPKcEERS0_RKT_:
  396|  16.8k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|  16.8k|    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|       |    setValue(Exiv2::toString(value));
  405|  16.8k|  return *this;
  406|  16.8k|}
_ZN5Exiv28XmpdatumaSIiEERS0_RKT_:
  396|   167k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|       |    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|   167k|    setValue(Exiv2::toString(value));
  405|   167k|  return *this;
  406|   167k|}
_ZN5Exiv28XmpdatumaSIA12_cEERS0_RKT_:
  396|     11|Xmpdatum& Xmpdatum::operator=(const T& value) {
  397|       |  if constexpr (std::is_same_v<T, bool>)
  398|       |    setValue(value ? "True" : "False");
  399|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  400|     11|    setValue(value);
  401|       |  else if constexpr (std::is_base_of_v<Value, T>)
  402|       |    setValue(&value);
  403|       |  else
  404|       |    setValue(Exiv2::toString(value));
  405|     11|  return *this;
  406|     11|}

_ZNK5Exiv28AsfVideo7GUIDTageqERKS1_:
   42|  8.33k|bool AsfVideo::GUIDTag::operator==(const AsfVideo::GUIDTag& other) const {
   43|  8.33k|  return data1_ == other.data1_ && data2_ == other.data2_ && data3_ == other.data3_ && data4_ == other.data4_;
  ------------------
  |  Branch (43:10): [True: 1.22k, False: 7.11k]
  |  Branch (43:36): [True: 1.21k, False: 11]
  |  Branch (43:62): [True: 1.20k, False: 10]
  |  Branch (43:88): [True: 1.20k, False: 1]
  ------------------
   44|  8.33k|}
_ZN5Exiv28AsfVideo7GUIDTagC2EPKh:
   46|  9.89k|AsfVideo::GUIDTag::GUIDTag(const uint8_t* bytes) {
   47|  9.89k|  data1_ = Exiv2::getULong(bytes, ByteOrder::littleEndian);
   48|  9.89k|  data2_ = Exiv2::getUShort(bytes + DWORD, ByteOrder::littleEndian);
   49|  9.89k|  data3_ = Exiv2::getUShort(bytes + DWORD + WORD, ByteOrder::littleEndian);
   50|  9.89k|  std::copy(bytes + QWORD, bytes + (2 * QWORD), data4_.begin());
   51|  9.89k|}
_ZNK5Exiv28AsfVideo7GUIDTag9to_stringEv:
   53|     86|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|     86|  return stringFormat("{:08X}-{:04X}-{:04X}-{:02X}{:02X}-{:02X}{:02X}{:02X}{:02X}{:02X}{:02X}", data1_, data2_, data3_,
  ------------------
  |  |   18|     86|#define stringFormat std::format
  ------------------
   58|     86|                      data4_[0], data4_[1], data4_[2], data4_[3], data4_[4], data4_[5], data4_[6], data4_[7]);
   59|     86|}
_ZNK5Exiv28AsfVideo7GUIDTagltERKS1_:
   61|  10.6k|bool AsfVideo::GUIDTag::operator<(const GUIDTag& other) const {
   62|  10.6k|  if (data1_ != other.data1_)
  ------------------
  |  Branch (62:7): [True: 8.09k, False: 2.53k]
  ------------------
   63|  8.09k|    return data1_ < other.data1_;
   64|  2.53k|  if (data2_ != other.data2_)
  ------------------
  |  Branch (64:7): [True: 262, False: 2.27k]
  ------------------
   65|    262|    return data2_ < other.data2_;
   66|  2.27k|  if (data3_ != other.data3_)
  ------------------
  |  Branch (66:7): [True: 67, False: 2.20k]
  ------------------
   67|     67|    return data3_ < other.data3_;
   68|  2.20k|  return std::lexicographical_compare(data4_.begin(), data4_.end(), other.data4_.begin(), other.data4_.end());
   69|  2.27k|}
_ZN5Exiv28AsfVideoC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEERKNS_15ImageCtorParamsE:
  183|    400|    Image(ImageType::asf, mdNone, std::move(io), params) {
  184|    400|}  // AsfVideo::AsfVideo
_ZNK5Exiv28AsfVideo8mimeTypeEv:
  186|    400|std::string AsfVideo::mimeType() const {
  187|    400|  return "video/asf";
  188|    400|}
_ZN5Exiv28AsfVideo12readMetadataEv:
  193|    400|void AsfVideo::readMetadata() {
  194|    400|  if (io_->open() != 0)
  ------------------
  |  Branch (194:7): [True: 0, False: 400]
  ------------------
  195|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  196|       |
  197|       |  // Ensure that this is the correct image type
  198|    400|  if (!isAsfType(*io_, false)) {
  ------------------
  |  Branch (198:7): [True: 0, False: 400]
  ------------------
  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|    400|  IoCloser closer(*io_);
  205|    400|  clearMetadata();
  206|    400|  io_->seek(0, BasicIo::beg);
  207|    400|  height_ = width_ = 1;
  208|       |
  209|    400|  xmpData()["Xmp.video.FileSize"] = io_->size() / 1048576.;
  210|    400|  xmpData()["Xmp.video.MimeType"] = mimeType();
  211|       |
  212|    400|  decodeBlock(0);
  213|       |
  214|    400|  xmpData_["Xmp.video.AspectRatio"] = getAspectRatio(width_, height_);
  215|    400|}  // AsfVideo::readMetadata
_ZN5Exiv28AsfVideo12HeaderReaderC2ERKNSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEE:
  217|  1.46k|AsfVideo::HeaderReader::HeaderReader(const BasicIo::UniquePtr& io) : IdBuf_(GUID) {
  218|  1.46k|  if (io->size() >= io->tell() + GUID + QWORD) {
  ------------------
  |  Branch (218:7): [True: 1.46k, False: 0]
  ------------------
  219|  1.46k|    io->readOrThrow(IdBuf_.data(), IdBuf_.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  220|       |
  221|  1.46k|    size_ = readQWORDTag(io);
  222|  1.46k|    if (size_ >= GUID + QWORD)
  ------------------
  |  Branch (222:9): [True: 791, False: 675]
  ------------------
  223|    791|      remaining_size_ = size_ - GUID - QWORD;
  224|  1.46k|  }
  225|  1.46k|}
_ZN5Exiv28AsfVideo11decodeBlockEm:
  227|  1.50k|void AsfVideo::decodeBlock(size_t depth) {
  228|  1.50k|  Internal::enforce(GUID + QWORD <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  229|  1.50k|  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.50k|  Internal::enforce(objectHeader.getSize() <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  235|  1.50k|  auto tag = GUIDReferenceTags.find(GUIDTag(objectHeader.getId().data()));
  236|       |
  237|  1.50k|  if (tag != GUIDReferenceTags.end()) {
  ------------------
  |  Branch (237:7): [True: 1.01k, False: 486]
  ------------------
  238|  1.01k|    if (tag->second == "Header")
  ------------------
  |  Branch (238:9): [True: 436, False: 581]
  ------------------
  239|    436|      decodeHeader(depth + 1);
  240|    581|    else if (tag->second == "File_Properties")
  ------------------
  |  Branch (240:14): [True: 87, False: 494]
  ------------------
  241|     87|      fileProperties();
  242|    494|    else if (tag->second == "Stream_Properties")
  ------------------
  |  Branch (242:14): [True: 104, False: 390]
  ------------------
  243|    104|      streamProperties();
  244|    390|    else if (tag->second == "Header_Extension")
  ------------------
  |  Branch (244:14): [True: 4, False: 386]
  ------------------
  245|      4|      headerExtension();
  246|    386|    else if (tag->second == "Codec_List")
  ------------------
  |  Branch (246:14): [True: 60, False: 326]
  ------------------
  247|     60|      codecList();
  248|    326|    else if (tag->second == "Extended_Content_Description")
  ------------------
  |  Branch (248:14): [True: 130, False: 196]
  ------------------
  249|    130|      extendedContentDescription();
  250|    196|    else if (tag->second == "Content_Description")
  ------------------
  |  Branch (250:14): [True: 130, False: 66]
  ------------------
  251|    130|      contentDescription();
  252|     66|    else if (tag->second == "Extended_Stream_Properties")
  ------------------
  |  Branch (252:14): [True: 29, False: 37]
  ------------------
  253|     29|      extendedStreamProperties();
  254|     37|    else if (tag->second == "Degradable_JPEG_Media")
  ------------------
  |  Branch (254:14): [True: 0, False: 37]
  ------------------
  255|      0|      DegradableJPEGMedia();
  256|     37|    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|     37|      const uint64_t remaining_size = objectHeader.getRemainingSize();
  260|     37|      Internal::enforce(remaining_size > 0, Exiv2::ErrorCode::kerCorruptedMetadata);
  261|     37|      io_->seekOrThrow(io_->tell() + remaining_size, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  262|     37|    }
  263|  1.01k|  } 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|    486|    const uint64_t remaining_size = objectHeader.getRemainingSize();
  267|    486|    Internal::enforce(remaining_size > 0, Exiv2::ErrorCode::kerCorruptedMetadata);
  268|    486|    io_->seekOrThrow(io_->tell() + remaining_size, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  269|    486|  }
  270|       |
  271|  1.50k|}  // AsfVideo::decodeBlock
_ZN5Exiv28AsfVideo12decodeHeaderEm:
  273|    436|void AsfVideo::decodeHeader(size_t depth) {
  274|    436|  Internal::enforce(depth <= max_recursion_depth_, Exiv2::ErrorCode::kerCorruptedMetadata);
  275|    436|  DataBuf nbHeadersBuf(DWORD + 1);
  276|    436|  io_->readOrThrow(nbHeadersBuf.data(), DWORD, Exiv2::ErrorCode::kerCorruptedMetadata);
  277|       |
  278|    436|  uint32_t nb_headers = Exiv2::getULong(nbHeadersBuf.data(), littleEndian);
  279|    436|  Internal::enforce(nb_headers < std::numeric_limits<uint32_t>::max(), Exiv2::ErrorCode::kerCorruptedMetadata);
  280|    436|  io_->seekOrThrow(io_->tell() + (BYTE * 2), BasicIo::beg,
  281|    436|                   ErrorCode::kerFailedToReadImageData);  // skip two reserved tags
  282|  1.53k|  for (uint32_t i = 0; i < nb_headers; i++) {
  ------------------
  |  Branch (282:24): [True: 1.10k, False: 436]
  ------------------
  283|  1.10k|    decodeBlock(depth);
  284|  1.10k|  }
  285|    436|}
_ZN5Exiv28AsfVideo24extendedStreamPropertiesEv:
  287|     29|void AsfVideo::extendedStreamProperties() {
  288|     29|  xmpData()["Xmp.video.StartTimecode"] = readQWORDTag(io_);  // Start Time
  289|     29|  xmpData()["Xmp.video.EndTimecode"] = readWORDTag(io_);     // End Time
  290|       |
  291|     29|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Data Bitrate
  292|     29|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Buffer Size
  293|     29|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Initial Buffer Fullness
  294|     29|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Alternate Data Bitrate
  295|     29|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Alternate Buffer Size
  296|     29|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Alternate Initial Buffer Fullness
  297|     29|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Maximum Object Size
  298|     29|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Flags Buffer Size
  299|     29|  io_->seek(io_->tell() + WORD, BasicIo::beg);   // ignore Flags Stream Number
  300|     29|  io_->seek(io_->tell() + WORD, BasicIo::beg);   // ignore Stream Language ID Index
  301|       |
  302|     29|  xmpData()["Xmp.video.FrameRate"] = readWORDTag(io_);  // Average Time Per Frame
  303|     29|  uint16_t stream_name_count = readWORDTag(io_);
  304|     29|  uint16_t payload_ext_sys_count = readWORDTag(io_);
  305|       |
  306|  1.19k|  for (uint16_t i = 0; i < stream_name_count; i++) {
  ------------------
  |  Branch (306:24): [True: 1.16k, False: 29]
  ------------------
  307|  1.16k|    io_->seek(io_->tell() + WORD, BasicIo::beg);  // ignore Language ID Index
  308|  1.16k|    uint16_t stream_length = readWORDTag(io_);
  309|  1.16k|    if (stream_length)
  ------------------
  |  Branch (309:9): [True: 828, False: 336]
  ------------------
  310|    828|      io_->seek(io_->tell() + stream_length, BasicIo::beg);  // ignore Stream name
  311|  1.16k|  }
  312|       |
  313|    685|  for (uint16_t i = 0; i < payload_ext_sys_count; i++) {
  ------------------
  |  Branch (313:24): [True: 656, False: 29]
  ------------------
  314|    656|    io_->seek(io_->tell() + GUID, BasicIo::beg);  // ignore Extension System ID
  315|    656|    io_->seek(io_->tell() + WORD, BasicIo::beg);  // ignore Extension Data Size
  316|    656|    uint16_t ext_sys_info_length = readWORDTag(io_);
  317|    656|    if (ext_sys_info_length)
  ------------------
  |  Branch (317:9): [True: 350, False: 306]
  ------------------
  318|    350|      io_->seek(io_->tell() + ext_sys_info_length, BasicIo::beg);  // ignore Extension System Info
  319|    656|  }
  320|     29|}  // AsfVideo::extendedStreamProperties
_ZN5Exiv28AsfVideo16streamPropertiesEv:
  337|    104|void AsfVideo::streamProperties() {
  338|    104|  DataBuf streamTypedBuf(GUID);
  339|    104|  io_->readOrThrow(streamTypedBuf.data(), streamTypedBuf.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  340|       |
  341|    104|  enum class streamTypeInfo { Audio = 1, Video = 2 };
  342|    104|  auto stream = streamTypeInfo{0};
  343|       |
  344|    104|  auto tag_stream_type = GUIDReferenceTags.find(GUIDTag(streamTypedBuf.data()));
  345|    104|  if (tag_stream_type != GUIDReferenceTags.end()) {
  ------------------
  |  Branch (345:7): [True: 39, False: 65]
  ------------------
  346|     39|    if (tag_stream_type->second == "Audio_Media")
  ------------------
  |  Branch (346:9): [True: 0, False: 39]
  ------------------
  347|      0|      stream = streamTypeInfo::Audio;
  348|     39|    else if (tag_stream_type->second == "Video_Media")
  ------------------
  |  Branch (348:14): [True: 0, False: 39]
  ------------------
  349|      0|      stream = streamTypeInfo::Video;
  350|       |
  351|     39|    io_->seek(io_->tell() + GUID, BasicIo::beg);  // ignore Error Correction Type
  352|       |
  353|     39|    uint64_t time_offset = readQWORDTag(io_);
  354|     39|    if (stream == streamTypeInfo::Video)
  ------------------
  |  Branch (354:9): [True: 0, False: 39]
  ------------------
  355|      0|      xmpData()["Xmp.video.TimeOffset"] = time_offset;
  356|     39|    else if (stream == streamTypeInfo::Audio)
  ------------------
  |  Branch (356:14): [True: 0, False: 39]
  ------------------
  357|      0|      xmpData()["Xmp.audio.TimeOffset"] = time_offset;
  358|       |
  359|     39|    auto specific_data_length = readDWORDTag(io_);
  360|     39|    auto correction_data_length = readDWORDTag(io_);
  361|       |
  362|     39|    io_->seek(io_->tell() + WORD /*Flags*/ + DWORD /*Reserved*/ + specific_data_length + correction_data_length,
  363|     39|              BasicIo::beg);
  364|     39|  }
  365|       |
  366|    104|}  // AsfVideo::streamProperties
_ZN5Exiv28AsfVideo9codecListEv:
  368|     60|void AsfVideo::codecList() {
  369|     60|  io_->seek(io_->tell() + GUID /*reserved*/, BasicIo::beg);
  370|     60|  auto entries_count = readDWORDTag(io_);
  371|    339|  for (uint32_t i = 0; i < entries_count; i++) {
  ------------------
  |  Branch (371:24): [True: 279, False: 60]
  ------------------
  372|    279|    uint16_t codec_type = readWORDTag(io_) * 2;
  373|    279|    std::string codec = (codec_type == 1) ? "Xmp.video" : "Xmp.audio";
  ------------------
  |  Branch (373:25): [True: 0, False: 279]
  ------------------
  374|       |
  375|    279|    if (uint16_t codec_name_length = readWORDTag(io_) * 2)
  ------------------
  |  Branch (375:18): [True: 168, False: 111]
  ------------------
  376|    168|      xmpData()[codec + std::string(".CodecName")] = readStringWcharTag(io_, codec_name_length);
  377|       |
  378|    279|    if (uint16_t codec_desc_length = readWORDTag(io_))
  ------------------
  |  Branch (378:18): [True: 229, False: 50]
  ------------------
  379|    229|      xmpData()[codec + std::string(".CodecDescription")] = readStringWcharTag(io_, codec_desc_length);
  380|       |
  381|    279|    uint16_t codec_info_length = readWORDTag(io_);
  382|    279|    Internal::enforce(codec_info_length && codec_info_length < io_->size() - io_->tell(),
  ------------------
  |  Branch (382:23): [True: 252, False: 27]
  |  Branch (382:44): [True: 241, False: 11]
  ------------------
  383|    279|                      Exiv2::ErrorCode::kerCorruptedMetadata);
  384|    279|    xmpData()[codec + std::string(".CodecInfo")] = readStringTag(io_, codec_info_length);
  385|    279|  }
  386|     60|}  // AsfVideo::codecList
_ZNK5Exiv28AsfVideo15headerExtensionEv:
  388|      4|void AsfVideo::headerExtension() const {
  389|      4|  io_->seek(io_->tell() + GUID /*reserved1*/ + WORD /*Reserved2*/, BasicIo::beg);
  390|      4|  auto header_ext_data_length = readDWORDTag(io_);
  391|      4|  io_->seek(io_->tell() + header_ext_data_length, BasicIo::beg);
  392|      4|}  // AsfVideo::headerExtension
_ZN5Exiv28AsfVideo26extendedContentDescriptionEv:
  394|    130|void AsfVideo::extendedContentDescription() {
  395|    130|  uint16_t content_descriptor_count = readWORDTag(io_);
  396|    130|  std::string value;
  397|       |
  398|  11.3k|  for (uint16_t i = 0; i < content_descriptor_count; i++) {
  ------------------
  |  Branch (398:24): [True: 11.2k, False: 103]
  ------------------
  399|  11.2k|    if (uint16_t descriptor_name_length = readWORDTag(io_))
  ------------------
  |  Branch (399:18): [True: 1.32k, False: 9.94k]
  ------------------
  400|  1.32k|      value += readStringWcharTag(io_, descriptor_name_length);  // Descriptor Name
  401|       |
  402|  11.2k|    uint16_t descriptor_value_data_type = readWORDTag(io_);
  403|  11.2k|    if (uint16_t descriptor_value_length = readWORDTag(io_)) {
  ------------------
  |  Branch (403:18): [True: 1.81k, False: 9.45k]
  ------------------
  404|       |      // Descriptor Value
  405|  1.81k|      switch (descriptor_value_data_type) {
  ------------------
  |  Branch (405:15): [True: 859, False: 956]
  ------------------
  406|    181|        case 0 /*Unicode string */:
  ------------------
  |  Branch (406:9): [True: 181, False: 1.63k]
  ------------------
  407|    181|          value += std::string(": ") + readStringWcharTag(io_, descriptor_value_length);
  408|    181|          break;
  409|    244|        case 1 /*BYTE array  */:
  ------------------
  |  Branch (409:9): [True: 244, False: 1.57k]
  ------------------
  410|    244|          value += std::string(": ") + readStringTag(io_, descriptor_value_length);
  411|    244|          break;
  412|    247|        case 2 /*BOOL*/:
  ------------------
  |  Branch (412:9): [True: 247, False: 1.56k]
  ------------------
  413|    247|          value += std::string(": ") + std::to_string(readWORDTag(io_));
  414|    247|          break;
  415|     10|        case 3 /*DWORD */:
  ------------------
  |  Branch (415:9): [True: 10, False: 1.80k]
  ------------------
  416|     10|          value += std::string(": ") + std::to_string(readDWORDTag(io_));
  417|     10|          break;
  418|     84|        case 4 /*QWORD */:
  ------------------
  |  Branch (418:9): [True: 84, False: 1.73k]
  ------------------
  419|     84|          value += std::string(": ") + std::to_string(readQWORDTag(io_));
  420|     84|          break;
  421|     93|        case 5 /*WORD*/:
  ------------------
  |  Branch (421:9): [True: 93, False: 1.72k]
  ------------------
  422|     93|          value += std::string(": ") + std::to_string(readWORDTag(io_));
  423|     93|          break;
  424|  1.81k|      }
  425|  1.81k|    }
  426|  11.2k|    value += std::string(", ");
  427|  11.2k|  }
  428|       |
  429|    103|  xmpData()["Xmp.video.ExtendedContentDescription"] = value;
  430|    103|}  // AsfVideo::extendedContentDescription
_ZN5Exiv28AsfVideo18contentDescriptionEv:
  432|    130|void AsfVideo::contentDescription() {
  433|    130|  uint16_t title_length = readWORDTag(io_);
  434|    130|  uint16_t author_length = readWORDTag(io_);
  435|    130|  uint16_t copyright_length = readWORDTag(io_);
  436|    130|  uint16_t desc_length = readWORDTag(io_);
  437|    130|  uint16_t rating_length = readWORDTag(io_);
  438|       |
  439|    130|  if (title_length)
  ------------------
  |  Branch (439:7): [True: 10, False: 120]
  ------------------
  440|     10|    xmpData()["Xmp.video.Title"] = readStringWcharTag(io_, title_length);
  441|       |
  442|    130|  if (author_length)
  ------------------
  |  Branch (442:7): [True: 11, False: 119]
  ------------------
  443|     11|    xmpData()["Xmp.video.Author"] = readStringWcharTag(io_, author_length);
  444|       |
  445|    130|  if (copyright_length)
  ------------------
  |  Branch (445:7): [True: 43, False: 87]
  ------------------
  446|     43|    xmpData()["Xmp.video.Copyright"] = readStringWcharTag(io_, copyright_length);
  447|       |
  448|    130|  if (desc_length)
  ------------------
  |  Branch (448:7): [True: 118, False: 12]
  ------------------
  449|    118|    xmpData()["Xmp.video.Description"] = readStringWcharTag(io_, desc_length);
  450|       |
  451|    130|  if (rating_length)
  ------------------
  |  Branch (451:7): [True: 116, False: 14]
  ------------------
  452|    116|    xmpData()["Xmp.video.Rating"] = readStringWcharTag(io_, rating_length);
  453|       |
  454|    130|}  // AsfVideo::extendedContentDescription
_ZN5Exiv28AsfVideo14filePropertiesEv:
  456|     87|void AsfVideo::fileProperties() {
  457|     87|  DataBuf FileIddBuf(GUID);
  458|     87|  io_->readOrThrow(FileIddBuf.data(), FileIddBuf.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  459|     87|  xmpData()["Xmp.video.FileID"] = GUIDTag(FileIddBuf.data()).to_string();
  460|     87|  xmpData()["Xmp.video.FileLength"] = readQWORDTag(io_);
  461|     87|  xmpData()["Xmp.video.CreationDate"] = readQWORDTag(io_);
  462|     87|  xmpData()["Xmp.video.DataPackets"] = readQWORDTag(io_);
  463|     87|  xmpData()["Xmp.video.duration"] = readQWORDTag(io_);
  464|     87|  xmpData()["Xmp.video.SendDuration"] = readQWORDTag(io_);
  465|     87|  xmpData()["Xmp.video.Preroll"] = readQWORDTag(io_);
  466|       |
  467|     87|  io_->seek(io_->tell() + DWORD + DWORD + DWORD,
  468|     87|            BasicIo::beg);  // ignore Flags, Minimum Data Packet Size and Maximum Data Packet Size
  469|     87|  xmpData()["Xmp.video.MaxBitRate"] = readDWORDTag(io_);
  470|     87|}  // AsfVideo::fileProperties
_ZN5Exiv214newAsfInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEERKNS_15ImageCtorParamsE:
  472|    400|Image::UniquePtr newAsfInstance(BasicIo::UniquePtr io, const ImageCtorParams& params) {
  473|    400|  auto image = std::make_unique<AsfVideo>(std::move(io), params);
  474|    400|  if (!image->good()) {
  ------------------
  |  Branch (474:7): [True: 0, False: 400]
  ------------------
  475|      0|    return nullptr;
  476|      0|  }
  477|    400|  return image;
  478|    400|}
_ZN5Exiv29isAsfTypeERNS_7BasicIoEb:
  480|  8.50k|bool isAsfType(BasicIo& iIo, bool advance) {
  481|  8.50k|  byte buf[GUID];
  482|  8.50k|  iIo.read(buf, GUID);
  483|       |
  484|  8.50k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (484:7): [True: 0, False: 8.50k]
  |  Branch (484:22): [True: 167, False: 8.33k]
  ------------------
  485|    167|    return false;
  486|    167|  }
  487|       |
  488|  8.33k|  bool matched = isASFType(buf);
  489|  8.33k|  if (!advance || !matched) {
  ------------------
  |  Branch (489:7): [True: 8.33k, False: 0]
  |  Branch (489:19): [True: 0, False: 0]
  ------------------
  490|  8.33k|    iIo.seek(0, BasicIo::beg);
  491|  8.33k|  }
  492|       |
  493|  8.33k|  return matched;
  494|  8.50k|}
asfvideo.cpp:_ZN5Exiv2L9isASFTypeEPKh:
  178|  8.33k|static bool isASFType(const byte buf[]) {
  179|  8.33k|  return Header == AsfVideo::GUIDTag(buf);
  180|  8.33k|}

_ZN5Exiv27BasicIoD2Ev:
   60|  61.8k|BasicIo::~BasicIo() = default;
_ZN5Exiv27BasicIo11readOrThrowEPhmNS_9ErrorCodeE:
   62|  3.39M|void BasicIo::readOrThrow(byte* buf, size_t rcount, ErrorCode err) {
   63|  3.39M|  const size_t nread = read(buf, rcount);
   64|  3.39M|  Internal::enforce(nread == rcount, err);
   65|  3.39M|  Internal::enforce(!error(), err);
   66|  3.39M|}
_ZN5Exiv27BasicIo11seekOrThrowElNS0_8PositionENS_9ErrorCodeE:
   68|  71.9k|void BasicIo::seekOrThrow(int64_t offset, Position pos, ErrorCode err) {
   69|  71.9k|  const int r = seek(offset, pos);
   70|  71.9k|  Internal::enforce(r == 0, err);
   71|  71.9k|}
_ZN5Exiv25MemIo4ImplC2EPKhm:
  627|  38.5k|MemIo::Impl::Impl(const byte* data, size_t size) : data_(const_cast<byte*>(data)), size_(size) {
  628|  38.5k|}
_ZN5Exiv25MemIo4Impl7reserveEm:
  681|  3.61M|void MemIo::Impl::reserve(size_t wcount) {
  682|  3.61M|  const size_t need = wcount + idx_;
  683|  3.61M|  size_t blockSize = 32 * 1024;  // 32768
  684|  3.61M|  const size_t maxBlockSize = 4 * 1024 * 1024;
  685|       |
  686|  3.61M|  if (!isMalloced_) {
  ------------------
  |  Branch (686:7): [True: 15.1k, False: 3.59M]
  ------------------
  687|       |    // Minimum size for 1st block
  688|  15.1k|    auto size = std::max<size_t>(blockSize * (1 + need / blockSize), size_);
  689|  15.1k|    auto data = static_cast<byte*>(std::malloc(size));
  690|  15.1k|    if (!data) {
  ------------------
  |  Branch (690:9): [True: 0, False: 15.1k]
  ------------------
  691|      0|      throw Error(ErrorCode::kerMallocFailed);
  692|      0|    }
  693|  15.1k|    if (data_) {
  ------------------
  |  Branch (693:9): [True: 0, False: 15.1k]
  ------------------
  694|      0|      std::memcpy(data, data_, size_);
  695|      0|    }
  696|  15.1k|    data_ = data;
  697|  15.1k|    sizeAlloced_ = size;
  698|  15.1k|    isMalloced_ = true;
  699|  15.1k|  }
  700|       |
  701|  3.61M|  if (need > size_) {
  ------------------
  |  Branch (701:7): [True: 3.60M, False: 12.1k]
  ------------------
  702|  3.60M|    if (need > sizeAlloced_) {
  ------------------
  |  Branch (702:9): [True: 12.6k, False: 3.58M]
  ------------------
  703|  12.6k|      blockSize = std::min(2 * sizeAlloced_, maxBlockSize);
  704|       |      // Allocate in blocks
  705|  12.6k|      size_t want = blockSize * (1 + need / blockSize);
  706|  12.6k|      data_ = static_cast<byte*>(std::realloc(data_, want));
  707|  12.6k|      if (!data_) {
  ------------------
  |  Branch (707:11): [True: 0, False: 12.6k]
  ------------------
  708|      0|        throw Error(ErrorCode::kerMallocFailed);
  709|      0|      }
  710|  12.6k|      sizeAlloced_ = want;
  711|  12.6k|    }
  712|  3.60M|    size_ = need;
  713|  3.60M|  }
  714|  3.61M|}
_ZN5Exiv25MemIoC2Ev:
  716|  23.2k|MemIo::MemIo() : p_(std::make_unique<Impl>()) {
  717|  23.2k|}
_ZN5Exiv25MemIoC2EPKhm:
  719|  38.5k|MemIo::MemIo(const byte* data, size_t size) : p_(std::make_unique<Impl>(data, size)) {
  720|  38.5k|}
_ZN5Exiv25MemIoD2Ev:
  722|  61.8k|MemIo::~MemIo() {
  723|  61.8k|  if (p_->isMalloced_) {
  ------------------
  |  Branch (723:7): [True: 14.5k, False: 47.2k]
  ------------------
  724|  14.5k|    std::free(p_->data_);
  725|  14.5k|  }
  726|  61.8k|}
_ZN5Exiv25MemIo5writeEPKhm:
  728|  3.59M|size_t MemIo::write(const byte* data, size_t wcount) {
  729|  3.59M|  p_->reserve(wcount);
  730|  3.59M|  if (data) {
  ------------------
  |  Branch (730:7): [True: 3.58M, False: 12.1k]
  ------------------
  731|  3.58M|    std::memcpy(&p_->data_[p_->idx_], data, wcount);
  732|  3.58M|  }
  733|  3.59M|  p_->idx_ += wcount;
  734|  3.59M|  return wcount;
  735|  3.59M|}
_ZN5Exiv25MemIo8transferERNS_7BasicIoE:
  737|  10.2k|void MemIo::transfer(BasicIo& src) {
  738|  10.2k|  if (auto memIo = dynamic_cast<MemIo*>(&src)) {
  ------------------
  |  Branch (738:12): [True: 10.2k, False: 0]
  ------------------
  739|       |    // Optimization if src is another instance of MemIo
  740|  10.2k|    if (p_->isMalloced_) {
  ------------------
  |  Branch (740:9): [True: 557, False: 9.66k]
  ------------------
  741|    557|      std::free(p_->data_);
  742|    557|    }
  743|  10.2k|    p_->idx_ = 0;
  744|  10.2k|    p_->data_ = memIo->p_->data_;
  745|  10.2k|    p_->size_ = memIo->p_->size_;
  746|  10.2k|    p_->isMalloced_ = memIo->p_->isMalloced_;
  747|  10.2k|    memIo->p_->idx_ = 0;
  748|  10.2k|    memIo->p_->data_ = nullptr;
  749|  10.2k|    memIo->p_->size_ = 0;
  750|  10.2k|    memIo->p_->isMalloced_ = false;
  751|  10.2k|  } else {
  752|       |    // Generic reopen to reset position to start
  753|      0|    if (src.open() != 0) {
  ------------------
  |  Branch (753:9): [True: 0, False: 0]
  ------------------
  754|      0|      throw Error(ErrorCode::kerDataSourceOpenFailed, src.path(), strError());
  755|      0|    }
  756|      0|    p_->idx_ = 0;
  757|      0|    write(src);
  758|      0|    src.close();
  759|      0|  }
  760|  10.2k|  if (error() || src.error())
  ------------------
  |  Branch (760:7): [True: 0, False: 10.2k]
  |  Branch (760:18): [True: 0, False: 10.2k]
  ------------------
  761|      0|    throw Error(ErrorCode::kerMemoryTransferFailed, strError());
  762|  10.2k|}
_ZN5Exiv25MemIo4putbEh:
  782|  19.5k|int MemIo::putb(byte data) {
  783|  19.5k|  p_->reserve(1);
  784|  19.5k|  p_->data_[p_->idx_++] = data;
  785|  19.5k|  return data;
  786|  19.5k|}
_ZN5Exiv25MemIo4seekElNS_7BasicIo8PositionE:
  788|  1.15M|int MemIo::seek(int64_t offset, Position pos) {
  789|  1.15M|  int64_t newIdx = 0;
  790|       |
  791|  1.15M|  switch (pos) {
  ------------------
  |  Branch (791:11): [True: 1.15M, False: 0]
  ------------------
  792|   672k|    case BasicIo::cur:
  ------------------
  |  Branch (792:5): [True: 672k, False: 486k]
  ------------------
  793|   672k|      newIdx = p_->idx_ + offset;
  794|   672k|      break;
  795|   486k|    case BasicIo::beg:
  ------------------
  |  Branch (795:5): [True: 486k, False: 672k]
  ------------------
  796|   486k|      newIdx = offset;
  797|   486k|      break;
  798|     98|    case BasicIo::end:
  ------------------
  |  Branch (798:5): [True: 98, False: 1.15M]
  ------------------
  799|     98|      newIdx = p_->size_ + offset;
  800|     98|      break;
  801|  1.15M|  }
  802|       |
  803|  1.15M|  if (newIdx < 0)
  ------------------
  |  Branch (803:7): [True: 0, False: 1.15M]
  ------------------
  804|      0|    return 1;
  805|       |
  806|  1.15M|  if (newIdx > static_cast<int64_t>(p_->size_)) {
  ------------------
  |  Branch (806:7): [True: 4.58k, False: 1.15M]
  ------------------
  807|  4.58k|    p_->eof_ = true;
  808|  4.58k|    return 1;
  809|  4.58k|  }
  810|       |
  811|  1.15M|  p_->idx_ = static_cast<size_t>(newIdx);
  812|  1.15M|  p_->eof_ = false;
  813|  1.15M|  return 0;
  814|  1.15M|}
_ZN5Exiv25MemIo4mmapEb:
  816|  35.8k|byte* MemIo::mmap(bool /*isWriteable*/) {
  817|  35.8k|  return p_->data_;
  818|  35.8k|}
_ZNK5Exiv25MemIo4tellEv:
  824|   952k|size_t MemIo::tell() const {
  825|   952k|  return p_->idx_;
  826|   952k|}
_ZNK5Exiv25MemIo4sizeEv:
  828|   447k|size_t MemIo::size() const {
  829|   447k|  return p_->size_;
  830|   447k|}
_ZN5Exiv25MemIo4openEv:
  832|   165k|int MemIo::open() {
  833|   165k|  p_->idx_ = 0;
  834|   165k|  p_->eof_ = false;
  835|   165k|  return 0;
  836|   165k|}
_ZNK5Exiv25MemIo6isopenEv:
  838|  88.8k|bool MemIo::isopen() const {
  839|  88.8k|  return true;
  840|  88.8k|}
_ZN5Exiv25MemIo5closeEv:
  842|  86.3k|int MemIo::close() {
  843|  86.3k|  return 0;
  844|  86.3k|}
_ZN5Exiv25MemIo4readEm:
  846|  89.0k|DataBuf MemIo::read(size_t rcount) {
  847|  89.0k|  DataBuf buf(rcount);
  848|  89.0k|  size_t readCount = read(buf.data(), buf.size());
  849|  89.0k|  buf.resize(readCount);
  850|  89.0k|  return buf;
  851|  89.0k|}
_ZN5Exiv25MemIo4readEPhm:
  853|  4.55M|size_t MemIo::read(byte* buf, size_t rcount) {
  854|  4.55M|  const auto avail = std::max<size_t>(p_->size_ - p_->idx_, 0);
  855|  4.55M|  const auto allow = std::min<size_t>(rcount, avail);
  856|  4.55M|  if (allow > 0) {
  ------------------
  |  Branch (856:7): [True: 4.45M, False: 101k]
  ------------------
  857|  4.45M|    std::memcpy(buf, &p_->data_[p_->idx_], allow);
  858|  4.45M|  }
  859|  4.55M|  p_->idx_ += allow;
  860|  4.55M|  if (rcount > avail) {
  ------------------
  |  Branch (860:7): [True: 10.7k, False: 4.54M]
  ------------------
  861|  10.7k|    p_->eof_ = true;
  862|  10.7k|  }
  863|  4.55M|  return allow;
  864|  4.55M|}
_ZN5Exiv25MemIo4getbEv:
  866|  13.2M|int MemIo::getb() {
  867|  13.2M|  if (p_->idx_ >= p_->size_) {
  ------------------
  |  Branch (867:7): [True: 519, False: 13.2M]
  ------------------
  868|    519|    p_->eof_ = true;
  869|    519|    return EOF;
  870|    519|  }
  871|  13.2M|  return p_->data_[p_->idx_++];
  872|  13.2M|}
_ZNK5Exiv25MemIo5errorEv:
  874|  4.31M|int MemIo::error() const {
  875|  4.31M|  return 0;
  876|  4.31M|}
_ZNK5Exiv25MemIo3eofEv:
  878|   902k|bool MemIo::eof() const {
  879|   902k|  return p_->eof_;
  880|   902k|}
_ZNK5Exiv25MemIo4pathEv:
  882|  43.6k|const std::string& MemIo::path() const noexcept {
  883|  43.6k|  static std::string _path{"MemIo"};
  884|  43.6k|  return _path;
  885|  43.6k|}
_ZN5Exiv25MemIo16populateFakeDataEv:
  887|    870|void MemIo::populateFakeData() {
  888|    870|}
_ZN5Exiv25MemIo4ImplC2Ev:
  607|  23.2k|  Impl() = default;                     //!< Default constructor

_ZNK5Exiv24Iloc8toStringEv:
   82|     35|std::string Iloc::toString() const {
   83|     35|  return stringFormat("ID = {} from,length = {},{}", ID_, start_, length_);
  ------------------
  |  |   18|     35|#define stringFormat std::format
  ------------------
   84|     35|}
_ZN5Exiv29BmffImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEERKNS_15ImageCtorParamsE:
   87|  5.19k|    Image(ImageType::bmff, mdExif | mdIptc | mdXmp, std::move(io), params) {
   88|  5.19k|}  // BmffImage::BmffImage
_ZN5Exiv29BmffImage7toAsciiEj:
   90|  60.1k|std::string BmffImage::toAscii(uint32_t n) {
   91|  60.1k|  std::string result(sizeof(uint32_t), '\0');
   92|   300k|  for (size_t i = 0; i < result.size(); ++i) {
  ------------------
  |  Branch (92:22): [True: 240k, False: 60.1k]
  ------------------
   93|   240k|    auto c = static_cast<unsigned char>(n >> (8 * (3 - i)));
   94|   240k|    if (c == 0)
  ------------------
  |  Branch (94:9): [True: 18.4k, False: 222k]
  ------------------
   95|  18.4k|      result[i] = '_';
   96|   222k|    else if (c < 32 || c > 126)
  ------------------
  |  Branch (96:14): [True: 7.74k, False: 214k]
  |  Branch (96:24): [True: 19.3k, False: 195k]
  ------------------
   97|  27.1k|      result[i] = '.';
   98|   195k|    else
   99|   195k|      result[i] = static_cast<char>(c);
  100|   240k|  }
  101|  60.1k|  return result;
  102|  60.1k|}
_ZN5Exiv29BmffImage7fullBoxEj:
  109|  74.7k|bool BmffImage::fullBox(uint32_t box) {
  110|  74.7k|  return box == TAG::meta || box == TAG::iinf || box == TAG::iloc || box == TAG::thmb || box == TAG::prvw;
  ------------------
  |  Branch (110:10): [True: 14.6k, False: 60.1k]
  |  Branch (110:30): [True: 969, False: 59.1k]
  |  Branch (110:50): [True: 524, False: 58.6k]
  |  Branch (110:70): [True: 1.08k, False: 57.5k]
  |  Branch (110:90): [True: 1.48k, False: 56.0k]
  ------------------
  111|  74.7k|}
_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|    325|std::string BmffImage::uuidName(const Exiv2::DataBuf& uuid) {
  166|    325|  const char* uuidCano = "\x85\xC0\xB6\x87\x82\xF\x11\xE0\x81\x11\xF4\xCE\x46\x2B\x6A\x48";
  167|    325|  const char* uuidXmp = "\xBE\x7A\xCF\xCB\x97\xA9\x42\xE8\x9C\x71\x99\x94\x91\xE3\xAF\xAC";
  168|    325|  const char* uuidCanp = "\xEA\xF4\x2B\x5E\x1C\x98\x4B\x88\xB9\xFB\xB7\xDC\x40\x6E\x4D\x16";
  169|    325|  if (uuid.cmpBytes(0, uuidCano, 16) == 0)
  ------------------
  |  Branch (169:7): [True: 80, False: 245]
  ------------------
  170|     80|    return "cano";
  171|    245|  if (uuid.cmpBytes(0, uuidXmp, 16) == 0)
  ------------------
  |  Branch (171:7): [True: 65, False: 180]
  ------------------
  172|     65|    return "xmp";
  173|    180|  if (uuid.cmpBytes(0, uuidCanp, 16) == 0)
  ------------------
  |  Branch (173:7): [True: 22, False: 158]
  ------------------
  174|     22|    return "canp";
  175|    158|  return "";
  176|    180|}
_ZN5Exiv29BmffImage16brotliUncompressEPKhmRNS_7DataBufE:
  184|    216|void BmffImage::brotliUncompress(const byte* compressedBuf, size_t compressedBufSize, DataBuf& arr) {
  185|    216|  auto decoder = BrotliDecoder(BrotliDecoderCreateInstance(nullptr, nullptr, nullptr), BrotliDecoderDestroyInstance);
  186|    216|  size_t uncompressedLen = compressedBufSize * 2;  // just a starting point
  187|    216|  BrotliDecoderResult result = BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT;
  188|    216|  int dos = 0;
  189|    216|  size_t available_in = compressedBufSize;
  190|    216|  const byte* next_in = compressedBuf;
  191|    216|  size_t available_out;
  192|    216|  byte* next_out;
  193|    216|  size_t total_out = 0;
  194|       |
  195|    505|  while (result != BROTLI_DECODER_RESULT_SUCCESS) {
  ------------------
  |  Branch (195:10): [True: 329, False: 176]
  ------------------
  196|    329|    arr.alloc(uncompressedLen);
  197|    329|    available_out = uncompressedLen - total_out;
  198|    329|    next_out = arr.data() + total_out;
  199|    329|    result =
  200|    329|        BrotliDecoderDecompressStream(decoder.get(), &available_in, &next_in, &available_out, &next_out, &total_out);
  201|    329|    if (result == BROTLI_DECODER_RESULT_SUCCESS) {
  ------------------
  |  Branch (201:9): [True: 176, False: 153]
  ------------------
  202|    176|      arr.resize(total_out);
  203|    176|    } else if (result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) {
  ------------------
  |  Branch (203:16): [True: 121, False: 32]
  ------------------
  204|    121|      uncompressedLen *= 2;
  205|       |      // DoS protection - can't be bigger than 128k
  206|    121|      if (uncompressedLen > 131072) {
  ------------------
  |  Branch (206:11): [True: 20, False: 101]
  ------------------
  207|     20|        if (++dos > 1 || total_out > 131072)
  ------------------
  |  Branch (207:13): [True: 6, False: 14]
  |  Branch (207:26): [True: 2, False: 12]
  ------------------
  208|      8|          break;
  209|     12|        uncompressedLen = 131072;
  210|     12|      }
  211|    121|    } else if (result == BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT) {
  ------------------
  |  Branch (211:16): [True: 11, False: 21]
  ------------------
  212|       |      // compressed input buffer in incomplete
  213|     11|      throw Error(ErrorCode::kerFailedToReadImageData);
  214|     21|    } else {
  215|       |      // something bad happened
  216|     21|      throw Error(ErrorCode::kerErrorMessage, BrotliDecoderErrorString(BrotliDecoderGetErrorCode(decoder.get())));
  217|     21|    }
  218|    329|  }
  219|       |
  220|    184|  if (result != BROTLI_DECODER_RESULT_SUCCESS) {
  ------------------
  |  Branch (220:7): [True: 8, False: 176]
  ------------------
  221|      8|    throw Error(ErrorCode::kerFailedToReadImageData);
  222|      8|  }
  223|    184|}
_ZN5Exiv29BmffImage10boxHandlerERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEmm:
  227|  76.6k|                               uint64_t pbox_end, size_t depth) {
  228|  76.6k|  const size_t address = io_->tell();
  229|       |  // never visit a box twice!
  230|  76.6k|  if (depth == 0)
  ------------------
  |  Branch (230:7): [True: 60.5k, False: 16.0k]
  ------------------
  231|  60.5k|    visits_.clear();
  232|  76.6k|  if (visits_.contains(address) || visits_.size() > visits_max_ || depth >= max_recursion_depth_) {
  ------------------
  |  Branch (232:7): [True: 0, False: 76.6k]
  |  Branch (232:36): [True: 9, False: 76.5k]
  |  Branch (232:68): [True: 0, False: 76.5k]
  ------------------
  233|      9|    throw Error(ErrorCode::kerCorruptedMetadata);
  234|      9|  }
  235|  76.5k|  visits_.insert(address);
  236|       |
  237|       |#ifdef EXIV2_DEBUG_MESSAGES
  238|       |  bool bTrace = true;
  239|       |#else
  240|  76.5k|  bool bTrace = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (240:17): [True: 22.6k, False: 53.9k]
  |  Branch (240:39): [True: 22.5k, False: 31.3k]
  ------------------
  241|  76.5k|#endif
  242|       |
  243|       |  // 8-byte buffer for parsing the box length and type.
  244|  76.5k|  byte hdrbuf[2 * sizeof(uint32_t)];
  245|       |
  246|  76.5k|  size_t hdrsize = sizeof(hdrbuf);
  247|  76.5k|  Internal::enforce(hdrsize <= static_cast<size_t>(pbox_end - address), Exiv2::ErrorCode::kerCorruptedMetadata);
  248|  76.5k|  if (io_->read(hdrbuf, sizeof(hdrbuf)) != sizeof(hdrbuf))
  ------------------
  |  Branch (248:7): [True: 0, False: 76.5k]
  ------------------
  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|  76.5k|  uint64_t box_length = getULong(&hdrbuf[0], endian_);
  254|  76.5k|  uint32_t box_type = getULong(&hdrbuf[sizeof(uint32_t)], endian_);
  255|  76.5k|  bool bLF = true;
  256|       |
  257|  76.5k|  if (bTrace) {
  ------------------
  |  Branch (257:7): [True: 45.2k, False: 31.3k]
  ------------------
  258|  45.2k|    bLF = true;
  259|  45.2k|    out << Internal::indent(depth) << "Exiv2::BmffImage::boxHandler: " << toAscii(box_type)
  260|  45.2k|        << stringFormat(" {:8}->{} ", address, box_length);
  ------------------
  |  |   18|  45.2k|#define stringFormat std::format
  ------------------
  261|  45.2k|  }
  262|       |
  263|  76.5k|  if (box_length == 1) {
  ------------------
  |  Branch (263:7): [True: 75, False: 76.5k]
  ------------------
  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|  76.5k|  if (box_length == 0) {
  ------------------
  |  Branch (272:7): [True: 29.4k, False: 47.1k]
  ------------------
  273|       |    // Zero length is also valid and indicates box extends to the end of file.
  274|  29.4k|    box_length = pbox_end - address;
  275|  29.4k|  }
  276|       |
  277|       |  // read data in box and restore file position
  278|  76.5k|  const size_t restore = io_->tell();
  279|  76.5k|  Internal::enforce(box_length >= hdrsize, Exiv2::ErrorCode::kerCorruptedMetadata);
  280|  76.5k|  Internal::enforce(box_length - hdrsize <= pbox_end - restore, Exiv2::ErrorCode::kerCorruptedMetadata);
  281|       |
  282|  76.5k|  const auto buffer_size = box_length - hdrsize;
  283|  76.5k|  if (skipBox(box_type)) {
  ------------------
  |  Branch (283:7): [True: 1.33k, False: 75.2k]
  ------------------
  284|  1.33k|    if (bTrace) {
  ------------------
  |  Branch (284:9): [True: 882, False: 454]
  ------------------
  285|    882|      out << '\n';
  286|    882|    }
  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.33k|    return restore + buffer_size;
  290|  1.33k|  }
  291|       |
  292|  75.2k|  DataBuf data(static_cast<size_t>(buffer_size));
  293|  75.2k|  const size_t box_end = restore + data.size();
  294|  75.2k|  io_->read(data.data(), data.size());
  295|  75.2k|  io_->seek(restore, BasicIo::beg);
  296|       |
  297|  75.2k|  size_t skip = 0;  // read position in data.pData_
  298|  75.2k|  uint8_t version = 0;
  299|  75.2k|  uint32_t flags = 0;
  300|       |
  301|  75.2k|  if (fullBox(box_type)) {
  ------------------
  |  Branch (301:7): [True: 18.7k, False: 56.5k]
  ------------------
  302|  18.7k|    Internal::enforce(data.size() - skip >= 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  303|  18.7k|    flags = data.read_uint32(skip, endian_);  // version/flags
  304|  18.7k|    version = static_cast<uint8_t>(flags >> 24);
  305|  18.7k|    flags &= 0x00ffffff;
  306|  18.7k|    skip += 4;
  307|  18.7k|  }
  308|       |
  309|  75.2k|  switch (box_type) {
  310|       |    //  See notes in skipBox()
  311|  22.9k|    case TAG::ftyp: {
  ------------------
  |  Branch (311:5): [True: 22.9k, False: 52.2k]
  ------------------
  312|  22.9k|      Internal::enforce(data.size() >= 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  313|  22.9k|      fileType_ = data.read_uint32(0, endian_);
  314|  22.9k|      if (bTrace) {
  ------------------
  |  Branch (314:11): [True: 14.8k, False: 8.13k]
  ------------------
  315|  14.8k|        out << "brand: " << toAscii(fileType_);
  316|  14.8k|      }
  317|  22.9k|    } break;
  318|       |
  319|       |    // 8.11.6.1
  320|    968|    case TAG::iinf: {
  ------------------
  |  Branch (320:5): [True: 968, False: 74.2k]
  ------------------
  321|    968|      if (bTrace) {
  ------------------
  |  Branch (321:11): [True: 516, False: 452]
  ------------------
  322|    516|        out << '\n';
  323|    516|        bLF = false;
  324|    516|      }
  325|       |
  326|    968|      Internal::enforce(data.size() - skip >= 2, Exiv2::ErrorCode::kerCorruptedMetadata);
  327|    968|      uint16_t n = data.read_uint16(skip, endian_);
  328|    968|      skip += 2;
  329|       |
  330|    968|      io_->seek(skip, BasicIo::cur);
  331|  1.92k|      while (n-- > 0) {
  ------------------
  |  Branch (331:14): [True: 956, False: 968]
  ------------------
  332|    956|        io_->seek(boxHandler(out, option, box_end, depth + 1), BasicIo::beg);
  333|    956|      }
  334|    968|    } break;
  335|       |
  336|       |    // 8.11.6.2
  337|  1.09k|    case TAG::infe: {  // .__._.__hvc1_ 2 0 0 1 0 1 0 0 104 118 99 49 0
  ------------------
  |  Branch (337:5): [True: 1.09k, False: 74.1k]
  ------------------
  338|  1.09k|      Internal::enforce(data.size() - skip >= 8, Exiv2::ErrorCode::kerCorruptedMetadata);
  339|  1.09k|      /* getULong (data.pData_+skip,endian_) ; */ skip += 4;
  340|  1.09k|      uint16_t ID = data.read_uint16(skip, endian_);
  341|  1.09k|      skip += 2;
  342|  1.09k|      /* getShort(data.pData_+skip,endian_) ; */ skip += 2;  // protection
  343|  1.09k|      std::string id;
  344|       |      // Check that the string has a '\0' terminator.
  345|  1.09k|      const char* str = data.c_str(skip);
  346|  1.09k|      const size_t maxlen = data.size() - skip;
  347|  1.09k|      Internal::enforce(maxlen > 0 && strnlen(str, maxlen) < maxlen, Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (347:25): [True: 1.09k, False: 1]
  |  Branch (347:39): [True: 1.09k, False: 1]
  ------------------
  348|  1.09k|      std::string name(str);
  349|  1.09k|      if (Internal::contains(name, "Exif")) {  // "Exif" or "ExifExif"
  ------------------
  |  Branch (349:11): [True: 54, False: 1.04k]
  ------------------
  350|     54|        exifID_ = ID;
  351|     54|        id = " *** Exif ***";
  352|  1.04k|      } else if (Internal::contains(name, "mime\0xmp") || Internal::contains(name, "mime\0application/rdf+xml")) {
  ------------------
  |  Branch (352:18): [True: 62, False: 979]
  |  Branch (352:59): [True: 0, False: 979]
  ------------------
  353|     60|        xmpID_ = ID;
  354|     60|        id = " *** XMP ***";
  355|     60|      }
  356|  1.09k|      if (bTrace) {
  ------------------
  |  Branch (356:11): [True: 636, False: 459]
  ------------------
  357|    636|        out << stringFormat("ID = {:3} {} {}", ID, name, id);
  ------------------
  |  |   18|    636|#define stringFormat std::format
  ------------------
  358|    636|      }
  359|  1.09k|    } break;
  360|       |
  361|     81|    case TAG::moov:
  ------------------
  |  Branch (361:5): [True: 81, False: 75.1k]
  ------------------
  362|    128|    case TAG::iprp:
  ------------------
  |  Branch (362:5): [True: 47, False: 75.2k]
  ------------------
  363|    375|    case TAG::ipco:
  ------------------
  |  Branch (363:5): [True: 247, False: 75.0k]
  ------------------
  364|  15.0k|    case TAG::meta: {
  ------------------
  |  Branch (364:5): [True: 14.6k, False: 60.5k]
  ------------------
  365|  15.0k|      if (bTrace) {
  ------------------
  |  Branch (365:11): [True: 5.97k, False: 9.06k]
  ------------------
  366|  5.97k|        out << '\n';
  367|  5.97k|        bLF = false;
  368|  5.97k|      }
  369|  15.0k|      io_->seek(skip, BasicIo::cur);
  370|  29.9k|      while (io_->tell() < box_end) {
  ------------------
  |  Branch (370:14): [True: 14.9k, False: 15.0k]
  ------------------
  371|  14.9k|        io_->seek(boxHandler(out, option, box_end, depth + 1), BasicIo::beg);
  372|  14.9k|      }
  373|       |      // post-process meta box to recover Exif and XMP
  374|  15.0k|      if (box_type == TAG::meta) {
  ------------------
  |  Branch (374:11): [True: 8.63k, False: 6.40k]
  ------------------
  375|  8.63k|        auto ilo = ilocs_.find(exifID_);
  376|  8.63k|        if (ilo != ilocs_.end()) {
  ------------------
  |  Branch (376:13): [True: 30, False: 8.60k]
  ------------------
  377|     30|          const Iloc& iloc = ilo->second;
  378|     30|          if (bTrace) {
  ------------------
  |  Branch (378:15): [True: 22, False: 8]
  ------------------
  379|     22|            out << Internal::indent(depth) << "Exiv2::BMFF Exif: " << iloc.toString() << '\n';
  380|     22|          }
  381|     30|          parseTiff(Internal::Tag::root, iloc.length_, iloc.start_);
  382|     30|        }
  383|  8.63k|        ilo = ilocs_.find(xmpID_);
  384|  8.63k|        if (ilo != ilocs_.end()) {
  ------------------
  |  Branch (384:13): [True: 18, False: 8.61k]
  ------------------
  385|     18|          const Iloc& iloc = ilo->second;
  386|     18|          if (bTrace) {
  ------------------
  |  Branch (386:15): [True: 13, False: 5]
  ------------------
  387|     13|            out << Internal::indent(depth) << "Exiv2::BMFF XMP: " << iloc.toString() << '\n';
  388|     13|          }
  389|     18|          parseXmp(iloc.length_, iloc.start_);
  390|     18|        }
  391|  8.63k|        ilocs_.clear();
  392|  8.63k|      }
  393|  15.0k|    } break;
  394|       |
  395|       |    // 8.11.3.1
  396|    523|    case TAG::iloc: {
  ------------------
  |  Branch (396:5): [True: 523, False: 74.7k]
  ------------------
  397|    523|      Internal::enforce(data.size() - skip >= 2, Exiv2::ErrorCode::kerCorruptedMetadata);
  398|    523|      uint8_t u = data.read_uint8(skip++);
  399|    523|      uint16_t offsetSize = u >> 4;
  400|    523|      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|    523|      skip++;
  409|    523|#endif
  410|    523|      Internal::enforce(data.size() - skip >= (version < 2u ? 2u : 4u), Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (410:48): [True: 424, False: 99]
  ------------------
  411|    523|      uint32_t itemCount = version < 2 ? data.read_uint16(skip, endian_) : data.read_uint32(skip, endian_);
  ------------------
  |  Branch (411:28): [True: 423, False: 100]
  ------------------
  412|    523|      skip += version < 2 ? 2 : 4;
  ------------------
  |  Branch (412:15): [True: 423, False: 100]
  ------------------
  413|    523|      if (itemCount && itemCount < box_length / 14 && offsetSize == 4 && lengthSize == 4 &&
  ------------------
  |  Branch (413:11): [True: 471, False: 52]
  |  Branch (413:24): [True: 380, False: 91]
  |  Branch (413:55): [True: 351, False: 29]
  |  Branch (413:74): [True: 329, False: 22]
  ------------------
  414|    329|          ((box_length - 16) % itemCount) == 0) {
  ------------------
  |  Branch (414:11): [True: 311, False: 18]
  ------------------
  415|    311|        if (bTrace) {
  ------------------
  |  Branch (415:13): [True: 174, False: 137]
  ------------------
  416|    174|          out << '\n';
  417|    174|          bLF = false;
  418|    174|        }
  419|    311|        auto step = (static_cast<size_t>(box_length) - 16) / itemCount;  // length of data per item.
  420|    311|        size_t base = skip;
  421|  6.82k|        for (uint32_t i = 0; i < itemCount; i++) {
  ------------------
  |  Branch (421:30): [True: 6.51k, False: 311]
  ------------------
  422|  6.51k|          skip = base + (i * step);  // move in 14, 16 or 18 byte steps
  423|  6.51k|          Internal::enforce(data.size() - skip >= (version > 2u ? 4u : 2u), Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (423:52): [True: 41, False: 6.47k]
  ------------------
  424|  6.51k|          Internal::enforce(data.size() - skip >= step, Exiv2::ErrorCode::kerCorruptedMetadata);
  425|  6.51k|          uint32_t ID = version > 2 ? data.read_uint32(skip, endian_) : data.read_uint16(skip, endian_);
  ------------------
  |  Branch (425:25): [True: 33, False: 6.48k]
  ------------------
  426|  6.51k|          auto offset = [&data, skip, step] {
  427|  6.51k|            if (step == 14 || step == 16)
  428|  6.51k|              return data.read_uint32(skip + step - 8, endian_);
  429|  6.51k|            if (step == 18)
  430|  6.51k|              return data.read_uint32(skip + 4, endian_);
  431|  6.51k|            return 0u;
  432|  6.51k|          }();
  433|       |
  434|  6.51k|          uint32_t ldata = data.read_uint32(skip + step - 4, endian_);
  435|  6.51k|          if (bTrace) {
  ------------------
  |  Branch (435:15): [True: 3.47k, False: 3.04k]
  ------------------
  436|  3.47k|            out << Internal::indent(depth)
  437|  3.47k|                << stringFormat("{:8} | {:8} |   ID | {:4} | {:6},{:6}\n", address + skip, step, ID, offset, ldata);
  ------------------
  |  |   18|  3.47k|#define stringFormat std::format
  ------------------
  438|  3.47k|          }
  439|       |          // save data for post-processing in meta box
  440|  6.51k|          if (offset && ldata && ID != unknownID_) {
  ------------------
  |  Branch (440:15): [True: 5.47k, False: 1.03k]
  |  Branch (440:25): [True: 5.20k, False: 271]
  |  Branch (440:34): [True: 4.93k, False: 271]
  ------------------
  441|  4.93k|            ilocs_[ID] = Iloc{ID, offset, ldata};
  442|  4.93k|          }
  443|  6.51k|        }
  444|    311|      }
  445|    523|    } break;
  446|       |
  447|    346|    case TAG::ispe: {
  ------------------
  |  Branch (447:5): [True: 346, False: 74.9k]
  ------------------
  448|    346|      Internal::enforce(data.size() - skip >= 12, Exiv2::ErrorCode::kerCorruptedMetadata);
  449|    346|      skip += 4;
  450|    346|      uint32_t width = data.read_uint32(skip, endian_);
  451|    346|      skip += 4;
  452|    346|      uint32_t height = data.read_uint32(skip, endian_);
  453|    346|      skip += 4;
  454|    346|      if (bTrace) {
  ------------------
  |  Branch (454:11): [True: 222, False: 124]
  ------------------
  455|    222|        out << stringFormat("pixelWidth_, pixelHeight_ = {}, {}", width, height);
  ------------------
  |  |   18|    222|#define stringFormat std::format
  ------------------
  456|    222|      }
  457|       |      // HEIC files can have multiple ispe records
  458|       |      // Store largest width/height
  459|    346|      if (width > pixelWidth_ && height > pixelHeight_) {
  ------------------
  |  Branch (459:11): [True: 207, False: 139]
  |  Branch (459:34): [True: 21, False: 186]
  ------------------
  460|     21|        pixelWidth_ = width;
  461|     21|        pixelHeight_ = height;
  462|     21|      }
  463|    346|    } break;
  464|       |
  465|       |    // 12.1.5.2
  466|    267|    case TAG::colr: {
  ------------------
  |  Branch (466:5): [True: 267, False: 74.9k]
  ------------------
  467|    267|      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: 253, False: 14]
  ------------------
  468|       |        // https://www.ics.uci.edu/~dan/class/267/papers/jpeg2000.pdf
  469|    253|        uint8_t meth = data.read_uint8(skip + 0);
  470|    253|        uint8_t prec = data.read_uint8(skip + 1);
  471|    253|        uint8_t approx = data.read_uint8(skip + 2);
  472|    253|        auto colour_type = std::string(data.c_str(), 4);
  473|    253|        skip += 4;
  474|    253|        if (colour_type == "rICC" || colour_type == "prof") {
  ------------------
  |  Branch (474:13): [True: 1, False: 252]
  |  Branch (474:38): [True: 5, False: 247]
  ------------------
  475|      6|          DataBuf profile(data.c_data(skip), data.size() - skip);
  476|      6|          setIccProfile(std::move(profile));
  477|    247|        } else if (meth == 2 && prec == 0 && approx == 0) {
  ------------------
  |  Branch (477:20): [True: 89, False: 158]
  |  Branch (477:33): [True: 80, False: 9]
  |  Branch (477:46): [True: 74, False: 6]
  ------------------
  478|       |          // JP2000 files have a 3 byte head // 2 0 0 icc......
  479|     74|          skip -= 1;
  480|     74|          DataBuf profile(data.c_data(skip), data.size() - skip);
  481|     74|          setIccProfile(std::move(profile));
  482|     74|        }
  483|    253|      }
  484|    267|    } break;
  485|       |
  486|    325|    case TAG::uuid: {
  ------------------
  |  Branch (486:5): [True: 325, False: 74.9k]
  ------------------
  487|    325|      DataBuf uuid(16);
  488|    325|      io_->read(uuid.data(), uuid.size());
  489|    325|      std::string name = uuidName(uuid);
  490|    325|      if (bTrace) {
  ------------------
  |  Branch (490:11): [True: 186, False: 139]
  ------------------
  491|    186|        out << " uuidName " << name << '\n';
  492|    186|        bLF = false;
  493|    186|      }
  494|    325|      if (name == "cano" || name == "canp") {
  ------------------
  |  Branch (494:11): [True: 80, False: 245]
  |  Branch (494:29): [True: 22, False: 223]
  ------------------
  495|    102|        if (name == "canp") {
  ------------------
  |  Branch (495:13): [True: 22, False: 80]
  ------------------
  496|       |          // based on
  497|       |          // https://github.com/lclevy/canon_cr3/blob/7be75d6/parse_cr3.py#L271
  498|     22|          io_->seek(8, BasicIo::cur);
  499|     22|        }
  500|    291|        while (io_->tell() < box_end) {
  ------------------
  |  Branch (500:16): [True: 189, False: 102]
  ------------------
  501|    189|          io_->seek(boxHandler(out, option, box_end, depth + 1), BasicIo::beg);
  502|    189|        }
  503|    223|      } else if (name == "xmp") {
  ------------------
  |  Branch (503:18): [True: 65, False: 158]
  ------------------
  504|     65|        parseXmp(box_length, io_->tell());
  505|     65|      }
  506|    325|    } break;
  507|       |
  508|  1.68k|    case TAG::cmt1:
  ------------------
  |  Branch (508:5): [True: 1.68k, False: 73.5k]
  ------------------
  509|  1.68k|      parseTiff(Internal::Tag::root, box_length);
  510|  1.68k|      break;
  511|    223|    case TAG::cmt2:
  ------------------
  |  Branch (511:5): [True: 223, False: 75.0k]
  ------------------
  512|    223|      parseTiff(Internal::Tag::cmt2, box_length);
  513|    223|      break;
  514|  11.4k|    case TAG::cmt3:
  ------------------
  |  Branch (514:5): [True: 11.4k, False: 63.8k]
  ------------------
  515|  11.4k|      parseTiff(Internal::Tag::cmt3, box_length);
  516|  11.4k|      break;
  517|  1.13k|    case TAG::cmt4:
  ------------------
  |  Branch (517:5): [True: 1.13k, False: 74.1k]
  ------------------
  518|  1.13k|      parseTiff(Internal::Tag::cmt4, box_length);
  519|  1.13k|      break;
  520|  8.27k|    case TAG::exif:
  ------------------
  |  Branch (520:5): [True: 8.27k, False: 66.9k]
  ------------------
  521|  8.27k|      parseTiff(Internal::Tag::root, buffer_size, io_->tell());
  522|  8.27k|      break;
  523|    731|    case TAG::xml:
  ------------------
  |  Branch (523:5): [True: 731, False: 74.5k]
  ------------------
  524|    731|      parseXmp(buffer_size, io_->tell());
  525|    731|      break;
  526|    216|    case TAG::brob: {
  ------------------
  |  Branch (526:5): [True: 216, False: 75.0k]
  ------------------
  527|    216|      Internal::enforce(data.size() >= 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  528|    216|      uint32_t realType = data.read_uint32(0, endian_);
  529|    216|      if (bTrace) {
  ------------------
  |  Branch (529:11): [True: 98, False: 118]
  ------------------
  530|     98|        out << "type: " << toAscii(realType);
  531|     98|      }
  532|    216|#ifdef EXV_HAVE_BROTLI
  533|    216|      DataBuf arr;
  534|    216|      brotliUncompress(data.c_data(4), data.size() - 4, arr);
  535|    216|      const DecodeParams dp(max_recursion_depth_);
  536|    216|      if (realType == TAG::exif) {
  ------------------
  |  Branch (536:11): [True: 0, False: 216]
  ------------------
  537|      0|        uint32_t offset = Safe::add(arr.read_uint32(0, endian_), 4u);
  538|      0|        Internal::enforce(Safe::add(offset, 4u) < arr.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  539|      0|        Internal::TiffParserWorker::decode(exifData(), iptcData(), xmpData(), arr.c_data(offset), arr.size() - offset,
  540|      0|                                           Internal::Tag::root, Internal::TiffMapping::findDecoder, dp);
  541|    216|      } else if (realType == TAG::xml) {
  ------------------
  |  Branch (541:18): [True: 0, False: 216]
  ------------------
  542|      0|        try {
  543|      0|          Exiv2::XmpParser::decode(xmpData(), std::string(arr.c_str(), arr.size()), dp);
  544|      0|        } catch (...) {
  545|      0|          throw Error(ErrorCode::kerFailedToReadImageData);
  546|      0|        }
  547|      0|      }
  548|    216|#endif
  549|    216|    } break;
  550|  1.08k|    case TAG::thmb:
  ------------------
  |  Branch (550:5): [True: 1.08k, False: 74.1k]
  ------------------
  551|  1.08k|      switch (version) {
  552|    405|        case 0:  // JPEG
  ------------------
  |  Branch (552:9): [True: 405, False: 675]
  ------------------
  553|    405|          parseCr3Preview(data, out, bTrace, version, skip, skip + 2, skip + 4, skip + 12);
  554|    405|          break;
  555|    356|        case 1:  // HDR
  ------------------
  |  Branch (555:9): [True: 356, False: 724]
  ------------------
  556|    356|          parseCr3Preview(data, out, bTrace, version, skip + 2, skip + 4, skip + 8, skip + 12);
  557|    356|          break;
  558|    319|        default:
  ------------------
  |  Branch (558:9): [True: 319, False: 761]
  ------------------
  559|    319|          break;
  560|  1.08k|      }
  561|  1.08k|      break;
  562|  1.48k|    case TAG::prvw:
  ------------------
  |  Branch (562:5): [True: 1.48k, False: 73.7k]
  ------------------
  563|  1.48k|      switch (version) {
  564|  1.44k|        case 0:  // JPEG
  ------------------
  |  Branch (564:9): [True: 1.44k, False: 35]
  ------------------
  565|  1.45k|        case 1:  // HDR
  ------------------
  |  Branch (565:9): [True: 4, False: 1.47k]
  ------------------
  566|  1.45k|          parseCr3Preview(data, out, bTrace, version, skip + 2, skip + 4, skip + 8, skip + 12);
  567|  1.45k|          break;
  568|     31|        default:
  ------------------
  |  Branch (568:9): [True: 31, False: 1.45k]
  ------------------
  569|     31|          break;
  570|  1.48k|      }
  571|  1.48k|      break;
  572|       |
  573|  7.03k|    default:
  ------------------
  |  Branch (573:5): [True: 7.03k, False: 68.2k]
  ------------------
  574|  7.03k|      break; /* do nothing */
  575|  75.2k|  }
  576|  68.4k|  if (bLF && bTrace)
  ------------------
  |  Branch (576:7): [True: 61.6k, False: 6.83k]
  |  Branch (576:14): [True: 37.4k, False: 24.1k]
  ------------------
  577|  37.4k|    out << '\n';
  578|       |
  579|       |  // return address of next box
  580|  68.4k|  return box_end;
  581|  75.2k|}
_ZN5Exiv29BmffImage9parseTiffEjmm:
  583|  8.30k|void BmffImage::parseTiff(uint32_t root_tag, uint64_t length, uint64_t start) {
  584|  8.30k|  Internal::enforce(start <= io_->size(), ErrorCode::kerCorruptedMetadata);
  585|  8.30k|  Internal::enforce(length <= io_->size() - start, ErrorCode::kerCorruptedMetadata);
  586|  8.30k|  Internal::enforce(start <= static_cast<uint64_t>(std::numeric_limits<int64_t>::max()),
  587|  8.30k|                    ErrorCode::kerCorruptedMetadata);
  588|  8.30k|  Internal::enforce(length <= std::numeric_limits<size_t>::max(), ErrorCode::kerCorruptedMetadata);
  589|       |
  590|       |  // read and parse exif data
  591|  8.30k|  const size_t restore = io_->tell();
  592|  8.30k|  DataBuf exif(static_cast<size_t>(length));
  593|  8.30k|  io_->seek(static_cast<int64_t>(start), BasicIo::beg);
  594|  8.30k|  if (exif.size() > 8 && io_->read(exif.data(), exif.size()) == exif.size()) {
  ------------------
  |  Branch (594:7): [True: 8.27k, False: 30]
  |  Branch (594:26): [True: 8.27k, False: 0]
  ------------------
  595|       |    // hunt for "II" or "MM"
  596|  8.27k|    const size_t eof = std::numeric_limits<size_t>::max();  // impossible value for punt
  597|  8.27k|    size_t punt = eof;
  598|   338k|    for (size_t i = 0; i < exif.size() - 9 && punt == eof; ++i) {
  ------------------
  |  Branch (598:24): [True: 338k, False: 80]
  |  Branch (598:47): [True: 330k, False: 8.19k]
  ------------------
  599|   330k|      auto charCurrent = exif.read_uint8(i);
  600|   330k|      auto charNext = exif.read_uint8(i + 1);
  601|   330k|      if (charCurrent == charNext && (charCurrent == 'I' || charCurrent == 'M'))
  ------------------
  |  Branch (601:11): [True: 103k, False: 226k]
  |  Branch (601:39): [True: 1.81k, False: 101k]
  |  Branch (601:61): [True: 6.38k, False: 95.2k]
  ------------------
  602|  8.19k|        punt = i;
  603|   330k|    }
  604|  8.27k|    if (punt != eof) {
  ------------------
  |  Branch (604:9): [True: 8.19k, False: 74]
  ------------------
  605|  8.19k|      const DecodeParams dp(max_recursion_depth_);
  606|  8.19k|      Internal::TiffParserWorker::decode(exifData(), iptcData(), xmpData(), exif.c_data(punt), exif.size() - punt,
  607|  8.19k|                                         root_tag, Internal::TiffMapping::findDecoder, dp);
  608|  8.19k|    }
  609|  8.27k|  }
  610|  8.30k|  io_->seek(restore, BasicIo::beg);
  611|  8.30k|}
_ZN5Exiv29BmffImage9parseTiffEjm:
  613|  14.4k|void BmffImage::parseTiff(uint32_t root_tag, uint64_t length) {
  614|  14.4k|  if (length > 8) {
  ------------------
  |  Branch (614:7): [True: 14.3k, False: 100]
  ------------------
  615|  14.3k|    Internal::enforce(length - 8 <= io_->size() - io_->tell(), ErrorCode::kerCorruptedMetadata);
  616|  14.3k|    Internal::enforce(length - 8 <= std::numeric_limits<size_t>::max(), ErrorCode::kerCorruptedMetadata);
  617|  14.3k|    DataBuf data(static_cast<size_t>(length - 8u));
  618|  14.3k|    const size_t bufRead = io_->read(data.data(), data.size());
  619|       |
  620|  14.3k|    if (io_->error())
  ------------------
  |  Branch (620:9): [True: 0, False: 14.3k]
  ------------------
  621|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  622|  14.3k|    if (bufRead != data.size())
  ------------------
  |  Branch (622:9): [True: 0, False: 14.3k]
  ------------------
  623|      0|      throw Error(ErrorCode::kerInputDataReadFailed);
  624|       |
  625|  14.3k|    const DecodeParams dp(max_recursion_depth_);
  626|  14.3k|    Internal::TiffParserWorker::decode(exifData(), iptcData(), xmpData(), data.c_data(), data.size(), root_tag,
  627|  14.3k|                                       Internal::TiffMapping::findDecoder, dp);
  628|  14.3k|  }
  629|  14.4k|}
_ZN5Exiv29BmffImage8parseXmpEmm:
  631|    814|void BmffImage::parseXmp(uint64_t length, uint64_t start) {
  632|    814|  Internal::enforce(start <= io_->size(), ErrorCode::kerCorruptedMetadata);
  633|    814|  Internal::enforce(length <= io_->size() - start, ErrorCode::kerCorruptedMetadata);
  634|       |
  635|    814|  const size_t restore = io_->tell();
  636|    814|  io_->seek(static_cast<int64_t>(start), BasicIo::beg);
  637|       |
  638|    814|  auto lengthSizeT = static_cast<size_t>(length);
  639|    814|  DataBuf xmp(lengthSizeT + 1);
  640|    814|  xmp.write_uint8(lengthSizeT, 0);  // ensure xmp is null terminated!
  641|    814|  if (io_->read(xmp.data(), lengthSizeT) != lengthSizeT)
  ------------------
  |  Branch (641:7): [True: 0, False: 814]
  ------------------
  642|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  643|    814|  if (io_->error())
  ------------------
  |  Branch (643:7): [True: 0, False: 814]
  ------------------
  644|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  645|    814|  try {
  646|    814|    const DecodeParams dp(max_recursion_depth_);
  647|    814|    Exiv2::XmpParser::decode(xmpData(), std::string(xmp.c_str()), dp);
  648|    814|  } catch (...) {
  649|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  650|      0|  }
  651|       |
  652|    809|  io_->seek(restore, BasicIo::beg);
  653|    809|}
_ZN5Exiv29BmffImage15parseCr3PreviewERKNS_7DataBufERNSt3__113basic_ostreamIcNS4_11char_traitsIcEEEEbhmmmm:
  658|  2.21k|                                size_t relative_position) {
  659|       |  // Derived from https://github.com/lclevy/canon_cr3
  660|  2.21k|  const size_t here = io_->tell();
  661|  2.21k|  Internal::enforce(here <= std::numeric_limits<size_t>::max() - relative_position, ErrorCode::kerCorruptedMetadata);
  662|  2.21k|  NativePreview nativePreview;
  663|  2.21k|  nativePreview.position_ = here + relative_position;
  664|  2.21k|  nativePreview.width_ = data.read_uint16(width_offset, endian_);
  665|  2.21k|  nativePreview.height_ = data.read_uint16(height_offset, endian_);
  666|  2.21k|  nativePreview.size_ = data.read_uint32(size_offset, endian_);
  667|  2.21k|  nativePreview.filter_ = "";
  668|  2.21k|  nativePreview.mimeType_ = [version] {
  669|  2.21k|    if (version == 0)
  670|  2.21k|      return "image/jpeg";
  671|  2.21k|    return "application/octet-stream";
  672|  2.21k|  }();
  673|  2.21k|  if (bTrace) {
  ------------------
  |  Branch (673:7): [True: 1.35k, False: 860]
  ------------------
  674|  1.35k|    out << stringFormat("width,height,size = {},{},{}", nativePreview.width_, nativePreview.height_,
  ------------------
  |  |   18|  1.35k|#define stringFormat std::format
  ------------------
  675|  1.35k|                        nativePreview.size_);
  676|  1.35k|  }
  677|  2.21k|  nativePreviews_.push_back(std::move(nativePreview));
  678|  2.21k|}
_ZNK5Exiv29BmffImage11openOrThrowEv:
  697|  14.3k|void BmffImage::openOrThrow() const {
  698|  14.3k|  if (io_->open() != 0) {
  ------------------
  |  Branch (698:7): [True: 0, False: 14.3k]
  ------------------
  699|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  700|      0|  }
  701|       |  // Ensure that this is the correct image type
  702|  14.3k|  if (!isBmffType(*io_, false)) {
  ------------------
  |  Branch (702:7): [True: 0, False: 14.3k]
  ------------------
  703|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (703:9): [True: 0, False: 0]
  |  Branch (703:25): [True: 0, False: 0]
  ------------------
  704|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  705|      0|    throw Error(ErrorCode::kerNotAnImage, "BMFF");
  706|      0|  }
  707|  14.3k|}
_ZN5Exiv29BmffImage12readMetadataEv:
  709|  5.19k|void BmffImage::readMetadata() {
  710|  5.19k|  openOrThrow();
  711|  5.19k|  IoCloser closer(*io_);
  712|       |
  713|  5.19k|  clearMetadata();
  714|  5.19k|  ilocs_.clear();
  715|  5.19k|  visits_max_ = io_->size() / 16;
  716|  5.19k|  unknownID_ = 0xffff;
  717|  5.19k|  exifID_ = unknownID_;
  718|  5.19k|  xmpID_ = unknownID_;
  719|       |
  720|  5.19k|  uint64_t address = 0;
  721|  5.19k|  const auto file_end = io_->size();
  722|  27.0k|  while (address < file_end) {
  ------------------
  |  Branch (722:10): [True: 21.8k, False: 5.19k]
  ------------------
  723|  21.8k|    io_->seek(address, BasicIo::beg);
  724|  21.8k|    address = boxHandler(std::cout, kpsNone, file_end, 0);
  725|  21.8k|  }
  726|  5.19k|  bReadMetadata_ = true;
  727|  5.19k|}  // BmffImage::readMetadata
_ZN5Exiv29BmffImage14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  729|  27.4k|void BmffImage::printStructure(std::ostream& out, Exiv2::PrintStructureOption option, size_t depth) {
  730|  27.4k|  if (!bReadMetadata_)
  ------------------
  |  Branch (730:7): [True: 0, False: 27.4k]
  ------------------
  731|      0|    readMetadata();
  732|       |
  733|  27.4k|  switch (option) {
  734|  9.15k|    default:
  ------------------
  |  Branch (734:5): [True: 9.15k, False: 18.3k]
  ------------------
  735|  9.15k|      break;  // do nothing
  736|       |
  737|  9.15k|    case kpsIccProfile: {
  ------------------
  |  Branch (737:5): [True: 4.57k, False: 22.8k]
  ------------------
  738|  4.57k|      out.write(iccProfile_.c_str(), iccProfile_.size());
  739|  4.57k|    } break;
  740|       |
  741|      0|#ifdef EXV_HAVE_XMP_TOOLKIT
  742|  4.57k|    case kpsXMP: {
  ------------------
  |  Branch (742:5): [True: 4.57k, False: 22.8k]
  ------------------
  743|  4.57k|      std::string xmp;
  744|  4.57k|      if (Exiv2::XmpParser::encode(xmp, xmpData())) {
  ------------------
  |  Branch (744:11): [True: 0, False: 4.57k]
  ------------------
  745|      0|        throw Exiv2::Error(Exiv2::ErrorCode::kerErrorMessage, "Failed to serialize XMP data");
  746|      0|      }
  747|  4.57k|      out << xmp;
  748|  4.57k|    } break;
  749|      0|#endif
  750|  4.58k|    case kpsBasic:  // drop
  ------------------
  |  Branch (750:5): [True: 4.58k, False: 22.8k]
  ------------------
  751|  9.15k|    case kpsRecursive: {
  ------------------
  |  Branch (751:5): [True: 4.57k, False: 22.8k]
  ------------------
  752|  9.15k|      openOrThrow();
  753|  9.15k|      IoCloser closer(*io_);
  754|       |
  755|  9.15k|      uint64_t address = 0;
  756|  9.15k|      const auto file_end = io_->size();
  757|  47.8k|      while (address < file_end) {
  ------------------
  |  Branch (757:14): [True: 38.6k, False: 9.15k]
  ------------------
  758|  38.6k|        io_->seek(address, BasicIo::beg);
  759|  38.6k|        address = boxHandler(out, option, file_end, depth);
  760|  38.6k|      }
  761|  9.15k|    } break;
  762|  27.4k|  }
  763|  27.4k|}
_ZN5Exiv29BmffImage13writeMetadataEv:
  765|  4.57k|void BmffImage::writeMetadata() {
  766|       |  // bmff files are read-only
  767|  4.57k|  throw(Error(ErrorCode::kerWritingImageFormatUnsupported, "BMFF"));
  768|  4.57k|}  // BmffImage::writeMetadata
_ZN5Exiv215newBmffInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEERKNS_15ImageCtorParamsE:
  772|  5.19k|Image::UniquePtr newBmffInstance(BasicIo::UniquePtr io, const ImageCtorParams& params) {
  773|  5.19k|  auto image = std::make_unique<BmffImage>(std::move(io), params);
  774|  5.19k|  if (!image->good()) {
  ------------------
  |  Branch (774:7): [True: 0, False: 5.19k]
  ------------------
  775|      0|    return nullptr;
  776|      0|  }
  777|  5.19k|  return image;
  778|  5.19k|}
_ZN5Exiv210isBmffTypeERNS_7BasicIoEb:
  780|  25.1k|bool isBmffType(BasicIo& iIo, bool advance) {
  781|  25.1k|  const int32_t len = 12;
  782|  25.1k|  byte buf[len];
  783|  25.1k|  iIo.read(buf, len);
  784|  25.1k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (784:7): [True: 0, False: 25.1k]
  |  Branch (784:22): [True: 167, False: 24.9k]
  ------------------
  785|    167|    return false;
  786|    167|  }
  787|       |
  788|       |  // bmff should start with "ftyp"
  789|  24.9k|  bool const is_ftyp = (buf[4] == 'f' && buf[5] == 't' && buf[6] == 'y' && buf[7] == 'p');
  ------------------
  |  Branch (789:25): [True: 24.7k, False: 243]
  |  Branch (789:42): [True: 24.7k, False: 11]
  |  Branch (789:59): [True: 24.7k, False: 11]
  |  Branch (789:76): [True: 24.7k, False: 4]
  ------------------
  790|       |  // jxl files have a special start indicator of "JXL "
  791|  24.9k|  bool const is_jxl = (buf[4] == 'J' && buf[5] == 'X' && buf[6] == 'L' && buf[7] == ' ');
  ------------------
  |  Branch (791:24): [True: 22, False: 24.9k]
  |  Branch (791:41): [True: 10, False: 12]
  |  Branch (791:58): [True: 9, False: 1]
  |  Branch (791:75): [True: 8, False: 1]
  ------------------
  792|       |
  793|  24.9k|  bool matched = is_jxl || is_ftyp;
  ------------------
  |  Branch (793:18): [True: 8, False: 24.9k]
  |  Branch (793:28): [True: 24.7k, False: 261]
  ------------------
  794|  24.9k|  if (!advance || !matched) {
  ------------------
  |  Branch (794:7): [True: 24.9k, False: 0]
  |  Branch (794:19): [True: 0, False: 0]
  ------------------
  795|  24.9k|    iIo.seek(0, BasicIo::beg);
  796|  24.9k|  }
  797|  24.9k|  return matched;
  798|  25.1k|}
bmffimage.cpp:_ZN5Exiv2L7skipBoxEj:
  113|  76.1k|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|  76.1k|  return box == 0 || box == TAG::mdat;  // mdat is where the main image lives and can be huge
  ------------------
  |  Branch (117:10): [True: 610, False: 75.5k]
  |  Branch (117:22): [True: 726, False: 74.7k]
  ------------------
  118|  76.1k|}
bmffimage.cpp:_ZZN5Exiv29BmffImage10boxHandlerERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEmmENK3$_0clEv:
  426|  6.50k|          auto offset = [&data, skip, step] {
  427|  6.50k|            if (step == 14 || step == 16)
  ------------------
  |  Branch (427:17): [True: 3.16k, False: 3.34k]
  |  Branch (427:31): [True: 2.42k, False: 917]
  ------------------
  428|  5.58k|              return data.read_uint32(skip + step - 8, endian_);
  429|    917|            if (step == 18)
  ------------------
  |  Branch (429:17): [True: 599, False: 318]
  ------------------
  430|    599|              return data.read_uint32(skip + 4, endian_);
  431|    318|            return 0u;
  432|    917|          }();
bmffimage.cpp:_ZZN5Exiv29BmffImage15parseCr3PreviewERKNS_7DataBufERNSt3__113basic_ostreamIcNS4_11char_traitsIcEEEEbhmmmmENK3$_0clEv:
  668|  2.21k|  nativePreview.mimeType_ = [version] {
  669|  2.21k|    if (version == 0)
  ------------------
  |  Branch (669:9): [True: 1.85k, False: 360]
  ------------------
  670|  1.85k|      return "image/jpeg";
  671|    360|    return "application/octet-stream";
  672|  2.21k|  }();

_ZN5Exiv28BmpImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEERKNS_15ImageCtorParamsE:
   27|     52|    Image(ImageType::bmp, mdNone, std::move(io), params) {
   28|     52|}
_ZN5Exiv28BmpImage12readMetadataEv:
   47|     46|void BmpImage::readMetadata() {
   48|       |#ifdef EXIV2_DEBUG_MESSAGES
   49|       |  std::cerr << "Exiv2::BmpImage::readMetadata: Reading Windows bitmap file " << io_->path() << "\n";
   50|       |#endif
   51|     46|  if (io_->open() != 0) {
  ------------------
  |  Branch (51:7): [True: 0, False: 46]
  ------------------
   52|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   53|      0|  }
   54|     46|  IoCloser closer(*io_);
   55|       |
   56|       |  // Ensure that this is the correct image type
   57|     46|  if (!isBmpType(*io_, false)) {
  ------------------
  |  Branch (57:7): [True: 0, False: 46]
  ------------------
   58|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (58:9): [True: 0, False: 0]
  |  Branch (58:25): [True: 0, False: 0]
  ------------------
   59|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   60|      0|    throw Error(ErrorCode::kerNotAnImage, "BMP");
   61|      0|  }
   62|     46|  clearMetadata();
   63|       |
   64|       |  /*
   65|       |    The Windows bitmap header goes as follows -- all numbers are in little-endian byte order:
   66|       |
   67|       |    offset  length   name                   description
   68|       |    ======  =======  =====================  =======
   69|       |     0      2 bytes  signature              always 'BM'
   70|       |     2      4 bytes  bitmap size
   71|       |     6      4 bytes  reserved
   72|       |    10      4 bytes  bitmap offset
   73|       |    14      4 bytes  header size
   74|       |    18      4 bytes  bitmap width
   75|       |    22      4 bytes  bitmap height
   76|       |    26      2 bytes  plane count
   77|       |    28      2 bytes  depth
   78|       |    30      4 bytes  compression            0 = none; 1 = RLE, 8 bits/pixel; 2 = RLE, 4 bits/pixel; 3 = bitfield;
   79|       |    4 = JPEG; 5 = PNG 34      4 bytes  image size             size of the raw bitmap data, in bytes 38      4
   80|       |    bytes  horizontal resolution  (in pixels per meter) 42      4 bytes  vertical resolution    (in pixels per
   81|       |    meter) 46      4 bytes  color count 50      4 bytes  important colors       number of "important" colors
   82|       |
   83|       |    The layout above describes the BITMAPINFOHEADER (and later) variants, identified by a header size
   84|       |    of 40 bytes or more. The older OS/2 1.x / Windows 2.x format uses the shorter, 12-byte
   85|       |    BITMAPCOREHEADER instead, in which the width and height fields are only 2 bytes wide:
   86|       |
   87|       |    offset  length   name                   description
   88|       |    ======  =======  =====================  =======
   89|       |    14      4 bytes  header size            always 12 for BITMAPCOREHEADER
   90|       |    18      2 bytes  bitmap width
   91|       |    20      2 bytes  bitmap height
   92|       |    22      2 bytes  plane count
   93|       |    24      2 bytes  depth
   94|       |  */
   95|     46|  byte buf[26];
   96|     46|  if (io_->read(buf, sizeof(buf)) == sizeof(buf)) {
  ------------------
  |  Branch (96:7): [True: 46, False: 0]
  ------------------
   97|     46|    const uint32_t headerSize = getULong(buf + 14, littleEndian);
   98|     46|    if (headerSize == 12) {
  ------------------
  |  Branch (98:9): [True: 0, False: 46]
  ------------------
   99|       |      // OS/2 1.x / Windows 2.x BITMAPCOREHEADER: width and height are 16-bit fields.
  100|      0|      pixelWidth_ = getUShort(buf + 18, littleEndian);
  101|      0|      pixelHeight_ = getUShort(buf + 20, littleEndian);
  102|     46|    } else {
  103|     46|      pixelWidth_ = getULong(buf + 18, littleEndian);
  104|     46|      pixelHeight_ = getULong(buf + 22, littleEndian);
  105|     46|    }
  106|     46|  }
  107|     46|}
_ZN5Exiv214newBmpInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEERKNS_15ImageCtorParamsE:
  116|     52|Image::UniquePtr newBmpInstance(BasicIo::UniquePtr io, const ImageCtorParams& params) {
  117|     52|  auto image = std::make_unique<BmpImage>(std::move(io), params);
  118|     52|  if (!image->good()) {
  ------------------
  |  Branch (118:7): [True: 6, False: 46]
  ------------------
  119|      6|    return nullptr;
  120|      6|  }
  121|     46|  return image;
  122|     52|}
_ZN5Exiv29isBmpTypeERNS_7BasicIoEb:
  124|  10.6k|bool isBmpType(BasicIo& iIo, bool advance) {
  125|  10.6k|  const int32_t len = 2;
  126|  10.6k|  const std::array<byte, len> BmpImageId{'B', 'M'};
  127|  10.6k|  std::array<byte, len> buf;
  128|  10.6k|  iIo.read(buf.data(), len);
  129|  10.6k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (129:7): [True: 0, False: 10.6k]
  |  Branch (129:22): [True: 167, False: 10.4k]
  ------------------
  130|    167|    return false;
  131|    167|  }
  132|  10.4k|  bool matched = buf == BmpImageId;
  133|  10.4k|  if (!advance || !matched) {
  ------------------
  |  Branch (133:7): [True: 10.4k, False: 0]
  |  Branch (133:19): [True: 0, False: 0]
  ------------------
  134|  10.4k|    iIo.seek(-len, BasicIo::cur);
  135|  10.4k|  }
  136|  10.4k|  return matched;
  137|  10.6k|}

_ZN5Exiv28Internal14CanonMakerNote17printFiFileNumberERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2666|    488|std::ostream& CanonMakerNote::printFiFileNumber(std::ostream& os, const Value& value, const ExifData* metadata) {
 2667|    488|  if (!metadata || value.typeId() != unsignedLong || value.count() == 0) {
  ------------------
  |  Branch (2667:7): [True: 244, False: 244]
  |  Branch (2667:20): [True: 16, False: 228]
  |  Branch (2667:54): [True: 0, False: 228]
  ------------------
 2668|    260|    return os << "(" << value << ")";
 2669|    260|  }
 2670|       |
 2671|    228|  auto pos = metadata->findKey(ExifKey("Exif.Image.Model"));
 2672|    228|  if (pos == metadata->end())
  ------------------
  |  Branch (2672:7): [True: 197, False: 31]
  ------------------
 2673|    197|    return os << "(" << value << ")";
 2674|       |
 2675|       |  // Ported from Exiftool
 2676|     31|  std::string model = pos->toString();
 2677|     31|  if (Internal::contains(model, "20D") || Internal::contains(model, "350D") ||
  ------------------
  |  Branch (2677:7): [True: 1, False: 30]
  |  Branch (2677:7): [True: 3, False: 28]
  |  Branch (2677:43): [True: 1, False: 29]
  ------------------
 2678|     29|      model.substr(model.size() - 8, 8) == "REBEL XT" || Internal::contains(model, "Kiss Digital N")) {
  ------------------
  |  Branch (2678:7): [True: 7, False: 22]
  |  Branch (2678:58): [True: 0, False: 22]
  ------------------
 2679|      3|    uint32_t val = value.toUint32();
 2680|      3|    return os << stringFormat("{}-{:04}", (val & 0xffc0) >> 6, ((val >> 16) & 0xff) + ((val & 0x3f) << 8));
  ------------------
  |  |   18|      3|#define stringFormat std::format
  ------------------
 2681|      3|  }
 2682|     28|  if (Internal::contains(model, "30D") || Internal::contains(model, "400D") || Internal::contains(model, "REBEL XTi") ||
  ------------------
  |  Branch (2682:7): [True: 8, False: 20]
  |  Branch (2682:43): [True: 1, False: 19]
  |  Branch (2682:80): [True: 0, False: 19]
  ------------------
 2683|     19|      Internal::contains(model, "Kiss Digital X") || Internal::contains(model, "K236")) {
  ------------------
  |  Branch (2683:7): [True: 1, False: 18]
  |  Branch (2683:54): [True: 1, False: 17]
  ------------------
 2684|      5|    uint32_t val = value.toUint32();
 2685|      5|    uint32_t dn = (val & 0xffc00) >> 10;
 2686|      8|    while (dn < 100)
  ------------------
  |  Branch (2686:12): [True: 3, False: 5]
  ------------------
 2687|      3|      dn += 0x40;
 2688|      5|    return os << stringFormat("{}-{:04}", dn, ((val & 0x3ff) << 4) + ((val >> 20) & 0x0f));
  ------------------
  |  |   18|      5|#define stringFormat std::format
  ------------------
 2689|      5|  }
 2690|       |
 2691|     23|  return os << "(" << value << ")";
 2692|     28|}
_ZN5Exiv28Internal14CanonMakerNote16printFocalLengthERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2694|    988|std::ostream& CanonMakerNote::printFocalLength(std::ostream& os, const Value& value, const ExifData* metadata) {
 2695|    988|  if (!metadata || value.count() < 4 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (2695:7): [True: 494, False: 494]
  |  Branch (2695:20): [True: 303, False: 191]
  |  Branch (2695:41): [True: 88, False: 103]
  ------------------
 2696|    885|    return os << value;
 2697|    885|  }
 2698|       |
 2699|    103|  ExifKey key("Exif.CanonCs.Lens");
 2700|    103|  auto pos = metadata->findKey(key);
 2701|    103|  if (pos != metadata->end() && pos->value().count() >= 3 && pos->value().typeId() == unsignedShort) {
  ------------------
  |  Branch (2701:7): [True: 66, False: 37]
  |  Branch (2701:7): [True: 52, False: 51]
  |  Branch (2701:33): [True: 52, False: 14]
  |  Branch (2701:62): [True: 52, False: 0]
  ------------------
 2702|     52|    float fu = pos->value().toFloat(2);
 2703|     52|    if (fu != 0.0F) {
  ------------------
  |  Branch (2703:9): [True: 35, False: 17]
  ------------------
 2704|     35|      return os << stringFormat("{:.1f} mm", value.toFloat(1) / fu);
  ------------------
  |  |   18|     35|#define stringFormat std::format
  ------------------
 2705|     35|    }
 2706|     52|  }
 2707|       |
 2708|     68|  return os << value;
 2709|    103|}
_ZN5Exiv28Internal14CanonMakerNote11print0x0008ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2711|    642|std::ostream& CanonMakerNote::print0x0008(std::ostream& os, const Value& value, const ExifData*) {
 2712|    642|  std::string n = value.toString();
 2713|    642|  if (n.length() < 4)
  ------------------
  |  Branch (2713:7): [True: 66, False: 576]
  ------------------
 2714|     66|    return os << "(" << n << ")";
 2715|    576|  return os << n.substr(0, n.length() - 4) << "-" << n.substr(n.length() - 4);
 2716|    642|}
_ZN5Exiv28Internal14CanonMakerNote11print0x000cERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2727|    478|std::ostream& CanonMakerNote::print0x000c(std::ostream& os, const Value& value, const ExifData* exifData) {
 2728|    478|  if (!exifData) {
  ------------------
  |  Branch (2728:7): [True: 239, False: 239]
  ------------------
 2729|    239|    return os << value;
 2730|    239|  }
 2731|       |
 2732|    239|  ExifKey key("Exif.Canon.ModelID");
 2733|    239|  auto pos = exifData->findKey(key);
 2734|       |  // if model is EOS D30
 2735|    239|  if (pos != exifData->end() && pos->value().count() == 1 && pos->value().toInt64() == 0x01140000) {
  ------------------
  |  Branch (2735:7): [True: 159, False: 80]
  |  Branch (2735:7): [True: 0, False: 239]
  |  Branch (2735:33): [True: 76, False: 83]
  |  Branch (2735:62): [True: 0, False: 76]
  ------------------
 2736|      0|    try {
 2737|      0|      uint32_t l = std::stoul(value.toString());
 2738|      0|      return os << stringFormat("{:04x}{:05}", (l >> 16) & 0xFFFF, l & 0xFFFF);
  ------------------
  |  |   18|      0|#define stringFormat std::format
  ------------------
 2739|      0|    } catch (const std::logic_error&) {
 2740|      0|      return os << value;
 2741|      0|    }
 2742|      0|  }
 2743|    239|  return os << value;
 2744|    239|}
_ZN5Exiv28Internal14CanonMakerNote13printCs0x0002ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2746|  4.33k|std::ostream& CanonMakerNote::printCs0x0002(std::ostream& os, const Value& value, const ExifData*) {
 2747|  4.33k|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2747:7): [True: 0, False: 4.33k]
  |  Branch (2747:42): [True: 0, False: 4.33k]
  ------------------
 2748|      0|    return os << value;
 2749|       |
 2750|  4.33k|  if (auto l = value.toInt64(); l == 0) {
  ------------------
  |  Branch (2750:33): [True: 3.50k, False: 838]
  ------------------
 2751|  3.50k|    os << "Off";
 2752|  3.50k|  } else {
 2753|    838|    os << l / 10.0 << " s";
 2754|    838|  }
 2755|  4.33k|  return os;
 2756|  4.33k|}
_ZN5Exiv28Internal14CanonMakerNote15printCsLensTypeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2898|  4.22k|std::ostream& CanonMakerNote::printCsLensType(std::ostream& os, const Value& value, const ExifData* metadata) {
 2899|  4.22k|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2899:7): [True: 0, False: 4.22k]
  |  Branch (2899:42): [True: 0, False: 4.22k]
  ------------------
 2900|      0|    return os << "(" << value << ")";
 2901|       |
 2902|       |  // #1034
 2903|  4.22k|  const std::string undefined("undefined");
 2904|  4.22k|  const std::string section("canon");
 2905|  4.22k|  if (Internal::readExiv2Config(section, value.toString(), undefined) != undefined) {
  ------------------
  |  Branch (2905:7): [True: 0, False: 4.22k]
  ------------------
 2906|      0|    return os << Internal::readExiv2Config(section, value.toString(), undefined);
 2907|      0|  }
 2908|       |
 2909|       |  // try our best to determine the lens based on metadata
 2910|       |  // sometimes the result will be a set of multiple choices
 2911|  4.22k|  return printCsLensTypeByMetadata(os, value, metadata);
 2912|  4.22k|}
_ZN5Exiv28Internal14CanonMakerNote11printCsLensERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2914|  4.20k|std::ostream& CanonMakerNote::printCsLens(std::ostream& os, const Value& value, const ExifData*) {
 2915|  4.20k|  if (value.count() < 3 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (2915:7): [True: 278, False: 3.93k]
  |  Branch (2915:28): [True: 0, False: 3.93k]
  ------------------
 2916|    278|    return os << "(" << value << ")";
 2917|    278|  }
 2918|       |
 2919|  3.93k|  float fu = value.toFloat(2);
 2920|  3.93k|  if (fu == 0.0F)
  ------------------
  |  Branch (2920:7): [True: 478, False: 3.45k]
  ------------------
 2921|    478|    return os << value;
 2922|  3.45k|  float len1 = value.toInt64(0) / fu;
 2923|  3.45k|  float len2 = value.toInt64(1) / fu;
 2924|  3.45k|  if (len1 == len2) {
  ------------------
  |  Branch (2924:7): [True: 154, False: 3.29k]
  ------------------
 2925|    154|    return os << stringFormat("{:.1f} mm", len1);
  ------------------
  |  |   18|    154|#define stringFormat std::format
  ------------------
 2926|    154|  }
 2927|  3.29k|  return os << stringFormat("{:.1f} - {:.1f} mm", len2, len1);
  ------------------
  |  |   18|  3.29k|#define stringFormat std::format
  ------------------
 2928|  3.45k|}
_ZN5Exiv28Internal14CanonMakerNote13printLe0x0000ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2930|     16|std::ostream& CanonMakerNote::printLe0x0000(std::ostream& os, const Value& value, const ExifData*) {
 2931|     16|  if (value.typeId() != unsignedByte || value.size() != 5)
  ------------------
  |  Branch (2931:7): [True: 0, False: 16]
  |  Branch (2931:41): [True: 2, False: 14]
  ------------------
 2932|      2|    return os << "(" << value << ")";
 2933|     84|  for (size_t i = 0; i < value.size(); ++i) {
  ------------------
  |  Branch (2933:22): [True: 70, False: 14]
  ------------------
 2934|     70|    os << stringFormat("{:02x}", value.toInt64(i));
  ------------------
  |  |   18|     70|#define stringFormat std::format
  ------------------
 2935|     70|  }
 2936|     14|  return os;
 2937|     16|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0001ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2939|    376|std::ostream& CanonMakerNote::printSi0x0001(std::ostream& os, const Value& value, const ExifData*) {
 2940|    376|  if (value.typeId() == unsignedShort && value.count() > 0) {
  ------------------
  |  Branch (2940:7): [True: 376, False: 0]
  |  Branch (2940:42): [True: 376, False: 0]
  ------------------
 2941|    376|    os << std::exp2(canonEv(value.toInt64()) / 32) * 100.0F;
 2942|    376|  }
 2943|    376|  return os;
 2944|    376|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0002ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2946|    376|std::ostream& CanonMakerNote::printSi0x0002(std::ostream& os, const Value& value, const ExifData*) {
 2947|    376|  if (value.typeId() == unsignedShort && value.count() > 0) {
  ------------------
  |  Branch (2947:7): [True: 376, False: 0]
  |  Branch (2947:42): [True: 376, False: 0]
  ------------------
 2948|       |    // Ported from Exiftool by Will Stokes
 2949|    376|    os << std::exp2(canonEv(value.toInt64())) * (100.0F / 32.0F);
 2950|    376|  }
 2951|    376|  return os;
 2952|    376|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0003ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2954|    376|std::ostream& CanonMakerNote::printSi0x0003(std::ostream& os, const Value& value, const ExifData*) {
 2955|    376|  if (value.typeId() == unsignedShort && value.count() > 0) {
  ------------------
  |  Branch (2955:7): [True: 376, False: 0]
  |  Branch (2955:42): [True: 376, False: 0]
  ------------------
 2956|       |    // The offset of '5' seems to be ok for most Canons (see Exiftool)
 2957|       |    // It might be explained by the fact, that most Canons have a longest
 2958|       |    // exposure of 30s which is 5 EV below 1s
 2959|       |    // see also printSi0x0017
 2960|    376|    auto res = std::lround(100.0 * (static_cast<short>(value.toInt64()) / 32.0 + 5.0));
 2961|    376|    os << stringFormat("{:.2f}", res / 100.0);
  ------------------
  |  |   18|    376|#define stringFormat std::format
  ------------------
 2962|    376|  }
 2963|    376|  return os;
 2964|    376|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0009ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2966|    368|std::ostream& CanonMakerNote::printSi0x0009(std::ostream& os, const Value& value, const ExifData*) {
 2967|    368|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2967:7): [True: 0, False: 368]
  |  Branch (2967:42): [True: 0, False: 368]
  ------------------
 2968|      0|    return os << value;
 2969|       |
 2970|    368|  const auto l = value.toInt64();
 2971|    368|  os << l << "";
 2972|       |  // Todo: determine unit
 2973|    368|  return os;
 2974|    368|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x000cERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2976|    366|std::ostream& CanonMakerNote::printSi0x000c(std::ostream& os, const Value& value, const ExifData*) {
 2977|    366|  if (value.toInt64() == 0)
  ------------------
  |  Branch (2977:7): [True: 50, False: 316]
  ------------------
 2978|     50|    return os << "--";
 2979|       |
 2980|    316|  return os << value.toInt64() - 128 << " °C";
 2981|    366|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x000dERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2983|    366|std::ostream& CanonMakerNote::printSi0x000d(std::ostream& os, const Value& value, const ExifData*) {
 2984|    366|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (2984:7): [True: 20, False: 346]
  ------------------
 2985|     20|    return os << "--";
 2986|       |
 2987|    346|  return os << value.toInt64() / 32;
 2988|    366|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x000eERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2990|    366|std::ostream& CanonMakerNote::printSi0x000e(std::ostream& os, const Value& value, const ExifData* pExifData) {
 2991|    366|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2991:7): [True: 0, False: 366]
  |  Branch (2991:42): [True: 0, False: 366]
  ------------------
 2992|      0|    return os << value;
 2993|       |
 2994|    366|  const auto l = value.toUint32();
 2995|    366|  const auto num = (l & 0xf000U) >> 12;
 2996|    366|  os << num << " focus points; ";
 2997|    366|  if (auto used = l & 0x0fffU; used == 0) {
  ------------------
  |  Branch (2997:32): [True: 52, False: 314]
  ------------------
 2998|     52|    os << "none";
 2999|    314|  } else {
 3000|    314|    EXV_PRINT_TAG_BITMASK(canonSiAFPointUsed)(os, value, pExifData);
  ------------------
  |  |  229|    314|#define EXV_PRINT_TAG_BITMASK(array) printTagBitmask<std::size(array), array>
  ------------------
 3001|    314|  }
 3002|    366|  os << " used";
 3003|    366|  return os;
 3004|    366|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0013ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3006|    320|std::ostream& CanonMakerNote::printSi0x0013(std::ostream& os, const Value& value, const ExifData*) {
 3007|    320|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (3007:7): [True: 0, False: 320]
  |  Branch (3007:42): [True: 0, False: 320]
  ------------------
 3008|      0|    return os << value;
 3009|       |
 3010|    320|  if (auto l = value.toInt64(); l == 0xffff) {
  ------------------
  |  Branch (3010:33): [True: 22, False: 298]
  ------------------
 3011|     22|    return os << "Infinite";
 3012|     22|  }
 3013|    298|  return os << value.toInt64() / 100.0 << " m";
 3014|    320|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0015ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3016|  8.96k|std::ostream& CanonMakerNote::printSi0x0015(std::ostream& os, const Value& value, const ExifData*) {
 3017|  8.96k|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (3017:7): [True: 0, False: 8.96k]
  |  Branch (3017:42): [True: 0, False: 8.96k]
  ------------------
 3018|      0|    return os << value;
 3019|       |
 3020|  8.96k|  const auto val = static_cast<int16_t>(value.toInt64());
 3021|  8.96k|  if (val < 0)
  ------------------
  |  Branch (3021:7): [True: 736, False: 8.23k]
  ------------------
 3022|    736|    return os << value;
 3023|  8.23k|  return os << stringFormat("F{:.2g}", fnumber(canonEv(val)));
  ------------------
  |  |   18|  8.23k|#define stringFormat std::format
  ------------------
 3024|  8.96k|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0016ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3026|    684|std::ostream& CanonMakerNote::printSi0x0016(std::ostream& os, const Value& value, const ExifData*) {
 3027|    684|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (3027:7): [True: 0, False: 684]
  |  Branch (3027:42): [True: 0, False: 684]
  ------------------
 3028|      0|    return os << value;
 3029|       |
 3030|    684|  auto [u, r] = exposureTime(canonEv(value.toInt64()));
 3031|    684|  os << u;
 3032|    684|  if (r > 1) {
  ------------------
  |  Branch (3032:7): [True: 116, False: 568]
  ------------------
 3033|    116|    os << "/" << r;
 3034|    116|  }
 3035|    684|  return os << " s";
 3036|    684|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0017ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3038|    316|std::ostream& CanonMakerNote::printSi0x0017(std::ostream& os, const Value& value, const ExifData*) {
 3039|    316|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (3039:7): [True: 0, False: 316]
  |  Branch (3039:42): [True: 0, False: 316]
  ------------------
 3040|      0|    return os << value;
 3041|    316|  return os << stringFormat("{:.2f}", (value.toInt64() / 8.0) - 6.0);
  ------------------
  |  |   18|    316|#define stringFormat std::format
  ------------------
 3042|    316|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0018ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3044|    314|std::ostream& CanonMakerNote::printSi0x0018(std::ostream& os, const Value& value, const ExifData*) {
 3045|    314|  return os << value.toInt64() / 10;
 3046|    314|}
_ZN5Exiv28Internal14CanonMakerNote20printFiFocusDistanceERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3048|    506|std::ostream& CanonMakerNote::printFiFocusDistance(std::ostream& os, const Value& value, const ExifData*) {
 3049|    506|  if (value.typeId() != signedShort || value.count() == 0)
  ------------------
  |  Branch (3049:7): [True: 0, False: 506]
  |  Branch (3049:40): [True: 0, False: 506]
  ------------------
 3050|      0|    return os << value;
 3051|       |
 3052|    506|  auto l = value.toInt64();
 3053|    506|  if (l == -1) {
  ------------------
  |  Branch (3053:7): [True: 32, False: 474]
  ------------------
 3054|     32|    return os << "Infinite";
 3055|     32|  }
 3056|    474|  return os << stringFormat("{:.2f} m", l / 100.0);
  ------------------
  |  |   18|    474|#define stringFormat std::format
  ------------------
 3057|    506|}
_ZN5Exiv28Internal7canonEvEl:
 3062|  11.6k|float canonEv(int64_t val) {
 3063|       |  // temporarily remove sign
 3064|  11.6k|  int sign = 1;
 3065|  11.6k|  if (val < 0) {
  ------------------
  |  Branch (3065:7): [True: 487, False: 11.1k]
  ------------------
 3066|    487|    sign = -1;
 3067|    487|    val = -val;
 3068|    487|  }
 3069|       |  // remove fraction
 3070|  11.6k|  const auto remainder = val & 0x1f;
 3071|  11.6k|  val -= remainder;
 3072|  11.6k|  auto frac = static_cast<float>(remainder);
 3073|       |  // convert 1/3 (0x0c) and 2/3 (0x14) codes
 3074|  11.6k|  if (frac == 0x0c) {
  ------------------
  |  Branch (3074:7): [True: 755, False: 10.8k]
  ------------------
 3075|    755|    frac = 32.0F / 3;
 3076|  10.8k|  } else if (frac == 0x14) {
  ------------------
  |  Branch (3076:14): [True: 283, False: 10.6k]
  ------------------
 3077|    283|    frac = 64.0F / 3;
 3078|  10.6k|  } else if ((val == 160) && (frac == 0x08)) {  // for Sigma f/6.3 lenses that report f/6.2 to camera
  ------------------
  |  Branch (3078:14): [True: 52, False: 10.5k]
  |  Branch (3078:30): [True: 19, False: 33]
  ------------------
 3079|     19|    frac = 30.0F / 3;
 3080|     19|  }
 3081|  11.6k|  return sign * (val + frac) / 32.0F;
 3082|  11.6k|}
canonmn_int.cpp:_ZN5Exiv28InternalL25printCsLensTypeByMetadataERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2804|  4.22k|std::ostream& printCsLensTypeByMetadata(std::ostream& os, const Value& value, const ExifData* metadata) {
 2805|  4.22k|  if (!metadata || value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2805:7): [True: 2.11k, False: 2.11k]
  |  Branch (2805:20): [True: 0, False: 2.11k]
  |  Branch (2805:55): [True: 0, False: 2.11k]
  ------------------
 2806|  2.11k|    return os << value;
 2807|       |
 2808|  2.11k|  auto const lensType = value.toInt64();
 2809|       |
 2810|  2.11k|  if (lensType == 0xffff) {
  ------------------
  |  Branch (2810:7): [True: 29, False: 2.08k]
  ------------------
 2811|     29|    return printCsLensFFFF(os, value, metadata);
 2812|     29|  }
 2813|       |
 2814|       |  // get the values we need from the metadata container
 2815|  2.08k|  ExifKey lensKey("Exif.CanonCs.Lens");
 2816|  2.08k|  auto pos = metadata->findKey(lensKey);
 2817|       |  // catch possible error cases
 2818|  2.08k|  if (pos == metadata->end() || pos->value().count() < 3 || pos->value().typeId() != unsignedShort ||
  ------------------
  |  Branch (2818:7): [True: 2, False: 2.08k]
  |  Branch (2818:7): [True: 93, False: 1.98k]
  |  Branch (2818:33): [True: 20, False: 2.06k]
  |  Branch (2818:61): [True: 0, False: 2.06k]
  ------------------
 2819|  2.06k|      pos->value().toFloat(2) == 0.0F) {
  ------------------
  |  Branch (2819:7): [True: 71, False: 1.98k]
  ------------------
 2820|     93|    os << "Unknown Lens (" << lensType << ")";
 2821|     93|    return os;
 2822|     93|  }
 2823|       |
 2824|  1.98k|  auto const exifFlMin = static_cast<int>(static_cast<float>(pos->value().toInt64(1)) / pos->value().toFloat(2));
 2825|  1.98k|  auto const exifFlMax = static_cast<int>(static_cast<float>(pos->value().toInt64(0)) / pos->value().toFloat(2));
 2826|       |
 2827|  1.98k|  ExifKey aperKey("Exif.CanonCs.MaxAperture");
 2828|  1.98k|  pos = metadata->findKey(aperKey);
 2829|  1.98k|  if (pos == metadata->end() || pos->value().count() != 1 || pos->value().typeId() != unsignedShort) {
  ------------------
  |  Branch (2829:7): [True: 4, False: 1.98k]
  |  Branch (2829:7): [True: 9, False: 1.98k]
  |  Branch (2829:33): [True: 5, False: 1.98k]
  |  Branch (2829:62): [True: 0, False: 1.98k]
  ------------------
 2830|      9|    os << "Unknown Lens (" << lensType << ")";
 2831|      9|    return os;
 2832|      9|  }
 2833|       |
 2834|  1.98k|  auto exifAperMax = fnumber(canonEv(static_cast<int16_t>(pos->value().toInt64(0))));
 2835|       |
 2836|       |  // regex to extract short and tele focal length, max aperture at short and tele position
 2837|       |  // and the teleconverter factor from the lens label
 2838|  1.98k|  std::regex const lens_regex(
 2839|       |      // anything at the start
 2840|  1.98k|      ".*?"
 2841|       |      // maybe min focal length and hyphen, surely max focal length e.g.: 24-70mm
 2842|  1.98k|      R"((?:(\d+)-)?(\d+)mm)"
 2843|       |      // anything in-between
 2844|  1.98k|      ".*?"
 2845|       |      // maybe short focal length max aperture and hyphen, surely at least single max aperture e.g.: f/4.5-5.6
 2846|       |      // short and tele indicate apertures at the short (focal_length_min) and tele (focal_length_max)
 2847|       |      // position of the lens
 2848|  1.98k|      R"((?:(?:f/)|T|F)(?:(\d+(?:\.\d+)?)-)?(\d+(?:\.\d)?))"
 2849|       |      // check if there is a teleconverter pattern e.g. + 1.4x
 2850|  1.98k|      R"((?:.*?\+.*?(\d+(?:\.\d+)?)x)?)");
 2851|       |
 2852|  1.98k|  bool unmatched = true;
 2853|       |  // we loop over all our lenses to print out all matching lenses
 2854|       |  // if we have multiple possibilities, they are concatenated by "*OR*"
 2855|  1.05M|  for (auto&& [val, label] : canonCsLensType) {
  ------------------
  |  Branch (2855:28): [True: 1.05M, False: 1.98k]
  ------------------
 2856|  1.05M|    if (val != lensType) {
  ------------------
  |  Branch (2856:9): [True: 1.05M, False: 3.57k]
  ------------------
 2857|  1.05M|      continue;
 2858|  1.05M|    }
 2859|       |
 2860|  3.57k|    std::cmatch base_match;
 2861|  3.57k|    if (!std::regex_search(label, base_match, lens_regex)) {
  ------------------
  |  Branch (2861:9): [True: 0, False: 3.57k]
  ------------------
 2862|       |      // this should never happen, as it would indicate the lens is specified incorrectly
 2863|       |      // in the CanonCsLensType array
 2864|      0|      throw Error(ErrorCode::kerErrorMessage, "Lens regex didn't match for: ", label);
 2865|      0|    }
 2866|       |
 2867|  3.57k|    auto tc = base_match[5].length() > 0 ? string_to_float(base_match[5].str()) : 1.f;
  ------------------
  |  Branch (2867:15): [True: 109, False: 3.46k]
  ------------------
 2868|       |
 2869|  3.57k|    auto flMax = static_cast<int>(string_to_float(base_match[2].str()) * tc);
 2870|  3.57k|    int flMin = base_match[1].length() > 0 ? static_cast<int>(string_to_float(base_match[1].str()) * tc) : flMax;
  ------------------
  |  Branch (2870:17): [True: 3.10k, False: 468]
  ------------------
 2871|       |
 2872|  3.57k|    auto aperMaxTele = string_to_float(base_match[4].str()) * tc;
 2873|  3.57k|    auto aperMaxShort = base_match[3].length() > 0 ? string_to_float(base_match[3].str()) * tc : aperMaxTele;
  ------------------
  |  Branch (2873:25): [True: 1.80k, False: 1.77k]
  ------------------
 2874|       |
 2875|  3.57k|    if (flMin != exifFlMin || flMax != exifFlMax || exifAperMax < (aperMaxShort - (.1 * tc)) ||
  ------------------
  |  Branch (2875:9): [True: 3.55k, False: 20]
  |  Branch (2875:31): [True: 4, False: 16]
  |  Branch (2875:53): [True: 6, False: 10]
  ------------------
 2876|  3.57k|        exifAperMax > (aperMaxTele + (.1 * tc))) {
  ------------------
  |  Branch (2876:9): [True: 7, False: 3]
  ------------------
 2877|  3.57k|      continue;
 2878|  3.57k|    }
 2879|       |
 2880|      3|    if (unmatched) {
  ------------------
  |  Branch (2880:9): [True: 2, False: 1]
  ------------------
 2881|      2|      unmatched = false;
 2882|      2|      os << label;
 2883|      2|      continue;
 2884|      2|    }
 2885|       |
 2886|      1|    os << " *OR* " << label;
 2887|      1|  }
 2888|       |
 2889|       |  // if the entire for loop left us with unmatched==false
 2890|       |  // we weren't able to find a single matching lens :(
 2891|  1.98k|  if (unmatched) {
  ------------------
  |  Branch (2891:7): [True: 1.97k, False: 2]
  ------------------
 2892|  1.97k|    os << "Unknown Lens (" << lensType << ")";
 2893|  1.97k|  }
 2894|  1.98k|  return os;
 2895|  1.98k|}
canonmn_int.cpp:_ZN5Exiv28InternalL15printCsLensFFFFERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2758|     29|std::ostream& printCsLensFFFF(std::ostream& os, const Value& value, const ExifData* metadata) {
 2759|     29|  try {
 2760|       |    // 1140
 2761|     29|    const auto itModel = metadata->findKey(ExifKey("Exif.Image.Model"));
 2762|     29|    const auto itLens = metadata->findKey(ExifKey("Exif.CanonCs.Lens"));
 2763|     29|    const auto itApert = metadata->findKey(ExifKey("Exif.CanonCs.MaxAperture"));
 2764|       |
 2765|     29|    if (itModel != metadata->end() && itModel->value().toString() == "Canon EOS 30D" && itLens != metadata->end() &&
  ------------------
  |  Branch (2765:9): [True: 13, False: 16]
  |  Branch (2765:9): [True: 0, False: 29]
  |  Branch (2765:39): [True: 1, False: 12]
  |  Branch (2765:89): [True: 1, False: 0]
  ------------------
 2766|      1|        itLens->value().toString() == "24 24 1" && itApert != metadata->end() &&
  ------------------
  |  Branch (2766:9): [True: 0, False: 1]
  |  Branch (2766:52): [True: 0, False: 0]
  ------------------
 2767|      0|        itApert->value().toString() == "95"  // F2.8
  ------------------
  |  Branch (2767:9): [True: 0, False: 0]
  ------------------
 2768|     29|    ) {
 2769|      0|      return os << "Canon EF-S 24mm f/2.8 STM";
 2770|      0|    }
 2771|     29|  } catch (const std::exception&) {
 2772|      0|  }
 2773|       |
 2774|     29|  return EXV_PRINT_TAG(canonCsLensType)(os, value, metadata);
  ------------------
  |  |  199|     29|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2775|     29|}
canonmn_int.cpp:_ZN5Exiv28InternalL15string_to_floatENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
 2789|  12.1k|float string_to_float(std::string_view str) {
 2790|  12.1k|  float val{};
 2791|  12.1k|  std::stringstream ss;
 2792|  12.1k|  std::locale c_locale("C");
 2793|  12.1k|  ss.imbue(c_locale);
 2794|  12.1k|  ss << str;
 2795|  12.1k|  ss >> val;
 2796|       |
 2797|  12.1k|  if (ss.fail()) {
  ------------------
  |  Branch (2797:7): [True: 0, False: 12.1k]
  ------------------
 2798|      0|    throw Error(ErrorCode::kerErrorMessage, "canonmn_int.cpp:string_to_float failed for: ", str);
 2799|      0|  }
 2800|       |
 2801|  12.1k|  return val;
 2802|  12.1k|}

_ZN5Exiv28Internal14CanonMakerNote7tagListEv:
   38|   276k|  static constexpr auto tagList() {
   39|   276k|    return tagInfo_;
   40|   276k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListCsEv:
   42|  8.40M|  static constexpr auto tagListCs() {
   43|  8.40M|    return tagInfoCs_;
   44|  8.40M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListSiEv:
   46|  1.99M|  static constexpr auto tagListSi() {
   47|  1.99M|    return tagInfoSi_;
   48|  1.99M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListCfEv:
   54|    565|  static constexpr auto tagListCf() {
   55|    565|    return tagInfoCf_;
   56|    565|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPiEv:
   58|  2.98M|  static constexpr auto tagListPi() {
   59|  2.98M|    return tagInfoPi_;
   60|  2.98M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListTiEv:
   62|  84.6k|  static constexpr auto tagListTi() {
   63|  84.6k|    return tagInfoTi_;
   64|  84.6k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListFiEv:
   66|  1.07M|  static constexpr auto tagListFi() {
   67|  1.07M|    return tagInfoFi_;
   68|  1.07M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPaEv:
   50|  1.37k|  static constexpr auto tagListPa() {
   51|  1.37k|    return tagInfoPa_;
   52|  1.37k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPrEv:
   70|  2.75k|  static constexpr auto tagListPr() {
   71|  2.75k|    return tagInfoPr_;
   72|  2.75k|  }
_ZN5Exiv28Internal14CanonMakerNote14tagListVigCor2Ev:
  134|    230|  static constexpr auto tagListVigCor2() {
  135|    230|    return tagInfoVigCor2_;
  136|    230|  }
_ZN5Exiv28Internal14CanonMakerNote11tagListLiOpEv:
  138|  3.43k|  static constexpr auto tagListLiOp() {
  139|  3.43k|    return tagInfoLiOp_;
  140|  3.43k|  }
_ZN5Exiv28Internal14CanonMakerNote14tagListAfMiAdjEv:
  126|    442|  static constexpr auto tagListAfMiAdj() {
  127|    442|    return tagInfoAfMiAdj_;
  128|    442|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListLeEv:
  142|    440|  static constexpr auto tagListLe() {
  143|    440|    return tagInfoLe_;
  144|    440|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListAmEv:
  146|  1.07k|  static constexpr auto tagListAm() {
  147|  1.07k|    return tagInfoAm_;
  148|  1.07k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListFilEv:
  154|  6.81k|  static constexpr auto tagListFil() {
  155|  6.81k|    return tagInfoFil_;
  156|  6.81k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListMeEv:
  150|    647|  static constexpr auto tagListMe() {
  151|    647|    return tagInfoMe_;
  152|    647|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListHdrEv:
  158|    931|  static constexpr auto tagListHdr() {
  159|    931|    return tagInfoHdr_;
  160|    931|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListAfCEv:
  162|  20.5k|  static constexpr auto tagListAfC() {
  163|  20.5k|    return tagInfoAfC_;
  164|  20.5k|  }
_ZN5Exiv28Internal14CanonMakerNote11tagListRawBEv:
  166|    710|  static constexpr auto tagListRawB() {
  167|    710|    return tagInfoRawB_;
  168|    710|  }

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

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

_ZN5Exiv29ConverterC2ERNS_8ExifDataERNS_7XmpDataE:
  495|    655|    exifData_(&exifData), iptcData_(nullptr), xmpData_(&xmpData), iptcCharset_(nullptr) {
  496|    655|}
_ZN5Exiv29ConverterC2ERNS_8IptcDataERNS_7XmpDataEPKc:
  499|    655|    exifData_(nullptr), iptcData_(&iptcData), xmpData_(&xmpData), iptcCharset_(iptcCharset) {
  500|    655|}
_ZN5Exiv29Converter10cnvFromXmpEv:
  510|  1.31k|void Converter::cnvFromXmp() {
  511|   165k|  for (auto&& c : conversion_) {
  ------------------
  |  Branch (511:17): [True: 165k, False: 1.31k]
  ------------------
  512|   165k|    if ((c.metadataId_ == mdExif && exifData_) || (c.metadataId_ == mdIptc && iptcData_)) {
  ------------------
  |  Branch (512:10): [True: 136k, False: 28.8k]
  |  Branch (512:37): [True: 68.1k, False: 68.1k]
  |  Branch (512:52): [True: 28.8k, False: 68.1k]
  |  Branch (512:79): [True: 14.4k, False: 14.4k]
  ------------------
  513|  82.5k|      std::invoke(c.key2ToKey1_, *this, c.key2_, c.key1_);
  514|  82.5k|    }
  515|   165k|  }
  516|  1.31k|}
_ZN5Exiv29Converter17prepareExifTargetEPKcb:
  521|  1.48k|bool Converter::prepareExifTarget(const char* to, bool force) {
  522|  1.48k|  auto pos = exifData_->findKey(ExifKey(to));
  523|  1.48k|  if (pos == exifData_->end())
  ------------------
  |  Branch (523:7): [True: 1.48k, False: 0]
  ------------------
  524|  1.48k|    return true;
  525|      0|  if (!overwrite_ && !force)
  ------------------
  |  Branch (525:7): [True: 0, False: 0]
  |  Branch (525:22): [True: 0, False: 0]
  ------------------
  526|      0|    return false;
  527|      0|  exifData_->erase(pos);
  528|      0|  return true;
  529|      0|}
_ZN5Exiv29Converter17prepareIptcTargetEPKcb:
  531|    154|bool Converter::prepareIptcTarget(const char* to, bool force) {
  532|    154|  auto pos = iptcData_->findKey(IptcKey(to));
  533|    154|  if (pos == iptcData_->end())
  ------------------
  |  Branch (533:7): [True: 154, False: 0]
  ------------------
  534|    154|    return true;
  535|      0|  if (!overwrite_ && !force)
  ------------------
  |  Branch (535:7): [True: 0, False: 0]
  |  Branch (535:22): [True: 0, False: 0]
  ------------------
  536|      0|    return false;
  537|      0|  while ((pos = iptcData_->findKey(IptcKey(to))) != iptcData_->end()) {
  ------------------
  |  Branch (537:10): [True: 0, False: 0]
  ------------------
  538|      0|    iptcData_->erase(pos);
  539|      0|  }
  540|      0|  return true;
  541|      0|}
_ZN5Exiv29Converter11cnvXmpValueEPKcS2_:
  844|  58.9k|void Converter::cnvXmpValue(const char* from, const char* to) {
  845|  58.9k|  auto pos = xmpData_->findKey(XmpKey(from));
  846|  58.9k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (846:7): [True: 58.9k, False: 10]
  ------------------
  847|  58.9k|    return;
  848|     10|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (848:7): [True: 0, False: 10]
  ------------------
  849|      0|    return;
  850|     10|  std::string value;
  851|     10|  if (!getTextValue(value, pos)) {
  ------------------
  |  Branch (851:7): [True: 0, False: 10]
  ------------------
  852|      0|#ifndef SUPPRESS_WARNINGS
  853|      0|    EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  854|      0|#endif
  855|      0|    return;
  856|      0|  }
  857|       |  // Todo: Escape non-ASCII characters in XMP text values
  858|     10|  ExifKey key(to);
  859|     10|  if (auto ed = Exifdatum(key); ed.setValue(value) == 0) {
  ------------------
  |  Branch (859:33): [True: 1, False: 9]
  ------------------
  860|      1|    exifData_->add(ed);
  861|      1|  }
  862|     10|  if (erase_)
  ------------------
  |  Branch (862:7): [True: 0, False: 10]
  ------------------
  863|      0|    xmpData_->erase(pos);
  864|     10|}
_ZN5Exiv29Converter13cnvXmpCommentEPKcS2_:
  866|    655|void Converter::cnvXmpComment(const char* from, const char* to) {
  867|    655|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (867:7): [True: 0, False: 655]
  ------------------
  868|      0|    return;
  869|    655|  auto pos = xmpData_->findKey(XmpKey(from));
  870|    655|  if (pos == xmpData_->end())
  ------------------
  |  Branch (870:7): [True: 655, False: 0]
  ------------------
  871|    655|    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|    655|void Converter::cnvXmpArray(const char* from, const char* to) {
  886|    655|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (886:7): [True: 0, False: 655]
  ------------------
  887|      0|    return;
  888|    655|  auto pos = xmpData_->findKey(XmpKey(from));
  889|    655|  if (pos == xmpData_->end())
  ------------------
  |  Branch (889:7): [True: 655, False: 0]
  ------------------
  890|    655|    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.62k|void Converter::cnvXmpDate(const char* from, const char* to) {
  910|  2.62k|  auto pos = xmpData_->findKey(XmpKey(from));
  911|  2.62k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (911:7): [True: 2.46k, False: 154]
  ------------------
  912|  2.46k|    return;
  913|    154|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (913:7): [True: 0, False: 154]
  ------------------
  914|      0|    return;
  915|    154|#ifdef EXV_HAVE_XMP_TOOLKIT
  916|    154|  std::string value = pos->toString();
  917|    154|  if (!pos->value().ok()) {
  ------------------
  |  Branch (917:7): [True: 0, False: 154]
  ------------------
  918|      0|#ifndef SUPPRESS_WARNINGS
  919|      0|    EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  920|      0|#endif
  921|      0|    return;
  922|      0|  }
  923|    154|  XMP_DateTime datetime;
  924|    154|  try {
  925|    154|    SXMPUtils::ConvertToDate(value, &datetime);
  926|    154|    if (std::string(to) != "Exif.GPSInfo.GPSTimeStamp") {
  ------------------
  |  Branch (926:9): [True: 61, False: 93]
  ------------------
  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: 7, False: 54]
  ------------------
  933|      7|        const char* subsecTag = nullptr;
  934|      7|        if (std::string(to) == "Exif.Image.DateTime") {
  ------------------
  |  Branch (934:13): [True: 0, False: 7]
  ------------------
  935|      0|          subsecTag = "Exif.Photo.SubSecTime";
  936|      7|        } else if (std::string(to) == "Exif.Photo.DateTimeOriginal") {
  ------------------
  |  Branch (936:20): [True: 0, False: 7]
  ------------------
  937|      0|          subsecTag = "Exif.Photo.SubSecTimeOriginal";
  938|      7|        } else if (std::string(to) == "Exif.Photo.DateTimeDigitized") {
  ------------------
  |  Branch (938:20): [True: 7, False: 0]
  ------------------
  939|      7|          subsecTag = "Exif.Photo.SubSecTimeDigitized";
  940|      7|        }
  941|      7|        if (subsecTag) {
  ------------------
  |  Branch (941:13): [True: 7, False: 0]
  ------------------
  942|      7|          prepareExifTarget(subsecTag, true);
  943|      7|          (*exifData_)[subsecTag] = std::to_string(datetime.nanoSecond);
  944|      7|        }
  945|      7|      }
  946|     93|    } else {  // "Exif.GPSInfo.GPSTimeStamp"
  947|       |      // Ignore the time zone, assuming the time is in UTC as it should be
  948|       |
  949|     93|      URational rhour(datetime.hour, 1);
  950|     93|      URational rmin(datetime.minute, 1);
  951|     93|      URational rsec(datetime.second, 1);
  952|     93|      if (datetime.nanoSecond != 0) {
  ------------------
  |  Branch (952:11): [True: 0, False: 93]
  ------------------
  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|     93|      std::ostringstream array;
  964|     93|      array << rhour << " " << rmin << " " << rsec;
  965|     93|      (*exifData_)[to] = array.str();
  966|       |
  967|     93|      prepareExifTarget("Exif.GPSInfo.GPSDateStamp", true);
  968|     93|      (*exifData_)["Exif.GPSInfo.GPSDateStamp"] =
  969|     93|          stringFormat("{:4}:{:02}:{:02}", datetime.year, datetime.month, datetime.day);
  ------------------
  |  |   18|     93|#define stringFormat std::format
  ------------------
  970|     93|    }
  971|    154|  }
  972|    154|#ifndef SUPPRESS_WARNINGS
  973|    154|  catch (const XMP_Error& e) {
  974|     93|    EXV_WARNING << "Failed to convert " << from << " to " << to << " (" << e.GetErrMsg() << ")\n";
  ------------------
  |  |  138|     93|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 93]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     93|  LogMsg(LogMsg::warn).os()
  ------------------
  975|     93|    return;
  976|     93|  }
  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.31k|void Converter::cnvXmpVersion(const char* from, const char* to) {
  993|  1.31k|  auto pos = xmpData_->findKey(XmpKey(from));
  994|  1.31k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (994:7): [True: 1.31k, False: 0]
  ------------------
  995|  1.31k|    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|    655|void Converter::cnvXmpGPSVersion(const char* from, const char* to) {
 1013|    655|  auto pos = xmpData_->findKey(XmpKey(from));
 1014|    655|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1014:7): [True: 655, False: 0]
  ------------------
 1015|    655|    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|    655|void Converter::cnvXmpFlash(const char* from, const char* to) {
 1033|    655|  auto pos = xmpData_->findKey(XmpKey(std::string(from) + "/exif:Fired"));
 1034|    655|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1034:7): [True: 655, False: 0]
  ------------------
 1035|    655|    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.62k|void Converter::cnvXmpGPSCoord(const char* from, const char* to) {
 1103|  2.62k|  auto pos = xmpData_->findKey(XmpKey(from));
 1104|  2.62k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1104:7): [True: 2.62k, False: 0]
  ------------------
 1105|  2.62k|    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.4k|void Converter::cnvXmpValueToIptc(const char* from, const char* to) {
 1194|  14.4k|  auto pos = xmpData_->findKey(XmpKey(from));
 1195|  14.4k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1195:7): [True: 14.2k, False: 154]
  ------------------
 1196|  14.2k|    return;
 1197|    154|  if (!prepareIptcTarget(to))
  ------------------
  |  Branch (1197:7): [True: 0, False: 154]
  ------------------
 1198|      0|    return;
 1199|       |
 1200|    154|  if (pos->typeId() == langAlt || pos->typeId() == xmpText) {
  ------------------
  |  Branch (1200:7): [True: 0, False: 154]
  |  Branch (1200:35): [True: 154, False: 0]
  ------------------
 1201|    154|    std::string value;
 1202|    154|    if (!getTextValue(value, pos)) {
  ------------------
  |  Branch (1202:9): [True: 0, False: 154]
  ------------------
 1203|      0|#ifndef SUPPRESS_WARNINGS
 1204|      0|      EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1205|      0|#endif
 1206|      0|      return;
 1207|      0|    }
 1208|    154|    (*iptcData_)[to] = value;
 1209|    154|    (*iptcData_)["Iptc.Envelope.CharacterSet"] = "\033%G";  // indicate UTF-8 encoding
 1210|    154|    if (erase_)
  ------------------
  |  Branch (1210:9): [True: 0, False: 154]
  ------------------
 1211|      0|      xmpData_->erase(pos);
 1212|    154|    return;
 1213|    154|  }
 1214|       |
 1215|      0|  size_t count = pos->count();
 1216|      0|  bool added = false;
 1217|      0|  for (size_t i = 0; i < count; ++i) {
  ------------------
  |  Branch (1217:22): [True: 0, False: 0]
  ------------------
 1218|      0|    std::string value = pos->toString(i);
 1219|      0|    if (!pos->value().ok()) {
  ------------------
  |  Branch (1219:9): [True: 0, False: 0]
  ------------------
 1220|      0|#ifndef SUPPRESS_WARNINGS
 1221|      0|      EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1222|      0|#endif
 1223|      0|      continue;
 1224|      0|    }
 1225|      0|    IptcKey key(to);
 1226|      0|    Iptcdatum id(key);
 1227|      0|    id.setValue(value);
 1228|      0|    iptcData_->add(id);
 1229|      0|    added = true;
 1230|      0|  }
 1231|      0|  if (added)
  ------------------
  |  Branch (1231:7): [True: 0, False: 0]
  ------------------
 1232|      0|    (*iptcData_)["Iptc.Envelope.CharacterSet"] = "\033%G";  // indicate UTF-8 encoding
 1233|      0|  if (erase_)
  ------------------
  |  Branch (1233:7): [True: 0, False: 0]
  ------------------
 1234|      0|    xmpData_->erase(pos);
 1235|      0|}
_ZN5Exiv213copyXmpToExifERKNS_7XmpDataERNS_8ExifDataE:
 1330|    655|void copyXmpToExif(const XmpData& xmpData, ExifData& exifData) {
 1331|    655|  Converter converter(exifData, const_cast<XmpData&>(xmpData));
 1332|    655|  converter.cnvFromXmp();
 1333|    655|}
_ZN5Exiv213copyXmpToIptcERKNS_7XmpDataERNS_8IptcDataE:
 1368|    655|void copyXmpToIptc(const XmpData& xmpData, IptcData& iptcData) {
 1369|    655|  Converter converter(iptcData, const_cast<XmpData&>(xmpData));
 1370|    655|  converter.cnvFromXmp();
 1371|    655|}
_ZN5Exiv220convertStringCharsetERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKcS9_:
 1380|  4.06k|bool convertStringCharset([[maybe_unused]] std::string& str, const char* from, const char* to) {
 1381|  4.06k|  if (0 == strcmp(from, to))
  ------------------
  |  Branch (1381:7): [True: 112, False: 3.94k]
  ------------------
 1382|    112|    return true;  // nothing to do
 1383|  3.94k|#ifdef EXV_HAVE_ICONV
 1384|  3.94k|  return convertStringCharsetIconv(str, from, to);
 1385|       |#elif defined _WIN32
 1386|       |  return convertStringCharsetWindows(str, from, to);
 1387|       |#else
 1388|       |#ifndef SUPPRESS_WARNINGS
 1389|       |  EXV_WARNING << "Charset conversion required but no character mapping functionality available.\n";
 1390|       |#endif
 1391|       |  return false;
 1392|       |#endif
 1393|  4.06k|}
convert.cpp:_ZN12_GLOBAL__N_125convertStringCharsetIconvERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS0_17basic_string_viewIcS3_EES9_:
 1402|  3.94k|bool convertStringCharsetIconv(std::string& str, std::string_view from, std::string_view to) {
 1403|  3.94k|  if (from == to)
  ------------------
  |  Branch (1403:7): [True: 0, False: 3.94k]
  ------------------
 1404|      0|    return true;  // nothing to do
 1405|       |
 1406|  3.94k|  bool ret = true;
 1407|  3.94k|  auto cd = iconv_open(to.data(), from.data());
 1408|  3.94k|  if (cd == iconv_t(-1)) {
  ------------------
  |  Branch (1408:7): [True: 0, False: 3.94k]
  ------------------
 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.94k|  std::string outstr;
 1415|       |#ifdef WINICONV_CONST
 1416|       |  auto inptr = (WINICONV_CONST char*)(str.c_str());
 1417|       |#else
 1418|  3.94k|  auto inptr = (EXV_ICONV_CONST char*)(str.c_str());
 1419|  3.94k|#endif
 1420|  3.94k|  size_t inbytesleft = str.length();
 1421|  12.1k|  while (inbytesleft) {
  ------------------
  |  Branch (1421:10): [True: 10.1k, False: 1.96k]
  ------------------
 1422|  10.1k|    char outbuf[256];
 1423|  10.1k|    char* outptr = outbuf;
 1424|  10.1k|    size_t outbytesleft = sizeof(outbuf);
 1425|  10.1k|    size_t rc = iconv(cd, &inptr, &inbytesleft, &outptr, &outbytesleft);
 1426|  10.1k|    const size_t outbytesProduced = sizeof(outbuf) - outbytesleft;
 1427|  10.1k|    if (rc == std::numeric_limits<size_t>::max() && errno != E2BIG) {
  ------------------
  |  Branch (1427:9): [True: 8.80k, False: 1.36k]
  |  Branch (1427:53): [True: 1.97k, False: 6.82k]
  ------------------
 1428|  1.97k|#ifndef SUPPRESS_WARNINGS
 1429|  1.97k|      EXV_WARNING << "iconv: " << strError() << " inbytesleft = " << inbytesleft << "\n";
  ------------------
  |  |  138|  1.97k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.97k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.97k|  LogMsg(LogMsg::warn).os()
  ------------------
 1430|  1.97k|#endif
 1431|  1.97k|      ret = false;
 1432|  1.97k|      break;
 1433|  1.97k|    }
 1434|  8.19k|    outstr.append(std::string(outbuf, outbytesProduced));
 1435|  8.19k|  }
 1436|       |
 1437|  3.94k|  if (cd)
  ------------------
  |  Branch (1437:7): [True: 3.94k, False: 0]
  ------------------
 1438|  3.94k|    iconv_close(cd);
 1439|       |
 1440|  3.94k|  if (ret)
  ------------------
  |  Branch (1440:7): [True: 1.96k, False: 1.97k]
  ------------------
 1441|  1.96k|    str = std::move(outstr);
 1442|  3.94k|  return ret;
 1443|  3.94k|}
convert.cpp:_ZN12_GLOBAL__N_112getTextValueERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS0_11__wrap_iterIPN5Exiv28XmpdatumEEE:
 1592|    164|bool getTextValue(std::string& value, XmpData::iterator pos) {
 1593|    164|  if (pos->typeId() == langAlt) {
  ------------------
  |  Branch (1593:7): [True: 0, False: 164]
  ------------------
 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|    164|  } else {
 1610|    164|    value = pos->toString();
 1611|    164|  }
 1612|    164|  return pos->value().ok();
 1613|    164|}

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

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

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

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

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

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

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

_ZN5Exiv28EpsImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEERKNS_15ImageCtorParamsE:
 1027|  1.43k|    Image(ImageType::eps, mdXmp, std::move(io), params) {
 1028|       |  // LogMsg::setLevel(LogMsg::debug);
 1029|  1.43k|  if (params.create() && io_->open() == 0) {
  ------------------
  |  Branch (1029:7): [True: 0, False: 1.43k]
  |  Branch (1029:26): [True: 0, False: 0]
  ------------------
 1030|       |#ifdef DEBUG
 1031|       |    EXV_DEBUG << "Exiv2::EpsImage:: Creating blank EPS image\n";
 1032|       |#endif
 1033|      0|    IoCloser closer(*io_);
 1034|      0|    if (io_->write(reinterpret_cast<const byte*>(epsBlank.data()), epsBlank.size()) != epsBlank.size()) {
  ------------------
  |  Branch (1034:9): [True: 0, False: 0]
  ------------------
 1035|      0|#ifndef SUPPRESS_WARNINGS
 1036|      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()
  ------------------
 1037|      0|#endif
 1038|      0|      throw Error(ErrorCode::kerImageWriteFailed);
 1039|      0|    }
 1040|      0|  }
 1041|  1.43k|}
_ZN5Exiv28EpsImage12readMetadataEv:
 1051|  1.43k|void EpsImage::readMetadata() {
 1052|       |#ifdef DEBUG
 1053|       |  EXV_DEBUG << "Exiv2::EpsImage::readMetadata: Reading EPS file " << io_->path() << "\n";
 1054|       |#endif
 1055|       |
 1056|       |  // read metadata
 1057|  1.43k|  readWriteEpsMetadata(*io_, xmpPacket_, nativePreviews_, /* write = */ false);
 1058|       |
 1059|       |  // decode XMP metadata
 1060|  1.43k|  const DecodeParams dp(max_recursion_depth_);
 1061|  1.43k|  if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_, dp) > 1) {
  ------------------
  |  Branch (1061:7): [True: 11, False: 1.42k]
  |  Branch (1061:30): [True: 11, False: 0]
  ------------------
 1062|     11|#ifndef SUPPRESS_WARNINGS
 1063|     11|    EXV_WARNING << "Failed to decode XMP metadata.\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()
  ------------------
 1064|     11|#endif
 1065|     11|    throw Error(ErrorCode::kerFailedToReadImageData);
 1066|     11|  }
 1067|       |
 1068|       |#ifdef DEBUG
 1069|       |  EXV_DEBUG << "Exiv2::EpsImage::readMetadata: Finished reading EPS file " << io_->path() << "\n";
 1070|       |#endif
 1071|  1.43k|}
_ZN5Exiv214newEpsInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEERKNS_15ImageCtorParamsE:
 1096|  1.43k|Image::UniquePtr newEpsInstance(BasicIo::UniquePtr io, const ImageCtorParams& params) {
 1097|  1.43k|  auto image = std::make_unique<EpsImage>(std::move(io), params);
 1098|  1.43k|  if (!image->good()) {
  ------------------
  |  Branch (1098:7): [True: 0, False: 1.43k]
  ------------------
 1099|      0|    return nullptr;
 1100|      0|  }
 1101|  1.43k|  return image;
 1102|  1.43k|}
_ZN5Exiv29isEpsTypeERNS_7BasicIoEb:
 1104|  14.3k|bool isEpsType(BasicIo& iIo, bool advance) {
 1105|       |  // read as many bytes as needed for the longest (DOS) EPS signature
 1106|  14.3k|  constexpr auto bufSize = [] {
 1107|  14.3k|    auto f = [](const auto& a, const auto& b) { return a.size() < b.size(); };
 1108|  14.3k|    return std::max_element(epsFirstLine.begin(), epsFirstLine.end(), f)->size();
 1109|  14.3k|  }();
 1110|  14.3k|  const size_t restore = iIo.tell();  // save
 1111|  14.3k|  DataBuf buf = iIo.read(bufSize);
 1112|  14.3k|  if (iIo.error() || buf.size() != bufSize) {
  ------------------
  |  Branch (1112:7): [True: 0, False: 14.3k]
  |  Branch (1112:22): [True: 0, False: 14.3k]
  ------------------
 1113|      0|    iIo.seek(restore, BasicIo::beg);
 1114|      0|    return false;
 1115|      0|  }
 1116|       |  // check for all possible (DOS) EPS signatures
 1117|  14.3k|  bool matched = (buf.cmpBytes(0, dosEpsSignature.data(), dosEpsSignature.size()) == 0);
 1118|  14.3k|  if (!matched) {
  ------------------
  |  Branch (1118:7): [True: 13.7k, False: 530]
  ------------------
 1119|  39.4k|    for (auto&& eps : epsFirstLine) {
  ------------------
  |  Branch (1119:21): [True: 39.4k, False: 11.4k]
  ------------------
 1120|  39.4k|      if (buf.cmpBytes(0, eps.data(), eps.size()) == 0) {
  ------------------
  |  Branch (1120:11): [True: 2.34k, False: 37.1k]
  ------------------
 1121|  2.34k|        matched = true;
 1122|  2.34k|        break;
 1123|  2.34k|      }
 1124|  39.4k|    }
 1125|  13.7k|  }
 1126|       |  // seek back if possible and requested
 1127|  14.3k|  if (!advance || !matched) {
  ------------------
  |  Branch (1127:7): [True: 14.3k, False: 0]
  |  Branch (1127:19): [True: 0, False: 0]
  ------------------
 1128|  14.3k|    iIo.seek(restore, BasicIo::beg);
 1129|  14.3k|  }
 1130|  14.3k|  return matched;
 1131|  14.3k|}
epsimage.cpp:_ZN12_GLOBAL__N_120readWriteEpsMetadataERN5Exiv27BasicIoERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS3_6vectorINS0_13NativePreviewENS7_ISC_EEEEb:
  224|  1.43k|void readWriteEpsMetadata(BasicIo& io, std::string& xmpPacket, NativePreviewList& nativePreviews, bool write) {
  225|       |  // open input file
  226|  1.43k|  if (io.open() != 0) {
  ------------------
  |  Branch (226:7): [True: 0, False: 1.43k]
  ------------------
  227|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  228|      0|  }
  229|  1.43k|  IoCloser closer(io);
  230|       |
  231|       |  // read from input file via memory map
  232|  1.43k|  const byte* data = io.mmap();
  233|       |
  234|       |  // default positions and sizes
  235|  1.43k|  const size_t size = io.size();
  236|  1.43k|  size_t posEps = 0;
  237|  1.43k|  size_t posEndEps = size;
  238|  1.43k|  uint32_t posWmf = 0;
  239|  1.43k|  uint32_t sizeWmf = 0;
  240|  1.43k|  uint32_t posTiff = 0;
  241|  1.43k|  uint32_t sizeTiff = 0;
  242|       |
  243|  1.43k|  ErrorCode errcode = write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData;
  ------------------
  |  Branch (243:23): [True: 0, False: 1.43k]
  ------------------
  244|       |
  245|       |  // check for DOS EPS
  246|  1.43k|  const bool dosEps =
  247|  1.43k|      (size >= dosEpsSignature.size() && memcmp(data, dosEpsSignature.data(), dosEpsSignature.size()) == 0);
  ------------------
  |  Branch (247:8): [True: 1.43k, False: 0]
  |  Branch (247:42): [True: 265, False: 1.17k]
  ------------------
  248|  1.43k|  if (dosEps) {
  ------------------
  |  Branch (248:7): [True: 265, False: 1.17k]
  ------------------
  249|       |#ifdef DEBUG
  250|       |    EXV_DEBUG << "readWriteEpsMetadata: Found DOS EPS signature\n";
  251|       |#endif
  252|       |
  253|    265|    enforce(size >= 30, errcode);
  254|    265|    posEps = getULong(data + 4, littleEndian);
  255|    265|    posEndEps = getULong(data + 8, littleEndian) + posEps;
  256|    265|    posWmf = getULong(data + 12, littleEndian);
  257|    265|    sizeWmf = getULong(data + 16, littleEndian);
  258|    265|    posTiff = getULong(data + 20, littleEndian);
  259|    265|    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|    265|    if (uint16_t checksum = getUShort(data + 28, littleEndian); checksum != 0xFFFF) {
  ------------------
  |  Branch (266:65): [True: 233, False: 32]
  ------------------
  267|       |#ifdef DEBUG
  268|       |      EXV_DEBUG << "readWriteEpsMetadata: DOS EPS checksum is not FFFF\n";
  269|       |#endif
  270|    233|    }
  271|    265|    if ((posWmf != 0 || sizeWmf != 0) && (posTiff != 0 || sizeTiff != 0)) {
  ------------------
  |  Branch (271:10): [True: 198, False: 67]
  |  Branch (271:25): [True: 40, False: 27]
  |  Branch (271:43): [True: 168, False: 68]
  |  Branch (271:59): [True: 51, False: 17]
  ------------------
  272|    219|#ifndef SUPPRESS_WARNINGS
  273|    219|      EXV_WARNING << "DOS EPS file has both WMF and TIFF section. Only one of those is allowed.\n";
  ------------------
  |  |  138|    219|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 219]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    219|  LogMsg(LogMsg::warn).os()
  ------------------
  274|    219|#endif
  275|    219|      if (write)
  ------------------
  |  Branch (275:11): [True: 0, False: 219]
  ------------------
  276|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  277|    219|    }
  278|    265|    if (sizeWmf == 0 && sizeTiff == 0) {
  ------------------
  |  Branch (278:9): [True: 87, False: 178]
  |  Branch (278:25): [True: 31, False: 56]
  ------------------
  279|     31|#ifndef SUPPRESS_WARNINGS
  280|     31|      EXV_WARNING << "DOS EPS file has neither WMF nor TIFF section. Exactly one of those is required.\n";
  ------------------
  |  |  138|     31|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 31]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     31|  LogMsg(LogMsg::warn).os()
  ------------------
  281|     31|#endif
  282|     31|      if (write)
  ------------------
  |  Branch (282:11): [True: 0, False: 31]
  ------------------
  283|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  284|     31|    }
  285|    265|    enforce(30 <= posEps, errcode);
  286|    265|    enforce(sizeWmf == 0 || 30 <= posWmf, errcode);
  ------------------
  |  Branch (286:13): [True: 97, False: 168]
  |  Branch (286:29): [True: 131, False: 37]
  ------------------
  287|    265|    enforce(sizeTiff == 0 || 30 <= posTiff, errcode);
  ------------------
  |  Branch (287:13): [True: 85, False: 180]
  |  Branch (287:30): [True: 135, False: 45]
  ------------------
  288|       |
  289|    265|    enforce(posEps <= posEndEps && posEndEps <= size, errcode);
  ------------------
  |  Branch (289:13): [True: 166, False: 99]
  |  Branch (289:36): [True: 52, False: 114]
  ------------------
  290|    265|    enforce(posWmf <= size && sizeWmf <= size - posWmf, errcode);
  ------------------
  |  Branch (290:13): [True: 34, False: 231]
  |  Branch (290:31): [True: 25, False: 9]
  ------------------
  291|    265|    enforce(posTiff <= size && sizeTiff <= size - posTiff, errcode);
  ------------------
  |  Branch (291:13): [True: 17, False: 248]
  |  Branch (291:32): [True: 16, False: 1]
  ------------------
  292|    265|  }
  293|       |
  294|       |  // check first line
  295|  1.43k|  std::string firstLine;
  296|  1.43k|  const size_t posSecondLine = readLine(firstLine, data, posEps, posEndEps);
  297|       |#ifdef DEBUG
  298|       |  EXV_DEBUG << "readWriteEpsMetadata: First line: " << firstLine << "\n";
  299|       |#endif
  300|  1.43k|  auto it = std::find(epsFirstLine.begin(), epsFirstLine.end(), firstLine);
  301|  1.43k|  if (it == epsFirstLine.end()) {
  ------------------
  |  Branch (301:7): [True: 48, False: 1.39k]
  ------------------
  302|     48|    throw Error(ErrorCode::kerNotAnImage, "EPS");
  303|     48|  }
  304|       |
  305|       |  // determine line ending style of the first line
  306|  1.39k|  if (posSecondLine >= posEndEps) {
  ------------------
  |  Branch (306:7): [True: 3, False: 1.38k]
  ------------------
  307|      3|#ifndef SUPPRESS_WARNINGS
  308|      3|    EXV_WARNING << "Premature end of file after first line.\n";
  ------------------
  |  |  138|      3|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 3]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      3|  LogMsg(LogMsg::warn).os()
  ------------------
  309|      3|#endif
  310|      3|    throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (310:17): [True: 0, False: 3]
  ------------------
  311|      3|  }
  312|  1.38k|  const std::string lineEnding(reinterpret_cast<const char*>(data + posEps + firstLine.size()),
  313|  1.38k|                               posSecondLine - (posEps + firstLine.size()));
  314|       |#ifdef DEBUG
  315|       |  if (lineEnding == "\n") {
  316|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: Unix (LF)\n";
  317|       |  } else if (lineEnding == "\r") {
  318|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: Mac (CR)\n";
  319|       |  } else if (lineEnding == "\r\n") {
  320|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: DOS (CR LF)\n";
  321|       |  } else {
  322|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: (unknown)\n";
  323|       |  }
  324|       |#endif
  325|       |
  326|       |  // scan comments
  327|  1.38k|  size_t posLanguageLevel = posEndEps;
  328|  1.38k|  size_t posContainsXmp = posEndEps;
  329|  1.38k|  size_t posPages = posEndEps;
  330|  1.38k|  size_t posExiv2Version = posEndEps;
  331|  1.38k|  size_t posExiv2Website = posEndEps;
  332|  1.38k|  size_t posEndComments = posEndEps;
  333|  1.38k|  size_t posAi7Thumbnail = posEndEps;
  334|  1.38k|  size_t posAi7ThumbnailEndData = posEndEps;
  335|  1.38k|  size_t posBeginPhotoshop = posEndEps;
  336|  1.38k|  size_t posEndPhotoshop = posEndEps;
  337|  1.38k|  size_t posPage = posEndEps;
  338|  1.38k|  size_t posBeginPageSetup = posEndEps;
  339|  1.38k|  size_t posEndPageSetup = posEndEps;
  340|  1.38k|  size_t posPageTrailer = posEndEps;
  341|  1.38k|  size_t posEof = posEndEps;
  342|  1.38k|  std::vector<std::pair<size_t, size_t>> removableEmbeddings;
  343|  1.38k|  size_t depth = 0;
  344|  1.38k|  const size_t maxDepth = std::numeric_limits<size_t>::max();
  345|  1.38k|  bool illustrator8 = false;
  346|  1.38k|  bool corelDraw = false;
  347|  1.38k|  bool implicitPage = false;
  348|  1.38k|  bool implicitPageSetup = false;
  349|  1.38k|  bool implicitPageTrailer = false;
  350|  1.38k|  bool inDefaultsPreviewPrologSetup = false;
  351|  1.38k|  bool inRemovableEmbedding = false;
  352|  1.38k|  std::string removableEmbeddingEndLine;
  353|  1.38k|  size_t removableEmbeddingsWithUnmarkedTrailer = 0;
  354|   271k|  for (size_t pos = posEps; pos < posEof;) {
  ------------------
  |  Branch (354:29): [True: 270k, False: 1.33k]
  ------------------
  355|   270k|    const size_t startPos = pos;
  356|   270k|    std::string line;
  357|   270k|    pos = readLine(line, data, startPos, posEndEps);
  358|       |#ifdef DEBUG
  359|       |    bool significantLine = true;
  360|       |#endif
  361|       |    // nested documents
  362|   270k|    if (posPage == posEndEps && (line.starts_with("%%IncludeDocument:") || line.starts_with("%%BeginDocument:"))) {
  ------------------
  |  Branch (362:9): [True: 186k, False: 84.0k]
  |  Branch (362:34): [True: 7, False: 185k]
  |  Branch (362:76): [True: 12, False: 185k]
  ------------------
  363|     19|#ifndef SUPPRESS_WARNINGS
  364|     19|      EXV_WARNING << "Nested document at invalid position: " << startPos << "\n";
  ------------------
  |  |  138|     19|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 19]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     19|  LogMsg(LogMsg::warn).os()
  ------------------
  365|     19|#endif
  366|     19|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (366:19): [True: 0, False: 19]
  ------------------
  367|     19|    }
  368|   270k|    if (line.starts_with("%%BeginDocument:")) {
  ------------------
  |  Branch (368:9): [True: 246, False: 269k]
  ------------------
  369|    246|      if (depth == maxDepth) {
  ------------------
  |  Branch (369:11): [True: 0, False: 246]
  ------------------
  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|    246|      depth++;
  376|   269k|    } else if (line.starts_with("%%EndDocument")) {
  ------------------
  |  Branch (376:16): [True: 68, False: 269k]
  ------------------
  377|     68|      if (depth == 0) {
  ------------------
  |  Branch (377:11): [True: 12, False: 56]
  ------------------
  378|     12|#ifndef SUPPRESS_WARNINGS
  379|     12|        EXV_WARNING << "Unmatched EndDocument at position: " << startPos << "\n";
  ------------------
  |  |  138|     12|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 12]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     12|  LogMsg(LogMsg::warn).os()
  ------------------
  380|     12|#endif
  381|     12|        throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (381:21): [True: 0, False: 12]
  ------------------
  382|     12|      }
  383|     56|      depth--;
  384|   269k|    } else {
  385|       |#ifdef DEBUG
  386|       |      significantLine = false;
  387|       |#endif
  388|   269k|    }
  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|   270k|    if (depth != 0)
  ------------------
  |  Branch (395:9): [True: 1.08k, False: 268k]
  ------------------
  396|  1.08k|      continue;
  397|       |    // explicit "Begin" comments
  398|   268k|    if (line.starts_with("%%BeginPreview:")) {
  ------------------
  |  Branch (398:9): [True: 778, False: 268k]
  ------------------
  399|    778|      inDefaultsPreviewPrologSetup = true;
  400|   268k|    } else if (line == "%%BeginDefaults") {
  ------------------
  |  Branch (400:16): [True: 202, False: 267k]
  ------------------
  401|    202|      inDefaultsPreviewPrologSetup = true;
  402|   267k|    } else if (line == "%%BeginProlog") {
  ------------------
  |  Branch (402:16): [True: 337, False: 267k]
  ------------------
  403|    337|      inDefaultsPreviewPrologSetup = true;
  404|   267k|    } else if (line == "%%BeginSetup") {
  ------------------
  |  Branch (404:16): [True: 586, False: 267k]
  ------------------
  405|    586|      inDefaultsPreviewPrologSetup = true;
  406|   267k|    } else if (posPage == posEndEps && line.starts_with("%%Page:")) {
  ------------------
  |  Branch (406:16): [True: 184k, False: 82.5k]
  |  Branch (406:40): [True: 71, False: 184k]
  ------------------
  407|     71|      posPage = startPos;
  408|   266k|    } else if (posPage != posEndEps && line.starts_with("%%Page:")) {
  ------------------
  |  Branch (408:16): [True: 82.5k, False: 184k]
  |  Branch (408:40): [True: 23, False: 82.5k]
  ------------------
  409|     23|      if (implicitPage) {
  ------------------
  |  Branch (409:11): [True: 13, False: 10]
  ------------------
  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|     10|#ifndef SUPPRESS_WARNINGS
  417|     10|      EXV_WARNING << "Unable to handle multiple PostScript pages. Found second page at position: " << startPos << "\n";
  ------------------
  |  |  138|     10|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 10]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     10|  LogMsg(LogMsg::warn).os()
  ------------------
  418|     10|#endif
  419|     10|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (419:19): [True: 0, False: 10]
  ------------------
  420|   266k|    } else if (line == "%%BeginPageSetup") {
  ------------------
  |  Branch (420:16): [True: 571, False: 266k]
  ------------------
  421|    571|      posBeginPageSetup = startPos;
  422|   266k|    } else if (!inRemovableEmbedding && line == "%Exiv2BeginXMP: Before %%EndPageSetup") {
  ------------------
  |  Branch (422:16): [True: 91.3k, False: 174k]
  |  Branch (422:41): [True: 574, False: 90.8k]
  ------------------
  423|    574|      inRemovableEmbedding = true;
  424|    574|      removableEmbeddings.emplace_back(startPos, startPos);
  425|    574|      removableEmbeddingEndLine = "%Exiv2EndXMP";
  426|   265k|    } else if (!inRemovableEmbedding && line == "%Exiv2BeginXMP: After %%PageTrailer") {
  ------------------
  |  Branch (426:16): [True: 90.8k, False: 174k]
  |  Branch (426:41): [True: 625, False: 90.1k]
  ------------------
  427|    625|      inRemovableEmbedding = true;
  428|    625|      removableEmbeddings.emplace_back(startPos, startPos);
  429|    625|      removableEmbeddingEndLine = "%Exiv2EndXMP";
  430|   265k|    } else if (!inRemovableEmbedding && line == "%ADOBeginClientInjection: PageSetup End \"AI11EPS\"") {
  ------------------
  |  Branch (430:16): [True: 90.1k, False: 174k]
  |  Branch (430:41): [True: 921, False: 89.2k]
  ------------------
  431|    921|      inRemovableEmbedding = true;
  432|    921|      removableEmbeddings.emplace_back(startPos, startPos);
  433|    921|      removableEmbeddingEndLine = "%ADOEndClientInjection: PageSetup End \"AI11EPS\"";
  434|   264k|    } else if (!inRemovableEmbedding && line == "%ADOBeginClientInjection: PageTrailer Start \"AI11EPS\"") {
  ------------------
  |  Branch (434:16): [True: 89.2k, False: 174k]
  |  Branch (434:41): [True: 376, False: 88.9k]
  ------------------
  435|    376|      inRemovableEmbedding = true;
  436|    376|      removableEmbeddings.emplace_back(startPos, startPos);
  437|    376|      removableEmbeddingEndLine = "%ADOEndClientInjection: PageTrailer Start \"AI11EPS\"";
  438|   263k|    } else if (!inRemovableEmbedding && line == "%begin_xml_code") {
  ------------------
  |  Branch (438:16): [True: 88.9k, False: 174k]
  |  Branch (438:41): [True: 627, False: 88.2k]
  ------------------
  439|    627|      inRemovableEmbedding = true;
  440|    627|      removableEmbeddings.emplace_back(startPos, startPos);
  441|    627|      removableEmbeddingEndLine = "%end_xml_code";
  442|    627|      removableEmbeddingsWithUnmarkedTrailer++;
  443|   263k|    } else {
  444|       |#ifdef DEBUG
  445|       |      significantLine = false;
  446|       |#endif
  447|   263k|    }
  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|   268k|    if (line == "%%EOF" || line == "%begin_xml_code" || line.size() < 2 || line.front() != '%' || '\x21' > line[1] ||
  ------------------
  |  Branch (455:9): [True: 12, False: 268k]
  |  Branch (455:28): [True: 1.04k, False: 267k]
  |  Branch (455:57): [True: 121k, False: 146k]
  |  Branch (455:76): [True: 69.8k, False: 76.4k]
  |  Branch (455:99): [True: 4.29k, False: 72.1k]
  ------------------
  456|   196k|        line[1] > '\x7e') {
  ------------------
  |  Branch (456:9): [True: 50, False: 72.0k]
  ------------------
  457|   196k|      if (posEndComments == posEndEps) {
  ------------------
  |  Branch (457:11): [True: 775, False: 196k]
  ------------------
  458|    775|        posEndComments = startPos;
  459|       |#ifdef DEBUG
  460|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndComments at position: " << startPos << "\n";
  461|       |#endif
  462|    775|      }
  463|   196k|    }
  464|   268k|    if (posPage == posEndEps && posEndComments != posEndEps && !inDefaultsPreviewPrologSetup && !inRemovableEmbedding &&
  ------------------
  |  Branch (464:9): [True: 185k, False: 82.9k]
  |  Branch (464:33): [True: 173k, False: 12.5k]
  |  Branch (464:64): [True: 4.30k, False: 169k]
  |  Branch (464:97): [True: 1.92k, False: 2.37k]
  ------------------
  465|  1.92k|        !onlyWhitespaces(line)) {
  ------------------
  |  Branch (465:9): [True: 548, False: 1.37k]
  ------------------
  466|    548|      posPage = startPos;
  467|    548|      implicitPage = true;
  468|       |#ifdef DEBUG
  469|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit Page at position: " << startPos << "\n";
  470|       |#endif
  471|    548|    }
  472|   268k|    if (posBeginPageSetup == posEndEps &&
  ------------------
  |  Branch (472:9): [True: 138k, False: 130k]
  ------------------
  473|   138k|        (implicitPage || (posPage != posEndEps && !inRemovableEmbedding && !line.empty() && line.front() != '%'))) {
  ------------------
  |  Branch (473:10): [True: 543, False: 138k]
  |  Branch (473:27): [True: 1.62k, False: 136k]
  |  Branch (473:51): [True: 1.23k, False: 393]
  |  Branch (473:76): [True: 956, False: 280]
  |  Branch (473:93): [True: 21, False: 935]
  ------------------
  474|    564|      posBeginPageSetup = startPos;
  475|    564|      implicitPageSetup = true;
  476|       |#ifdef DEBUG
  477|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit BeginPageSetup at position: " << startPos << "\n";
  478|       |#endif
  479|    564|    }
  480|   268k|    if (posEndPageSetup == posEndEps && implicitPageSetup && !inRemovableEmbedding && !line.empty() &&
  ------------------
  |  Branch (480:9): [True: 141k, False: 127k]
  |  Branch (480:41): [True: 3.28k, False: 138k]
  |  Branch (480:62): [True: 2.62k, False: 654]
  |  Branch (480:87): [True: 1.95k, False: 674]
  ------------------
  481|  1.95k|        line.front() != '%') {
  ------------------
  |  Branch (481:9): [True: 456, False: 1.49k]
  ------------------
  482|    456|      posEndPageSetup = startPos;
  483|       |#ifdef DEBUG
  484|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndPageSetup at position: " << startPos << "\n";
  485|       |#endif
  486|    456|    }
  487|   268k|    if (!line.empty() && line.front() != '%')
  ------------------
  |  Branch (487:9): [True: 164k, False: 103k]
  |  Branch (487:26): [True: 87.2k, False: 77.6k]
  ------------------
  488|  87.2k|      continue;  // performance optimization
  489|   181k|    if (line == "%%EOF" || line == "%%Trailer" || line == "%%PageTrailer") {
  ------------------
  |  Branch (489:9): [True: 12, False: 181k]
  |  Branch (489:28): [True: 431, False: 181k]
  |  Branch (489:51): [True: 152, False: 181k]
  ------------------
  490|    595|      if (posBeginPageSetup == posEndEps) {
  ------------------
  |  Branch (490:11): [True: 28, False: 567]
  ------------------
  491|     28|        posBeginPageSetup = startPos;
  492|     28|        implicitPageSetup = true;
  493|       |#ifdef DEBUG
  494|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit BeginPageSetup at position: " << startPos << "\n";
  495|       |#endif
  496|     28|      }
  497|    595|      if (posEndPageSetup == posEndEps) {
  ------------------
  |  Branch (497:11): [True: 43, False: 552]
  ------------------
  498|     43|        posEndPageSetup = startPos;
  499|     43|        implicitPageSetup = true;
  500|       |#ifdef DEBUG
  501|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndPageSetup at position: " << startPos << "\n";
  502|       |#endif
  503|     43|      }
  504|    595|    }
  505|   181k|    if ((line == "%%EOF" || line == "%%Trailer") && posPageTrailer == posEndEps) {
  ------------------
  |  Branch (505:10): [True: 12, False: 181k]
  |  Branch (505:29): [True: 431, False: 181k]
  |  Branch (505:53): [True: 50, False: 393]
  ------------------
  506|     50|      posPageTrailer = startPos;
  507|     50|      implicitPageTrailer = true;
  508|       |#ifdef DEBUG
  509|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit PageTrailer at position: " << startPos << "\n";
  510|       |#endif
  511|     50|    }
  512|       |    // remaining explicit comments
  513|   181k|    if (posEndComments == posEndEps && posLanguageLevel == posEndEps && line.starts_with("%%LanguageLevel:")) {
  ------------------
  |  Branch (513:9): [True: 13.1k, False: 168k]
  |  Branch (513:40): [True: 12.7k, False: 370]
  |  Branch (513:73): [True: 18, False: 12.7k]
  ------------------
  514|     18|      posLanguageLevel = startPos;
  515|   181k|    } else if (posEndComments == posEndEps && posContainsXmp == posEndEps && line.starts_with("%ADO_ContainsXMP:")) {
  ------------------
  |  Branch (515:16): [True: 13.1k, False: 168k]
  |  Branch (515:47): [True: 12.7k, False: 447]
  |  Branch (515:78): [True: 87, False: 12.6k]
  ------------------
  516|     87|      posContainsXmp = startPos;
  517|   181k|    } else if (posEndComments == posEndEps && posPages == posEndEps && line.starts_with("%%Pages:")) {
  ------------------
  |  Branch (517:16): [True: 13.0k, False: 168k]
  |  Branch (517:47): [True: 10.3k, False: 2.67k]
  |  Branch (517:72): [True: 37, False: 10.3k]
  ------------------
  518|     37|      posPages = startPos;
  519|   181k|    } else if (posEndComments == posEndEps && posExiv2Version == posEndEps && line.starts_with("%Exiv2Version:")) {
  ------------------
  |  Branch (519:16): [True: 13.0k, False: 168k]
  |  Branch (519:47): [True: 11.8k, False: 1.15k]
  |  Branch (519:79): [True: 20, False: 11.8k]
  ------------------
  520|     20|      posExiv2Version = startPos;
  521|   181k|    } else if (posEndComments == posEndEps && posExiv2Website == posEndEps && line.starts_with("%Exiv2Website:")) {
  ------------------
  |  Branch (521:16): [True: 13.0k, False: 168k]
  |  Branch (521:47): [True: 12.7k, False: 228]
  |  Branch (521:79): [True: 23, False: 12.7k]
  ------------------
  522|     23|      posExiv2Website = startPos;
  523|   181k|    } else if (posEndComments == posEndEps && line.starts_with("%%Creator: Adobe Illustrator") &&
  ------------------
  |  Branch (523:16): [True: 12.9k, False: 168k]
  |  Branch (523:47): [True: 534, False: 12.4k]
  ------------------
  524|    534|               firstLine == "%!PS-Adobe-3.0 EPSF-3.0") {
  ------------------
  |  Branch (524:16): [True: 253, False: 281]
  ------------------
  525|    253|      illustrator8 = true;
  526|   181k|    } else if (posEndComments == posEndEps && line.starts_with("%AI7_Thumbnail:")) {
  ------------------
  |  Branch (526:16): [True: 12.7k, False: 168k]
  |  Branch (526:47): [True: 619, False: 12.1k]
  ------------------
  527|    619|      posAi7Thumbnail = startPos;
  528|   180k|    } else if (posEndComments == posEndEps && posAi7Thumbnail != posEndEps && posAi7ThumbnailEndData == posEndEps &&
  ------------------
  |  Branch (528:16): [True: 12.1k, False: 168k]
  |  Branch (528:47): [True: 2.11k, False: 9.99k]
  |  Branch (528:79): [True: 1.90k, False: 205]
  ------------------
  529|  1.90k|               line == "%%EndData") {
  ------------------
  |  Branch (529:16): [True: 78, False: 1.83k]
  ------------------
  530|     78|      posAi7ThumbnailEndData = startPos;
  531|   180k|    } else if (posEndComments == posEndEps && line == "%%EndComments") {
  ------------------
  |  Branch (531:16): [True: 12.0k, False: 168k]
  |  Branch (531:47): [True: 1, False: 12.0k]
  ------------------
  532|      1|      posEndComments = startPos;
  533|   180k|    } else if (inDefaultsPreviewPrologSetup && line.starts_with("%%BeginResource: procset wCorel")) {
  ------------------
  |  Branch (533:16): [True: 127k, False: 53.4k]
  |  Branch (533:48): [True: 127, False: 126k]
  ------------------
  534|    127|      corelDraw = true;
  535|   180k|    } else if (line == "%%EndPreview") {
  ------------------
  |  Branch (535:16): [True: 198, False: 180k]
  ------------------
  536|    198|      inDefaultsPreviewPrologSetup = false;
  537|   180k|    } else if (line == "%%EndDefaults") {
  ------------------
  |  Branch (537:16): [True: 134, False: 180k]
  ------------------
  538|    134|      inDefaultsPreviewPrologSetup = false;
  539|   180k|    } else if (line == "%%EndProlog") {
  ------------------
  |  Branch (539:16): [True: 311, False: 179k]
  ------------------
  540|    311|      inDefaultsPreviewPrologSetup = false;
  541|   179k|    } else if (line == "%%EndSetup") {
  ------------------
  |  Branch (541:16): [True: 295, False: 179k]
  ------------------
  542|    295|      inDefaultsPreviewPrologSetup = false;
  543|   179k|    } else if (posEndPageSetup == posEndEps && line == "%%EndPageSetup") {
  ------------------
  |  Branch (543:16): [True: 96.3k, False: 83.1k]
  |  Branch (543:48): [True: 11, False: 96.3k]
  ------------------
  544|     11|      posEndPageSetup = startPos;
  545|   179k|    } else if (posPageTrailer == posEndEps && line == "%%PageTrailer") {
  ------------------
  |  Branch (545:16): [True: 126k, False: 53.2k]
  |  Branch (545:47): [True: 22, False: 126k]
  ------------------
  546|     22|      posPageTrailer = startPos;
  547|   179k|    } else if (posBeginPhotoshop == posEndEps && line.starts_with("%BeginPhotoshop:")) {
  ------------------
  |  Branch (547:16): [True: 178k, False: 1.06k]
  |  Branch (547:50): [True: 48, False: 178k]
  ------------------
  548|     48|      posBeginPhotoshop = pos;
  549|   179k|    } else if (posBeginPhotoshop != posEndEps && posEndPhotoshop == posEndEps && line == "%EndPhotoshop") {
  ------------------
  |  Branch (549:16): [True: 1.06k, False: 178k]
  |  Branch (549:50): [True: 911, False: 156]
  |  Branch (549:82): [True: 21, False: 890]
  ------------------
  550|     21|      posEndPhotoshop = startPos;
  551|   179k|    } else if (inRemovableEmbedding && line == removableEmbeddingEndLine) {
  ------------------
  |  Branch (551:16): [True: 115k, False: 63.9k]
  |  Branch (551:40): [True: 2.90k, False: 112k]
  ------------------
  552|  2.90k|      inRemovableEmbedding = false;
  553|  2.90k|      removableEmbeddings.back().second = pos;
  554|   176k|    } else if (line == "%%EOF") {
  ------------------
  |  Branch (554:16): [True: 12, False: 176k]
  ------------------
  555|     12|      posEof = startPos;
  556|   176k|    } else {
  557|       |#ifdef DEBUG
  558|       |      significantLine = false;
  559|       |#endif
  560|   176k|    }
  561|       |#ifdef DEBUG
  562|       |    if (significantLine) {
  563|       |      EXV_DEBUG << "readWriteEpsMetadata: Found significant line \"" << line << "\" at position: " << startPos << "\n";
  564|       |    }
  565|       |#endif
  566|   181k|  }
  567|       |
  568|       |  // check for unfinished nested documents
  569|  1.33k|  if (depth != 0) {
  ------------------
  |  Branch (569:7): [True: 26, False: 1.30k]
  ------------------
  570|     26|#ifndef SUPPRESS_WARNINGS
  571|     26|    EXV_WARNING << "Unmatched BeginDocument (" << depth << "x)\n";
  ------------------
  |  |  138|     26|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 26]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     26|  LogMsg(LogMsg::warn).os()
  ------------------
  572|     26|#endif
  573|     26|    throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (573:17): [True: 0, False: 26]
  ------------------
  574|     26|  }
  575|       |
  576|       |  // look for the unmarked trailers of some removable XMP embeddings
  577|  1.30k|  size_t posXmpTrailerEnd = posEof;
  578|  1.31k|  for (size_t i = 0; i < removableEmbeddingsWithUnmarkedTrailer; i++) {
  ------------------
  |  Branch (578:22): [True: 155, False: 1.15k]
  ------------------
  579|    155|    std::string line1;
  580|    155|    const size_t posLine1 = readPrevLine(line1, data, posXmpTrailerEnd, posEndEps);
  581|    155|    std::string line2;
  582|    155|    const size_t posLine2 = readPrevLine(line2, data, posLine1, posEndEps);
  583|    155|    size_t posXmpTrailer;
  584|    155|    if (line1 == "[/EMC pdfmark") {  // Exiftool style
  ------------------
  |  Branch (584:9): [True: 2, False: 153]
  ------------------
  585|      2|      posXmpTrailer = posLine1;
  586|    153|    } else if (line1 == "[/NamespacePop pdfmark" &&
  ------------------
  |  Branch (586:16): [True: 20, False: 133]
  ------------------
  587|     20|               line2 ==
  ------------------
  |  Branch (587:16): [True: 0, False: 20]
  ------------------
  588|     20|                   "[{nextImage} 1 dict begin /Metadata {photoshop_metadata_stream} def currentdict end /PUT "
  589|     20|                   "pdfmark") {  // Photoshop style
  590|      0|      posXmpTrailer = posLine2;
  591|    153|    } else {
  592|    153|#ifndef SUPPRESS_WARNINGS
  593|    153|      EXV_WARNING << "Unable to find XMP embedding trailer ending at position: " << posXmpTrailerEnd << "\n";
  ------------------
  |  |  138|    153|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 153]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    153|  LogMsg(LogMsg::warn).os()
  ------------------
  594|    153|#endif
  595|    153|      if (write)
  ------------------
  |  Branch (595:11): [True: 0, False: 153]
  ------------------
  596|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  597|    153|      break;
  598|    153|    }
  599|      2|    removableEmbeddings.emplace_back(posXmpTrailer, posXmpTrailerEnd);
  600|       |#ifdef DEBUG
  601|       |    auto [r, s] = removableEmbeddings.back();
  602|       |    EXV_DEBUG << "readWriteEpsMetadata: Recognized unmarked trailer of removable XMP embedding at [" << r << "," << s
  603|       |              << ")\n";
  604|       |#endif
  605|      2|    posXmpTrailerEnd = posXmpTrailer;
  606|      2|  }
  607|       |
  608|       |  // interpret comment "%ADO_ContainsXMP:"
  609|  1.30k|  std::string line;
  610|  1.30k|  readLine(line, data, posContainsXmp, posEndEps);
  611|  1.30k|  bool containsXmp;
  612|  1.30k|  if (line == "%ADO_ContainsXMP: MainFirst" || line == "%ADO_ContainsXMP:MainFirst") {
  ------------------
  |  Branch (612:7): [True: 250, False: 1.05k]
  |  Branch (612:48): [True: 28, False: 1.03k]
  ------------------
  613|     29|    containsXmp = true;
  614|  1.27k|  } else if (line.empty() || line == "%ADO_ContainsXMP: NoMain" || line == "%ADO_ContainsXMP:NoMain") {
  ------------------
  |  Branch (614:14): [True: 1.22k, False: 56]
  |  Branch (614:30): [True: 0, False: 56]
  |  Branch (614:68): [True: 1, False: 55]
  ------------------
  615|    975|    containsXmp = false;
  616|    975|  } else {
  617|    304|#ifndef SUPPRESS_WARNINGS
  618|    304|    EXV_WARNING << "Invalid line \"" << line << "\" at position: " << posContainsXmp << "\n";
  ------------------
  |  |  138|    304|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 304]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    304|  LogMsg(LogMsg::warn).os()
  ------------------
  619|    304|#endif
  620|    304|    throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (620:17): [True: 0, False: 304]
  ------------------
  621|    304|  }
  622|       |
  623|  1.00k|  const bool deleteXmp = (write && xmpPacket.empty());
  ------------------
  |  Branch (623:27): [True: 0, False: 1.00k]
  |  Branch (623:36): [True: 0, False: 0]
  ------------------
  624|  1.00k|  bool fixBeginXmlPacket = false;
  625|  1.00k|  bool useFlexibleEmbedding = false;
  626|  1.00k|  size_t xmpPos = posEndEps;
  627|  1.00k|  size_t xmpSize = 0;
  628|  1.00k|  if (containsXmp) {
  ------------------
  |  Branch (628:7): [True: 29, False: 975]
  ------------------
  629|       |    // search for XMP metadata
  630|     29|    findXmp(xmpPos, xmpSize, data, posEps, posEndEps, write);
  631|     29|    if (xmpPos == posEndEps) {
  ------------------
  |  Branch (631:9): [True: 8, False: 21]
  ------------------
  632|      8|#ifndef SUPPRESS_WARNINGS
  633|      8|      EXV_WARNING << "Unable to find XMP metadata as announced at position: " << posContainsXmp << "\n";
  ------------------
  |  |  138|      8|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 8]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      8|  LogMsg(LogMsg::warn).os()
  ------------------
  634|      8|#endif
  635|      8|    }
  636|       |    // check embedding of XMP metadata
  637|     29|    const size_t posLineAfterXmp = readLine(line, data, xmpPos + xmpSize, posEndEps);
  638|     29|    if (!line.empty()) {
  ------------------
  |  Branch (638:9): [True: 8, False: 21]
  ------------------
  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|     21|    } else if (!deleteXmp) {
  ------------------
  |  Branch (643:16): [True: 12, False: 9]
  ------------------
  644|     12|      readLine(line, data, posLineAfterXmp, posEndEps);
  645|     12|      if (line == "% &&end XMP packet marker&&" || line == "%  &&end XMP packet marker&&") {
  ------------------
  |  Branch (645:11): [True: 1, False: 11]
  |  Branch (645:52): [True: 0, False: 11]
  ------------------
  646|      1|        useFlexibleEmbedding = true;
  647|      1|      }
  648|     12|    }
  649|     29|  }
  650|  1.00k|  if (useFlexibleEmbedding) {
  ------------------
  |  Branch (650:7): [True: 1, False: 1.00k]
  ------------------
  651|       |#ifdef DEBUG
  652|       |    EXV_DEBUG << "readWriteEpsMetadata: Using flexible XMP embedding\n";
  653|       |#endif
  654|      1|    const size_t posBeginXmlPacket = readPrevLine(line, data, xmpPos, posEndEps);
  655|      1|    if (line.starts_with("%begin_xml_packet:")) {
  ------------------
  |  Branch (655:9): [True: 0, False: 1]
  ------------------
  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|      1|    } else if (posBeginPhotoshop != posEndEps) {
  ------------------
  |  Branch (664:16): [True: 1, False: 0]
  ------------------
  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|      1|  }
  672|  1.00k|  if (!useFlexibleEmbedding) {
  ------------------
  |  Branch (672:7): [True: 994, False: 10]
  ------------------
  673|       |    // check if there are irremovable XMP metadata blocks before EndPageSetup
  674|    994|    size_t posOtherXmp = containsXmp ? xmpPos : posEps;
  ------------------
  |  Branch (674:26): [True: 19, False: 975]
  ------------------
  675|    994|    size_t sizeOtherXmp = 0;
  676|  2.47k|    for (;;) {
  677|  2.47k|      findXmp(posOtherXmp, sizeOtherXmp, data, posOtherXmp + sizeOtherXmp, posEndPageSetup, write);
  678|  2.47k|      if (posOtherXmp >= posEndPageSetup)
  ------------------
  |  Branch (678:11): [True: 844, False: 1.63k]
  ------------------
  679|    844|        break;
  680|  1.63k|      bool isRemovableEmbedding = false;
  681|  53.4k|      for (const auto& [r, s] : removableEmbeddings) {
  ------------------
  |  Branch (681:31): [True: 53.4k, False: 150]
  ------------------
  682|  53.4k|        if (r <= posOtherXmp && posOtherXmp < s) {
  ------------------
  |  Branch (682:13): [True: 53.2k, False: 209]
  |  Branch (682:33): [True: 1.48k, False: 51.7k]
  ------------------
  683|  1.48k|          isRemovableEmbedding = true;
  684|  1.48k|          break;
  685|  1.48k|        }
  686|  53.4k|      }
  687|  1.63k|      if (!isRemovableEmbedding) {
  ------------------
  |  Branch (687:11): [True: 40, False: 1.59k]
  ------------------
  688|     40|#ifndef SUPPRESS_WARNINGS
  689|     40|        EXV_WARNING << "XMP metadata block is not removable at position: " << posOtherXmp << "\n";
  ------------------
  |  |  138|     40|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 40]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     40|  LogMsg(LogMsg::warn).os()
  ------------------
  690|     40|#endif
  691|     40|        if (write)
  ------------------
  |  Branch (691:13): [True: 0, False: 40]
  ------------------
  692|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  693|     40|        break;
  694|     40|      }
  695|  1.63k|    }
  696|    994|  }
  697|       |
  698|  1.00k|  if (!write) {
  ------------------
  |  Branch (698:7): [True: 885, False: 119]
  ------------------
  699|       |    // copy XMP metadata
  700|    885|    xmpPacket.assign(reinterpret_cast<const char*>(data + xmpPos), xmpSize);
  701|       |
  702|       |    // native previews
  703|    885|    nativePreviews.clear();
  704|    885|    if (posAi7ThumbnailEndData != posEndEps) {
  ------------------
  |  Branch (704:9): [True: 65, False: 820]
  ------------------
  705|     65|      NativePreview nativePreview;
  706|     65|      std::string dummy;
  707|     65|      std::string lineAi7Thumbnail;
  708|     65|      const size_t posBeginData = readLine(lineAi7Thumbnail, data, posAi7Thumbnail, posEndEps);
  709|     65|      std::istringstream lineStreamAi7Thumbnail(lineAi7Thumbnail);
  710|     65|      lineStreamAi7Thumbnail >> dummy;
  711|     65|      lineStreamAi7Thumbnail >> nativePreview.width_;
  712|     65|      lineStreamAi7Thumbnail >> nativePreview.height_;
  713|     65|      std::string depthStr;
  714|     65|      lineStreamAi7Thumbnail >> depthStr;
  715|     65|      std::string lineBeginData;
  716|     65|      const size_t posAfterBeginData = readLine(lineBeginData, data, posBeginData, posEndEps);
  717|     65|      std::istringstream lineStreamBeginData(lineBeginData);
  718|     65|      std::string beginData;
  719|     65|      lineStreamBeginData >> beginData;
  720|     65|      lineStreamBeginData >> dummy;
  721|     65|      std::string type;
  722|     65|      lineStreamBeginData >> type;
  723|     65|      nativePreview.position_ = static_cast<long>(posAfterBeginData);
  724|     65|      nativePreview.size_ = static_cast<uint32_t>(posAi7ThumbnailEndData - posAfterBeginData);
  725|     65|      nativePreview.filter_ = "hex-ai7thumbnail-pnm";
  726|     65|      nativePreview.mimeType_ = "image/x-portable-anymap";
  727|     65|      if (depthStr != "8") {
  ------------------
  |  Branch (727:11): [True: 65, False: 0]
  ------------------
  728|     65|#ifndef SUPPRESS_WARNINGS
  729|     65|        EXV_WARNING << "Unable to handle Illustrator thumbnail depth: " << depthStr << "\n";
  ------------------
  |  |  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()
  ------------------
  730|     65|#endif
  731|     65|      } 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|     65|    }
  743|    885|    if (posEndPhotoshop != posEndEps) {
  ------------------
  |  Branch (743:9): [True: 21, False: 864]
  ------------------
  744|     21|      auto sizePhotoshop = posEndPhotoshop - posBeginPhotoshop;
  745|     21|      NativePreview nativePreview{posBeginPhotoshop, sizePhotoshop, 0, 0, "hex-irb", "image/jpeg"};
  746|     21|      nativePreviews.push_back(std::move(nativePreview));
  747|     21|    }
  748|    885|    if (sizeWmf != 0) {
  ------------------
  |  Branch (748:9): [True: 0, False: 885]
  ------------------
  749|      0|      NativePreview nativePreview{posWmf, sizeWmf, 0, 0, "", "image/x-wmf"};
  750|      0|      nativePreviews.push_back(std::move(nativePreview));
  751|      0|    }
  752|    885|    if (sizeTiff != 0) {
  ------------------
  |  Branch (752:9): [True: 0, False: 885]
  ------------------
  753|      0|      NativePreview nativePreview{posTiff, sizeTiff, 0, 0, "", "image/tiff"};
  754|      0|      nativePreviews.push_back(std::move(nativePreview));
  755|      0|    }
  756|    885|  } else {
  757|       |    // check for Adobe Illustrator 8.0 or older
  758|    119|    if (illustrator8) {
  ------------------
  |  Branch (758:9): [True: 0, False: 119]
  ------------------
  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|    119|    MemIo tempIo;
  767|    119|    if (!tempIo.isopen()) {
  ------------------
  |  Branch (767:9): [True: 0, False: 119]
  ------------------
  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|    119|    std::vector<size_t> positions;
  779|    119|    positions.push_back(posLanguageLevel);
  780|    119|    positions.push_back(posContainsXmp);
  781|    119|    positions.push_back(posPages);
  782|    119|    positions.push_back(posExiv2Version);
  783|    119|    positions.push_back(posExiv2Website);
  784|    119|    positions.push_back(posEndComments);
  785|    119|    positions.push_back(posPage);
  786|    119|    positions.push_back(posBeginPageSetup);
  787|    119|    positions.push_back(posEndPageSetup);
  788|    119|    positions.push_back(posPageTrailer);
  789|    119|    positions.push_back(posEof);
  790|    119|    positions.push_back(posEndEps);
  791|    119|    if (useFlexibleEmbedding) {
  ------------------
  |  Branch (791:9): [True: 0, False: 119]
  ------------------
  792|      0|      positions.push_back(xmpPos);
  793|      0|    }
  794|    119|    for (const auto& [r, s] : removableEmbeddings) {
  ------------------
  |  Branch (794:29): [True: 0, False: 119]
  ------------------
  795|      0|      positions.push_back(r);
  796|      0|    }
  797|    119|    std::sort(positions.begin(), positions.end());
  798|       |
  799|       |    // assemble result EPS document
  800|    119|    if (dosEps) {
  ------------------
  |  Branch (800:9): [True: 0, False: 119]
  ------------------
  801|       |      // DOS EPS header will be written afterwards
  802|      0|      writeTemp(tempIo, std::string(30, '\x00'));
  803|      0|    }
  804|    119|    const std::string containsXmpLine = deleteXmp ? "%ADO_ContainsXMP: NoMain" : "%ADO_ContainsXMP: MainFirst";
  ------------------
  |  Branch (804:41): [True: 0, False: 119]
  ------------------
  805|    119|    const uint32_t posEpsNew = posTemp(tempIo);
  806|    119|    size_t prevPos = posEps;
  807|    119|    size_t prevSkipPos = prevPos;
  808|    119|    for (const auto& pos : positions) {
  ------------------
  |  Branch (808:26): [True: 0, False: 119]
  ------------------
  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|    119|    const uint32_t posEndEpsNew = posTemp(tempIo);
  986|       |#ifdef DEBUG
  987|       |    EXV_DEBUG << "readWriteEpsMetadata: New EPS size: " << (posEndEpsNew - posEpsNew) << "\n";
  988|       |#endif
  989|    119|    if (dosEps) {
  ------------------
  |  Branch (989:9): [True: 0, False: 119]
  ------------------
  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|    119|    io.close();
 1017|    119|    io.transfer(tempIo);
 1018|    119|  }
 1019|  1.00k|}
epsimage.cpp:_ZN12_GLOBAL__N_18readLineERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKhmm:
  117|   272k|size_t readLine(std::string& line, const byte* data, size_t startPos, size_t size) {
  118|   272k|  line.clear();
  119|   272k|  size_t pos = startPos;
  120|       |  // step through line
  121|  10.6M|  while (pos < size && data[pos] != '\r' && data[pos] != '\n') {
  ------------------
  |  Branch (121:10): [True: 10.6M, False: 2.06k]
  |  Branch (121:24): [True: 10.5M, False: 114k]
  |  Branch (121:45): [True: 10.3M, False: 156k]
  ------------------
  122|  10.3M|    line += data[pos];
  123|  10.3M|    pos++;
  124|  10.3M|  }
  125|       |  // skip line ending, if present
  126|   272k|  if (pos >= size)
  ------------------
  |  Branch (126:7): [True: 2.06k, False: 270k]
  ------------------
  127|  2.06k|    return pos;
  128|   270k|  pos++;
  129|   270k|  if (pos >= size)
  ------------------
  |  Branch (129:7): [True: 94, False: 270k]
  ------------------
  130|     94|    return pos;
  131|   270k|  if (data[pos - 1] == '\r' && data[pos] == '\n')
  ------------------
  |  Branch (131:7): [True: 114k, False: 156k]
  |  Branch (131:32): [True: 1.21k, False: 112k]
  ------------------
  132|  1.21k|    pos++;
  133|   270k|  return pos;
  134|   270k|}
epsimage.cpp:_ZN12_GLOBAL__N_115onlyWhitespacesERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  110|  1.92k|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.92k|  return s.find_first_not_of(" \t") == std::string::npos;
  114|  1.92k|}
epsimage.cpp:_ZN12_GLOBAL__N_112readPrevLineERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKhmm:
  137|    311|size_t readPrevLine(std::string& line, const byte* data, size_t startPos, size_t size) {
  138|    311|  line.clear();
  139|    311|  size_t pos = startPos;
  140|    311|  if (pos > size)
  ------------------
  |  Branch (140:7): [True: 0, False: 311]
  ------------------
  141|      0|    return pos;
  142|       |  // skip line ending of previous line, if present
  143|    311|  if (pos <= 0)
  ------------------
  |  Branch (143:7): [True: 0, False: 311]
  ------------------
  144|      0|    return pos;
  145|    311|  if (data[pos - 1] == '\r' || data[pos - 1] == '\n') {
  ------------------
  |  Branch (145:7): [True: 70, False: 241]
  |  Branch (145:32): [True: 113, False: 128]
  ------------------
  146|    183|    pos--;
  147|    183|    if (pos <= 0)
  ------------------
  |  Branch (147:9): [True: 0, False: 183]
  ------------------
  148|      0|      return pos;
  149|    183|    if (data[pos - 1] == '\r' && data[pos] == '\n') {
  ------------------
  |  Branch (149:9): [True: 23, False: 160]
  |  Branch (149:34): [True: 11, False: 12]
  ------------------
  150|     11|      pos--;
  151|     11|      if (pos <= 0)
  ------------------
  |  Branch (151:11): [True: 0, False: 11]
  ------------------
  152|      0|        return pos;
  153|     11|    }
  154|    183|  }
  155|       |  // step through previous line
  156|  1.06M|  while (pos >= 1 && data[pos - 1] != '\r' && data[pos - 1] != '\n') {
  ------------------
  |  Branch (156:10): [True: 1.06M, False: 1]
  |  Branch (156:22): [True: 1.06M, False: 116]
  |  Branch (156:47): [True: 1.06M, False: 194]
  ------------------
  157|  1.06M|    pos--;
  158|  1.06M|    line += data[pos];
  159|  1.06M|  }
  160|    311|  std::reverse(line.begin(), line.end());
  161|    311|  return pos;
  162|    311|}
epsimage.cpp:_ZN12_GLOBAL__N_17findXmpERmS0_PKhmmb:
  165|  2.50k|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.50k|  xmpSize = 0;
  168|  1.84M|  for (xmpPos = startPos; xmpPos < size; xmpPos++) {
  ------------------
  |  Branch (168:27): [True: 1.84M, False: 852]
  ------------------
  169|  1.84M|    if (data[xmpPos] != '\x00' && data[xmpPos] != '<')
  ------------------
  |  Branch (169:9): [True: 1.57M, False: 269k]
  |  Branch (169:35): [True: 1.55M, False: 15.8k]
  ------------------
  170|  1.55M|      continue;
  171|  2.27M|    for (auto&& header : xmpHeaders) {
  ------------------
  |  Branch (171:24): [True: 2.27M, False: 283k]
  ------------------
  172|  2.27M|      if (xmpPos + header.size() > size)
  ------------------
  |  Branch (172:11): [True: 28.2k, False: 2.25M]
  ------------------
  173|  28.2k|        continue;
  174|  2.25M|      if (memcmp(data + xmpPos, header.data(), header.size()) != 0)
  ------------------
  |  Branch (174:11): [True: 2.24M, False: 1.65k]
  ------------------
  175|  2.24M|        continue;
  176|       |#ifdef DEBUG
  177|       |      EXV_DEBUG << "findXmp: Found XMP header at position: " << xmpPos << "\n";
  178|       |#endif
  179|       |
  180|       |      // search for valid XMP trailer
  181|  1.19M|      for (size_t trailerPos = xmpPos + header.size(); trailerPos < size; trailerPos++) {
  ------------------
  |  Branch (181:56): [True: 1.19M, False: 73]
  ------------------
  182|  1.19M|        if (data[trailerPos] != '\x00' && data[trailerPos] != '<')
  ------------------
  |  Branch (182:13): [True: 983k, False: 213k]
  |  Branch (182:43): [True: 970k, False: 12.6k]
  ------------------
  183|   970k|          continue;
  184|   905k|        for (const auto& [trailer, readOnly] : xmpTrailers) {
  ------------------
  |  Branch (184:46): [True: 905k, False: 225k]
  ------------------
  185|   905k|          if (trailerPos + trailer.size() > size)
  ------------------
  |  Branch (185:15): [True: 724, False: 904k]
  ------------------
  186|    724|            continue;
  187|   904k|          if (memcmp(data + trailerPos, trailer.data(), trailer.size()) != 0)
  ------------------
  |  Branch (187:15): [True: 903k, False: 1.57k]
  ------------------
  188|   903k|            continue;
  189|       |#ifdef DEBUG
  190|       |          EXV_DEBUG << "findXmp: Found XMP trailer at position: " << trailerPos << "\n";
  191|       |#endif
  192|       |
  193|  1.57k|          if (readOnly) {
  ------------------
  |  Branch (193:15): [True: 16, False: 1.56k]
  ------------------
  194|     16|#ifndef SUPPRESS_WARNINGS
  195|     16|            EXV_WARNING << "Unable to handle read-only XMP metadata yet. Please provide your "
  ------------------
  |  |  138|     16|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 16]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     16|  LogMsg(LogMsg::warn).os()
  ------------------
  196|      0|                           "sample EPS file to the Exiv2 project: http://dev.exiv2.org/projects/exiv2\n";
  197|     16|#endif
  198|     16|            throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (198:25): [True: 0, False: 16]
  ------------------
  199|     16|          }
  200|       |
  201|       |          // search for end of XMP trailer
  202|   699k|          for (size_t trailerEndPos = trailerPos + trailer.size(); trailerEndPos + xmpTrailerEnd.size() <= size;
  ------------------
  |  Branch (202:68): [True: 699k, False: 30]
  ------------------
  203|   699k|               trailerEndPos++) {
  204|   699k|            if (memcmp(data + trailerEndPos, xmpTrailerEnd.data(), xmpTrailerEnd.size()) == 0) {
  ------------------
  |  Branch (204:17): [True: 1.53k, False: 698k]
  ------------------
  205|  1.53k|              xmpSize = (trailerEndPos + xmpTrailerEnd.size()) - xmpPos;
  206|  1.53k|              return;
  207|  1.53k|            }
  208|   699k|          }
  209|     30|#ifndef SUPPRESS_WARNINGS
  210|     30|          EXV_WARNING << "Found XMP header but incomplete XMP trailer.\n";
  ------------------
  |  |  138|     30|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 30]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     30|  LogMsg(LogMsg::warn).os()
  ------------------
  211|     30|#endif
  212|     30|          throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (212:23): [True: 0, False: 30]
  ------------------
  213|  1.56k|        }
  214|   226k|      }
  215|     73|#ifndef SUPPRESS_WARNINGS
  216|     73|      EXV_WARNING << "Found XMP header but no XMP trailer.\n";
  ------------------
  |  |  138|     73|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 73]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     73|  LogMsg(LogMsg::warn).os()
  ------------------
  217|     73|#endif
  218|     73|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (218:19): [True: 0, False: 73]
  ------------------
  219|  1.65k|    }
  220|   285k|  }
  221|  2.50k|}

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

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

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

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

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

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

_ZN5Exiv215ImageCtorParamsC2Ebm:
  141|  33.1k|    create_(create), max_recursion_depth_(max_recursion_depth) {
  142|  33.1k|}
_ZN5Exiv25ImageC2ENS_9ImageTypeEtNSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEERKNS_15ImageCtorParamsE:
  145|  33.1k|    io_(std::move(io)),
  146|  33.1k|    max_recursion_depth_(params.max_recursion_depth()),
  147|  33.1k|    imageType_(type),
  148|  33.1k|    supportedMetadata_(supportedMetadata) {
  149|  33.1k|}
_ZN5Exiv25ImageD2Ev:
  151|  33.1k|Image::~Image() = default;
_ZN5Exiv25Image14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  153|  2.46k|void Image::printStructure(std::ostream&, PrintStructureOption, size_t /*depth*/) {
  154|  2.46k|  throw Error(ErrorCode::kerUnsupportedImageType, io_->path());
  155|  2.46k|}
_ZN5Exiv25Image12isStringTypeEt:
  157|  31.3k|bool Image::isStringType(uint16_t type) {
  158|  31.3k|  return type == Exiv2::asciiString || type == Exiv2::unsignedByte || type == Exiv2::signedByte ||
  ------------------
  |  Branch (158:10): [True: 874, False: 30.5k]
  |  Branch (158:40): [True: 525, False: 29.9k]
  |  Branch (158:71): [True: 1.41k, False: 28.5k]
  ------------------
  159|  28.5k|         type == Exiv2::undefined;
  ------------------
  |  Branch (159:10): [True: 3.37k, False: 25.1k]
  ------------------
  160|  31.3k|}
_ZN5Exiv25Image11isShortTypeEt:
  161|  17.5k|bool Image::isShortType(uint16_t type) {
  162|  17.5k|  return type == Exiv2::unsignedShort || type == Exiv2::signedShort;
  ------------------
  |  Branch (162:10): [True: 1.78k, False: 15.7k]
  |  Branch (162:42): [True: 2.45k, False: 13.2k]
  ------------------
  163|  17.5k|}
_ZN5Exiv25Image10isLongTypeEt:
  164|  13.2k|bool Image::isLongType(uint16_t type) {
  165|  13.2k|  return type == Exiv2::unsignedLong || type == Exiv2::signedLong;
  ------------------
  |  Branch (165:10): [True: 5.15k, False: 8.13k]
  |  Branch (165:41): [True: 1.46k, False: 6.66k]
  ------------------
  166|  13.2k|}
_ZN5Exiv25Image14isLongLongTypeEt:
  167|     20|bool Image::isLongLongType(uint16_t type) {
  168|     20|  return type == Exiv2::unsignedLongLong || type == Exiv2::signedLongLong;
  ------------------
  |  Branch (168:10): [True: 0, False: 20]
  |  Branch (168:45): [True: 0, False: 20]
  ------------------
  169|     20|}
_ZN5Exiv25Image14isRationalTypeEt:
  170|  5.56k|bool Image::isRationalType(uint16_t type) {
  171|  5.56k|  return type == Exiv2::unsignedRational || type == Exiv2::signedRational;
  ------------------
  |  Branch (171:10): [True: 1.12k, False: 4.44k]
  |  Branch (171:45): [True: 1.80k, False: 2.64k]
  ------------------
  172|  5.56k|}
_ZN5Exiv25Image11is2ByteTypeEt:
  173|  8.03k|bool Image::is2ByteType(uint16_t type) {
  174|  8.03k|  return isShortType(type);
  175|  8.03k|}
_ZN5Exiv25Image11is4ByteTypeEt:
  176|  5.90k|bool Image::is4ByteType(uint16_t type) {
  177|  5.90k|  return isLongType(type) || type == Exiv2::tiffFloat || type == Exiv2::tiffIfd;
  ------------------
  |  Branch (177:10): [True: 3.31k, False: 2.58k]
  |  Branch (177:30): [True: 307, False: 2.28k]
  |  Branch (177:58): [True: 794, False: 1.48k]
  ------------------
  178|  5.90k|}
_ZN5Exiv25Image11is8ByteTypeEt:
  179|  1.48k|bool Image::is8ByteType(uint16_t type) {
  180|  1.48k|  return isRationalType(type) || isLongLongType(type) || type == Exiv2::tiffIfd8 || type == Exiv2::tiffDouble;
  ------------------
  |  Branch (180:10): [True: 1.46k, False: 20]
  |  Branch (180:34): [True: 0, False: 20]
  |  Branch (180:58): [True: 0, False: 20]
  |  Branch (180:85): [True: 20, False: 0]
  ------------------
  181|  1.48k|}
_ZN5Exiv25Image10isPrintXMPEtNS_20PrintStructureOptionE:
  182|  19.0k|bool Image::isPrintXMP(uint16_t type, Exiv2::PrintStructureOption option) {
  183|  19.0k|  return type == 700 && option == kpsXMP;
  ------------------
  |  Branch (183:10): [True: 5, False: 19.0k]
  |  Branch (183:25): [True: 0, False: 5]
  ------------------
  184|  19.0k|}
_ZN5Exiv25Image10isPrintICCEtNS_20PrintStructureOptionE:
  185|  19.0k|bool Image::isPrintICC(uint16_t type, Exiv2::PrintStructureOption option) {
  186|  19.0k|  return type == 0x8773 && option == kpsIccProfile;
  ------------------
  |  Branch (186:10): [True: 1, False: 19.0k]
  |  Branch (186:28): [True: 0, False: 1]
  ------------------
  187|  19.0k|}
_ZN5Exiv25Image19isBigEndianPlatformEv:
  189|  5.18k|bool Image::isBigEndianPlatform() {
  190|  5.18k|  return std::endian::native == std::endian::big;
  191|  5.18k|}
_ZN5Exiv25Image22isLittleEndianPlatformEv:
  192|  15.9k|bool Image::isLittleEndianPlatform() {
  193|  15.9k|  return std::endian::native == std::endian::little;
  194|  15.9k|}
_ZN5Exiv25Image8byteSwapEjb:
  213|  55.5k|uint32_t Image::byteSwap(uint32_t value, bool bSwap) {
  214|       |#ifdef __cpp_lib_byteswap
  215|       |  return bSwap ? std::byteswap(value) : value;
  216|       |#elif defined(_MSC_VER)
  217|       |  return bSwap ? _byteswap_ulong(value) : value;
  218|       |#else
  219|  55.5k|  uint32_t result = 0;
  220|  55.5k|  result |= (value & 0x000000FFU) << 24;
  221|  55.5k|  result |= (value & 0x0000FF00U) << 8;
  222|  55.5k|  result |= (value & 0x00FF0000U) >> 8;
  223|  55.5k|  result |= (value & 0xFF000000U) >> 24;
  224|  55.5k|  return bSwap ? result : value;
  ------------------
  |  Branch (224:10): [True: 32.4k, False: 23.1k]
  ------------------
  225|  55.5k|#endif
  226|  55.5k|}
_ZN5Exiv25Image8byteSwapEtb:
  228|  44.5k|uint16_t Image::byteSwap(uint16_t value, bool bSwap) {
  229|       |#ifdef __cpp_lib_byteswap
  230|       |  return bSwap ? std::byteswap(value) : value;
  231|       |#elif defined(_MSC_VER)
  232|       |  return bSwap ? _byteswap_ushort(value) : value;
  233|       |#else
  234|  44.5k|  uint16_t result = 0;
  235|  44.5k|  result |= (value & 0x00FFU) << 8;
  236|  44.5k|  result |= (value & 0xFF00U) >> 8;
  237|  44.5k|  return bSwap ? result : value;
  ------------------
  |  Branch (237:10): [True: 27.4k, False: 17.0k]
  ------------------
  238|  44.5k|#endif
  239|  44.5k|}
_ZN5Exiv25Image9byteSwap2ERKNS_7DataBufEmb:
  241|  44.5k|uint16_t Image::byteSwap2(const DataBuf& buf, size_t offset, bool bSwap) {
  242|  44.5k|  uint16_t v = 0;
  243|  44.5k|  auto p = reinterpret_cast<char*>(&v);
  244|  44.5k|  p[0] = buf.read_uint8(offset);
  245|  44.5k|  p[1] = buf.read_uint8(offset + 1);
  246|  44.5k|  return Image::byteSwap(v, bSwap);
  247|  44.5k|}
_ZN5Exiv25Image9byteSwap4ERKNS_7DataBufEmb:
  249|  55.1k|uint32_t Image::byteSwap4(const DataBuf& buf, size_t offset, bool bSwap) {
  250|  55.1k|  uint32_t v = 0;
  251|  55.1k|  auto p = reinterpret_cast<char*>(&v);
  252|  55.1k|  p[0] = buf.read_uint8(offset);
  253|  55.1k|  p[1] = buf.read_uint8(offset + 1);
  254|  55.1k|  p[2] = buf.read_uint8(offset + 2);
  255|  55.1k|  p[3] = buf.read_uint8(offset + 3);
  256|  55.1k|  return Image::byteSwap(v, bSwap);
  257|  55.1k|}
_ZN5Exiv25Image8typeNameEt:
  270|  9.50k|const char* Image::typeName(uint16_t tag) {
  271|       |  //! List of TIFF image tags
  272|  9.50k|  const char* result = nullptr;
  273|  9.50k|  switch (tag) {
  274|    129|    case Exiv2::unsignedByte:
  ------------------
  |  Branch (274:5): [True: 129, False: 9.37k]
  ------------------
  275|    129|      result = "BYTE";
  276|    129|      break;
  277|    190|    case Exiv2::asciiString:
  ------------------
  |  Branch (277:5): [True: 190, False: 9.31k]
  ------------------
  278|    190|      result = "ASCII";
  279|    190|      break;
  280|    890|    case Exiv2::unsignedShort:
  ------------------
  |  Branch (280:5): [True: 890, False: 8.61k]
  ------------------
  281|    890|      result = "SHORT";
  282|    890|      break;
  283|  2.57k|    case Exiv2::unsignedLong:
  ------------------
  |  Branch (283:5): [True: 2.57k, False: 6.92k]
  ------------------
  284|  2.57k|      result = "LONG";
  285|  2.57k|      break;
  286|    557|    case Exiv2::unsignedRational:
  ------------------
  |  Branch (286:5): [True: 557, False: 8.94k]
  ------------------
  287|    557|      result = "RATIONAL";
  288|    557|      break;
  289|    352|    case Exiv2::signedByte:
  ------------------
  |  Branch (289:5): [True: 352, False: 9.14k]
  ------------------
  290|    352|      result = "SBYTE";
  291|    352|      break;
  292|    842|    case Exiv2::undefined:
  ------------------
  |  Branch (292:5): [True: 842, False: 8.65k]
  ------------------
  293|    842|      result = "UNDEFINED";
  294|    842|      break;
  295|  1.22k|    case Exiv2::signedShort:
  ------------------
  |  Branch (295:5): [True: 1.22k, False: 8.27k]
  ------------------
  296|  1.22k|      result = "SSHORT";
  297|  1.22k|      break;
  298|    731|    case Exiv2::signedLong:
  ------------------
  |  Branch (298:5): [True: 731, False: 8.77k]
  ------------------
  299|    731|      result = "SLONG";
  300|    731|      break;
  301|    901|    case Exiv2::signedRational:
  ------------------
  |  Branch (301:5): [True: 901, False: 8.60k]
  ------------------
  302|    901|      result = "SRATIONAL";
  303|    901|      break;
  304|    305|    case Exiv2::tiffFloat:
  ------------------
  |  Branch (304:5): [True: 305, False: 9.19k]
  ------------------
  305|    305|      result = "FLOAT";
  306|    305|      break;
  307|     15|    case Exiv2::tiffDouble:
  ------------------
  |  Branch (307:5): [True: 15, False: 9.48k]
  ------------------
  308|     15|      result = "DOUBLE";
  309|     15|      break;
  310|    789|    case Exiv2::tiffIfd:
  ------------------
  |  Branch (310:5): [True: 789, False: 8.71k]
  ------------------
  311|    789|      result = "IFD";
  312|    789|      break;
  313|      0|    default:
  ------------------
  |  Branch (313:5): [True: 0, False: 9.50k]
  ------------------
  314|      0|      result = "unknown";
  315|      0|      break;
  316|  9.50k|  }
  317|  9.50k|  return result;
  318|  9.50k|}
_ZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcm:
  327|  20.9k|                              bool bSwap, char c, size_t depth) {
  328|  20.9k|  if (depth == 1)
  ------------------
  |  Branch (328:7): [True: 4.83k, False: 16.1k]
  ------------------
  329|  4.83k|    visits.clear();
  330|  20.9k|  bool bFirst = true;
  331|       |
  332|       |  // buffer
  333|  20.9k|  const size_t dirSize = 32;
  334|  20.9k|  DataBuf dir(dirSize);
  335|  20.9k|  const bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (335:23): [True: 16.1k, False: 4.85k]
  |  Branch (335:45): [True: 4.85k, False: 1]
  ------------------
  336|       |
  337|  21.0k|  do {
  338|       |    // Read top of directory
  339|  21.0k|    io.seekOrThrow(start, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  340|  21.0k|    io.readOrThrow(dir.data(), 2, ErrorCode::kerCorruptedMetadata);
  341|  21.0k|    const uint16_t dirLength = byteSwap2(dir, 0, bSwap);
  342|       |    // Prevent infinite loops. (GHSA-m479-7frc-gqqg)
  343|  21.0k|    Internal::enforce(dirLength > 0, ErrorCode::kerCorruptedMetadata);
  344|       |
  345|  21.0k|    if (dirLength > 500)  // tooBig
  ------------------
  |  Branch (345:9): [True: 15, False: 20.9k]
  ------------------
  346|     15|      throw Error(ErrorCode::kerTiffDirectoryTooLarge);
  347|       |
  348|  20.9k|    if (bFirst && bPrint) {
  ------------------
  |  Branch (348:9): [True: 20.8k, False: 164]
  |  Branch (348:19): [True: 20.8k, False: 1]
  ------------------
  349|  20.8k|      out << Internal::indent(depth) << stringFormat("STRUCTURE OF TIFF FILE ({}{}): {}\n", c, c, io.path());
  ------------------
  |  |   18|  20.8k|#define stringFormat std::format
  ------------------
  350|  20.8k|    }
  351|       |
  352|       |    // Read the dictionary
  353|  30.5k|    for (int i = 0; i < dirLength; i++) {
  ------------------
  |  Branch (353:21): [True: 25.5k, False: 4.99k]
  ------------------
  354|  25.5k|      if (visits.contains(io.tell())) {  // #547
  ------------------
  |  Branch (354:11): [True: 15.7k, False: 9.83k]
  ------------------
  355|  15.7k|        throw Error(ErrorCode::kerCorruptedMetadata);
  356|  15.7k|      }
  357|  9.83k|      visits.insert(io.tell());
  358|       |
  359|  9.83k|      if (bFirst && bPrint) {
  ------------------
  |  Branch (359:11): [True: 5.12k, False: 4.70k]
  |  Branch (359:21): [True: 5.12k, False: 0]
  ------------------
  360|  5.12k|        out << Internal::indent(depth) << " address |    tag                              |     "
  361|  5.12k|            << " type |    count |    offset | value\n";
  362|  5.12k|      }
  363|  9.83k|      bFirst = false;
  364|       |
  365|  9.83k|      io.readOrThrow(dir.data(), 12, ErrorCode::kerCorruptedMetadata);
  366|  9.83k|      const uint16_t tag = byteSwap2(dir, 0, bSwap);
  367|  9.83k|      const uint16_t type = byteSwap2(dir, 2, bSwap);
  368|  9.83k|      const uint32_t count = byteSwap4(dir, 4, bSwap);
  369|  9.83k|      const uint32_t offset = byteSwap4(dir, 8, bSwap);
  370|       |
  371|       |      // Break for unknown tag types else we may segfault.
  372|  9.83k|      if (!typeValid(type)) {
  ------------------
  |  Branch (372:11): [True: 219, False: 9.61k]
  ------------------
  373|    219|        EXV_ERROR << "invalid type in tiff structure" << type << '\n';
  ------------------
  |  |  142|    219|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 219]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    219|  LogMsg(LogMsg::error).os()
  ------------------
  374|    219|        throw Error(ErrorCode::kerInvalidTypeValue);
  375|    219|      }
  376|       |
  377|       |      // prepare to print the value
  378|  9.61k|      const uint32_t kount = [=] {
  379|       |        // haul in all the data
  380|  9.61k|        if (isPrintXMP(tag, option))
  381|  9.61k|          return count;
  382|       |        // ditto
  383|  9.61k|        if (isPrintICC(tag, option))
  384|  9.61k|          return count;
  385|       |        // restrict long arrays
  386|  9.61k|        if (isStringType(type)) {
  387|  9.61k|          return std::min(count, 32u);
  388|  9.61k|        }
  389|  9.61k|        return std::min(count, 5u);
  390|  9.61k|      }();
  391|  9.61k|      const uint32_t pad = isStringType(type) ? 1 : 0;
  ------------------
  |  Branch (391:28): [True: 1.55k, False: 8.05k]
  ------------------
  392|  9.61k|      const uint32_t size = [=] {
  393|  9.61k|        if (isStringType(type))
  394|  9.61k|          return 1;
  395|  9.61k|        if (is2ByteType(type))
  396|  9.61k|          return 2;
  397|  9.61k|        if (is4ByteType(type))
  398|  9.61k|          return 4;
  399|  9.61k|        if (is8ByteType(type))
  400|  9.61k|          return 8;
  401|  9.61k|        return 1;
  402|  9.61k|      }();
  403|       |
  404|       |      // if ( offset > io.size() ) offset = 0; // Denial of service?
  405|       |
  406|       |      // #55 and #56 memory allocation crash test/data/POC8
  407|  9.61k|      const uint64_t allocate64 = (size * static_cast<uint64_t>(count)) + pad + 20;
  408|  9.61k|      if (allocate64 > io.size()) {
  ------------------
  |  Branch (408:11): [True: 73, False: 9.54k]
  ------------------
  409|     73|        throw Error(ErrorCode::kerInvalidMalloc);
  410|     73|      }
  411|  9.54k|      DataBuf buf(allocate64);                       // allocate a buffer
  412|  9.54k|      std::copy_n(dir.begin() + 8, 4, buf.begin());  // copy dir[8:11] into buffer (short strings)
  413|       |
  414|       |      // We have already checked that this multiplication cannot overflow.
  415|  9.54k|      const size_t count_x_size = static_cast<size_t>(count) * size;
  416|  9.54k|      const bool bOffsetIsPointer = count_x_size > 4;
  417|       |
  418|  9.54k|      if (bOffsetIsPointer) {                                                       // read into buffer
  ------------------
  |  Branch (418:11): [True: 4.79k, False: 4.74k]
  ------------------
  419|  4.79k|        const size_t restore = io.tell();                                           // save
  420|  4.79k|        io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);      // position
  421|  4.79k|        io.readOrThrow(buf.data(), count_x_size, ErrorCode::kerCorruptedMetadata);  // read
  422|  4.79k|        io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);     // restore
  423|  4.79k|      }
  424|       |
  425|  9.54k|      if (bPrint) {
  ------------------
  |  Branch (425:11): [True: 9.50k, False: 39]
  ------------------
  426|  9.50k|        const size_t address = start + 2 + (i * 12);
  427|  9.50k|        const std::string offsetString = bOffsetIsPointer ? stringFormat("{:9}", offset) : "";
  ------------------
  |  |   18|  4.77k|#define stringFormat std::format
  ------------------
  |  Branch (427:42): [True: 4.77k, False: 4.72k]
  ------------------
  428|  9.50k|        std::string sp;  // output spacer
  429|       |
  430|  9.50k|        out << Internal::indent(depth)
  431|  9.50k|            << stringFormat("{:8} | {:#06x} {:<28} | {:>9} | {:>8} | {:9} | ", address, tag, tagName(tag),
  ------------------
  |  |   18|  9.50k|#define stringFormat std::format
  ------------------
  432|  9.50k|                            typeName(type), count, offsetString);
  433|  9.50k|        if (isShortType(type)) {
  ------------------
  |  Branch (433:13): [True: 2.11k, False: 7.38k]
  ------------------
  434|  6.03k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (434:30): [True: 3.92k, False: 2.11k]
  ------------------
  435|  3.92k|            out << sp << byteSwap2(buf, k * size, bSwap);
  436|  3.92k|            sp = " ";
  437|  3.92k|          }
  438|  7.38k|        } else if (isLongType(type)) {
  ------------------
  |  Branch (438:20): [True: 3.30k, False: 4.08k]
  ------------------
  439|  9.97k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (439:30): [True: 6.66k, False: 3.30k]
  ------------------
  440|  6.66k|            out << sp << byteSwap4(buf, k * size, bSwap);
  441|  6.66k|            sp = " ";
  442|  6.66k|          }
  443|       |
  444|  4.08k|        } else if (isRationalType(type)) {
  ------------------
  |  Branch (444:20): [True: 1.45k, False: 2.62k]
  ------------------
  445|  3.01k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (445:30): [True: 1.56k, False: 1.45k]
  ------------------
  446|  1.56k|            const uint32_t a = byteSwap4(buf, (k * size) + 0, bSwap);
  447|  1.56k|            const uint32_t b = byteSwap4(buf, (k * size) + 4, bSwap);
  448|  1.56k|            out << sp << a << "/" << b;
  449|  1.56k|            sp = " ";
  450|  1.56k|          }
  451|  2.62k|        } else if (isStringType(type)) {
  ------------------
  |  Branch (451:20): [True: 1.51k, False: 1.10k]
  ------------------
  452|  1.51k|          out << sp << Internal::binaryToString(makeSlice(buf, 0, kount));
  453|  1.51k|        }
  454|       |
  455|  9.50k|        sp = kount == count ? "" : " ...";
  ------------------
  |  Branch (455:14): [True: 7.73k, False: 1.76k]
  ------------------
  456|  9.50k|        out << sp << '\n';
  457|       |
  458|  9.50k|        if (option == kpsRecursive && (tag == 0x8769 /* ExifTag */ || tag == 0x014a /*SubIFDs*/ || type == tiffIfd)) {
  ------------------
  |  Branch (458:13): [True: 9.19k, False: 302]
  |  Branch (458:40): [True: 24, False: 9.17k]
  |  Branch (458:71): [True: 445, False: 8.73k]
  |  Branch (458:100): [True: 778, False: 7.95k]
  ------------------
  459|  1.26k|          for (size_t k = 0; k < count; k++) {
  ------------------
  |  Branch (459:30): [True: 16, False: 1.24k]
  ------------------
  460|     16|            const size_t restore = io.tell();
  461|     16|            const uint32_t offset_inner = byteSwap4(buf, k * size, bSwap);
  462|     16|            printIFDStructure(io, out, option, offset_inner, bSwap, c, depth + 1);
  463|     16|            io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  464|     16|          }
  465|  8.25k|        } else if (option == kpsRecursive && tag == 0x83bb /* IPTCNAA */) {
  ------------------
  |  Branch (465:20): [True: 7.95k, False: 302]
  |  Branch (465:46): [True: 3.21k, False: 4.73k]
  ------------------
  466|  3.21k|          if (count > 0) {
  ------------------
  |  Branch (466:15): [True: 1.97k, False: 1.24k]
  ------------------
  467|  1.97k|            if (static_cast<size_t>(Safe::add(count, offset)) > io.size()) {
  ------------------
  |  Branch (467:17): [True: 4, False: 1.97k]
  ------------------
  468|      4|              throw Error(ErrorCode::kerCorruptedMetadata);
  469|      4|            }
  470|       |
  471|  1.97k|            const size_t restore = io.tell();
  472|  1.97k|            io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  473|  1.97k|            auto bytes = std::make_unique<byte[]>(count);                           // allocate memory
  474|  1.97k|            io.readOrThrow(bytes.get(), count, ErrorCode::kerCorruptedMetadata);
  475|  1.97k|            io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  476|  1.97k|            IptcData::printStructure(out, makeSliceUntil(bytes.get(), count), depth);
  477|  1.97k|          }
  478|  5.03k|        } else if (option == kpsRecursive && tag == 0x927c /* MakerNote */ && count > 10) {
  ------------------
  |  Branch (478:20): [True: 4.73k, False: 302]
  |  Branch (478:46): [True: 766, False: 3.96k]
  |  Branch (478:79): [True: 1, False: 765]
  ------------------
  479|      1|          const size_t restore = io.tell();  // save
  480|       |
  481|      1|          const uint32_t jump = 10;
  482|      1|          byte bytes[20];
  483|      1|          const auto chars = reinterpret_cast<const char*>(&bytes[0]);
  484|      1|          io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  485|      1|          io.readOrThrow(bytes, jump, ErrorCode::kerCorruptedMetadata);           // read
  486|      1|          bytes[jump] = 0;
  487|       |
  488|      1|          bool bNikon = ::strcmp("Nikon", chars) == 0;
  489|      1|          bool bSony = ::strcmp("SONY DSC ", chars) == 0;
  490|       |
  491|      1|          if (bNikon) {
  ------------------
  |  Branch (491:15): [True: 0, False: 1]
  ------------------
  492|       |            // tag is an embedded tiff
  493|      0|            const uint32_t byteslen = count - jump;
  494|      0|            auto b = DataBuf(byteslen);                                           // allocate a buffer
  495|      0|            io.readOrThrow(b.data(), byteslen, ErrorCode::kerCorruptedMetadata);  // read
  496|      0|            MemIo memIo(b.c_data(), byteslen);                                    // create a file
  497|      0|            printTiffStructure(memIo, out, option, depth + 1);
  498|      1|          } else {
  499|       |            // tag is an IFD
  500|      1|            const uint32_t punt = bSony ? 12 : 0;
  ------------------
  |  Branch (500:35): [True: 0, False: 1]
  ------------------
  501|      1|            io.seekOrThrow(0, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  502|      1|            printIFDStructure(io, out, option, offset + punt, bSwap, c, depth + 1);
  503|      1|          }
  504|       |
  505|      1|          io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // restore
  506|      1|        }
  507|  9.50k|      }
  508|       |
  509|  9.53k|      if (isPrintXMP(tag, option)) {
  ------------------
  |  Branch (509:11): [True: 0, False: 9.53k]
  ------------------
  510|      0|        buf.write_uint8(count, 0);
  511|      0|        out << buf.c_str();
  512|      0|      }
  513|  9.53k|      if (isPrintICC(tag, option)) {
  ------------------
  |  Branch (513:11): [True: 0, False: 9.53k]
  ------------------
  514|      0|        out.write(buf.c_str(), count);
  515|      0|      }
  516|  9.53k|    }
  517|  4.99k|    if (start) {
  ------------------
  |  Branch (517:9): [True: 4.78k, False: 208]
  ------------------
  518|  4.78k|      io.readOrThrow(dir.data(), 4, ErrorCode::kerCorruptedMetadata);
  519|  4.78k|      start = byteSwap4(dir, 0, bSwap);
  520|  4.78k|    }
  521|  4.99k|  } while (start);
  ------------------
  |  Branch (521:12): [True: 15, False: 4.97k]
  ------------------
  522|       |
  523|  4.97k|  if (bPrint) {
  ------------------
  |  Branch (523:7): [True: 4.76k, False: 208]
  ------------------
  524|  4.76k|    out << Internal::indent(depth) << "END " << io.path() << '\n';
  525|  4.76k|  }
  526|  4.97k|  out.flush();
  527|  4.97k|}
_ZN5Exiv25Image18printTiffStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmm:
  530|  37.1k|                               size_t offset /*=0*/) {
  531|  37.1k|  if (option == kpsBasic || option == kpsXMP || option == kpsRecursive || option == kpsIccProfile) {
  ------------------
  |  Branch (531:7): [True: 16.1k, False: 20.9k]
  |  Branch (531:29): [True: 1, False: 20.9k]
  |  Branch (531:49): [True: 4.85k, False: 16.1k]
  |  Branch (531:75): [True: 0, False: 16.1k]
  ------------------
  532|       |    // buffer
  533|  20.9k|    const size_t dirSize = 32;
  534|  20.9k|    DataBuf dir(dirSize);
  535|       |
  536|       |    // read header (we already know for certain that we have a Tiff file)
  537|  20.9k|    io.readOrThrow(dir.data(), 8, ErrorCode::kerCorruptedMetadata);
  538|  20.9k|    auto c = dir.read_uint8(0);
  539|  20.9k|    bool bSwap = (c == 'M' && isLittleEndianPlatform()) || (c == 'I' && isBigEndianPlatform());
  ------------------
  |  Branch (539:19): [True: 15.9k, False: 5.07k]
  |  Branch (539:31): [True: 15.9k, False: 0]
  |  Branch (539:61): [True: 5.04k, False: 15]
  |  Branch (539:73): [True: 0, False: 5.04k]
  ------------------
  540|  20.9k|    size_t start = byteSwap4(dir, 4, bSwap);
  541|  20.9k|    printIFDStructure(io, out, option, start + offset, bSwap, c, depth);
  542|  20.9k|  }
  543|  37.1k|}
_ZN5Exiv25Image13clearMetadataEv:
  545|  31.6k|void Image::clearMetadata() {
  546|  31.6k|  clearExifData();
  547|  31.6k|  clearIptcData();
  548|  31.6k|  clearXmpPacket();
  549|  31.6k|  clearXmpData();
  550|  31.6k|  clearComment();
  551|  31.6k|  clearIccProfile();
  552|  31.6k|}
_ZN5Exiv25Image8exifDataEv:
  554|   668k|ExifData& Image::exifData() {
  555|   668k|  return exifData_;
  556|   668k|}
_ZN5Exiv25Image8iptcDataEv:
  558|  49.1k|IptcData& Image::iptcData() {
  559|  49.1k|  return iptcData_;
  560|  49.1k|}
_ZN5Exiv25Image7xmpDataEv:
  562|  58.2k|XmpData& Image::xmpData() {
  563|  58.2k|  return xmpData_;
  564|  58.2k|}
_ZN5Exiv25Image9xmpPacketEv:
  566|    126|std::string& Image::xmpPacket() {
  567|       |  // Serialize the current XMP
  568|    126|  if (!xmpData_.empty() && !writeXmpFromPacket()) {
  ------------------
  |  Branch (568:7): [True: 0, False: 126]
  |  Branch (568:28): [True: 0, False: 0]
  ------------------
  569|      0|    XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting);
  570|      0|  }
  571|    126|  return xmpPacket_;
  572|    126|}
_ZN5Exiv25Image13clearExifDataEv:
  594|  31.6k|void Image::clearExifData() {
  595|  31.6k|  exifData_.clear();
  596|  31.6k|}
_ZN5Exiv25Image13clearIptcDataEv:
  602|  31.6k|void Image::clearIptcData() {
  603|  31.6k|  iptcData_.clear();
  604|  31.6k|}
_ZN5Exiv25Image14clearXmpPacketEv:
  610|  31.6k|void Image::clearXmpPacket() {
  611|  31.6k|  xmpPacket_.clear();
  612|       |  // Also clear the packet cached inside xmpData_. Some formats (e.g. TIFF, where
  613|       |  // XMP is stored in the Exif.Image.XMLPacket tag) write XMP from xmpData_'s
  614|       |  // packet when writeXmpFromPacket() is set. Without this, a stale packet would
  615|       |  // survive and the XMP would not be erased (e.g. "exiv2 -dx" on a TIFF).
  616|  31.6k|  xmpData_.setPacket(std::string());
  617|  31.6k|  writeXmpFromPacket(true);
  618|  31.6k|}
_ZN5Exiv25Image12clearXmpDataEv:
  628|  31.6k|void Image::clearXmpData() {
  629|  31.6k|  xmpData_.clear();
  630|  31.6k|  writeXmpFromPacket(false);
  631|  31.6k|}
_ZN5Exiv25Image18writeXmpFromPacketEb:
  639|  63.2k|void Image::writeXmpFromPacket(bool flag) {
  640|  63.2k|  writeXmpFromPacket_ = flag;
  641|  63.2k|}
_ZN5Exiv25Image12clearCommentEv:
  647|  31.6k|void Image::clearComment() {
  648|  31.6k|  comment_.erase();
  649|  31.6k|}
_ZN5Exiv25Image10setCommentERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  651|     59|void Image::setComment(const std::string& comment) {
  652|     59|  comment_ = comment;
  653|     59|}
_ZN5Exiv25Image13setIccProfileEONS_7DataBufEb:
  655|    178|void Image::setIccProfile(Exiv2::DataBuf&& iccProfile, bool bTestValid) {
  656|    178|  iccProfile_ = std::move(iccProfile);
  657|    178|  if (bTestValid) {
  ------------------
  |  Branch (657:7): [True: 178, False: 0]
  ------------------
  658|    178|    checkIccProfile();
  659|    178|  }
  660|    178|}
_ZN5Exiv25Image16appendIccProfileEPKhmb:
  662|  2.70k|void Image::appendIccProfile(const uint8_t* bytes, size_t size, bool bTestValid) {
  663|  2.70k|  if (size == 0) {
  ------------------
  |  Branch (663:7): [True: 322, False: 2.38k]
  ------------------
  664|    322|    return;
  665|    322|  }
  666|  2.38k|  const size_t start = iccProfile_.size();
  667|  2.38k|  iccProfile_.resize(Safe::add(start, size));
  668|  2.38k|  memcpy(iccProfile_.data(start), bytes, size);
  669|  2.38k|  if (bTestValid) {
  ------------------
  |  Branch (669:7): [True: 22, False: 2.36k]
  ------------------
  670|     22|    checkIccProfile();
  671|     22|  }
  672|  2.38k|}
_ZNK5Exiv25Image15checkIccProfileEv:
  674|    200|void Image::checkIccProfile() const {
  675|    200|  if (iccProfile_.size() < sizeof(long)) {
  ------------------
  |  Branch (675:7): [True: 10, False: 190]
  ------------------
  676|     10|    throw Error(ErrorCode::kerInvalidIccProfile);
  677|     10|  }
  678|    190|  const size_t size = iccProfile_.read_uint32(0, bigEndian);
  679|    190|  if (size != iccProfile_.size()) {
  ------------------
  |  Branch (679:7): [True: 8, False: 182]
  ------------------
  680|      8|    throw Error(ErrorCode::kerInvalidIccProfile);
  681|      8|  }
  682|    190|}
_ZN5Exiv25Image15clearIccProfileEv:
  684|  31.6k|void Image::clearIccProfile() {
  685|  31.6k|  iccProfile_.reset();
  686|  31.6k|}
_ZN5Exiv25Image12setByteOrderENS_9ByteOrderE:
  688|  18.4k|void Image::setByteOrder(ByteOrder byteOrder) {
  689|  18.4k|  byteOrder_ = byteOrder;
  690|  18.4k|}
_ZNK5Exiv25Image9byteOrderEv:
  692|  1.29k|ByteOrder Image::byteOrder() const {
  693|  1.29k|  return byteOrder_;
  694|  1.29k|}
_ZNK5Exiv25Image10pixelWidthEv:
  696|    490|uint32_t Image::pixelWidth() const {
  697|    490|  return pixelWidth_;
  698|    490|}
_ZNK5Exiv25Image11pixelHeightEv:
  700|    490|uint32_t Image::pixelHeight() const {
  701|    490|  return pixelHeight_;
  702|    490|}
_ZNK5Exiv25Image8exifDataEv:
  704|  95.4k|const ExifData& Image::exifData() const {
  705|  95.4k|  return exifData_;
  706|  95.4k|}
_ZNK5Exiv25Image7xmpDataEv:
  712|  2.31k|const XmpData& Image::xmpData() const {
  713|  2.31k|  return xmpData_;
  714|  2.31k|}
_ZNK5Exiv25Image7commentEv:
  716|    171|std::string Image::comment() const {
  717|    171|  return comment_;
  718|    171|}
_ZNK5Exiv25Image2ioEv:
  724|  42.2k|BasicIo& Image::io() const {
  725|  42.2k|  return *io_;
  726|  42.2k|}
_ZNK5Exiv25Image18writeXmpFromPacketEv:
  728|  7.64k|bool Image::writeXmpFromPacket() const {
  729|  7.64k|  return writeXmpFromPacket_;
  730|  7.64k|}
_ZNK5Exiv25Image14nativePreviewsEv:
  732|  9.56k|const NativePreviewList& Image::nativePreviews() const {
  733|  9.56k|  return nativePreviews_;
  734|  9.56k|}
_ZNK5Exiv25Image4goodEv:
  736|  33.0k|bool Image::good() const {
  737|  33.0k|  if (io_->open() != 0)
  ------------------
  |  Branch (737:7): [True: 0, False: 33.0k]
  ------------------
  738|      0|    return false;
  739|  33.0k|  IoCloser closer(*io_);
  740|  33.0k|  return ImageFactory::checkType(imageType_, *io_, false);
  741|  33.0k|}
_ZN5Exiv25Image7tagNameEt:
  752|  9.50k|const std::string& Image::tagName(uint16_t tag) {
  753|  9.50k|  if (init_) {
  ------------------
  |  Branch (753:7): [True: 236, False: 9.26k]
  ------------------
  754|    236|    int idx;
  755|    236|    const TagInfo* ti;
  756|    708|    for (ti = Internal::mnTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (756:47): [True: 472, False: 236]
  ------------------
  757|    472|      tags_[ti[idx].tag_] = ti[idx].name_;
  758|  1.41k|    for (ti = Internal::iopTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (758:48): [True: 1.18k, False: 236]
  ------------------
  759|  1.18k|      tags_[ti[idx].tag_] = ti[idx].name_;
  760|  7.78k|    for (ti = Internal::gpsTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (760:48): [True: 7.55k, False: 236]
  ------------------
  761|  7.55k|      tags_[ti[idx].tag_] = ti[idx].name_;
  762|  60.6k|    for (ti = Internal::ifdTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (762:48): [True: 60.4k, False: 236]
  ------------------
  763|  60.4k|      tags_[ti[idx].tag_] = ti[idx].name_;
  764|  22.8k|    for (ti = Internal::exifTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (764:49): [True: 22.6k, False: 236]
  ------------------
  765|  22.6k|      tags_[ti[idx].tag_] = ti[idx].name_;
  766|  4.72k|    for (ti = Internal::mpfTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (766:48): [True: 4.48k, False: 236]
  ------------------
  767|  4.48k|      tags_[ti[idx].tag_] = ti[idx].name_;
  768|  4.01k|    for (ti = Internal::Nikon1MakerNote::tagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (768:62): [True: 3.77k, False: 236]
  ------------------
  769|  3.77k|      tags_[ti[idx].tag_] = ti[idx].name_;
  770|    236|  }
  771|  9.50k|  init_ = false;
  772|       |
  773|  9.50k|  return tags_[tag];
  774|  9.50k|}
_ZN5Exiv212ImageFactory9checkTypeENS_9ImageTypeERNS_7BasicIoEb:
  791|  33.0k|bool ImageFactory::checkType(ImageType type, BasicIo& io, bool advance) {
  792|  33.0k|  if (auto r = Exiv2::find(registry, type))
  ------------------
  |  Branch (792:12): [True: 33.0k, False: 0]
  ------------------
  793|  33.0k|    return r->isThisType_(io, advance);
  794|      0|  return false;
  795|  33.0k|}
_ZN5Exiv212ImageFactory4openEPKhm:
  877|  33.6k|Image::UniquePtr ImageFactory::open(const byte* data, size_t size) {
  878|  33.6k|  auto image = open(std::make_unique<MemIo>(data, size));  // may throw
  879|  33.6k|  if (!image)
  ------------------
  |  Branch (879:7): [True: 452, False: 33.1k]
  ------------------
  880|    452|    throw Error(ErrorCode::kerMemoryContainsUnknownImageType);
  881|  33.1k|  return image;
  882|  33.6k|}
_ZN5Exiv212ImageFactory4openENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  884|  33.6k|Image::UniquePtr ImageFactory::open(BasicIo::UniquePtr io) {
  885|  33.6k|  if (io->open() != 0) {
  ------------------
  |  Branch (885:7): [True: 0, False: 33.6k]
  ------------------
  886|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io->path(), strError());
  887|      0|  }
  888|   488k|  for (const auto& r : registry) {
  ------------------
  |  Branch (888:22): [True: 488k, False: 550]
  ------------------
  889|   488k|    if (r.isThisType_(*io, false)) {
  ------------------
  |  Branch (889:9): [True: 33.0k, False: 455k]
  ------------------
  890|  33.0k|      return r.newInstance_(std::move(io), ImageCtorParams(false, 1000));
  891|  33.0k|    }
  892|   488k|  }
  893|    550|  return nullptr;
  894|  33.6k|}
_ZN5Exiv26appendERNSt3__16vectorIhNS0_9allocatorIhEEEEPKhm:
  932|  66.2k|void append(Blob& blob, const byte* buf, size_t len) {
  933|  66.2k|  if (len != 0) {
  ------------------
  |  Branch (933:7): [True: 65.2k, False: 1.05k]
  ------------------
  934|  65.2k|    Blob::size_type size = blob.size();
  935|  65.2k|    if (blob.capacity() - size < len) {
  ------------------
  |  Branch (935:9): [True: 4.29k, False: 60.9k]
  ------------------
  936|  4.29k|      blob.reserve(size + 65536);
  937|  4.29k|    }
  938|  65.2k|    blob.resize(size + len);
  939|  65.2k|    std::copy_n(buf, len, blob.begin() + size);
  940|  65.2k|  }
  941|  66.2k|}  // append
image.cpp:_ZN5Exiv2L9typeValidEt:
  320|  9.80k|static bool typeValid(uint16_t type) {
  321|  9.80k|  return type >= 1 && type <= 13;
  ------------------
  |  Branch (321:10): [True: 9.75k, False: 49]
  |  Branch (321:23): [True: 9.58k, False: 170]
  ------------------
  322|  9.80k|}
image.cpp:_ZZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcmENK3$_0clEv:
  378|  9.58k|      const uint32_t kount = [=] {
  379|       |        // haul in all the data
  380|  9.58k|        if (isPrintXMP(tag, option))
  ------------------
  |  Branch (380:13): [True: 0, False: 9.58k]
  ------------------
  381|      0|          return count;
  382|       |        // ditto
  383|  9.58k|        if (isPrintICC(tag, option))
  ------------------
  |  Branch (383:13): [True: 0, False: 9.58k]
  ------------------
  384|      0|          return count;
  385|       |        // restrict long arrays
  386|  9.58k|        if (isStringType(type)) {
  ------------------
  |  Branch (386:13): [True: 1.55k, False: 8.03k]
  ------------------
  387|  1.55k|          return std::min(count, 32u);
  388|  1.55k|        }
  389|  8.03k|        return std::min(count, 5u);
  390|  9.58k|      }();
image.cpp:_ZZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcmENK3$_1clEv:
  392|  9.58k|      const uint32_t size = [=] {
  393|  9.58k|        if (isStringType(type))
  ------------------
  |  Branch (393:13): [True: 1.55k, False: 8.03k]
  ------------------
  394|  1.55k|          return 1;
  395|  8.03k|        if (is2ByteType(type))
  ------------------
  |  Branch (395:13): [True: 2.12k, False: 5.90k]
  ------------------
  396|  2.12k|          return 2;
  397|  5.90k|        if (is4ByteType(type))
  ------------------
  |  Branch (397:13): [True: 4.41k, False: 1.48k]
  ------------------
  398|  4.41k|          return 4;
  399|  1.48k|        if (is8ByteType(type))
  ------------------
  |  Branch (399:13): [True: 1.48k, False: 0]
  ------------------
  400|  1.48k|          return 8;
  401|      0|        return 1;
  402|  1.48k|      }();
image.cpp:_ZNK12_GLOBAL__N_18RegistryeqERKN5Exiv29ImageTypeE:
   66|   473k|  bool operator==(const ImageType& imageType) const {
   67|   473k|    return imageType == imageType_;
   68|   473k|  }

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

_ZN5Exiv28Internal14binaryToStringIPhEEDaONS_5SliceIT_EE:
   95|  52.0k|constexpr auto binaryToString(Slice<T>&& sl) noexcept {
   96|  52.0k|  return binaryToStringHelper<T>(std::move(sl));
   97|  52.0k|}
_ZN5Exiv28Internal20binaryToStringHelperIPhEC2EONS_5SliceIS2_EE:
   64|  52.0k|  explicit constexpr binaryToStringHelper(Slice<T>&& myBuf) noexcept : buf_(std::move(myBuf)) {
   65|  52.0k|  }
_ZN5Exiv28InternallsIPhEERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEES8_RKNS0_20binaryToStringHelperIT_EE:
   49|  52.0k|std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper<T>& binToStr) noexcept {
   50|  1.29M|  for (size_t i = 0; i < binToStr.buf_.size(); ++i) {
  ------------------
  |  Branch (50:22): [True: 1.24M, False: 52.0k]
  ------------------
   51|  1.24M|    auto c = static_cast<unsigned char>(binToStr.buf_.at(i));
   52|  1.24M|    if (c != 0 || i != binToStr.buf_.size() - 1) {
  ------------------
  |  Branch (52:9): [True: 926k, False: 318k]
  |  Branch (52:19): [True: 293k, False: 25.5k]
  ------------------
   53|  1.21M|      if (c < 32 || c > 126)
  ------------------
  |  Branch (53:11): [True: 402k, False: 817k]
  |  Branch (53:21): [True: 149k, False: 667k]
  ------------------
   54|   552k|        stream.put('.');
   55|   667k|      else
   56|   667k|        stream.put(static_cast<char>(c));
   57|  1.21M|    }
   58|  1.24M|  }
   59|  52.0k|  return stream;
   60|  52.0k|}
_ZN5Exiv28Internal14binaryToStringIKNS_5SliceIPhEEEEDaONS2_IT_EE:
   95|  2.05k|constexpr auto binaryToString(Slice<T>&& sl) noexcept {
   96|  2.05k|  return binaryToStringHelper<T>(std::move(sl));
   97|  2.05k|}
_ZN5Exiv28Internal20binaryToStringHelperIKNS_5SliceIPhEEEC2EONS2_IS5_EE:
   64|  2.05k|  explicit constexpr binaryToStringHelper(Slice<T>&& myBuf) noexcept : buf_(std::move(myBuf)) {
   65|  2.05k|  }
_ZN5Exiv28InternallsIKNS_5SliceIPhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS0_20binaryToStringHelperIT_EE:
   49|  2.05k|std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper<T>& binToStr) noexcept {
   50|  15.2k|  for (size_t i = 0; i < binToStr.buf_.size(); ++i) {
  ------------------
  |  Branch (50:22): [True: 13.2k, False: 2.05k]
  ------------------
   51|  13.2k|    auto c = static_cast<unsigned char>(binToStr.buf_.at(i));
   52|  13.2k|    if (c != 0 || i != binToStr.buf_.size() - 1) {
  ------------------
  |  Branch (52:9): [True: 10.8k, False: 2.35k]
  |  Branch (52:19): [True: 1.89k, False: 461]
  ------------------
   53|  12.7k|      if (c < 32 || c > 126)
  ------------------
  |  Branch (53:11): [True: 4.06k, False: 8.67k]
  |  Branch (53:21): [True: 2.34k, False: 6.32k]
  ------------------
   54|  6.41k|        stream.put('.');
   55|  6.32k|      else
   56|  6.32k|        stream.put(static_cast<char>(c));
   57|  12.7k|    }
   58|  13.2k|  }
   59|  2.05k|  return stream;
   60|  2.05k|}

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

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

_ZN5Exiv28Internal18isValidBoxFileTypeERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
   13|    111|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|    111|  if (boxData.size() < 8 || ((boxData.size() - 8u) % 4u) != 0) {
  ------------------
  |  Branch (15:7): [True: 3, False: 108]
  |  Branch (15:29): [True: 4, False: 104]
  ------------------
   16|      7|    return false;
   17|      7|  }
   18|       |
   19|    104|  const size_t N = (boxData.size() - 8u) / 4u;
   20|    104|  const uint32_t brand = getULong(boxData.data(), bigEndian);
   21|    104|  const uint32_t minorVersion = getULong(boxData.data() + 4, bigEndian);
   22|       |
   23|    104|  bool clWithRightBrand = false;
   24|    341|  for (size_t i = 0; i < N; i++) {
  ------------------
  |  Branch (24:22): [True: 320, False: 21]
  ------------------
   25|    320|    uint32_t compatibilityList = getULong(boxData.data() + 8 + (i * 4), bigEndian);
   26|    320|    if ((brand == brandJp2 && compatibilityList == brandJp2) || (brand == brandJph && compatibilityList == brandJph)) {
  ------------------
  |  Branch (26:10): [True: 167, False: 153]
  |  Branch (26:31): [True: 73, False: 94]
  |  Branch (26:66): [True: 69, False: 178]
  |  Branch (26:87): [True: 10, False: 59]
  ------------------
   27|     83|      clWithRightBrand = true;
   28|     83|      break;
   29|     83|    }
   30|    320|  }
   31|    104|  return (minorVersion == 0 && clWithRightBrand);
  ------------------
  |  Branch (31:11): [True: 87, False: 17]
  |  Branch (31:32): [True: 81, False: 6]
  ------------------
   32|    111|}

_ZN5Exiv28JpegBaseC2ENS_9ImageTypeENSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEERKNS_15ImageCtorParamsEPKhm:
  117|  1.83k|    Image(type, mdExif | mdIptc | mdXmp | mdComment, std::move(io), params) {
  118|  1.83k|  if (params.create()) {
  ------------------
  |  Branch (118:7): [True: 0, False: 1.83k]
  ------------------
  119|      0|    initImage(initData, dataSize);
  120|      0|  }
  121|  1.83k|}
_ZNK5Exiv28JpegBase15advanceToMarkerENS_9ErrorCodeE:
  134|   309k|byte JpegBase::advanceToMarker(ErrorCode err) const {
  135|   309k|  int c = -1;
  136|       |  // Skips potential padding between markers
  137|  12.8M|  while ((c = io_->getb()) != 0xff) {
  ------------------
  |  Branch (137:10): [True: 12.5M, False: 309k]
  ------------------
  138|  12.5M|    if (c == EOF)
  ------------------
  |  Branch (138:9): [True: 482, False: 12.5M]
  ------------------
  139|    482|      throw Error(err);
  140|  12.5M|  }
  141|       |
  142|       |  // Markers can start with any number of 0xff
  143|   356k|  while ((c = io_->getb()) == 0xff) {
  ------------------
  |  Branch (143:10): [True: 46.9k, False: 309k]
  ------------------
  144|  46.9k|  }
  145|   309k|  if (c == EOF)
  ------------------
  |  Branch (145:7): [True: 37, False: 309k]
  ------------------
  146|     37|    throw Error(err);
  147|       |
  148|   309k|  return static_cast<byte>(c);
  149|   309k|}
_ZN5Exiv28JpegBase12readMetadataEv:
  151|  2.69k|void JpegBase::readMetadata() {
  152|  2.69k|  int rc = 0;  // Todo: this should be the return value
  153|       |
  154|  2.69k|  if (io_->open() != 0)
  ------------------
  |  Branch (154:7): [True: 0, False: 2.69k]
  ------------------
  155|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  156|  2.69k|  IoCloser closer(*io_);
  157|       |  // Ensure that this is the correct image type
  158|  2.69k|  if (!isThisType(*io_, true)) {
  ------------------
  |  Branch (158:7): [True: 106, False: 2.58k]
  ------------------
  159|    106|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (159:9): [True: 0, False: 106]
  |  Branch (159:25): [True: 0, False: 106]
  ------------------
  160|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  161|    106|    throw Error(ErrorCode::kerNotAJpeg);
  162|    106|  }
  163|  2.58k|  clearMetadata();
  164|  2.58k|  int search = 6;  // Exif, ICC, XMP, Comment, IPTC, SOF
  165|  2.58k|  Blob psBlob;
  166|  2.58k|  bool foundCompletePsData = false;
  167|  2.58k|  bool foundExifData = false;
  168|  2.58k|  bool foundXmpData = false;
  169|  2.58k|  bool foundIccData = false;
  170|       |
  171|       |  // Read section marker
  172|  2.58k|  byte marker = advanceToMarker(ErrorCode::kerNotAJpeg);
  173|       |
  174|  77.6k|  while (marker != sos_ && marker != eoi_ && search > 0) {
  ------------------
  |  Branch (174:10): [True: 77.2k, False: 398]
  |  Branch (174:28): [True: 75.6k, False: 1.58k]
  |  Branch (174:46): [True: 75.6k, False: 8]
  ------------------
  175|  75.6k|    const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  176|       |
  177|       |    // Read the rest of the segment.
  178|  75.6k|    DataBuf buf(size);
  179|       |    // check if the segment is not empty
  180|  75.6k|    if (size > 2) {
  ------------------
  |  Branch (180:9): [True: 67.7k, False: 7.89k]
  ------------------
  181|  67.7k|      io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  182|  67.7k|      std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  183|  67.7k|    }
  184|       |
  185|  75.6k|    if (auto itSofMarker = Exiv2::find(jpegProcessMarkerTags, marker)) {
  ------------------
  |  Branch (185:14): [True: 2.72k, False: 72.9k]
  ------------------
  186|  2.72k|      sof_encoding_process_ = itSofMarker->label_;
  187|  2.72k|      if (size >= 7 && buf.c_data(7)) {
  ------------------
  |  Branch (187:11): [True: 2.21k, False: 515]
  |  Branch (187:24): [True: 2.08k, False: 125]
  ------------------
  188|  2.08k|        num_color_components_ = *buf.c_data(7);
  189|  2.08k|      }
  190|  2.72k|    }
  191|       |
  192|  75.6k|    if (!foundExifData && marker == app1_ && size >= 8  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (192:9): [True: 59.2k, False: 16.4k]
  |  Branch (192:27): [True: 4.27k, False: 54.9k]
  |  Branch (192:46): [True: 3.57k, False: 701]
  ------------------
  193|  3.57k|        && buf.cmpBytes(2, exifId_.data(), 6) == 0) {
  ------------------
  |  Branch (193:12): [True: 717, False: 2.85k]
  ------------------
  194|    717|      const DecodeParams dp(max_recursion_depth_);
  195|    717|      ByteOrder bo = ExifParser::decode(exifData_, buf.c_data(8), size - 8, dp);
  196|    717|      setByteOrder(bo);
  197|    717|      if (size > 8 && byteOrder() == invalidByteOrder) {
  ------------------
  |  Branch (197:11): [True: 693, False: 24]
  |  Branch (197:23): [True: 0, False: 693]
  ------------------
  198|      0|#ifndef SUPPRESS_WARNINGS
  199|      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()
  ------------------
  200|      0|#endif
  201|      0|        exifData_.clear();
  202|      0|      }
  203|    717|      --search;
  204|    717|      foundExifData = true;
  205|  74.9k|    } else if (!foundXmpData && marker == app1_ && size >= 31  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (205:16): [True: 65.3k, False: 9.62k]
  |  Branch (205:33): [True: 8.36k, False: 56.9k]
  |  Branch (205:52): [True: 7.58k, False: 782]
  ------------------
  206|  7.58k|               && buf.cmpBytes(2, xmpId_.data(), 29) == 0) {
  ------------------
  |  Branch (206:19): [True: 177, False: 7.40k]
  ------------------
  207|    177|      xmpPacket_.assign(buf.c_str(31), size - 31);
  208|    177|      const DecodeParams dp(max_recursion_depth_);
  209|    177|      if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_, dp)) {
  ------------------
  |  Branch (209:11): [True: 176, False: 1]
  |  Branch (209:34): [True: 80, False: 96]
  ------------------
  210|     80|#ifndef SUPPRESS_WARNINGS
  211|     80|        EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|     80|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 80]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     80|  LogMsg(LogMsg::warn).os()
  ------------------
  212|     80|#endif
  213|     80|      }
  214|    177|      --search;
  215|    177|      foundXmpData = true;
  216|  74.7k|    } else if (!foundCompletePsData && marker == app13_ &&
  ------------------
  |  Branch (216:16): [True: 73.5k, False: 1.24k]
  |  Branch (216:40): [True: 39.5k, False: 34.0k]
  ------------------
  217|  39.5k|               size >= 16  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (217:16): [True: 39.0k, False: 436]
  ------------------
  218|  39.0k|               && buf.cmpBytes(2, Photoshop::ps3Id_, 14) == 0) {
  ------------------
  |  Branch (218:19): [True: 25.4k, False: 13.6k]
  ------------------
  219|       |#ifdef EXIV2_DEBUG_MESSAGES
  220|       |      std::cerr << "Found app13 segment, size = " << size << "\n";
  221|       |#endif
  222|  25.4k|      if (buf.size() > 16) {  // Append to psBlob
  ------------------
  |  Branch (222:11): [True: 23.1k, False: 2.31k]
  ------------------
  223|  23.1k|        append(psBlob, buf.c_data(16), size - 16);
  224|  23.1k|      }
  225|       |      // Check whether psBlob is complete
  226|  25.4k|      if (!psBlob.empty() && Photoshop::valid(psBlob.data(), psBlob.size())) {
  ------------------
  |  Branch (226:11): [True: 24.0k, False: 1.36k]
  |  Branch (226:30): [True: 83, False: 23.9k]
  ------------------
  227|     83|        --search;
  228|     83|        foundCompletePsData = true;
  229|     83|      }
  230|  49.3k|    } else if (marker == com_ && comment_.empty()) {
  ------------------
  |  Branch (230:16): [True: 4.87k, False: 44.4k]
  |  Branch (230:34): [True: 784, False: 4.09k]
  ------------------
  231|       |      // JPEGs can have multiple comments, but for now only read
  232|       |      // the first one (most jpegs only have one anyway). Comments
  233|       |      // are simple single byte ISO-8859-1 strings.
  234|    784|      comment_.assign(buf.c_str(2), size - 2);
  235|  1.90k|      while (!comment_.empty() && comment_.back() == '\0') {
  ------------------
  |  Branch (235:14): [True: 1.68k, False: 222]
  |  Branch (235:35): [True: 1.12k, False: 562]
  ------------------
  236|  1.12k|        comment_.pop_back();
  237|  1.12k|      }
  238|    784|      --search;
  239|  48.5k|    } else if (marker == app2_ && size >= 13  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (239:16): [True: 5.47k, False: 43.0k]
  |  Branch (239:35): [True: 5.14k, False: 333]
  ------------------
  240|  5.14k|               && buf.cmpBytes(2, iccId_, 11) == 0) {
  ------------------
  |  Branch (240:19): [True: 2.72k, False: 2.41k]
  ------------------
  241|  2.72k|      if (size < 2 + 14 + 4) {
  ------------------
  |  Branch (241:11): [True: 15, False: 2.71k]
  ------------------
  242|     15|        rc = 8;
  243|     15|        break;
  244|     15|      }
  245|       |      // ICC profile
  246|  2.71k|      if (!foundIccData) {
  ------------------
  |  Branch (246:11): [True: 99, False: 2.61k]
  ------------------
  247|     99|        foundIccData = true;
  248|     99|        --search;
  249|     99|      }
  250|  2.71k|      auto chunk = static_cast<int>(buf.read_uint8(2 + 12));
  251|  2.71k|      auto chunks = static_cast<int>(buf.read_uint8(2 + 13));
  252|       |      // ICC1v43_2010-12.pdf header is 14 bytes
  253|       |      // header = "ICC_PROFILE\0" (12 bytes)
  254|       |      // chunk/chunks are a single byte
  255|       |      // Spec 7.2 Profile bytes 0-3 size
  256|  2.71k|      uint32_t s = buf.read_uint32(2 + 14, bigEndian);
  257|       |#ifdef EXIV2_DEBUG_MESSAGES
  258|       |      std::cerr << "Found ICC Profile chunk " << chunk << " of " << chunks << (chunk == 1 ? " size: " : "")
  259|       |                << (chunk == 1 ? s : 0) << '\n';
  260|       |#endif
  261|       |      // #1286 profile can be padded
  262|  2.71k|      size_t icc_size = size - 2 - 14;
  263|  2.71k|      if (chunk == 1 && chunks == 1) {
  ------------------
  |  Branch (263:11): [True: 1.60k, False: 1.11k]
  |  Branch (263:25): [True: 339, False: 1.26k]
  ------------------
  264|    339|        enforce(s <= static_cast<uint32_t>(icc_size), ErrorCode::kerInvalidIccProfile);
  265|    339|        icc_size = s;
  266|    339|      }
  267|       |
  268|  2.71k|      appendIccProfile(buf.c_data(2 + 14), icc_size, chunk == chunks);
  269|  45.8k|    } else if (pixelHeight_ == 0 && inRange2(marker, sof0_, sof3_, sof5_, sof15_)) {
  ------------------
  |  Branch (269:16): [True: 33.3k, False: 12.5k]
  |  Branch (269:37): [True: 355, False: 32.9k]
  ------------------
  270|       |      // We hit a SOFn (start-of-frame) marker
  271|    355|      if (size < 8) {
  ------------------
  |  Branch (271:11): [True: 68, False: 287]
  ------------------
  272|     68|        rc = 7;
  273|     68|        break;
  274|     68|      }
  275|    287|      pixelHeight_ = buf.read_uint16(3, bigEndian);
  276|    287|      pixelWidth_ = buf.read_uint16(5, bigEndian);
  277|    287|      if (pixelHeight_ != 0)
  ------------------
  |  Branch (277:11): [True: 95, False: 192]
  ------------------
  278|     95|        --search;
  279|    287|    }
  280|       |
  281|       |    // Read the beginning of the next segment
  282|  75.5k|    try {
  283|  75.5k|      marker = advanceToMarker(ErrorCode::kerFailedToReadImageData);
  284|  75.5k|    } catch (const Error&) {
  285|    273|      rc = 5;
  286|    273|      break;
  287|    273|    }
  288|  75.5k|  }  // while there are segments to process
  289|       |
  290|  2.34k|  if (!psBlob.empty()) {
  ------------------
  |  Branch (290:7): [True: 542, False: 1.80k]
  ------------------
  291|       |    // Find actual IPTC data within the psBlob
  292|    542|    Blob iptcBlob;
  293|    542|    const byte* record = nullptr;
  294|    542|    uint32_t sizeIptc = 0;
  295|    542|    uint32_t sizeHdr = 0;
  296|    542|    const byte* pCur = psBlob.data();
  297|    542|    const byte* pEnd = pCur + psBlob.size();
  298|  19.2k|    while (pCur < pEnd && 0 == Photoshop::locateIptcIrb(pCur, pEnd - pCur, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (298:12): [True: 19.1k, False: 10]
  |  Branch (298:27): [True: 18.6k, False: 532]
  ------------------
  299|       |#ifdef EXIV2_DEBUG_MESSAGES
  300|       |      std::cerr << "Found IPTC IRB, size = " << sizeIptc << "\n";
  301|       |#endif
  302|  18.6k|      if (sizeIptc) {
  ------------------
  |  Branch (302:11): [True: 18.6k, False: 7]
  ------------------
  303|  18.6k|        append(iptcBlob, record + sizeHdr, sizeIptc);
  304|  18.6k|      }
  305|  18.6k|      pCur = record + sizeHdr + sizeIptc + (sizeIptc & 1);
  306|  18.6k|    }
  307|    542|    if (!iptcBlob.empty() && IptcParser::decode(iptcData_, iptcBlob.data(), iptcBlob.size())) {
  ------------------
  |  Branch (307:9): [True: 80, False: 462]
  |  Branch (307:30): [True: 14, False: 66]
  ------------------
  308|     14|#ifndef SUPPRESS_WARNINGS
  309|     14|      EXV_WARNING << "Failed to decode IPTC 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()
  ------------------
  310|     14|#endif
  311|     14|      iptcData_.clear();
  312|     14|    }
  313|    542|  }
  314|       |
  315|  2.34k|  if (rc != 0) {
  ------------------
  |  Branch (315:7): [True: 356, False: 1.99k]
  ------------------
  316|    356|#ifndef SUPPRESS_WARNINGS
  317|    356|    EXV_WARNING << "JPEG format error, rc = " << rc << "\n";
  ------------------
  |  |  138|    356|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 356]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    356|  LogMsg(LogMsg::warn).os()
  ------------------
  318|    356|#endif
  319|    356|  }
  320|  2.34k|}  // JpegBase::readMetadata
_ZN5Exiv28JpegBase14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  326|  7.82k|void JpegBase::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
  327|  7.82k|  if (io_->open() != 0)
  ------------------
  |  Branch (327:7): [True: 0, False: 7.82k]
  ------------------
  328|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  329|       |  // Ensure that this is the correct image type
  330|  7.82k|  if (!isThisType(*io_, false)) {
  ------------------
  |  Branch (330:7): [True: 0, False: 7.82k]
  ------------------
  331|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (331:9): [True: 0, False: 0]
  |  Branch (331:25): [True: 0, False: 0]
  ------------------
  332|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  333|      0|    throw Error(ErrorCode::kerNotAJpeg);
  334|      0|  }
  335|       |
  336|  7.82k|  bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (336:17): [True: 1.47k, False: 6.35k]
  |  Branch (336:39): [True: 1.26k, False: 5.09k]
  ------------------
  337|  7.82k|  std::vector<std::pair<size_t, size_t>> iptcDataSegs;
  338|       |
  339|  7.82k|  if (bPrint || option == kpsXMP || option == kpsIccProfile || option == kpsIptcErase) {
  ------------------
  |  Branch (339:7): [True: 2.73k, False: 5.09k]
  |  Branch (339:17): [True: 1.26k, False: 3.82k]
  |  Branch (339:37): [True: 1.17k, False: 2.65k]
  |  Branch (339:64): [True: 1.17k, False: 1.47k]
  ------------------
  340|       |    // mnemonic for markers
  341|  6.35k|    std::string nm[256];
  342|  6.35k|    nm[0xd8] = "SOI";
  343|  6.35k|    nm[0xd9] = "EOI";
  344|  6.35k|    nm[0xda] = "SOS";
  345|  6.35k|    nm[0xdb] = "DQT";
  346|  6.35k|    nm[0xdd] = "DRI";
  347|  6.35k|    nm[0xfe] = "COM";
  348|       |
  349|       |    // 0xe0 .. 0xef are APPn
  350|       |    // 0xc0 .. 0xcf are SOFn (except 4)
  351|  6.35k|    nm[0xc4] = "DHT";
  352|   108k|    for (int i = 0; i <= 15; i++) {
  ------------------
  |  Branch (352:21): [True: 101k, False: 6.35k]
  ------------------
  353|   101k|      nm[0xe0 + i] = stringFormat("APP{}", i);
  ------------------
  |  |   18|   101k|#define stringFormat std::format
  ------------------
  354|   101k|      if (i != 4) {
  ------------------
  |  Branch (354:11): [True: 95.3k, False: 6.35k]
  ------------------
  355|  95.3k|        nm[0xc0 + i] = stringFormat("SOF{}", i);
  ------------------
  |  |   18|  95.3k|#define stringFormat std::format
  ------------------
  356|  95.3k|      }
  357|   101k|    }
  358|       |
  359|       |    // Container for the signature
  360|  6.35k|    bool bExtXMP = false;
  361|       |
  362|       |    // Read section marker
  363|  6.35k|    byte marker = advanceToMarker(ErrorCode::kerNotAJpeg);
  364|       |
  365|  6.35k|    bool done = false;
  366|  6.35k|    bool first = true;
  367|   138k|    while (!done) {
  ------------------
  |  Branch (367:12): [True: 132k, False: 6.35k]
  ------------------
  368|       |      // print marker bytes
  369|   132k|      if (first && bPrint) {
  ------------------
  |  Branch (369:11): [True: 6.35k, False: 125k]
  |  Branch (369:20): [True: 2.73k, False: 3.61k]
  ------------------
  370|  2.73k|        out << "STRUCTURE OF JPEG FILE: " << io_->path() << '\n';
  371|  2.73k|        out << " address | marker       |  length | data" << '\n';
  372|  2.73k|        REPORT_MARKER;
  ------------------
  |  |  323|  2.73k|  if ((option == kpsBasic || option == kpsRecursive)) \
  |  |  ------------------
  |  |  |  Branch (323:8): [True: 1.47k, False: 1.26k]
  |  |  |  Branch (323:30): [True: 1.26k, False: 0]
  |  |  ------------------
  |  |  324|  2.73k|  out << stringFormat("{:8} | 0xff{:02x} {:<5}", io_->tell() - 2, marker, nm[marker].c_str())
  |  |  ------------------
  |  |  |  |   18|  2.73k|#define stringFormat std::format
  |  |  ------------------
  ------------------
  373|  2.73k|      }
  374|   132k|      first = false;
  375|   132k|      bool bLF = bPrint;
  376|       |
  377|   132k|      const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  378|       |
  379|       |      // Read the rest of the segment if not empty.
  380|   132k|      DataBuf buf(size);
  381|   132k|      if (size > 2) {
  ------------------
  |  Branch (381:11): [True: 103k, False: 28.5k]
  ------------------
  382|   103k|        io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  383|   103k|        std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  384|   103k|      }
  385|       |
  386|   132k|      if (bPrint && markerHasLength(marker))
  ------------------
  |  Branch (386:11): [True: 59.3k, False: 72.6k]
  |  Branch (386:21): [True: 49.0k, False: 10.3k]
  ------------------
  387|  49.0k|        out << stringFormat(" | {:7} ", size);
  ------------------
  |  |   18|  49.0k|#define stringFormat std::format
  ------------------
  388|       |
  389|       |      // print signature for APPn
  390|   132k|      if (marker >= app0_ && marker <= (app0_ | 0x0F)) {
  ------------------
  |  Branch (390:11): [True: 97.6k, False: 34.4k]
  |  Branch (390:30): [True: 87.5k, False: 10.1k]
  ------------------
  391|       |        // http://www.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMPSpecificationPart3.pdf p75
  392|  87.5k|        const std::string signature = string_from_unterminated(buf.c_str(2), size - 2);
  393|       |
  394|       |        // 728 rmills@rmillsmbp:~/gnu/exiv2/ttt $ exiv2 -pS test/data/exiv2-bug922.jpg
  395|       |        // STRUCTURE OF JPEG FILE: test/data/exiv2-bug922.jpg
  396|       |        // address | marker     | length  | data
  397|       |        //       0 | 0xd8 SOI   |       0
  398|       |        //       2 | 0xe1 APP1  |     911 | Exif..MM.*.......%.........#....
  399|       |        //     915 | 0xe1 APP1  |     870 | http://ns.adobe.com/xap/1.0/.<x:
  400|       |        //    1787 | 0xe1 APP1  |   65460 | http://ns.adobe.com/xmp/extensio
  401|  87.5k|        if (option == kpsXMP && signature.starts_with("http://ns.adobe.com/x")) {
  ------------------
  |  Branch (401:13): [True: 16.0k, False: 71.4k]
  |  Branch (401:33): [True: 193, False: 15.8k]
  ------------------
  402|       |          // extract XMP
  403|    193|          const char* xmp = buf.c_str();
  404|    193|          size_t start = 2;
  405|       |
  406|       |          // http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMPSpecificationPart3.pdf
  407|       |          // if we find HasExtendedXMP, set the flag and ignore this block
  408|       |          // the first extended block is a copy of the Standard block.
  409|       |          // a robust implementation allows extended blocks to be out of sequence
  410|       |          // we could implement out of sequence with a dictionary of sequence/offset
  411|       |          // and dumping the XMP in a post read operation similar to kpsIptcErase
  412|       |          // for the moment, dumping 'on the fly' is working fine
  413|    193|          if (!bExtXMP) {
  ------------------
  |  Branch (413:15): [True: 112, False: 81]
  ------------------
  414|  4.38k|            while (start < size && xmp[start]) {
  ------------------
  |  Branch (414:20): [True: 4.38k, False: 1]
  |  Branch (414:36): [True: 4.27k, False: 111]
  ------------------
  415|  4.27k|              start++;
  416|  4.27k|            }
  417|    112|            start++;
  418|    112|            if (start < size) {
  ------------------
  |  Branch (418:17): [True: 110, False: 2]
  ------------------
  419|    110|              const std::string xmp_from_start = string_from_unterminated(&xmp[start], size - start);
  420|    110|              if (xmp_from_start.find("HasExtendedXMP", start) != std::string::npos) {
  ------------------
  |  Branch (420:19): [True: 11, False: 99]
  ------------------
  421|     11|                start = size;  // ignore this packet, we'll get on the next time around
  422|     11|                bExtXMP = true;
  423|     11|              }
  424|    110|            }
  425|    112|          } else {
  426|     81|            start = 2 + 35 + 32 + 4 + 4;  // Adobe Spec, p19
  427|     81|          }
  428|       |
  429|    193|          enforce(start <= size, ErrorCode::kerInvalidXmpText);
  430|    193|          out.write(&xmp[start], size - start);
  431|    193|          done = !bExtXMP;
  432|  87.3k|        } else if (option == kpsIccProfile && signature == iccId_) {
  ------------------
  |  Branch (432:20): [True: 15.8k, False: 71.4k]
  |  Branch (432:47): [True: 1.20k, False: 14.6k]
  ------------------
  433|       |          // extract ICCProfile
  434|  1.20k|          if (size >= 16) {
  ------------------
  |  Branch (434:15): [True: 1.20k, False: 0]
  ------------------
  435|  1.20k|            out.write(buf.c_str(16), size - 16);
  436|       |#ifdef EXIV2_DEBUG_MESSAGES
  437|       |            std::cout << "iccProfile size = " << size - 16 << '\n';
  438|       |#endif
  439|  1.20k|          }
  440|  86.1k|        } else if (option == kpsIptcErase && signature == "Photoshop 3.0") {
  ------------------
  |  Branch (440:20): [True: 15.8k, False: 70.2k]
  |  Branch (440:46): [True: 3.57k, False: 12.3k]
  ------------------
  441|       |          // delete IPTC data segment from JPEG
  442|  3.57k|          iptcDataSegs.emplace_back(io_->tell() - size, io_->tell());
  443|  82.5k|        } else if (bPrint) {
  ------------------
  |  Branch (443:20): [True: 39.7k, False: 42.7k]
  ------------------
  444|  39.7k|          const size_t start = 2;
  445|  39.7k|          const auto end = std::min<size_t>(34, size);
  446|  39.7k|          out << "| ";
  447|  39.7k|          if (start < end)
  ------------------
  |  Branch (447:15): [True: 38.7k, False: 1.04k]
  ------------------
  448|  38.7k|            out << Internal::binaryToString(makeSlice(buf, start, end));
  449|  39.7k|          if (signature == iccId_) {
  ------------------
  |  Branch (449:15): [True: 2.44k, False: 37.3k]
  ------------------
  450|       |            // extract the chunk information from the buffer
  451|       |            //
  452|       |            // the buffer looks like this in this branch
  453|       |            // ICC_PROFILE\0AB
  454|       |            // where A & B are bytes (the variables chunk & chunks)
  455|       |            //
  456|       |            // We cannot extract the variables A and B from the signature string, as they are beyond the
  457|       |            // null termination (and signature ends there).
  458|       |            // => Read the chunk info from the DataBuf directly
  459|  2.44k|            enforce<std::out_of_range>(size >= 16, "Buffer too small to extract chunk information.");
  460|  2.44k|            const int chunk = buf.read_uint8(2 + 12);
  461|  2.44k|            const int chunks = buf.read_uint8(2 + 13);
  462|  2.44k|            out << stringFormat(" chunk {}/{}", chunk, chunks);
  ------------------
  |  |   18|  2.44k|#define stringFormat std::format
  ------------------
  463|  2.44k|          }
  464|  39.7k|        }
  465|       |
  466|       |        // for MPF: http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/MPF.html
  467|       |        // for FLIR: http://owl.phy.queensu.ca/~phil/exiftool/TagNames/FLIR.html
  468|  87.5k|        bool bFlir = option == kpsRecursive && marker == (app0_ + 1) && signature == "FLIR";
  ------------------
  |  Branch (468:22): [True: 19.1k, False: 68.4k]
  |  Branch (468:48): [True: 8.16k, False: 10.9k]
  |  Branch (468:73): [True: 2.12k, False: 6.03k]
  ------------------
  469|  87.5k|        bool bExif = option == kpsRecursive && marker == (app0_ + 1) && signature == "Exif";
  ------------------
  |  Branch (469:22): [True: 19.1k, False: 68.4k]
  |  Branch (469:48): [True: 8.16k, False: 10.9k]
  |  Branch (469:73): [True: 3.20k, False: 4.95k]
  ------------------
  470|  87.5k|        bool bMPF = option == kpsRecursive && marker == (app0_ + 2) && signature == "MPF";
  ------------------
  |  Branch (470:21): [True: 19.1k, False: 68.4k]
  |  Branch (470:47): [True: 2.94k, False: 16.1k]
  |  Branch (470:72): [True: 111, False: 2.83k]
  ------------------
  471|  87.5k|        bool bPS = option == kpsRecursive && signature == "Photoshop 3.0";
  ------------------
  |  Branch (471:20): [True: 19.1k, False: 68.4k]
  |  Branch (471:46): [True: 3.61k, False: 15.4k]
  ------------------
  472|  87.5k|        if (bFlir || bExif || bMPF || bPS) {
  ------------------
  |  Branch (472:13): [True: 2.12k, False: 85.3k]
  |  Branch (472:22): [True: 3.20k, False: 82.1k]
  |  Branch (472:31): [True: 111, False: 82.0k]
  |  Branch (472:39): [True: 3.61k, False: 78.4k]
  ------------------
  473|       |          // extract Exif data block which is tiff formatted
  474|  9.05k|          out << '\n';
  475|       |
  476|       |          //                        const byte* exif = buf.c_data();
  477|  9.05k|          uint32_t start = signature == "Exif" ? 8 : 6;
  ------------------
  |  Branch (477:28): [True: 3.20k, False: 5.85k]
  ------------------
  478|  9.05k|          uint32_t max = static_cast<uint32_t>(size) - 1;
  479|       |
  480|       |          // is this an fff block?
  481|  9.05k|          if (bFlir) {
  ------------------
  |  Branch (481:15): [True: 2.12k, False: 6.93k]
  ------------------
  482|  2.12k|            start = 2;
  483|  2.12k|            bFlir = false;
  484|  70.6k|            while (start + 3 <= max) {
  ------------------
  |  Branch (484:20): [True: 70.6k, False: 13]
  ------------------
  485|  70.6k|              if (std::strcmp(buf.c_str(start), "FFF") == 0) {
  ------------------
  |  Branch (485:19): [True: 2.11k, False: 68.5k]
  ------------------
  486|  2.11k|                bFlir = true;
  487|  2.11k|                break;
  488|  2.11k|              }
  489|  68.5k|              start++;
  490|  68.5k|            }
  491|  2.12k|          }
  492|       |
  493|       |          // there is a header in FLIR, followed by a tiff block
  494|       |          // Hunt down the tiff using brute force
  495|  9.05k|          if (bFlir) {
  ------------------
  |  Branch (495:15): [True: 2.11k, False: 6.94k]
  ------------------
  496|       |            // FLIRFILEHEAD* pFFF = (FLIRFILEHEAD*) (exif+start) ;
  497|   104k|            while (start < max) {
  ------------------
  |  Branch (497:20): [True: 103k, False: 469]
  ------------------
  498|   103k|              if (buf.read_uint8(start) == 'I' && buf.read_uint8(start + 1) == 'I')
  ------------------
  |  Branch (498:19): [True: 2.06k, False: 101k]
  |  Branch (498:51): [True: 853, False: 1.21k]
  ------------------
  499|    853|                break;
  500|   102k|              if (buf.read_uint8(start) == 'M' && buf.read_uint8(start + 1) == 'M')
  ------------------
  |  Branch (500:19): [True: 1.60k, False: 101k]
  |  Branch (500:51): [True: 789, False: 811]
  ------------------
  501|    789|                break;
  502|   102k|              start++;
  503|   102k|            }
  504|       |#ifdef EXIV2_DEBUG_MESSAGES
  505|       |            if (start < max)
  506|       |              std::cout << "  FFF start = " << start << '\n';
  507|       |              // << " index = " << pFFF->dwIndexOff << '\n';
  508|       |#endif
  509|  2.11k|          }
  510|       |
  511|  9.05k|          if (bPS) {
  ------------------
  |  Branch (511:15): [True: 3.61k, False: 5.44k]
  ------------------
  512|  3.61k|            IptcData::printStructure(out, makeSlice(buf, 0, size), depth);
  513|  5.44k|          } else {
  514|  5.44k|            if (start < max) {
  ------------------
  |  Branch (514:17): [True: 4.83k, False: 606]
  ------------------
  515|       |              // create a copy on write memio object with the data, then print the structure
  516|  4.83k|              MemIo p(buf.c_data(start), size - start);
  517|  4.83k|              printTiffStructure(p, out, option, depth + 1);
  518|  4.83k|            }
  519|  5.44k|          }
  520|       |
  521|       |          // restore and clean up
  522|  9.05k|          bLF = false;
  523|  9.05k|        }
  524|  87.5k|      }
  525|       |
  526|       |      // print COM marker
  527|   132k|      if (bPrint && marker == com_) {
  ------------------
  |  Branch (527:11): [True: 59.3k, False: 72.7k]
  |  Branch (527:21): [True: 4.69k, False: 54.6k]
  ------------------
  528|       |        // size includes 2 for the two bytes for size!
  529|  4.69k|        const auto n = std::min<size_t>(32, size - 2);
  530|       |        // start after the two bytes
  531|  4.69k|        out << "| "
  532|  4.69k|            << Internal::binaryToString(makeSlice(buf, 2, n + 2 /* cannot overflow as n is at most size - 2 */));
  533|  4.69k|      }
  534|       |
  535|   132k|      if (bLF)
  ------------------
  |  Branch (535:11): [True: 50.3k, False: 81.7k]
  ------------------
  536|  50.3k|        out << '\n';
  537|       |
  538|   132k|      if (marker != sos_) {
  ------------------
  |  Branch (538:11): [True: 131k, False: 108]
  ------------------
  539|       |        // Read the beginning of the next segment
  540|   131k|        marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  541|   131k|        REPORT_MARKER;
  ------------------
  |  |  323|   131k|  if ((option == kpsBasic || option == kpsRecursive)) \
  |  |  ------------------
  |  |  |  Branch (323:8): [True: 31.2k, False: 100k]
  |  |  |  Branch (323:30): [True: 28.1k, False: 72.6k]
  |  |  ------------------
  |  |  324|   131k|  out << stringFormat("{:8} | 0xff{:02x} {:<5}", io_->tell() - 2, marker, nm[marker].c_str())
  |  |  ------------------
  |  |  |  |   18|  59.1k|#define stringFormat std::format
  |  |  ------------------
  ------------------
  542|   131k|      }
  543|   132k|      done |= marker == eoi_ || marker == sos_;
  ------------------
  |  Branch (543:15): [True: 5.38k, False: 126k]
  |  Branch (543:33): [True: 914, False: 125k]
  ------------------
  544|   132k|      if (done && bPrint)
  ------------------
  |  Branch (544:11): [True: 6.06k, False: 126k]
  |  Branch (544:19): [True: 2.44k, False: 3.61k]
  ------------------
  545|  2.44k|        out << '\n';
  546|   132k|    }
  547|  6.35k|  }
  548|  7.82k|  if (option == kpsIptcErase && !iptcDataSegs.empty()) {
  ------------------
  |  Branch (548:7): [True: 1.17k, False: 6.65k]
  |  Branch (548:33): [True: 864, False: 313]
  ------------------
  549|       |    // Add a sentinel to the end of iptcDataSegs
  550|    864|    iptcDataSegs.emplace_back(io_->size(), 0);
  551|       |
  552|       |    // $ dd bs=1 skip=$((0)) count=$((13164)) if=ETH0138028.jpg of=E1.jpg
  553|       |    // $ dd bs=1 skip=$((49304)) count=2000000  if=ETH0138028.jpg of=E2.jpg
  554|       |    // cat E1.jpg E2.jpg > E.jpg
  555|       |    // exiv2 -pS E.jpg
  556|       |
  557|       |    // binary copy io_ to a temporary file
  558|    864|    MemIo tempIo;
  559|    864|    size_t start = 0;
  560|  4.43k|    for (const auto& [l, s] : iptcDataSegs) {
  ------------------
  |  Branch (560:29): [True: 4.43k, False: 864]
  ------------------
  561|  4.43k|      const size_t length = l - start;
  562|  4.43k|      io_->seekOrThrow(start, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  563|  4.43k|      DataBuf buf(length);
  564|  4.43k|      io_->readOrThrow(buf.data(), buf.size(), ErrorCode::kerFailedToReadImageData);
  565|  4.43k|      tempIo.write(buf.c_data(), buf.size());
  566|  4.43k|      start = s + 2;  // skip the 2 byte marker
  567|  4.43k|    }
  568|       |
  569|    864|    io_->seekOrThrow(0, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  570|    864|    io_->transfer(tempIo);  // may throw
  571|    864|    io_->seekOrThrow(0, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  572|       |
  573|       |    // Check that the result is correctly formatted.
  574|    864|    readMetadata();
  575|    864|  }
  576|  7.82k|}  // JpegBase::printStructure
_ZN5Exiv28JpegBase13writeMetadataEv:
  578|  1.08k|void JpegBase::writeMetadata() {
  579|  1.08k|  if (io_->open() != 0) {
  ------------------
  |  Branch (579:7): [True: 0, False: 1.08k]
  ------------------
  580|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  581|      0|  }
  582|  1.08k|  IoCloser closer(*io_);
  583|  1.08k|  MemIo tempIo;
  584|       |
  585|  1.08k|  doWriteMetadata(tempIo);  // may throw
  586|  1.08k|  io_->close();
  587|  1.08k|  io_->transfer(tempIo);  // may throw
  588|  1.08k|}
_ZN5Exiv28JpegBase15readNextSegmentEh:
  590|  92.2k|DataBuf JpegBase::readNextSegment(byte marker) {
  591|  92.2k|  const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  592|       |
  593|       |  // Read the rest of the segment if not empty.
  594|  92.2k|  DataBuf buf(size);
  595|  92.2k|  if (size > 0) {
  ------------------
  |  Branch (595:7): [True: 85.6k, False: 6.55k]
  ------------------
  596|  85.6k|    std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  597|  85.6k|    if (size > 2) {
  ------------------
  |  Branch (597:9): [True: 84.2k, False: 1.42k]
  ------------------
  598|  84.2k|      io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  599|  84.2k|    }
  600|  85.6k|  }
  601|  92.2k|  return buf;
  602|  92.2k|}
_ZN5Exiv28JpegBase15doWriteMetadataERNS_7BasicIoE:
  604|  1.08k|void JpegBase::doWriteMetadata(BasicIo& outIo) {
  605|  1.08k|  if (!io_->isopen())
  ------------------
  |  Branch (605:7): [True: 0, False: 1.08k]
  ------------------
  606|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  607|  1.08k|  if (!outIo.isopen())
  ------------------
  |  Branch (607:7): [True: 0, False: 1.08k]
  ------------------
  608|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  609|       |
  610|       |  // Ensure that this is the correct image type
  611|  1.08k|  if (!isThisType(*io_, true)) {
  ------------------
  |  Branch (611:7): [True: 0, False: 1.08k]
  ------------------
  612|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (612:9): [True: 0, False: 0]
  |  Branch (612:25): [True: 0, False: 0]
  ------------------
  613|      0|      throw Error(ErrorCode::kerInputDataReadFailed);
  614|      0|    throw Error(ErrorCode::kerNoImageInInputData);
  615|      0|  }
  616|       |
  617|       |  // Used to initialize search variables such as skipCom.
  618|  1.08k|  static const size_t notfound = std::numeric_limits<size_t>::max();
  619|       |
  620|  1.08k|  const size_t seek = io_->tell();
  621|  1.08k|  size_t count = 0;
  622|  1.08k|  size_t search = 0;
  623|  1.08k|  size_t insertPos = 0;
  624|  1.08k|  size_t comPos = 0;
  625|  1.08k|  size_t skipApp1Exif = notfound;
  626|  1.08k|  size_t skipApp1Xmp = notfound;
  627|  1.08k|  bool foundCompletePsData = false;
  628|  1.08k|  bool foundIccData = false;
  629|  1.08k|  std::vector<size_t> skipApp13Ps3;
  630|  1.08k|  std::vector<size_t> skipApp2Icc;
  631|  1.08k|  size_t skipCom = notfound;
  632|  1.08k|  Blob psBlob;
  633|  1.08k|  DataBuf rawExif;
  634|  1.08k|  xmpData().usePacket(writeXmpFromPacket());
  635|       |
  636|       |  // Write image header
  637|  1.08k|  if (writeHeader(outIo))
  ------------------
  |  Branch (637:7): [True: 0, False: 1.08k]
  ------------------
  638|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  639|       |
  640|       |  // Read section marker
  641|  1.08k|  byte marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  642|       |
  643|       |  // First find segments of interest. Normally app0 is first and we want
  644|       |  // to insert after it. But if app0 comes after com, app1 and app13 then
  645|       |  // don't bother.
  646|  49.6k|  while (marker != sos_ && marker != eoi_ && search < 6) {
  ------------------
  |  Branch (646:10): [True: 49.3k, False: 332]
  |  Branch (646:28): [True: 48.5k, False: 754]
  |  Branch (646:46): [True: 48.5k, False: 0]
  ------------------
  647|  48.5k|    DataBuf buf = readNextSegment(marker);
  648|       |
  649|  48.5k|    if (marker == app0_) {
  ------------------
  |  Branch (649:9): [True: 1.02k, False: 47.5k]
  ------------------
  650|  1.02k|      insertPos = count + 1;
  651|  47.5k|    } else if (skipApp1Exif == notfound && marker == app1_ &&
  ------------------
  |  Branch (651:16): [True: 42.1k, False: 5.46k]
  |  Branch (651:44): [True: 2.56k, False: 39.5k]
  ------------------
  652|  2.56k|               buf.size() >= 8 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (652:16): [True: 2.22k, False: 343]
  ------------------
  653|  2.22k|               buf.cmpBytes(2, exifId_.data(), 6) == 0) {
  ------------------
  |  Branch (653:16): [True: 615, False: 1.60k]
  ------------------
  654|    615|      skipApp1Exif = count;
  655|    615|      ++search;
  656|    615|      if (buf.size() > 8) {
  ------------------
  |  Branch (656:11): [True: 603, False: 12]
  ------------------
  657|    603|        rawExif.alloc(buf.size() - 8);
  658|    603|        std::copy_n(buf.begin() + 8, rawExif.size(), rawExif.begin());
  659|    603|      }
  660|  46.9k|    } else if (skipApp1Xmp == notfound && marker == app1_ &&
  ------------------
  |  Branch (660:16): [True: 43.8k, False: 3.12k]
  |  Branch (660:43): [True: 3.43k, False: 40.3k]
  ------------------
  661|  3.43k|               buf.size() >= 31 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (661:16): [True: 3.02k, False: 410]
  ------------------
  662|  3.02k|               buf.cmpBytes(2, xmpId_.data(), 29) == 0) {
  ------------------
  |  Branch (662:16): [True: 95, False: 2.93k]
  ------------------
  663|     95|      skipApp1Xmp = count;
  664|     95|      ++search;
  665|  46.8k|    } else if (marker == app2_ && buf.size() >= 13 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (665:16): [True: 2.80k, False: 44.0k]
  |  Branch (665:35): [True: 2.61k, False: 187]
  ------------------
  666|  2.61k|               buf.cmpBytes(2, iccId_, 11) == 0) {
  ------------------
  |  Branch (666:16): [True: 1.46k, False: 1.15k]
  ------------------
  667|  1.46k|      skipApp2Icc.push_back(count);
  668|  1.46k|      if (!foundIccData) {
  ------------------
  |  Branch (668:11): [True: 47, False: 1.41k]
  ------------------
  669|     47|        ++search;
  670|     47|        foundIccData = true;
  671|     47|      }
  672|  45.3k|    } else if (!foundCompletePsData && marker == app13_ &&
  ------------------
  |  Branch (672:16): [True: 44.4k, False: 927]
  |  Branch (672:40): [True: 31.0k, False: 13.3k]
  ------------------
  673|  31.0k|               buf.size() >= 16 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (673:16): [True: 30.7k, False: 370]
  ------------------
  674|  30.7k|               buf.cmpBytes(2, Photoshop::ps3Id_, 14) == 0) {
  ------------------
  |  Branch (674:16): [True: 20.2k, False: 10.4k]
  ------------------
  675|       |#ifdef EXIV2_DEBUG_MESSAGES
  676|       |      std::cerr << "Found APP13 Photoshop PS3 segment\n";
  677|       |#endif
  678|  20.2k|      skipApp13Ps3.push_back(count);
  679|       |      // Append to psBlob
  680|  20.2k|      append(psBlob, buf.c_data(16), buf.size() - 16);
  681|       |      // Check whether psBlob is complete
  682|  20.2k|      if (!psBlob.empty() && Photoshop::valid(psBlob.data(), psBlob.size())) {
  ------------------
  |  Branch (682:11): [True: 19.9k, False: 346]
  |  Branch (682:30): [True: 61, False: 19.8k]
  ------------------
  683|     61|        foundCompletePsData = true;
  684|     61|      }
  685|  25.1k|    } else if (marker == com_ && skipCom == notfound) {
  ------------------
  |  Branch (685:16): [True: 2.25k, False: 22.8k]
  |  Branch (685:34): [True: 245, False: 2.00k]
  ------------------
  686|       |      // Jpegs can have multiple comments, but for now only handle
  687|       |      // the first one (most jpegs only have one anyway).
  688|    245|      skipCom = count;
  689|    245|      ++search;
  690|    245|    }
  691|       |
  692|       |    // As in jpeg-6b/wrjpgcom.c:
  693|       |    // We will insert the new comment marker just before SOFn.
  694|       |    // This (a) causes the new comment to appear after, rather than before,
  695|       |    // existing comments; and (b) ensures that comments come after any JFIF
  696|       |    // or JFXX markers, as required by the JFIF specification.
  697|  48.5k|    if (comPos == 0 && inRange2(marker, sof0_, sof3_, sof5_, sof15_)) {
  ------------------
  |  Branch (697:9): [True: 43.3k, False: 5.29k]
  |  Branch (697:24): [True: 77, False: 43.2k]
  ------------------
  698|     77|      comPos = count;
  699|     77|      ++search;
  700|     77|    }
  701|  48.5k|    marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  702|  48.5k|    ++count;
  703|  48.5k|  }
  704|       |
  705|  1.08k|  if (!foundCompletePsData && !psBlob.empty())
  ------------------
  |  Branch (705:7): [True: 978, False: 108]
  |  Branch (705:31): [True: 20, False: 958]
  ------------------
  706|     20|    throw Error(ErrorCode::kerNoImageInInputData);
  707|  1.06k|  search += skipApp13Ps3.size() + skipApp2Icc.size();
  708|       |
  709|  1.06k|  if (comPos == 0) {
  ------------------
  |  Branch (709:7): [True: 976, False: 90]
  ------------------
  710|    976|    if (marker == eoi_)
  ------------------
  |  Branch (710:9): [True: 721, False: 255]
  ------------------
  711|    721|      comPos = count;
  712|    255|    else
  713|    255|      comPos = insertPos;
  714|    976|    ++search;
  715|    976|  }
  716|  1.06k|  if (!exifData_.empty())
  ------------------
  |  Branch (716:7): [True: 596, False: 470]
  ------------------
  717|    596|    ++search;
  718|  1.06k|  if (!writeXmpFromPacket() && !xmpData_.empty())
  ------------------
  |  Branch (718:7): [True: 1.01k, False: 49]
  |  Branch (718:32): [True: 55, False: 962]
  ------------------
  719|     55|    ++search;
  720|  1.06k|  if (writeXmpFromPacket() && !xmpPacket_.empty())
  ------------------
  |  Branch (720:7): [True: 0, False: 1.06k]
  |  Branch (720:31): [True: 0, False: 0]
  ------------------
  721|      0|    ++search;
  722|  1.06k|  if (foundCompletePsData || !iptcData_.empty())
  ------------------
  |  Branch (722:7): [True: 108, False: 958]
  |  Branch (722:30): [True: 0, False: 958]
  ------------------
  723|     59|    ++search;
  724|  1.06k|  if (!comment_.empty())
  ------------------
  |  Branch (724:7): [True: 236, False: 830]
  ------------------
  725|    236|    ++search;
  726|       |
  727|  1.06k|  io_->seekOrThrow(seek, BasicIo::beg, ErrorCode::kerNoImageInInputData);
  728|  1.06k|  count = 0;
  729|  1.06k|  marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  730|       |
  731|       |  // To simplify this a bit, new segments are inserts at either the start
  732|       |  // or right after app0. This is standard in most jpegs, but has the
  733|       |  // potential to change segment ordering (which is allowed).
  734|       |  // Segments are erased if there is no assigned metadata.
  735|  44.0k|  while (marker != sos_ && search > 0) {
  ------------------
  |  Branch (735:10): [True: 43.7k, False: 333]
  |  Branch (735:28): [True: 43.6k, False: 74]
  ------------------
  736|  43.6k|    DataBuf buf = readNextSegment(marker);
  737|       |
  738|  43.6k|    if (insertPos == count) {
  ------------------
  |  Branch (738:9): [True: 1.00k, False: 42.6k]
  ------------------
  739|       |      // Write Exif data first so that - if there is no app0 - we
  740|       |      // create "Exif images" according to the Exif standard.
  741|  1.00k|      if (!exifData_.empty()) {
  ------------------
  |  Branch (741:11): [True: 596, False: 413]
  ------------------
  742|    596|        Blob blob;
  743|    596|        ByteOrder bo = byteOrder();
  744|    596|        if (bo == invalidByteOrder) {
  ------------------
  |  Branch (744:13): [True: 0, False: 596]
  ------------------
  745|      0|          bo = littleEndian;
  746|      0|          setByteOrder(bo);
  747|      0|        }
  748|    596|        const byte* pExifData = rawExif.c_data();
  749|    596|        size_t exifSize = rawExif.size();
  750|    596|        if (ExifParser::encode(blob, pExifData, exifSize, bo, exifData_) == wmIntrusive) {
  ------------------
  |  Branch (750:13): [True: 471, False: 125]
  ------------------
  751|    471|          pExifData = !blob.empty() ? blob.data() : nullptr;
  ------------------
  |  Branch (751:23): [True: 442, False: 29]
  ------------------
  752|    471|          exifSize = blob.size();
  753|    471|        }
  754|    596|        if (exifSize > 0) {
  ------------------
  |  Branch (754:13): [True: 491, False: 105]
  ------------------
  755|    491|          std::array<byte, 10> tmpBuf;
  756|       |          // Write APP1 marker, size of APP1 field, Exif id and Exif data
  757|    491|          tmpBuf[0] = 0xff;
  758|    491|          tmpBuf[1] = app1_;
  759|       |
  760|    491|          if (exifSize > 0xffff - 8)
  ------------------
  |  Branch (760:15): [True: 71, False: 420]
  ------------------
  761|     71|            throw Error(ErrorCode::kerTooLargeJpegSegment, "Exif");
  762|    420|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(exifSize + 8), bigEndian);
  763|    420|          std::copy(exifId_.begin(), exifId_.end(), tmpBuf.begin() + 4);
  764|    420|          if (outIo.write(tmpBuf.data(), 10) != 10)
  ------------------
  |  Branch (764:15): [True: 0, False: 420]
  ------------------
  765|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  766|       |
  767|       |          // Write new Exif data buffer
  768|    420|          if (outIo.write(pExifData, exifSize) != exifSize)
  ------------------
  |  Branch (768:15): [True: 0, False: 420]
  ------------------
  769|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  770|    420|          if (outIo.error())
  ------------------
  |  Branch (770:15): [True: 0, False: 420]
  ------------------
  771|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  772|    420|          --search;
  773|    420|        }
  774|    596|      }
  775|    938|      if (!writeXmpFromPacket() &&
  ------------------
  |  Branch (775:11): [True: 862, False: 76]
  ------------------
  776|    862|          XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting) > 1) {
  ------------------
  |  Branch (776:11): [True: 0, False: 862]
  ------------------
  777|      0|#ifndef SUPPRESS_WARNINGS
  778|      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()
  ------------------
  779|      0|#endif
  780|      0|      }
  781|    938|      if (!xmpPacket_.empty()) {
  ------------------
  |  Branch (781:11): [True: 55, False: 883]
  ------------------
  782|     55|        std::array<byte, 33> tmpBuf;
  783|       |        // Write APP1 marker, size of APP1 field, XMP id and XMP packet
  784|     55|        tmpBuf[0] = 0xff;
  785|     55|        tmpBuf[1] = app1_;
  786|       |
  787|     55|        if (xmpPacket_.size() > 0xffff - 31)
  ------------------
  |  Branch (787:13): [True: 0, False: 55]
  ------------------
  788|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "XMP");
  789|     55|        us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(xmpPacket_.size() + 31), bigEndian);
  790|     55|        std::copy(xmpId_.begin(), xmpId_.end(), tmpBuf.begin() + 4);
  791|     55|        if (outIo.write(tmpBuf.data(), 33) != 33)
  ------------------
  |  Branch (791:13): [True: 0, False: 55]
  ------------------
  792|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  793|       |
  794|       |        // Write new XMP packet
  795|     55|        if (outIo.write(reinterpret_cast<const byte*>(xmpPacket_.data()), xmpPacket_.size()) != xmpPacket_.size())
  ------------------
  |  Branch (795:13): [True: 0, False: 55]
  ------------------
  796|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  797|     55|        if (outIo.error())
  ------------------
  |  Branch (797:13): [True: 0, False: 55]
  ------------------
  798|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  799|     55|        --search;
  800|     55|      }
  801|       |
  802|    938|      if (iccProfileDefined()) {
  ------------------
  |  Branch (802:11): [True: 37, False: 901]
  ------------------
  803|     37|        std::array<byte, 4> tmpBuf;
  804|       |        // Write APP2 marker, size of APP2 field, and IccProfile
  805|       |        // See comments in readMetadata() about the ICC embedding specification
  806|     37|        tmpBuf[0] = 0xff;
  807|     37|        tmpBuf[1] = app2_;
  808|       |
  809|     37|        const size_t chunk_size = (256 * 256) - 40;  // leave bytes for marker, header and padding
  810|     37|        size_t size = iccProfile_.size();
  811|     37|        if (size >= 255 * chunk_size)
  ------------------
  |  Branch (811:13): [True: 0, False: 37]
  ------------------
  812|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "IccProfile");
  813|     37|        const size_t chunks = 1 + ((size - 1) / chunk_size);
  814|     74|        for (size_t chunk = 0; chunk < chunks; chunk++) {
  ------------------
  |  Branch (814:32): [True: 37, False: 37]
  ------------------
  815|     37|          auto bytes = std::min<size_t>(size, chunk_size);  // bytes to write
  816|     37|          size -= bytes;
  817|       |
  818|       |          // write JPEG marker (2 bytes)
  819|     37|          if (outIo.write(tmpBuf.data(), 2) != 2)
  ------------------
  |  Branch (819:15): [True: 0, False: 37]
  ------------------
  820|      0|            throw Error(ErrorCode::kerImageWriteFailed);  // JPEG Marker
  821|       |          // write length (2 bytes).  length includes the 2 bytes for the length
  822|     37|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(2 + 14 + bytes), bigEndian);
  823|     37|          if (outIo.write(tmpBuf.data() + 2, 2) != 2)
  ------------------
  |  Branch (823:15): [True: 0, False: 37]
  ------------------
  824|      0|            throw Error(ErrorCode::kerImageWriteFailed);  // JPEG Length
  825|       |
  826|       |          // write the ICC_PROFILE header (14 bytes)
  827|     37|          uint8_t pad[2];
  828|     37|          pad[0] = static_cast<uint8_t>(chunk + 1);
  829|     37|          pad[1] = static_cast<uint8_t>(chunks);
  830|     37|          outIo.write(reinterpret_cast<const byte*>(iccId_), 12);
  831|     37|          outIo.write(reinterpret_cast<const byte*>(pad), 2);
  832|     37|          if (outIo.write(iccProfile_.c_data(chunk * chunk_size), bytes) != bytes)
  ------------------
  |  Branch (832:15): [True: 0, False: 37]
  ------------------
  833|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  834|     37|          if (outIo.error())
  ------------------
  |  Branch (834:15): [True: 0, False: 37]
  ------------------
  835|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  836|     37|        }
  837|     37|        --search;
  838|     37|      }
  839|       |
  840|    938|      if (foundCompletePsData || !iptcData_.empty()) {
  ------------------
  |  Branch (840:11): [True: 135, False: 803]
  |  Branch (840:34): [True: 0, False: 803]
  ------------------
  841|       |        // Set the new IPTC IRB, keeps existing IRBs but removes the
  842|       |        // IPTC block if there is no new IPTC data to write
  843|     59|        DataBuf newPsData = Photoshop::setIptcIrb(psBlob.data(), psBlob.size(), iptcData_);
  844|     59|        const size_t maxChunkSize = 0xffff - 16;
  845|     59|        const byte* chunkStart = newPsData.empty() ? nullptr : newPsData.c_data();
  ------------------
  |  Branch (845:34): [True: 2, False: 57]
  ------------------
  846|     59|        const byte* chunkEnd = newPsData.empty() ? nullptr : newPsData.c_data(newPsData.size() - 1);
  ------------------
  |  Branch (846:32): [True: 2, False: 57]
  ------------------
  847|    118|        while (chunkStart < chunkEnd) {
  ------------------
  |  Branch (847:16): [True: 59, False: 59]
  ------------------
  848|       |          // Determine size of next chunk
  849|     59|          size_t chunkSize = (chunkEnd + 1 - chunkStart);
  850|     59|          if (chunkSize > maxChunkSize) {
  ------------------
  |  Branch (850:15): [True: 2, False: 57]
  ------------------
  851|      2|            chunkSize = maxChunkSize;
  852|       |            // Don't break at a valid IRB boundary
  853|      2|            const auto writtenSize = chunkStart - newPsData.c_data();
  854|      2|            if (Photoshop::valid(newPsData.c_data(), writtenSize + chunkSize)) {
  ------------------
  |  Branch (854:17): [True: 0, False: 2]
  ------------------
  855|       |              // Since an IRB has minimum size 12,
  856|       |              // (chunkSize - 8) can't be also a IRB boundary
  857|      0|              chunkSize -= 8;
  858|      0|            }
  859|      2|          }
  860|       |
  861|       |          // Write APP13 marker, chunk size, and ps3Id
  862|     59|          std::array<byte, 18> tmpBuf;
  863|     59|          tmpBuf[0] = 0xff;
  864|     59|          tmpBuf[1] = app13_;
  865|     59|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(chunkSize + 16), bigEndian);
  866|     59|          std::copy_n(Photoshop::ps3Id_, 14, tmpBuf.begin() + 4);
  867|     59|          if (outIo.write(tmpBuf.data(), 18) != 18)
  ------------------
  |  Branch (867:15): [True: 0, False: 59]
  ------------------
  868|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  869|     59|          if (outIo.error())
  ------------------
  |  Branch (869:15): [True: 0, False: 59]
  ------------------
  870|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  871|       |
  872|       |          // Write next chunk of the Photoshop IRB data buffer
  873|     59|          if (outIo.write(chunkStart, chunkSize) != chunkSize)
  ------------------
  |  Branch (873:15): [True: 0, False: 59]
  ------------------
  874|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  875|     59|          if (outIo.error())
  ------------------
  |  Branch (875:15): [True: 0, False: 59]
  ------------------
  876|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  877|       |
  878|     59|          chunkStart += chunkSize;
  879|     59|        }
  880|     59|        --search;
  881|     59|      }
  882|    938|    }
  883|  43.5k|    if (comPos == count) {
  ------------------
  |  Branch (883:9): [True: 862, False: 42.7k]
  ------------------
  884|    862|      if (!comment_.empty()) {
  ------------------
  |  Branch (884:11): [True: 115, False: 747]
  ------------------
  885|    115|        std::array<byte, 4> tmpBuf;
  886|       |        // Write COM marker, size of comment, and string
  887|    115|        tmpBuf[0] = 0xff;
  888|    115|        tmpBuf[1] = com_;
  889|       |
  890|    115|        if (comment_.length() > 0xffff - 3)
  ------------------
  |  Branch (890:13): [True: 0, False: 115]
  ------------------
  891|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "JPEG comment");
  892|    115|        us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(comment_.length() + 3), bigEndian);
  893|       |
  894|    115|        if (outIo.write(tmpBuf.data(), 4) != 4)
  ------------------
  |  Branch (894:13): [True: 0, False: 115]
  ------------------
  895|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  896|    115|        if (outIo.write(reinterpret_cast<byte*>(comment_.data()), comment_.length()) != comment_.length())
  ------------------
  |  Branch (896:13): [True: 0, False: 115]
  ------------------
  897|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  898|    115|        if (outIo.putb(0) == EOF)
  ------------------
  |  Branch (898:13): [True: 0, False: 115]
  ------------------
  899|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  900|    115|        if (outIo.error())
  ------------------
  |  Branch (900:13): [True: 0, False: 115]
  ------------------
  901|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  902|    115|        --search;
  903|    115|      }
  904|    862|      --search;
  905|    862|    }
  906|  43.5k|    if (marker == eoi_) {
  ------------------
  |  Branch (906:9): [True: 588, False: 42.9k]
  ------------------
  907|    588|      break;
  908|    588|    }
  909|  42.9k|    if (skipApp1Exif == count || skipApp1Xmp == count ||
  ------------------
  |  Branch (909:9): [True: 537, False: 42.4k]
  |  Branch (909:9): [True: 21.0k, False: 21.9k]
  |  Branch (909:34): [True: 94, False: 42.3k]
  ------------------
  910|  42.3k|        std::find(skipApp13Ps3.begin(), skipApp13Ps3.end(), count) != skipApp13Ps3.end() ||
  ------------------
  |  Branch (910:9): [True: 18.8k, False: 23.4k]
  ------------------
  911|  23.4k|        std::find(skipApp2Icc.begin(), skipApp2Icc.end(), count) != skipApp2Icc.end() || skipCom == count) {
  ------------------
  |  Branch (911:9): [True: 1.46k, False: 22.0k]
  |  Branch (911:90): [True: 119, False: 21.9k]
  ------------------
  912|  21.0k|      --search;
  913|  21.9k|    } else {
  914|  21.9k|      std::array<byte, 2> tmpBuf;
  915|       |      // Write marker and a copy of the segment.
  916|  21.9k|      tmpBuf[0] = 0xff;
  917|  21.9k|      tmpBuf[1] = marker;
  918|  21.9k|      if (outIo.write(tmpBuf.data(), 2) != 2)
  ------------------
  |  Branch (918:11): [True: 0, False: 21.9k]
  ------------------
  919|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  920|  21.9k|      if (outIo.write(buf.c_data(), buf.size()) != buf.size())
  ------------------
  |  Branch (920:11): [True: 0, False: 21.9k]
  ------------------
  921|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  922|  21.9k|      if (outIo.error())
  ------------------
  |  Branch (922:11): [True: 0, False: 21.9k]
  ------------------
  923|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  924|  21.9k|    }
  925|       |
  926|       |    // Next marker
  927|  42.9k|    marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  928|  42.9k|    ++count;
  929|  42.9k|  }
  930|       |
  931|       |  // Populate the fake data, only make sense for remoteio, httpio and sshio.
  932|       |  // it avoids allocating memory for parts of the file that contain image-date.
  933|    995|  io_->populateFakeData();
  934|       |
  935|       |  // Write the final marker, then copy rest of the Io.
  936|    995|  byte tmpBuf[2];
  937|    995|  tmpBuf[0] = 0xff;
  938|    995|  tmpBuf[1] = marker;
  939|    995|  if (outIo.write(tmpBuf, 2) != 2)
  ------------------
  |  Branch (939:7): [True: 0, False: 995]
  ------------------
  940|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  941|       |
  942|    995|  DataBuf buf(4096);
  943|    995|  size_t readSize = io_->read(buf.data(), buf.size());
  944|  1.62k|  while (readSize != 0) {
  ------------------
  |  Branch (944:10): [True: 625, False: 995]
  ------------------
  945|    625|    if (outIo.write(buf.c_data(), readSize) != readSize)
  ------------------
  |  Branch (945:9): [True: 0, False: 625]
  ------------------
  946|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  947|    625|    readSize = io_->read(buf.data(), buf.size());
  948|    625|  }
  949|    995|  if (outIo.error())
  ------------------
  |  Branch (949:7): [True: 0, False: 995]
  ------------------
  950|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  951|       |
  952|    995|}  // JpegBase::doWriteMetadata
_ZN5Exiv29JpegImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEERKNS_15ImageCtorParamsE:
  971|  1.79k|    JpegBase(ImageType::jpeg, std::move(io), params, blank_, sizeof(blank_)) {
  972|  1.79k|}
_ZNK5Exiv29JpegImage11writeHeaderERNS_7BasicIoE:
  978|  1.08k|int JpegImage::writeHeader(BasicIo& outIo) const {
  979|       |  // Jpeg header
  980|  1.08k|  byte tmpBuf[2];
  981|  1.08k|  tmpBuf[0] = 0xff;
  982|  1.08k|  tmpBuf[1] = soi_;
  983|  1.08k|  if (outIo.write(tmpBuf, 2) != 2)
  ------------------
  |  Branch (983:7): [True: 0, False: 1.08k]
  ------------------
  984|      0|    return 4;
  985|  1.08k|  if (outIo.error())
  ------------------
  |  Branch (985:7): [True: 0, False: 1.08k]
  ------------------
  986|      0|    return 4;
  987|  1.08k|  return 0;
  988|  1.08k|}
_ZNK5Exiv29JpegImage10isThisTypeERNS_7BasicIoEb:
  990|  11.5k|bool JpegImage::isThisType(BasicIo& iIo, bool advance) const {
  991|  11.5k|  return isJpegType(iIo, advance);
  992|  11.5k|}
_ZN5Exiv215newJpegInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEERKNS_15ImageCtorParamsE:
  994|  1.68k|Image::UniquePtr newJpegInstance(BasicIo::UniquePtr io, const ImageCtorParams& params) {
  995|  1.68k|  auto image = std::make_unique<JpegImage>(std::move(io), params);
  996|  1.68k|  if (!image->good()) {
  ------------------
  |  Branch (996:7): [True: 0, False: 1.68k]
  ------------------
  997|      0|    return nullptr;
  998|      0|  }
  999|  1.68k|  return image;
 1000|  1.68k|}
_ZN5Exiv210isJpegTypeERNS_7BasicIoEb:
 1002|  46.8k|bool isJpegType(BasicIo& iIo, bool advance) {
 1003|  46.8k|  bool result = true;
 1004|  46.8k|  byte tmpBuf[2];
 1005|  46.8k|  iIo.read(tmpBuf, 2);
 1006|  46.8k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (1006:7): [True: 0, False: 46.8k]
  |  Branch (1006:22): [True: 10, False: 46.8k]
  ------------------
 1007|     10|    return false;
 1008|       |
 1009|  46.8k|  if (0xff != tmpBuf[0] || soi_ != tmpBuf[1]) {
  ------------------
  |  Branch (1009:7): [True: 31.8k, False: 14.9k]
  |  Branch (1009:28): [True: 129, False: 14.8k]
  ------------------
 1010|  32.0k|    result = false;
 1011|  32.0k|  }
 1012|  46.8k|  if (!advance || !result)
  ------------------
  |  Branch (1012:7): [True: 43.1k, False: 3.74k]
  |  Branch (1012:19): [True: 106, False: 3.64k]
  ------------------
 1013|  43.2k|    iIo.seek(-2, BasicIo::cur);
 1014|  46.8k|  return result;
 1015|  46.8k|}
_ZN5Exiv28ExvImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEERKNS_15ImageCtorParamsE:
 1018|     32|    JpegBase(ImageType::exv, std::move(io), params, blank_, sizeof(blank_)) {
 1019|     32|}
_ZNK5Exiv28ExvImage10isThisTypeERNS_7BasicIoEb:
 1036|     34|bool ExvImage::isThisType(BasicIo& iIo, bool advance) const {
 1037|     34|  return isExvType(iIo, advance);
 1038|     34|}
_ZN5Exiv214newExvInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEERKNS_15ImageCtorParamsE:
 1040|     32|Image::UniquePtr newExvInstance(BasicIo::UniquePtr io, const ImageCtorParams& params) {
 1041|     32|  auto image = std::make_unique<ExvImage>(std::move(io), params);
 1042|     32|  if (!image->good())
  ------------------
  |  Branch (1042:7): [True: 0, False: 32]
  ------------------
 1043|      0|    return nullptr;
 1044|     32|  return image;
 1045|     32|}
_ZN5Exiv29isExvTypeERNS_7BasicIoEb:
 1047|  31.9k|bool isExvType(BasicIo& iIo, bool advance) {
 1048|  31.9k|  bool result = true;
 1049|  31.9k|  byte tmpBuf[7];
 1050|  31.9k|  iIo.read(tmpBuf, 7);
 1051|  31.9k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (1051:7): [True: 0, False: 31.9k]
  |  Branch (1051:22): [True: 62, False: 31.9k]
  ------------------
 1052|     62|    return false;
 1053|       |
 1054|  31.9k|  if (0xff != tmpBuf[0] || 0x01 != tmpBuf[1] || memcmp(tmpBuf + 2, ExvImage::exiv2Id_, 5) != 0) {
  ------------------
  |  Branch (1054:7): [True: 31.7k, False: 162]
  |  Branch (1054:28): [True: 54, False: 108]
  |  Branch (1054:49): [True: 10, False: 98]
  ------------------
 1055|  31.8k|    result = false;
 1056|  31.8k|  }
 1057|  31.9k|  if (!advance || !result)
  ------------------
  |  Branch (1057:7): [True: 31.9k, False: 32]
  |  Branch (1057:19): [True: 0, False: 32]
  ------------------
 1058|  31.9k|    iIo.seek(-7, BasicIo::cur);
 1059|  31.9k|  return result;
 1060|  31.9k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_115readSegmentSizeEhRNS_7BasicIoE:
  103|   300k|std::pair<std::array<byte, 2>, uint16_t> readSegmentSize(const byte marker, BasicIo& io) {
  104|   300k|  std::array<byte, 2> buf{0, 0};  // 2-byte buffer for reading the size.
  105|   300k|  uint16_t size{0};               // Size of the segment, including the 2-byte size field
  106|   300k|  if (markerHasLength(marker)) {
  ------------------
  |  Branch (106:7): [True: 262k, False: 37.4k]
  ------------------
  107|   262k|    io.readOrThrow(buf.data(), buf.size(), ErrorCode::kerFailedToReadImageData);
  108|   262k|    size = getUShort(buf.data(), bigEndian);
  109|   262k|    enforce(size >= 2, ErrorCode::kerFailedToReadImageData);
  110|   262k|  }
  111|   300k|  return {buf, size};
  112|   300k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_18inRange2Eiiiii:
   91|  76.6k|constexpr bool inRange2(int value, int lo1, int hi1, int lo2, int hi2) {
   92|  76.6k|  return inRange(lo1, value, hi1) || inRange(lo2, value, hi2);
  ------------------
  |  Branch (92:10): [True: 140, False: 76.4k]
  |  Branch (92:38): [True: 292, False: 76.1k]
  ------------------
   93|  76.6k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_17inRangeEiii:
   87|   153k|constexpr bool inRange(int lo, int value, int hi) {
   88|   153k|  return lo <= value && value <= hi;
  ------------------
  |  Branch (88:10): [True: 149k, False: 3.19k]
  |  Branch (88:25): [True: 432, False: 149k]
  ------------------
   89|   153k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_115markerHasLengthEh:
   98|   359k|bool markerHasLength(byte m) {
   99|   359k|  bool markerWithoutLength = m >= rst1_ && m <= eoi_;
  ------------------
  |  Branch (99:30): [True: 336k, False: 22.8k]
  |  Branch (99:44): [True: 47.7k, False: 288k]
  ------------------
  100|   359k|  return !markerWithoutLength;
  101|   359k|}

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

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

_ZN5Exiv213MatroskaVideoC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEERKNS_15ImageCtorParamsE:
  600|  1.39k|    Image(ImageType::mkv, mdNone, std::move(io), params) {
  601|  1.39k|}  // MatroskaVideo::MatroskaVideo
_ZNK5Exiv213MatroskaVideo8mimeTypeEv:
  603|  1.39k|std::string MatroskaVideo::mimeType() const {
  604|  1.39k|  return "video/matroska";
  605|  1.39k|}
_ZN5Exiv213MatroskaVideo12readMetadataEv:
  610|  1.39k|void MatroskaVideo::readMetadata() {
  611|  1.39k|  if (io_->open() != 0)
  ------------------
  |  Branch (611:7): [True: 0, False: 1.39k]
  ------------------
  612|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  613|       |
  614|       |  // Ensure that this is the correct image type
  615|  1.39k|  if (!isMkvType(*io_, false)) {
  ------------------
  |  Branch (615:7): [True: 0, False: 1.39k]
  ------------------
  616|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (616:9): [True: 0, False: 0]
  |  Branch (616:25): [True: 0, False: 0]
  ------------------
  617|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  618|      0|    throw Error(ErrorCode::kerNotAnImage, "Matroska");
  619|      0|  }
  620|       |
  621|  1.39k|  IoCloser closer(*io_);
  622|  1.39k|  clearMetadata();
  623|  1.39k|  continueTraversing_ = true;
  624|  1.39k|  height_ = width_ = 1;
  625|       |
  626|  1.39k|  xmpData_["Xmp.video.FileSize"] = io_->size() / bytesMB;
  627|  1.39k|  xmpData_["Xmp.video.MimeType"] = mimeType();
  628|       |
  629|  50.7k|  while (continueTraversing_)
  ------------------
  |  Branch (629:10): [True: 49.3k, False: 1.39k]
  ------------------
  630|  49.3k|    decodeBlock();
  631|       |
  632|  1.39k|  xmpData_["Xmp.video.AspectRatio"] = getAspectRatio(width_, height_);
  633|  1.39k|}
_ZN5Exiv213MatroskaVideo11decodeBlockEv:
  635|  49.3k|void MatroskaVideo::decodeBlock() {
  636|  49.3k|  byte buf[8];
  637|  49.3k|  io_->read(buf, 1);
  638|       |
  639|  49.3k|  if (io_->eof()) {
  ------------------
  |  Branch (639:7): [True: 141, False: 49.2k]
  ------------------
  640|    141|    continueTraversing_ = false;
  641|    141|    return;
  642|    141|  }
  643|       |
  644|  49.2k|  uint32_t block_size = findBlockSize(buf[0]);  // 0-8
  645|  49.2k|  if (block_size > 0)
  ------------------
  |  Branch (645:7): [True: 49.0k, False: 215]
  ------------------
  646|  49.0k|    io_->readOrThrow(buf + 1, block_size - 1, ErrorCode::kerCorruptedMetadata);
  647|       |
  648|  49.2k|  auto tag_id = returnTagValue(buf, block_size);
  649|  49.2k|  const MatroskaTag* tag = Exiv2::find(matroskaTags, tag_id);
  650|       |
  651|  49.2k|  if (!tag) {
  ------------------
  |  Branch (651:7): [True: 688, False: 48.5k]
  ------------------
  652|    688|    continueTraversing_ = false;
  653|    688|    return;
  654|    688|  }
  655|       |
  656|       |  // tag->dump(std::cout);
  657|       |
  658|  48.5k|  if (tag->_id == Cues || tag->_id == Cluster) {
  ------------------
  |  Branch (658:7): [True: 260, False: 48.2k]
  |  Branch (658:27): [True: 1, False: 48.2k]
  ------------------
  659|      1|    continueTraversing_ = false;
  660|      1|    return;
  661|      1|  }
  662|       |
  663|  48.5k|  io_->readOrThrow(buf, 1, ErrorCode::kerCorruptedMetadata);
  664|  48.5k|  block_size = findBlockSize(buf[0]);  // 0-8
  665|       |
  666|  48.5k|  if (block_size > 0)
  ------------------
  |  Branch (666:7): [True: 48.1k, False: 338]
  ------------------
  667|  48.1k|    io_->readOrThrow(buf + 1, block_size - 1, ErrorCode::kerCorruptedMetadata);
  668|  48.5k|  size_t size = returnTagValue(buf, block_size);
  669|       |
  670|  48.5k|  if (tag->isComposite() && !tag->isSkipped())
  ------------------
  |  Branch (670:7): [True: 28.4k, False: 20.0k]
  |  Branch (670:29): [True: 28.4k, False: 0]
  ------------------
  671|  28.4k|    return;
  672|       |
  673|  20.0k|  const size_t bufMaxSize = 200;
  674|       |
  675|  20.0k|#ifndef SUPPRESS_WARNINGS
  676|  20.0k|  if (!tag->isSkipped() && size > bufMaxSize) {
  ------------------
  |  Branch (676:7): [True: 18.1k, False: 1.90k]
  |  Branch (676:28): [True: 51, False: 18.0k]
  ------------------
  677|     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()
  ------------------
  678|      0|                << bufMaxSize << ": ignoring it.\n";
  679|     51|  }
  680|  20.0k|#endif
  681|  20.0k|  if (tag->isSkipped() || size > bufMaxSize) {
  ------------------
  |  Branch (681:7): [True: 1.90k, False: 18.1k]
  |  Branch (681:27): [True: 51, False: 18.0k]
  ------------------
  682|  1.60k|    io_->seek(size, BasicIo::cur);
  683|  1.60k|    return;
  684|  1.60k|  }
  685|       |
  686|  18.4k|  DataBuf buf2(bufMaxSize + 1);
  687|  18.4k|  io_->readOrThrow(buf2.data(), size, ErrorCode::kerCorruptedMetadata);
  688|  18.4k|  switch (tag->_type) {
  689|  3.50k|    case InternalField:
  ------------------
  |  Branch (689:5): [True: 3.50k, False: 14.9k]
  ------------------
  690|  3.50k|      decodeInternalTags(tag, buf2.data());
  691|  3.50k|      break;
  692|  1.24k|    case String:
  ------------------
  |  Branch (692:5): [True: 1.24k, False: 17.2k]
  ------------------
  693|  1.24k|    case Utf8:
  ------------------
  |  Branch (693:5): [True: 0, False: 18.4k]
  ------------------
  694|  1.24k|      decodeStringTags(tag, buf2.data());
  695|  1.24k|      break;
  696|  4.07k|    case Integer:
  ------------------
  |  Branch (696:5): [True: 4.07k, False: 14.3k]
  ------------------
  697|  5.26k|    case UInteger:
  ------------------
  |  Branch (697:5): [True: 1.19k, False: 17.2k]
  ------------------
  698|  5.26k|      decodeIntegerTags(tag, buf2.data());
  699|  5.26k|      break;
  700|  6.21k|    case Boolean:
  ------------------
  |  Branch (700:5): [True: 6.21k, False: 12.2k]
  ------------------
  701|  6.21k|      decodeBooleanTags(tag, buf2.data());
  702|  6.21k|      break;
  703|    786|    case Date:
  ------------------
  |  Branch (703:5): [True: 786, False: 17.6k]
  ------------------
  704|    786|      decodeDateTags(tag, buf2.data(), size);
  705|    786|      break;
  706|    907|    case Float:
  ------------------
  |  Branch (706:5): [True: 907, False: 17.5k]
  ------------------
  707|    907|      decodeFloatTags(tag, buf2.data());
  708|    907|      break;
  709|      0|    case Binary:
  ------------------
  |  Branch (709:5): [True: 0, False: 18.4k]
  ------------------
  710|      0|      break;
  711|      0|    case Master:
  ------------------
  |  Branch (711:5): [True: 0, False: 18.4k]
  ------------------
  712|      0|      break;
  713|      0|    default:
  ------------------
  |  Branch (713:5): [True: 0, False: 18.4k]
  ------------------
  714|      0|      break;
  715|  18.4k|  }
  716|  18.4k|}  // MatroskaVideo::decodeBlock
_ZN5Exiv213MatroskaVideo18decodeInternalTagsEPKNS_8Internal11MatroskaTagEPKh:
  718|  3.50k|void MatroskaVideo::decodeInternalTags(const MatroskaTag* tag, const byte* buf) {
  719|  3.50k|  uint64_t key = getULongLong(buf, bigEndian);
  720|  3.50k|  if (!key)
  ------------------
  |  Branch (720:7): [True: 41, False: 3.46k]
  ------------------
  721|     41|    return;
  722|       |
  723|  3.46k|  auto internalMt = [=]() -> const MatroskaTag* {
  724|  3.46k|    switch (tag->_id) {
  725|  3.46k|      case Xmp_video_VideoScanTpye:
  726|  3.46k|        return Exiv2::find(videoScanType, key);
  727|  3.46k|      case Xmp_audio_ChannelType:
  728|  3.46k|        return Exiv2::find(audioChannels, key);
  729|  3.46k|      case Xmp_video_ContentCompressAlgo:
  730|  3.46k|        return Exiv2::find(compressionAlgorithm, key);
  731|  3.46k|      case Xmp_video_ContentEncryptAlgo:
  732|  3.46k|        return Exiv2::find(encryptionAlgorithm, key);
  733|  3.46k|      case Xmp_video_ContentSignAlgo_1:
  734|  3.46k|      case Xmp_video_ContentSignAlgo_2:
  735|  3.46k|        return Exiv2::find(contentSignatureAlgorithm, key);
  736|  3.46k|      case Xmp_video_ContentSignHashAlgo_1:
  737|  3.46k|      case Xmp_video_ContentSignHashAlgo_2:
  738|  3.46k|        return Exiv2::find(contentSignatureHashAlgorithm, key);
  739|  3.46k|      case Xmp_video_ContentEncodingType:
  740|  3.46k|        return Exiv2::find(encodingType, key);
  741|  3.46k|      case Xmp_video_DisplayUnit:
  742|  3.46k|        return Exiv2::find(displayUnit, key);
  743|  3.46k|      case Xmp_video_AspectRatioType:
  744|  3.46k|        return Exiv2::find(aspectRatioType, key);
  745|  3.46k|      case Xmp_video_PhysicalEquivalent:
  746|  3.46k|        return Exiv2::find(chapterPhysicalEquivalent, key);
  747|  3.46k|      case Xmp_video_TranslateCodec:
  748|  3.46k|        return Exiv2::find(chapterTranslateCodec, key);
  749|  3.46k|      case Video_Audio_CodecID:
  750|  3.46k|        return Exiv2::find(trackCodec, key);
  751|  3.46k|      case Video_Audio_CodecName:
  752|  3.46k|        return Exiv2::find(codecInfo, key);
  753|  3.46k|      case CodecDownloadURL:
  754|  3.46k|      case CodecInfoURL:
  755|  3.46k|        return Exiv2::find(codecDownloadUrl, key);
  756|  3.46k|    }
  757|  3.46k|    return nullptr;
  758|  3.46k|  }();
  759|  3.46k|  if (internalMt) {
  ------------------
  |  Branch (759:7): [True: 1.30k, False: 2.16k]
  ------------------
  760|  1.30k|    xmpData_[tag->_label] = internalMt->_label;
  761|  2.16k|  } else {
  762|  2.16k|    xmpData_[tag->_label] = key;
  763|  2.16k|  }
  764|  3.46k|}
_ZN5Exiv213MatroskaVideo16decodeStringTagsEPKNS_8Internal11MatroskaTagEPKh:
  766|  1.24k|void MatroskaVideo::decodeStringTags(const MatroskaTag* tag, const byte* buf) {
  767|  1.24k|  if (tag->_id == TrackNumber) {
  ------------------
  |  Branch (767:7): [True: 84, False: 1.16k]
  ------------------
  768|     84|    track_count_++;
  769|     84|    xmpData_[tag->_label] = track_count_;
  770|  1.16k|  } else {
  771|  1.16k|    xmpData_[tag->_label] = buf;
  772|  1.16k|  }
  773|  1.24k|}
_ZN5Exiv213MatroskaVideo17decodeIntegerTagsEPKNS_8Internal11MatroskaTagEPKh:
  775|  5.26k|void MatroskaVideo::decodeIntegerTags(const MatroskaTag* tag, const byte* buf) {
  776|  5.26k|  uint64_t value = getULongLong(buf, bigEndian);
  777|  5.26k|  if (!value)
  ------------------
  |  Branch (777:7): [True: 4.09k, False: 1.17k]
  ------------------
  778|  4.09k|    return;
  779|       |
  780|  1.17k|  if (tag->_id == Xmp_video_Width_1 || tag->_id == Xmp_video_Width_2)
  ------------------
  |  Branch (780:7): [True: 621, False: 550]
  |  Branch (780:40): [True: 123, False: 427]
  ------------------
  781|    744|    width_ = value;
  782|  1.17k|  if (tag->_id == Xmp_video_Height_1 || tag->_id == Xmp_video_Height_2)
  ------------------
  |  Branch (782:7): [True: 290, False: 881]
  |  Branch (782:41): [True: 50, False: 831]
  ------------------
  783|    340|    height_ = value;
  784|  1.17k|  xmpData_[tag->_label] = value;
  785|  1.17k|}
_ZN5Exiv213MatroskaVideo17decodeBooleanTagsEPKNS_8Internal11MatroskaTagEPKh:
  787|  6.21k|void MatroskaVideo::decodeBooleanTags(const MatroskaTag* tag, const byte* buf) {
  788|  6.21k|  const MatroskaTag* internalMt = nullptr;
  789|  6.21k|  uint64_t key = getULongLong(buf, bigEndian);
  790|  6.21k|  if (!key)
  ------------------
  |  Branch (790:7): [True: 1.12k, False: 5.09k]
  ------------------
  791|  1.12k|    return;
  792|       |
  793|  5.09k|  switch (tag->_id) {
  794|  1.83k|    case TrackType:  // this tags is used internally only to deduce the type of track (video or audio)
  ------------------
  |  Branch (794:5): [True: 1.83k, False: 3.26k]
  ------------------
  795|  1.83k|      if (auto f = Exiv2::find(matroskaTrackType, key)) {
  ------------------
  |  Branch (795:16): [True: 212, False: 1.62k]
  ------------------
  796|    212|        stream_ = f->_id;
  797|    212|      }
  798|  1.83k|      break;
  799|    113|    case TrackUsed:
  ------------------
  |  Branch (799:5): [True: 113, False: 4.98k]
  ------------------
  800|    113|      internalMt = Exiv2::find(trackEnable, key);
  801|    113|      break;
  802|    581|    case TrackDefault:
  ------------------
  |  Branch (802:5): [True: 581, False: 4.51k]
  ------------------
  803|    581|      internalMt = Exiv2::find(defaultOn, key);
  804|    581|      break;
  805|  1.35k|    case TrackForced:
  ------------------
  |  Branch (805:5): [True: 1.35k, False: 3.74k]
  ------------------
  806|  1.35k|      internalMt = Exiv2::find(trackForced, key);
  807|  1.35k|      break;
  808|    360|    case TrackLacing:
  ------------------
  |  Branch (808:5): [True: 360, False: 4.73k]
  ------------------
  809|    360|      internalMt = Exiv2::find(trackLacing, key);
  810|    360|      break;
  811|    524|    case CodecDecodeAll:
  ------------------
  |  Branch (811:5): [True: 524, False: 4.57k]
  ------------------
  812|    524|      internalMt = Exiv2::find(codecDecodeAll, key);
  813|    524|      break;
  814|    313|    case CodecSettings:
  ------------------
  |  Branch (814:5): [True: 313, False: 4.78k]
  ------------------
  815|    313|      internalMt = Exiv2::find(codecSettings, key);
  816|    313|      break;
  817|     19|    case Xmp_video_TagDefault:
  ------------------
  |  Branch (817:5): [True: 19, False: 5.07k]
  ------------------
  818|     19|      internalMt = tag;
  819|     19|      break;
  820|      0|    default:
  ------------------
  |  Branch (820:5): [True: 0, False: 5.09k]
  ------------------
  821|      0|      break;
  822|  5.09k|  }
  823|       |
  824|  5.09k|  if (internalMt) {
  ------------------
  |  Branch (824:7): [True: 1.30k, False: 3.79k]
  ------------------
  825|  1.30k|    xmpData_[internalMt->_label] = "Yes";
  826|  1.30k|  }
  827|  5.09k|}
_ZN5Exiv213MatroskaVideo14decodeDateTagsEPKNS_8Internal11MatroskaTagEPKhm:
  829|    786|void MatroskaVideo::decodeDateTags(const MatroskaTag* tag, const byte* buf, size_t size) {
  830|    786|  int64_t duration_in_ms = 0;
  831|    786|  uint64_t value;
  832|    786|  switch (tag->_id) {
  833|    200|    case Xmp_video_Duration:
  ------------------
  |  Branch (833:5): [True: 200, False: 586]
  ------------------
  834|    200|      if (size <= 4) {
  ------------------
  |  Branch (834:11): [True: 48, False: 152]
  ------------------
  835|     48|        duration_in_ms = std::llround(getFloat(buf, bigEndian) * time_code_scale_ * 1000.0);
  836|    152|      } else {
  837|    152|        duration_in_ms = std::llround(getDouble(buf, bigEndian) * time_code_scale_ * 1000);
  838|    152|      }
  839|    200|      xmpData_[tag->_label] = duration_in_ms;
  840|    200|      break;
  841|    505|    case Xmp_video_DateUTC:
  ------------------
  |  Branch (841:5): [True: 505, False: 281]
  ------------------
  842|    505|      value = getULongLong(buf, bigEndian);
  843|    505|      if (!value)
  ------------------
  |  Branch (843:11): [True: 188, False: 317]
  ------------------
  844|    188|        return;
  845|    317|      duration_in_ms = value / 1000000000;
  846|    317|      xmpData_[tag->_label] = duration_in_ms;
  847|    317|      break;
  848|       |
  849|     81|    case TimecodeScale:
  ------------------
  |  Branch (849:5): [True: 81, False: 705]
  ------------------
  850|     81|      value = getULongLong(buf, bigEndian);
  851|     81|      if (!value)
  ------------------
  |  Branch (851:11): [True: 6, False: 75]
  ------------------
  852|      6|        return;
  853|     75|      time_code_scale_ = static_cast<double>(value) / static_cast<double>(1000000000);
  854|     75|      xmpData_[tag->_label] = time_code_scale_;
  855|     75|      break;
  856|      0|    default:
  ------------------
  |  Branch (856:5): [True: 0, False: 786]
  ------------------
  857|      0|      break;
  858|    786|  }
  859|    786|}
_ZN5Exiv213MatroskaVideo15decodeFloatTagsEPKNS_8Internal11MatroskaTagEPKh:
  861|    907|void MatroskaVideo::decodeFloatTags(const MatroskaTag* tag, const byte* buf) {
  862|    907|  xmpData_[tag->_label] = getFloat(buf, bigEndian);
  863|       |
  864|    907|  switch (tag->_id) {
  865|    221|    case Xmp_audio_SampleRate:
  ------------------
  |  Branch (865:5): [True: 221, False: 686]
  ------------------
  866|    294|    case Xmp_audio_OutputSampleRate:
  ------------------
  |  Branch (866:5): [True: 73, False: 834]
  ------------------
  867|    294|      xmpData_[tag->_label] = getFloat(buf, bigEndian);
  868|    294|      break;
  869|      0|    case VideoFrameRate_DefaultDuration:
  ------------------
  |  Branch (869:5): [True: 0, False: 907]
  ------------------
  870|    613|    case Xmp_video_FrameRate: {
  ------------------
  |  Branch (870:5): [True: 613, False: 294]
  ------------------
  871|    613|      uint64_t key = getULongLong(buf, bigEndian);
  872|    613|      if (!key)
  ------------------
  |  Branch (872:11): [True: 15, False: 598]
  ------------------
  873|     15|        return;
  874|    598|      if (auto internalMt = Exiv2::find(streamRate, key)) {
  ------------------
  |  Branch (874:16): [True: 316, False: 282]
  ------------------
  875|    316|        double frame_rate = 0;
  876|    316|        switch (stream_) {
  877|     72|          case 1:  // video
  ------------------
  |  Branch (877:11): [True: 72, False: 244]
  ------------------
  878|     72|            frame_rate = 1000000000.0 / static_cast<double>(key);
  879|     72|            break;
  880|     16|          case 2:  // audio
  ------------------
  |  Branch (880:11): [True: 16, False: 300]
  ------------------
  881|     16|            frame_rate = static_cast<double>(key) / 1000;
  882|     16|            break;
  883|    228|          default:
  ------------------
  |  Branch (883:11): [True: 228, False: 88]
  ------------------
  884|    228|            break;
  885|    316|        }
  886|    316|        if (std::isgreater(frame_rate, 0.0))
  ------------------
  |  Branch (886:13): [True: 88, False: 228]
  ------------------
  887|     88|          xmpData_[internalMt->_label] = frame_rate;
  888|    316|      } else
  889|    282|        xmpData_[tag->_label] = "Variable Bit Rate";
  890|    598|    } break;
  891|    598|    default:
  ------------------
  |  Branch (891:5): [True: 0, False: 907]
  ------------------
  892|      0|      xmpData_[tag->_label] = getFloat(buf, bigEndian);
  893|      0|      break;
  894|    907|  }
  895|    907|}
_ZN5Exiv213MatroskaVideo13findBlockSizeEh:
  897|  97.4k|uint32_t MatroskaVideo::findBlockSize(byte b) {
  898|  97.4k|  if (b & 128)
  ------------------
  |  Branch (898:7): [True: 81.4k, False: 16.0k]
  ------------------
  899|  81.4k|    return 1;
  900|  16.0k|  if (b & 64)
  ------------------
  |  Branch (900:7): [True: 8.96k, False: 7.07k]
  ------------------
  901|  8.96k|    return 2;
  902|  7.07k|  if (b & 32)
  ------------------
  |  Branch (902:7): [True: 2.36k, False: 4.71k]
  ------------------
  903|  2.36k|    return 3;
  904|  4.71k|  if (b & 16)
  ------------------
  |  Branch (904:7): [True: 2.71k, False: 2.00k]
  ------------------
  905|  2.71k|    return 4;
  906|  2.00k|  if (b & 8)
  ------------------
  |  Branch (906:7): [True: 238, False: 1.76k]
  ------------------
  907|    238|    return 5;
  908|  1.76k|  if (b & 4)
  ------------------
  |  Branch (908:7): [True: 190, False: 1.57k]
  ------------------
  909|    190|    return 6;
  910|  1.57k|  if (b & 2)
  ------------------
  |  Branch (910:7): [True: 786, False: 786]
  ------------------
  911|    786|    return 7;
  912|    786|  if (b & 1)
  ------------------
  |  Branch (912:7): [True: 524, False: 262]
  ------------------
  913|    524|    return 8;
  914|    262|  return 0;
  915|    786|}
_ZN5Exiv214newMkvInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEERKNS_15ImageCtorParamsE:
  917|  1.39k|Image::UniquePtr newMkvInstance(BasicIo::UniquePtr io, const ImageCtorParams& params) {
  918|  1.39k|  auto image = std::make_unique<MatroskaVideo>(std::move(io), params);
  919|  1.39k|  if (!image->good()) {
  ------------------
  |  Branch (919:7): [True: 0, False: 1.39k]
  ------------------
  920|      0|    return nullptr;
  921|      0|  }
  922|  1.39k|  return image;
  923|  1.39k|}
_ZN5Exiv29isMkvTypeERNS_7BasicIoEb:
  925|  9.80k|bool isMkvType(BasicIo& iIo, bool advance) {
  926|  9.80k|  bool result = true;
  927|  9.80k|  byte tmpBuf[4];
  928|  9.80k|  iIo.read(tmpBuf, 4);
  929|       |
  930|  9.80k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (930:7): [True: 0, False: 9.80k]
  |  Branch (930:22): [True: 167, False: 9.63k]
  ------------------
  931|    167|    return false;
  932|       |
  933|  9.63k|  if (0x1a != tmpBuf[0] || 0x45 != tmpBuf[1] || 0xdf != tmpBuf[2] || 0xa3 != tmpBuf[3]) {
  ------------------
  |  Branch (933:7): [True: 5.42k, False: 4.21k]
  |  Branch (933:28): [True: 8, False: 4.20k]
  |  Branch (933:49): [True: 10, False: 4.19k]
  |  Branch (933:70): [True: 13, False: 4.18k]
  ------------------
  934|  5.45k|    result = false;
  935|  5.45k|  }
  936|       |
  937|  9.63k|  if (!advance || !result)
  ------------------
  |  Branch (937:7): [True: 9.63k, False: 0]
  |  Branch (937:19): [True: 0, False: 0]
  ------------------
  938|  9.63k|    iIo.seek(0, BasicIo::beg);
  939|  9.63k|  return result;
  940|  9.80k|}
matroskavideo.cpp:_ZN5Exiv28InternalL14returnTagValueEPKhm:
  582|  97.4k|[[nodiscard]] static size_t returnTagValue(const byte* buf, size_t size) {
  583|  97.4k|  enforce(size > 0 && size <= 8, Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (583:11): [True: 97.1k, False: 262]
  |  Branch (583:23): [True: 97.1k, False: 0]
  ------------------
  584|       |
  585|  97.4k|  size_t b0 = buf[0] & (0xff >> size);
  586|  97.4k|  size_t tag = b0 << ((size - 1) * 8);
  587|   129k|  for (size_t i = 1; i < size; ++i) {
  ------------------
  |  Branch (587:22): [True: 31.9k, False: 97.4k]
  ------------------
  588|  31.9k|    tag |= static_cast<size_t>(buf[i]) << ((size - i - 1) * 8);
  589|  31.9k|  }
  590|       |
  591|  97.4k|  return tag;
  592|  97.4k|}
matroskavideo.cpp:_ZZN5Exiv213MatroskaVideo18decodeInternalTagsEPKNS_8Internal11MatroskaTagEPKhENK3$_0clEv:
  723|  3.46k|  auto internalMt = [=]() -> const MatroskaTag* {
  724|  3.46k|    switch (tag->_id) {
  ------------------
  |  Branch (724:13): [True: 3.46k, False: 0]
  ------------------
  725|    330|      case Xmp_video_VideoScanTpye:
  ------------------
  |  Branch (725:7): [True: 330, False: 3.13k]
  ------------------
  726|    330|        return Exiv2::find(videoScanType, key);
  727|    642|      case Xmp_audio_ChannelType:
  ------------------
  |  Branch (727:7): [True: 642, False: 2.82k]
  ------------------
  728|    642|        return Exiv2::find(audioChannels, key);
  729|    397|      case Xmp_video_ContentCompressAlgo:
  ------------------
  |  Branch (729:7): [True: 397, False: 3.07k]
  ------------------
  730|    397|        return Exiv2::find(compressionAlgorithm, key);
  731|    357|      case Xmp_video_ContentEncryptAlgo:
  ------------------
  |  Branch (731:7): [True: 357, False: 3.11k]
  ------------------
  732|    357|        return Exiv2::find(encryptionAlgorithm, key);
  733|     96|      case Xmp_video_ContentSignAlgo_1:
  ------------------
  |  Branch (733:7): [True: 96, False: 3.37k]
  ------------------
  734|    214|      case Xmp_video_ContentSignAlgo_2:
  ------------------
  |  Branch (734:7): [True: 118, False: 3.35k]
  ------------------
  735|    214|        return Exiv2::find(contentSignatureAlgorithm, key);
  736|     26|      case Xmp_video_ContentSignHashAlgo_1:
  ------------------
  |  Branch (736:7): [True: 26, False: 3.44k]
  ------------------
  737|    206|      case Xmp_video_ContentSignHashAlgo_2:
  ------------------
  |  Branch (737:7): [True: 180, False: 3.28k]
  ------------------
  738|    206|        return Exiv2::find(contentSignatureHashAlgorithm, key);
  739|     29|      case Xmp_video_ContentEncodingType:
  ------------------
  |  Branch (739:7): [True: 29, False: 3.43k]
  ------------------
  740|     29|        return Exiv2::find(encodingType, key);
  741|    377|      case Xmp_video_DisplayUnit:
  ------------------
  |  Branch (741:7): [True: 377, False: 3.09k]
  ------------------
  742|    377|        return Exiv2::find(displayUnit, key);
  743|    191|      case Xmp_video_AspectRatioType:
  ------------------
  |  Branch (743:7): [True: 191, False: 3.27k]
  ------------------
  744|    191|        return Exiv2::find(aspectRatioType, key);
  745|    599|      case Xmp_video_PhysicalEquivalent:
  ------------------
  |  Branch (745:7): [True: 599, False: 2.86k]
  ------------------
  746|    599|        return Exiv2::find(chapterPhysicalEquivalent, key);
  747|     84|      case Xmp_video_TranslateCodec:
  ------------------
  |  Branch (747:7): [True: 84, False: 3.38k]
  ------------------
  748|     84|        return Exiv2::find(chapterTranslateCodec, key);
  749|      0|      case Video_Audio_CodecID:
  ------------------
  |  Branch (749:7): [True: 0, False: 3.46k]
  ------------------
  750|      0|        return Exiv2::find(trackCodec, key);
  751|     25|      case Video_Audio_CodecName:
  ------------------
  |  Branch (751:7): [True: 25, False: 3.44k]
  ------------------
  752|     25|        return Exiv2::find(codecInfo, key);
  753|      7|      case CodecDownloadURL:
  ------------------
  |  Branch (753:7): [True: 7, False: 3.46k]
  ------------------
  754|     17|      case CodecInfoURL:
  ------------------
  |  Branch (754:7): [True: 10, False: 3.45k]
  ------------------
  755|     17|        return Exiv2::find(codecDownloadUrl, key);
  756|  3.46k|    }
  757|      0|    return nullptr;
  758|  3.46k|  }();

_ZN5Exiv23KeyD2Ev:
   11|  68.2M|Key::~Key() = default;
_ZN5Exiv29MetadatumD2Ev:
   17|  45.4M|Metadatum::~Metadatum() = default;
_ZNK5Exiv29Metadatum5printEPKNS_8ExifDataE:
   19|  1.24M|std::string Metadatum::print(const ExifData* pMetadata) const {
   20|  1.24M|  std::ostringstream os;
   21|  1.24M|  write(os, pMetadata);
   22|  1.24M|  return os.str();
   23|  1.24M|}
_ZNK5Exiv29Metadatum8toUint32Em:
   25|  22.2k|uint32_t Metadatum::toUint32(size_t n) const {
   26|  22.2k|  auto i = toInt64(n);
   27|  22.2k|  Internal::enforce(std::numeric_limits<uint32_t>::min() <= i, ErrorCode::kerCorruptedMetadata);
   28|  22.2k|  Internal::enforce(i <= std::numeric_limits<uint32_t>::max(), ErrorCode::kerCorruptedMetadata);
   29|  22.2k|  return static_cast<uint32_t>(i);
   30|  22.2k|}

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

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

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

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

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

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

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

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

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

_ZN5Exiv28Internal18PanasonicMakerNote11print0x000fERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  559|  1.58k|std::ostream& PanasonicMakerNote::print0x000f(std::ostream& os, const Value& value, const ExifData*) {
  560|  1.58k|  if (value.count() < 2 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (560:7): [True: 512, False: 1.07k]
  |  Branch (560:28): [True: 88, False: 988]
  ------------------
  561|    600|    return os << value;
  562|    600|  }
  563|    988|  const auto l0 = value.toInt64(0);
  564|    988|  const auto l1 = value.toInt64(1);
  565|    988|  if (l0 == 0 && l1 == 1)
  ------------------
  |  Branch (565:7): [True: 234, False: 754]
  |  Branch (565:18): [True: 60, False: 174]
  ------------------
  566|     60|    os << _("Spot mode on or 9 area");
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  567|    928|  else if (l0 == 0 && l1 == 16)
  ------------------
  |  Branch (567:12): [True: 174, False: 754]
  |  Branch (567:23): [True: 44, False: 130]
  ------------------
  568|     44|    os << _("Spot mode off or 3-area (high speed)");
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  569|    884|  else if (l0 == 0 && l1 == 23)
  ------------------
  |  Branch (569:12): [True: 130, False: 754]
  |  Branch (569:23): [True: 34, False: 96]
  ------------------
  570|     34|    os << _("23-area");
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  571|    850|  else if (l0 == 0 && l1 == 49)
  ------------------
  |  Branch (571:12): [True: 96, False: 754]
  |  Branch (571:23): [True: 32, False: 64]
  ------------------
  572|     32|    os << _("49-area");
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  573|    818|  else if (l0 == 0 && l1 == 225)
  ------------------
  |  Branch (573:12): [True: 64, False: 754]
  |  Branch (573:23): [True: 18, False: 46]
  ------------------
  574|     18|    os << _("225-area");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  575|    800|  else if (l0 == 1 && l1 == 0)
  ------------------
  |  Branch (575:12): [True: 130, False: 670]
  |  Branch (575:23): [True: 28, False: 102]
  ------------------
  576|     28|    os << _("Spot focusing");
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  577|    772|  else if (l0 == 1 && l1 == 1)
  ------------------
  |  Branch (577:12): [True: 102, False: 670]
  |  Branch (577:23): [True: 36, False: 66]
  ------------------
  578|     36|    os << _("5-area");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  579|    736|  else if (l0 == 16 && l1 == 0)
  ------------------
  |  Branch (579:12): [True: 152, False: 584]
  |  Branch (579:24): [True: 66, False: 86]
  ------------------
  580|     66|    os << _("1-area");
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  581|    670|  else if (l0 == 16 && l1 == 16)
  ------------------
  |  Branch (581:12): [True: 86, False: 584]
  |  Branch (581:24): [True: 66, False: 20]
  ------------------
  582|     66|    os << _("1-area (high speed)");
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  583|    604|  else if (l0 == 32 && l1 == 0)
  ------------------
  |  Branch (583:12): [True: 204, False: 400]
  |  Branch (583:24): [True: 44, False: 160]
  ------------------
  584|     44|    os << _("3-area (auto)");
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  585|    560|  else if (l0 == 32 && l1 == 1)
  ------------------
  |  Branch (585:12): [True: 160, False: 400]
  |  Branch (585:24): [True: 26, False: 134]
  ------------------
  586|     26|    os << _("3-area (left)");
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  587|    534|  else if (l0 == 32 && l1 == 2)
  ------------------
  |  Branch (587:12): [True: 134, False: 400]
  |  Branch (587:24): [True: 62, False: 72]
  ------------------
  588|     62|    os << _("3-area (center)");
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  589|    472|  else if (l0 == 32 && l1 == 3)
  ------------------
  |  Branch (589:12): [True: 72, False: 400]
  |  Branch (589:24): [True: 18, False: 54]
  ------------------
  590|     18|    os << _("3-area (right)");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  591|    454|  else if (l0 == 64 && l1 == 0)
  ------------------
  |  Branch (591:12): [True: 84, False: 370]
  |  Branch (591:24): [True: 70, False: 14]
  ------------------
  592|     70|    os << _("Face Detect");
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  593|    384|  else if (l0 == 128 && l1 == 0)
  ------------------
  |  Branch (593:12): [True: 112, False: 272]
  |  Branch (593:25): [True: 82, False: 30]
  ------------------
  594|     82|    os << _("Spot Focusing 2");
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  595|    302|  else if (l0 == 240 && l1 == 0)
  ------------------
  |  Branch (595:12): [True: 16, False: 286]
  |  Branch (595:25): [True: 14, False: 2]
  ------------------
  596|     14|    os << _("Tracking");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  597|    288|  else
  598|    288|    os << value;
  599|    988|  return os;
  600|  1.58k|}  // PanasonicMakerNote::print0x000f
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0023ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  603|    112|std::ostream& PanasonicMakerNote::print0x0023(std::ostream& os, const Value& value, const ExifData*) {
  604|    112|  return os << stringFormat("{:1}{}", value.toInt64() / 3, _(" EV"));
  ------------------
  |  |   18|    112|#define stringFormat std::format
  ------------------
                return os << stringFormat("{:1}{}", value.toInt64() / 3, _(" EV"));
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  605|    112|}  // PanasonicMakerNote::print0x0023
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0029ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  608|    212|std::ostream& PanasonicMakerNote::print0x0029(std::ostream& os, const Value& value, const ExifData*) {
  609|    212|  auto time = value.toInt64();
  610|    212|  return os << stringFormat("{:02}:{:02}:{:02}.{:02}", time / 360000, (time % 360000) / 6000, (time % 6000) / 100,
  ------------------
  |  |   18|    212|#define stringFormat std::format
  ------------------
  611|    212|                            time % 100);
  612|       |
  613|    212|}  // PanasonicMakerNote::print0x0029
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0033ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  616|    406|std::ostream& PanasonicMakerNote::print0x0033(std::ostream& os, const Value& value, const ExifData*) {
  617|    406|  if (value.toString() == "9999:99:99 00:00:00") {
  ------------------
  |  Branch (617:7): [True: 0, False: 406]
  ------------------
  618|      0|    os << N_("not set");
  ------------------
  |  |   41|      0|#define N_(String) String
  ------------------
  619|    406|  } else {
  620|    406|    os << value;
  621|    406|  }
  622|    406|  return os;
  623|    406|}  // PanasonicMakerNote::print0x0033
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0036ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  626|     46|std::ostream& PanasonicMakerNote::print0x0036(std::ostream& os, const Value& value, const ExifData*) {
  627|     46|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (627:7): [True: 16, False: 30]
  ------------------
  628|     16|    os << N_("not set");
  ------------------
  |  |   41|     16|#define N_(String) String
  ------------------
  629|     30|  else
  630|     30|    os << value;
  631|     46|  return os;
  632|     46|}  // PanasonicMakerNote::print0x0036
_ZN5Exiv28Internal18PanasonicMakerNote11print0x003cERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  635|    110|std::ostream& PanasonicMakerNote::print0x003c(std::ostream& os, const Value& value, const ExifData*) {
  636|    110|  switch (value.toInt64()) {
  637|     32|    case 65534:
  ------------------
  |  Branch (637:5): [True: 32, False: 78]
  ------------------
  638|     32|      os << N_("Intelligent ISO");
  ------------------
  |  |   41|     32|#define N_(String) String
  ------------------
  639|     32|      break;
  640|     34|    case 65535:
  ------------------
  |  Branch (640:5): [True: 34, False: 76]
  ------------------
  641|     34|      os << N_("n/a");
  ------------------
  |  |   41|     34|#define N_(String) String
  ------------------
  642|     34|      break;
  643|     44|    default:
  ------------------
  |  Branch (643:5): [True: 44, False: 66]
  ------------------
  644|     44|      os << value;
  645|     44|      break;
  646|    110|  }
  647|    110|  return os;
  648|    110|}  // PanasonicMakerNote::print0x003c
_ZN5Exiv28Internal18PanasonicMakerNote18printPanasonicTextERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  650|    248|std::ostream& PanasonicMakerNote::printPanasonicText(std::ostream& os, const Value& value, const ExifData*) {
  651|    248|  if (value.size() > 0 && value.typeId() == undefined) {
  ------------------
  |  Branch (651:7): [True: 248, False: 0]
  |  Branch (651:27): [True: 90, False: 158]
  ------------------
  652|    598|    for (size_t i = 0; i < value.size(); i++) {
  ------------------
  |  Branch (652:24): [True: 588, False: 10]
  ------------------
  653|    588|      if (value.toInt64(i) == 0) {
  ------------------
  |  Branch (653:11): [True: 80, False: 508]
  ------------------
  654|     80|        break;
  655|     80|      }
  656|    508|      os << static_cast<char>(value.toInt64(i));
  657|    508|    }
  658|     90|    return os;
  659|     90|  }
  660|       |
  661|    158|  return os << value;
  662|    248|}  // PanasonicMakerNote::printPanasonicText
_ZN5Exiv28Internal18PanasonicMakerNote13printPressureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  665|     92|std::ostream& PanasonicMakerNote::printPressure(std::ostream& os, const Value& value, const ExifData*) {
  666|     92|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (666:7): [True: 2, False: 90]
  ------------------
  667|      2|    os << N_("infinite");
  ------------------
  |  |   41|      2|#define N_(String) String
  ------------------
  668|     90|  else
  669|     90|    os << value << N_(" hPa");
  ------------------
  |  |   41|     90|#define N_(String) String
  ------------------
  670|     92|  return os;
  671|     92|}  // PanasonicMakerNote::printPressure
_ZN5Exiv28Internal18PanasonicMakerNote18printAccelerometerERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  673|     72|std::ostream& PanasonicMakerNote::printAccelerometer(std::ostream& os, const Value& value, const ExifData*) {
  674|       |  // value is stored as unsigned int, but should be read as int16_t.
  675|     72|  const auto i = static_cast<int16_t>(value.toInt64());
  676|     72|  return os << i;
  677|     72|}  // PanasonicMakerNote::printAccelerometer
_ZN5Exiv28Internal18PanasonicMakerNote14printRollAngleERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  679|     52|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|     52|  const auto i = static_cast<int16_t>(value.toInt64());
  682|     52|  return os << stringFormat("{:.1f}", i / 10.0);
  ------------------
  |  |   18|     52|#define stringFormat std::format
  ------------------
  683|     52|}  // PanasonicMakerNote::printRollAngle
_ZN5Exiv28Internal18PanasonicMakerNote15printPitchAngleERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  685|     20|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|     20|  const auto i = static_cast<int16_t>(value.toInt64());
  688|     20|  return os << stringFormat("{:.1f}", -i / 10.0);
  ------------------
  |  |   18|     20|#define stringFormat std::format
  ------------------
  689|     20|}  // PanasonicMakerNote::printPitchAngle

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

_ZN5Exiv28Internal15PentaxMakerNote12printVersionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  953|  4.74k|std::ostream& PentaxMakerNote::printVersion(std::ostream& os, const Value& value, const ExifData*) {
  954|  4.74k|  std::string val = value.toString();
  955|  4.74k|  std::replace(val.begin(), val.end(), ' ', '.');
  956|  4.74k|  os << val;
  957|  4.74k|  return os;
  958|  4.74k|}
_ZN5Exiv28Internal15PentaxMakerNote15printResolutionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  960|  1.26k|std::ostream& PentaxMakerNote::printResolution(std::ostream& os, const Value& value, const ExifData*) {
  961|  1.26k|  std::string val = value.toString();
  962|  1.26k|  std::replace(val.begin(), val.end(), ' ', 'x');
  963|  1.26k|  os << val;
  964|  1.26k|  return os;
  965|  1.26k|}
_ZN5Exiv28Internal15PentaxMakerNote9printDateERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  967|    422|std::ostream& PentaxMakerNote::printDate(std::ostream& os, const Value& value, const ExifData*) {
  968|       |  /* I choose same format as is used inside EXIF itself */
  969|    422|  return os << stringFormat("{}:{:02}:{:02}", ((static_cast<uint16_t>(value.toInt64(0)) << 8) + value.toInt64(1)),
  ------------------
  |  |   18|    422|#define stringFormat std::format
  ------------------
  970|    422|                            value.toInt64(2), value.toInt64(3));
  971|    422|}
_ZN5Exiv28Internal15PentaxMakerNote9printTimeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  973|    424|std::ostream& PentaxMakerNote::printTime(std::ostream& os, const Value& value, const ExifData*) {
  974|    424|  return os << stringFormat("{:02}:{:02}:{:02}", value.toInt64(0), value.toInt64(1), value.toInt64(2));
  ------------------
  |  |   18|    424|#define stringFormat std::format
  ------------------
  975|    424|}
_ZN5Exiv28Internal15PentaxMakerNote13printExposureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  977|     58|std::ostream& PentaxMakerNote::printExposure(std::ostream& os, const Value& value, const ExifData*) {
  978|     58|  return os << stringFormat("{:g} ms", static_cast<float>(value.toInt64()) / 100);
  ------------------
  |  |   18|     58|#define stringFormat std::format
  ------------------
  979|     58|}
_ZN5Exiv28Internal15PentaxMakerNote11printFValueERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  981|     36|std::ostream& PentaxMakerNote::printFValue(std::ostream& os, const Value& value, const ExifData*) {
  982|     36|  return os << stringFormat("F{:.2g}", static_cast<float>(value.toInt64()) / 10);
  ------------------
  |  |   18|     36|#define stringFormat std::format
  ------------------
  983|     36|}
_ZN5Exiv28Internal15PentaxMakerNote16printFocalLengthERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  985|     52|std::ostream& PentaxMakerNote::printFocalLength(std::ostream& os, const Value& value, const ExifData*) {
  986|     52|  return os << stringFormat("{:.1f} mm", static_cast<float>(value.toInt64()) / 100);
  ------------------
  |  |   18|     52|#define stringFormat std::format
  ------------------
  987|     52|}
_ZN5Exiv28Internal15PentaxMakerNote17printCompensationERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  989|    146|std::ostream& PentaxMakerNote::printCompensation(std::ostream& os, const Value& value, const ExifData*) {
  990|    146|  return os << stringFormat("{:.2g} EV", (static_cast<float>(value.toInt64()) - 50) / 10);
  ------------------
  |  |   18|    146|#define stringFormat std::format
  ------------------
  991|    146|}
_ZN5Exiv28Internal15PentaxMakerNote16printTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  993|     88|std::ostream& PentaxMakerNote::printTemperature(std::ostream& os, const Value& value, const ExifData*) {
  994|     88|  return os << stringFormat("{} C", value.toInt64());
  ------------------
  |  |   18|     88|#define stringFormat std::format
  ------------------
  995|     88|}
_ZN5Exiv28Internal15PentaxMakerNote22printFlashCompensationERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  997|     80|std::ostream& PentaxMakerNote::printFlashCompensation(std::ostream& os, const Value& value, const ExifData*) {
  998|     80|  return os << stringFormat("{:.2g} EV", static_cast<float>(value.toInt64()) / 256);
  ------------------
  |  |   18|     80|#define stringFormat std::format
  ------------------
  999|     80|}
_ZN5Exiv28Internal15PentaxMakerNote15printBracketingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1001|    424|std::ostream& PentaxMakerNote::printBracketing(std::ostream& os, const Value& value, const ExifData*) {
 1002|    424|  std::ios::fmtflags f(os.flags());
 1003|    424|  if (auto l0 = value.toUint32(0); l0 < 10) {
  ------------------
  |  Branch (1003:36): [True: 270, False: 154]
  ------------------
 1004|    270|    os << std::setprecision(2) << static_cast<float>(l0) / 3 << " EV";
 1005|    270|  } else {
 1006|    154|    os << std::setprecision(2) << static_cast<float>(l0) - 9.5F << " EV";
 1007|    154|  }
 1008|       |
 1009|    424|  if (value.count() == 2) {
  ------------------
  |  Branch (1009:7): [True: 362, False: 62]
  ------------------
 1010|    362|    const auto l1 = value.toUint32(1);
 1011|    362|    os << " (";
 1012|    362|    if (l1 == 0) {
  ------------------
  |  Branch (1012:9): [True: 92, False: 270]
  ------------------
 1013|     92|      os << _("No extended bracketing");
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
 1014|    270|    } else {
 1015|    270|      auto type = l1 >> 8;
 1016|    270|      auto range = static_cast<byte>(l1);
 1017|    270|      switch (type) {
 1018|     14|        case 1:
  ------------------
  |  Branch (1018:9): [True: 14, False: 256]
  ------------------
 1019|     14|          os << _("WB-BA");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 1020|     14|          break;
 1021|     62|        case 2:
  ------------------
  |  Branch (1021:9): [True: 62, False: 208]
  ------------------
 1022|     62|          os << _("WB-GM");
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
 1023|     62|          break;
 1024|     64|        case 3:
  ------------------
  |  Branch (1024:9): [True: 64, False: 206]
  ------------------
 1025|     64|          os << _("Saturation");
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
 1026|     64|          break;
 1027|      8|        case 4:
  ------------------
  |  Branch (1027:9): [True: 8, False: 262]
  ------------------
 1028|      8|          os << _("Sharpness");
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
 1029|      8|          break;
 1030|     36|        case 5:
  ------------------
  |  Branch (1030:9): [True: 36, False: 234]
  ------------------
 1031|     36|          os << _("Contrast");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
 1032|     36|          break;
 1033|     86|        default:
  ------------------
  |  Branch (1033:9): [True: 86, False: 184]
  ------------------
 1034|     86|          os << _("Unknown ") << type;
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
 1035|     86|          break;
 1036|    270|      }
 1037|    270|      os << " " << +range;
 1038|    270|    }
 1039|    362|    os << ")";
 1040|    362|  }
 1041|    424|  os.flags(f);
 1042|    424|  return os;
 1043|    424|}
_ZN5Exiv28Internal15PentaxMakerNote17printShutterCountERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1045|    620|std::ostream& PentaxMakerNote::printShutterCount(std::ostream& os, const Value& value, const ExifData* metadata) {
 1046|    620|  if (!metadata)
  ------------------
  |  Branch (1046:7): [True: 310, False: 310]
  ------------------
 1047|    310|    return os << "undefined";
 1048|       |
 1049|    310|  auto dateIt = metadata->findKey(ExifKey("Exif.PentaxDng.Date"));
 1050|    310|  if (dateIt == metadata->end()) {
  ------------------
  |  Branch (1050:7): [True: 79, False: 231]
  ------------------
 1051|     79|    dateIt = metadata->findKey(ExifKey("Exif.Pentax.Date"));
 1052|     79|  }
 1053|       |
 1054|    310|  auto timeIt = metadata->findKey(ExifKey("Exif.PentaxDng.Time"));
 1055|    310|  if (timeIt == metadata->end()) {
  ------------------
  |  Branch (1055:7): [True: 173, False: 137]
  ------------------
 1056|    173|    timeIt = metadata->findKey(ExifKey("Exif.Pentax.Time"));
 1057|    173|  }
 1058|       |
 1059|    310|  if (dateIt == metadata->end() || dateIt->size() != 4 || timeIt == metadata->end() || timeIt->size() != 3 ||
  ------------------
  |  Branch (1059:7): [True: 79, False: 231]
  |  Branch (1059:7): [True: 263, False: 47]
  |  Branch (1059:36): [True: 69, False: 162]
  |  Branch (1059:59): [True: 41, False: 121]
  |  Branch (1059:88): [True: 35, False: 86]
  ------------------
 1060|    263|      value.size() != 4) {
  ------------------
  |  Branch (1060:7): [True: 39, False: 47]
  ------------------
 1061|    263|    os << "undefined";
 1062|    263|    return os;
 1063|    263|  }
 1064|     47|  const uint32_t date = (dateIt->toUint32(0) << 24) + (dateIt->toUint32(1) << 16) + (dateIt->toUint32(2) << 8) +
 1065|     47|                        (dateIt->toUint32(3) << 0);
 1066|     47|  const uint32_t time = (timeIt->toUint32(0) << 24) + (timeIt->toUint32(1) << 16) + (timeIt->toUint32(2) << 8);
 1067|     47|  const uint32_t countEnc =
 1068|     47|      (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|     47|  const uint32_t count = countEnc ^ date ^ (~time);
 1074|     47|  os << count;
 1075|     47|  return os;
 1076|    310|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1259|  2.51k|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.51k|  static constexpr struct LensIdFct {
 1262|  2.51k|    uint32_t id_;   //!< Lens id
 1263|  2.51k|    PrintFct fct_;  //!< Pretty-print function
 1264|       |    //! Comparison operator for find template
 1265|  2.51k|    bool operator==(uint32_t id) const {
 1266|  2.51k|      return id_ == id;
 1267|  2.51k|    }
 1268|  2.51k|  } lensIdFct[] = {
 1269|  2.51k|      {0x0317, resolveLensType}, {0x0319, resolveLens0x319}, {0x031b, resolveLensType},  {0x031c, resolveLensType},
 1270|  2.51k|      {0x031d, resolveLensType}, {0x031f, resolveLensType},  {0x0329, resolveLensType},  {0x032c, resolveLens0x32c},
 1271|  2.51k|      {0x032e, resolveLensType}, {0x0334, resolveLensType},  {0x03ff, resolveLens0x3ff}, {0x041a, resolveLensType},
 1272|  2.51k|      {0x042d, resolveLensType}, {0x08ff, resolveLens0x8ff},
 1273|  2.51k|  };
 1274|       |  // #1034
 1275|  2.51k|  const std::string undefined("undefined");
 1276|  2.51k|  const std::string section("pentax");
 1277|  2.51k|  if (Internal::readExiv2Config(section, value.toString(), undefined) != undefined) {
  ------------------
  |  Branch (1277:7): [True: 0, False: 2.51k]
  ------------------
 1278|      0|    return os << Internal::readExiv2Config(section, value.toString(), undefined);
 1279|      0|  }
 1280|       |
 1281|  2.51k|  const auto index = (value.toUint32(0) * 256) + value.toUint32(1);
 1282|       |
 1283|       |  // std::cout << '\n' << "printLensType value =" << value.toLong() << " index = " << index << '\n';
 1284|  2.51k|  auto lif = Exiv2::find(lensIdFct, index);
 1285|  2.51k|  if (!lif)
  ------------------
  |  Branch (1285:7): [True: 816, False: 1.69k]
  ------------------
 1286|    816|    return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    816|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1287|  1.69k|  if (metadata && lif->fct_)
  ------------------
  |  Branch (1287:7): [True: 718, False: 976]
  |  Branch (1287:19): [True: 718, False: 0]
  ------------------
 1288|    718|    return lif->fct_(os, value, metadata);
 1289|    976|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (1289:7): [True: 906, False: 70]
  |  Branch (1289:42): [True: 0, False: 70]
  ------------------
 1290|    648|    return os << "(" << value << ")";
 1291|    328|  return os << value;
 1292|    976|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL15resolveLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1254|    127|static std::ostream& resolveLensType(std::ostream& os, const Value& value, const ExifData* metadata) {
 1255|    127|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    127|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1256|    127|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x319ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1224|     89|{
 1225|     89|  try {
 1226|     89|    unsigned long index = 0;
 1227|       |
 1228|     89|    const auto lensInfo = findLensInfo(metadata);
 1229|     89|    if (value.count() == 4) {
  ------------------
  |  Branch (1229:9): [True: 31, False: 58]
  ------------------
 1230|     31|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1231|     31|      if (model.starts_with("PENTAX K-3") && lensInfo->count() == 128 && lensInfo->toUint32(1) == 131 &&
  ------------------
  |  Branch (1231:11): [True: 0, False: 31]
  |  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|     31|    }
 1235|     89|    if (value.count() == 2) {
  ------------------
  |  Branch (1235:9): [True: 35, False: 54]
  ------------------
 1236|     35|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1237|     35|      if (model.starts_with("PENTAX K100D") && lensInfo->count() == 44)
  ------------------
  |  Branch (1237:11): [True: 10, False: 25]
  |  Branch (1237:48): [True: 0, False: 10]
  ------------------
 1238|      0|        index = 6;
 1239|     35|      if (model.starts_with("PENTAX *ist DL") && lensInfo->count() == 36)
  ------------------
  |  Branch (1239:11): [True: 5, False: 30]
  |  Branch (1239:50): [True: 0, False: 5]
  ------------------
 1240|      0|        index = 6;
 1241|     35|    }
 1242|       |
 1243|     89|    if (index > 0) {
  ------------------
  |  Branch (1243:9): [True: 0, False: 89]
  ------------------
 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|     89|  } catch (...) {
 1249|     22|  }
 1250|     89|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     89|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1251|     89|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL12findLensInfoEPKNS_8ExifDataE:
 1096|    573|static ExifData::const_iterator findLensInfo(const ExifData* metadata) {
 1097|    573|  const auto dngLensInfo = metadata->findKey(ExifKey("Exif.PentaxDng.LensInfo"));
 1098|    573|  if (dngLensInfo != metadata->end()) {
  ------------------
  |  Branch (1098:7): [True: 466, False: 107]
  ------------------
 1099|    466|    return dngLensInfo;
 1100|    466|  }
 1101|    107|  const auto lensInfo = metadata->findKey(ExifKey("Exif.Pentax.LensInfo"));
 1102|    107|  if (lensInfo != metadata->end()) {
  ------------------
  |  Branch (1102:7): [True: 32, False: 75]
  ------------------
 1103|     32|    return lensInfo;
 1104|     32|  }
 1105|     75|  throw LensInfoNotFound();
 1106|    107|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL12getKeyStringERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
 1079|    156|static std::string getKeyString(const std::string& key, const ExifData* metadata) {
 1080|    156|  std::string result;
 1081|    156|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1081:7): [True: 133, False: 23]
  ------------------
 1082|    133|    result = metadata->findKey(ExifKey(key))->toString();
 1083|    133|  }
 1084|    156|  return result;
 1085|    156|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x32cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1109|     18|static std::ostream& resolveLens0x32c(std::ostream& os, const Value& value, const ExifData* metadata) {
 1110|     18|  try {
 1111|     18|    unsigned long index = 0;
 1112|       |
 1113|     18|    long focalLength = getKeyLong("Exif.Photo.FocalLength", metadata);
 1114|     18|    bool bFL10_20 = 10 <= focalLength && focalLength <= 20;
  ------------------
  |  Branch (1114:21): [True: 0, False: 18]
  |  Branch (1114:42): [True: 0, False: 0]
  ------------------
 1115|       |
 1116|       |    // std::cout << "model,focalLength = " << model << "," << focalLength << '\n';
 1117|     18|    if (bFL10_20) {
  ------------------
  |  Branch (1117:9): [True: 0, False: 18]
  ------------------
 1118|      0|      index = 1;
 1119|      0|    }
 1120|       |
 1121|     18|    if (index > 0) {
  ------------------
  |  Branch (1121:9): [True: 0, False: 18]
  ------------------
 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|     18|  } catch (...) {
 1127|      0|  }
 1128|     18|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     18|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1129|     18|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL10getKeyLongERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
 1087|     18|static long getKeyLong(const std::string& key, const ExifData* metadata) {
 1088|     18|  long result = -1;
 1089|     18|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1089:7): [True: 0, False: 18]
  ------------------
 1090|      0|    result = static_cast<long>(metadata->findKey(ExifKey(key))->toFloat(0));
 1091|      0|  }
 1092|     18|  return result;
 1093|     18|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x3ffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1136|    357|{
 1137|    357|  try {
 1138|    357|    unsigned long index = 0;
 1139|       |
 1140|       |    // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Pentax.html#LensData
 1141|    357|    const auto lensInfo = findLensInfo(metadata);
 1142|    357|    if (lensInfo->count() < 5)
  ------------------
  |  Branch (1142:9): [True: 37, False: 320]
  ------------------
 1143|     37|      return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     37|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1144|       |
 1145|    320|    if (value.count() == 2) {
  ------------------
  |  Branch (1145:9): [True: 139, False: 181]
  ------------------
 1146|       |      // http://dev.exiv2.org/attachments/download/326/IMGP4432.PEF
 1147|       |      // exiv2 -pv --grep Lens ~/Downloads/IMGP4432.PEF
 1148|       |      // 0x003f Pentax       LensType  Byte        2 3 255
 1149|       |      // 0x0207 Pentax       LensInfo  Undefined  36 3 255 0 0 40 148 71 152 80 6 241 65 237 153 88 36 1 76
 1150|       |      // 107 251 255 255 255 0 0 80 6 241 0 0 0 0 0 0 0 0
 1151|    139|      unsigned long base = 1;
 1152|       |
 1153|    139|      unsigned int autoAperture = lensInfo->toUint32(base + 1) & 0x01;
 1154|    139|      unsigned int minAperture = lensInfo->toUint32(base + 2) & 0x06;
 1155|    139|      unsigned int minFocusDistance = lensInfo->toUint32(base + 3) & 0xf8;
 1156|       |
 1157|    139|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 4) == 148)
  ------------------
  |  Branch (1157:11): [True: 102, False: 37]
  |  Branch (1157:34): [True: 65, False: 37]
  |  Branch (1157:56): [True: 35, False: 30]
  |  Branch (1157:84): [True: 10, False: 25]
  ------------------
 1158|     10|        index = 8;
 1159|    139|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 5) == 110)
  ------------------
  |  Branch (1159:11): [True: 102, False: 37]
  |  Branch (1159:34): [True: 65, False: 37]
  |  Branch (1159:56): [True: 35, False: 30]
  |  Branch (1159:84): [True: 10, False: 25]
  ------------------
 1160|     10|        index = 7;
 1161|    139|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 4) == 110)
  ------------------
  |  Branch (1161:11): [True: 102, False: 37]
  |  Branch (1161:34): [True: 65, False: 37]
  |  Branch (1161:56): [True: 35, False: 30]
  |  Branch (1161:84): [True: 10, False: 25]
  ------------------
 1162|     10|        index = 7;
 1163|       |
 1164|    181|    } else if (value.count() == 3) {
  ------------------
  |  Branch (1164:16): [True: 56, False: 125]
  ------------------
 1165|       |      // http://dev.exiv2.org/attachments/download/858/_IGP9032.DNG
 1166|       |      // $ exiv2 -pv --grep Lens ~/Downloads/_IGP9032.DNG
 1167|       |      // 0x003f PentaxDng    LensType  Byte        3    3 255   0
 1168|       |      // 0x0207 PentaxDng    LensInfo  Undefined  69  131   0   0 255 0  40 148  68 244 ...
 1169|       |      //                                                0   1   2   3 4   5   6
 1170|     56|      if (lensInfo->toUint32(4) == 0 && lensInfo->toUint32(5) == 40 && lensInfo->toUint32(6) == 148)
  ------------------
  |  Branch (1170:11): [True: 38, False: 18]
  |  Branch (1170:41): [True: 18, False: 20]
  |  Branch (1170:72): [True: 10, False: 8]
  ------------------
 1171|     10|        index = 8;
 1172|       |
 1173|    125|    } else if (value.count() == 4) {
  ------------------
  |  Branch (1173:16): [True: 76, False: 49]
  ------------------
 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|     76|      if (lensInfo->count() == 128 && lensInfo->toUint32(1) == 131 && lensInfo->toUint32(2) == 128)
  ------------------
  |  Branch (1177:11): [True: 43, False: 33]
  |  Branch (1177:39): [True: 20, False: 23]
  |  Branch (1177:71): [True: 10, False: 10]
  ------------------
 1178|     10|        index = 8;
 1179|       |      // #1155
 1180|     76|      if (lensInfo->toUint32(6) == 5)
  ------------------
  |  Branch (1180:11): [True: 12, False: 64]
  ------------------
 1181|     12|        index = 7;
 1182|     76|    }
 1183|       |
 1184|    320|    if (index > 0) {
  ------------------
  |  Branch (1184:9): [True: 52, False: 268]
  ------------------
 1185|     52|      const unsigned long lensID = 0x3ff;
 1186|     52|      auto td = Exiv2::find(pentaxLensType, lensID);
 1187|     52|      return os << _(td[index].label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
 1188|     52|    }
 1189|    320|  } catch (...) {
 1190|     43|  }
 1191|    268|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    268|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1192|    357|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x8ffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1198|    127|{
 1199|    127|  try {
 1200|    127|    unsigned long index = 0;
 1201|       |
 1202|    127|    const auto lensInfo = findLensInfo(metadata);
 1203|    127|    if (value.count() == 4) {
  ------------------
  |  Branch (1203:9): [True: 90, False: 37]
  ------------------
 1204|     90|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1205|     90|      if (model.starts_with("PENTAX K-3") && lensInfo->count() == 128 && lensInfo->toUint32(1) == 168 &&
  ------------------
  |  Branch (1205:11): [True: 38, False: 52]
  |  Branch (1205:46): [True: 28, False: 10]
  |  Branch (1205:74): [True: 15, False: 13]
  ------------------
 1206|     15|          lensInfo->toUint32(2) == 144)
  ------------------
  |  Branch (1206:11): [True: 9, False: 6]
  ------------------
 1207|      9|        index = 7;
 1208|     90|    }
 1209|       |
 1210|    127|    if (index > 0) {
  ------------------
  |  Branch (1210:9): [True: 9, False: 118]
  ------------------
 1211|      9|      const unsigned long lensID = 0x8ff;
 1212|      9|      auto td = Exiv2::find(pentaxLensType, lensID);
 1213|      9|      return os << _(td[index].label_);
  ------------------
  |  |   40|      9|#define _(String) (String)
  ------------------
 1214|      9|    }
 1215|    127|  } catch (...) {
 1216|     14|  }
 1217|    118|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    118|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1218|    127|}
pentaxmn_int.cpp:_ZZN5Exiv28InternalL13printLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK9LensIdFcteqEj:
 1265|  25.2k|    bool operator==(uint32_t id) const {
 1266|  25.2k|      return id_ == id;
 1267|  25.2k|    }
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm298ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLensTypeEELi2ELi1ELi2EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.47k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.47k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.47k|  std::ios::fmtflags f(os.flags());
   35|  1.47k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 1.04k, False: 424]
  ------------------
   36|  1.04k|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 0, False: 1.04k]
  |  Branch (36:51): [True: 90, False: 959]
  ------------------
   37|     90|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|     90|    return printValue(os, value, metadata);
   39|     90|  }
   40|  1.38k|  uint32_t l = 0;
   41|  2.92k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 2.28k, False: 647]
  ------------------
   42|  2.28k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 113, False: 2.16k]
  |  Branch (42:33): [True: 623, False: 1.54k]
  ------------------
   43|    736|      return printValue(os, value, metadata);
   44|    736|    }
   45|  1.54k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  1.54k|  }
   47|       |
   48|    647|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 545, False: 102]
  ------------------
   49|    545|    os << _(td->label_);
  ------------------
  |  |   40|    545|#define _(String) (String)
  ------------------
   50|    545|  } else {
   51|    102|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
   52|    102|  }
   53|       |
   54|    647|  os.flags(f);
   55|    647|  return os;
   56|  1.38k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21pentaxImageProcessingEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.90k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.90k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.90k|  std::ios::fmtflags f(os.flags());
   35|  1.90k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 220, False: 1.68k]
  ------------------
   36|    220|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 128, False: 92]
  |  Branch (36:51): [True: 92, False: 0]
  ------------------
   37|    220|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    220|    return printValue(os, value, metadata);
   39|    220|  }
   40|  1.68k|  uint32_t l = 0;
   41|  6.71k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 5.67k, False: 1.04k]
  ------------------
   42|  5.67k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 282, False: 5.39k]
  |  Branch (42:33): [True: 362, False: 5.03k]
  ------------------
   43|    644|      return printValue(os, value, metadata);
   44|    644|    }
   45|  5.03k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  5.03k|  }
   47|       |
   48|  1.04k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 742, False: 298]
  ------------------
   49|    742|    os << _(td->label_);
  ------------------
  |  |   40|    742|#define _(String) (String)
  ------------------
   50|    742|  } else {
   51|    298|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    298|#define _(String) (String)
  ------------------
   52|    298|  }
   53|       |
   54|  1.04k|  os.flags(f);
   55|  1.04k|  return os;
   56|  1.68k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17pentaxPictureModeEELi3ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  5.24k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  5.24k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  5.24k|  std::ios::fmtflags f(os.flags());
   35|  5.24k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 236, False: 5.01k]
  ------------------
   36|    236|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 124, False: 112]
  |  Branch (36:51): [True: 112, False: 0]
  ------------------
   37|    236|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    236|    return printValue(os, value, metadata);
   39|    236|  }
   40|  5.01k|  uint32_t l = 0;
   41|  18.9k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 14.4k, False: 4.48k]
  ------------------
   42|  14.4k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 216, False: 14.2k]
  |  Branch (42:33): [True: 312, False: 13.9k]
  ------------------
   43|    528|      return printValue(os, value, metadata);
   44|    528|    }
   45|  13.9k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  13.9k|  }
   47|       |
   48|  4.48k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 3.99k, False: 490]
  ------------------
   49|  3.99k|    os << _(td->label_);
  ------------------
  |  |   40|  3.99k|#define _(String) (String)
  ------------------
   50|  3.99k|  } else {
   51|    490|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    490|#define _(String) (String)
  ------------------
   52|    490|  }
   53|       |
   54|  4.48k|  os.flags(f);
   55|  4.48k|  return os;
   56|  5.01k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxDriveModeEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  4.61k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  4.61k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  4.61k|  std::ios::fmtflags f(os.flags());
   35|  4.61k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 270, False: 4.34k]
  ------------------
   36|    270|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 152, False: 118]
  |  Branch (36:51): [True: 118, False: 0]
  ------------------
   37|    270|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    270|    return printValue(os, value, metadata);
   39|    270|  }
   40|  4.34k|  uint32_t l = 0;
   41|  16.6k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 14.3k, False: 2.35k]
  ------------------
   42|  14.3k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 850, False: 13.4k]
  |  Branch (42:33): [True: 1.13k, False: 12.3k]
  ------------------
   43|  1.98k|      return printValue(os, value, metadata);
   44|  1.98k|    }
   45|  12.3k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  12.3k|  }
   47|       |
   48|  2.35k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 1.92k, False: 432]
  ------------------
   49|  1.92k|    os << _(td->label_);
  ------------------
  |  |   40|  1.92k|#define _(String) (String)
  ------------------
   50|  1.92k|  } else {
   51|    432|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    432|#define _(String) (String)
  ------------------
   52|    432|  }
   53|       |
   54|  2.35k|  os.flags(f);
   55|  2.35k|  return os;
   56|  4.34k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxDynamicRangeExpansionEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.26k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.26k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.26k|  std::ios::fmtflags f(os.flags());
   35|  1.26k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 96, False: 1.16k]
  ------------------
   36|     96|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 46, False: 50]
  |  Branch (36:51): [True: 50, False: 0]
  ------------------
   37|     96|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|     96|    return printValue(os, value, metadata);
   39|     96|  }
   40|  1.16k|  uint32_t l = 0;
   41|  3.09k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 2.88k, False: 208]
  ------------------
   42|  2.88k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 410, False: 2.47k]
  |  Branch (42:33): [True: 550, False: 1.92k]
  ------------------
   43|    960|      return printValue(os, value, metadata);
   44|    960|    }
   45|  1.92k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  1.92k|  }
   47|       |
   48|    208|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 98, False: 110]
  ------------------
   49|     98|    os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
   50|    110|  } else {
   51|    110|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
   52|    110|  }
   53|       |
   54|    208|  os.flags(f);
   55|    208|  return os;
   56|  1.16k|}

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

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

_ZN5Exiv29Photoshop5isIrbEPKh:
   27|  33.4M|bool Photoshop::isIrb(const byte* pPsData) {
   28|  33.4M|  if (pPsData == nullptr)
  ------------------
  |  Branch (28:7): [True: 0, False: 33.4M]
  ------------------
   29|      0|    return false;
   30|       |
   31|  33.4M|  for (auto id : irbId_)
  ------------------
  |  Branch (31:16): [True: 33.4M, False: 4.78k]
  ------------------
   32|  33.4M|    if (std::equal(id, id + 4, pPsData))
  ------------------
  |  Branch (32:9): [True: 33.4M, False: 21.5k]
  ------------------
   33|  33.4M|      return true;
   34|       |
   35|  4.78k|  return false;
   36|  33.4M|}
_ZN5Exiv29Photoshop5validEPKhm:
   38|  44.0k|bool Photoshop::valid(const byte* pPsData, size_t sizePsData) {
   39|  44.0k|  const byte* record = nullptr;
   40|  44.0k|  uint32_t sizeIptc = 0;
   41|  44.0k|  uint32_t sizeHdr = 0;
   42|  44.0k|  const byte* pCur = pPsData;
   43|  44.0k|  const byte* pEnd = pPsData + sizePsData;
   44|  44.0k|  int ret = 0;
   45|  32.4M|  while (pCur < pEnd && 0 == (ret = Photoshop::locateIptcIrb(pCur, (pEnd - pCur), &record, sizeHdr, sizeIptc))) {
  ------------------
  |  Branch (45:10): [True: 32.4M, False: 17]
  |  Branch (45:25): [True: 32.4M, False: 43.9k]
  ------------------
   46|  32.4M|    pCur = record + sizeHdr + sizeIptc + (sizeIptc & 1);
   47|  32.4M|  }
   48|  44.0k|  return ret >= 0;
   49|  44.0k|}
_ZN5Exiv29Photoshop9locateIrbEPKhmtPS2_RjS4_:
   55|  32.5M|                         uint32_t& sizeData) {
   56|  32.5M|  if (sizePsData < 12) {
  ------------------
  |  Branch (56:7): [True: 551, False: 32.5M]
  ------------------
   57|    551|    return 3;
   58|    551|  }
   59|       |
   60|       |  // Used for error checking
   61|  32.5M|  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|  33.4M|  while (position <= (sizePsData - 12) && isIrb(pPsData + position)) {
  ------------------
  |  Branch (66:10): [True: 33.4M, False: 377]
  |  Branch (66:43): [True: 33.4M, False: 4.67k]
  ------------------
   67|  33.4M|    const byte* hrd = pPsData + position;
   68|  33.4M|    position += 4;
   69|  33.4M|    uint16_t type = getUShort(pPsData + position, bigEndian);
   70|  33.4M|    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|  33.4M|    byte psSize = pPsData[position] + 1;
   76|  33.4M|    psSize += (psSize & 1);
   77|  33.4M|    position += psSize;
   78|  33.4M|    if (position + 4 > sizePsData) {
  ------------------
  |  Branch (78:9): [True: 254, False: 33.4M]
  ------------------
   79|       |#ifdef EXIV2_DEBUG_MESSAGES
   80|       |      std::cerr << "Warning: "
   81|       |                << "Invalid or extended Photoshop IRB\n";
   82|       |#endif
   83|    254|      return -2;
   84|    254|    }
   85|  33.4M|    uint32_t dataSize = getULong(pPsData + position, bigEndian);
   86|  33.4M|    position += 4;
   87|  33.4M|    if (dataSize > (sizePsData - position)) {
  ------------------
  |  Branch (87:9): [True: 39.2k, False: 33.4M]
  ------------------
   88|       |#ifdef EXIV2_DEBUG_MESSAGES
   89|       |      std::cerr << "Warning: "
   90|       |                << "Invalid Photoshop IRB data size " << dataSize << " or extended Photoshop IRB\n";
   91|       |#endif
   92|  39.2k|      return -2;
   93|  39.2k|    }
   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|  33.4M|    if (type == psTag) {
  ------------------
  |  Branch (100:9): [True: 32.4M, False: 936k]
  ------------------
  101|       |#ifdef EXIV2_DEBUG_MESSAGES
  102|       |      std::cerr << "ok\n";
  103|       |#endif
  104|  32.4M|      sizeData = dataSize;
  105|  32.4M|      sizeHdr = psSize + 10;
  106|  32.4M|      *record = hrd;
  107|  32.4M|      return 0;
  108|  32.4M|    }
  109|       |    // Data size is also padded to be even
  110|   936k|    position += dataSize + (dataSize & 1);
  111|   936k|  }
  112|       |#ifdef EXIV2_DEBUG_MESSAGES
  113|       |  std::cerr << "pPsData doesn't start with '8BIM'\n";
  114|       |#endif
  115|  5.05k|  if (position < sizePsData) {
  ------------------
  |  Branch (115:7): [True: 4.88k, False: 174]
  ------------------
  116|       |#ifdef EXIV2_DEBUG_MESSAGES
  117|       |    std::cerr << "Warning: "
  118|       |              << "Invalid or extended Photoshop IRB\n";
  119|       |#endif
  120|  4.88k|    return -2;
  121|  4.88k|  }
  122|    174|  return 3;
  123|  5.05k|}
_ZN5Exiv29Photoshop13locateIptcIrbEPKhmPS2_RjS4_:
  126|  32.5M|                             uint32_t& sizeData) {
  127|  32.5M|  return locateIrb(pPsData, sizePsData, iptc_, record, sizeHdr, sizeData);
  128|  32.5M|}
_ZN5Exiv29Photoshop10setIptcIrbEPKhmRKNS_8IptcDataE:
  135|    320|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|    320|  const byte* record = pPsData;
  144|    320|  uint32_t sizeIptc = 0;
  145|    320|  uint32_t sizeHdr = 0;
  146|    320|  DataBuf rc;
  147|    320|  if (0 > Photoshop::locateIptcIrb(pPsData, sizePsData, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (147:7): [True: 51, False: 269]
  ------------------
  148|     51|    return rc;
  149|     51|  }
  150|       |
  151|    269|  Blob psBlob;
  152|    269|  const auto sizeFront = static_cast<size_t>(record - pPsData);
  153|       |  // Write data before old record.
  154|    269|  if (sizePsData > 0 && sizeFront > 0) {
  ------------------
  |  Branch (154:7): [True: 152, False: 117]
  |  Branch (154:25): [True: 51, False: 101]
  ------------------
  155|     51|    append(psBlob, pPsData, sizeFront);
  156|     51|  }
  157|       |
  158|       |  // Write new iptc record if we have it
  159|    269|  if (DataBuf rawIptc = IptcParser::encode(iptcData); !rawIptc.empty()) {
  ------------------
  |  Branch (159:55): [True: 42, False: 227]
  ------------------
  160|     42|    std::array<byte, 12> tmpBuf;
  161|     42|    std::copy_n(Photoshop::irbId_[0], 4, tmpBuf.begin());
  162|     42|    us2Data(tmpBuf.data() + 4, iptc_, bigEndian);
  163|     42|    tmpBuf[6] = 0;
  164|     42|    tmpBuf[7] = 0;
  165|     42|    ul2Data(tmpBuf.data() + 8, static_cast<uint32_t>(rawIptc.size()), bigEndian);
  166|     42|    append(psBlob, tmpBuf.data(), 12);
  167|     42|    append(psBlob, rawIptc.c_data(), rawIptc.size());
  168|       |    // Data is padded to be even (but not included in size)
  169|     42|    if (rawIptc.size() & 1)
  ------------------
  |  Branch (169:9): [True: 25, False: 17]
  ------------------
  170|     25|      psBlob.push_back(0x00);
  171|     42|  }
  172|       |
  173|       |  // Write existing stuff after record, skip the current and all remaining IPTC blocks
  174|    269|  size_t pos = sizeFront;
  175|    269|  auto nextSizeData = Safe::add<long>(static_cast<long>(sizePsData), -static_cast<long>(pos));
  176|    269|  Internal::enforce(nextSizeData >= 0, ErrorCode::kerCorruptedMetadata);
  177|  18.5k|  while (0 == Photoshop::locateIptcIrb(pPsData + pos, nextSizeData, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (177:10): [True: 18.2k, False: 269]
  ------------------
  178|  18.2k|    const auto newPos = static_cast<size_t>(record - pPsData);
  179|  18.2k|    if (newPos > pos) {  // Copy data up to the IPTC IRB
  ------------------
  |  Branch (179:9): [True: 494, False: 17.7k]
  ------------------
  180|    494|      append(psBlob, pPsData + pos, newPos - pos);
  181|    494|    }
  182|  18.2k|    pos = newPos + sizeHdr + sizeIptc + (sizeIptc & 1);  // Skip the IPTC IRB
  183|  18.2k|    nextSizeData = Safe::add<long>(static_cast<long>(sizePsData), -static_cast<long>(pos));
  184|  18.2k|    Internal::enforce(nextSizeData >= 0, ErrorCode::kerCorruptedMetadata);
  185|  18.2k|  }
  186|    269|  if (pos < sizePsData) {
  ------------------
  |  Branch (186:7): [True: 148, False: 121]
  ------------------
  187|    148|    append(psBlob, pPsData + pos, sizePsData - pos);
  188|    148|  }
  189|       |
  190|       |  // Data is rounded to be even
  191|    269|  if (!psBlob.empty())
  ------------------
  |  Branch (191:7): [True: 150, False: 119]
  ------------------
  192|    150|    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|    269|  return rc;
  201|    320|}

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

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

_ZN5Exiv212PreviewImageC2ENS_17PreviewPropertiesEONS_7DataBufE:
  990|    497|    properties_(std::move(properties)), preview_(std::move(data)) {
  991|    497|}
_ZNK5Exiv212PreviewImage5pDataEv:
 1017|    497|const byte* PreviewImage::pData() const {
 1018|    497|  return preview_.c_data();
 1019|    497|}
_ZNK5Exiv212PreviewImage4sizeEv:
 1021|    497|uint32_t PreviewImage::size() const {
 1022|    497|  return static_cast<uint32_t>(preview_.size());
 1023|    497|}
_ZN5Exiv214PreviewManagerC2ERKNS_5ImageE:
 1045|  2.39k|PreviewManager::PreviewManager(const Image& image) : image_(image) {
 1046|  2.39k|}
_ZNK5Exiv214PreviewManager20getPreviewPropertiesEv:
 1048|  2.39k|PreviewPropertiesList PreviewManager::getPreviewProperties() const {
 1049|  2.39k|  PreviewPropertiesList list;
 1050|       |  // go through the loader table and store all successfully created loaders in the list
 1051|  82.6k|  for (PreviewId id = 0; id < Loader::getNumLoaders(); ++id) {
  ------------------
  |  Branch (1051:26): [True: 80.2k, False: 2.39k]
  ------------------
 1052|  80.2k|    auto loader = Loader::create(id, image_);
 1053|  80.2k|    if (loader && loader->readDimensions()) {
  ------------------
  |  Branch (1053:9): [True: 4.95k, False: 75.2k]
  |  Branch (1053:19): [True: 3.29k, False: 1.66k]
  ------------------
 1054|  3.29k|      PreviewProperties props = loader->getProperties();
 1055|  3.29k|      DataBuf buf = loader->getData();  // #16 getPreviewImage()
 1056|  3.29k|      props.size_ = buf.size();         //     update the size
 1057|  3.29k|      list.push_back(std::move(props));
 1058|  3.29k|    }
 1059|  80.2k|  }
 1060|  2.39k|  std::sort(list.begin(), list.end(),
 1061|  2.39k|            [](const auto& lhs, const auto& rhs) { return lhs.width_ * lhs.height_ < rhs.width_ * rhs.height_; });
 1062|       |
 1063|  2.39k|  return list;
 1064|  2.39k|}
_ZNK5Exiv214PreviewManager15getPreviewImageERKNS_17PreviewPropertiesE:
 1066|    497|PreviewImage PreviewManager::getPreviewImage(const PreviewProperties& properties) const {
 1067|    497|  auto loader = Loader::create(properties.id_, image_);
 1068|    497|  DataBuf buf;
 1069|    497|  if (loader) {
  ------------------
  |  Branch (1069:7): [True: 497, False: 0]
  ------------------
 1070|    497|    buf = loader->getData();
 1071|    497|  }
 1072|       |
 1073|    497|  return {properties, std::move(buf)};
 1074|    497|}
preview.cpp:_ZN12_GLOBAL__N_16Loader13getNumLoadersEv:
  350|   163k|PreviewId Loader::getNumLoaders() {
  351|   163k|  return PreviewId{std::size(loaderList_)};
  352|   163k|}
preview.cpp:_ZN12_GLOBAL__N_118createLoaderNativeEiRKN5Exiv25ImageEi:
  368|  9.56k|Loader::UniquePtr createLoaderNative(PreviewId id, const Image& image, int parIdx) {
  369|  9.56k|  return std::make_unique<LoaderNative>(id, image, parIdx);
  370|  9.56k|}
preview.cpp:_ZN12_GLOBAL__N_112LoaderNativeC2EiRKN5Exiv25ImageEi:
  354|  9.56k|LoaderNative::LoaderNative(PreviewId id, const Image& image, int parIdx) : Loader(id, image) {
  355|  9.56k|  if (0 > parIdx || static_cast<size_t>(parIdx) >= image.nativePreviews().size())
  ------------------
  |  Branch (355:7): [True: 0, False: 9.56k]
  |  Branch (355:21): [True: 9.56k, False: 0]
  ------------------
  356|  9.56k|    return;
  357|      0|  nativePreview_ = image.nativePreviews()[parIdx];
  358|      0|  width_ = nativePreview_.width_;
  359|      0|  height_ = nativePreview_.height_;
  360|      0|  valid_ = true;
  361|      0|  if (nativePreview_.filter_.empty()) {
  ------------------
  |  Branch (361:7): [True: 0, False: 0]
  ------------------
  362|      0|    size_ = nativePreview_.size_;
  363|      0|  } else {
  364|      0|    size_ = getData().size();
  365|      0|  }
  366|      0|}
preview.cpp:_ZN12_GLOBAL__N_16LoaderC2EiRKN5Exiv25ImageE:
  343|  76.1k|Loader::Loader(PreviewId id, const Image& image) : id_(id), image_(image) {
  344|  76.1k|}
preview.cpp:_ZNK12_GLOBAL__N_16Loader13getPropertiesEv:
  346|  3.29k|PreviewProperties Loader::getProperties() const {
  347|  3.29k|  return {"", "", size_, width_, height_, id_};
  348|  3.29k|}
preview.cpp:_ZN12_GLOBAL__N_16Loader14readDimensionsEv:
   77|  2.32k|  virtual bool readDimensions() {
   78|  2.32k|    return true;
   79|  2.32k|  }
preview.cpp:_ZN12_GLOBAL__N_16LoaderD2Ev:
   54|  76.1k|  virtual ~Loader() = default;
preview.cpp:_ZNK12_GLOBAL__N_16Loader5validEv:
   66|  80.0k|  [[nodiscard]] virtual bool valid() const {
   67|  80.0k|    return valid_;
   68|  80.0k|  }
preview.cpp:_ZN12_GLOBAL__N_124createLoaderExifDataJpegEiRKN5Exiv25ImageEi:
  568|  28.6k|Loader::UniquePtr createLoaderExifDataJpeg(PreviewId id, const Image& image, int parIdx) {
  569|  28.6k|  return std::make_unique<LoaderExifDataJpeg>(id, image, parIdx);
  570|  28.6k|}
preview.cpp:_ZN12_GLOBAL__N_118LoaderExifDataJpegC2EiRKN5Exiv25ImageEi:
  555|  28.6k|    Loader(id, image), dataKey_(param_[parIdx].dataKey_) {
  556|  28.6k|  if (auto pos = image_.exifData().findKey(dataKey_); pos != image_.exifData().end()) {
  ------------------
  |  Branch (556:55): [True: 37, False: 28.6k]
  ------------------
  557|     37|    size_ = pos->sizeDataArea();  // indirect data
  558|     37|    if (size_ == 0 && pos->typeId() == undefined)
  ------------------
  |  Branch (558:9): [True: 37, False: 0]
  |  Branch (558:23): [True: 18, False: 19]
  ------------------
  559|     18|      size_ = pos->size();  // direct data
  560|     37|  }
  561|       |
  562|  28.6k|  if (size_ == 0)
  ------------------
  |  Branch (562:7): [True: 28.6k, False: 18]
  ------------------
  563|  28.6k|    return;
  564|       |
  565|     18|  valid_ = true;
  566|     18|}
preview.cpp:_ZNK12_GLOBAL__N_118LoaderExifDataJpeg13getPropertiesEv:
  572|      7|PreviewProperties LoaderExifDataJpeg::getProperties() const {
  573|      7|  PreviewProperties prop = Loader::getProperties();
  574|      7|  prop.mimeType_ = "image/jpeg";
  575|      7|  prop.extension_ = ".jpg";
  576|      7|  return prop;
  577|      7|}
preview.cpp:_ZNK12_GLOBAL__N_118LoaderExifDataJpeg7getDataEv:
  579|     25|DataBuf LoaderExifDataJpeg::getData() const {
  580|     25|  DataBuf buf;
  581|       |
  582|     25|  if (!valid())
  ------------------
  |  Branch (582:7): [True: 0, False: 25]
  ------------------
  583|      0|    return buf;
  584|       |
  585|     25|  if (auto pos = image_.exifData().findKey(dataKey_); pos != image_.exifData().end()) {
  ------------------
  |  Branch (585:55): [True: 25, False: 0]
  ------------------
  586|     25|    buf = pos->dataArea();  // indirect data
  587|       |
  588|     25|    if (buf.empty()) {  // direct data
  ------------------
  |  Branch (588:9): [True: 25, False: 0]
  ------------------
  589|     25|      buf = DataBuf(pos->size());
  590|     25|      pos->copy(buf.data(), invalidByteOrder);
  591|     25|    }
  592|       |
  593|     25|    buf.write_uint8(0, 0xff);  // fix Minolta thumbnails with invalid jpeg header
  594|     25|    return buf;
  595|     25|  }
  596|       |
  597|      0|  return buf;
  598|     25|}
preview.cpp:_ZN12_GLOBAL__N_118LoaderExifDataJpeg14readDimensionsEv:
  600|     11|bool LoaderExifDataJpeg::readDimensions() {
  601|     11|  if (!valid())
  ------------------
  |  Branch (601:7): [True: 0, False: 11]
  ------------------
  602|      0|    return false;
  603|       |
  604|     11|  DataBuf buf = getData();
  605|     11|  if (buf.empty())
  ------------------
  |  Branch (605:7): [True: 0, False: 11]
  ------------------
  606|      0|    return false;
  607|       |
  608|     11|  try {
  609|     11|    auto image = ImageFactory::open(buf.c_data(), buf.size());
  610|     11|    if (!image)
  ------------------
  |  Branch (610:9): [True: 0, False: 11]
  ------------------
  611|      0|      return false;
  612|     11|    image->readMetadata();
  613|       |
  614|     11|    width_ = image->pixelWidth();
  615|     11|    height_ = image->pixelHeight();
  616|     11|  } catch (const Error& /* error */) {
  617|      4|    return false;
  618|      4|  }
  619|       |
  620|      7|  return true;
  621|     11|}
preview.cpp:_ZN12_GLOBAL__N_116createLoaderTiffEiRKN5Exiv25ImageEi:
  681|  16.5k|Loader::UniquePtr createLoaderTiff(PreviewId id, const Image& image, int parIdx) {
  682|  16.5k|  return std::make_unique<LoaderTiff>(id, image, parIdx);
  683|  16.5k|}
preview.cpp:_ZN12_GLOBAL__N_110LoaderTiffC2EiRKN5Exiv25ImageEi:
  624|  16.5k|    Loader(id, image), group_(param_[parIdx].group_) {
  625|  16.5k|  const ExifData& exifData = image_.exifData();
  626|       |
  627|  16.5k|  size_t offsetCount = 0;
  628|  16.5k|  ExifData::const_iterator pos;
  629|       |
  630|       |  // check if the group_ contains a preview image
  631|  16.5k|  if (param_[parIdx].checkTag_) {
  ------------------
  |  Branch (631:7): [True: 14.2k, False: 2.32k]
  ------------------
  632|  14.2k|    pos = exifData.findKey(ExifKey(param_[parIdx].checkTag_));
  633|  14.2k|    if (pos == exifData.end())
  ------------------
  |  Branch (633:9): [True: 11.0k, False: 3.22k]
  ------------------
  634|  11.0k|      return;
  635|  3.22k|    if (param_[parIdx].checkValue_ && pos->toString() != param_[parIdx].checkValue_)
  ------------------
  |  Branch (635:9): [True: 3.22k, False: 0]
  |  Branch (635:9): [True: 258, False: 2.96k]
  |  Branch (635:39): [True: 258, False: 2.96k]
  ------------------
  636|    258|      return;
  637|  3.22k|  }
  638|       |
  639|  5.29k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".StripOffsets"));
  640|  5.29k|  if (pos != exifData.end()) {
  ------------------
  |  Branch (640:7): [True: 2.73k, False: 2.55k]
  ------------------
  641|  2.73k|    offsetTag_ = "StripOffsets";
  642|  2.73k|    sizeTag_ = "StripByteCounts";
  643|  2.73k|    offsetCount = pos->value().count();
  644|  2.73k|  } else {
  645|  2.55k|    pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".TileOffsets"));
  646|  2.55k|    if (pos == exifData.end())
  ------------------
  |  Branch (646:9): [True: 2.41k, False: 146]
  ------------------
  647|  2.41k|      return;
  648|    146|    offsetTag_ = "TileOffsets";
  649|    146|    sizeTag_ = "TileByteCounts";
  650|    146|    offsetCount = pos->value().count();
  651|    146|  }
  652|       |
  653|  2.88k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + '.' + sizeTag_));
  654|  2.88k|  if (pos == exifData.end())
  ------------------
  |  Branch (654:7): [True: 74, False: 2.81k]
  ------------------
  655|     74|    return;
  656|  2.81k|  if (offsetCount != pos->value().count())
  ------------------
  |  Branch (656:7): [True: 50, False: 2.76k]
  ------------------
  657|     50|    return;
  658|  7.50k|  for (size_t i = 0; i < offsetCount; i++) {
  ------------------
  |  Branch (658:22): [True: 4.74k, False: 2.76k]
  ------------------
  659|  4.74k|    size_ += pos->toUint32(i);
  660|  4.74k|  }
  661|       |
  662|  2.76k|  if (size_ == 0)
  ------------------
  |  Branch (662:7): [True: 39, False: 2.72k]
  ------------------
  663|     39|    return;
  664|       |
  665|  2.72k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".ImageWidth"));
  666|  2.72k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (666:7): [True: 2.67k, False: 48]
  |  Branch (666:7): [True: 2.57k, False: 148]
  |  Branch (666:32): [True: 2.57k, False: 100]
  ------------------
  667|  2.57k|    width_ = pos->toUint32();
  668|  2.57k|  }
  669|       |
  670|  2.72k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".ImageLength"));
  671|  2.72k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (671:7): [True: 2.66k, False: 60]
  |  Branch (671:7): [True: 2.59k, False: 131]
  |  Branch (671:32): [True: 2.59k, False: 71]
  ------------------
  672|  2.59k|    height_ = pos->toUint32();
  673|  2.59k|  }
  674|       |
  675|  2.72k|  if (width_ == 0 || height_ == 0)
  ------------------
  |  Branch (675:7): [True: 171, False: 2.55k]
  |  Branch (675:22): [True: 99, False: 2.45k]
  ------------------
  676|    260|    return;
  677|       |
  678|  2.46k|  valid_ = true;
  679|  2.46k|}
preview.cpp:_ZNK12_GLOBAL__N_110LoaderTiff13getPropertiesEv:
  685|  2.32k|PreviewProperties LoaderTiff::getProperties() const {
  686|  2.32k|  PreviewProperties prop = Loader::getProperties();
  687|  2.32k|  prop.mimeType_ = "image/tiff";
  688|  2.32k|  prop.extension_ = ".tif";
  689|  2.32k|  return prop;
  690|  2.32k|}
preview.cpp:_ZNK12_GLOBAL__N_110LoaderTiff7getDataEv:
  692|  2.45k|DataBuf LoaderTiff::getData() const {
  693|  2.45k|  const ExifData& exifData = image_.exifData();
  694|       |
  695|  2.45k|  ExifData preview;
  696|       |
  697|       |  // copy tags
  698|   650k|  for (auto&& pos : exifData) {
  ------------------
  |  Branch (698:19): [True: 650k, False: 2.45k]
  ------------------
  699|   650k|    if (pos.groupName() == group_) {
  ------------------
  |  Branch (699:9): [True: 145k, False: 504k]
  ------------------
  700|       |      /*
  701|       |         Write only the necessary TIFF image tags
  702|       |         tags that especially could cause problems are:
  703|       |         "NewSubfileType" - the result is no longer a thumbnail, it is a standalone image
  704|       |         "Orientation" - this tag typically appears only in the "Image" group. Deleting it ensures
  705|       |                         consistent result for all previews, including JPEG
  706|       |      */
  707|   145k|      uint16_t tag = pos.tag();
  708|   145k|      if (tag != 0x00fe && tag != 0x00ff && Internal::isTiffImageTag(tag, IfdId::ifd0Id)) {
  ------------------
  |  Branch (708:11): [True: 143k, False: 2.63k]
  |  Branch (708:28): [True: 142k, False: 910]
  |  Branch (708:45): [True: 82.0k, False: 60.3k]
  ------------------
  709|  82.0k|        preview.add(ExifKey(tag, "Image"), &pos.value());
  710|  82.0k|      }
  711|   145k|    }
  712|   650k|  }
  713|       |
  714|  2.45k|  auto& dataValue = const_cast<Value&>(preview["Exif.Image." + offsetTag_].value());
  715|       |
  716|  2.45k|  if (dataValue.sizeDataArea() == 0) {
  ------------------
  |  Branch (716:7): [True: 2.45k, False: 0]
  ------------------
  717|       |    // image data are not available via exifData, read them from image_.io()
  718|  2.45k|    BasicIo& io = image_.io();
  719|       |
  720|  2.45k|    if (io.open() != 0) {
  ------------------
  |  Branch (720:9): [True: 0, False: 2.45k]
  ------------------
  721|      0|      throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  722|      0|    }
  723|  2.45k|    IoCloser closer(io);
  724|       |
  725|  2.45k|    const Exiv2::byte* base = io.mmap();
  726|       |
  727|  2.45k|    const Value& sizes = preview["Exif.Image." + sizeTag_].value();
  728|       |
  729|  2.45k|    if (sizes.count() == dataValue.count()) {
  ------------------
  |  Branch (729:9): [True: 2.45k, False: 0]
  ------------------
  730|  2.45k|      if (sizes.count() == 1) {
  ------------------
  |  Branch (730:11): [True: 2.33k, False: 121]
  ------------------
  731|       |        // this saves one copying of the buffer
  732|  2.33k|        uint32_t offset = dataValue.toUint32(0);
  733|  2.33k|        uint32_t size = sizes.toUint32(0);
  734|  2.33k|        if (Safe::add(offset, size) <= static_cast<uint32_t>(io.size()))
  ------------------
  |  Branch (734:13): [True: 1.20k, False: 1.12k]
  ------------------
  735|  1.20k|          dataValue.setDataArea(base + offset, size);
  736|  2.33k|      } else {
  737|       |        // FIXME: the buffer is probably copied twice, it should be optimized
  738|    121|        Internal::enforce(size_ <= io.size(), ErrorCode::kerCorruptedMetadata);
  739|    121|        DataBuf buf(size_);
  740|    121|        uint32_t idxBuf = 0;
  741|  1.64k|        for (size_t i = 0; i < sizes.count(); i++) {
  ------------------
  |  Branch (741:28): [True: 1.52k, False: 121]
  ------------------
  742|  1.52k|          uint32_t offset = dataValue.toUint32(i);
  743|  1.52k|          uint32_t size = sizes.toUint32(i);
  744|       |
  745|       |          // the size_ parameter is originally computed by summing all values inside sizes
  746|       |          // see the constructor of LoaderTiff
  747|       |          // But e.g in malicious files some of these values could be negative
  748|       |          // That's why we check again for each step here to really make sure we don't overstep
  749|  1.52k|          Internal::enforce(Safe::add(idxBuf, size) <= size_, ErrorCode::kerCorruptedMetadata);
  750|  1.52k|          if (size != 0 && Safe::add(offset, size) <= static_cast<uint32_t>(io.size())) {
  ------------------
  |  Branch (750:15): [True: 853, False: 667]
  |  Branch (750:28): [True: 379, False: 474]
  ------------------
  751|    379|            std::copy_n(base + offset, size, buf.begin() + idxBuf);
  752|    379|          }
  753|       |
  754|  1.52k|          idxBuf += size;
  755|  1.52k|        }
  756|    121|        dataValue.setDataArea(buf.c_data(), buf.size());
  757|    121|      }
  758|  2.45k|    }
  759|  2.45k|  }
  760|       |
  761|       |  // Fix compression value in the CR2 IFD2 image
  762|  2.45k|  if (0 == strcmp(group_, "Image2") && image_.mimeType() == "image/x-canon-cr2") {
  ------------------
  |  Branch (762:7): [True: 0, False: 2.45k]
  |  Branch (762:7): [True: 0, False: 2.45k]
  |  Branch (762:40): [True: 0, False: 0]
  ------------------
  763|      0|    preview["Exif.Image.Compression"] = std::uint16_t{1};
  764|      0|  }
  765|       |
  766|       |  // write new image
  767|  2.45k|  MemIo mio;
  768|  2.45k|  IptcData emptyIptc;
  769|  2.45k|  XmpData emptyXmp;
  770|  2.45k|  TiffParser::encode(mio, nullptr, 0, Exiv2::littleEndian, preview, emptyIptc, emptyXmp);
  771|  2.45k|  return {mio.mmap(), mio.size()};
  772|  2.45k|}
preview.cpp:_ZN12_GLOBAL__N_120createLoaderExifJpegEiRKN5Exiv25ImageEi:
  496|  18.9k|Loader::UniquePtr createLoaderExifJpeg(PreviewId id, const Image& image, int parIdx) {
  497|  18.9k|  return std::make_unique<LoaderExifJpeg>(id, image, parIdx);
  498|  18.9k|}
preview.cpp:_ZN12_GLOBAL__N_114LoaderExifJpegC2EiRKN5Exiv25ImageEi:
  467|  18.9k|LoaderExifJpeg::LoaderExifJpeg(PreviewId id, const Image& image, int parIdx) : Loader(id, image) {
  468|  18.9k|  const ExifData& exifData = image_.exifData();
  469|  18.9k|  auto pos = exifData.findKey(ExifKey(param_[parIdx].offsetKey_));
  470|  18.9k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (470:7): [True: 5.06k, False: 13.8k]
  |  Branch (470:7): [True: 3.28k, False: 15.6k]
  |  Branch (470:32): [True: 3.28k, False: 1.78k]
  ------------------
  471|  3.28k|    offset_ = pos->toUint32();
  472|  3.28k|  }
  473|       |
  474|  18.9k|  size_ = 0;
  475|  18.9k|  pos = exifData.findKey(ExifKey(param_[parIdx].sizeKey_));
  476|  18.9k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (476:7): [True: 5.06k, False: 13.8k]
  |  Branch (476:7): [True: 3.30k, False: 15.6k]
  |  Branch (476:32): [True: 3.30k, False: 1.76k]
  ------------------
  477|  3.30k|    size_ = pos->toUint32();
  478|  3.30k|  }
  479|       |
  480|  18.9k|  if (offset_ == 0 || size_ == 0)
  ------------------
  |  Branch (480:7): [True: 15.6k, False: 3.23k]
  |  Branch (480:23): [True: 159, False: 3.07k]
  ------------------
  481|  15.8k|    return;
  482|       |
  483|  3.08k|  if (param_[parIdx].baseOffsetKey_) {
  ------------------
  |  Branch (483:7): [True: 0, False: 3.08k]
  ------------------
  484|      0|    pos = exifData.findKey(ExifKey(param_[parIdx].baseOffsetKey_));
  485|      0|    if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (485:9): [True: 0, False: 0]
  |  Branch (485:9): [True: 0, False: 0]
  |  Branch (485:34): [True: 0, False: 0]
  ------------------
  486|      0|      offset_ += pos->toUint32();
  487|      0|    }
  488|      0|  }
  489|       |
  490|  3.08k|  if (Safe::add(offset_, size_) > image_.io().size())
  ------------------
  |  Branch (490:7): [True: 92, False: 2.99k]
  ------------------
  491|     92|    return;
  492|       |
  493|  2.99k|  valid_ = true;
  494|  2.99k|}
preview.cpp:_ZNK12_GLOBAL__N_114LoaderExifJpeg13getPropertiesEv:
  500|    968|PreviewProperties LoaderExifJpeg::getProperties() const {
  501|    968|  PreviewProperties prop = Loader::getProperties();
  502|    968|  prop.mimeType_ = "image/jpeg";
  503|    968|  prop.extension_ = ".jpg";
  504|    968|  return prop;
  505|    968|}
preview.cpp:_ZNK12_GLOBAL__N_114LoaderExifJpeg7getDataEv:
  507|  1.32k|DataBuf LoaderExifJpeg::getData() const {
  508|  1.32k|  if (!valid())
  ------------------
  |  Branch (508:7): [True: 0, False: 1.32k]
  ------------------
  509|      0|    return {};
  510|  1.32k|  BasicIo& io = image_.io();
  511|       |
  512|  1.32k|  if (io.open() != 0) {
  ------------------
  |  Branch (512:7): [True: 0, False: 1.32k]
  ------------------
  513|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  514|      0|  }
  515|  1.32k|  IoCloser closer(io);
  516|       |
  517|  1.32k|  const Exiv2::byte* base = io.mmap();
  518|       |
  519|  1.32k|  return {base + offset_, size_};
  520|  1.32k|}
preview.cpp:_ZN12_GLOBAL__N_114LoaderExifJpeg14readDimensionsEv:
  522|  2.62k|bool LoaderExifJpeg::readDimensions() {
  523|  2.62k|  if (!valid())
  ------------------
  |  Branch (523:7): [True: 0, False: 2.62k]
  ------------------
  524|      0|    return false;
  525|  2.62k|  if (width_ || height_)
  ------------------
  |  Branch (525:7): [True: 0, False: 2.62k]
  |  Branch (525:17): [True: 0, False: 2.62k]
  ------------------
  526|      0|    return true;
  527|       |
  528|  2.62k|  BasicIo& io = image_.io();
  529|       |
  530|  2.62k|  if (io.open() != 0) {
  ------------------
  |  Branch (530:7): [True: 0, False: 2.62k]
  ------------------
  531|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  532|      0|  }
  533|  2.62k|  IoCloser closer(io);
  534|  2.62k|  const Exiv2::byte* base = io.mmap();
  535|       |
  536|  2.62k|  try {
  537|  2.62k|    auto image = ImageFactory::open(base + offset_, size_);
  538|  2.62k|    if (!image)
  ------------------
  |  Branch (538:9): [True: 0, False: 2.62k]
  ------------------
  539|      0|      return false;
  540|  2.62k|    image->readMetadata();
  541|       |
  542|  2.62k|    width_ = image->pixelWidth();
  543|  2.62k|    height_ = image->pixelHeight();
  544|  2.62k|  } catch (const Error& /* error */) {
  545|  1.65k|#ifndef SUPPRESS_WARNINGS
  546|  1.65k|    EXV_WARNING << "Invalid JPEG preview image.\n";
  ------------------
  |  |  138|  1.65k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.65k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.65k|  LogMsg(LogMsg::warn).os()
  ------------------
  547|  1.65k|#endif
  548|  1.65k|    return false;
  549|  1.65k|  }
  550|       |
  551|    968|  return true;
  552|  2.62k|}
preview.cpp:_ZN12_GLOBAL__N_119createLoaderXmpJpegEiRKN5Exiv25ImageEi:
  807|  2.31k|Loader::UniquePtr createLoaderXmpJpeg(PreviewId id, const Image& image, int parIdx) {
  808|  2.31k|  return std::make_unique<LoaderXmpJpeg>(id, image, parIdx);
  809|  2.31k|}
preview.cpp:_ZN12_GLOBAL__N_113LoaderXmpJpegC2EiRKN5Exiv25ImageEi:
  774|  2.31k|LoaderXmpJpeg::LoaderXmpJpeg(PreviewId id, const Image& image, int parIdx) : Loader(id, image) {
  775|  2.31k|  (void)parIdx;
  776|       |
  777|  2.31k|  const XmpData& xmpData = image_.xmpData();
  778|       |
  779|  2.31k|  std::string prefix = "xmpGImg";
  780|  2.31k|  if (xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/xapGImg:image")) != xmpData.end()) {
  ------------------
  |  Branch (780:7): [True: 0, False: 2.31k]
  ------------------
  781|      0|    prefix = "xapGImg";
  782|      0|  }
  783|       |
  784|  2.31k|  auto imageDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":image"));
  785|  2.31k|  if (imageDatum == xmpData.end())
  ------------------
  |  Branch (785:7): [True: 2.31k, False: 0]
  ------------------
  786|  2.31k|    return;
  787|      0|  auto formatDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":format"));
  788|      0|  if (formatDatum == xmpData.end())
  ------------------
  |  Branch (788:7): [True: 0, False: 0]
  ------------------
  789|      0|    return;
  790|      0|  auto widthDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":width"));
  791|      0|  if (widthDatum == xmpData.end())
  ------------------
  |  Branch (791:7): [True: 0, False: 0]
  ------------------
  792|      0|    return;
  793|      0|  auto heightDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":height"));
  794|      0|  if (heightDatum == xmpData.end())
  ------------------
  |  Branch (794:7): [True: 0, False: 0]
  ------------------
  795|      0|    return;
  796|       |
  797|      0|  if (formatDatum->toString() != "JPEG")
  ------------------
  |  Branch (797:7): [True: 0, False: 0]
  ------------------
  798|      0|    return;
  799|       |
  800|      0|  width_ = widthDatum->toUint32();
  801|      0|  height_ = heightDatum->toUint32();
  802|      0|  preview_ = decodeBase64(imageDatum->toString());
  803|      0|  size_ = preview_.size();
  804|      0|  valid_ = true;
  805|      0|}
preview.cpp:_ZN12_GLOBAL__N_16Loader6createEiRKN5Exiv25ImageE:
  328|  80.7k|Loader::UniquePtr Loader::create(PreviewId id, const Image& image) {
  329|  80.7k|  Loader::UniquePtr loader;
  330|  80.7k|  if (id < 0 || id >= Loader::getNumLoaders())
  ------------------
  |  Branch (330:7): [True: 0, False: 80.7k]
  |  Branch (330:17): [True: 0, False: 80.7k]
  ------------------
  331|      0|    return loader;
  332|       |
  333|  80.7k|  if (loaderList_[id].imageMimeType_ && std::string(loaderList_[id].imageMimeType_) != image.mimeType())
  ------------------
  |  Branch (333:7): [True: 7.04k, False: 73.7k]
  |  Branch (333:7): [True: 4.64k, False: 76.1k]
  |  Branch (333:41): [True: 4.64k, False: 2.39k]
  ------------------
  334|  4.64k|    return loader;
  335|       |
  336|  76.1k|  loader = loaderList_[id].create_(id, image, loaderList_[id].parIdx_);
  337|  76.1k|  if (!loader->valid())
  ------------------
  |  Branch (337:7): [True: 70.6k, False: 5.47k]
  ------------------
  338|  70.6k|    loader = nullptr;
  339|       |
  340|  76.1k|  return loader;
  341|  80.7k|}
preview.cpp:_ZZNK5Exiv214PreviewManager20getPreviewPropertiesEvENK3$_0clINS_17PreviewPropertiesES3_EEDaRKT_RKT0_:
 1061|  2.13k|            [](const auto& lhs, const auto& rhs) { return lhs.width_ * lhs.height_ < rhs.width_ * rhs.height_; });

_ZNK5Exiv29XmpNsInfoeqERKNS0_2NsE:
 4939|   579k|bool XmpNsInfo::operator==(const XmpNsInfo::Ns& ns) const {
 4940|   579k|  return ns_ == ns.ns_;
 4941|   579k|}
_ZNK5Exiv29XmpNsInfoeqERKNS0_6PrefixE:
 4943|  30.6M|bool XmpNsInfo::operator==(const XmpNsInfo::Prefix& prefix) const {
 4944|  30.6M|  return prefix_ == prefix.prefix_;
 4945|  30.6M|}
_ZN5Exiv213XmpProperties8getMutexEv:
 4952|  1.52M|std::mutex& XmpProperties::getMutex() {
 4953|  1.52M|  static std::mutex m;
 4954|  1.52M|  return m;
 4955|  1.52M|}
_ZN5Exiv213XmpProperties24lookupNsRegistryUnlockedERKNS_9XmpNsInfo6PrefixERKNS0_7XmpLockE:
 4963|  1.49M|const XmpNsInfo* XmpProperties::lookupNsRegistryUnlocked(const XmpNsInfo::Prefix& prefix, const XmpLock&) {
 4964|  7.91M|  for (const auto& [_, p] : nsRegistry_) {
  ------------------
  |  Branch (4964:27): [True: 7.91M, False: 1.49M]
  ------------------
 4965|  7.91M|    if (p == prefix)
  ------------------
  |  Branch (4965:9): [True: 3.73k, False: 7.90M]
  ------------------
 4966|  3.73k|      return &p;
 4967|  7.91M|  }
 4968|  1.49M|  return nullptr;
 4969|  1.49M|}
_ZN5Exiv213XmpProperties18registerNsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKNS0_7XmpLockE:
 4976|      6|void XmpProperties::registerNsUnlocked(const std::string& ns, const std::string& prefix, const XmpLock& lock) {
 4977|      6|  if (ns.empty())
  ------------------
  |  Branch (4977:7): [True: 0, False: 6]
  ------------------
 4978|      0|    return;
 4979|      6|  std::string ns2 = ns;
 4980|      6|  if (ns2.back() != '/' && ns2.back() != '#')
  ------------------
  |  Branch (4980:7): [True: 5, False: 1]
  |  Branch (4980:28): [True: 4, False: 1]
  ------------------
 4981|      4|    ns2 += '/';
 4982|       |
 4983|       |  // 1. Check if this URI is already registered with this exact prefix
 4984|      6|  auto it = nsRegistry_.find(ns2);
 4985|      6|  if (it != nsRegistry_.end() && std::strcmp(it->second.prefix_, prefix.c_str()) == 0) {
  ------------------
  |  Branch (4985:7): [True: 0, False: 6]
  |  Branch (4985:7): [True: 0, False: 6]
  |  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|      6|  if (auto xnp = lookupNsRegistryUnlocked(XmpNsInfo::Prefix{prefix}, lock)) {
  ------------------
  |  Branch (4990:12): [True: 0, False: 6]
  ------------------
 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|      6|  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|      6|  XmpNsInfo xn;
 5005|      6|  auto c = new char[ns2.size() + 1];
 5006|      6|  std::strcpy(c, ns2.c_str());
 5007|      6|  xn.ns_ = c;
 5008|      6|  c = new char[prefix.size() + 1];
 5009|      6|  std::strcpy(c, prefix.c_str());
 5010|      6|  xn.prefix_ = c;
 5011|      6|  xn.xmpPropertyInfo_ = nullptr;
 5012|      6|  xn.desc_ = "";
 5013|      6|  nsRegistry_[ns2] = xn;
 5014|      6|}
_ZN5Exiv213XmpProperties20unregisterNsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5021|      6|void XmpProperties::unregisterNsUnlocked(const std::string& ns, const XmpLock&) {
 5022|      6|  unregisterNsNoLock(ns, LifetimeKey{});
 5023|      6|}
_ZN5Exiv213XmpProperties18unregisterNsNoLockERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS0_11LifetimeKeyE:
 5025|     12|void XmpProperties::unregisterNsNoLock(const std::string& ns, LifetimeKey) {
 5026|     12|  auto i = nsRegistry_.find(ns);
 5027|     12|  if (i != nsRegistry_.end()) {
  ------------------
  |  Branch (5027:7): [True: 6, False: 6]
  ------------------
 5028|      6|    delete[] i->second.prefix_;
 5029|      6|    delete[] i->second.ns_;
 5030|      6|    nsRegistry_.erase(i);
 5031|      6|  }
 5032|     12|}
_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|      7|  while (i != nsRegistry_.end()) {
  ------------------
  |  Branch (5045:10): [True: 6, False: 1]
  ------------------
 5046|      6|    auto kill = i++;
 5047|      6|    unregisterNsNoLock(kill->first, LifetimeKey{});
 5048|      6|  }
 5049|      1|}
_ZN5Exiv213XmpProperties14prefixUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5056|  14.3k|std::string XmpProperties::prefixUnlocked(const std::string& ns, const XmpLock&) {
 5057|  14.3k|  std::string ns2 = ns;
 5058|  14.3k|  if (ns2.back() != '/' && ns2.back() != '#')
  ------------------
  |  Branch (5058:7): [True: 10.3k, False: 4.01k]
  |  Branch (5058:28): [True: 9.35k, False: 1.01k]
  ------------------
 5059|  9.35k|    ns2 += '/';
 5060|       |
 5061|  14.3k|  auto i = nsRegistry_.find(ns2);
 5062|  14.3k|  std::string p;
 5063|  14.3k|  if (i != nsRegistry_.end())
  ------------------
  |  Branch (5063:7): [True: 1.04k, False: 13.3k]
  ------------------
 5064|  1.04k|    p = i->second.prefix_;
 5065|  13.3k|  else if (auto xn = Exiv2::find(xmpNsInfo, XmpNsInfo::Ns{std::move(ns2)}))
  ------------------
  |  Branch (5065:17): [True: 1.14k, False: 12.1k]
  ------------------
 5066|  1.14k|    p = std::string(xn->prefix_);
 5067|  14.3k|  return p;
 5068|  14.3k|}
_ZN5Exiv213XmpProperties10nsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5075|   736k|std::string XmpProperties::nsUnlocked(const std::string& prefix, const XmpLock& lock) {
 5076|   736k|  if (auto xn = lookupNsRegistryUnlocked(XmpNsInfo::Prefix{prefix}, lock))
  ------------------
  |  Branch (5076:12): [True: 2.43k, False: 734k]
  ------------------
 5077|  2.43k|    return xn->ns_;
 5078|   734k|  return nsInfoUnlocked(prefix, lock)->ns_;
 5079|   736k|}
_ZN5Exiv213XmpProperties21prefixIsBoundUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5081|  2.75k|bool XmpProperties::prefixIsBoundUnlocked(const std::string& prefix, const XmpLock& lock) {
 5082|  2.75k|  const auto pf = XmpNsInfo::Prefix{prefix};
 5083|  2.75k|  return lookupNsRegistryUnlocked(pf, lock) != nullptr || Exiv2::find(xmpNsInfo, pf) != nullptr;
  ------------------
  |  Branch (5083:10): [True: 1.29k, False: 1.46k]
  |  Branch (5083:59): [True: 1.45k, False: 6]
  ------------------
 5084|  2.75k|}
_ZN5Exiv213XmpProperties20propertyTypeUnlockedERKNS_6XmpKeyERKNS0_7XmpLockE:
 5111|  22.5k|TypeId XmpProperties::propertyTypeUnlocked(const XmpKey& key, const XmpLock& lock) {
 5112|  22.5k|  const XmpPropertyInfo* pi = propertyInfoUnlocked(key, lock);
 5113|  22.5k|  return pi ? pi->typeId_ : xmpText;
  ------------------
  |  Branch (5113:10): [True: 21.9k, False: 634]
  ------------------
 5114|  22.5k|}
_ZN5Exiv213XmpProperties20propertyInfoUnlockedERKNS_6XmpKeyERKNS0_7XmpLockE:
 5121|  22.5k|const XmpPropertyInfo* XmpProperties::propertyInfoUnlocked(const XmpKey& key, const XmpLock& lock) {
 5122|  22.5k|  std::string prefix = key.groupName();
 5123|  22.5k|  std::string property = key.tagName();
 5124|       |  // If property is a path for a nested property, determines the innermost element
 5125|  22.5k|  if (auto i = property.find_last_of('/'); i != std::string::npos) {
  ------------------
  |  Branch (5125:44): [True: 0, False: 22.5k]
  ------------------
 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|  22.5k|  if (auto pl = propertyListUnlocked(prefix, lock)) {
  ------------------
  |  Branch (5137:12): [True: 22.5k, False: 0]
  ------------------
 5138|  3.09M|    for (size_t j = 0; pl[j].name_; ++j) {
  ------------------
  |  Branch (5138:24): [True: 3.09M, False: 634]
  ------------------
 5139|  3.09M|      if (property == pl[j].name_) {
  ------------------
  |  Branch (5139:11): [True: 21.9k, False: 3.06M]
  ------------------
 5140|  21.9k|        return pl + j;
 5141|  21.9k|      }
 5142|  3.09M|    }
 5143|  22.5k|  }
 5144|    634|  return nullptr;
 5145|  22.5k|}
_ZN5Exiv213XmpProperties20propertyListUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5162|  22.5k|const XmpPropertyInfo* XmpProperties::propertyListUnlocked(const std::string& prefix, const XmpLock& lock) {
 5163|  22.5k|  return nsInfoUnlocked(prefix, lock)->xmpPropertyInfo_;
 5164|  22.5k|}
_ZN5Exiv213XmpProperties14nsInfoUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5171|   757k|const XmpNsInfo* XmpProperties::nsInfoUnlocked(const std::string& prefix, const XmpLock& lock) {
 5172|   757k|  const auto pf = XmpNsInfo::Prefix{prefix};
 5173|   757k|  const XmpNsInfo* xn = lookupNsRegistryUnlocked(pf, lock);
 5174|   757k|  if (!xn)
  ------------------
  |  Branch (5174:7): [True: 757k, False: 0]
  ------------------
 5175|   757k|    xn = Exiv2::find(xmpNsInfo, pf);
 5176|   757k|  if (!xn)
  ------------------
  |  Branch (5176:7): [True: 0, False: 757k]
  ------------------
 5177|      0|    throw Error(ErrorCode::kerNoNamespaceInfoForXmpPrefix, prefix);
 5178|   757k|  return xn;
 5179|   757k|}
_ZN5Exiv213XmpProperties13printPropertyERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS_5ValueE:
 5207|  19.0k|std::ostream& XmpProperties::printProperty(std::ostream& os, const std::string& key, const Value& value) {
 5208|  19.0k|  XmpLock lock;
 5209|  19.0k|  return printPropertyUnlocked(os, key, value, lock);
 5210|  19.0k|}
_ZN5Exiv213XmpProperties21printPropertyUnlockedERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS_5ValueERKNS0_7XmpLockE:
 5213|  19.0k|                                                   const XmpLock&) {
 5214|  19.0k|  PrintFct fct = printValue;
 5215|  19.0k|  if (value.count() != 0) {
  ------------------
  |  Branch (5215:7): [True: 18.1k, False: 922]
  ------------------
 5216|  18.1k|    if (auto info = Exiv2::find(xmpPrintInfo, key))
  ------------------
  |  Branch (5216:14): [True: 0, False: 18.1k]
  ------------------
 5217|      0|      fct = info->printFct_;
 5218|  18.1k|  }
 5219|  19.0k|  return fct(os, value, nullptr);
 5220|  19.0k|}
_ZN5Exiv26XmpKey4ImplC2ERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_RKNS_13XmpProperties7XmpLockE:
 5250|  10.9k|XmpKey::Impl::Impl(const std::string& prefix, const std::string& property, const XmpProperties::XmpLock& lock) {
 5251|       |  // Validate prefix unlocked (must hold lock)
 5252|  10.9k|  if (XmpProperties::nsUnlocked(prefix, lock).empty())
  ------------------
  |  Branch (5252:7): [True: 0, False: 10.9k]
  ------------------
 5253|      0|    throw Error(ErrorCode::kerNoNamespaceForPrefix, prefix);
 5254|       |
 5255|  10.9k|  property_ = property;
 5256|  10.9k|  prefix_ = prefix;
 5257|  10.9k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 5259|  90.4k|XmpKey::XmpKey(const std::string& key) : p_(std::make_unique<Impl>()) {
 5260|  90.4k|  p_->decomposeKey(key);
 5261|  90.4k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_13XmpProperties7XmpLockE:
 5263|   635k|XmpKey::XmpKey(const std::string& key, const XmpProperties::XmpLock& lock) : p_(std::make_unique<Impl>()) {
 5264|   635k|  p_->decomposeKeyUnlocked(key, lock);
 5265|   635k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKNS_13XmpProperties7XmpLockE:
 5271|  10.9k|    p_(std::make_unique<Impl>(prefix, property, lock)) {
 5272|  10.9k|}
_ZN5Exiv26XmpKeyD2Ev:
 5274|   814k|XmpKey::~XmpKey() = default;
_ZN5Exiv26XmpKeyC2ERKS0_:
 5276|  77.2k|XmpKey::XmpKey(const XmpKey& rhs) : p_(std::make_unique<Impl>(*rhs.p_)) {
 5277|  77.2k|}
_ZNK5Exiv26XmpKey5cloneEv:
 5286|  77.2k|XmpKey::UniquePtr XmpKey::clone() const {
 5287|  77.2k|  return UniquePtr(clone_());
 5288|  77.2k|}
_ZNK5Exiv26XmpKey6clone_Ev:
 5290|  77.2k|XmpKey* XmpKey::clone_() const {
 5291|  77.2k|  return new XmpKey(*this);
 5292|  77.2k|}
_ZNK5Exiv26XmpKey3keyEv:
 5294|  9.25M|std::string XmpKey::key() const {
 5295|  9.25M|  return std::string(Exiv2::XmpKey::Impl::familyName_) + "." + p_->prefix_ + "." + p_->property_;
 5296|  9.25M|}
_ZNK5Exiv26XmpKey9groupNameEv:
 5302|  26.3k|std::string XmpKey::groupName() const {
 5303|  26.3k|  return p_->prefix_;
 5304|  26.3k|}
_ZNK5Exiv26XmpKey7tagNameEv:
 5306|  40.3k|std::string XmpKey::tagName() const {
 5307|  40.3k|  return p_->property_;
 5308|  40.3k|}
_ZN5Exiv26XmpKey4Impl12decomposeKeyERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 5336|  90.4k|void XmpKey::Impl::decomposeKey(const std::string& key) {
 5337|  90.4k|  XmpProperties::XmpLock lock;
 5338|  90.4k|  decomposeKeyUnlocked(key, lock);
 5339|  90.4k|}  // XmpKey::Impl::decomposeKey
_ZN5Exiv26XmpKey4Impl20decomposeKeyUnlockedERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKNS_13XmpProperties7XmpLockE:
 5341|   725k|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|   725k|  if (!key.starts_with(familyName_))
  ------------------
  |  Branch (5343:7): [True: 42, False: 725k]
  ------------------
 5344|     42|    throw Error(ErrorCode::kerInvalidKey, key);
 5345|   725k|  std::string::size_type pos1 = key.find('.');
 5346|   725k|  std::string::size_type pos0 = pos1 + 1;
 5347|   725k|  pos1 = key.find('.', pos0);
 5348|   725k|  if (pos1 == std::string::npos)
  ------------------
  |  Branch (5348:7): [True: 0, False: 725k]
  ------------------
 5349|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5350|   725k|  std::string prefix = key.substr(pos0, pos1 - pos0);
 5351|   725k|  if (prefix.empty())
  ------------------
  |  Branch (5351:7): [True: 0, False: 725k]
  ------------------
 5352|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5353|   725k|  std::string property = key.substr(pos1 + 1);
 5354|   725k|  if (property.empty())
  ------------------
  |  Branch (5354:7): [True: 0, False: 725k]
  ------------------
 5355|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5356|       |
 5357|       |  // Validate prefix unlocked (must hold lock)
 5358|   725k|  if (XmpProperties::nsUnlocked(prefix, lock).empty())
  ------------------
  |  Branch (5358:7): [True: 0, False: 725k]
  ------------------
 5359|      0|    throw Error(ErrorCode::kerNoNamespaceForPrefix, prefix);
 5360|       |
 5361|   725k|  property_ = std::move(property);
 5362|   725k|  prefix_ = std::move(prefix);
 5363|   725k|}  // XmpKey::Impl::decomposeKeyUnlocked
properties.cpp:_ZNK12_GLOBAL__N_112XmpPrintInfoeqERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   21|  1.21M|  bool operator==(const std::string& key) const {
   22|  1.21M|    return key == key_;
   23|  1.21M|  }
_ZN5Exiv26XmpKey4ImplC2Ev:
 5224|   725k|  Impl() = default;                                                                             //!< Default constructor

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

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

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

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

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

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

_ZN4Safe3addIjEET_S1_S1_:
  137|  7.13k|T add(T summand_1, T summand_2) {
  138|  7.13k|  T res = 0;
  139|  7.13k|  if (Internal::builtin_add_overflow(summand_1, summand_2, res)) {
  ------------------
  |  Branch (139:7): [True: 26, False: 7.10k]
  ------------------
  140|     26|    throw std::overflow_error("Overflow in addition");
  141|     26|  }
  142|  7.10k|  return res;
  143|  7.13k|}
_ZN4Safe8Internal20builtin_add_overflowIjEEbT_S2_RS2_:
   96|  7.13k|bool builtin_add_overflow(T summand_1, T summand_2, T& result) {
   97|  7.13k|#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|  7.13k|    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|  7.13k|}
_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: 2, False: 2.97M]
  ------------------
  140|      2|    throw std::overflow_error("Overflow in addition");
  141|      2|  }
  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|  27.9k|T add(T summand_1, T summand_2) {
  138|  27.9k|  T res = 0;
  139|  27.9k|  if (Internal::builtin_add_overflow(summand_1, summand_2, res)) {
  ------------------
  |  Branch (139:7): [True: 2, False: 27.9k]
  ------------------
  140|      2|    throw std::overflow_error("Overflow in addition");
  141|      2|  }
  142|  27.9k|  return res;
  143|  27.9k|}
_ZN4Safe8Internal20builtin_add_overflowIlEEbT_S2_RS2_:
   96|  27.9k|bool builtin_add_overflow(T summand_1, T summand_2, T& result) {
   97|  27.9k|#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|  27.9k|    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|  27.9k|}

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

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

_ZN5Exiv28Internal14SigmaMakerNote15printStripLabelERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   71|    340|std::ostream& SigmaMakerNote::printStripLabel(std::ostream& os, const Value& value, const ExifData*) {
   72|    340|  std::string v = value.toString();
   73|    340|  if (auto pos = v.find(':'); pos != std::string::npos) {
  ------------------
  |  Branch (73:31): [True: 176, False: 164]
  ------------------
   74|    176|    if (v.at(pos + 1) == ' ')
  ------------------
  |  Branch (74:9): [True: 70, False: 106]
  ------------------
   75|     70|      ++pos;
   76|    176|    v = v.substr(pos + 1);
   77|    176|  }
   78|    340|  return os << v;
   79|    340|}
_ZN5Exiv28Internal14SigmaMakerNote11print0x0008ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   81|    534|std::ostream& SigmaMakerNote::print0x0008(std::ostream& os, const Value& value, const ExifData*) {
   82|    534|  std::string v = value.toString();
   83|    534|  if (v.empty()) {
  ------------------
  |  Branch (83:7): [True: 132, False: 402]
  ------------------
   84|    132|    return os;
   85|    132|  }
   86|    402|  switch (v.front()) {
   87|     76|    case 'P':
  ------------------
  |  Branch (87:5): [True: 76, False: 326]
  ------------------
   88|     76|      return os << _("Program");
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
   89|     46|    case 'A':
  ------------------
  |  Branch (89:5): [True: 46, False: 356]
  ------------------
   90|     46|      return os << _("Aperture priority");
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
   91|     32|    case 'S':
  ------------------
  |  Branch (91:5): [True: 32, False: 370]
  ------------------
   92|     32|      return os << _("Shutter priority");
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
   93|     16|    case 'M':
  ------------------
  |  Branch (93:5): [True: 16, False: 386]
  ------------------
   94|     16|      return os << _("Manual");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
   95|    232|    default:
  ------------------
  |  Branch (95:5): [True: 232, False: 170]
  ------------------
   96|    232|      return os << "(" << value << ")";
   97|    402|  }
   98|    402|}
_ZN5Exiv28Internal14SigmaMakerNote11print0x0009ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  100|    438|std::ostream& SigmaMakerNote::print0x0009(std::ostream& os, const Value& value, const ExifData*) {
  101|    438|  std::string v = value.toString();
  102|    438|  if (v.empty()) {
  ------------------
  |  Branch (102:7): [True: 132, False: 306]
  ------------------
  103|    132|    return os;
  104|    132|  }
  105|    306|  switch (v.front()) {
  106|     40|    case 'A':
  ------------------
  |  Branch (106:5): [True: 40, False: 266]
  ------------------
  107|     40|      return os << _("Average");
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  108|     56|    case 'C':
  ------------------
  |  Branch (108:5): [True: 56, False: 250]
  ------------------
  109|     56|      return os << _("Center");
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  110|     36|    case '8':
  ------------------
  |  Branch (110:5): [True: 36, False: 270]
  ------------------
  111|     36|      return os << _("8-Segment");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  112|    174|    default:
  ------------------
  |  Branch (112:5): [True: 174, False: 132]
  ------------------
  113|    174|      return os << "(" << value << ")";
  114|    306|  }
  115|    306|}

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

_ZN5Exiv28Internal13SonyMakerNote25printWhiteBalanceFineTuneERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  921|    100|std::ostream& SonyMakerNote::printWhiteBalanceFineTune(std::ostream& os, const Value& value, const ExifData*) {
  922|    100|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (922:7): [True: 50, False: 50]
  |  Branch (922:29): [True: 44, False: 6]
  ------------------
  923|     94|    return os << "(" << value << ")";
  924|       |
  925|       |  // Sony writes the tag as an unsignedLong but treat it as a signedLong. Source:
  926|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L681
  927|      6|  return os << static_cast<int32_t>(value.toUint32(0));
  928|    100|}
_ZN5Exiv28Internal13SonyMakerNote19printMultiBurstModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  930|    696|std::ostream& SonyMakerNote::printMultiBurstMode(std::ostream& os, const Value& value, const ExifData* metadata) {
  931|    696|  if (value.count() != 1 || value.typeId() != undefined)
  ------------------
  |  Branch (931:7): [True: 594, False: 102]
  |  Branch (931:29): [True: 102, False: 0]
  ------------------
  932|    696|    return os << "(" << value << ")";
  933|       |
  934|       |  // Some cameras do not set the type to undefined. Source:
  935|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L763
  936|       |
  937|      0|  return printMinoltaSonyBoolValue(os, value, metadata);
  938|    696|}
_ZN5Exiv28Internal13SonyMakerNote19printMultiBurstSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  940|    176|std::ostream& SonyMakerNote::printMultiBurstSize(std::ostream& os, const Value& value, const ExifData*) {
  941|    176|  if (value.count() != 1 || value.typeId() != unsignedShort)
  ------------------
  |  Branch (941:7): [True: 120, False: 56]
  |  Branch (941:29): [True: 50, False: 6]
  ------------------
  942|    170|    return os << "(" << value << ")";
  943|       |
  944|       |  // Some cameras do not set the type to unsignedShort. Source:
  945|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L771
  946|       |
  947|      6|  return os << value.toUint32(0);
  948|    176|}
_ZN5Exiv28Internal13SonyMakerNote15printAutoHDRStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  950|    410|std::ostream& SonyMakerNote::printAutoHDRStd(std::ostream& os, const Value& value, const ExifData* metadata) {
  951|    410|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (951:7): [True: 24, False: 386]
  |  Branch (951:29): [True: 46, False: 340]
  ------------------
  952|     70|    return os << "(" << value << ")";
  953|       |
  954|       |  // Sony writes the tag as an unsignedLong but treat it as 2 unsignedShort values. Source:
  955|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L887
  956|       |
  957|    340|  const auto v0 = value.toUint32(0);
  958|    340|  EXV_PRINT_TAG(sonyHDRStdPart1)(os, (v0 & 0x00ff), metadata);
  ------------------
  |  |  199|    340|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
  959|    340|  os << ", ";
  960|    340|  EXV_PRINT_TAG(sonyHDRStdPart2)(os, (v0 >> 16), metadata);
  ------------------
  |  |  199|    340|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
  961|       |
  962|    340|  return os;
  963|    410|}
_ZN5Exiv28Internal13SonyMakerNote16printWBShiftABGMERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  965|    324|std::ostream& SonyMakerNote::printWBShiftABGM(std::ostream& os, const Value& value, const ExifData*) {
  966|    324|  if (value.count() != 2 || value.typeId() != signedLong)
  ------------------
  |  Branch (966:7): [True: 36, False: 288]
  |  Branch (966:29): [True: 80, False: 208]
  ------------------
  967|    116|    return os << "(" << value << ")";
  968|       |
  969|       |  // Examples of Output:
  970|       |  // 1. "A/B: 0, G/M: 0"
  971|       |  // 2. "A/B: 1B, G/M: 2M"
  972|       |
  973|    208|  const auto v0 = value.toInt64(0);
  974|    208|  const auto v1 = value.toInt64(1);
  975|       |
  976|    208|  os << "A/B: ";
  977|    208|  if (v0 == 0) {
  ------------------
  |  Branch (977:7): [True: 30, False: 178]
  ------------------
  978|     30|    os << 0;
  979|    178|  } else if (v0 < 0) {
  ------------------
  |  Branch (979:14): [True: 94, False: 84]
  ------------------
  980|     94|    os << "A" << -v0;
  981|     94|  } else {
  982|     84|    os << "B" << v0;
  983|     84|  }
  984|       |
  985|    208|  os << ", G/M: ";
  986|    208|  if (v1 == 0)
  ------------------
  |  Branch (986:7): [True: 16, False: 192]
  ------------------
  987|     16|    return os << 0;
  988|       |
  989|    192|  if (v1 < 0)
  ------------------
  |  Branch (989:7): [True: 62, False: 130]
  ------------------
  990|     62|    return os << "G" << -v1;
  991|       |
  992|    130|  return os << "M" << v1;
  993|    192|}
_ZN5Exiv28Internal13SonyMakerNote15printFocusMode2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  995|  2.47k|std::ostream& SonyMakerNote::printFocusMode2(std::ostream& os, const Value& value, const ExifData* metadata) {
  996|  2.47k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (996:7): [True: 211, False: 2.26k]
  |  Branch (996:29): [True: 56, False: 2.21k]
  |  Branch (996:63): [True: 1.09k, False: 1.12k]
  ------------------
  997|  1.35k|    return os << "(" << value << ")";
  998|       |
  999|       |  // Tag only valid for certain camera models. See
 1000|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1123
 1001|  1.12k|  std::string model;
 1002|  1.12k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1002:7): [True: 231, False: 891]
  ------------------
 1003|    231|    return os << "(" << value << ")";
 1004|       |
 1005|    891|  const auto v0 = value.toUint32(0);
 1006|       |
 1007|    891|  constexpr std::array models{"DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2"};
 1008|    891|  if (!model.starts_with("DSC-") ||
  ------------------
  |  Branch (1008:7): [True: 280, False: 611]
  ------------------
 1009|    611|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1009:7): [True: 440, False: 171]
  ------------------
 1010|    720|    return EXV_PRINT_TAG(sonyFocusMode2)(os, v0, metadata);
  ------------------
  |  |  199|    720|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1011|       |
 1012|    171|  return os << _("n/a");
  ------------------
  |  |   40|    171|#define _(String) (String)
  ------------------
 1013|    891|}
_ZN5Exiv28Internal13SonyMakerNote22printAFAreaModeSettingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1015|  5.35k|std::ostream& SonyMakerNote::printAFAreaModeSetting(std::ostream& os, const Value& value, const ExifData* metadata) {
 1016|  5.35k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1016:7): [True: 415, False: 4.93k]
  |  Branch (1016:29): [True: 96, False: 4.84k]
  |  Branch (1016:63): [True: 1.03k, False: 3.80k]
  ------------------
 1017|  1.54k|    return os << "(" << value << ")";
 1018|       |
 1019|       |  // Tag only valid for certain camera models. See
 1020|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1139
 1021|  3.80k|  std::string model;
 1022|  3.80k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1022:7): [True: 143, False: 3.66k]
  ------------------
 1023|    143|    return os << "(" << value << ")";
 1024|       |
 1025|  3.66k|  const auto v0 = value.toUint32(0);
 1026|       |
 1027|  3.66k|  for (auto m : {"SLT-", "HV"})
  ------------------
  |  Branch (1027:15): [True: 6.71k, False: 3.00k]
  ------------------
 1028|  6.71k|    if (model.starts_with(m))
  ------------------
  |  Branch (1028:9): [True: 659, False: 6.05k]
  ------------------
 1029|    659|      return EXV_PRINT_TAG(sonyAFAreaModeSettingSet1)(os, v0, metadata);
  ------------------
  |  |  199|    659|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1030|       |
 1031|  3.00k|  constexpr std::array models2{
 1032|  3.00k|      "NEX-", "ILCE-", "ILME-", "DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2",
 1033|  3.00k|  };
 1034|  3.00k|  if (std::any_of(models2.begin(), models2.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1034:7): [True: 1.07k, False: 1.92k]
  ------------------
 1035|  1.07k|    return EXV_PRINT_TAG(sonyAFAreaModeSettingSet2)(os, v0, metadata);
  ------------------
  |  |  199|  1.07k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1036|       |
 1037|  1.92k|  if (model.starts_with("ILCA-"))
  ------------------
  |  Branch (1037:7): [True: 1.45k, False: 469]
  ------------------
 1038|  1.45k|    return EXV_PRINT_TAG(sonyAFAreaModeSettingSet3)(os, v0, metadata);
  ------------------
  |  |  199|  1.45k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1039|       |
 1040|    469|  return os << _("n/a");
  ------------------
  |  |   40|    469|#define _(String) (String)
  ------------------
 1041|  1.92k|}
_ZN5Exiv28Internal13SonyMakerNote25printFlexibleSpotPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1043|  2.16k|std::ostream& SonyMakerNote::printFlexibleSpotPosition(std::ostream& os, const Value& value, const ExifData* metadata) {
 1044|  2.16k|  if (value.count() != 2 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1044:7): [True: 146, False: 2.02k]
  |  Branch (1044:29): [True: 54, False: 1.96k]
  |  Branch (1044:64): [True: 984, False: 984]
  ------------------
 1045|  1.18k|    return os << "(" << value << ")";
 1046|       |
 1047|       |  // Tag only valid for certain camera models. See
 1048|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1189
 1049|    984|  std::string model;
 1050|    984|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1050:7): [True: 178, False: 806]
  ------------------
 1051|    178|    return os << "(" << value << ")";
 1052|       |
 1053|    806|  constexpr std::array models{
 1054|    806|      "NEX-", "ILCE-", "ILME-", "DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2",
 1055|    806|  };
 1056|    806|  if (std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1056:7): [True: 493, False: 313]
  ------------------
 1057|    493|    return os << value.toUint32(0) << ", " << value.toUint32(1);
 1058|       |
 1059|    313|  return os << _("n/a");
  ------------------
  |  |   40|    313|#define _(String) (String)
  ------------------
 1060|    806|}
_ZN5Exiv28Internal13SonyMakerNote20printAFPointSelectedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1062|  10.2k|std::ostream& SonyMakerNote::printAFPointSelected(std::ostream& os, const Value& value, const ExifData* metadata) {
 1063|  10.2k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1063:7): [True: 70, False: 10.1k]
  |  Branch (1063:29): [True: 466, False: 9.72k]
  |  Branch (1063:63): [True: 4.86k, False: 4.86k]
  ------------------
 1064|  5.39k|    return os << "(" << value << ")";
 1065|       |
 1066|       |  // Tag only valid for certain camera models. See
 1067|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1203
 1068|  4.86k|  std::string model;
 1069|  4.86k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1069:7): [True: 311, False: 4.55k]
  ------------------
 1070|    311|    return os << "(" << value << ")";
 1071|       |
 1072|  4.55k|  uint32_t aFAreaModeSetting = 0;
 1073|  4.55k|  const auto status = getAFAreaModeSetting(metadata, aFAreaModeSetting);
 1074|       |
 1075|  4.55k|  for (auto m : {"SLT-", "HV-"})
  ------------------
  |  Branch (1075:15): [True: 8.37k, False: 3.76k]
  ------------------
 1076|  8.37k|    if (model.starts_with(m))
  ------------------
  |  Branch (1076:9): [True: 788, False: 7.58k]
  ------------------
 1077|    788|      return EXV_PRINT_TAG(sonyAFPointSelectedSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    788|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1078|       |
 1079|  3.76k|  for (auto m : {"ILCE-", "ILME-"})
  ------------------
  |  Branch (1079:15): [True: 7.44k, False: 3.48k]
  ------------------
 1080|  7.44k|    if (model.starts_with(m) && status && aFAreaModeSetting == 4)
  ------------------
  |  Branch (1080:9): [True: 867, False: 6.57k]
  |  Branch (1080:33): [True: 375, False: 492]
  |  Branch (1080:43): [True: 280, False: 95]
  ------------------
 1081|    280|      return EXV_PRINT_TAG(sonyAFPointSelectedSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    280|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1082|       |
 1083|  3.48k|  for (auto m : {"ILCA-68", "ILCA-77M2"})
  ------------------
  |  Branch (1083:15): [True: 6.47k, False: 2.78k]
  ------------------
 1084|  6.47k|    if (model.starts_with(m) && status && aFAreaModeSetting != 8)
  ------------------
  |  Branch (1084:9): [True: 1.14k, False: 5.33k]
  |  Branch (1084:33): [True: 843, False: 299]
  |  Branch (1084:43): [True: 695, False: 148]
  ------------------
 1085|    695|      return EXV_PRINT_TAG(sonyAFPointSelectedSet2)(os, value, metadata);
  ------------------
  |  |  199|    695|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1086|       |
 1087|  2.78k|  if (model.starts_with("ILCA-99M2") && status && aFAreaModeSetting != 8)
  ------------------
  |  Branch (1087:7): [True: 634, False: 2.15k]
  |  Branch (1087:41): [True: 552, False: 82]
  |  Branch (1087:51): [True: 377, False: 175]
  ------------------
 1088|    377|    return EXV_PRINT_TAG(sonyAFPointSelectedSet3)(os, value, metadata);
  ------------------
  |  |  199|    377|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1089|       |
 1090|  2.41k|  if (model.starts_with("ILCA-") && status && aFAreaModeSetting == 8)
  ------------------
  |  Branch (1090:7): [True: 806, False: 1.60k]
  |  Branch (1090:37): [True: 423, False: 383]
  |  Branch (1090:47): [True: 323, False: 100]
  ------------------
 1091|    323|    return EXV_PRINT_TAG(sonyAFPointSelectedSet4)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    323|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1092|       |
 1093|  2.08k|  for (auto m : {"NEX-", "ILCE-", "ILME-"})
  ------------------
  |  Branch (1093:15): [True: 5.24k, False: 1.22k]
  ------------------
 1094|  5.24k|    if (model.starts_with(m))
  ------------------
  |  Branch (1094:9): [True: 866, False: 4.38k]
  ------------------
 1095|    866|      return EXV_PRINT_TAG(sonyAFPointSelectedSet5)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    866|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1096|       |
 1097|  1.22k|  return os << _("n/a");
  ------------------
  |  |   40|  1.22k|#define _(String) (String)
  ------------------
 1098|  2.08k|}
_ZN5Exiv28Internal13SonyMakerNote17printAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1100|  1.25k|std::ostream& SonyMakerNote::printAFPointsUsed(std::ostream& os, const Value& value, const ExifData* metadata) {
 1101|  1.25k|  if (value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1101:7): [True: 66, False: 1.18k]
  |  Branch (1101:41): [True: 592, False: 592]
  ------------------
 1102|    658|    return os << "(" << value << ")";
 1103|       |
 1104|    592|  std::string model;
 1105|    592|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1105:7): [True: 81, False: 511]
  ------------------
 1106|     81|    return os << "(" << value << ")";
 1107|       |
 1108|    511|  constexpr std::array models1{"ILCA-", "DSC-"};
 1109|    511|  if (std::none_of(models1.begin(), models1.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1109:7): [True: 190, False: 321]
  ------------------
 1110|    190|    return EXV_PRINT_TAG_BITLIST_ALL_LE(sonyAFPointsUsedSet1)(os, value, metadata);
  ------------------
  |  |  289|    190|#define EXV_PRINT_TAG_BITLIST_ALL_LE(array) printTagBitlistAllLE<std::size(array), array>
  ------------------
 1111|       |
 1112|    321|  for (auto m : {"ILCA-68", "ILCA-77M2"})
  ------------------
  |  Branch (1112:15): [True: 542, False: 133]
  ------------------
 1113|    542|    if (model.starts_with(m))
  ------------------
  |  Branch (1113:9): [True: 188, False: 354]
  ------------------
 1114|    188|      return EXV_PRINT_TAG_BITLIST_ALL_LE(sonyAFPointsUsedSet2)(os, value, metadata);
  ------------------
  |  |  289|    188|#define EXV_PRINT_TAG_BITLIST_ALL_LE(array) printTagBitlistAllLE<std::size(array), array>
  ------------------
 1115|       |
 1116|    133|  return os << _("n/a");
  ------------------
  |  |   40|    133|#define _(String) (String)
  ------------------
 1117|    321|}
_ZN5Exiv28Internal13SonyMakerNote15printAFTrackingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1119|  2.48k|std::ostream& SonyMakerNote::printAFTracking(std::ostream& os, const Value& value, const ExifData* metadata) {
 1120|  2.48k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1120:7): [True: 52, False: 2.42k]
  |  Branch (1120:29): [True: 132, False: 2.29k]
  |  Branch (1120:63): [True: 1.14k, False: 1.14k]
  ------------------
 1121|  1.33k|    return os << "(" << value << ")";
 1122|       |
 1123|       |  // Tag only valid for certain camera models. See
 1124|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1353
 1125|  1.14k|  std::string model;
 1126|  1.14k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1126:7): [True: 182, False: 966]
  ------------------
 1127|    182|    return os << "(" << value << ")";
 1128|       |
 1129|    966|  constexpr std::array models{"DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2"};
 1130|    966|  if (!model.starts_with("DSC-") ||
  ------------------
  |  Branch (1130:7): [True: 219, False: 747]
  ------------------
 1131|    747|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1131:7): [True: 492, False: 255]
  ------------------
 1132|    711|    return EXV_PRINT_TAG(sonyAFTracking)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    711|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1133|       |
 1134|    255|  return os << _("n/a");
  ------------------
  |  |   40|    255|#define _(String) (String)
  ------------------
 1135|    966|}
_ZN5Exiv28Internal13SonyMakerNote27printFocalPlaneAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1137|     82|std::ostream& SonyMakerNote::printFocalPlaneAFPointsUsed(std::ostream& os, const Value& value, const ExifData*) {
 1138|     82|  if (value.typeId() != unsignedByte)
  ------------------
  |  Branch (1138:7): [True: 28, False: 54]
  ------------------
 1139|     28|    return os << "(" << value << ")";
 1140|       |
 1141|     54|  if (value.toUint32(0) == 0)
  ------------------
  |  Branch (1141:7): [True: 4, False: 50]
  ------------------
 1142|      4|    return os << _("None");
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
 1143|       |
 1144|     50|  return os << "(" << value << ")";
 1145|     54|}
_ZN5Exiv28Internal13SonyMakerNote23printWBShiftABGMPreciseERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1147|    304|std::ostream& SonyMakerNote::printWBShiftABGMPrecise(std::ostream& os, const Value& value, const ExifData*) {
 1148|    304|  if (value.count() != 2 || value.typeId() != signedLong)
  ------------------
  |  Branch (1148:7): [True: 16, False: 288]
  |  Branch (1148:29): [True: 212, False: 76]
  ------------------
 1149|    228|    return os << "(" << value << ")";
 1150|       |
 1151|     76|  std::ios::fmtflags f(os.flags());
 1152|       |
 1153|     76|  const auto temp0 = static_cast<double>(value.toInt64(0)) / 1000.0;
 1154|     76|  const auto temp1 = static_cast<double>(value.toInt64(1)) / 1000.0;
 1155|       |
 1156|     76|  os << "A/B: ";
 1157|     76|  if (temp0 == 0) {
  ------------------
  |  Branch (1157:7): [True: 6, False: 70]
  ------------------
 1158|      6|    os << 0;
 1159|     70|  } else if (temp0 < 0) {
  ------------------
  |  Branch (1159:14): [True: 56, False: 14]
  ------------------
 1160|     56|    os << "A" << std::fixed << std::setprecision(2) << -temp0;
 1161|     56|  } else {
 1162|     14|    os << "B" << std::fixed << std::setprecision(2) << temp0;
 1163|     14|  }
 1164|     76|  os << ", G/M: ";
 1165|     76|  if (temp1 == 0) {
  ------------------
  |  Branch (1165:7): [True: 40, False: 36]
  ------------------
 1166|     40|    os << 0;
 1167|     40|  } else if (temp1 < 0) {
  ------------------
  |  Branch (1167:14): [True: 14, False: 22]
  ------------------
 1168|     14|    os << "G" << std::fixed << std::setprecision(2) << -temp1;
 1169|     22|  } else {
 1170|     22|    os << "M" << std::fixed << std::setprecision(2) << temp1;
 1171|     22|  }
 1172|       |
 1173|     76|  os.flags(f);
 1174|     76|  return os;
 1175|    304|}
_ZN5Exiv28Internal13SonyMakerNote31printExposureStandardAdjustmentERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1177|    204|std::ostream& SonyMakerNote::printExposureStandardAdjustment(std::ostream& os, const Value& value, const ExifData*) {
 1178|    204|  if (value.count() != 1 || value.typeId() != signedRational) {
  ------------------
  |  Branch (1178:7): [True: 50, False: 154]
  |  Branch (1178:29): [True: 40, False: 114]
  ------------------
 1179|     90|    return os << "(" << value << ")";
 1180|     90|  }
 1181|       |
 1182|    114|  const auto [r, s] = value.toRational();
 1183|    114|  return os << stringFormat("{:.1f}", static_cast<double>(r) / static_cast<double>(s));
  ------------------
  |  |   18|    114|#define stringFormat std::format
  ------------------
 1184|    204|}
_ZN5Exiv28Internal13SonyMakerNote19printPixelShiftInfoERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1186|    258|std::ostream& SonyMakerNote::printPixelShiftInfo(std::ostream& os, const Value& value, const ExifData*) {
 1187|    258|  if (value.count() != 6 || value.typeId() != undefined)
  ------------------
  |  Branch (1187:7): [True: 128, False: 130]
  |  Branch (1187:29): [True: 6, False: 124]
  ------------------
 1188|    134|    return os << "(" << value << ")";
 1189|       |
 1190|       |  // Tag format:
 1191|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1504
 1192|    124|  if (value.toString() == "0 0 0 0 0 0")
  ------------------
  |  Branch (1192:7): [True: 30, False: 94]
  ------------------
 1193|     30|    return os << _("n/a");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 1194|       |
 1195|       |  // Convert from little endian format
 1196|     94|  auto groupID = (value.toUint32(3) << 24) + (value.toUint32(2) << 16) + (value.toUint32(1) << 8) + value.toUint32(0);
 1197|       |
 1198|     94|  return os << stringFormat("Group {:02}{:02}{:02}{:02}, Shot {}/{} (0x{:x})", (groupID >> 17) & 0x1f,
  ------------------
  |  |   18|     94|#define stringFormat std::format
  ------------------
 1199|     94|                            (groupID >> 12) & 0x1f, (groupID >> 6) & 0x3f, groupID & 0x3f, value.toUint32(4),
 1200|     94|                            value.toUint32(5), (groupID >> 22));
 1201|    124|}
_ZN5Exiv28Internal13SonyMakerNote19printFocusFrameSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1203|    176|std::ostream& SonyMakerNote::printFocusFrameSize(std::ostream& os, const Value& value, const ExifData*) {
 1204|    176|  if (value.count() != 6 || value.typeId() != undefined)
  ------------------
  |  Branch (1204:7): [True: 72, False: 104]
  |  Branch (1204:29): [True: 22, False: 82]
  ------------------
 1205|     94|    return os << "(" << value << ")";
 1206|       |
 1207|       |  // Tag is written as undefined type but is used as unsignedShort. See
 1208|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1578
 1209|       |
 1210|     82|  if (value.toUint32(4) == 0 && value.toUint32(5) == 0)
  ------------------
  |  Branch (1210:7): [True: 52, False: 30]
  |  Branch (1210:33): [True: 30, False: 22]
  ------------------
 1211|     30|    return os << _("n/a");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 1212|       |
 1213|       |  // Convert from little endian format
 1214|     52|  return os << ((value.toUint32(1) << 8) + value.toUint32(0)) << "x" << ((value.toUint32(3) << 8) + value.toUint32(2));
 1215|     82|}
_ZN5Exiv28Internal13SonyMakerNote21printColorTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1217|    250|std::ostream& SonyMakerNote::printColorTemperature(std::ostream& os, const Value& value, const ExifData*) {
 1218|    250|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1218:7): [True: 50, False: 200]
  |  Branch (1218:29): [True: 32, False: 168]
  ------------------
 1219|     82|    return os << "(" << value << ")";
 1220|       |
 1221|    168|  auto v0 = value.toUint32(0);
 1222|    168|  if (v0 == 0)
  ------------------
  |  Branch (1222:7): [True: 94, False: 74]
  ------------------
 1223|     94|    return os << _("Auto");
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
 1224|       |
 1225|     74|  if (v0 == 0xffffffff)
  ------------------
  |  Branch (1225:7): [True: 14, False: 60]
  ------------------
 1226|     14|    return os << _("n/a");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 1227|       |
 1228|     60|  return os << v0 << " K";
 1229|     74|}
_ZN5Exiv28Internal13SonyMakerNote28printColorCompensationFilterERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1231|    162|std::ostream& SonyMakerNote::printColorCompensationFilter(std::ostream& os, const Value& value, const ExifData*) {
 1232|    162|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1232:7): [True: 88, False: 74]
  |  Branch (1232:29): [True: 14, False: 60]
  ------------------
 1233|    102|    return os << "(" << value << ")";
 1234|       |
 1235|       |  // Tag is written as an unsignedLong but used as a signedLong. See
 1236|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2093
 1237|       |
 1238|     60|  int64_t temp = static_cast<int32_t>(value.toUint32(0));
 1239|     60|  os << "G/M: ";
 1240|     60|  if (temp == 0)
  ------------------
  |  Branch (1240:7): [True: 20, False: 40]
  ------------------
 1241|     20|    return os << "0";
 1242|       |
 1243|     40|  if (temp < 0)
  ------------------
  |  Branch (1243:7): [True: 10, False: 30]
  ------------------
 1244|     10|    return os << "G" << -temp;
 1245|       |
 1246|     30|  return os << "M" << temp;
 1247|     40|}
_ZN5Exiv28Internal13SonyMakerNote13printLensSpecERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1288|    796|std::ostream& SonyMakerNote::printLensSpec(std::ostream& os, const Value& value, const ExifData*) {
 1289|    796|  if (value.count() != 8 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (1289:7): [True: 20, False: 776]
  |  Branch (1289:29): [True: 46, False: 730]
  ------------------
 1290|     66|    return os << "(" << value << ")";
 1291|       |
 1292|       |  // Tag uses 8 bytes in the format:
 1293|       |  // <Flgs 1> <Flgs 2> <Focal len min> <Focal len max 1> <Focal len max 2> <Aperture min> <Aperture max> <Flags
 1294|       |  // 3>
 1295|       |  //   (0)       (1)         (2)              (3)               (4)             (5)            (6)          (7)
 1296|       |  //
 1297|       |  // Bytes 2-6 are each interpreted as 2 nibbles which are used as decimal. Nibbles have a value less than 10.
 1298|       |  // e.g., 36 == 0x24, converts to "2" and "4".
 1299|       |  // Optional elements (==0) are <Flgs 1>, <Flgs 2>, <Focal len max 1>, <Focal len max 2>, <Aperture max> and
 1300|       |  // <Flgs 3>
 1301|       |  //
 1302|       |  // Values for the tag are only set with compatible lenses, otherwise all 8 are set to 0.
 1303|       |  //
 1304|       |  // Examples of final output:
 1305|       |  // 1. "FE 90mm F2.8 Macro G OSS"
 1306|       |  // 2. "E PZ 16-50mm F3.5-5.6 OSS"
 1307|       |  // 3. "DT 18-55mm F3.5-5.6 SAM"
 1308|       |  // 4. "28-100mm F1.8-4.9"
 1309|       |  // 5. "35mm F2.0"
 1310|       |  //
 1311|       |  // See:
 1312|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2170
 1313|       |
 1314|    730|  const auto focalLenMin = value.toUint32(2);
 1315|    730|  const auto focalLenMax1 = value.toUint32(3);
 1316|    730|  const auto focalLenMax2 = value.toUint32(4);
 1317|    730|  const auto appertureMin = value.toUint32(5);
 1318|    730|  const auto apertureMax = value.toUint32(6);
 1319|       |
 1320|    730|  if (value.toString() == "0 0 0 0 0 0 0 0" || focalLenMin == 0 || appertureMin == 0)
  ------------------
  |  Branch (1320:7): [True: 28, False: 702]
  |  Branch (1320:7): [True: 174, False: 556]
  |  Branch (1320:48): [True: 98, False: 604]
  |  Branch (1320:68): [True: 48, False: 556]
  ------------------
 1321|    174|    return os << _("Unknown");
  ------------------
  |  |   40|    174|#define _(String) (String)
  ------------------
 1322|       |
 1323|    556|  std::string flagsStart;
 1324|    556|  std::string flagsEnd;
 1325|    556|  findLensSpecFlags(value, flagsStart, flagsEnd);
 1326|       |
 1327|       |  // Output <Flgs 1>
 1328|    556|  if (!flagsStart.empty())
  ------------------
  |  Branch (1328:7): [True: 496, False: 60]
  ------------------
 1329|    496|    os << flagsStart << " ";
 1330|       |
 1331|       |  // Output <Focal len min>
 1332|    556|  auto temp = ((focalLenMin >> 4) & 0x0f);
 1333|    556|  if (temp != 0)  // Remove leading zero
  ------------------
  |  Branch (1333:7): [True: 386, False: 170]
  ------------------
 1334|    386|    os << temp;
 1335|       |
 1336|    556|  os << (focalLenMin & 0x0f);
 1337|       |
 1338|    556|  if (focalLenMax1 != 0 || focalLenMax2 != 0) {
  ------------------
  |  Branch (1338:7): [True: 420, False: 136]
  |  Branch (1338:28): [True: 72, False: 64]
  ------------------
 1339|    478|    os << "-";
 1340|    478|  }
 1341|       |
 1342|    556|  if (focalLenMax1 != 0) {
  ------------------
  |  Branch (1342:7): [True: 406, False: 150]
  ------------------
 1343|       |    // Output <Focal len max 1>
 1344|    406|    temp = ((focalLenMax1 >> 4) & 0x0f);
 1345|    406|    if (temp != 0)  // Remove leading zero
  ------------------
  |  Branch (1345:9): [True: 284, False: 122]
  ------------------
 1346|    284|      os << temp;
 1347|    406|    os << (focalLenMax1 & 0x0f);
 1348|       |
 1349|       |    // Output <Focal len max 2>
 1350|    406|    os << ((focalLenMax2 >> 4) & 0x0f) << (focalLenMax2 & 0x0f);
 1351|    406|  } else {
 1352|       |    // Output <Focal len max 2>
 1353|    150|    if (focalLenMax2 != 0)
  ------------------
  |  Branch (1353:9): [True: 72, False: 78]
  ------------------
 1354|     72|      os << ((focalLenMax2 >> 4) & 0x0f) << (focalLenMax2 & 0x0f);
 1355|    150|  }
 1356|       |
 1357|    556|  os << "mm";
 1358|       |
 1359|       |  // Output <Aperture min>
 1360|    556|  os << " F" << ((appertureMin >> 4) & 0x0f) << "." << (appertureMin & 0x0f);
 1361|       |
 1362|       |  // Output <Aperture max>
 1363|    556|  if (apertureMax != 0)
  ------------------
  |  Branch (1363:7): [True: 378, False: 178]
  ------------------
 1364|    378|    os << "-" << ((apertureMax >> 4) & 0x0f) << "." << (apertureMax & 0x0f);
 1365|       |
 1366|       |  // Output <Flags 3>
 1367|    556|  if (!flagsEnd.empty())
  ------------------
  |  Branch (1367:7): [True: 470, False: 86]
  ------------------
 1368|    470|    os << " " << flagsEnd;
 1369|    556|  return os;
 1370|    730|}
_ZN5Exiv28Internal13SonyMakerNote14printImageSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1372|    152|std::ostream& SonyMakerNote::printImageSize(std::ostream& os, const Value& value, const ExifData*) {
 1373|    152|  if (value.count() != 2 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1373:7): [True: 120, False: 32]
  |  Branch (1373:29): [True: 18, False: 14]
  ------------------
 1374|    138|    return os << "(" << value << ")";
 1375|       |
 1376|       |  // Values are stored as Height then Width
 1377|     14|  return os << value.toString(1) << " x " << value.toString(0);
 1378|    152|}
_ZN5Exiv28Internal13SonyMakerNote14printFocusModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1380|    550|std::ostream& SonyMakerNote::printFocusMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1381|    550|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1381:7): [True: 236, False: 314]
  |  Branch (1381:29): [True: 40, False: 274]
  |  Branch (1381:64): [True: 137, False: 137]
  ------------------
 1382|    413|    return os << "(" << value << ")";
 1383|       |
 1384|       |  // Only valid for certain models of camera. See
 1385|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2255
 1386|       |
 1387|    137|  if (std::string metaVersion; !getMetaVersion(metadata, metaVersion) || metaVersion != "DC7303320222000")
  ------------------
  |  Branch (1387:32): [True: 92, False: 45]
  |  Branch (1387:74): [True: 29, False: 16]
  ------------------
 1388|    121|    return EXV_PRINT_TAG(sonyFocusMode)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    121|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1389|       |
 1390|     16|  return os << _("n/a");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
 1391|    137|}
_ZN5Exiv28Internal13SonyMakerNote11printAFModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1393|    868|std::ostream& SonyMakerNote::printAFMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1394|    868|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1394:7): [True: 28, False: 840]
  |  Branch (1394:29): [True: 26, False: 814]
  |  Branch (1394:64): [True: 407, False: 407]
  ------------------
 1395|    461|    return os << "(" << value << ")";
 1396|       |
 1397|       |  // Only valid for certain models of camera. See
 1398|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2275
 1399|    407|  if (std::string metaVersion; !getMetaVersion(metadata, metaVersion) || metaVersion != "DC7303320222000")
  ------------------
  |  Branch (1399:32): [True: 154, False: 253]
  |  Branch (1399:74): [True: 64, False: 189]
  ------------------
 1400|    218|    return EXV_PRINT_TAG(sonyAFModeSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    218|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1401|       |
 1402|    189|  if (uint32_t focusMode2 = 0; getFocusMode2(metadata, focusMode2) && focusMode2 != 0)
  ------------------
  |  Branch (1402:32): [True: 135, False: 54]
  |  Branch (1402:71): [True: 119, False: 16]
  ------------------
 1403|    119|    return EXV_PRINT_TAG(sonyAFModeSet2)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    119|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1404|       |
 1405|     70|  return os << _("n/a");
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
 1406|    189|}
_ZN5Exiv28Internal13SonyMakerNote15printFocusMode3ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1408|    912|std::ostream& SonyMakerNote::printFocusMode3(std::ostream& os, const Value& value, const ExifData* metadata) {
 1409|    912|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1409:7): [True: 30, False: 882]
  |  Branch (1409:29): [True: 218, False: 664]
  |  Branch (1409:64): [True: 332, False: 332]
  ------------------
 1410|    580|    return os << "(" << value << ")";
 1411|       |
 1412|       |  // Only valid for certain models of camera. See
 1413|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2411
 1414|    332|  if (std::string metaVersion; getMetaVersion(metadata, metaVersion) && metaVersion == "DC7303320222000")
  ------------------
  |  Branch (1414:32): [True: 192, False: 140]
  |  Branch (1414:73): [True: 46, False: 146]
  ------------------
 1415|     46|    return EXV_PRINT_TAG(sonyFocusMode3)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     46|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1416|       |
 1417|    286|  return os << _("n/a");
  ------------------
  |  |   40|    286|#define _(String) (String)
  ------------------
 1418|    332|}
_ZN5Exiv28Internal13SonyMakerNote27printHighISONoiseReduction2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1421|  1.06k|                                                         const ExifData* metadata) {
 1422|  1.06k|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1422:7): [True: 16, False: 1.04k]
  |  Branch (1422:29): [True: 64, False: 980]
  |  Branch (1422:64): [True: 490, False: 490]
  ------------------
 1423|    570|    return os << "(" << value << ")";
 1424|       |
 1425|       |  // Only valid for certain models of camera. See
 1426|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2437
 1427|    490|  std::string model;
 1428|    490|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1428:7): [True: 74, False: 416]
  ------------------
 1429|     74|    return os << "(" << value << ")";
 1430|       |
 1431|    416|  if (model.starts_with("DSC-") || model.starts_with("Stellar"))
  ------------------
  |  Branch (1431:7): [True: 216, False: 200]
  |  Branch (1431:36): [True: 18, False: 182]
  ------------------
 1432|    234|    return EXV_PRINT_TAG(sonyHighISONoiseReduction2)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    234|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1433|       |
 1434|    182|  return os << _("n/a");
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
 1435|    416|}
_ZN5Exiv28Internal13SonyMakerNote30printSony2FpAmbientTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1872|    276|                                                            const ExifData* metadata) {
 1873|    276|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1873:7): [True: 0, False: 276]
  |  Branch (1873:29): [True: 138, False: 138]
  ------------------
 1874|    138|    return os << "(" << value << ")";
 1875|       |
 1876|    138|  auto pos = metadata->findKey(ExifKey("Exif.Sony2Fp.0x0002"));
 1877|    138|  if (pos != metadata->end() && pos->count() == 1 && pos->toInt64() == 255)
  ------------------
  |  Branch (1877:7): [True: 138, False: 0]
  |  Branch (1877:7): [True: 30, False: 108]
  |  Branch (1877:33): [True: 138, False: 0]
  |  Branch (1877:54): [True: 30, False: 108]
  ------------------
 1878|     30|    return os << value << " °C";
 1879|       |
 1880|    108|  return os << N_("n/a");
  ------------------
  |  |   41|    108|#define N_(String) String
  ------------------
 1881|    138|}
_ZN5Exiv28Internal13SonyMakerNote21printSony2FpFocusModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1883|    262|std::ostream& SonyMakerNote::printSony2FpFocusMode(std::ostream& os, const Value& value, const ExifData*) {
 1884|    262|  if (value.count() != 1)
  ------------------
  |  Branch (1884:7): [True: 0, False: 262]
  ------------------
 1885|      0|    return os << value;
 1886|       |
 1887|    262|  const auto val = (value.toInt64() & 0x7F);
 1888|    262|  switch (val) {
  ------------------
  |  Branch (1888:11): [True: 160, False: 102]
  ------------------
 1889|     72|    case 0:
  ------------------
  |  Branch (1889:5): [True: 72, False: 190]
  ------------------
 1890|     72|      return os << N_("Manual");
  ------------------
  |  |   41|     72|#define N_(String) String
  ------------------
 1891|     24|    case 2:
  ------------------
  |  Branch (1891:5): [True: 24, False: 238]
  ------------------
 1892|     24|      return os << N_("AF-S");
  ------------------
  |  |   41|     24|#define N_(String) String
  ------------------
 1893|     42|    case 3:
  ------------------
  |  Branch (1893:5): [True: 42, False: 220]
  ------------------
 1894|     42|      return os << N_("AF-C");
  ------------------
  |  |   41|     42|#define N_(String) String
  ------------------
 1895|     12|    case 4:
  ------------------
  |  Branch (1895:5): [True: 12, False: 250]
  ------------------
 1896|     12|      return os << N_("AF-A");
  ------------------
  |  |   41|     12|#define N_(String) String
  ------------------
 1897|     10|    case 6:
  ------------------
  |  Branch (1897:5): [True: 10, False: 252]
  ------------------
 1898|     10|      return os << N_("DMF");
  ------------------
  |  |   41|     10|#define N_(String) String
  ------------------
 1899|    262|  }
 1900|       |
 1901|    102|  return os << "(" << val << ")";
 1902|    262|}
_ZN5Exiv28Internal13SonyMakerNote26printSony2FpFocusPosition2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1905|    262|                                                        const ExifData* metadata) {
 1906|    262|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1906:7): [True: 0, False: 262]
  |  Branch (1906:29): [True: 131, False: 131]
  ------------------
 1907|    131|    return os << "(" << value << ")";
 1908|       |
 1909|    131|  std::string model;
 1910|    131|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1910:7): [True: 57, False: 74]
  ------------------
 1911|     57|    return os << "(" << value << ")";
 1912|       |
 1913|       |  // Ranges of models that do not support this tag
 1914|     74|  for (const auto& m : {"DSC-", "Stellar"})
  ------------------
  |  Branch (1914:22): [True: 124, False: 43]
  ------------------
 1915|    124|    if (model.starts_with(m))
  ------------------
  |  Branch (1915:9): [True: 31, False: 93]
  ------------------
 1916|     31|      return os << N_("n/a");
  ------------------
  |  |   41|     31|#define N_(String) String
  ------------------
 1917|       |
 1918|     43|  const auto val = value.toInt64();
 1919|     43|  if (val == 255)
  ------------------
  |  Branch (1919:7): [True: 3, False: 40]
  ------------------
 1920|      3|    return os << N_("Infinity");
  ------------------
  |  |   41|      3|#define N_(String) String
  ------------------
 1921|       |
 1922|     40|  return os << val;
 1923|     43|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc1CameraTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1935|     70|                                                             const ExifData* metadata) {
 1936|     70|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1936:7): [True: 0, False: 70]
  |  Branch (1936:29): [True: 35, False: 35]
  ------------------
 1937|     35|    return os << "(" << value << ")";
 1938|       |
 1939|     35|  auto pos = metadata->findKey(ExifKey("Exif.SonyMisc1.0x0004"));
 1940|     35|  if (pos != metadata->end() && pos->count() == 1 && pos->toInt64() != 0 && pos->toInt64() < 100)
  ------------------
  |  Branch (1940:7): [True: 35, False: 0]
  |  Branch (1940:7): [True: 8, False: 27]
  |  Branch (1940:33): [True: 35, False: 0]
  |  Branch (1940:54): [True: 22, False: 13]
  |  Branch (1940:77): [True: 8, False: 14]
  ------------------
 1941|      8|    return os << value << " °C";
 1942|       |
 1943|     27|  return os << N_("n/a");
  ------------------
  |  |   41|     27|#define N_(String) String
  ------------------
 1944|     35|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc2bLensZoomPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1999|     70|                                                             const ExifData* metadata) {
 2000|     70|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (2000:7): [True: 0, False: 70]
  |  Branch (2000:29): [True: 35, False: 35]
  ------------------
 2001|     35|    return os << "(" << value << ")";
 2002|       |
 2003|     35|  std::string model;
 2004|     35|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2004:7): [True: 10, False: 25]
  ------------------
 2005|     10|    return os << "(" << value << ")";
 2006|       |
 2007|       |  // Models that do not support this tag
 2008|     25|  for (auto m : {"SLT-", "HV", "ILCA-"})
  ------------------
  |  Branch (2008:15): [True: 69, False: 18]
  ------------------
 2009|     69|    if (Internal::contains(model, m))
  ------------------
  |  Branch (2009:9): [True: 7, False: 62]
  ------------------
 2010|      7|      return os << N_("n/a");
  ------------------
  |  |   41|      7|#define N_(String) String
  ------------------
 2011|       |
 2012|     18|  return os << stringFormat("{}%", std::lround(value.toInt64() / 10.24));
  ------------------
  |  |   18|     18|#define stringFormat std::format
  ------------------
 2013|     25|}
_ZN5Exiv28Internal13SonyMakerNote29printSonyMisc2bFocusPosition2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2016|     70|                                                           const ExifData* metadata) {
 2017|     70|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (2017:7): [True: 0, False: 70]
  |  Branch (2017:29): [True: 35, False: 35]
  ------------------
 2018|     35|    return os << "(" << value << ")";
 2019|       |
 2020|     35|  std::string model;
 2021|     35|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2021:7): [True: 10, False: 25]
  ------------------
 2022|     10|    return os << "(" << value << ")";
 2023|       |
 2024|       |  // Models that do not support this tag
 2025|     25|  for (auto m : {"SLT-", "HV", "ILCA-"})
  ------------------
  |  Branch (2025:15): [True: 69, False: 18]
  ------------------
 2026|     69|    if (Internal::contains(model, m))
  ------------------
  |  Branch (2026:9): [True: 7, False: 62]
  ------------------
 2027|      7|      return os << N_("n/a");
  ------------------
  |  |   41|      7|#define N_(String) String
  ------------------
 2028|       |
 2029|     18|  return os << value;
 2030|     25|}
_ZN5Exiv28Internal13SonyMakerNote37printSonyMisc3cShotNumberSincePowerUpERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2108|    242|                                                                   const ExifData* metadata) {
 2109|    242|  if (value.count() != 1 || value.typeId() != unsignedLong || !metadata)
  ------------------
  |  Branch (2109:7): [True: 0, False: 242]
  |  Branch (2109:29): [True: 56, False: 186]
  |  Branch (2109:63): [True: 93, False: 93]
  ------------------
 2110|    149|    return os << "(" << value << ")";
 2111|       |
 2112|     93|  std::string model;
 2113|     93|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2113:7): [True: 41, False: 52]
  ------------------
 2114|     41|    return os << "(" << value << ")";
 2115|       |
 2116|       |  // Tag only valid for certain camera models. See
 2117|       |  // https://github.com/exiftool/exiftool/blob/7368629751669ba170511419b3d1e05bf0076d0e/lib/Image/ExifTool/Sony.pm#L8170
 2118|     52|  static constexpr const char* models[] = {
 2119|     52|      "ILCA-68",     "ILCA-77M2",   "ILCA-99M2",   "ILCE-5000",  "ILCE-5100", "ILCE-6000",  "ILCE-6300",
 2120|     52|      "ILCE-6500",   "ILCE-7",      "ILCE-7M2",    "ILCE-7R",    "ILCE-7RM2", "ILCE-7S",    "ILCE-7SM2",
 2121|     52|      "ILCE-7SM5",   "ILCE-QX1",    "DSC-HX350",   "DSC-HX400V", "DSC-HX60V", "DSC-HX80",   "DSC-HX90",
 2122|     52|      "DSC-HX90V",   "DSC-QX30",    "DSC-RX0",     "DSC-RX1RM2", "DSC-RX10",  "DSC-RX10M2", "DSC-RX10M3",
 2123|     52|      "DSC-RX100M3", "DSC-RX100M4", "DSC-RX100M5", "DSC-WX220",  "DSC-WX350", "DSC-WX500",
 2124|     52|  };
 2125|       |
 2126|     52|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2126:7): [True: 6, False: 46]
  ------------------
 2127|      6|    return os << value.toInt64();
 2128|       |
 2129|     46|  return os << N_("n/a");
  ------------------
  |  |   41|     46|#define N_(String) String
  ------------------
 2130|     52|}
_ZN5Exiv28Internal13SonyMakerNote29printSonyMisc3cSequenceNumberERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2132|    472|std::ostream& SonyMakerNote::printSonyMisc3cSequenceNumber(std::ostream& os, const Value& value, const ExifData*) {
 2133|    472|  return (value.count() != 1 || value.typeId() != unsignedLong) ? os << "(" << value << ")"
  ------------------
  |  Branch (2133:11): [True: 0, False: 472]
  |  Branch (2133:33): [True: 112, False: 360]
  ------------------
 2134|    472|                                                                : os << (value.toInt64() + 1);
 2135|    472|}
_ZN5Exiv28Internal13SonyMakerNote23printSonyMisc3cQuality2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2137|    230|std::ostream& SonyMakerNote::printSonyMisc3cQuality2(std::ostream& os, const Value& value, const ExifData* metadata) {
 2138|    230|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (2138:7): [True: 0, False: 230]
  |  Branch (2138:29): [True: 0, False: 230]
  |  Branch (2138:63): [True: 115, False: 115]
  ------------------
 2139|    115|    return os << "(" << value << ")";
 2140|       |
 2141|    115|  std::string model;
 2142|    115|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2142:7): [True: 37, False: 78]
  ------------------
 2143|     37|    return os << "(" << value << ")";
 2144|       |
 2145|     78|  const auto val = value.toInt64();
 2146|       |
 2147|       |  // Tag only valid for certain camera models. See
 2148|       |  // https://github.com/exiftool/exiftool/blob/7368629751669ba170511419b3d1e05bf0076d0e/lib/Image/ExifTool/Sony.pm#L8219
 2149|     78|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2150|       |
 2151|     78|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2151:7): [True: 4, False: 74]
  ------------------
 2152|      4|    return EXV_PRINT_TAG(sonyMisc3cQuality2a)(os, val, metadata);
  ------------------
  |  |  199|      4|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2153|       |
 2154|     74|  return EXV_PRINT_TAG(sonyMisc3cQuality2b)(os, val, metadata);
  ------------------
  |  |  199|     74|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2155|     78|}
_ZN5Exiv28Internal13SonyMakerNote30printSonyMisc3cSonyImageHeightERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2158|    172|                                                            const ExifData* metadata) {
 2159|    172|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (2159:7): [True: 0, False: 172]
  |  Branch (2159:29): [True: 56, False: 116]
  |  Branch (2159:64): [True: 58, False: 58]
  ------------------
 2160|    114|    return os << "(" << value << ")";
 2161|       |
 2162|     58|  std::string model;
 2163|     58|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2163:7): [True: 19, False: 39]
  ------------------
 2164|     19|    return os << "(" << value << ")";
 2165|       |
 2166|       |  // Tag only valid for certain camera models. See
 2167|       |  // https://github.com/exiftool/exiftool/blob/7368629751669ba170511419b3d1e05bf0076d0e/lib/Image/ExifTool/Sony.pm#L8239
 2168|     39|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2169|       |
 2170|     39|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2170:7): [True: 2, False: 37]
  ------------------
 2171|      2|    return os << N_("n/a");
  ------------------
  |  |   41|      2|#define N_(String) String
  ------------------
 2172|       |
 2173|     37|  const auto val = value.toInt64();
 2174|     37|  if (val > 0)
  ------------------
  |  Branch (2174:7): [True: 20, False: 17]
  ------------------
 2175|     20|    return os << (8 * val);
 2176|     17|  return os << N_("n/a");
  ------------------
  |  |   41|     17|#define N_(String) String
  ------------------
 2177|     37|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc3cModelReleaseYearERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2180|    156|                                                             const ExifData* metadata) {
 2181|    156|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (2181:7): [True: 0, False: 156]
  |  Branch (2181:29): [True: 0, False: 156]
  |  Branch (2181:63): [True: 78, False: 78]
  ------------------
 2182|     78|    return os << "(" << value << ")";
 2183|       |
 2184|     78|  std::string model;
 2185|     78|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2185:7): [True: 18, False: 60]
  ------------------
 2186|     18|    return os << "(" << value << ")";
 2187|       |
 2188|       |  // Tag only valid for certain camera models. See
 2189|       |  // https://github.com/exiftool/exiftool/blob/7368629751669ba170511419b3d1e05bf0076d0e/lib/Image/ExifTool/Sony.pm#L8245
 2190|     60|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2191|       |
 2192|     60|  if (Exiv2::find(models, model)) {
  ------------------
  |  Branch (2192:7): [True: 1, False: 59]
  ------------------
 2193|      1|    return os << N_("n/a");
  ------------------
  |  |   41|      1|#define N_(String) String
  ------------------
 2194|      1|  }
 2195|       |
 2196|     59|  const auto val = value.toInt64();
 2197|     59|  if (val > 99)
  ------------------
  |  Branch (2197:7): [True: 22, False: 37]
  ------------------
 2198|     22|    return os << "(" << val << ")";
 2199|       |
 2200|     37|  if (val == 0)
  ------------------
  |  Branch (2200:7): [True: 13, False: 24]
  ------------------
 2201|     13|    return os << "2000";
 2202|       |
 2203|     24|  return os << "20" << val;
 2204|     37|}
_ZN5Exiv28Internal15sonyTagDecipherEtPKhmPNS0_13TiffComponentE:
 2333|    780|DataBuf sonyTagDecipher(uint16_t tag, const byte* bytes, size_t size, TiffComponent* object) {
 2334|    780|  return sonyTagCipher(tag, bytes, size, object, true);
 2335|    780|}
_ZN5Exiv28Internal15sonyTagEncipherEtPKhmPNS0_13TiffComponentE:
 2336|     40|DataBuf sonyTagEncipher(uint16_t tag, const byte* bytes, size_t size, TiffComponent* object) {
 2337|     40|  return sonyTagCipher(tag, bytes, size, object, false);
 2338|     40|}
sonymn_int.cpp:_ZN5Exiv28InternalL8getModelEPKNS_8ExifDataERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  816|  13.5k|static auto getModel(const ExifData* metadata, std::string& val) {
  817|  13.5k|  auto pos = metadata->findKey(ExifKey("Exif.Image.Model"));
  818|  13.5k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == asciiString) {
  ------------------
  |  Branch (818:7): [True: 5.89k, False: 7.65k]
  |  Branch (818:7): [True: 5.20k, False: 8.34k]
  |  Branch (818:33): [True: 5.45k, False: 444]
  |  Branch (818:53): [True: 5.20k, False: 248]
  ------------------
  819|  5.20k|    val = pos->toString(0);
  820|  5.20k|    return true;
  821|  5.20k|  }
  822|       |
  823|       |  // NOTE: As using the translated SonyModelID value, need to be synchronized with the array format
  824|  8.34k|  pos = metadata->findKey(ExifKey("Exif.Sony1.SonyModelID"));
  825|  8.34k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedShort) {
  ------------------
  |  Branch (825:7): [True: 722, False: 7.62k]
  |  Branch (825:7): [True: 566, False: 7.77k]
  |  Branch (825:33): [True: 634, False: 88]
  |  Branch (825:53): [True: 566, False: 68]
  ------------------
  826|    566|    if (auto temp = pos->print(metadata); !Internal::contains(temp, ' ')) {
  ------------------
  |  Branch (826:43): [True: 540, False: 26]
  ------------------
  827|    540|      val = std::move(temp);
  828|    540|      return true;
  829|    540|    }
  830|     26|    val = "";
  831|     26|    return false;
  832|    566|  }
  833|  7.77k|  pos = metadata->findKey(ExifKey("Exif.Sony2.SonyModelID"));
  834|  7.77k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedShort) {
  ------------------
  |  Branch (834:7): [True: 6.81k, False: 968]
  |  Branch (834:7): [True: 6.47k, False: 1.30k]
  |  Branch (834:33): [True: 6.53k, False: 274]
  |  Branch (834:53): [True: 6.47k, False: 59]
  ------------------
  835|  6.47k|    if (auto temp = pos->print(metadata); !Internal::contains(temp, ' ')) {
  ------------------
  |  Branch (835:43): [True: 6.41k, False: 65]
  ------------------
  836|  6.41k|      val = std::move(temp);
  837|  6.41k|      return true;
  838|  6.41k|    }
  839|     65|    val = "";
  840|     65|    return false;
  841|  6.47k|  }
  842|       |
  843|  1.30k|  val = "";
  844|  1.30k|  return false;
  845|  7.77k|}
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote15printFocusMode2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1009|  2.42k|      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_:
 1034|  21.6k|  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_:
 1056|  5.36k|  if (std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
sonymn_int.cpp:_ZN5Exiv28InternalL20getAFAreaModeSettingEPKNS_8ExifDataERj:
  847|  4.55k|static auto getAFAreaModeSetting(const ExifData* metadata, uint32_t& val) {
  848|  4.55k|  auto pos = metadata->findKey(ExifKey("Exif.Sony1.AFAreaModeSetting"));
  849|  4.55k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (849:7): [True: 786, False: 3.76k]
  |  Branch (849:7): [True: 523, False: 4.02k]
  |  Branch (849:33): [True: 608, False: 178]
  |  Branch (849:53): [True: 523, False: 85]
  ------------------
  850|    523|    std::ostringstream oss;
  851|    523|    pos->write(oss, metadata);
  852|    523|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|    523|#define _(String) (String)
  ------------------
  |  Branch (852:9): [True: 62, False: 461]
  ------------------
  853|     62|      val = 0;
  854|     62|      return false;
  855|     62|    }
  856|       |
  857|    461|    val = pos->toUint32(0);
  858|    461|    return true;
  859|    523|  }
  860|  4.02k|  pos = metadata->findKey(ExifKey("Exif.Sony2.AFAreaModeSetting"));
  861|  4.02k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (861:7): [True: 2.69k, False: 1.32k]
  |  Branch (861:7): [True: 2.55k, False: 1.47k]
  |  Branch (861:33): [True: 2.65k, False: 42]
  |  Branch (861:53): [True: 2.55k, False: 100]
  ------------------
  862|  2.55k|    std::ostringstream oss;
  863|  2.55k|    pos->write(oss, metadata);
  864|  2.55k|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|  2.55k|#define _(String) (String)
  ------------------
  |  Branch (864:9): [True: 205, False: 2.35k]
  ------------------
  865|    205|      val = 0;
  866|    205|      return false;
  867|    205|    }
  868|       |
  869|  2.35k|    val = pos->toUint32(0);
  870|  2.35k|    return true;
  871|  2.55k|  }
  872|       |
  873|  1.47k|  val = 0;
  874|  1.47k|  return false;
  875|  4.02k|}
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote17printAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1109|    823|  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_:
 1131|  2.93k|      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_:
 1249|    556|static void findLensSpecFlags(const Value& value, std::string& flagsStart, std::string& flagsEnd) {
 1250|    556|  static constexpr struct LensSpecFlags {
 1251|    556|    int64_t mask;  // Contains all the bits set in the flags.val_ array values
 1252|    556|    TagDetails flags[4];
 1253|    556|    bool prepend;
 1254|    556|  } lSFArray[] = {
 1255|    556|      {0x4000, {{0x4000, "PZ"}}, true},
 1256|    556|      {0x0300, {{0x0100, "DT"}, {0x0200, "FE"}, {0x0300, "E"}}, true},
 1257|    556|      {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    556|#define N_(String) String
  ------------------
                    {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    556|#define N_(String) String
  ------------------
                    {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    556|#define N_(String) String
  ------------------
 1258|    556|      {0x000c, {{0x0004, "ZA"}, {0x0008, "G"}}, false},
 1259|    556|      {0x0003, {{0x0001, "SSM"}, {0x0002, "SAM"}}, false},
 1260|    556|      {0x8000, {{0x8000, "OSS"}}, false},
 1261|    556|      {0x2000, {{0x2000, "LE"}}, false},
 1262|    556|      {0x0800, {{0x0800, "II"}}, false},
 1263|    556|  };
 1264|       |
 1265|       |  // When processing, a bitwise 'AND' selects a compatible LensSpecFlags entry,
 1266|       |  // then search inside the 'flags' array for one match.
 1267|       |  //
 1268|       |  // See
 1269|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L10545
 1270|       |
 1271|    556|  const auto joinedV0V7 = ((value.toUint32(0) << 8) + value.toUint32(7));
 1272|  4.39k|  for (const auto& i : lSFArray) {
  ------------------
  |  Branch (1272:22): [True: 4.39k, False: 542]
  ------------------
 1273|  4.39k|    if (auto temp = i.mask & joinedV0V7) {  // Check if a flag matches in the current LensSpecFlags
  ------------------
  |  Branch (1273:14): [True: 2.70k, False: 1.69k]
  ------------------
 1274|  2.70k|      if (auto f = Exiv2::find(i.flags, temp)) {
  ------------------
  |  Branch (1274:16): [True: 2.68k, False: 14]
  ------------------
 1275|  2.68k|        if (i.prepend)
  ------------------
  |  Branch (1275:13): [True: 740, False: 1.94k]
  ------------------
 1276|    740|          flagsStart = flagsStart.empty() ? f->label_ : stringFormat("{} {}", f->label_, flagsStart);
  ------------------
  |  |   18|    236|#define stringFormat std::format
  ------------------
  |  Branch (1276:24): [True: 504, False: 236]
  ------------------
 1277|  1.94k|        else
 1278|  1.94k|          flagsEnd = flagsEnd.empty() ? f->label_ : stringFormat("{} {}", flagsEnd, f->label_);
  ------------------
  |  |   18|  1.46k|#define stringFormat std::format
  ------------------
  |  Branch (1278:22): [True: 480, False: 1.46k]
  ------------------
 1279|  2.68k|        continue;
 1280|  2.68k|      }
 1281|       |      // Should never get in here. LensSpecFlags.mask should contain all the
 1282|       |      // bits in all the LensSpecFlags.flags.val_ entries
 1283|     14|      throw Error(ErrorCode::kerErrorMessage, "LensSpecFlags mask doesn't match the bits in the flags array");
 1284|  2.70k|    }
 1285|  4.39k|  }
 1286|    556|}
sonymn_int.cpp:_ZN5Exiv28InternalL14getMetaVersionEPKNS_8ExifDataERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  877|    876|static auto getMetaVersion(const ExifData* metadata, std::string& val) {
  878|    876|  const auto pos = metadata->findKey(ExifKey("Exif.SonySInfo1.MetaVersion"));
  879|       |
  880|    876|  if (pos != metadata->end() && pos->typeId() == asciiString) {
  ------------------
  |  Branch (880:7): [True: 558, False: 318]
  |  Branch (880:7): [True: 558, False: 318]
  |  Branch (880:33): [True: 558, False: 0]
  ------------------
  881|    558|    std::string temp = pos->toString();
  882|    558|    if (!temp.empty()) {
  ------------------
  |  Branch (882:9): [True: 490, False: 68]
  ------------------
  883|    490|      val = std::move(temp);
  884|    490|      return true;
  885|    490|    }
  886|    558|  }
  887|    386|  val = "";
  888|    386|  return false;
  889|    876|}
sonymn_int.cpp:_ZN5Exiv28InternalL13getFocusMode2EPKNS_8ExifDataERj:
  891|    189|static auto getFocusMode2(const ExifData* metadata, uint32_t& val) {
  892|    189|  auto pos = metadata->findKey(ExifKey("Exif.Sony1.FocusMode2"));
  893|       |
  894|    189|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (894:7): [True: 0, False: 189]
  |  Branch (894:7): [True: 0, False: 189]
  |  Branch (894:33): [True: 0, False: 0]
  |  Branch (894:53): [True: 0, False: 0]
  ------------------
  895|      0|    std::ostringstream oss;
  896|      0|    pos->write(oss, metadata);
  897|      0|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  |  Branch (897:9): [True: 0, False: 0]
  ------------------
  898|      0|      val = 0;
  899|      0|      return false;
  900|      0|    }
  901|       |
  902|      0|    val = pos->toUint32(0);
  903|      0|    return true;
  904|      0|  }
  905|    189|  pos = metadata->findKey(ExifKey("Exif.Sony2.FocusMode2"));
  906|    189|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (906:7): [True: 170, False: 19]
  |  Branch (906:7): [True: 141, False: 48]
  |  Branch (906:33): [True: 152, False: 18]
  |  Branch (906:53): [True: 141, False: 11]
  ------------------
  907|    141|    std::ostringstream oss;
  908|    141|    pos->write(oss, metadata);
  909|    141|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|    141|#define _(String) (String)
  ------------------
  |  Branch (909:9): [True: 6, False: 135]
  ------------------
  910|      6|      val = 0;
  911|      6|      return false;
  912|      6|    }
  913|    135|    val = pos->toUint32(0);
  914|    135|    return true;
  915|    141|  }
  916|       |
  917|     48|  val = 0;
  918|     48|  return false;
  919|    189|}
sonymn_int.cpp:_ZN5Exiv28InternalL13sonyTagCipherEtPKhmPKNS0_13TiffComponentEb:
 2309|    820|                             bool bDecipher) {
 2310|    820|  DataBuf b(bytes, size);  // copy the data
 2311|       |
 2312|       |  // initialize the code table
 2313|    820|  byte code[256];
 2314|   205k|  for (uint32_t i = 0; i < 249; i++) {
  ------------------
  |  Branch (2314:24): [True: 204k, False: 820]
  ------------------
 2315|   204k|    if (bDecipher) {
  ------------------
  |  Branch (2315:9): [True: 194k, False: 9.96k]
  ------------------
 2316|   194k|      code[(i * i * i) % 249] = static_cast<byte>(i);
 2317|   194k|    } else {
 2318|  9.96k|      code[i] = (i * i * i) % 249;
 2319|  9.96k|    }
 2320|   204k|  }
 2321|  6.56k|  for (uint32_t i = 249; i < 256; i++) {
  ------------------
  |  Branch (2321:26): [True: 5.74k, False: 820]
  ------------------
 2322|  5.74k|    code[i] = static_cast<byte>(i);
 2323|  5.74k|  }
 2324|       |
 2325|       |  // code byte-by-byte
 2326|  1.92M|  for (uint32_t i = 0; i < size; i++) {
  ------------------
  |  Branch (2326:24): [True: 1.91M, False: 820]
  ------------------
 2327|  1.91M|    b.write_uint8(i, code[bytes[i]]);
 2328|  1.91M|  }
 2329|       |
 2330|    820|  return b;
 2331|    820|}

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

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

_ZN5Exiv28Internal10ifdTagListEv:
 1778|  2.01M|const TagInfo* ifdTagList() {
 1779|  2.01M|  return ifdTagInfo;
 1780|  2.01M|}
_ZN5Exiv28Internal11exifTagListEv:
 2216|  77.6k|const TagInfo* exifTagList() {
 2217|  77.6k|  return exifTagInfo;
 2218|  77.6k|}
_ZN5Exiv28Internal10gpsTagListEv:
 2432|  60.0k|const TagInfo* gpsTagList() {
 2433|  60.0k|  return gpsTagInfo;
 2434|  60.0k|}
_ZN5Exiv28Internal10mpfTagListEv:
 2481|    236|const TagInfo* mpfTagList() {
 2482|    236|  return mpfTagInfo;
 2483|    236|}
_ZN5Exiv28Internal10iopTagListEv:
 2507|  14.0k|const TagInfo* iopTagList() {
 2508|  14.0k|  return iopTagInfo;
 2509|  14.0k|}
_ZN5Exiv28Internal9mnTagListEv:
 2523|   171k|const TagInfo* mnTagList() {
 2524|   171k|  return mnTagInfo;
 2525|   171k|}
_ZN5Exiv28Internal10isMakerIfdENS_5IfdIdE:
 2527|  20.0M|bool isMakerIfd(IfdId ifdId) {
 2528|  20.0M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2528:12): [True: 20.0M, False: 0]
  ------------------
 2529|  20.0M|    return std::string_view("Makernote") == ii->ifdName_;
 2530|      0|  return false;
 2531|  20.0M|}
_ZN5Exiv28Internal9isExifIfdENS_5IfdIdE:
 2533|  21.7M|bool isExifIfd(IfdId ifdId) {
 2534|  21.7M|  switch (ifdId) {
 2535|   953k|    case IfdId::ifd0Id:
  ------------------
  |  Branch (2535:5): [True: 953k, False: 20.8M]
  ------------------
 2536|  1.00M|    case IfdId::exifId:
  ------------------
  |  Branch (2536:5): [True: 54.8k, False: 21.6M]
  ------------------
 2537|  1.05M|    case IfdId::gpsId:
  ------------------
  |  Branch (2537:5): [True: 46.2k, False: 21.7M]
  ------------------
 2538|  1.06M|    case IfdId::iopId:
  ------------------
  |  Branch (2538:5): [True: 12.1k, False: 21.7M]
  ------------------
 2539|  1.09M|    case IfdId::ifd1Id:
  ------------------
  |  Branch (2539:5): [True: 24.8k, False: 21.7M]
  ------------------
 2540|  1.10M|    case IfdId::ifd2Id:
  ------------------
  |  Branch (2540:5): [True: 11.4k, False: 21.7M]
  ------------------
 2541|  1.10M|    case IfdId::ifd3Id:
  ------------------
  |  Branch (2541:5): [True: 1.57k, False: 21.7M]
  ------------------
 2542|  1.10M|    case IfdId::mpfId:
  ------------------
  |  Branch (2542:5): [True: 0, False: 21.7M]
  ------------------
 2543|  1.23M|    case IfdId::subImage1Id:
  ------------------
  |  Branch (2543:5): [True: 134k, False: 21.6M]
  ------------------
 2544|  1.35M|    case IfdId::subImage2Id:
  ------------------
  |  Branch (2544:5): [True: 119k, False: 21.6M]
  ------------------
 2545|  1.45M|    case IfdId::subImage3Id:
  ------------------
  |  Branch (2545:5): [True: 101k, False: 21.6M]
  ------------------
 2546|  1.56M|    case IfdId::subImage4Id:
  ------------------
  |  Branch (2546:5): [True: 101k, False: 21.6M]
  ------------------
 2547|  1.57M|    case IfdId::subImage5Id:
  ------------------
  |  Branch (2547:5): [True: 18.5k, False: 21.7M]
  ------------------
 2548|  1.59M|    case IfdId::subImage6Id:
  ------------------
  |  Branch (2548:5): [True: 12.4k, False: 21.7M]
  ------------------
 2549|  1.60M|    case IfdId::subImage7Id:
  ------------------
  |  Branch (2549:5): [True: 16.1k, False: 21.7M]
  ------------------
 2550|  1.62M|    case IfdId::subImage8Id:
  ------------------
  |  Branch (2550:5): [True: 14.8k, False: 21.7M]
  ------------------
 2551|  1.63M|    case IfdId::subImage9Id:
  ------------------
  |  Branch (2551:5): [True: 14.8k, False: 21.7M]
  ------------------
 2552|  1.64M|    case IfdId::subThumb1Id:
  ------------------
  |  Branch (2552:5): [True: 10.7k, False: 21.7M]
  ------------------
 2553|  1.71M|    case IfdId::panaRawId:
  ------------------
  |  Branch (2553:5): [True: 62.7k, False: 21.6M]
  ------------------
 2554|  1.71M|      return true;
 2555|  20.0M|    default:
  ------------------
  |  Branch (2555:5): [True: 20.0M, False: 1.71M]
  ------------------
 2556|  20.0M|      return false;
 2557|  21.7M|  }
 2558|  21.7M|}
_ZN5Exiv28Internal7tagListENS_5IfdIdE:
 2568|  22.9M|const TagInfo* tagList(IfdId ifdId) {
 2569|  22.9M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2569:12): [True: 22.9M, False: 0]
  ------------------
 2570|  22.9M|    if (ii->tagList_)
  ------------------
  |  Branch (2570:9): [True: 22.9M, False: 0]
  ------------------
 2571|  22.9M|      return ii->tagList_();
 2572|      0|  return nullptr;
 2573|  22.9M|}  // tagList
_ZN5Exiv28Internal7tagInfoEtNS_5IfdIdE:
 2575|  22.4M|const TagInfo* tagInfo(uint16_t tag, IfdId ifdId) {
 2576|  22.4M|  if (auto ti = tagList(ifdId)) {
  ------------------
  |  Branch (2576:12): [True: 22.4M, False: 0]
  ------------------
 2577|  22.4M|    int idx = 0;
 2578|   929M|    for (idx = 0; ti[idx].tag_ != 0xffff; ++idx) {
  ------------------
  |  Branch (2578:19): [True: 909M, False: 20.0M]
  ------------------
 2579|   909M|      if (ti[idx].tag_ == tag)
  ------------------
  |  Branch (2579:11): [True: 2.36M, False: 907M]
  ------------------
 2580|  2.36M|        break;
 2581|   909M|    }
 2582|  22.4M|    return ti + idx;
 2583|  22.4M|  }
 2584|      0|  return nullptr;
 2585|  22.4M|}  // tagInfo
_ZN5Exiv28Internal7tagInfoERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5IfdIdE:
 2587|   493k|const TagInfo* tagInfo(const std::string& tagName, IfdId ifdId) {
 2588|   493k|  if (tagName.empty())
  ------------------
  |  Branch (2588:7): [True: 0, False: 493k]
  ------------------
 2589|      0|    return nullptr;
 2590|   493k|  if (auto ti = tagList(ifdId)) {
  ------------------
  |  Branch (2590:12): [True: 493k, False: 0]
  ------------------
 2591|  24.1M|    for (int idx = 0; ti[idx].tag_ != 0xffff; ++idx) {
  ------------------
  |  Branch (2591:23): [True: 24.1M, False: 31.3k]
  ------------------
 2592|  24.1M|      if (tagName == ti[idx].name_) {
  ------------------
  |  Branch (2592:11): [True: 461k, False: 23.6M]
  ------------------
 2593|   461k|        return ti + idx;
 2594|   461k|      }
 2595|  24.1M|    }
 2596|   493k|  }
 2597|  31.3k|  return nullptr;
 2598|   493k|}  // tagInfo
_ZN5Exiv28Internal7groupIdERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 2600|  24.1M|IfdId groupId(const std::string& groupName) {
 2601|  24.1M|  if (auto ii = Exiv2::find(groupInfo, groupName))
  ------------------
  |  Branch (2601:12): [True: 24.1M, False: 0]
  ------------------
 2602|  24.1M|    return IfdId{ii->ifdId_};
 2603|      0|  return IfdId::ifdIdNotSet;
 2604|  24.1M|}
_ZN5Exiv28Internal9groupNameENS_5IfdIdE:
 2612|  21.1M|const char* groupName(IfdId ifdId) {
 2613|  21.1M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2613:12): [True: 21.1M, False: 0]
  ------------------
 2614|  21.1M|    return ii->groupName_;
 2615|      0|  return groupInfo[0].groupName_;
 2616|  21.1M|}
_ZN5Exiv28Internal10printValueERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2618|   276k|std::ostream& printValue(std::ostream& os, const Value& value, const ExifData*) {
 2619|   276k|  return os << value;
 2620|   276k|}
_ZN5Exiv28Internal12printBitmaskERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2622|  2.20k|std::ostream& printBitmask(std::ostream& os, const Value& value, const ExifData* metadata) {
 2623|  2.20k|  if (value.typeId() == Exiv2::unsignedShort || value.typeId() == Exiv2::signedShort) {
  ------------------
  |  Branch (2623:7): [True: 666, False: 1.53k]
  |  Branch (2623:49): [True: 1.10k, False: 434]
  ------------------
 2624|  1.76k|    uint16_t bit = 0;
 2625|  1.76k|    uint16_t comma = 0;
 2626|  11.9M|    for (size_t i = 0; i < value.count(); i++) {  // for each element in value array
  ------------------
  |  Branch (2626:24): [True: 11.9M, False: 1.76k]
  ------------------
 2627|  11.9M|      auto bits = static_cast<uint16_t>(value.toInt64(i));
 2628|   203M|      for (uint16_t b = 0; b < 16; ++b) {  // for every bit
  ------------------
  |  Branch (2628:28): [True: 191M, False: 11.9M]
  ------------------
 2629|   191M|        if (bits & (1 << b)) {
  ------------------
  |  Branch (2629:13): [True: 167M, False: 23.6M]
  ------------------
 2630|   167M|          if (comma++) {
  ------------------
  |  Branch (2630:15): [True: 167M, False: 4.22k]
  ------------------
 2631|   167M|            os << ",";
 2632|   167M|          }
 2633|   167M|          os << bit;
 2634|   167M|        }
 2635|   191M|        bit++;
 2636|   191M|      }
 2637|  11.9M|    }
 2638|       |    // if no bits are set, print "(none)"
 2639|  1.76k|    if (!comma)
  ------------------
  |  Branch (2639:9): [True: 54, False: 1.71k]
  ------------------
 2640|     54|      os << N_("(none)");
  ------------------
  |  |   41|     54|#define N_(String) String
  ------------------
 2641|  1.76k|  } else {
 2642|    434|    printValue(os, value, metadata);
 2643|    434|  }
 2644|  2.20k|  return os;
 2645|  2.20k|}
_ZN5Exiv28Internal7fnumberEf:
 2647|  11.1k|float fnumber(float apertureValue) {
 2648|  11.1k|  float result = std::exp2(apertureValue / 2.F);
 2649|  11.1k|  if (std::abs(result - 3.5F) < 0.1F) {
  ------------------
  |  Branch (2649:7): [True: 213, False: 10.9k]
  ------------------
 2650|    213|    result = 3.5F;
 2651|    213|  }
 2652|  11.1k|  return result;
 2653|  11.1k|}
_ZN5Exiv28Internal12exposureTimeEf:
 2655|  2.33k|URational exposureTime(float shutterSpeedValue) {
 2656|  2.33k|  URational ur(1, 1);
 2657|  2.33k|  const double tmp = std::exp2(shutterSpeedValue);
 2658|  2.33k|  if (tmp > 1) {
  ------------------
  |  Branch (2658:7): [True: 1.57k, False: 759]
  ------------------
 2659|  1.57k|    const double x = std::round(tmp);
 2660|       |    // Check that x is within the range of a uint32_t before casting.
 2661|  1.57k|    if (x <= std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (2661:9): [True: 656, False: 918]
  ------------------
 2662|    656|      ur.second = static_cast<uint32_t>(x);
 2663|    656|    }
 2664|  1.57k|  } else {
 2665|    759|    const double x = std::round(1 / tmp);
 2666|       |    // Check that x is within the range of a uint32_t before casting.
 2667|    759|    if (0 <= x && x <= std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (2667:9): [True: 759, False: 0]
  |  Branch (2667:19): [True: 661, False: 98]
  ------------------
 2668|    661|      ur.first = static_cast<uint32_t>(x);
 2669|    661|    }
 2670|    759|  }
 2671|  2.33k|  return ur;
 2672|  2.33k|}
_ZN5Exiv28Internal9tagNumberERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5IfdIdE:
 2674|   493k|uint16_t tagNumber(const std::string& tagName, IfdId ifdId) {
 2675|   493k|  auto ti = tagInfo(tagName, ifdId);
 2676|   493k|  if (ti && ti->tag_ != 0xffff)
  ------------------
  |  Branch (2676:7): [True: 461k, False: 31.3k]
  |  Branch (2676:13): [True: 461k, False: 0]
  ------------------
 2677|   461k|    return ti->tag_;
 2678|  31.3k|  if (!isHex(tagName, 4, "0x"))
  ------------------
  |  Branch (2678:7): [True: 0, False: 31.3k]
  ------------------
 2679|      0|    throw Error(ErrorCode::kerInvalidTag, tagName, ifdId);
 2680|  31.3k|  return static_cast<uint16_t>(std::stoi(tagName, nullptr, 16));
 2681|  31.3k|}  // tagNumber
_ZN5Exiv28Internal10printInt64ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2683|  3.06k|std::ostream& printInt64(std::ostream& os, const Value& value, const ExifData*) {
 2684|  3.06k|  Rational r = value.toRational();
 2685|  3.06k|  if (r.second > 0)
  ------------------
  |  Branch (2685:7): [True: 2.75k, False: 306]
  ------------------
 2686|  2.75k|    return os << static_cast<int64_t>(r.first) / r.second;
 2687|    306|  return os << "(" << value << ")";
 2688|  3.06k|}  // printLong
_ZN5Exiv28Internal10printFloatERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2690|  1.75k|std::ostream& printFloat(std::ostream& os, const Value& value, const ExifData*) {
 2691|  1.75k|  Rational r = value.toRational();
 2692|  1.75k|  if (r.second != 0) {
  ------------------
  |  Branch (2692:7): [True: 1.67k, False: 84]
  ------------------
 2693|  1.67k|    os << value.toFloat();
 2694|  1.67k|  } else {
 2695|     84|    os << "(" << value << ")";
 2696|     84|  }
 2697|  1.75k|  return os;
 2698|  1.75k|}  // printFloat
_ZN5Exiv28Internal12printDegreesERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2700|  1.02k|std::ostream& printDegrees(std::ostream& os, const Value& value, const ExifData*) {
 2701|  1.02k|  std::ios::fmtflags f(os.flags());
 2702|  1.02k|  if (value.count() == 3) {
  ------------------
  |  Branch (2702:7): [True: 902, False: 124]
  ------------------
 2703|    902|    Rational deg = value.toRational(0);
 2704|    902|    Rational min = value.toRational(1);
 2705|    902|    Rational sec = value.toRational(2);
 2706|    902|    if ((deg.second != 1) || (min.second <= 0) || (sec.second <= 0)) {
  ------------------
  |  Branch (2706:9): [True: 172, False: 730]
  |  Branch (2706:30): [True: 132, False: 598]
  |  Branch (2706:51): [True: 278, False: 320]
  ------------------
 2707|    582|      return os << "(" << value << ")";
 2708|    582|    }
 2709|    320|    const int32_t dd = deg.first;
 2710|    320|    const int32_t mm = min.first / min.second;
 2711|    320|    const int32_t rem = min.first % min.second;
 2712|    320|    if ((min.second > 1) && (rem > 0)) {
  ------------------
  |  Branch (2712:9): [True: 156, False: 164]
  |  Branch (2712:29): [True: 116, False: 40]
  ------------------
 2713|    116|      if ((sec.first == 0) && (sec.second == 1) && (rem <= std::numeric_limits<int32_t>::max() / 60)) {
  ------------------
  |  Branch (2713:11): [True: 38, False: 78]
  |  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|     88|      } else {
 2717|     88|        return os << "(" << value << ")";
 2718|     88|      }
 2719|    116|    }
 2720|    232|    const float ss = static_cast<float>(sec.first) / sec.second;
 2721|    232|    os << dd << " deg ";
 2722|    232|    os << mm << "' ";
 2723|    232|    std::ostringstream oss;
 2724|    232|    oss.copyfmt(os);
 2725|    232|    os << std::fixed << std::setprecision(sec.second > 1 ? 2 : 0) << ss << "\"";
  ------------------
  |  Branch (2725:43): [True: 52, False: 180]
  ------------------
 2726|    232|    os.copyfmt(oss);
 2727|    232|  } else {
 2728|    124|    os << "(" << value << ")";
 2729|    124|  }
 2730|    356|  os.flags(f);
 2731|    356|  return os;
 2732|  1.02k|}  // printDegrees
_ZN5Exiv28Internal9printUcs2ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2734|    692|std::ostream& printUcs2(std::ostream& os, const Value& value, const ExifData*) {
 2735|    692|  bool cnv = false;
 2736|    692|  if (value.typeId() == unsignedByte && value.size() > 0) {
  ------------------
  |  Branch (2736:7): [True: 520, False: 172]
  |  Branch (2736:41): [True: 520, False: 0]
  ------------------
 2737|    520|    DataBuf buf(value.size());
 2738|    520|    value.copy(buf.data(), invalidByteOrder);
 2739|       |    // Strip trailing odd byte due to failing UCS-2 conversion
 2740|    520|    if (buf.size() % 2 == 1) {
  ------------------
  |  Branch (2740:9): [True: 210, False: 310]
  ------------------
 2741|    210|      buf.resize(buf.size() - 1);
 2742|    210|    }
 2743|       |
 2744|       |    // Strip trailing UCS-2 0-characters
 2745|  1.51k|    while (buf.size() >= 2) {
  ------------------
  |  Branch (2745:12): [True: 1.47k, False: 40]
  ------------------
 2746|  1.47k|      if (buf.read_uint8(buf.size() - 1) != 0 || buf.read_uint8(buf.size() - 2) != 0)
  ------------------
  |  Branch (2746:11): [True: 342, False: 1.13k]
  |  Branch (2746:50): [True: 138, False: 992]
  ------------------
 2747|    480|        break;
 2748|    992|      buf.resize(buf.size() - 2);
 2749|    992|    }
 2750|       |
 2751|    520|    std::string str(buf.c_str(), buf.size());
 2752|    520|    cnv = convertStringCharset(str, "UCS-2LE", "UTF-8");
 2753|    520|    if (cnv)
  ------------------
  |  Branch (2753:9): [True: 432, False: 88]
  ------------------
 2754|    432|      os << str;
 2755|    520|  }
 2756|    692|  if (!cnv)
  ------------------
  |  Branch (2756:7): [True: 260, False: 432]
  ------------------
 2757|    260|    os << value;
 2758|    692|  return os;
 2759|    692|}
_ZN5Exiv28Internal13printExifUnitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2761|    364|std::ostream& printExifUnit(std::ostream& os, const Value& value, const ExifData* metadata) {
 2762|    364|  return EXV_PRINT_TAG(exifUnit)(os, value, metadata);
  ------------------
  |  |  199|    364|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2763|    364|}
_ZN5Exiv28Internal22printLensSpecificationERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2765|  1.05k|std::ostream& printLensSpecification(std::ostream& os, const Value& value, const ExifData*) {
 2766|  1.05k|  std::ios::fmtflags f(os.flags());
 2767|       |  // check type and count of values
 2768|  1.05k|  if (value.typeId() != unsignedRational || value.count() != 4 ||
  ------------------
  |  Branch (2768:7): [True: 18, False: 1.03k]
  |  Branch (2768:7): [True: 266, False: 790]
  |  Branch (2768:45): [True: 16, False: 1.02k]
  ------------------
 2769|       |      // divisor may be zero only if dividend is not zero
 2770|  1.02k|      (value.toRational(0).first != 0 && value.toRational(0).second == 0) ||
  ------------------
  |  Branch (2770:8): [True: 846, False: 176]
  |  Branch (2770:42): [True: 70, False: 776]
  ------------------
 2771|    952|      (value.toRational(1).first != 0 && value.toRational(1).second == 0) ||
  ------------------
  |  Branch (2771:8): [True: 676, False: 276]
  |  Branch (2771:42): [True: 32, False: 644]
  ------------------
 2772|    920|      (value.toRational(2).first != 0 && value.toRational(2).second == 0) ||
  ------------------
  |  Branch (2772:8): [True: 730, False: 190]
  |  Branch (2772:42): [True: 62, False: 668]
  ------------------
 2773|    858|      (value.toRational(3).first != 0 && value.toRational(3).second == 0)) {
  ------------------
  |  Branch (2773:8): [True: 662, False: 196]
  |  Branch (2773:42): [True: 68, False: 594]
  ------------------
 2774|    266|    return os << "(" << value << ")";
 2775|    266|  }
 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|    790|  float focalLength1 = 0.0f;
 2779|    790|  if (value.toRational(0).first != 0)
  ------------------
  |  Branch (2779:7): [True: 630, False: 160]
  ------------------
 2780|    630|    focalLength1 = value.toFloat(0);
 2781|    790|  float focalLength2 = 0.0f;
 2782|    790|  if (value.toRational(1).first != 0)
  ------------------
  |  Branch (2782:7): [True: 534, False: 256]
  ------------------
 2783|    534|    focalLength2 = value.toFloat(1);
 2784|    790|  float fNumber1 = 0.0f;
 2785|    790|  if (value.toRational(2).first != 0)
  ------------------
  |  Branch (2785:7): [True: 616, False: 174]
  ------------------
 2786|    616|    fNumber1 = value.toFloat(2);
 2787|    790|  float fNumber2 = 0.0f;
 2788|    790|  if (value.toRational(3).first != 0)
  ------------------
  |  Branch (2788:7): [True: 594, False: 196]
  ------------------
 2789|    594|    fNumber2 = value.toFloat(3);
 2790|       |
 2791|       |  // first value must not be bigger than second
 2792|    790|  if ((std::isgreater(focalLength1, focalLength2) && std::isgreater(focalLength2, 0.0f)) ||
  ------------------
  |  Branch (2792:8): [True: 332, False: 458]
  |  Branch (2792:54): [True: 180, False: 152]
  ------------------
 2793|    610|      (std::isgreater(fNumber1, fNumber2) && std::isgreater(fNumber2, 0.0f))) {
  ------------------
  |  Branch (2793:8): [True: 202, False: 408]
  |  Branch (2793:46): [True: 126, False: 76]
  ------------------
 2794|    306|    return os << "(" << value << ")";
 2795|    306|  }
 2796|       |
 2797|       |  // no lens specification available
 2798|    484|  if (focalLength1 == 0.0f && focalLength2 == 0.0f && fNumber1 == 0.0f && fNumber2 == 0.0f)
  ------------------
  |  Branch (2798:7): [True: 154, False: 330]
  |  Branch (2798:31): [True: 104, False: 50]
  |  Branch (2798:55): [True: 76, False: 28]
  |  Branch (2798:75): [True: 64, False: 12]
  ------------------
 2799|     64|    return os << _("n/a");
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
 2800|       |
 2801|       |  // lens specification available - at least parts
 2802|    420|  if (focalLength1 == 0.0f)
  ------------------
  |  Branch (2802:7): [True: 90, False: 330]
  ------------------
 2803|     90|    os << _("n/a");
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
 2804|    330|  else
 2805|    330|    os << std::setprecision(5) << focalLength1;
 2806|    420|  if (focalLength1 != focalLength2) {
  ------------------
  |  Branch (2806:7): [True: 322, False: 98]
  ------------------
 2807|    322|    if (focalLength2 == 0.0f)
  ------------------
  |  Branch (2807:9): [True: 148, False: 174]
  ------------------
 2808|    148|      os << "-n/a ";
 2809|    174|    else
 2810|    174|      os << "-" << std::setprecision(5) << focalLength2;
 2811|    322|  }
 2812|    420|  os << "mm";
 2813|    420|  std::ostringstream oss;
 2814|    420|  oss.copyfmt(os);
 2815|       |
 2816|    420|  if (std::isgreater(fNumber1, 0.0f) || std::isgreater(fNumber2, 0.0f)) {
  ------------------
  |  Branch (2816:7): [True: 312, False: 108]
  |  Branch (2816:41): [True: 62, False: 46]
  ------------------
 2817|    374|    os << " F";
 2818|    374|    if (fNumber1 == 0.0f)
  ------------------
  |  Branch (2818:9): [True: 62, False: 312]
  ------------------
 2819|     62|      os << " n/a";
 2820|    312|    else
 2821|    312|      os << std::setprecision(2) << fNumber1;
 2822|    374|    if (fNumber1 != fNumber2) {
  ------------------
  |  Branch (2822:9): [True: 306, False: 68]
  ------------------
 2823|    306|      if (fNumber2 == 0.0f)
  ------------------
  |  Branch (2823:11): [True: 76, False: 230]
  ------------------
 2824|     76|        os << "-n/a";
 2825|    230|      else
 2826|    230|        os << "-" << std::setprecision(2) << fNumber2;
 2827|    306|    }
 2828|    374|  }
 2829|    420|  os.copyfmt(oss);
 2830|    420|  os.flags(f);
 2831|    420|  return os;
 2832|    484|}
_ZN5Exiv28Internal11print0x0000ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2834|  1.41k|std::ostream& print0x0000(std::ostream& os, const Value& value, const ExifData*) {
 2835|  1.41k|  if (value.size() != 4 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (2835:7): [True: 1.33k, False: 86]
  |  Branch (2835:28): [True: 56, False: 30]
  ------------------
 2836|  1.38k|    return os << value;
 2837|  1.38k|  }
 2838|       |
 2839|    120|  for (int i = 0; i < 3; i++) {
  ------------------
  |  Branch (2839:19): [True: 90, False: 30]
  ------------------
 2840|     90|    os << value.toInt64(i);
 2841|     90|    os << ".";
 2842|     90|  }
 2843|     30|  os << value.toInt64(3);
 2844|       |
 2845|     30|  return os;
 2846|  1.41k|}
_ZN5Exiv28Internal11print0x0005ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2848|    140|std::ostream& print0x0005(std::ostream& os, const Value& value, const ExifData* metadata) {
 2849|    140|  return EXV_PRINT_TAG(exifGPSAltitudeRef)(os, value, metadata);
  ------------------
  |  |  199|    140|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2850|    140|}
_ZN5Exiv28Internal11print0x0006ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2852|    328|std::ostream& print0x0006(std::ostream& os, const Value& value, const ExifData*) {
 2853|    328|  std::ios::fmtflags f(os.flags());
 2854|    328|  std::ostringstream oss;
 2855|    328|  oss.copyfmt(os);
 2856|    328|  const int32_t d = value.toRational().second;
 2857|    328|  if (d == 0)
  ------------------
  |  Branch (2857:7): [True: 90, False: 238]
  ------------------
 2858|     90|    return os << "(" << value << ")";
 2859|    238|  const int p = d > 1 ? 1 : 0;
  ------------------
  |  Branch (2859:17): [True: 110, False: 128]
  ------------------
 2860|    238|  os << std::fixed << std::setprecision(p) << value.toFloat() << " m";
 2861|    238|  os.copyfmt(oss);
 2862|       |
 2863|    238|  os.flags(f);
 2864|    238|  return os;
 2865|    328|}
_ZN5Exiv28Internal11print0x0007ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2867|    726|std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*) {
 2868|    726|  std::ios::fmtflags f(os.flags());
 2869|    726|  if (value.count() == 3) {
  ------------------
  |  Branch (2869:7): [True: 632, False: 94]
  ------------------
 2870|  2.07k|    for (int i = 0; i < 3; ++i) {
  ------------------
  |  Branch (2870:21): [True: 1.65k, False: 422]
  ------------------
 2871|  1.65k|      if (value.toRational(i).second == 0) {
  ------------------
  |  Branch (2871:11): [True: 210, False: 1.44k]
  ------------------
 2872|    210|        return os << "(" << value << ")";
 2873|    210|      }
 2874|  1.65k|    }
 2875|    422|    std::ostringstream oss;
 2876|    422|    oss.copyfmt(os);
 2877|    422|    const double t = (3600.0 * value.toInt64(0)) + (60.0 * value.toInt64(1)) + value.toFloat(2);
 2878|    422|    enforce<std::overflow_error>(std::isfinite(t), "Non-finite time value");
 2879|    422|    int p = 0;
 2880|    422|    const double fraction = std::fmod(t, 1);
 2881|    422|    if (fraction != 0)
  ------------------
  |  Branch (2881:9): [True: 278, False: 144]
  ------------------
 2882|    278|      p = 1;
 2883|    422|    const double ss = std::fmod(t, 60);
 2884|    422|    const double minutes = (t - ss) / 60;
 2885|    422|    const auto mm = static_cast<int>(std::fmod(minutes, 60));
 2886|    422|    const double hours = (minutes - mm) / 60;
 2887|    422|    const auto hh = static_cast<int>(std::fmod(hours, 24));
 2888|       |
 2889|    422|    os << std::setw(2) << std::setfill('0') << std::right << hh << ":" << std::setw(2) << std::setfill('0')
 2890|    422|       << std::right << mm << ":" << std::setw(2 + (p * 2)) << std::setfill('0') << std::right << std::fixed
 2891|    422|       << std::setprecision(p) << ss;
 2892|       |
 2893|    422|    os.copyfmt(oss);
 2894|    422|  } else {
 2895|     94|    os << value;
 2896|     94|  }
 2897|       |
 2898|    516|  os.flags(f);
 2899|    516|  return os;
 2900|    726|}
_ZN5Exiv28Internal11print0x0009ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2902|    148|std::ostream& print0x0009(std::ostream& os, const Value& value, const ExifData* metadata) {
 2903|    148|  return EXV_PRINT_TAG(exifGPSStatus)(os, value, metadata);
  ------------------
  |  |  199|    148|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2904|    148|}
_ZN5Exiv28Internal11print0x000aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2906|     88|std::ostream& print0x000a(std::ostream& os, const Value& value, const ExifData* metadata) {
 2907|     88|  return EXV_PRINT_TAG(exifGPSMeasureMode)(os, value, metadata);
  ------------------
  |  |  199|     88|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2908|     88|}
_ZN5Exiv28Internal11print0x000cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2910|    274|std::ostream& print0x000c(std::ostream& os, const Value& value, const ExifData* metadata) {
 2911|    274|  return EXV_PRINT_TAG(exifGPSSpeedRef)(os, value, metadata);
  ------------------
  |  |  199|    274|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2912|    274|}
_ZN5Exiv28Internal11print0x0019ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2914|    194|std::ostream& print0x0019(std::ostream& os, const Value& value, const ExifData* metadata) {
 2915|    194|  return EXV_PRINT_TAG(exifGPSDestDistanceRef)(os, value, metadata);
  ------------------
  |  |  199|    194|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2916|    194|}
_ZN5Exiv28Internal11print0x001eERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2918|    182|std::ostream& print0x001e(std::ostream& os, const Value& value, const ExifData* metadata) {
 2919|    182|  return EXV_PRINT_TAG(exifGPSDifferential)(os, value, metadata);
  ------------------
  |  |  199|    182|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2920|    182|}
_ZN5Exiv28Internal11print0x0112ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2922|  1.21k|std::ostream& print0x0112(std::ostream& os, const Value& value, const ExifData* metadata) {
 2923|  1.21k|  return EXV_PRINT_TAG(exifOrientation)(os, value, metadata);
  ------------------
  |  |  199|  1.21k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2924|  1.21k|}
_ZN5Exiv28Internal11print0x0213ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2931|    266|std::ostream& print0x0213(std::ostream& os, const Value& value, const ExifData* metadata) {
 2932|    266|  return EXV_PRINT_TAG(exifYCbCrPositioning)(os, value, metadata);
  ------------------
  |  |  199|    266|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2933|    266|}
_ZN5Exiv28Internal11print0x8298ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2935|    146|std::ostream& print0x8298(std::ostream& os, const Value& value, const ExifData*) {
 2936|       |  // Print the copyright information in the format Photographer, Editor
 2937|    146|  std::string val = value.toString();
 2938|    146|  std::string::size_type pos = val.find('\0');
 2939|    146|  if (pos != std::string::npos) {
  ------------------
  |  Branch (2939:7): [True: 0, False: 146]
  ------------------
 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|    146|  } else {
 2950|    146|    os << val;
 2951|    146|  }
 2952|    146|  return os;
 2953|    146|}
_ZN5Exiv28Internal11print0x829aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2955|    530|std::ostream& print0x829a(std::ostream& os, const Value& value, const ExifData*) {
 2956|    530|  if (value.count() == 0)
  ------------------
  |  Branch (2956:7): [True: 0, False: 530]
  ------------------
 2957|      0|    return os;
 2958|    530|  if (value.typeId() != unsignedRational)
  ------------------
  |  Branch (2958:7): [True: 32, False: 498]
  ------------------
 2959|     32|    return os << "(" << value << ")";
 2960|       |
 2961|    498|  using Exiv2::operator<<;
 2962|    498|  URational t = value.toRational();
 2963|    498|  if (t.first == 0 || t.second == 0) {
  ------------------
  |  Branch (2963:7): [True: 72, False: 426]
  |  Branch (2963:23): [True: 76, False: 350]
  ------------------
 2964|    148|    os << "(" << t << ")";
 2965|    350|  } else if (t.second == t.first) {
  ------------------
  |  Branch (2965:14): [True: 36, False: 314]
  ------------------
 2966|     36|    os << "1 s";
 2967|    314|  } else if (t.second % t.first == 0) {
  ------------------
  |  Branch (2967:14): [True: 176, False: 138]
  ------------------
 2968|    176|    t.second = t.second / t.first;
 2969|    176|    t.first = 1;
 2970|    176|    os << t << " s";
 2971|    176|  } else {
 2972|    138|    os << static_cast<float>(t.first) / t.second << " s";
 2973|    138|  }
 2974|    498|  return os;
 2975|    530|}
_ZN5Exiv28Internal11print0x829dERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2977|    328|std::ostream& print0x829d(std::ostream& os, const Value& value, const ExifData*) {
 2978|    328|  Rational fnumber = value.toRational();
 2979|    328|  if (fnumber.second != 0)
  ------------------
  |  Branch (2979:7): [True: 244, False: 84]
  ------------------
 2980|    244|    return os << stringFormat("F{:.2g}", static_cast<float>(fnumber.first) / fnumber.second);
  ------------------
  |  |   18|    244|#define stringFormat std::format
  ------------------
 2981|     84|  return os << "(" << value << ")";
 2982|    328|}
_ZN5Exiv28Internal11print0x8822ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2991|  1.06k|std::ostream& print0x8822(std::ostream& os, const Value& value, const ExifData* metadata) {
 2992|  1.06k|  return EXV_PRINT_TAG(exifExposureProgram)(os, value, metadata);
  ------------------
  |  |  199|  1.06k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2993|  1.06k|}
_ZN5Exiv28Internal11print0x8827ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2995|    254|std::ostream& print0x8827(std::ostream& os, const Value& value, const ExifData*) {
 2996|    254|  return os << value.toInt64();
 2997|    254|}
_ZN5Exiv28Internal11print0x9101ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2999|    248|std::ostream& print0x9101(std::ostream& os, const Value& value, const ExifData*) {
 3000|   115k|  for (size_t i = 0; i < value.count(); ++i) {
  ------------------
  |  Branch (3000:22): [True: 114k, False: 248]
  ------------------
 3001|   114k|    const auto l = value.toInt64(i);
 3002|   114k|    switch (l) {
 3003|  61.3k|      case 0:
  ------------------
  |  Branch (3003:7): [True: 61.3k, False: 53.5k]
  ------------------
 3004|  61.3k|        break;
 3005|  4.50k|      case 1:
  ------------------
  |  Branch (3005:7): [True: 4.50k, False: 110k]
  ------------------
 3006|  4.50k|        os << "Y";
 3007|  4.50k|        break;
 3008|  2.98k|      case 2:
  ------------------
  |  Branch (3008:7): [True: 2.98k, False: 111k]
  ------------------
 3009|  2.98k|        os << "Cb";
 3010|  2.98k|        break;
 3011|  3.15k|      case 3:
  ------------------
  |  Branch (3011:7): [True: 3.15k, False: 111k]
  ------------------
 3012|  3.15k|        os << "Cr";
 3013|  3.15k|        break;
 3014|  1.32k|      case 4:
  ------------------
  |  Branch (3014:7): [True: 1.32k, False: 113k]
  ------------------
 3015|  1.32k|        os << "R";
 3016|  1.32k|        break;
 3017|  1.22k|      case 5:
  ------------------
  |  Branch (3017:7): [True: 1.22k, False: 113k]
  ------------------
 3018|  1.22k|        os << "G";
 3019|  1.22k|        break;
 3020|    854|      case 6:
  ------------------
  |  Branch (3020:7): [True: 854, False: 114k]
  ------------------
 3021|    854|        os << "B";
 3022|    854|        break;
 3023|  39.5k|      default:
  ------------------
  |  Branch (3023:7): [True: 39.5k, False: 75.4k]
  ------------------
 3024|  39.5k|        os << "(" << l << ")";
 3025|  39.5k|        break;
 3026|   114k|    }
 3027|   114k|  }
 3028|    248|  return os;
 3029|    248|}
_ZN5Exiv28Internal11print0x9201ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3031|  1.91k|std::ostream& print0x9201(std::ostream& os, const Value& value, const ExifData*) {
 3032|  1.91k|  Rational r = value.toRational();
 3033|  1.91k|  if (!value.ok() || r.second == 0)
  ------------------
  |  Branch (3033:7): [True: 0, False: 1.91k]
  |  Branch (3033:22): [True: 272, False: 1.64k]
  ------------------
 3034|    272|    return os << "(" << value << ")";
 3035|       |
 3036|  1.64k|  URational ur = exposureTime(static_cast<float>(r.first) / r.second);
 3037|  1.64k|  os << ur.first;
 3038|  1.64k|  if (ur.second > 1) {
  ------------------
  |  Branch (3038:7): [True: 238, False: 1.40k]
  ------------------
 3039|    238|    os << "/" << ur.second;
 3040|    238|  }
 3041|  1.64k|  return os << " s";
 3042|  1.91k|}
_ZN5Exiv28Internal11print0x9202ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3044|  1.03k|std::ostream& print0x9202(std::ostream& os, const Value& value, const ExifData*) {
 3045|  1.03k|  if (value.count() == 0 || value.toRational().second == 0)
  ------------------
  |  Branch (3045:7): [True: 0, False: 1.03k]
  |  Branch (3045:7): [True: 62, False: 974]
  |  Branch (3045:29): [True: 62, False: 974]
  ------------------
 3046|     62|    return os << "(" << value << ")";
 3047|    974|  return os << stringFormat("F{:.2g}", fnumber(value.toFloat()));
  ------------------
  |  |   18|    974|#define stringFormat std::format
  ------------------
 3048|  1.03k|}
_ZN5Exiv28Internal11print0x9204ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3050|  1.52k|std::ostream& print0x9204(std::ostream& os, const Value& value, const ExifData*) {
 3051|  1.52k|  Rational bias = value.toRational();
 3052|       |
 3053|  1.52k|  if (bias.first == 0 || bias.first == std::numeric_limits<std::int32_t>::min()) {
  ------------------
  |  Branch (3053:7): [True: 122, False: 1.40k]
  |  Branch (3053:26): [True: 62, False: 1.34k]
  ------------------
 3054|    184|    os << "0 EV";
 3055|  1.34k|  } else if (bias.second <= 0) {
  ------------------
  |  Branch (3055:14): [True: 268, False: 1.07k]
  ------------------
 3056|    268|    os << "(" << bias.first << "/" << bias.second << ")";
 3057|  1.07k|  } else {
 3058|  1.07k|    int32_t d = std::gcd(bias.first, bias.second);
 3059|  1.07k|    int32_t num = std::abs(bias.first) / d;
 3060|  1.07k|    int32_t den = bias.second / d;
 3061|  1.07k|    os << (bias.first < 0 ? "-" : "+") << num;
  ------------------
  |  Branch (3061:12): [True: 282, False: 790]
  ------------------
 3062|  1.07k|    if (den != 1) {
  ------------------
  |  Branch (3062:9): [True: 814, False: 258]
  ------------------
 3063|    814|      os << "/" << den;
 3064|    814|    }
 3065|  1.07k|    os << " EV";
 3066|  1.07k|  }
 3067|  1.52k|  return os;
 3068|  1.52k|}
_ZN5Exiv28Internal11print0x9206ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3070|    282|std::ostream& print0x9206(std::ostream& os, const Value& value, const ExifData*) {
 3071|    282|  Rational distance = value.toRational();
 3072|    282|  if (distance.first == 0)
  ------------------
  |  Branch (3072:7): [True: 46, False: 236]
  ------------------
 3073|     46|    return os << _("Unknown");
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
 3074|    236|  if (static_cast<uint32_t>(distance.first) == std::numeric_limits<uint32_t>::max())
  ------------------
  |  Branch (3074:7): [True: 34, False: 202]
  ------------------
 3075|     34|    return os << _("Infinity");
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
 3076|    202|  if (distance.second != 0)
  ------------------
  |  Branch (3076:7): [True: 168, False: 34]
  ------------------
 3077|    168|    return os << stringFormat("{:.2f} m", static_cast<float>(distance.first) / distance.second);
  ------------------
  |  |   18|    168|#define stringFormat std::format
  ------------------
 3078|     34|  return os << "(" << value << ")";
 3079|    202|}
_ZN5Exiv28Internal11print0x9207ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3088|  3.42k|std::ostream& print0x9207(std::ostream& os, const Value& value, const ExifData* metadata) {
 3089|  3.42k|  return EXV_PRINT_TAG(exifMeteringMode)(os, value, metadata);
  ------------------
  |  |  199|  3.42k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3090|  3.42k|}
_ZN5Exiv28Internal11print0x9208ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3092|  2.81k|std::ostream& print0x9208(std::ostream& os, const Value& value, const ExifData* metadata) {
 3093|  2.81k|  return EXV_PRINT_TAG(exifLightSource)(os, value, metadata);
  ------------------
  |  |  199|  2.81k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3094|  2.81k|}
_ZN5Exiv28Internal11print0x920aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3096|  1.38k|std::ostream& print0x920a(std::ostream& os, const Value& value, const ExifData*) {
 3097|  1.38k|  Rational length = value.toRational();
 3098|  1.38k|  if (length.second != 0)
  ------------------
  |  Branch (3098:7): [True: 1.26k, False: 120]
  ------------------
 3099|  1.26k|    return os << stringFormat("{:.1f} mm", static_cast<float>(length.first) / length.second);
  ------------------
  |  |   18|  1.26k|#define stringFormat std::format
  ------------------
 3100|    120|  return os << "(" << value << ")";
 3101|  1.38k|}
_ZN5Exiv28Internal11print0xa001ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3110|    282|std::ostream& print0xa001(std::ostream& os, const Value& value, const ExifData* metadata) {
 3111|    282|  return EXV_PRINT_TAG(exifColorSpace)(os, value, metadata);
  ------------------
  |  |  199|    282|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3112|    282|}
_ZN5Exiv28Internal11print0xa217ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3125|    608|std::ostream& print0xa217(std::ostream& os, const Value& value, const ExifData* metadata) {
 3126|    608|  return EXV_PRINT_TAG(exifSensingMethod)(os, value, metadata);
  ------------------
  |  |  199|    608|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3127|    608|}
_ZN5Exiv28Internal11print0xa300ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3136|    172|std::ostream& print0xa300(std::ostream& os, const Value& value, const ExifData* metadata) {
 3137|    172|  return EXV_PRINT_TAG(exifFileSource)(os, value, metadata);
  ------------------
  |  |  199|    172|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3138|    172|}
_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|    178|std::ostream& print0xa401(std::ostream& os, const Value& value, const ExifData* metadata) {
 3156|    178|  return EXV_PRINT_TAG(exifCustomRendered)(os, value, metadata);
  ------------------
  |  |  199|    178|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3157|    178|}
_ZN5Exiv28Internal11print0xa402ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3166|    280|std::ostream& print0xa402(std::ostream& os, const Value& value, const ExifData* metadata) {
 3167|    280|  return EXV_PRINT_TAG(exifExposureMode)(os, value, metadata);
  ------------------
  |  |  199|    280|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3168|    280|}
_ZN5Exiv28Internal11print0xa403ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3176|    414|std::ostream& print0xa403(std::ostream& os, const Value& value, const ExifData* metadata) {
 3177|    414|  return EXV_PRINT_TAG(exifWhiteBalance)(os, value, metadata);
  ------------------
  |  |  199|    414|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3178|    414|}
_ZN5Exiv28Internal11print0xa404ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3180|    158|std::ostream& print0xa404(std::ostream& os, const Value& value, const ExifData*) {
 3181|    158|  Rational zoom = value.toRational();
 3182|    158|  if (zoom.second == 0)
  ------------------
  |  Branch (3182:7): [True: 26, False: 132]
  ------------------
 3183|     26|    return os << _("Digital zoom not used");
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
 3184|    132|  return os << stringFormat("{:.1f}", static_cast<float>(zoom.first) / zoom.second);
  ------------------
  |  |   18|    132|#define stringFormat std::format
  ------------------
 3185|    158|}
_ZN5Exiv28Internal11print0xa405ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3187|    108|std::ostream& print0xa405(std::ostream& os, const Value& value, const ExifData*) {
 3188|    108|  if (auto length = value.toInt64(); length != 0)
  ------------------
  |  Branch (3188:38): [True: 76, False: 32]
  ------------------
 3189|     76|    return os << length << ".0 mm";
 3190|     32|  return os << _("Unknown");
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
 3191|    108|}
_ZN5Exiv28Internal11print0xa406ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3201|    636|std::ostream& print0xa406(std::ostream& os, const Value& value, const ExifData* metadata) {
 3202|    636|  return EXV_PRINT_TAG(exifSceneCaptureType)(os, value, metadata);
  ------------------
  |  |  199|    636|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3203|    636|}
_ZN5Exiv28Internal11print0xa407ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3211|    594|std::ostream& print0xa407(std::ostream& os, const Value& value, const ExifData* metadata) {
 3212|    594|  return EXV_PRINT_TAG(exifGainControl)(os, value, metadata);
  ------------------
  |  |  199|    594|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3213|    594|}
_ZN5Exiv28Internal11print0xa409ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3222|    380|std::ostream& print0xa409(std::ostream& os, const Value& value, const ExifData* metadata) {
 3223|    380|  return EXV_PRINT_TAG(exifSaturation)(os, value, metadata);
  ------------------
  |  |  199|    380|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3224|    380|}
_ZN5Exiv28Internal11print0xa40cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3234|    300|std::ostream& print0xa40c(std::ostream& os, const Value& value, const ExifData* metadata) {
 3235|    300|  return EXV_PRINT_TAG(exifSubjectDistanceRange)(os, value, metadata);
  ------------------
  |  |  199|    300|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3236|    300|}
_ZN5Exiv28Internal14printGPSDirRefERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3238|    152|std::ostream& printGPSDirRef(std::ostream& os, const Value& value, const ExifData* metadata) {
 3239|    152|  return EXV_PRINT_TAG(exifGPSDirRef)(os, value, metadata);
  ------------------
  |  |  199|    152|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3240|    152|}
_ZN5Exiv28Internal19printNormalSoftHardERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3249|    310|std::ostream& printNormalSoftHard(std::ostream& os, const Value& value, const ExifData* metadata) {
 3250|    310|  return EXV_PRINT_TAG(exifNormalSoftHard)(os, value, metadata);
  ------------------
  |  |  199|    310|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3251|    310|}
_ZN5Exiv28Internal16printExifVersionERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3253|  3.97k|std::ostream& printExifVersion(std::ostream& os, const Value& value, const ExifData*) {
 3254|  3.97k|  if (value.size() != 4 || value.typeId() != undefined) {
  ------------------
  |  Branch (3254:7): [True: 2.23k, False: 1.74k]
  |  Branch (3254:28): [True: 506, False: 1.23k]
  ------------------
 3255|  2.73k|    return os << "(" << value << ")";
 3256|  2.73k|  }
 3257|       |
 3258|  1.23k|  char s[5];
 3259|  6.17k|  for (int i = 0; i < 4; ++i) {
  ------------------
  |  Branch (3259:19): [True: 4.93k, False: 1.23k]
  ------------------
 3260|  4.93k|    s[i] = static_cast<char>(value.toInt64(i));
 3261|  4.93k|  }
 3262|  1.23k|  s[4] = '\0';
 3263|       |
 3264|  1.23k|  return printVersion(os, s);
 3265|  3.97k|}
_ZN5Exiv28Internal7tagListERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 3294|  5.25k|const TagInfo* tagList(const std::string& groupName) {
 3295|  5.25k|  auto ii = Exiv2::find(groupInfo, groupName);
 3296|  5.25k|  if (!ii || !ii->tagList_) {
  ------------------
  |  Branch (3296:7): [True: 0, False: 5.25k]
  |  Branch (3296:14): [True: 0, False: 5.25k]
  ------------------
 3297|      0|    return nullptr;
 3298|      0|  }
 3299|  5.25k|  return ii->tagList_();
 3300|  5.25k|}
tags_int.cpp:_ZN12_GLOBAL__N_112printVersionERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS0_17basic_string_viewIcS3_EE:
   33|  1.23k|std::ostream& printVersion(std::ostream& os, std::string_view str) {
   34|  1.23k|  if (str.size() != 4) {
  ------------------
  |  Branch (34:7): [True: 68, False: 1.16k]
  ------------------
   35|     68|    return os << "(" << str << ")";
   36|     68|  }
   37|  1.16k|  if (str.front() != '0')
  ------------------
  |  Branch (37:7): [True: 102, False: 1.06k]
  ------------------
   38|    102|    os << str.front();
   39|  1.16k|  return os << str[1] << "." << str[2] << str[3];
   40|  1.23k|}

_ZNK5Exiv28Internal10TagDetailseqEl:
   50|  8.75M|  bool operator==(int64_t key) const {
   51|  8.75M|    return key == val_;
   52|  8.75M|  }
_ZNK5Exiv28Internal16StringTagDetailseqENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   64|  27.0k|  bool operator==(std::string_view key) const {
   65|  27.0k|    return key == val_;
   66|  27.0k|  }
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13nikon2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    370|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    370|  static_assert(N > 0, "Passed zero length printTag");
  195|    370|  return printTag<N, array>(os, value.toInt64(), data);
  196|    370|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13nikon2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    370|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    370|  static_assert(N > 0, "Passed zero length printTag");
  183|    370|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 284, False: 86]
  ------------------
  184|    284|    return os << _(td->label_);
  ------------------
  |  |   40|    284|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    370|}
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|    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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikon2ImageAdjustmentEEEERNSt3__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: 478, False: 160]
  ------------------
  184|    478|    return os << _(td->label_);
  ------------------
  |  |   40|    478|#define _(String) (String)
  ------------------
  185|    160|  return os << "(" << value << ")";
  186|    638|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikon2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    780|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    780|  static_assert(N > 0, "Passed zero length printTag");
  195|    780|  return printTag<N, array>(os, value.toInt64(), data);
  196|    780|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikon2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    780|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    780|  static_assert(N > 0, "Passed zero length printTag");
  183|    780|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 494, False: 286]
  ------------------
  184|    494|    return os << _(td->label_);
  ------------------
  |  |   40|    494|#define _(String) (String)
  ------------------
  185|    286|  return os << "(" << value << ")";
  186|    780|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikon2WhiteBalanceEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikon2WhiteBalanceEEEERNSt3__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: 672, False: 346]
  ------------------
  184|    672|    return os << _(td->label_);
  ------------------
  |  |   40|    672|#define _(String) (String)
  ------------------
  185|    346|  return os << "(" << value << ")";
  186|  1.01k|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashCompEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    740|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    740|  static_assert(N > 0, "Passed zero length printTag");
  195|    740|  return printTag<N, array>(os, value.toInt64(), data);
  196|    740|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashCompEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    740|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    740|  static_assert(N > 0, "Passed zero length printTag");
  183|    740|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 638, False: 102]
  ------------------
  184|    638|    return os << _(td->label_);
  ------------------
  |  |   40|    638|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    740|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    138|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    138|  static_assert(N > 0, "Passed zero length printTag");
  195|    138|  return printTag<N, array>(os, value.toInt64(), data);
  196|    138|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonColorSpaceEEEERNSt3__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: 90, False: 48]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|    138|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    218|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    218|  static_assert(N > 0, "Passed zero length printTag");
  195|    218|  return printTag<N, array>(os, value.toInt64(), data);
  196|    218|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    218|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    218|  static_assert(N > 0, "Passed zero length printTag");
  183|    218|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 84, False: 134]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    218|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonActiveDLightingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    364|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    364|  static_assert(N > 0, "Passed zero length printTag");
  195|    364|  return printTag<N, array>(os, value.toInt64(), data);
  196|    364|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonActiveDLightingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    364|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    364|  static_assert(N > 0, "Passed zero length printTag");
  183|    364|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 296, False: 68]
  ------------------
  184|    296|    return os << _(td->label_);
  ------------------
  |  |   40|    296|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    364|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9nikonOlnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    158|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    158|  static_assert(N > 0, "Passed zero length printTag");
  195|    158|  return printTag<N, array>(os, value.toInt64(), data);
  196|    158|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9nikonOlnhEEEERNSt3__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: 116, False: 42]
  ------------------
  184|    116|    return os << _(td->label_);
  ------------------
  |  |   40|    116|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    158|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonShutterModesEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonShutterModesEEEERNSt3__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: 184, False: 50]
  ------------------
  184|    184|    return os << _(td->label_);
  ------------------
  |  |   40|    184|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    234|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    558|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    558|  static_assert(N > 0, "Passed zero length printTag");
  195|    558|  return printTag<N, array>(os, value.toInt64(), data);
  196|    558|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    558|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    558|  static_assert(N > 0, "Passed zero length printTag");
  183|    558|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 460, False: 98]
  ------------------
  184|    460|    return os << _(td->label_);
  ------------------
  |  |   40|    460|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    558|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonAutoBracketReleaseEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonAutoBracketReleaseEEEERNSt3__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: 144, False: 54]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    198|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19nikonNefCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    666|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    666|  static_assert(N > 0, "Passed zero length printTag");
  195|    666|  return printTag<N, array>(os, value.toInt64(), data);
  196|    666|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19nikonNefCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    666|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    666|  static_assert(N > 0, "Passed zero length printTag");
  183|    666|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 248, False: 418]
  ------------------
  184|    248|    return os << _(td->label_);
  ------------------
  |  |   40|    248|#define _(String) (String)
  ------------------
  185|    418|  return os << "(" << value << ")";
  186|    666|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26nikonHighISONoiseReductionEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26nikonHighISONoiseReductionEEEERNSt3__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: 132, False: 70]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    202|}
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: 4, False: 14]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|     18|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonAdjustEEEERNSt3__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_L11nikonAdjustEEEERNSt3__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: 20, False: 54]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|     74|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFilterEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     64|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     64|  static_assert(N > 0, "Passed zero length printTag");
  195|     64|  return printTag<N, array>(os, value.toInt64(), data);
  196|     64|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFilterEffectEEEERNSt3__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: 30, False: 34]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     64|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     64|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     64|  static_assert(N > 0, "Passed zero length printTag");
  195|     64|  return printTag<N, array>(os, value.toInt64(), data);
  196|     64|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonToningEffectEEEERNSt3__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: 22, False: 42]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|     64|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8aftOnOffEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8aftOnOffEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonYesNoEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonYesNoEEEERNSt3__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: 28, False: 120]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    148|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonDateDisplayFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonDateDisplayFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 48]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|     62|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonIsoExpansionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     36|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     36|  static_assert(N > 0, "Passed zero length printTag");
  195|     36|  return printTag<N, array>(os, value.toInt64(), data);
  196|     36|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonIsoExpansionEEEERNSt3__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: 10, False: 26]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     36|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonAfAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonAfAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 60, False: 42]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    102|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12nikonAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     96|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     96|  static_assert(N > 0, "Passed zero length printTag");
  195|     96|  return printTag<N, array>(os, value.toInt64(), data);
  196|     96|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12nikonAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     96|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     96|  static_assert(N > 0, "Passed zero length printTag");
  183|     96|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 62, False: 34]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     96|}
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|     10|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     10|  static_assert(N > 0, "Passed zero length printTag");
  195|     10|  return printTag<N, array>(os, value.toInt64(), data);
  196|     10|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonMultiExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     10|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     10|  static_assert(N > 0, "Passed zero length printTag");
  183|     10|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 4]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|      4|  return os << "(" << value << ")";
  186|     10|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16nikonFlashSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16nikonFlashSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    124|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    124|  static_assert(N > 0, "Passed zero length printTag");
  183|    124|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 90]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    124|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonFlashFirmwareEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonFlashFirmwareEEEERNSt3__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|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonExternalFlashFlagsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     34|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     34|  static_assert(N > 0, "Passed zero length printTag");
  195|     34|  return printTag<N, array>(os, value.toInt64(), data);
  196|     34|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonExternalFlashFlagsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     34|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     34|  static_assert(N > 0, "Passed zero length printTag");
  183|     34|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 20]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     34|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm81ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonFlashGNDistanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm81ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonFlashGNDistanceEEEERNSt3__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: 66, False: 38]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    104|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashControlModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     88|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     88|  static_assert(N > 0, "Passed zero length printTag");
  195|     88|  return printTag<N, array>(os, value.toInt64(), data);
  196|     88|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     88|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     88|  static_assert(N > 0, "Passed zero length printTag");
  183|     88|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 56]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|     88|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFlashAWLModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFlashAWLModeEEEERNSt3__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: 18, False: 2]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|      2|  return os << "(" << value << ")";
  186|     20|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     42|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     42|  static_assert(N > 0, "Passed zero length printTag");
  195|     42|  return printTag<N, array>(os, value.toInt64(), data);
  196|     42|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     42|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     42|  static_assert(N > 0, "Passed zero length printTag");
  183|     42|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 32]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|     42|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     12|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     12|  static_assert(N > 0, "Passed zero length printTag");
  195|     12|  return printTag<N, array>(os, value.toInt64(), data);
  196|     12|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     12|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     12|  static_assert(N > 0, "Passed zero length printTag");
  183|     12|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 2]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|      2|  return os << "(" << value << ")";
  186|     12|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm53ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonZMountLensIdEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm53ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonZMountLensIdEEEERNSt3__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: 112, False: 36]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    148|}
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|     94|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|     94|  static_assert(N > 0, "Passed zero length printTag");
  208|     94|  const auto val = value.toUint32();
  209|     94|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 2, False: 92]
  ------------------
  210|      2|    auto [mask, label] = *array;
  211|      2|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 2]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      2|  }
  214|     94|  bool sep = false;
  215|  1.03k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.03k, False: 94]
  ------------------
  216|  1.03k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 235, False: 799]
  ------------------
  217|    235|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 145, False: 90]
  ------------------
  218|    145|        os << ", " << _(label);
  ------------------
  |  |   40|    145|#define _(String) (String)
  ------------------
  219|    145|      } else {
  220|     90|        os << _(label);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  221|     90|        sep = true;
  222|     90|      }
  223|    235|    }
  224|  1.03k|  }
  225|     94|  return os;
  226|     94|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20nikonShootingModeD70EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    188|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    188|  static_assert(N > 0, "Passed zero length printTag");
  208|    188|  const auto val = value.toUint32();
  209|    188|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 188]
  ------------------
  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|    188|  bool sep = false;
  215|  1.31k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.31k, False: 188]
  ------------------
  216|  1.31k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 559, False: 757]
  ------------------
  217|    559|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 387, False: 172]
  ------------------
  218|    387|        os << ", " << _(label);
  ------------------
  |  |   40|    387|#define _(String) (String)
  ------------------
  219|    387|      } else {
  220|    172|        os << _(label);
  ------------------
  |  |   40|    172|#define _(String) (String)
  ------------------
  221|    172|        sep = true;
  222|    172|      }
  223|    559|    }
  224|  1.31k|  }
  225|    188|  return os;
  226|    188|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L17nikonShootingModeEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    722|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    722|  static_assert(N > 0, "Passed zero length printTag");
  208|    722|  const auto val = value.toUint32();
  209|    722|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 722]
  ------------------
  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|    722|  bool sep = false;
  215|  6.49k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 6.49k, False: 722]
  ------------------
  216|  6.49k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 2.08k, False: 4.41k]
  ------------------
  217|  2.08k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 1.37k, False: 707]
  ------------------
  218|  1.37k|        os << ", " << _(label);
  ------------------
  |  |   40|  1.37k|#define _(String) (String)
  ------------------
  219|  1.37k|      } else {
  220|    707|        os << _(label);
  ------------------
  |  |   40|    707|#define _(String) (String)
  ------------------
  221|    707|        sep = true;
  222|    707|      }
  223|  2.08k|    }
  224|  6.49k|  }
  225|    722|  return os;
  226|    722|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm3ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L18nikonFlashAdaptorsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|     40|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|     40|  static_assert(N > 0, "Passed zero length printTag");
  208|     40|  const auto val = value.toUint32();
  209|     40|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 40]
  ------------------
  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|     40|  bool sep = false;
  215|    120|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 120, False: 40]
  ------------------
  216|    120|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 46, False: 74]
  ------------------
  217|     46|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 22, False: 24]
  ------------------
  218|     22|        os << ", " << _(label);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  219|     24|      } else {
  220|     24|        os << _(label);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  221|     24|        sep = true;
  222|     24|      }
  223|     46|    }
  224|    120|  }
  225|     40|  return os;
  226|     40|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashControlModeEEEERNSt3__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: 240, False: 58]
  ------------------
  184|    240|    return os << _(td->label_);
  ------------------
  |  |   40|    240|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    298|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonFlashExposureCompEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     36|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     36|  static_assert(N > 0, "Passed zero length printTag");
  183|     36|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 0]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|      0|  return os << "(" << value << ")";
  186|     36|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25nikonFlashIlluminationPatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     20|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     20|  static_assert(N > 0, "Passed zero length printTag");
  183|     20|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 10]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     10|  return os << "(" << value << ")";
  186|     20|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNewSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.81k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.81k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.81k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.81k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNewSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.81k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.81k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.81k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.56k, False: 252]
  ------------------
  184|  4.56k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.56k|#define _(String) (String)
  ------------------
  185|    252|  return os << "(" << value << ")";
  186|  4.81k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifSubfileTypeEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifSubfileTypeEEEERNSt3__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: 214, False: 388]
  ------------------
  184|    214|    return os << _(td->label_);
  ------------------
  |  |   40|    214|#define _(String) (String)
  ------------------
  185|    388|  return os << "(" << value << ")";
  186|    602|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm34ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.91k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.91k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.91k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.91k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm34ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.91k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.91k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.91k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.34k, False: 568]
  ------------------
  184|  1.34k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.34k|#define _(String) (String)
  ------------------
  185|    568|  return os << "(" << value << ")";
  186|  1.91k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29exifPhotometricInterpretationEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29exifPhotometricInterpretationEEEERNSt3__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: 798, False: 270]
  ------------------
  184|    798|    return os << _(td->label_);
  ------------------
  |  |   40|    798|#define _(String) (String)
  ------------------
  185|    270|  return os << "(" << value << ")";
  186|  1.06k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifThresholdingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    390|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    390|  static_assert(N > 0, "Passed zero length printTag");
  195|    390|  return printTag<N, array>(os, value.toInt64(), data);
  196|    390|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifThresholdingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    390|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    390|  static_assert(N > 0, "Passed zero length printTag");
  183|    390|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 194, False: 196]
  ------------------
  184|    194|    return os << _(td->label_);
  ------------------
  |  |   40|    194|#define _(String) (String)
  ------------------
  185|    196|  return os << "(" << value << ")";
  186|    390|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23exifPlanarConfigurationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    252|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    252|  static_assert(N > 0, "Passed zero length printTag");
  195|    252|  return printTag<N, array>(os, value.toInt64(), data);
  196|    252|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23exifPlanarConfigurationEEEERNSt3__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: 184, False: 68]
  ------------------
  184|    184|    return os << _(td->label_);
  ------------------
  |  |   40|    184|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    252|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifPredictorEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifPredictorEEEERNSt3__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: 204, False: 206]
  ------------------
  184|    204|    return os << _(td->label_);
  ------------------
  |  |   40|    204|#define _(String) (String)
  ------------------
  185|    206|  return os << "(" << value << ")";
  186|    410|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10exifInkSetEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    238|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    238|  static_assert(N > 0, "Passed zero length printTag");
  195|    238|  return printTag<N, array>(os, value.toInt64(), data);
  196|    238|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10exifInkSetEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    238|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    238|  static_assert(N > 0, "Passed zero length printTag");
  183|    238|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 148, False: 90]
  ------------------
  184|    148|    return os << _(td->label_);
  ------------------
  |  |   40|    148|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    238|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifSampleFormatEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifSampleFormatEEEERNSt3__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: 266, False: 150]
  ------------------
  184|    266|    return os << _(td->label_);
  ------------------
  |  |   40|    266|#define _(String) (String)
  ------------------
  185|    150|  return os << "(" << value << ")";
  186|    416|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11exifIndexedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    182|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    182|  static_assert(N > 0, "Passed zero length printTag");
  195|    182|  return printTag<N, array>(os, value.toInt64(), data);
  196|    182|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11exifIndexedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    182|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    182|  static_assert(N > 0, "Passed zero length printTag");
  183|    182|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 112]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    182|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25exifJpegLosslessPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.83k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.83k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.83k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.83k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25exifJpegLosslessPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.83k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.83k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.83k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.32k, False: 514]
  ------------------
  184|  1.32k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.32k|#define _(String) (String)
  ------------------
  185|    514|  return os << "(" << value << ")";
  186|  1.83k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm27ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9exifFlashEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm27ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9exifFlashEEEERNSt3__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: 3.56k, False: 528]
  ------------------
  184|  3.56k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.56k|#define _(String) (String)
  ------------------
  185|    528|  return os << "(" << value << ")";
  186|  4.08k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28tiffFocalPlaneResolutionUnitEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28tiffFocalPlaneResolutionUnitEEEERNSt3__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: 320, False: 368]
  ------------------
  184|    320|    return os << _(td->label_);
  ------------------
  |  |   40|    320|#define _(String) (String)
  ------------------
  185|    368|  return os << "(" << value << ")";
  186|    688|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17tiffSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    806|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    806|  static_assert(N > 0, "Passed zero length printTag");
  195|    806|  return printTag<N, array>(os, value.toInt64(), data);
  196|    806|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17tiffSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    806|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    806|  static_assert(N > 0, "Passed zero length printTag");
  183|    806|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 586, False: 220]
  ------------------
  184|    586|    return os << _(td->label_);
  ------------------
  |  |   40|    586|#define _(String) (String)
  ------------------
  185|    220|  return os << "(" << value << ")";
  186|    806|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12dngCfaLayoutEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12dngCfaLayoutEEEERNSt3__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: 348, False: 246]
  ------------------
  184|    348|    return os << _(td->label_);
  ------------------
  |  |   40|    348|#define _(String) (String)
  ------------------
  185|    246|  return os << "(" << value << ")";
  186|    594|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngMakerNoteSafetyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    452|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    452|  static_assert(N > 0, "Passed zero length printTag");
  195|    452|  return printTag<N, array>(os, value.toInt64(), data);
  196|    452|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngMakerNoteSafetyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    452|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    452|  static_assert(N > 0, "Passed zero length printTag");
  183|    452|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 256, False: 196]
  ------------------
  184|    256|    return os << _(td->label_);
  ------------------
  |  |   40|    256|#define _(String) (String)
  ------------------
  185|    196|  return os << "(" << value << ")";
  186|    452|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24dngColorimetricReferenceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    262|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    262|  static_assert(N > 0, "Passed zero length printTag");
  195|    262|  return printTag<N, array>(os, value.toInt64(), data);
  196|    262|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24dngColorimetricReferenceEEEERNSt3__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: 188, False: 74]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    262|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngProfileEmbedPolicyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    178|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    178|  static_assert(N > 0, "Passed zero length printTag");
  195|    178|  return printTag<N, array>(os, value.toInt64(), data);
  196|    178|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngProfileEmbedPolicyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    178|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    178|  static_assert(N > 0, "Passed zero length printTag");
  183|    178|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 84, False: 94]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    178|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20dngPreviewColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    288|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    288|  static_assert(N > 0, "Passed zero length printTag");
  195|    288|  return printTag<N, array>(os, value.toInt64(), data);
  196|    288|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20dngPreviewColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    288|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    288|  static_assert(N > 0, "Passed zero length printTag");
  183|    288|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 198, False: 90]
  ------------------
  184|    198|    return os << _(td->label_);
  ------------------
  |  |   40|    198|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    288|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngProfileEncodingEEEERNSt3__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_L18dngProfileEncodingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    110|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    110|  static_assert(N > 0, "Passed zero length printTag");
  183|    110|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 72, False: 38]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    110|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngDefaultBlackRenderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    112|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    112|  static_assert(N > 0, "Passed zero length printTag");
  195|    112|  return printTag<N, array>(os, value.toInt64(), data);
  196|    112|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngDefaultBlackRenderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    112|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    112|  static_assert(N > 0, "Passed zero length printTag");
  183|    112|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 88]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    112|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14dngDepthFormatEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14dngDepthFormatEEEERNSt3__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: 76, False: 58]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    134|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13dngDepthUnitsEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13dngDepthUnitsEEEERNSt3__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: 42, False: 32]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|     74|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19dngDepthMeasureTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    124|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    124|  static_assert(N > 0, "Passed zero length printTag");
  195|    124|  return printTag<N, array>(os, value.toInt64(), data);
  196|    124|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19dngDepthMeasureTypeEEEERNSt3__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: 56, False: 68]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    124|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifLensCorrectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     88|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     88|  static_assert(N > 0, "Passed zero length printTag");
  195|     88|  return printTag<N, array>(os, value.toInt64(), data);
  196|     88|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifLensCorrectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     88|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     88|  static_assert(N > 0, "Passed zero length printTag");
  183|     88|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 52, False: 36]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|     88|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNoiseReductionEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNoiseReductionEEEERNSt3__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: 40, False: 18]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     58|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCompositeImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    186|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    186|  static_assert(N > 0, "Passed zero length printTag");
  195|    186|  return printTag<N, array>(os, value.toInt64(), data);
  196|    186|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCompositeImageEEEERNSt3__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: 108, False: 78]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    186|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSLatitudeRefEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSLatitudeRefEEEERNSt3__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: 78, False: 138]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|    138|  return os << "(" << value << ")";
  186|    216|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSLongitudeRefEEEERNSt3__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_L19exifGPSLongitudeRefEEEERNSt3__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: 46, False: 90]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    136|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm32ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifLightSourceEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm32ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifLightSourceEEEERNSt3__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.47k, False: 378]
  ------------------
  184|  2.47k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.47k|#define _(String) (String)
  ------------------
  185|    378|  return os << "(" << value << ")";
  186|  2.85k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8exifUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    364|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    364|  static_assert(N > 0, "Passed zero length printTag");
  195|    364|  return printTag<N, array>(os, value.toInt64(), data);
  196|    364|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8exifUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    364|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    364|  static_assert(N > 0, "Passed zero length printTag");
  183|    364|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 262, False: 102]
  ------------------
  184|    262|    return os << _(td->label_);
  ------------------
  |  |   40|    262|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    364|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSAltitudeRefEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSAltitudeRefEEEERNSt3__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: 102, False: 38]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    140|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSStatusEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSStatusEEEERNSt3__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: 32, False: 116]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    148|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSMeasureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     88|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     88|  static_assert(N > 0, "Passed zero length printTag");
  195|     88|  return printTag<N, array>(os, value.toInt64(), data);
  196|     88|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSMeasureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     88|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     88|  static_assert(N > 0, "Passed zero length printTag");
  183|     88|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 44, False: 44]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|     88|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGPSSpeedRefEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGPSSpeedRefEEEERNSt3__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: 162, False: 112]
  ------------------
  184|    162|    return os << _(td->label_);
  ------------------
  |  |   40|    162|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    274|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22exifGPSDestDistanceRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    194|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    194|  static_assert(N > 0, "Passed zero length printTag");
  195|    194|  return printTag<N, array>(os, value.toInt64(), data);
  196|    194|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22exifGPSDestDistanceRefEEEERNSt3__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: 134, False: 60]
  ------------------
  184|    134|    return os << _(td->label_);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|    194|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSDifferentialEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    182|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    182|  static_assert(N > 0, "Passed zero length printTag");
  195|    182|  return printTag<N, array>(os, value.toInt64(), data);
  196|    182|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSDifferentialEEEERNSt3__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: 114, False: 68]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    182|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifOrientationEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifOrientationEEEERNSt3__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: 742, False: 472]
  ------------------
  184|    742|    return os << _(td->label_);
  ------------------
  |  |   40|    742|#define _(String) (String)
  ------------------
  185|    472|  return os << "(" << value << ")";
  186|  1.21k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifYCbCrPositioningEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifYCbCrPositioningEEEERNSt3__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: 210, False: 56]
  ------------------
  184|    210|    return os << _(td->label_);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    266|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifExposureProgramEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifExposureProgramEEEERNSt3__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: 858, False: 206]
  ------------------
  184|    858|    return os << _(td->label_);
  ------------------
  |  |   40|    858|#define _(String) (String)
  ------------------
  185|    206|  return os << "(" << value << ")";
  186|  1.06k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.42k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.42k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.42k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.42k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.42k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.42k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.42k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.84k, False: 586]
  ------------------
  184|  2.84k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.84k|#define _(String) (String)
  ------------------
  185|    586|  return os << "(" << value << ")";
  186|  3.42k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    282|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    282|  static_assert(N > 0, "Passed zero length printTag");
  195|    282|  return printTag<N, array>(os, value.toInt64(), data);
  196|    282|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    282|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    282|  static_assert(N > 0, "Passed zero length printTag");
  183|    282|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 228, False: 54]
  ------------------
  184|    228|    return os << _(td->label_);
  ------------------
  |  |   40|    228|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    282|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17exifSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    608|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    608|  static_assert(N > 0, "Passed zero length printTag");
  195|    608|  return printTag<N, array>(os, value.toInt64(), data);
  196|    608|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17exifSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    608|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    608|  static_assert(N > 0, "Passed zero length printTag");
  183|    608|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 514, False: 94]
  ------------------
  184|    514|    return os << _(td->label_);
  ------------------
  |  |   40|    514|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    608|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifFileSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    172|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    172|  static_assert(N > 0, "Passed zero length printTag");
  195|    172|  return printTag<N, array>(os, value.toInt64(), data);
  196|    172|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifFileSourceEEEERNSt3__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: 64, False: 108]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    172|}
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: 8, False: 50]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|     58|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCustomRenderedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    178|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    178|  static_assert(N > 0, "Passed zero length printTag");
  195|    178|  return printTag<N, array>(os, value.toInt64(), data);
  196|    178|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCustomRenderedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    178|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    178|  static_assert(N > 0, "Passed zero length printTag");
  183|    178|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 142, False: 36]
  ------------------
  184|    142|    return os << _(td->label_);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    178|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    280|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    280|  static_assert(N > 0, "Passed zero length printTag");
  195|    280|  return printTag<N, array>(os, value.toInt64(), data);
  196|    280|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifExposureModeEEEERNSt3__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: 230, False: 50]
  ------------------
  184|    230|    return os << _(td->label_);
  ------------------
  |  |   40|    230|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    280|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    414|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    414|  static_assert(N > 0, "Passed zero length printTag");
  195|    414|  return printTag<N, array>(os, value.toInt64(), data);
  196|    414|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    414|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    414|  static_assert(N > 0, "Passed zero length printTag");
  183|    414|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 222, False: 192]
  ------------------
  184|    222|    return os << _(td->label_);
  ------------------
  |  |   40|    222|#define _(String) (String)
  ------------------
  185|    192|  return os << "(" << value << ")";
  186|    414|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifSceneCaptureTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    636|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    636|  static_assert(N > 0, "Passed zero length printTag");
  195|    636|  return printTag<N, array>(os, value.toInt64(), data);
  196|    636|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifSceneCaptureTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    636|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    636|  static_assert(N > 0, "Passed zero length printTag");
  183|    636|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 340, False: 296]
  ------------------
  184|    340|    return os << _(td->label_);
  ------------------
  |  |   40|    340|#define _(String) (String)
  ------------------
  185|    296|  return os << "(" << value << ")";
  186|    636|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGainControlEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGainControlEEEERNSt3__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: 474, False: 120]
  ------------------
  184|    474|    return os << _(td->label_);
  ------------------
  |  |   40|    474|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    594|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifSaturationEEEERNSt3__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|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifSaturationEEEERNSt3__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: 210, False: 170]
  ------------------
  184|    210|    return os << _(td->label_);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
  185|    170|  return os << "(" << value << ")";
  186|    380|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24exifSubjectDistanceRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    300|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    300|  static_assert(N > 0, "Passed zero length printTag");
  195|    300|  return printTag<N, array>(os, value.toInt64(), data);
  196|    300|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24exifSubjectDistanceRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    300|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    300|  static_assert(N > 0, "Passed zero length printTag");
  183|    300|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 224, False: 76]
  ------------------
  184|    224|    return os << _(td->label_);
  ------------------
  |  |   40|    224|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    300|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSDirRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    152|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    152|  static_assert(N > 0, "Passed zero length printTag");
  195|    152|  return printTag<N, array>(os, value.toInt64(), data);
  196|    152|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSDirRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    152|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    152|  static_assert(N > 0, "Passed zero length printTag");
  183|    152|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 112, False: 40]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    152|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNormalSoftHardEEEERNSt3__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_L18exifNormalSoftHardEEEERNSt3__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: 278, False: 32]
  ------------------
  184|    278|    return os << _(td->label_);
  ------------------
  |  |   40|    278|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    310|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm534ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     29|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     29|  static_assert(N > 0, "Passed zero length printTag");
  195|     29|  return printTag<N, array>(os, value.toInt64(), data);
  196|     29|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm534ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     29|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     29|  static_assert(N > 0, "Passed zero length printTag");
  183|     29|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 29, False: 0]
  ------------------
  184|     29|    return os << _(td->label_);
  ------------------
  |  |   40|     29|#define _(String) (String)
  ------------------
  185|      0|  return os << "(" << value << ")";
  186|     29|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm357ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    260|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    260|  static_assert(N > 0, "Passed zero length printTag");
  195|    260|  return printTag<N, array>(os, value.toInt64(), data);
  196|    260|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm357ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonModelIdEEEERNSt3__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: 96, False: 164]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|    164|  return os << "(" << value << ")";
  186|    260|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSerialNumberFormatEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSerialNumberFormatEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonSuperMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    616|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    616|  static_assert(N > 0, "Passed zero length printTag");
  195|    616|  return printTag<N, array>(os, value.toInt64(), data);
  196|    616|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonSuperMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    616|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    616|  static_assert(N > 0, "Passed zero length printTag");
  183|    616|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 494, False: 122]
  ------------------
  184|    494|    return os << _(td->label_);
  ------------------
  |  |   40|    494|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    616|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonDateStampModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    256|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    256|  static_assert(N > 0, "Passed zero length printTag");
  195|    256|  return printTag<N, array>(os, value.toInt64(), data);
  196|    256|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonDateStampModeEEEERNSt3__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: 178, False: 78]
  ------------------
  184|    178|    return os << _(td->label_);
  ------------------
  |  |   40|    178|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    256|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    168|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    168|  static_assert(N > 0, "Passed zero length printTag");
  195|    168|  return printTag<N, array>(os, value.toInt64(), data);
  196|    168|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonColorSpaceEEEERNSt3__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: 68, False: 100]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    168|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonAFAreaModeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonAFAreaModeEEEERNSt3__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: 778, False: 212]
  ------------------
  184|    778|    return os << _(td->label_);
  ------------------
  |  |   40|    778|#define _(String) (String)
  ------------------
  185|    212|  return os << "(" << value << ")";
  186|    990|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonPictureStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    260|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    260|  static_assert(N > 0, "Passed zero length printTag");
  195|    260|  return printTag<N, array>(os, value.toInt64(), data);
  196|    260|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonPictureStyleEEEERNSt3__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: 210, False: 50]
  ------------------
  184|    210|    return os << _(td->label_);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    260|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonSiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    418|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    418|  static_assert(N > 0, "Passed zero length printTag");
  195|    418|  return printTag<N, array>(os, value.toInt64(), data);
  196|    418|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonSiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    418|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    418|  static_assert(N > 0, "Passed zero length printTag");
  183|    418|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 140, False: 278]
  ------------------
  184|    140|    return os << _(td->label_);
  ------------------
  |  |   40|    140|#define _(String) (String)
  ------------------
  185|    278|  return os << "(" << value << ")";
  186|    418|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonAFMicroAdjModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     24|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     24|  static_assert(N > 0, "Passed zero length printTag");
  195|     24|  return printTag<N, array>(os, value.toInt64(), data);
  196|     24|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonAFMicroAdjModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     24|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     24|  static_assert(N > 0, "Passed zero length printTag");
  183|     24|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 18]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     24|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    954|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    954|  static_assert(N > 0, "Passed zero length printTag");
  195|    954|  return printTag<N, array>(os, value.toInt64(), data);
  196|    954|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    954|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    954|  static_assert(N > 0, "Passed zero length printTag");
  183|    954|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 144, False: 810]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|    810|  return os << "(" << value << ")";
  186|    954|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAutoLightingOptimizerEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAutoLightingOptimizerEEEERNSt3__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: 10, False: 106]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    116|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonLongExposureNoiseReductionEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonLongExposureNoiseReductionEEEERNSt3__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: 12, False: 104]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|    104|  return os << "(" << value << ")";
  186|    116|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonHighISONoiseReductionEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonHighISONoiseReductionEEEERNSt3__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: 14, False: 96]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    110|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonDigitalLensOptimizerEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonDigitalLensOptimizerEEEERNSt3__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: 12, False: 98]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    110|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonDualPixelRawEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonDualPixelRawEEEERNSt3__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: 4, False: 106]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    110|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAmbienceSelectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     82|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     82|  static_assert(N > 0, "Passed zero length printTag");
  195|     82|  return printTag<N, array>(os, value.toInt64(), data);
  196|     82|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAmbienceSelectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     82|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     82|  static_assert(N > 0, "Passed zero length printTag");
  183|     82|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 62]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|     82|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonMultiExposureEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     80|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     80|  static_assert(N > 0, "Passed zero length printTag");
  195|     80|  return printTag<N, array>(os, value.toInt64(), data);
  196|     80|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonMultiExposureEEEERNSt3__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: 20, False: 60]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|     80|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonMultiExposureControlEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonMultiExposureControlEEEERNSt3__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: 10, False: 34]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     44|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonFilterInfoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     42|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     42|  static_assert(N > 0, "Passed zero length printTag");
  195|     42|  return printTag<N, array>(os, value.toInt64(), data);
  196|     42|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonFilterInfoEEEERNSt3__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: 16, False: 26]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     42|}
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: 6, False: 2]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|      2|  return os << "(" << value << ")";
  186|      8|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8canonHdrEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8canonHdrEEEERNSt3__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: 10, False: 64]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|     74|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonHdrEffectEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonHdrEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     74|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     74|  static_assert(N > 0, "Passed zero length printTag");
  183|     74|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 60]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|     74|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAIServoFirstImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    428|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    428|  static_assert(N > 0, "Passed zero length printTag");
  195|    428|  return printTag<N, array>(os, value.toInt64(), data);
  196|    428|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAIServoFirstImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    428|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    428|  static_assert(N > 0, "Passed zero length printTag");
  183|    428|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 400]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    400|  return os << "(" << value << ")";
  186|    428|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAIServoSecondImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    428|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    428|  static_assert(N > 0, "Passed zero length printTag");
  195|    428|  return printTag<N, array>(os, value.toInt64(), data);
  196|    428|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAIServoSecondImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    428|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    428|  static_assert(N > 0, "Passed zero length printTag");
  183|    428|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 62, False: 366]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|    366|  return os << "(" << value << ")";
  186|    428|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonUSMLensElectronicMFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    428|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    428|  static_assert(N > 0, "Passed zero length printTag");
  195|    428|  return printTag<N, array>(os, value.toInt64(), data);
  196|    428|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonUSMLensElectronicMFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    428|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    428|  static_assert(N > 0, "Passed zero length printTag");
  183|    428|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 382]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    382|  return os << "(" << value << ")";
  186|    428|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonAFAssistBeamEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    428|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    428|  static_assert(N > 0, "Passed zero length printTag");
  195|    428|  return printTag<N, array>(os, value.toInt64(), data);
  196|    428|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonAFAssistBeamEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    428|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    428|  static_assert(N > 0, "Passed zero length printTag");
  183|    428|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 44, False: 384]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    384|  return os << "(" << value << ")";
  186|    428|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21canonOneShotAFReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    428|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    428|  static_assert(N > 0, "Passed zero length printTag");
  195|    428|  return printTag<N, array>(os, value.toInt64(), data);
  196|    428|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21canonOneShotAFReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    428|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    428|  static_assert(N > 0, "Passed zero length printTag");
  183|    428|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 382]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    382|  return os << "(" << value << ")";
  186|    428|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAutoAFPointSelEOSiTRAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    426|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    426|  static_assert(N > 0, "Passed zero length printTag");
  195|    426|  return printTag<N, array>(os, value.toInt64(), data);
  196|    426|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAutoAFPointSelEOSiTRAFEEEERNSt3__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: 44, False: 382]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    382|  return os << "(" << value << ")";
  186|    426|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonLensDriveWhenAFImpossibleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    426|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    426|  static_assert(N > 0, "Passed zero length printTag");
  195|    426|  return printTag<N, array>(os, value.toInt64(), data);
  196|    426|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonLensDriveWhenAFImpossibleEEEERNSt3__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: 52, False: 374]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|    374|  return os << "(" << value << ")";
  186|    426|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonSelectAFAreaSelectionModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    406|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    406|  static_assert(N > 0, "Passed zero length printTag");
  195|    406|  return printTag<N, array>(os, value.toInt64(), data);
  196|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonSelectAFAreaSelectionModeEEEERNSt3__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: 58, False: 348]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|    348|  return os << "(" << value << ")";
  186|    406|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAFAreaSelectionMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    402|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    402|  static_assert(N > 0, "Passed zero length printTag");
  195|    402|  return printTag<N, array>(os, value.toInt64(), data);
  196|    402|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAFAreaSelectionMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    402|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    402|  static_assert(N > 0, "Passed zero length printTag");
  183|    402|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 362]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    362|  return os << "(" << value << ")";
  186|    402|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonOrientationLinkedAFEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonOrientationLinkedAFEEEERNSt3__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: 36, False: 362]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    362|  return os << "(" << value << ")";
  186|    398|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28canonManualAFPointSelPatternEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    388|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    388|  static_assert(N > 0, "Passed zero length printTag");
  195|    388|  return printTag<N, array>(os, value.toInt64(), data);
  196|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28canonManualAFPointSelPatternEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    388|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    388|  static_assert(N > 0, "Passed zero length printTag");
  183|    388|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 354]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    354|  return os << "(" << value << ")";
  186|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonAFPointDisplayDuringFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    388|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    388|  static_assert(N > 0, "Passed zero length printTag");
  195|    388|  return printTag<N, array>(os, value.toInt64(), data);
  196|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonAFPointDisplayDuringFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    388|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    388|  static_assert(N > 0, "Passed zero length printTag");
  183|    388|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 348]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    348|  return os << "(" << value << ")";
  186|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAVFDisplayIlluminationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    388|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    388|  static_assert(N > 0, "Passed zero length printTag");
  195|    388|  return printTag<N, array>(os, value.toInt64(), data);
  196|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAVFDisplayIlluminationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    388|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    388|  static_assert(N > 0, "Passed zero length printTag");
  183|    388|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 362]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    362|  return os << "(" << value << ")";
  186|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAFStatusViewfinderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    388|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    388|  static_assert(N > 0, "Passed zero length printTag");
  195|    388|  return printTag<N, array>(os, value.toInt64(), data);
  196|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAFStatusViewfinderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    388|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    388|  static_assert(N > 0, "Passed zero length printTag");
  183|    388|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 356]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    356|  return os << "(" << value << ")";
  186|    388|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonInitialAFPointInServoEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonInitialAFPointInServoEEEERNSt3__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: 24, False: 278]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|    278|  return os << "(" << value << ")";
  186|    302|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonCsMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.35k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.35k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.35k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.35k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonCsMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.35k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.35k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.35k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 4.31k]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|  4.31k|  return os << "(" << value << ")";
  186|  4.35k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.76k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.76k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.76k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.76k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.76k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.76k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.76k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 620, False: 4.14k]
  ------------------
  184|    620|    return os << _(td->label_);
  ------------------
  |  |   40|    620|#define _(String) (String)
  ------------------
  185|  4.14k|  return os << "(" << value << ")";
  186|  4.76k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.69k, False: 2.63k]
  ------------------
  184|  1.69k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.69k|#define _(String) (String)
  ------------------
  185|  2.63k|  return os << "(" << value << ")";
  186|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsDriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsDriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 406, False: 3.92k]
  ------------------
  184|    406|    return os << _(td->label_);
  ------------------
  |  |   40|    406|#define _(String) (String)
  ------------------
  185|  3.92k|  return os << "(" << value << ")";
  186|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.46k, False: 866]
  ------------------
  184|  3.46k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.46k|#define _(String) (String)
  ------------------
  185|    866|  return os << "(" << value << ")";
  186|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonCsRecordModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonCsRecordModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 210, False: 4.11k]
  ------------------
  184|    210|    return os << _(td->label_);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
  185|  4.11k|  return os << "(" << value << ")";
  186|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.70k, False: 2.61k]
  ------------------
  184|  1.70k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.70k|#define _(String) (String)
  ------------------
  185|  2.61k|  return os << "(" << value << ")";
  186|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsEasyModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsEasyModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.70k, False: 622]
  ------------------
  184|  3.70k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.70k|#define _(String) (String)
  ------------------
  185|    622|  return os << "(" << value << ")";
  186|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.26k, False: 1.06k]
  ------------------
  184|  3.26k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.26k|#define _(String) (String)
  ------------------
  185|  1.06k|  return os << "(" << value << ")";
  186|  4.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonCsLnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  12.9k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  12.9k|  static_assert(N > 0, "Passed zero length printTag");
  195|  12.9k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  12.9k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonCsLnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  12.9k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  12.9k|  static_assert(N > 0, "Passed zero length printTag");
  183|  12.9k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.24k, False: 8.67k]
  ------------------
  184|  4.24k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.24k|#define _(String) (String)
  ------------------
  185|  8.67k|  return os << "(" << value << ")";
  186|  12.9k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsISOSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.29k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.29k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.29k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.29k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsISOSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.29k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.29k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.29k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.01k, False: 3.27k]
  ------------------
  184|  1.01k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.01k|#define _(String) (String)
  ------------------
  185|  3.27k|  return os << "(" << value << ")";
  186|  4.29k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonCsMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.29k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.29k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.29k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.29k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonCsMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.29k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.29k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.29k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.36k, False: 2.93k]
  ------------------
  184|  1.36k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.36k|#define _(String) (String)
  ------------------
  185|  2.93k|  return os << "(" << value << ")";
  186|  4.29k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.29k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.29k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.29k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.29k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.29k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.29k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.29k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.05k, False: 2.23k]
  ------------------
  184|  2.05k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.05k|#define _(String) (String)
  ------------------
  185|  2.23k|  return os << "(" << value << ")";
  186|  4.29k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.28k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.28k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.28k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.28k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.28k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.28k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.28k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 82, False: 4.20k]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|  4.20k|  return os << "(" << value << ")";
  186|  4.28k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.22k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.22k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.22k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.22k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsExposureProgramEEEERNSt3__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: 2.62k, False: 1.60k]
  ------------------
  184|  2.62k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.62k|#define _(String) (String)
  ------------------
  185|  1.60k|  return os << "(" << value << ")";
  186|  4.22k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20canonCsFlashActivityEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20canonCsFlashActivityEEEERNSt3__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: 438, False: 3.64k]
  ------------------
  184|    438|    return os << _(td->label_);
  ------------------
  |  |   40|    438|#define _(String) (String)
  ------------------
  185|  3.64k|  return os << "(" << value << ")";
  186|  4.08k|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L19canonCsFlashDetailsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|  4.07k|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|  4.07k|  static_assert(N > 0, "Passed zero length printTag");
  208|  4.07k|  const auto val = value.toUint32();
  209|  4.07k|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 1.74k, False: 2.32k]
  ------------------
  210|  1.74k|    auto [mask, label] = *array;
  211|  1.74k|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 1.74k]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|  1.74k|  }
  214|  4.07k|  bool sep = false;
  215|  36.6k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 36.6k, False: 4.07k]
  ------------------
  216|  36.6k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 10.4k, False: 26.1k]
  ------------------
  217|  10.4k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 8.20k, False: 2.23k]
  ------------------
  218|  8.20k|        os << ", " << _(label);
  ------------------
  |  |   40|  8.20k|#define _(String) (String)
  ------------------
  219|  8.20k|      } else {
  220|  2.23k|        os << _(label);
  ------------------
  |  |   40|  2.23k|#define _(String) (String)
  ------------------
  221|  2.23k|        sep = true;
  222|  2.23k|      }
  223|  10.4k|    }
  224|  36.6k|  }
  225|  4.07k|  return os;
  226|  4.07k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsFocusContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.02k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.02k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.02k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.02k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsFocusContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.02k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.02k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.02k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.72k, False: 2.30k]
  ------------------
  184|  1.72k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.72k|#define _(String) (String)
  ------------------
  185|  2.30k|  return os << "(" << value << ")";
  186|  4.02k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsAESettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.02k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.02k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.02k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.02k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsAESettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.02k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.02k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.02k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.05k, False: 970]
  ------------------
  184|  3.05k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.05k|#define _(String) (String)
  ------------------
  185|    970|  return os << "(" << value << ")";
  186|  4.02k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonCsImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.02k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.02k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.02k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.02k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonCsImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.02k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.02k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.02k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.85k, False: 2.16k]
  ------------------
  184|  1.85k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.85k|#define _(String) (String)
  ------------------
  185|  2.16k|  return os << "(" << value << ")";
  186|  4.02k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonCsSpotMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.97k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.97k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.97k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.97k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonCsSpotMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.97k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.97k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.97k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.04k, False: 928]
  ------------------
  184|  3.04k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.04k|#define _(String) (String)
  ------------------
  185|    928|  return os << "(" << value << ")";
  186|  3.97k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsPhotoEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.97k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.97k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.97k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.97k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsPhotoEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.97k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.97k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.97k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.62k, False: 2.34k]
  ------------------
  184|  1.62k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.62k|#define _(String) (String)
  ------------------
  185|  2.34k|  return os << "(" << value << ")";
  186|  3.97k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsSRAWQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.62k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.62k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.62k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.62k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsSRAWQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.62k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.62k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.62k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.28k, False: 1.34k]
  ------------------
  184|  3.28k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.28k|#define _(String) (String)
  ------------------
  185|  1.34k|  return os << "(" << value << ")";
  186|  4.62k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11slowShutterEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11slowShutterEEEERNSt3__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: 98, False: 270]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|    270|  return os << "(" << value << ")";
  186|    368|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonSiFlashBiasEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    366|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    366|  static_assert(N > 0, "Passed zero length printTag");
  195|    366|  return printTag<N, array>(os, value.toInt64(), data);
  196|    366|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonSiFlashBiasEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    366|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    366|  static_assert(N > 0, "Passed zero length printTag");
  183|    366|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 102, False: 264]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    264|  return os << "(" << value << ")";
  186|    366|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22autoExposureBracketingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    360|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    360|  static_assert(N > 0, "Passed zero length printTag");
  195|    360|  return printTag<N, array>(os, value.toInt64(), data);
  196|    360|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22autoExposureBracketingEEEERNSt3__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: 120, False: 240]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|    240|  return os << "(" << value << ")";
  186|    360|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10cameraTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    284|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    284|  static_assert(N > 0, "Passed zero length printTag");
  195|    284|  return printTag<N, array>(os, value.toInt64(), data);
  196|    284|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10cameraTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    284|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    284|  static_assert(N > 0, "Passed zero length printTag");
  183|    284|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 114, False: 170]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|    170|  return os << "(" << value << ")";
  186|    284|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10autoRotateEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    272|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    272|  static_assert(N > 0, "Passed zero length printTag");
  195|    272|  return printTag<N, array>(os, value.toInt64(), data);
  196|    272|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10autoRotateEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    272|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    272|  static_assert(N > 0, "Passed zero length printTag");
  183|    272|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 226]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    226|  return os << "(" << value << ")";
  186|    272|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8ndRotateEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    272|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    272|  static_assert(N > 0, "Passed zero length printTag");
  195|    272|  return printTag<N, array>(os, value.toInt64(), data);
  196|    272|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8ndRotateEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    272|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    272|  static_assert(N > 0, "Passed zero length printTag");
  183|    272|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 112, False: 160]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    160|  return os << "(" << value << ")";
  186|    272|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10selfTimer2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    270|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    270|  static_assert(N > 0, "Passed zero length printTag");
  195|    270|  return printTag<N, array>(os, value.toInt64(), data);
  196|    270|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10selfTimer2EEEERNSt3__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: 90, False: 180]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    180|  return os << "(" << value << ")";
  186|    270|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonPaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     20|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     20|  static_assert(N > 0, "Passed zero length printTag");
  195|     20|  return printTag<N, array>(os, value.toInt64(), data);
  196|     20|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonPaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     20|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     20|  static_assert(N > 0, "Passed zero length printTag");
  183|     20|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 10]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     10|  return os << "(" << value << ")";
  186|     20|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L19canonPiAFPointsUsedEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    144|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    144|  static_assert(N > 0, "Passed zero length printTag");
  208|    144|  const auto val = value.toUint32();
  209|    144|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 10, False: 134]
  ------------------
  210|     10|    auto [mask, label] = *array;
  211|     10|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 10]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|     10|  }
  214|    144|  bool sep = false;
  215|  1.00k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.00k, False: 144]
  ------------------
  216|  1.00k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 480, False: 528]
  ------------------
  217|    480|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 346, False: 134]
  ------------------
  218|    346|        os << ", " << _(label);
  ------------------
  |  |   40|    346|#define _(String) (String)
  ------------------
  219|    346|      } else {
  220|    134|        os << _(label);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  221|    134|        sep = true;
  222|    134|      }
  223|    480|    }
  224|  1.00k|  }
  225|    144|  return os;
  226|    144|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L22canonPiAFPointsUsed20DEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    144|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    144|  static_assert(N > 0, "Passed zero length printTag");
  208|    144|  const auto val = value.toUint32();
  209|    144|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 144]
  ------------------
  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|    144|  bool sep = false;
  215|  1.29k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.29k, False: 144]
  ------------------
  216|  1.29k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 582, False: 714]
  ------------------
  217|    582|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 440, False: 142]
  ------------------
  218|    440|        os << ", " << _(label);
  ------------------
  |  |   40|    440|#define _(String) (String)
  ------------------
  219|    440|      } else {
  220|    142|        os << _(label);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  221|    142|        sep = true;
  222|    142|      }
  223|    582|    }
  224|  1.29k|  }
  225|    144|  return os;
  226|    144|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonBracketModeEEEERNSt3__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_L16canonBracketModeEEEERNSt3__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: 116, False: 372]
  ------------------
  184|    116|    return os << _(td->label_);
  ------------------
  |  |   40|    116|#define _(String) (String)
  ------------------
  185|    372|  return os << "(" << value << ")";
  186|    488|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRawJpgSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    430|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    430|  static_assert(N > 0, "Passed zero length printTag");
  195|    430|  return printTag<N, array>(os, value.toInt64(), data);
  196|    430|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRawJpgSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    430|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    430|  static_assert(N > 0, "Passed zero length printTag");
  183|    430|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 204, False: 226]
  ------------------
  184|    204|    return os << _(td->label_);
  ------------------
  |  |   40|    204|#define _(String) (String)
  ------------------
  185|    226|  return os << "(" << value << ")";
  186|    430|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    430|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    430|  static_assert(N > 0, "Passed zero length printTag");
  195|    430|  return printTag<N, array>(os, value.toInt64(), data);
  196|    430|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    430|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    430|  static_assert(N > 0, "Passed zero length printTag");
  183|    430|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 308]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|    308|  return os << "(" << value << ")";
  186|    430|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonWBBracketModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    430|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    430|  static_assert(N > 0, "Passed zero length printTag");
  195|    430|  return printTag<N, array>(os, value.toInt64(), data);
  196|    430|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonWBBracketModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    430|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    430|  static_assert(N > 0, "Passed zero length printTag");
  183|    430|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 146, False: 284]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|    284|  return os << "(" << value << ")";
  186|    430|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonFilterEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    430|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    430|  static_assert(N > 0, "Passed zero length printTag");
  195|    430|  return printTag<N, array>(os, value.toInt64(), data);
  196|    430|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonFilterEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    430|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    430|  static_assert(N > 0, "Passed zero length printTag");
  183|    430|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 130, False: 300]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|    300|  return os << "(" << value << ")";
  186|    430|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonToningEffectEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonToningEffectEEEERNSt3__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: 112, False: 312]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    312|  return os << "(" << value << ")";
  186|    424|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonShutterModeEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonShutterModeEEEERNSt3__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: 44, False: 208]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    208|  return os << "(" << value << ")";
  186|    252|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm76ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRFLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    156|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    156|  static_assert(N > 0, "Passed zero length printTag");
  195|    156|  return printTag<N, array>(os, value.toInt64(), data);
  196|    156|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm76ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRFLensTypeEEEERNSt3__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: 46, False: 110]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    156|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonToneCurveEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonToneCurveEEEERNSt3__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: 16, False: 42]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|     58|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSharpnessFrequencyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     56|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     56|  static_assert(N > 0, "Passed zero length printTag");
  195|     56|  return printTag<N, array>(os, value.toInt64(), data);
  196|     56|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSharpnessFrequencyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     56|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     56|  static_assert(N > 0, "Passed zero length printTag");
  183|     56|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 38]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|     56|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm35ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonTimeZoneCityEEEERNSt3__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|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm35ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonTimeZoneCityEEEERNSt3__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: 86, False: 160]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    160|  return os << "(" << value << ")";
  186|    246|}
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: 394, False: 548]
  ------------------
  217|    394|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 156, False: 238]
  ------------------
  218|    156|        os << ", " << _(label);
  ------------------
  |  |   40|    156|#define _(String) (String)
  ------------------
  219|    238|      } else {
  220|    238|        os << _(label);
  ------------------
  |  |   40|    238|#define _(String) (String)
  ------------------
  221|    238|        sep = true;
  222|    238|      }
  223|    394|    }
  224|    942|  }
  225|    314|  return os;
  226|    314|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casioRecordingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    766|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    766|  static_assert(N > 0, "Passed zero length printTag");
  195|    766|  return printTag<N, array>(os, value.toInt64(), data);
  196|    766|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casioRecordingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    766|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    766|  static_assert(N > 0, "Passed zero length printTag");
  183|    766|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 592, False: 174]
  ------------------
  184|    592|    return os << _(td->label_);
  ------------------
  |  |   40|    592|#define _(String) (String)
  ------------------
  185|    174|  return os << "(" << value << ")";
  186|    766|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casioQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    286|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    286|  static_assert(N > 0, "Passed zero length printTag");
  195|    286|  return printTag<N, array>(os, value.toInt64(), data);
  196|    286|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casioQualityEEEERNSt3__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: 126, False: 160]
  ------------------
  184|    126|    return os << _(td->label_);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  185|    160|  return os << "(" << value << ")";
  186|    286|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    268|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    268|  static_assert(N > 0, "Passed zero length printTag");
  195|    268|  return printTag<N, array>(os, value.toInt64(), data);
  196|    268|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFocusModeEEEERNSt3__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: 180, False: 88]
  ------------------
  184|    180|    return os << _(td->label_);
  ------------------
  |  |   40|    180|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    268|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFlashModeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFlashModeEEEERNSt3__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: 298, False: 142]
  ------------------
  184|    298|    return os << _(td->label_);
  ------------------
  |  |   40|    298|#define _(String) (String)
  ------------------
  185|    142|  return os << "(" << value << ")";
  186|    440|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioFlashIntensityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    690|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    690|  static_assert(N > 0, "Passed zero length printTag");
  195|    690|  return printTag<N, array>(os, value.toInt64(), data);
  196|    690|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioFlashIntensityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    690|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    690|  static_assert(N > 0, "Passed zero length printTag");
  183|    690|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 268, False: 422]
  ------------------
  184|    268|    return os << _(td->label_);
  ------------------
  |  |   40|    268|#define _(String) (String)
  ------------------
  185|    422|  return os << "(" << value << ")";
  186|    690|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casioWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    840|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    840|  static_assert(N > 0, "Passed zero length printTag");
  195|    840|  return printTag<N, array>(os, value.toInt64(), data);
  196|    840|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casioWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    840|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    840|  static_assert(N > 0, "Passed zero length printTag");
  183|    840|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 376, False: 464]
  ------------------
  184|    376|    return os << _(td->label_);
  ------------------
  |  |   40|    376|#define _(String) (String)
  ------------------
  185|    464|  return os << "(" << value << ")";
  186|    840|}
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: 114, False: 48]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|    162|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    238|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    238|  static_assert(N > 0, "Passed zero length printTag");
  195|    238|  return printTag<N, array>(os, value.toInt64(), data);
  196|    238|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    238|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    238|  static_assert(N > 0, "Passed zero length printTag");
  183|    238|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 140, False: 98]
  ------------------
  184|    140|    return os << _(td->label_);
  ------------------
  |  |   40|    140|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    238|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casioContrastEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casioContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    298|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    298|  static_assert(N > 0, "Passed zero length printTag");
  183|    298|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 222, False: 76]
  ------------------
  184|    222|    return os << _(td->label_);
  ------------------
  |  |   40|    222|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    298|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casioSaturationEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casioSaturationEEEERNSt3__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: 330, False: 344]
  ------------------
  184|    330|    return os << _(td->label_);
  ------------------
  |  |   40|    330|#define _(String) (String)
  ------------------
  185|    344|  return os << "(" << value << ")";
  186|    674|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioEnhancementEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioEnhancementEEEERNSt3__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: 156, False: 140]
  ------------------
  184|    156|    return os << _(td->label_);
  ------------------
  |  |   40|    156|#define _(String) (String)
  ------------------
  185|    140|  return os << "(" << value << ")";
  186|    296|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioColorFilterEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioColorFilterEEEERNSt3__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: 248, False: 108]
  ------------------
  184|    248|    return os << _(td->label_);
  ------------------
  |  |   40|    248|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    356|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20casioFlashIntensity2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    242|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    242|  static_assert(N > 0, "Passed zero length printTag");
  195|    242|  return printTag<N, array>(os, value.toInt64(), data);
  196|    242|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20casioFlashIntensity2EEEERNSt3__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: 170, False: 72]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    242|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioCCDSensitivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    270|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    270|  static_assert(N > 0, "Passed zero length printTag");
  195|    270|  return printTag<N, array>(os, value.toInt64(), data);
  196|    270|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioCCDSensitivityEEEERNSt3__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: 194, False: 76]
  ------------------
  184|    194|    return os << _(td->label_);
  ------------------
  |  |   40|    194|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    270|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2QualityModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    160|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    160|  static_assert(N > 0, "Passed zero length printTag");
  195|    160|  return printTag<N, array>(os, value.toInt64(), data);
  196|    160|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2QualityModeEEEERNSt3__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: 76, False: 84]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    160|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ImageSizeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ImageSizeEEEERNSt3__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: 306, False: 42]
  ------------------
  184|    306|    return os << _(td->label_);
  ------------------
  |  |   40|    306|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    348|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2FocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    118|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    118|  static_assert(N > 0, "Passed zero length printTag");
  195|    118|  return printTag<N, array>(os, value.toInt64(), data);
  196|    118|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2FocusModeEEEERNSt3__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: 46, False: 72]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    118|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    204|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    204|  static_assert(N > 0, "Passed zero length printTag");
  195|    204|  return printTag<N, array>(os, value.toInt64(), data);
  196|    204|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2IsoSpeedEEEERNSt3__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: 90, False: 114]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    204|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2WhiteBalanceEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2WhiteBalanceEEEERNSt3__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: 282, False: 70]
  ------------------
  184|    282|    return os << _(td->label_);
  ------------------
  |  |   40|    282|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    352|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2SaturationEEEERNSt3__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_L16casio2SaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    220|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    220|  static_assert(N > 0, "Passed zero length printTag");
  183|    220|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 152, False: 68]
  ------------------
  184|    152|    return os << _(td->label_);
  ------------------
  |  |   40|    152|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    220|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2ContrastEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2ContrastEEEERNSt3__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: 202, False: 62]
  ------------------
  184|    202|    return os << _(td->label_);
  ------------------
  |  |   40|    202|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    264|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2SharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    294|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    294|  static_assert(N > 0, "Passed zero length printTag");
  195|    294|  return printTag<N, array>(os, value.toInt64(), data);
  196|    294|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2SharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    294|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    294|  static_assert(N > 0, "Passed zero length printTag");
  183|    294|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 214, False: 80]
  ------------------
  184|    214|    return os << _(td->label_);
  ------------------
  |  |   40|    214|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    294|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casio2WhiteBalance2EEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casio2WhiteBalance2EEEERNSt3__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: 256, False: 42]
  ------------------
  184|    256|    return os << _(td->label_);
  ------------------
  |  |   40|    256|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    298|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    234|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    234|  static_assert(N > 0, "Passed zero length printTag");
  195|    234|  return printTag<N, array>(os, value.toInt64(), data);
  196|    234|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    234|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    234|  static_assert(N > 0, "Passed zero length printTag");
  183|    234|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 144, False: 90]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    234|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    188|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    188|  static_assert(N > 0, "Passed zero length printTag");
  195|    188|  return printTag<N, array>(os, value.toInt64(), data);
  196|    188|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    188|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    188|  static_assert(N > 0, "Passed zero length printTag");
  183|    188|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 66]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    188|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2FocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    394|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    394|  static_assert(N > 0, "Passed zero length printTag");
  195|    394|  return printTag<N, array>(os, value.toInt64(), data);
  196|    394|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2FocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    394|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    394|  static_assert(N > 0, "Passed zero length printTag");
  183|    394|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 302, False: 92]
  ------------------
  184|    302|    return os << _(td->label_);
  ------------------
  |  |   40|    302|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    394|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2AutoISOEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2AutoISOEEEERNSt3__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: 164, False: 108]
  ------------------
  184|    164|    return os << _(td->label_);
  ------------------
  |  |   40|    164|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    272|}
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: 144, False: 32]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    176|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    206|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    206|  static_assert(N > 0, "Passed zero length printTag");
  195|    206|  return printTag<N, array>(os, value.toInt64(), data);
  196|    206|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ColorModeEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2EnhancementEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2EnhancementEEEERNSt3__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: 38, False: 42]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|     80|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    322|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    322|  static_assert(N > 0, "Passed zero length printTag");
  195|    322|  return printTag<N, array>(os, value.toInt64(), data);
  196|    322|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    322|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    322|  static_assert(N > 0, "Passed zero length printTag");
  183|    322|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 202, False: 120]
  ------------------
  184|    202|    return os << _(td->label_);
  ------------------
  |  |   40|    202|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    322|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2ArtModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    502|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    502|  static_assert(N > 0, "Passed zero length printTag");
  195|    502|  return printTag<N, array>(os, value.toInt64(), data);
  196|    502|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2ArtModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    502|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    502|  static_assert(N > 0, "Passed zero length printTag");
  183|    502|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 434, False: 68]
  ------------------
  184|    434|    return os << _(td->label_);
  ------------------
  |  |   40|    434|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    502|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2LightingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2LightingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 64]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|     98|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21casio2PortraitRefinerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    124|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    124|  static_assert(N > 0, "Passed zero length printTag");
  195|    124|  return printTag<N, array>(os, value.toInt64(), data);
  196|    124|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21casio2PortraitRefinerEEEERNSt3__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: 48, False: 76]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    124|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26casio2SpecialEffectSettingEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26casio2SpecialEffectSettingEEEERNSt3__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: 230, False: 30]
  ------------------
  184|    230|    return os << _(td->label_);
  ------------------
  |  |   40|    230|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    260|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2DriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    682|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    682|  static_assert(N > 0, "Passed zero length printTag");
  195|    682|  return printTag<N, array>(os, value.toInt64(), data);
  196|    682|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2DriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    682|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    682|  static_assert(N > 0, "Passed zero length printTag");
  183|    682|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 594, False: 88]
  ------------------
  184|    594|    return os << _(td->label_);
  ------------------
  |  |   40|    594|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    682|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2VideoQualityEEEERNSt3__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|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2VideoQualityEEEERNSt3__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: 114, False: 26]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|    140|}
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: 176, False: 120]
  ------------------
  184|    176|    return os << _(td->label_);
  ------------------
  |  |   40|    176|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    296|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    786|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    786|  static_assert(N > 0, "Passed zero length printTag");
  195|    786|  return printTag<N, array>(os, value.toInt64(), data);
  196|    786|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    786|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    786|  static_assert(N > 0, "Passed zero length printTag");
  183|    786|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 424, False: 362]
  ------------------
  184|    424|    return os << _(td->label_);
  ------------------
  |  |   40|    424|#define _(String) (String)
  ------------------
  185|    362|  return os << "(" << value << ")";
  186|    786|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiColorEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiColorEEEERNSt3__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: 202, False: 360]
  ------------------
  184|    202|    return os << _(td->label_);
  ------------------
  |  |   40|    202|#define _(String) (String)
  ------------------
  185|    360|  return os << "(" << value << ")";
  186|    562|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8fujiToneEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8fujiToneEEEERNSt3__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: 104, False: 244]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|    244|  return os << "(" << value << ")";
  186|    348|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiContrastEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    272|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    272|  static_assert(N > 0, "Passed zero length printTag");
  183|    272|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 206]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    206|  return os << "(" << value << ")";
  186|    272|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    368|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    368|  static_assert(N > 0, "Passed zero length printTag");
  195|    368|  return printTag<N, array>(os, value.toInt64(), data);
  196|    368|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiNoiseReductionEEEERNSt3__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: 50, False: 318]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    318|  return os << "(" << value << ")";
  186|    368|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiHighIsoNREEEERNSt3__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:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiHighIsoNREEEERNSt3__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: 126, False: 146]
  ------------------
  184|    126|    return os << _(td->label_);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  185|    146|  return os << "(" << value << ")";
  186|    272|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiClarityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    232|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    232|  static_assert(N > 0, "Passed zero length printTag");
  195|    232|  return printTag<N, array>(os, value.toInt64(), data);
  196|    232|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiClarityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    232|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    232|  static_assert(N > 0, "Passed zero length printTag");
  183|    232|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 200]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    200|  return os << "(" << value << ")";
  186|    232|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFlashModeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFlashModeEEEERNSt3__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: 122, False: 98]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    220|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiOffOnEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiOffOnEEEERNSt3__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: 100, False: 230]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|    230|  return os << "(" << value << ")";
  186|    330|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     96|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     96|  static_assert(N > 0, "Passed zero length printTag");
  195|     96|  return printTag<N, array>(os, value.toInt64(), data);
  196|     96|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     96|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     96|  static_assert(N > 0, "Passed zero length printTag");
  183|     96|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 62]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|     96|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusAreaEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    216|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    216|  static_assert(N > 0, "Passed zero length printTag");
  195|    216|  return printTag<N, array>(os, value.toInt64(), data);
  196|    216|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusAreaEEEERNSt3__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: 80, False: 136]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|    136|  return os << "(" << value << ")";
  186|    216|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiPictureModeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiPictureModeEEEERNSt3__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.73k, False: 314]
  ------------------
  184|  1.73k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.73k|#define _(String) (String)
  ------------------
  185|    314|  return os << "(" << value << ")";
  186|  2.04k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiExrModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    238|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    238|  static_assert(N > 0, "Passed zero length printTag");
  195|    238|  return printTag<N, array>(os, value.toInt64(), data);
  196|    238|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiExrModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    238|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    238|  static_assert(N > 0, "Passed zero length printTag");
  183|    238|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 68, False: 170]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|    170|  return os << "(" << value << ")";
  186|    238|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10fujiSHToneEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10fujiSHToneEEEERNSt3__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: 372, False: 246]
  ------------------
  184|    372|    return os << _(td->label_);
  ------------------
  |  |   40|    372|#define _(String) (String)
  ------------------
  185|    246|  return os << "(" << value << ")";
  186|    618|}
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|    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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiCropModeEEEERNSt3__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: 130, False: 60]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|    190|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiShutterTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    316|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    316|  static_assert(N > 0, "Passed zero length printTag");
  195|    316|  return printTag<N, array>(os, value.toInt64(), data);
  196|    316|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiShutterTypeEEEERNSt3__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: 226, False: 90]
  ------------------
  184|    226|    return os << _(td->label_);
  ------------------
  |  |   40|    226|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    316|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14fujiContinuousEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14fujiContinuousEEEERNSt3__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: 138, False: 38]
  ------------------
  184|    138|    return os << _(td->label_);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    176|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21fujiPanoramaDirectionEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21fujiPanoramaDirectionEEEERNSt3__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: 102, False: 80]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    182|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiAdvancedFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    746|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    746|  static_assert(N > 0, "Passed zero length printTag");
  195|    746|  return printTag<N, array>(os, value.toInt64(), data);
  196|    746|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiAdvancedFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    746|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    746|  static_assert(N > 0, "Passed zero length printTag");
  183|    746|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 210, False: 536]
  ------------------
  184|    210|    return os << _(td->label_);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
  185|    536|  return os << "(" << value << ")";
  186|    746|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiFinePixColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    222|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    222|  static_assert(N > 0, "Passed zero length printTag");
  195|    222|  return printTag<N, array>(os, value.toInt64(), data);
  196|    222|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiFinePixColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    222|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    222|  static_assert(N > 0, "Passed zero length printTag");
  183|    222|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 118, False: 104]
  ------------------
  184|    118|    return os << _(td->label_);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  185|    104|  return os << "(" << value << ")";
  186|    222|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiDynamicRangeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiDynamicRangeEEEERNSt3__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: 22, False: 274]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|    274|  return os << "(" << value << ")";
  186|    296|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiFilmModeEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiFilmModeEEEERNSt3__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: 638, False: 402]
  ------------------
  184|    638|    return os << _(td->label_);
  ------------------
  |  |   40|    638|#define _(String) (String)
  ------------------
  185|    402|  return os << "(" << value << ")";
  186|  1.04k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDynamicRangeSettingEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDynamicRangeSettingEEEERNSt3__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: 154, False: 176]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|    176|  return os << "(" << value << ")";
  186|    330|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20fujiSceneRecognitionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    606|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    606|  static_assert(N > 0, "Passed zero length printTag");
  195|    606|  return printTag<N, array>(os, value.toInt64(), data);
  196|    606|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20fujiSceneRecognitionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    606|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    606|  static_assert(N > 0, "Passed zero length printTag");
  183|    606|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 222, False: 384]
  ------------------
  184|    222|    return os << _(td->label_);
  ------------------
  |  |   40|    222|#define _(String) (String)
  ------------------
  185|    384|  return os << "(" << value << ")";
  186|    606|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19fujiImageGenerationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     88|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     88|  static_assert(N > 0, "Passed zero length printTag");
  195|     88|  return printTag<N, array>(os, value.toInt64(), data);
  196|     88|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19fujiImageGenerationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     88|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     88|  static_assert(N > 0, "Passed zero length printTag");
  183|     88|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 60]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|     88|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiDRangePriorityEEEERNSt3__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|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiDRangePriorityEEEERNSt3__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: 42, False: 32]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|     74|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDRangePriorityFixedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    128|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    128|  static_assert(N > 0, "Passed zero length printTag");
  195|    128|  return printTag<N, array>(os, value.toInt64(), data);
  196|    128|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDRangePriorityFixedEEEERNSt3__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: 44, False: 84]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    128|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiDRangePriorityAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     96|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     96|  static_assert(N > 0, "Passed zero length printTag");
  195|     96|  return printTag<N, array>(os, value.toInt64(), data);
  196|     96|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiDRangePriorityAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     96|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     96|  static_assert(N > 0, "Passed zero length printTag");
  183|     96|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 50]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|     96|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16minoltaColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    566|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    566|  static_assert(N > 0, "Passed zero length printTag");
  195|    566|  return printTag<N, array>(os, value.toInt64(), data);
  196|    566|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16minoltaColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    566|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    566|  static_assert(N > 0, "Passed zero length printTag");
  183|    566|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 400, False: 166]
  ------------------
  184|    400|    return os << _(td->label_);
  ------------------
  |  |   40|    400|#define _(String) (String)
  ------------------
  185|    166|  return os << "(" << value << ")";
  186|    566|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    744|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    744|  static_assert(N > 0, "Passed zero length printTag");
  195|    744|  return printTag<N, array>(os, value.toInt64(), data);
  196|    744|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    744|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    744|  static_assert(N > 0, "Passed zero length printTag");
  183|    744|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 508, False: 236]
  ------------------
  184|    508|    return os << _(td->label_);
  ------------------
  |  |   40|    508|#define _(String) (String)
  ------------------
  185|    236|  return os << "(" << value << ")";
  186|    744|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25minoltaImageStabilizationEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25minoltaImageStabilizationEEEERNSt3__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: 108, False: 50]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28minoltaWhiteBalanceStd0x0115EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    682|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    682|  static_assert(N > 0, "Passed zero length printTag");
  195|    682|  return printTag<N, array>(os, value.toInt64(), data);
  196|    682|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28minoltaWhiteBalanceStd0x0115EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    682|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    682|  static_assert(N > 0, "Passed zero length printTag");
  183|    682|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 580, False: 102]
  ------------------
  184|    580|    return os << _(td->label_);
  ------------------
  |  |   40|    580|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    682|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaExposureModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    626|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    626|  static_assert(N > 0, "Passed zero length printTag");
  195|    626|  return printTag<N, array>(os, value.toInt64(), data);
  196|    626|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaExposureModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    626|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    626|  static_assert(N > 0, "Passed zero length printTag");
  183|    626|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 584]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    584|  return os << "(" << value << ")";
  186|    626|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFlashModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    622|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    622|  static_assert(N > 0, "Passed zero length printTag");
  195|    622|  return printTag<N, array>(os, value.toInt64(), data);
  196|    622|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFlashModeStdEEEERNSt3__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: 92, False: 530]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    530|  return os << "(" << value << ")";
  186|    622|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    620|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    620|  static_assert(N > 0, "Passed zero length printTag");
  195|    620|  return printTag<N, array>(os, value.toInt64(), data);
  196|    620|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaWhiteBalanceStdEEEERNSt3__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: 86, False: 534]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    534|  return os << "(" << value << ")";
  186|    620|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageSizeStdEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageSizeStdEEEERNSt3__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: 76, False: 542]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|    542|  return os << "(" << value << ")";
  186|    618|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaImageQualityStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    616|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    616|  static_assert(N > 0, "Passed zero length printTag");
  195|    616|  return printTag<N, array>(os, value.toInt64(), data);
  196|    616|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaImageQualityStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    616|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    616|  static_assert(N > 0, "Passed zero length printTag");
  183|    616|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 152, False: 464]
  ------------------
  184|    152|    return os << _(td->label_);
  ------------------
  |  |   40|    152|#define _(String) (String)
  ------------------
  185|    464|  return os << "(" << value << ")";
  186|    616|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    616|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    616|  static_assert(N > 0, "Passed zero length printTag");
  195|    616|  return printTag<N, array>(os, value.toInt64(), data);
  196|    616|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    616|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    616|  static_assert(N > 0, "Passed zero length printTag");
  183|    616|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 542]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|    542|  return os << "(" << value << ")";
  186|    616|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaMeteringModeStdEEEERNSt3__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_L22minoltaMeteringModeStdEEEERNSt3__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: 42, False: 572]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    572|  return os << "(" << value << ")";
  186|    614|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDigitalZoomStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    568|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    568|  static_assert(N > 0, "Passed zero length printTag");
  195|    568|  return printTag<N, array>(os, value.toInt64(), data);
  196|    568|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDigitalZoomStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    568|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    568|  static_assert(N > 0, "Passed zero length printTag");
  183|    568|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 494]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|    494|  return os << "(" << value << ")";
  186|    568|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaBracketStepStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    568|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    568|  static_assert(N > 0, "Passed zero length printTag");
  195|    568|  return printTag<N, array>(os, value.toInt64(), data);
  196|    568|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaBracketStepStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    568|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    568|  static_assert(N > 0, "Passed zero length printTag");
  183|    568|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 512]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    512|  return os << "(" << value << ")";
  186|    568|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaFlashFiredEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaFlashFiredEEEERNSt3__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: 190, False: 1.13k]
  ------------------
  184|    190|    return os << _(td->label_);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  185|  1.13k|  return os << "(" << value << ")";
  186|  1.32k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSharpnessStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    554|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    554|  static_assert(N > 0, "Passed zero length printTag");
  195|    554|  return printTag<N, array>(os, value.toInt64(), data);
  196|    554|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSharpnessStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    554|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    554|  static_assert(N > 0, "Passed zero length printTag");
  183|    554|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 62, False: 492]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|    492|  return os << "(" << value << ")";
  186|    554|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24minoltaSubjectProgramStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    554|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    554|  static_assert(N > 0, "Passed zero length printTag");
  195|    554|  return printTag<N, array>(os, value.toInt64(), data);
  196|    554|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24minoltaSubjectProgramStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    554|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    554|  static_assert(N > 0, "Passed zero length printTag");
  183|    554|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 484]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|    484|  return os << "(" << value << ")";
  186|    554|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaISOSettingStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    548|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    548|  static_assert(N > 0, "Passed zero length printTag");
  195|    548|  return printTag<N, array>(os, value.toInt64(), data);
  196|    548|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaISOSettingStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    548|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    548|  static_assert(N > 0, "Passed zero length printTag");
  183|    548|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 82, False: 466]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|    466|  return os << "(" << value << ")";
  186|    548|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaModelStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    548|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    548|  static_assert(N > 0, "Passed zero length printTag");
  195|    548|  return printTag<N, array>(os, value.toInt64(), data);
  196|    548|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaModelStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    548|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    548|  static_assert(N > 0, "Passed zero length printTag");
  183|    548|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 90, False: 458]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    458|  return os << "(" << value << ")";
  186|    548|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaIntervalModeStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaIntervalModeStdEEEERNSt3__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: 44, False: 502]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    502|  return os << "(" << value << ")";
  186|    546|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaFolderNameStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaFolderNameStdEEEERNSt3__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: 26, False: 520]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    520|  return os << "(" << value << ")";
  186|    546|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorModeStdEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorModeStdEEEERNSt3__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: 60, False: 486]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|    486|  return os << "(" << value << ")";
  186|    546|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaWideFocusZoneStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    536|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    536|  static_assert(N > 0, "Passed zero length printTag");
  195|    536|  return printTag<N, array>(os, value.toInt64(), data);
  196|    536|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaWideFocusZoneStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    536|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    536|  static_assert(N > 0, "Passed zero length printTag");
  183|    536|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 470]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    470|  return os << "(" << value << ")";
  186|    536|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    612|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    612|  static_assert(N > 0, "Passed zero length printTag");
  195|    612|  return printTag<N, array>(os, value.toInt64(), data);
  196|    612|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    612|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    612|  static_assert(N > 0, "Passed zero length printTag");
  183|    612|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 82, False: 530]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|    530|  return os << "(" << value << ")";
  186|    612|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusAreaStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    536|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    536|  static_assert(N > 0, "Passed zero length printTag");
  195|    536|  return printTag<N, array>(os, value.toInt64(), data);
  196|    536|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusAreaStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    536|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    536|  static_assert(N > 0, "Passed zero length printTag");
  183|    536|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 62, False: 474]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|    474|  return os << "(" << value << ")";
  186|    536|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDECPositionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    536|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    536|  static_assert(N > 0, "Passed zero length printTag");
  195|    536|  return printTag<N, array>(os, value.toInt64(), data);
  196|    536|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDECPositionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    536|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    536|  static_assert(N > 0, "Passed zero length printTag");
  183|    536|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 470]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    470|  return os << "(" << value << ")";
  186|    536|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaColorProfileStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    536|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    536|  static_assert(N > 0, "Passed zero length printTag");
  195|    536|  return printTag<N, array>(os, value.toInt64(), data);
  196|    536|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaColorProfileStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    536|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    536|  static_assert(N > 0, "Passed zero length printTag");
  183|    536|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 64, False: 472]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|    472|  return os << "(" << value << ")";
  186|    536|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDataImprintStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    534|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    534|  static_assert(N > 0, "Passed zero length printTag");
  195|    534|  return printTag<N, array>(os, value.toInt64(), data);
  196|    534|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDataImprintStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    534|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    534|  static_assert(N > 0, "Passed zero length printTag");
  183|    534|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 86, False: 448]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    448|  return os << "(" << value << ")";
  186|    534|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaFlashMeteringStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    612|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    612|  static_assert(N > 0, "Passed zero length printTag");
  195|    612|  return printTag<N, array>(os, value.toInt64(), data);
  196|    612|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaFlashMeteringStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    612|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    612|  static_assert(N > 0, "Passed zero length printTag");
  183|    612|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 520]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    520|  return os << "(" << value << ")";
  186|    612|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    112|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    112|  static_assert(N > 0, "Passed zero length printTag");
  195|    112|  return printTag<N, array>(os, value.toInt64(), data);
  196|    112|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    112|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    112|  static_assert(N > 0, "Passed zero length printTag");
  183|    112|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 74]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    112|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    108|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    108|  static_assert(N > 0, "Passed zero length printTag");
  195|    108|  return printTag<N, array>(os, value.toInt64(), data);
  196|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize7DEEEERNSt3__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: 40, False: 68]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    108|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    108|  static_assert(N > 0, "Passed zero length printTag");
  195|    108|  return printTag<N, array>(os, value.toInt64(), data);
  196|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality7DEEEERNSt3__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: 38, False: 70]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    108|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance7DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusMode7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusMode7DEEEERNSt3__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: 34, False: 68]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaAFPoints7DEEEERNSt3__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_L17minoltaAFPoints7DEEEERNSt3__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: 24, False: 76]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    100|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting7DEEEERNSt3__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: 36, False: 40]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     76|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     66|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     66|  static_assert(N > 0, "Passed zero length printTag");
  195|     66|  return printTag<N, array>(os, value.toInt64(), data);
  196|     66|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace7DEEEERNSt3__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: 18, False: 48]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|     66|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation7DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation7DEEEERNSt3__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: 8, False: 42]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|     50|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode5DEEEERNSt3__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: 78, False: 228]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|    228|  return os << "(" << value << ")";
  186|    306|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize5DEEEERNSt3__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: 72, False: 72]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality5DEEEERNSt3__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: 56, False: 88]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance5DEEEERNSt3__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: 108, False: 194]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    194|  return os << "(" << value << ")";
  186|    302|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaFocusPosition5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    132|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    132|  static_assert(N > 0, "Passed zero length printTag");
  195|    132|  return printTag<N, array>(os, value.toInt64(), data);
  196|    132|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaFocusPosition5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    132|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    132|  static_assert(N > 0, "Passed zero length printTag");
  183|    132|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 74]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    132|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusArea5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    132|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    132|  static_assert(N > 0, "Passed zero length printTag");
  195|    132|  return printTag<N, array>(os, value.toInt64(), data);
  196|    132|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusArea5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    132|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    132|  static_assert(N > 0, "Passed zero length printTag");
  183|    132|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 84]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    132|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaMeteringMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    128|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    128|  static_assert(N > 0, "Passed zero length printTag");
  195|    128|  return printTag<N, array>(os, value.toInt64(), data);
  196|    128|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaMeteringMode5DEEEERNSt3__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: 48, False: 80]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    128|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    128|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    128|  static_assert(N > 0, "Passed zero length printTag");
  195|    128|  return printTag<N, array>(os, value.toInt64(), data);
  196|    128|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting5DEEEERNSt3__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: 60, False: 68]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    128|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace5DEEEERNSt3__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: 52, False: 50]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation5DEEEERNSt3__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: 8, False: 68]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|     76|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaPictureFinish5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaPictureFinish5DEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaAFMode5DEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaAFMode5DEEEERNSt3__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: 28, False: 36]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|     64|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyDriveMode2A100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyDriveMode2A100EEEERNSt3__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: 42, False: 116]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFocusModeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFocusModeA100EEEERNSt3__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: 28, False: 130]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashModeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashModeA100EEEERNSt3__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: 30, False: 128]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyMeteringModeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyMeteringModeA100EEEERNSt3__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: 30, False: 128]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyZoneMatchingModeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyZoneMatchingModeA100EEEERNSt3__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: 30, False: 128]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyColorSpaceA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyColorSpaceA100EEEERNSt3__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: 26, False: 132]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyDriveModeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyDriveModeA100EEEERNSt3__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: 52, False: 106]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonySelfTimerTimeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonySelfTimerTimeA100EEEERNSt3__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: 34, False: 124]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyContinuousBracketingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyContinuousBracketingA100EEEERNSt3__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: 6, False: 152]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|    152|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29sonySingleFrameBracketingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29sonySingleFrameBracketingA100EEEERNSt3__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: 4, False: 154]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|    154|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyWhiteBalanceBracketingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyWhiteBalanceBracketingA100EEEERNSt3__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: 8, False: 150]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|    150|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyWhiteBalanceSettingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyWhiteBalanceSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    158|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    158|  static_assert(N > 0, "Passed zero length printTag");
  183|    158|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 110]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyPresetWhiteBalanceA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyPresetWhiteBalanceA100EEEERNSt3__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: 16, False: 142]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|    142|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31sonyColorTemperatureSettingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31sonyColorTemperatureSettingA100EEEERNSt3__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: 32, False: 126]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    126|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyCustomWBSettingA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyCustomWBSettingA100EEEERNSt3__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: 42, False: 116]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyCustomWBErrorA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyCustomWBErrorA100EEEERNSt3__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: 28, False: 130]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyImageSizeA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyImageSizeA100EEEERNSt3__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: 28, False: 128]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    128|  return os << "(" << value << ")";
  186|    156|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyInstantPlaybackSetupA100EEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyInstantPlaybackSetupA100EEEERNSt3__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: 32, False: 124]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    156|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyFlashDefaultA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyFlashDefaultA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 78]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyAutoBracketOrderA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyAutoBracketOrderA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 86]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusHoldButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusHoldButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 80]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAELButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAELButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 70]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyControlDialSetA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyControlDialSetA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 76]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyExposureCompensationModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyExposureCompensationModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 72]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyAFAreaIlluminationA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyAFAreaIlluminationA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 72]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMonitorDisplayOffA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMonitorDisplayOffA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 80]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyRecordDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyRecordDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 72]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyPlayDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyPlayDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 76]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|     98|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyExposureIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    414|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    414|  static_assert(N > 0, "Passed zero length printTag");
  195|    414|  return printTag<N, array>(os, value.toInt64(), data);
  196|    414|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyExposureIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    414|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    414|  static_assert(N > 0, "Passed zero length printTag");
  183|    414|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 322]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    322|  return os << "(" << value << ")";
  186|    414|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L33sonyMeteringOffScaleIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     52|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     52|  static_assert(N > 0, "Passed zero length printTag");
  195|     52|  return printTag<N, array>(os, value.toInt64(), data);
  196|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L33sonyMeteringOffScaleIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     52|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     52|  static_assert(N > 0, "Passed zero length printTag");
  183|     52|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 28]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusModeSwitchA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     52|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     52|  static_assert(N > 0, "Passed zero length printTag");
  195|     52|  return printTag<N, array>(os, value.toInt64(), data);
  196|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusModeSwitchA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     52|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     52|  static_assert(N > 0, "Passed zero length printTag");
  183|     52|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 40]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashTypeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     52|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     52|  static_assert(N > 0, "Passed zero length printTag");
  195|     52|  return printTag<N, array>(os, value.toInt64(), data);
  196|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashTypeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     52|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     52|  static_assert(N > 0, "Passed zero length printTag");
  183|     52|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 32]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyBatteryLevelA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     52|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     52|  static_assert(N > 0, "Passed zero length printTag");
  195|     52|  return printTag<N, array>(os, value.toInt64(), data);
  196|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyBatteryLevelA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     52|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     52|  static_assert(N > 0, "Passed zero length printTag");
  183|     52|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 42]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm205ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaSonyLensIDEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.68k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.68k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.68k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.68k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm205ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaSonyLensIDEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.68k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.68k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.68k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.07k, False: 614]
  ------------------
  184|  3.07k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.07k|#define _(String) (String)
  ------------------
  185|    614|  return os << "(" << value << ")";
  186|  3.68k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyColorModeEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyColorModeEEEERNSt3__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: 56, False: 102]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    158|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyBoolFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.72k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.72k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.72k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.72k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyBoolFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.72k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.72k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.72k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 678, False: 2.05k]
  ------------------
  184|    678|    return os << _(td->label_);
  ------------------
  |  |   40|    678|#define _(String) (String)
  ------------------
  185|  2.05k|  return os << "(" << value << ")";
  186|  2.72k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30minoltaSonyBoolInverseFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    730|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    730|  static_assert(N > 0, "Passed zero length printTag");
  195|    730|  return printTag<N, array>(os, value.toInt64(), data);
  196|    730|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30minoltaSonyBoolInverseFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    730|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    730|  static_assert(N > 0, "Passed zero length printTag");
  183|    730|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 200, False: 530]
  ------------------
  184|    200|    return os << _(td->label_);
  ------------------
  |  |   40|    200|#define _(String) (String)
  ------------------
  185|    530|  return os << "(" << value << ")";
  186|    730|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaSonyAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    582|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    582|  static_assert(N > 0, "Passed zero length printTag");
  195|    582|  return printTag<N, array>(os, value.toInt64(), data);
  196|    582|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaSonyAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    582|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    582|  static_assert(N > 0, "Passed zero length printTag");
  183|    582|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 136, False: 446]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|    446|  return os << "(" << value << ")";
  186|    582|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27minoltaSonyLocalAFAreaPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    582|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    582|  static_assert(N > 0, "Passed zero length printTag");
  195|    582|  return printTag<N, array>(os, value.toInt64(), data);
  196|    582|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27minoltaSonyLocalAFAreaPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    582|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    582|  static_assert(N > 0, "Passed zero length printTag");
  183|    582|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 96, False: 486]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|    486|  return os << "(" << value << ")";
  186|    582|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L36minoltaSonyDynamicRangeOptimizerModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    740|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    740|  static_assert(N > 0, "Passed zero length printTag");
  195|    740|  return printTag<N, array>(os, value.toInt64(), data);
  196|    740|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L36minoltaSonyDynamicRangeOptimizerModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    740|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    740|  static_assert(N > 0, "Passed zero length printTag");
  183|    740|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 178, False: 562]
  ------------------
  184|    178|    return os << _(td->label_);
  ------------------
  |  |   40|    178|#define _(String) (String)
  ------------------
  185|    562|  return os << "(" << value << ")";
  186|    740|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L38minoltaSonyPrioritySetupShutterReleaseEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L38minoltaSonyPrioritySetupShutterReleaseEEEERNSt3__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: 136, False: 360]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|    360|  return os << "(" << value << ")";
  186|    496|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyQualityCsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    418|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    418|  static_assert(N > 0, "Passed zero length printTag");
  195|    418|  return printTag<N, array>(os, value.toInt64(), data);
  196|    418|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyQualityCsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    418|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    418|  static_assert(N > 0, "Passed zero length printTag");
  183|    418|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 94, False: 324]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|    324|  return os << "(" << value << ")";
  186|    418|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSonyRotationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    472|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    472|  static_assert(N > 0, "Passed zero length printTag");
  195|    472|  return printTag<N, array>(os, value.toInt64(), data);
  196|    472|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSonyRotationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    472|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    472|  static_assert(N > 0, "Passed zero length printTag");
  183|    472|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 380]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    380|  return os << "(" << value << ")";
  186|    472|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonySceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.48k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.48k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.48k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.48k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonySceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.48k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.48k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.48k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.13k, False: 354]
  ------------------
  184|  2.13k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.13k|#define _(String) (String)
  ------------------
  185|    354|  return os << "(" << value << ")";
  186|  2.48k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29minoltaSonyTeleconverterModelEEEERNSt3__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|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29minoltaSonyTeleconverterModelEEEERNSt3__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: 314, False: 72]
  ------------------
  184|    314|    return os << _(td->label_);
  ------------------
  |  |   40|    314|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    386|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyZoneMatchingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    188|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    188|  static_assert(N > 0, "Passed zero length printTag");
  195|    188|  return printTag<N, array>(os, value.toInt64(), data);
  196|    188|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyZoneMatchingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    188|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    188|  static_assert(N > 0, "Passed zero length printTag");
  183|    188|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 78]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    188|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14olympusQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    560|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    560|  static_assert(N > 0, "Passed zero length printTag");
  195|    560|  return printTag<N, array>(os, value.toInt64(), data);
  196|    560|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14olympusQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    560|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    560|  static_assert(N > 0, "Passed zero length printTag");
  183|    560|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 280, False: 280]
  ------------------
  184|    280|    return os << _(td->label_);
  ------------------
  |  |   40|    280|#define _(String) (String)
  ------------------
  185|    280|  return os << "(" << value << ")";
  186|    560|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    548|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    548|  static_assert(N > 0, "Passed zero length printTag");
  195|    548|  return printTag<N, array>(os, value.toInt64(), data);
  196|    548|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    548|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    548|  static_assert(N > 0, "Passed zero length printTag");
  183|    548|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 304, False: 244]
  ------------------
  184|    304|    return os << _(td->label_);
  ------------------
  |  |   40|    304|#define _(String) (String)
  ------------------
  185|    244|  return os << "(" << value << ")";
  186|    548|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    430|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    430|  static_assert(N > 0, "Passed zero length printTag");
  195|    430|  return printTag<N, array>(os, value.toInt64(), data);
  196|    430|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    430|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    430|  static_assert(N > 0, "Passed zero length printTag");
  183|    430|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 328, False: 102]
  ------------------
  184|    328|    return os << _(td->label_);
  ------------------
  |  |   40|    328|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    430|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusOneTouchWbEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    238|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    238|  static_assert(N > 0, "Passed zero length printTag");
  195|    238|  return printTag<N, array>(os, value.toInt64(), data);
  196|    238|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusOneTouchWbEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    238|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    238|  static_assert(N > 0, "Passed zero length printTag");
  183|    238|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 162, False: 76]
  ------------------
  184|    162|    return os << _(td->label_);
  ------------------
  |  |   40|    162|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    238|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm45ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.41k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.41k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.41k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.41k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm45ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.41k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.41k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.41k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.17k, False: 244]
  ------------------
  184|  2.17k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.17k|#define _(String) (String)
  ------------------
  185|    244|  return os << "(" << value << ")";
  186|  2.41k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusFlashDeviceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    108|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    108|  static_assert(N > 0, "Passed zero length printTag");
  195|    108|  return printTag<N, array>(os, value.toInt64(), data);
  196|    108|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusFlashDeviceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    108|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    108|  static_assert(N > 0, "Passed zero length printTag");
  183|    108|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 68, False: 40]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    108|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusFocusRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusFocusRangeEEEERNSt3__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: 38, False: 66]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    104|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     48|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     48|  static_assert(N > 0, "Passed zero length printTag");
  195|     48|  return printTag<N, array>(os, value.toInt64(), data);
  196|     48|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusFocusModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSharpnessEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSharpnessEEEERNSt3__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: 132, False: 72]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    204|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    276|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    276|  static_assert(N > 0, "Passed zero length printTag");
  195|    276|  return printTag<N, array>(os, value.toInt64(), data);
  196|    276|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusContrastEEEERNSt3__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: 168, False: 108]
  ------------------
  184|    168|    return os << _(td->label_);
  ------------------
  |  |   40|    168|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    276|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusCCDScanModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    114|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    114|  static_assert(N > 0, "Passed zero length printTag");
  195|    114|  return printTag<N, array>(os, value.toInt64(), data);
  196|    114|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusCCDScanModeEEEERNSt3__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: 82, False: 32]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    114|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusNoYesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    606|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    606|  static_assert(N > 0, "Passed zero length printTag");
  195|    606|  return printTag<N, array>(os, value.toInt64(), data);
  196|    606|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusNoYesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    606|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    606|  static_assert(N > 0, "Passed zero length printTag");
  183|    606|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 222, False: 384]
  ------------------
  184|    222|    return os << _(td->label_);
  ------------------
  |  |   40|    222|#define _(String) (String)
  ------------------
  185|    384|  return os << "(" << value << ")";
  186|    606|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusExposureModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusExposureModeEEEERNSt3__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: 150, False: 284]
  ------------------
  184|    150|    return os << _(td->label_);
  ------------------
  |  |   40|    150|#define _(String) (String)
  ------------------
  185|    284|  return os << "(" << value << ")";
  186|    434|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusMeteringModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusMeteringModeEEEERNSt3__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: 132, False: 228]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|    228|  return os << "(" << value << ")";
  186|    360|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusMacroModeEEEERNSt3__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_L16olympusMacroModeEEEERNSt3__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: 94, False: 104]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|    104|  return os << "(" << value << ")";
  186|    198|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusFocusProcessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    202|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    202|  static_assert(N > 0, "Passed zero length printTag");
  195|    202|  return printTag<N, array>(os, value.toInt64(), data);
  196|    202|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusFocusProcessEEEERNSt3__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: 168, False: 34]
  ------------------
  184|    168|    return os << _(td->label_);
  ------------------
  |  |   40|    168|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    202|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusAFSearchEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusAFSearchEEEERNSt3__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: 46, False: 22]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|     68|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L16olympusFlashModeEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    796|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    796|  static_assert(N > 0, "Passed zero length printTag");
  208|    796|  const auto val = value.toUint32();
  209|    796|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 182, False: 614]
  ------------------
  210|    182|    auto [mask, label] = *array;
  211|    182|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 182, False: 0]
  ------------------
  212|    182|      return os << _(label);
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
  213|    182|  }
  214|    614|  bool sep = false;
  215|  4.29k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 4.29k, False: 614]
  ------------------
  216|  4.29k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 1.30k, False: 2.99k]
  ------------------
  217|  1.30k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 696, False: 612]
  ------------------
  218|    696|        os << ", " << _(label);
  ------------------
  |  |   40|    696|#define _(String) (String)
  ------------------
  219|    696|      } else {
  220|    612|        os << _(label);
  ------------------
  |  |   40|    612|#define _(String) (String)
  ------------------
  221|    612|        sep = true;
  222|    612|      }
  223|  1.30k|    }
  224|  4.29k|  }
  225|    614|  return os;
  226|    796|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusFlashRemoteControlEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusFlashRemoteControlEEEERNSt3__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: 634, False: 228]
  ------------------
  184|    634|    return os << _(td->label_);
  ------------------
  |  |   40|    634|#define _(String) (String)
  ------------------
  185|    228|  return os << "(" << value << ")";
  186|    862|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusFlashControlModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    122|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    122|  static_assert(N > 0, "Passed zero length printTag");
  195|    122|  return printTag<N, array>(os, value.toInt64(), data);
  196|    122|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusFlashControlModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    122|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    122|  static_assert(N > 0, "Passed zero length printTag");
  183|    122|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 82, False: 40]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    122|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.12k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.12k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.12k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.12k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.12k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.12k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.12k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 610, False: 512]
  ------------------
  184|    610|    return os << _(td->label_);
  ------------------
  |  |   40|    610|#define _(String) (String)
  ------------------
  185|    512|  return os << "(" << value << ")";
  186|  1.12k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusModifiedSaturationEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusModifiedSaturationEEEERNSt3__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: 170, False: 78]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    248|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     88|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     88|  static_assert(N > 0, "Passed zero length printTag");
  195|     88|  return printTag<N, array>(os, value.toInt64(), data);
  196|     88|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     88|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     88|  static_assert(N > 0, "Passed zero length printTag");
  183|     88|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 22]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|     88|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm4ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L21olympusNoiseReductionEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    244|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    244|  static_assert(N > 0, "Passed zero length printTag");
  208|    244|  const auto val = value.toUint32();
  209|    244|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 36, False: 208]
  ------------------
  210|     36|    auto [mask, label] = *array;
  211|     36|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 36]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|     36|  }
  214|    244|  bool sep = false;
  215|    976|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 976, False: 244]
  ------------------
  216|    976|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 346, False: 630]
  ------------------
  217|    346|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 142, False: 204]
  ------------------
  218|    142|        os << ", " << _(label);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  219|    204|      } else {
  220|    204|        os << _(label);
  ------------------
  |  |   40|    204|#define _(String) (String)
  ------------------
  221|    204|        sep = true;
  222|    204|      }
  223|    346|    }
  224|    976|  }
  225|    244|  return os;
  226|    244|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    886|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    886|  static_assert(N > 0, "Passed zero length printTag");
  195|    886|  return printTag<N, array>(os, value.toInt64(), data);
  196|    886|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    886|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    886|  static_assert(N > 0, "Passed zero length printTag");
  183|    886|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 604, False: 282]
  ------------------
  184|    604|    return os << _(td->label_);
  ------------------
  |  |   40|    604|#define _(String) (String)
  ------------------
  185|    282|  return os << "(" << value << ")";
  186|    886|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26olympusPictureModeBWFilterEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26olympusPictureModeBWFilterEEEERNSt3__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: 154, False: 38]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    192|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusPictureModeToneEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusPictureModeToneEEEERNSt3__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: 136, False: 68]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    204|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusCsQualityEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusCsQualityEEEERNSt3__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: 36, False: 22]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|     58|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusImageStabilizationEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusImageStabilizationEEEERNSt3__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: 122, False: 34]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    156|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusEqFlashTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.07k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.07k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.07k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.07k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusEqFlashTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.07k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.07k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.07k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 474, False: 600]
  ------------------
  184|    474|    return os << _(td->label_);
  ------------------
  |  |   40|    474|#define _(String) (String)
  ------------------
  185|    600|  return os << "(" << value << ")";
  186|  1.07k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusEqFlashModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    318|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    318|  static_assert(N > 0, "Passed zero length printTag");
  195|    318|  return printTag<N, array>(os, value.toInt64(), data);
  196|    318|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusEqFlashModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    318|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    318|  static_assert(N > 0, "Passed zero length printTag");
  183|    318|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 288, False: 30]
  ------------------
  184|    288|    return os << _(td->label_);
  ------------------
  |  |   40|    288|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    318|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    228|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    228|  static_assert(N > 0, "Passed zero length printTag");
  195|    228|  return printTag<N, array>(os, value.toInt64(), data);
  196|    228|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    228|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    228|  static_assert(N > 0, "Passed zero length printTag");
  183|    228|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 170, False: 58]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    228|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusRdEngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    512|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    512|  static_assert(N > 0, "Passed zero length printTag");
  195|    512|  return printTag<N, array>(os, value.toInt64(), data);
  196|    512|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusRdEngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    512|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    512|  static_assert(N > 0, "Passed zero length printTag");
  183|    512|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 388, False: 124]
  ------------------
  184|    388|    return os << _(td->label_);
  ------------------
  |  |   40|    388|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    512|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdEditStatusEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdEditStatusEEEERNSt3__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: 138, False: 82]
  ------------------
  184|    138|    return os << _(td->label_);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    220|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm8ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L17olympusRdSettingsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    914|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    914|  static_assert(N > 0, "Passed zero length printTag");
  208|    914|  const auto val = value.toUint32();
  209|    914|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 34, False: 880]
  ------------------
  210|     34|    auto [mask, label] = *array;
  211|     34|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 34]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|     34|  }
  214|    914|  bool sep = false;
  215|  7.31k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 7.31k, False: 914]
  ------------------
  216|  7.31k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 2.41k, False: 4.89k]
  ------------------
  217|  2.41k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 1.59k, False: 820]
  ------------------
  218|  1.59k|        os << ", " << _(label);
  ------------------
  |  |   40|  1.59k|#define _(String) (String)
  ------------------
  219|  1.59k|      } else {
  220|    820|        os << _(label);
  ------------------
  |  |   40|    820|#define _(String) (String)
  ------------------
  221|    820|        sep = true;
  222|    820|      }
  223|  2.41k|    }
  224|  7.31k|  }
  225|    914|  return os;
  226|    914|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusRd2WhiteBalanceEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusRd2WhiteBalanceEEEERNSt3__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: 66, False: 100]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    166|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRd2ColorSpaceEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRd2ColorSpaceEEEERNSt3__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: 282, False: 134]
  ------------------
  184|    282|    return os << _(td->label_);
  ------------------
  |  |   40|    282|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    416|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusRd2EngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    142|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    142|  static_assert(N > 0, "Passed zero length printTag");
  195|    142|  return printTag<N, array>(os, value.toInt64(), data);
  196|    142|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusRd2EngineEEEERNSt3__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: 88, False: 54]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    142|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PictureModeEEEERNSt3__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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PictureModeEEEERNSt3__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: 200, False: 346]
  ------------------
  184|    200|    return os << _(td->label_);
  ------------------
  |  |   40|    200|#define _(String) (String)
  ------------------
  185|    346|  return os << "(" << value << ")";
  186|    546|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PM_BWFilterEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PM_BWFilterEEEERNSt3__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: 110, False: 76]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    186|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusRd2PMPictureToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    122|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    122|  static_assert(N > 0, "Passed zero length printTag");
  195|    122|  return printTag<N, array>(os, value.toInt64(), data);
  196|    122|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusRd2PMPictureToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    122|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    122|  static_assert(N > 0, "Passed zero length printTag");
  183|    122|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 82, False: 40]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    122|}
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|     56|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     56|  static_assert(N > 0, "Passed zero length printTag");
  195|     56|  return printTag<N, array>(os, value.toInt64(), data);
  196|     56|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusIpAspectRatioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     56|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     56|  static_assert(N > 0, "Passed zero length printTag");
  183|     56|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 10]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     10|  return os << "(" << value << ")";
  186|     56|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28olympusFiExternalFlashBounceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     20|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     20|  static_assert(N > 0, "Passed zero length printTag");
  195|     20|  return printTag<N, array>(os, value.toInt64(), data);
  196|     20|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28olympusFiExternalFlashBounceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     20|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     20|  static_assert(N > 0, "Passed zero length printTag");
  183|     20|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 6]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     20|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRiLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    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|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRiLightSourceEEEERNSt3__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: 326, False: 52]
  ------------------
  184|    326|    return os << _(td->label_);
  ------------------
  |  |   40|    326|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    378|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10artFiltersEEEERNSt3__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: 694, False: 180]
  ------------------
  184|    694|    return os << _(td->label_);
  ------------------
  |  |   40|    694|#define _(String) (String)
  ------------------
  185|    180|  return os << "(" << value << ")";
  186|    874|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    794|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    794|  static_assert(N > 0, "Passed zero length printTag");
  195|    794|  return printTag<N, array>(os, value.toInt64(), data);
  196|    794|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    794|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    794|  static_assert(N > 0, "Passed zero length printTag");
  183|    794|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 390, False: 404]
  ------------------
  184|    390|    return os << _(td->label_);
  ------------------
  |  |   40|    390|#define _(String) (String)
  ------------------
  185|    404|  return os << "(" << value << ")";
  186|    794|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    526|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    526|  static_assert(N > 0, "Passed zero length printTag");
  195|    526|  return printTag<N, array>(os, value.toInt64(), data);
  196|    526|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    526|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    526|  static_assert(N > 0, "Passed zero length printTag");
  183|    526|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 352, False: 174]
  ------------------
  184|    352|    return os << _(td->label_);
  ------------------
  |  |   40|    352|#define _(String) (String)
  ------------------
  185|    174|  return os << "(" << value << ")";
  186|    526|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicFocusModeEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicFocusModeEEEERNSt3__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: 448, False: 230]
  ------------------
  184|    448|    return os << _(td->label_);
  ------------------
  |  |   40|    448|#define _(String) (String)
  ------------------
  185|    230|  return os << "(" << value << ")";
  186|    678|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicImageStabilizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    358|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    358|  static_assert(N > 0, "Passed zero length printTag");
  195|    358|  return printTag<N, array>(os, value.toInt64(), data);
  196|    358|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicImageStabilizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    358|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    358|  static_assert(N > 0, "Passed zero length printTag");
  183|    358|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 212, False: 146]
  ------------------
  184|    212|    return os << _(td->label_);
  ------------------
  |  |   40|    212|#define _(String) (String)
  ------------------
  185|    146|  return os << "(" << value << ")";
  186|    358|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicMacroEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicMacroEEEERNSt3__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: 150, False: 294]
  ------------------
  184|    150|    return os << _(td->label_);
  ------------------
  |  |   40|    150|#define _(String) (String)
  ------------------
  185|    294|  return os << "(" << value << ")";
  186|    444|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm77ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    366|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    366|  static_assert(N > 0, "Passed zero length printTag");
  195|    366|  return printTag<N, array>(os, value.toInt64(), data);
  196|    366|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm77ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    366|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    366|  static_assert(N > 0, "Passed zero length printTag");
  183|    366|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 254, False: 112]
  ------------------
  184|    254|    return os << _(td->label_);
  ------------------
  |  |   40|    254|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    366|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicAudioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    220|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    220|  static_assert(N > 0, "Passed zero length printTag");
  195|    220|  return printTag<N, array>(os, value.toInt64(), data);
  196|    220|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicAudioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    220|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    220|  static_assert(N > 0, "Passed zero length printTag");
  183|    220|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 140, False: 80]
  ------------------
  184|    140|    return os << _(td->label_);
  ------------------
  |  |   40|    140|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    220|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicColorEffectEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicColorEffectEEEERNSt3__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: 68, False: 188]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|    188|  return os << "(" << value << ")";
  186|    256|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicBurstModeEEEERNSt3__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_L18panasonicBurstModeEEEERNSt3__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: 162, False: 80]
  ------------------
  184|    162|    return os << _(td->label_);
  ------------------
  |  |   40|    162|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    242|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    550|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    550|  static_assert(N > 0, "Passed zero length printTag");
  195|    550|  return printTag<N, array>(os, value.toInt64(), data);
  196|    550|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    550|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    550|  static_assert(N > 0, "Passed zero length printTag");
  183|    550|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 378, False: 172]
  ------------------
  184|    378|    return os << _(td->label_);
  ------------------
  |  |   40|    378|#define _(String) (String)
  ------------------
  185|    172|  return os << "(" << value << ")";
  186|    550|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    388|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    388|  static_assert(N > 0, "Passed zero length printTag");
  195|    388|  return printTag<N, array>(os, value.toInt64(), data);
  196|    388|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    388|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    388|  static_assert(N > 0, "Passed zero length printTag");
  183|    388|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 254, False: 134]
  ------------------
  184|    254|    return os << _(td->label_);
  ------------------
  |  |   40|    254|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    388|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicSelfTimerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    128|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    128|  static_assert(N > 0, "Passed zero length printTag");
  195|    128|  return printTag<N, array>(os, value.toInt64(), data);
  196|    128|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicSelfTimerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    128|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    128|  static_assert(N > 0, "Passed zero length printTag");
  183|    128|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 58]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    128|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicRotationEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicRotationEEEERNSt3__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: 116, False: 124]
  ------------------
  184|    116|    return os << _(td->label_);
  ------------------
  |  |   40|    116|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    240|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicAFAssistLampEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    212|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    212|  static_assert(N > 0, "Passed zero length printTag");
  195|    212|  return printTag<N, array>(os, value.toInt64(), data);
  196|    212|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicAFAssistLampEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    212|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    212|  static_assert(N > 0, "Passed zero length printTag");
  183|    212|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 120]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    212|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    322|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    322|  static_assert(N > 0, "Passed zero length printTag");
  195|    322|  return printTag<N, array>(os, value.toInt64(), data);
  196|    322|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    322|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    322|  static_assert(N > 0, "Passed zero length printTag");
  183|    322|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 198, False: 124]
  ------------------
  184|    198|    return os << _(td->label_);
  ------------------
  |  |   40|    198|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    322|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicOpticalZoomModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    408|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    408|  static_assert(N > 0, "Passed zero length printTag");
  195|    408|  return printTag<N, array>(os, value.toInt64(), data);
  196|    408|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicOpticalZoomModeEEEERNSt3__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: 284, False: 124]
  ------------------
  184|    284|    return os << _(td->label_);
  ------------------
  |  |   40|    284|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    408|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicConversionLensEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicConversionLensEEEERNSt3__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: 62, False: 114]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    176|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicWorldTimeLocationEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicWorldTimeLocationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     48|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     48|  static_assert(N > 0, "Passed zero length printTag");
  183|     48|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 28]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|     48|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicTextStampEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicTextStampEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    510|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    510|  static_assert(N > 0, "Passed zero length printTag");
  195|    510|  return printTag<N, array>(os, value.toInt64(), data);
  196|    510|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    510|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    510|  static_assert(N > 0, "Passed zero length printTag");
  183|    510|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 356, False: 154]
  ------------------
  184|    356|    return os << _(td->label_);
  ------------------
  |  |   40|    356|#define _(String) (String)
  ------------------
  185|    154|  return os << "(" << value << ")";
  186|    510|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicBracketSettingsEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicBracketSettingsEEEERNSt3__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: 110, False: 96]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    206|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashCurtainEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashCurtainEEEERNSt3__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: 108, False: 158]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|    266|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34panasonicLongShutterNoiseReductionEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34panasonicLongShutterNoiseReductionEEEERNSt3__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: 18, False: 126]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|    126|  return os << "(" << value << ")";
  186|    144|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicIntelligentExposureEEEERNSt3__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_L28panasonicIntelligentExposureEEEERNSt3__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: 224, False: 62]
  ------------------
  184|    224|    return os << _(td->label_);
  ------------------
  |  |   40|    224|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    286|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashWarningEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashWarningEEEERNSt3__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: 112, False: 48]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|    160|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30panasonicIntelligentResolutionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    184|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    184|  static_assert(N > 0, "Passed zero length printTag");
  195|    184|  return printTag<N, array>(os, value.toInt64(), data);
  196|    184|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30panasonicIntelligentResolutionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    184|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    184|  static_assert(N > 0, "Passed zero length printTag");
  183|    184|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 144, False: 40]
  ------------------
  184|    144|    return os << _(td->label_);
  ------------------
  |  |   40|    144|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    184|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicIntelligentDRangeEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicIntelligentDRangeEEEERNSt3__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: 274, False: 82]
  ------------------
  184|    274|    return os << _(td->label_);
  ------------------
  |  |   40|    274|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    356|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicClearRetouchEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicClearRetouchEEEERNSt3__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: 38, False: 20]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     58|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicPhotoStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    350|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    350|  static_assert(N > 0, "Passed zero length printTag");
  195|    350|  return printTag<N, array>(os, value.toInt64(), data);
  196|    350|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicPhotoStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    350|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    350|  static_assert(N > 0, "Passed zero length printTag");
  183|    350|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 218, False: 132]
  ------------------
  184|    218|    return os << _(td->label_);
  ------------------
  |  |   40|    218|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    350|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicShadingCompensationEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicShadingCompensationEEEERNSt3__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: 50, False: 50]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    100|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicCameraOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    446|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    446|  static_assert(N > 0, "Passed zero length printTag");
  195|    446|  return printTag<N, array>(os, value.toInt64(), data);
  196|    446|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicCameraOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    446|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    446|  static_assert(N > 0, "Passed zero length printTag");
  183|    446|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 310, False: 136]
  ------------------
  184|    310|    return os << _(td->label_);
  ------------------
  |  |   40|    310|#define _(String) (String)
  ------------------
  185|    136|  return os << "(" << value << ")";
  186|    446|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31panasonicSweepPanoramaDirectionEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31panasonicSweepPanoramaDirectionEEEERNSt3__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: 314, False: 72]
  ------------------
  184|    314|    return os << _(td->label_);
  ------------------
  |  |   40|    314|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    386|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicTimerRecordingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    128|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    128|  static_assert(N > 0, "Passed zero length printTag");
  195|    128|  return printTag<N, array>(os, value.toInt64(), data);
  196|    128|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicTimerRecordingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    128|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    128|  static_assert(N > 0, "Passed zero length printTag");
  183|    128|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 96, False: 32]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    128|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12panasonicHDREEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    392|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    392|  static_assert(N > 0, "Passed zero length printTag");
  195|    392|  return printTag<N, array>(os, value.toInt64(), data);
  196|    392|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12panasonicHDREEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    392|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    392|  static_assert(N > 0, "Passed zero length printTag");
  183|    392|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 234, False: 158]
  ------------------
  184|    234|    return os << _(td->label_);
  ------------------
  |  |   40|    234|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|    392|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicShutterTypeEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicShutterTypeEEEERNSt3__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: 84, False: 76]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    160|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicTouchAEEEEERNSt3__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|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicTouchAEEEEERNSt3__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: 96, False: 70]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    166|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    128|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    128|  static_assert(N > 0, "Passed zero length printTag");
  195|    128|  return printTag<N, array>(os, value.toInt64(), data);
  196|    128|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicFlashFiredEEEERNSt3__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: 72, False: 56]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    128|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxShootingModeEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxShootingModeEEEERNSt3__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: 250, False: 90]
  ------------------
  184|    250|    return os << _(td->label_);
  ------------------
  |  |   40|    250|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    340|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm147ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxModelEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm147ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxModelEEEERNSt3__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: 14, False: 184]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|    184|  return os << "(" << value << ")";
  186|    198|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.03k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.03k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.03k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.03k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.03k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.03k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.03k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 538, False: 496]
  ------------------
  184|    538|    return os << _(td->label_);
  ------------------
  |  |   40|    538|#define _(String) (String)
  ------------------
  185|    496|  return os << "(" << value << ")";
  186|  1.03k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10pentaxSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    968|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    968|  static_assert(N > 0, "Passed zero length printTag");
  195|    968|  return printTag<N, array>(os, value.toInt64(), data);
  196|    968|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10pentaxSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    968|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    968|  static_assert(N > 0, "Passed zero length printTag");
  183|    968|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 802, False: 166]
  ------------------
  184|    802|    return os << _(td->label_);
  ------------------
  |  |   40|    802|#define _(String) (String)
  ------------------
  185|    166|  return os << "(" << value << ")";
  186|    968|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    952|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    952|  static_assert(N > 0, "Passed zero length printTag");
  195|    952|  return printTag<N, array>(os, value.toInt64(), data);
  196|    952|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    952|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    952|  static_assert(N > 0, "Passed zero length printTag");
  183|    952|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 812, False: 140]
  ------------------
  184|    812|    return os << _(td->label_);
  ------------------
  |  |   40|    812|#define _(String) (String)
  ------------------
  185|    140|  return os << "(" << value << ")";
  186|    952|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    816|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    816|  static_assert(N > 0, "Passed zero length printTag");
  195|    816|  return printTag<N, array>(os, value.toInt64(), data);
  196|    816|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    816|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    816|  static_assert(N > 0, "Passed zero length printTag");
  183|    816|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 648, False: 168]
  ------------------
  184|    648|    return os << _(td->label_);
  ------------------
  |  |   40|    648|#define _(String) (String)
  ------------------
  185|    168|  return os << "(" << value << ")";
  186|    816|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxAFPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    876|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    876|  static_assert(N > 0, "Passed zero length printTag");
  195|    876|  return printTag<N, array>(os, value.toInt64(), data);
  196|    876|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxAFPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    876|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    876|  static_assert(N > 0, "Passed zero length printTag");
  183|    876|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 656, False: 220]
  ------------------
  184|    656|    return os << _(td->label_);
  ------------------
  |  |   40|    656|#define _(String) (String)
  ------------------
  185|    220|  return os << "(" << value << ")";
  186|    876|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxAFPointFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.00k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.00k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.00k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.00k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxAFPointFocusEEEERNSt3__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: 810, False: 196]
  ------------------
  184|    810|    return os << _(td->label_);
  ------------------
  |  |   40|    810|#define _(String) (String)
  ------------------
  185|    196|  return os << "(" << value << ")";
  186|  1.00k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm79ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9pentaxISOEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm79ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9pentaxISOEEEERNSt3__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: 190, False: 612]
  ------------------
  184|    190|    return os << _(td->label_);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  185|    612|  return os << "(" << value << ")";
  186|    802|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxMeteringModeEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxMeteringModeEEEERNSt3__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: 48, False: 52]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    100|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.00k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.00k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.00k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.00k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxWhiteBalanceEEEERNSt3__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: 846, False: 158]
  ------------------
  184|    846|    return os << _(td->label_);
  ------------------
  |  |   40|    846|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|  1.00k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22pentaxWhiteBalanceModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    626|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    626|  static_assert(N > 0, "Passed zero length printTag");
  195|    626|  return printTag<N, array>(os, value.toInt64(), data);
  196|    626|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22pentaxWhiteBalanceModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    626|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    626|  static_assert(N > 0, "Passed zero length printTag");
  183|    626|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 348, False: 278]
  ------------------
  184|    348|    return os << _(td->label_);
  ------------------
  |  |   40|    348|#define _(String) (String)
  ------------------
  185|    278|  return os << "(" << value << ")";
  186|    626|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    752|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    752|  static_assert(N > 0, "Passed zero length printTag");
  195|    752|  return printTag<N, array>(os, value.toInt64(), data);
  196|    752|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    752|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    752|  static_assert(N > 0, "Passed zero length printTag");
  183|    752|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 638, False: 114]
  ------------------
  184|    638|    return os << _(td->label_);
  ------------------
  |  |   40|    638|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    752|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxContrastEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxContrastEEEERNSt3__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: 312, False: 176]
  ------------------
  184|    312|    return os << _(td->label_);
  ------------------
  |  |   40|    312|#define _(String) (String)
  ------------------
  185|    176|  return os << "(" << value << ")";
  186|    488|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    690|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    690|  static_assert(N > 0, "Passed zero length printTag");
  195|    690|  return printTag<N, array>(os, value.toInt64(), data);
  196|    690|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    690|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    690|  static_assert(N > 0, "Passed zero length printTag");
  183|    690|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 536, False: 154]
  ------------------
  184|    536|    return os << _(td->label_);
  ------------------
  |  |   40|    536|#define _(String) (String)
  ------------------
  185|    154|  return os << "(" << value << ")";
  186|    690|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLocationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    218|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    218|  static_assert(N > 0, "Passed zero length printTag");
  195|    218|  return printTag<N, array>(os, value.toInt64(), data);
  196|    218|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLocationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    218|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    218|  static_assert(N > 0, "Passed zero length printTag");
  183|    218|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 132, False: 86]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    218|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12pentaxCitiesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.23k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.23k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.23k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.23k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12pentaxCitiesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.23k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.23k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.23k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.50k, False: 728]
  ------------------
  184|  1.50k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.50k|#define _(String) (String)
  ------------------
  185|    728|  return os << "(" << value << ")";
  186|  2.23k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxYesNoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    150|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    150|  static_assert(N > 0, "Passed zero length printTag");
  195|    150|  return printTag<N, array>(os, value.toInt64(), data);
  196|    150|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxYesNoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    150|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    150|  static_assert(N > 0, "Passed zero length printTag");
  183|    150|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 72, False: 78]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    150|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    242|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    242|  static_assert(N > 0, "Passed zero length printTag");
  195|    242|  return printTag<N, array>(os, value.toInt64(), data);
  196|    242|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxColorSpaceEEEERNSt3__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: 176, False: 66]
  ------------------
  184|    176|    return os << _(td->label_);
  ------------------
  |  |   40|    176|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    242|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxOffOnEEEERNSt3__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_L11pentaxOffOnEEEERNSt3__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: 96, False: 90]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    186|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxImageToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    860|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    860|  static_assert(N > 0, "Passed zero length printTag");
  195|    860|  return printTag<N, array>(os, value.toInt64(), data);
  196|    860|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxImageToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    860|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    860|  static_assert(N > 0, "Passed zero length printTag");
  183|    860|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 692, False: 168]
  ------------------
  184|    692|    return os << _(td->label_);
  ------------------
  |  |   40|    692|#define _(String) (String)
  ------------------
  185|    168|  return os << "(" << value << ")";
  186|    860|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxHighISONoiseReductionEEEERNSt3__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|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxHighISONoiseReductionEEEERNSt3__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: 374, False: 196]
  ------------------
  184|    374|    return os << _(td->label_);
  ------------------
  |  |   40|    374|#define _(String) (String)
  ------------------
  185|    196|  return os << "(" << value << ")";
  186|    570|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16samsung2LensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.22k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.22k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.22k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.22k|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16samsung2LensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.22k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.22k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.22k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.82k, False: 402]
  ------------------
  184|  1.82k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.82k|#define _(String) (String)
  ------------------
  185|    402|  return os << "(" << value << ")";
  186|  2.22k|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2ColorSpaceEEEERNSt3__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|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2ColorSpaceEEEERNSt3__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: 102, False: 34]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    136|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2SmartRangeEEEERNSt3__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|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2SmartRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     48|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     48|  static_assert(N > 0, "Passed zero length printTag");
  183|     48|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 18]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     48|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13samsungPwModeEEEERNSt3__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|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13samsungPwModeEEEERNSt3__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: 30, False: 34]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     64|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyHDRStdPart1EEEERNSt3__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: 316, False: 24]
  ------------------
  184|    316|    return os << _(td->label_);
  ------------------
  |  |   40|    316|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|    340|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyHDRStdPart2EEEERNSt3__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: 162, False: 178]
  ------------------
  184|    162|    return os << _(td->label_);
  ------------------
  |  |   40|    162|#define _(String) (String)
  ------------------
  185|    178|  return os << "(" << value << ")";
  186|    340|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    720|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    720|  static_assert(N > 0, "Passed zero length printTag");
  183|    720|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 291, False: 429]
  ------------------
  184|    291|    return os << _(td->label_);
  ------------------
  |  |   40|    291|#define _(String) (String)
  ------------------
  185|    429|  return os << "(" << value << ")";
  186|    720|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    659|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    659|  static_assert(N > 0, "Passed zero length printTag");
  183|    659|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 508, False: 151]
  ------------------
  184|    508|    return os << _(td->label_);
  ------------------
  |  |   40|    508|#define _(String) (String)
  ------------------
  185|    151|  return os << "(" << value << ")";
  186|    659|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.07k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.07k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.07k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 812, False: 265]
  ------------------
  184|    812|    return os << _(td->label_);
  ------------------
  |  |   40|    812|#define _(String) (String)
  ------------------
  185|    265|  return os << "(" << value << ")";
  186|  1.07k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.45k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.45k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.45k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.04k, False: 410]
  ------------------
  184|  1.04k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.04k|#define _(String) (String)
  ------------------
  185|    410|  return os << "(" << value << ")";
  186|  1.45k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet1EEEERNSt3__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: 873, False: 195]
  ------------------
  184|    873|    return os << _(td->label_);
  ------------------
  |  |   40|    873|#define _(String) (String)
  ------------------
  185|    195|  return os << "(" << value << ")";
  186|  1.06k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    695|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    695|  static_assert(N > 0, "Passed zero length printTag");
  195|    695|  return printTag<N, array>(os, value.toInt64(), data);
  196|    695|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    695|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    695|  static_assert(N > 0, "Passed zero length printTag");
  183|    695|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 447, False: 248]
  ------------------
  184|    447|    return os << _(td->label_);
  ------------------
  |  |   40|    447|#define _(String) (String)
  ------------------
  185|    248|  return os << "(" << value << ")";
  186|    695|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    377|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    377|  static_assert(N > 0, "Passed zero length printTag");
  195|    377|  return printTag<N, array>(os, value.toInt64(), data);
  196|    377|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    377|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    377|  static_assert(N > 0, "Passed zero length printTag");
  183|    377|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 160, False: 217]
  ------------------
  184|    160|    return os << _(td->label_);
  ------------------
  |  |   40|    160|#define _(String) (String)
  ------------------
  185|    217|  return os << "(" << value << ")";
  186|    377|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet4EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    323|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    323|  static_assert(N > 0, "Passed zero length printTag");
  183|    323|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 217, False: 106]
  ------------------
  184|    217|    return os << _(td->label_);
  ------------------
  |  |   40|    217|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    323|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet5EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    866|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    866|  static_assert(N > 0, "Passed zero length printTag");
  183|    866|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 582, False: 284]
  ------------------
  184|    582|    return os << _(td->label_);
  ------------------
  |  |   40|    582|#define _(String) (String)
  ------------------
  185|    284|  return os << "(" << value << ")";
  186|    866|}
sonymn_int.cpp:_ZN5Exiv28Internal20printTagBitlistAllLEILm19ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20sonyAFPointsUsedSet1EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  238|    190|std::ostream& printTagBitlistAllLE(std::ostream& os, const Value& value, const ExifData*) {
  239|    190|  static_assert(N > 0, "Passed zero length TagDetailsBitlistSorted");
  240|       |
  241|    190|  uint32_t vN = 0;
  242|    190|  uint32_t currentVNBit = 0;
  243|    190|  size_t lastArrayPos = 0;  // Prevents unneeded searching of array
  244|    190|  constexpr auto maxArrayBit = (array + N - 1)->first;
  245|    190|  auto allVNZero = true;
  246|    190|  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.00k, False: 190]
  ------------------
  250|  4.00k|    vN = value.toUint32(i);
  251|  4.00k|    if (vN == 0) {  // If all bits zero, then nothing to process
  ------------------
  |  Branch (251:9): [True: 1.29k, False: 2.71k]
  ------------------
  252|  1.29k|      currentVNBit += 8;
  253|  1.29k|      continue;
  254|  1.29k|    }
  255|  2.71k|    allVNZero = false;
  256|       |    // Cycle through every bit in that byte
  257|  24.3k|    for (auto j = 0; j < 8; j++, currentVNBit++) {
  ------------------
  |  Branch (257:22): [True: 21.6k, False: 2.71k]
  ------------------
  258|  21.6k|      if ((vN >> j & 0x01) == 0) {  // If bit not set, then nothing to process
  ------------------
  |  Branch (258:11): [True: 9.72k, False: 11.9k]
  ------------------
  259|  9.72k|        continue;
  260|  9.72k|      }
  261|  11.9k|      if (currentVNBit > maxArrayBit) {  // If beyond array values, output unknown index
  ------------------
  |  Branch (261:11): [True: 10.7k, False: 1.25k]
  ------------------
  262|  10.7k|        os << ", [" << currentVNBit << "]";
  263|  10.7k|        continue;
  264|  10.7k|      }
  265|       |
  266|       |      // Check to see if the numbered bit is found in the array
  267|  2.85k|      for (size_t k = lastArrayPos; k < N; ++k) {
  ------------------
  |  Branch (267:37): [True: 2.85k, False: 0]
  ------------------
  268|  2.85k|        auto [bit, label] = *(array + k);
  269|       |
  270|  2.85k|        if (currentVNBit == bit) {
  ------------------
  |  Branch (270:13): [True: 1.25k, False: 1.59k]
  ------------------
  271|  1.25k|          lastArrayPos = k;
  272|  1.25k|          if (useSep) {
  ------------------
  |  Branch (272:15): [True: 1.13k, False: 114]
  ------------------
  273|  1.13k|            os << ", " << _(label);
  ------------------
  |  |   40|  1.13k|#define _(String) (String)
  ------------------
  274|  1.13k|          } else {
  275|    114|            os << _(label);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  276|    114|            useSep = true;
  277|    114|          }
  278|  1.25k|          break;
  279|  1.25k|        }
  280|  2.85k|      }
  281|  1.25k|    }
  282|  2.71k|  }
  283|    190|  if (allVNZero)
  ------------------
  |  Branch (283:7): [True: 71, False: 119]
  ------------------
  284|     71|    os << _("None");
  ------------------
  |  |   40|     71|#define _(String) (String)
  ------------------
  285|    190|  return os;
  286|    190|}
sonymn_int.cpp:_ZN5Exiv28Internal20printTagBitlistAllLEILm80ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20sonyAFPointsUsedSet2EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  238|    188|std::ostream& printTagBitlistAllLE(std::ostream& os, const Value& value, const ExifData*) {
  239|    188|  static_assert(N > 0, "Passed zero length TagDetailsBitlistSorted");
  240|       |
  241|    188|  uint32_t vN = 0;
  242|    188|  uint32_t currentVNBit = 0;
  243|    188|  size_t lastArrayPos = 0;  // Prevents unneeded searching of array
  244|    188|  constexpr auto maxArrayBit = (array + N - 1)->first;
  245|    188|  auto allVNZero = true;
  246|    188|  auto useSep = false;
  247|       |
  248|       |  // For each value
  249|  5.93k|  for (size_t i = 0; i < value.count(); i++) {
  ------------------
  |  Branch (249:22): [True: 5.74k, False: 188]
  ------------------
  250|  5.74k|    vN = value.toUint32(i);
  251|  5.74k|    if (vN == 0) {  // If all bits zero, then nothing to process
  ------------------
  |  Branch (251:9): [True: 1.82k, False: 3.92k]
  ------------------
  252|  1.82k|      currentVNBit += 8;
  253|  1.82k|      continue;
  254|  1.82k|    }
  255|  3.92k|    allVNZero = false;
  256|       |    // Cycle through every bit in that byte
  257|  35.3k|    for (auto j = 0; j < 8; j++, currentVNBit++) {
  ------------------
  |  Branch (257:22): [True: 31.3k, False: 3.92k]
  ------------------
  258|  31.3k|      if ((vN >> j & 0x01) == 0) {  // If bit not set, then nothing to process
  ------------------
  |  Branch (258:11): [True: 16.4k, False: 14.9k]
  ------------------
  259|  16.4k|        continue;
  260|  16.4k|      }
  261|  14.9k|      if (currentVNBit > maxArrayBit) {  // If beyond array values, output unknown index
  ------------------
  |  Branch (261:11): [True: 6.96k, False: 7.94k]
  ------------------
  262|  6.96k|        os << ", [" << currentVNBit << "]";
  263|  6.96k|        continue;
  264|  6.96k|      }
  265|       |
  266|       |      // Check to see if the numbered bit is found in the array
  267|  24.5k|      for (size_t k = lastArrayPos; k < N; ++k) {
  ------------------
  |  Branch (267:37): [True: 22.5k, False: 1.95k]
  ------------------
  268|  22.5k|        auto [bit, label] = *(array + k);
  269|       |
  270|  22.5k|        if (currentVNBit == bit) {
  ------------------
  |  Branch (270:13): [True: 5.99k, False: 16.5k]
  ------------------
  271|  5.99k|          lastArrayPos = k;
  272|  5.99k|          if (useSep) {
  ------------------
  |  Branch (272:15): [True: 5.84k, False: 150]
  ------------------
  273|  5.84k|            os << ", " << _(label);
  ------------------
  |  |   40|  5.84k|#define _(String) (String)
  ------------------
  274|  5.84k|          } else {
  275|    150|            os << _(label);
  ------------------
  |  |   40|    150|#define _(String) (String)
  ------------------
  276|    150|            useSep = true;
  277|    150|          }
  278|  5.99k|          break;
  279|  5.99k|        }
  280|  22.5k|      }
  281|  7.94k|    }
  282|  3.92k|  }
  283|    188|  if (allVNZero)
  ------------------
  |  Branch (283:7): [True: 38, False: 150]
  ------------------
  284|     38|    os << _("None");
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  285|    188|  return os;
  286|    188|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFTrackingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    711|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    711|  static_assert(N > 0, "Passed zero length printTag");
  183|    711|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 602, False: 109]
  ------------------
  184|    602|    return os << _(td->label_);
  ------------------
  |  |   40|    602|#define _(String) (String)
  ------------------
  185|    109|  return os << "(" << value << ")";
  186|    711|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    121|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    121|  static_assert(N > 0, "Passed zero length printTag");
  183|    121|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 73, False: 48]
  ------------------
  184|     73|    return os << _(td->label_);
  ------------------
  |  |   40|     73|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|    121|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFModeSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    218|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    218|  static_assert(N > 0, "Passed zero length printTag");
  183|    218|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 188, False: 30]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    218|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFModeSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    119|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    119|  static_assert(N > 0, "Passed zero length printTag");
  183|    119|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 93, False: 26]
  ------------------
  184|     93|    return os << _(td->label_);
  ------------------
  |  |   40|     93|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|    119|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFocusMode3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     46|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     46|  static_assert(N > 0, "Passed zero length printTag");
  183|     46|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 8]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|     46|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyHighISONoiseReduction2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    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: 136, False: 98]
  ------------------
  184|    136|    return os << _(td->label_);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    234|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.35k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.35k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.35k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.35k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.35k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.35k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.35k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.17k, False: 180]
  ------------------
  184|  1.17k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.17k|#define _(String) (String)
  ------------------
  185|    180|  return os << "(" << value << ")";
  186|  1.35k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    704|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    704|  static_assert(N > 0, "Passed zero length printTag");
  195|    704|  return printTag<N, array>(os, value.toInt64(), data);
  196|    704|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    704|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    704|  static_assert(N > 0, "Passed zero length printTag");
  183|    704|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 516, False: 188]
  ------------------
  184|    516|    return os << _(td->label_);
  ------------------
  |  |   40|    516|#define _(String) (String)
  ------------------
  185|    188|  return os << "(" << value << ")";
  186|    704|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLongExposureNoiseReductionEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLongExposureNoiseReductionEEEERNSt3__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: 272, False: 172]
  ------------------
  184|    272|    return os << _(td->label_);
  ------------------
  |  |   40|    272|#define _(String) (String)
  ------------------
  185|    172|  return os << "(" << value << ")";
  186|    444|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyHighISONoiseReductionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    634|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    634|  static_assert(N > 0, "Passed zero length printTag");
  195|    634|  return printTag<N, array>(os, value.toInt64(), data);
  196|    634|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyHighISONoiseReductionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    634|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    634|  static_assert(N > 0, "Passed zero length printTag");
  183|    634|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 422, False: 212]
  ------------------
  184|    422|    return os << _(td->label_);
  ------------------
  |  |   40|    422|#define _(String) (String)
  ------------------
  185|    212|  return os << "(" << value << ")";
  186|    634|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    202|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    202|  static_assert(N > 0, "Passed zero length printTag");
  195|    202|  return printTag<N, array>(os, value.toInt64(), data);
  196|    202|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA1EEEERNSt3__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: 132, False: 70]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    202|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm36ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyPictureEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.44k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.44k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.44k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.44k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm36ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyPictureEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.44k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.44k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.44k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.28k, False: 164]
  ------------------
  184|  1.28k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.28k|#define _(String) (String)
  ------------------
  185|    164|  return os << "(" << value << ")";
  186|  1.44k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySoftSkinEffectEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySoftSkinEffectEEEERNSt3__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: 100, False: 92]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    192|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyVignettingCorrectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    158|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    158|  static_assert(N > 0, "Passed zero length printTag");
  195|    158|  return printTag<N, array>(os, value.toInt64(), data);
  196|    158|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyVignettingCorrectionEEEERNSt3__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: 72, False: 86]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    158|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLateralChromaticAberrationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    310|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    310|  static_assert(N > 0, "Passed zero length printTag");
  195|    310|  return printTag<N, array>(os, value.toInt64(), data);
  196|    310|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLateralChromaticAberrationEEEERNSt3__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: 222, False: 88]
  ------------------
  184|    222|    return os << _(td->label_);
  ------------------
  |  |   40|    222|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    310|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyDistortionCorrectionSettingsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    210|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    210|  static_assert(N > 0, "Passed zero length printTag");
  195|    210|  return printTag<N, array>(os, value.toInt64(), data);
  196|    210|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyDistortionCorrectionSettingsEEEERNSt3__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: 132, False: 78]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    210|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyNoYesEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyNoYesEEEERNSt3__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: 160, False: 38]
  ------------------
  184|    160|    return os << _(td->label_);
  ------------------
  |  |   40|    160|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    198|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyFlashActionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    288|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    288|  static_assert(N > 0, "Passed zero length printTag");
  195|    288|  return printTag<N, array>(os, value.toInt64(), data);
  196|    288|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyFlashActionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    288|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    288|  static_assert(N > 0, "Passed zero length printTag");
  183|    288|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 192, False: 96]
  ------------------
  184|    192|    return os << _(td->label_);
  ------------------
  |  |   40|    192|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    288|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyMultiFrameNREffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     82|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     82|  static_assert(N > 0, "Passed zero length printTag");
  195|     82|  return printTag<N, array>(os, value.toInt64(), data);
  196|     82|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyMultiFrameNREffectEEEERNSt3__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: 28, False: 54]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|     82|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString2ILm5ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L25sonyVariableLowPassFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  128|    894|std::ostream& printTagString2(std::ostream& os, const Value& value, const ExifData* data) {
  129|    894|  static_assert(N > 0, "Passed zero length printTagString2");
  130|    894|  if (value.count() < 2)
  ------------------
  |  Branch (130:7): [True: 28, False: 866]
  ------------------
  131|     28|    return os << "(" << value << ")";
  132|    866|  std::string temp = value.toString(0) + " " + value.toString(1);
  133|    866|  return printTagString<N, array>(os, temp, data);
  134|    894|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm5ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L25sonyVariableLowPassFilterEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    866|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    866|  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|    866|  } else {
  114|    866|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 386, False: 480]
  ------------------
  115|    386|      return os << _(td->label_);
  ------------------
  |  |   40|    386|#define _(String) (String)
  ------------------
  116|    480|    return os << "(" << value << ")";
  117|    866|  }
  118|    866|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyRAWFileTypeEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyRAWFileTypeEEEERNSt3__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: 292, False: 132]
  ------------------
  184|    292|    return os << _(td->label_);
  ------------------
  |  |   40|    292|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    424|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyPrioritySetInAWBEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    328|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    328|  static_assert(N > 0, "Passed zero length printTag");
  195|    328|  return printTag<N, array>(os, value.toInt64(), data);
  196|    328|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyPrioritySetInAWBEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    328|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    328|  static_assert(N > 0, "Passed zero length printTag");
  183|    328|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 274, False: 54]
  ------------------
  184|    274|    return os << _(td->label_);
  ------------------
  |  |   40|    274|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    328|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyMeteringMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    188|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    188|  static_assert(N > 0, "Passed zero length printTag");
  195|    188|  return printTag<N, array>(os, value.toInt64(), data);
  196|    188|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyMeteringMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    188|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    188|  static_assert(N > 0, "Passed zero length printTag");
  183|    188|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 96]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    188|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString2ILm30ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L15sonyQuality2StdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  128|    536|std::ostream& printTagString2(std::ostream& os, const Value& value, const ExifData* data) {
  129|    536|  static_assert(N > 0, "Passed zero length printTagString2");
  130|    536|  if (value.count() < 2)
  ------------------
  |  Branch (130:7): [True: 54, False: 482]
  ------------------
  131|     54|    return os << "(" << value << ")";
  132|    482|  std::string temp = value.toString(0) + " " + value.toString(1);
  133|    482|  return printTagString<N, array>(os, temp, data);
  134|    536|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm30ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L15sonyQuality2StdEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    482|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    482|  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|    482|  } else {
  114|    482|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 84, False: 398]
  ------------------
  115|     84|      return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  116|    398|    return os << "(" << value << ")";
  117|    482|  }
  118|    482|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyJPEGHEIFSwitchEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyJPEGHEIFSwitchEEEERNSt3__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: 68, False: 92]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    160|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString4ILm16ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L14sonyFileFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  144|    514|std::ostream& printTagString4(std::ostream& os, const Value& value, const ExifData* data) {
  145|    514|  static_assert(N > 0, "Passed zero length printTagString4");
  146|    514|  if (value.count() < 4)
  ------------------
  |  Branch (146:7): [True: 86, False: 428]
  ------------------
  147|     86|    return os << "(" << value << ")";
  148|    428|  std::string temp = value.toString(0) + " " + value.toString(1) + " " + value.toString(2) + " " + value.toString(3);
  149|    428|  return printTagString<N, array>(os, temp, data);
  150|    514|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm16ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L14sonyFileFormatEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    428|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    428|  static_assert(N > 0, "Passed zero length printTagString");
  109|       |  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|    428|  } else {
  114|    428|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 110, False: 318]
  ------------------
  115|    110|      return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  116|    318|    return os << "(" << value << ")";
  117|    428|  }
  118|    428|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm115ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11sonyModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  9.61k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  9.61k|  static_assert(N > 0, "Passed zero length printTag");
  195|  9.61k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  9.61k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm115ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11sonyModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  9.61k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  9.61k|  static_assert(N > 0, "Passed zero length printTag");
  183|  9.61k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8.78k, False: 828]
  ------------------
  184|  8.78k|    return os << _(td->label_);
  ------------------
  |  |   40|  8.78k|#define _(String) (String)
  ------------------
  185|    828|  return os << "(" << value << ")";
  186|  9.61k|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm19ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L20sonyCreativeStyleStdEENS_5ValueEEERNSt3__113basic_ostreamIcNS7_11char_traitsIcEEEESC_RKT1_PKNS_8ExifDataE:
  107|    310|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    310|  static_assert(N > 0, "Passed zero length printTagString");
  109|    310|  if constexpr (std::is_same_v<T, Value>) {
  110|    310|    if (auto td = Exiv2::find(array, value.toString(0)))
  ------------------
  |  Branch (110:14): [True: 6, False: 304]
  ------------------
  111|      6|      return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  112|    304|    return os << "(" << value << ")";
  113|       |  } else {
  114|       |    if (auto td = Exiv2::find(array, value))
  115|       |      return os << _(td->label_);
  116|       |    return os << "(" << value << ")";
  117|       |  }
  118|    310|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb025EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    664|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    664|  static_assert(N > 0, "Passed zero length printTag");
  195|    664|  return printTag<N, array>(os, value.toInt64(), data);
  196|    664|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb025EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    664|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    664|  static_assert(N > 0, "Passed zero length printTag");
  183|    664|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 544, False: 120]
  ------------------
  184|    544|    return os << _(td->label_);
  ------------------
  |  |   40|    544|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    664|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA2EEEERNSt3__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_L12sonyOffOnNA2EEEERNSt3__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: 130, False: 216]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|    216|  return os << "(" << value << ")";
  186|    346|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm26ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.99k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.99k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.99k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.99k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm26ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.99k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.99k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.99k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.44k, False: 546]
  ------------------
  184|  2.44k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.44k|#define _(String) (String)
  ------------------
  185|    546|  return os << "(" << value << ")";
  186|  2.99k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyMacroEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyMacroEEEERNSt3__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: 240, False: 66]
  ------------------
  184|    240|    return os << _(td->label_);
  ------------------
  |  |   40|    240|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    306|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm31ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.55k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.55k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.55k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.55k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm31ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.55k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.55k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.55k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.44k, False: 1.11k]
  ------------------
  184|  3.44k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.44k|#define _(String) (String)
  ------------------
  185|  1.11k|  return os << "(" << value << ")";
  186|  4.55k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAFIlluminatorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    140|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    140|  static_assert(N > 0, "Passed zero length printTag");
  195|    140|  return printTag<N, array>(os, value.toInt64(), data);
  196|    140|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAFIlluminatorEEEERNSt3__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: 120, False: 20]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|    140|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyJPEGQualityEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyJPEGQualityEEEERNSt3__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: 176, False: 38]
  ------------------
  184|    176|    return os << _(td->label_);
  ------------------
  |  |   40|    176|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    214|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFlashLevelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    846|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    846|  static_assert(N > 0, "Passed zero length printTag");
  195|    846|  return printTag<N, array>(os, value.toInt64(), data);
  196|    846|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFlashLevelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    846|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    846|  static_assert(N > 0, "Passed zero length printTag");
  183|    846|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 664, False: 182]
  ------------------
  184|    664|    return os << _(td->label_);
  ------------------
  |  |   40|    664|#define _(String) (String)
  ------------------
  185|    182|  return os << "(" << value << ")";
  186|    846|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.15k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.15k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.15k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.15k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.15k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.15k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.15k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 726, False: 426]
  ------------------
  184|    726|    return os << _(td->label_);
  ------------------
  |  |   40|    726|#define _(String) (String)
  ------------------
  185|    426|  return os << "(" << value << ")";
  186|  1.15k|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagNoErrorILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySequenceNumberEENS_5ValueEEERNSt3__113basic_ostreamIcNS7_11char_traitsIcEEEESC_RKT1_PKNS_8ExifDataE:
  160|    150|std::ostream& printTagNoError(std::ostream& os, const T& value, const ExifData*) {
  161|    150|  static_assert(N > 0, "Passed zero length printTagNoError");
  162|    150|  if constexpr (std::is_same_v<T, Value>) {
  163|    150|    if (auto td = Exiv2::find(array, value.toInt64()))
  ------------------
  |  Branch (163:14): [True: 78, False: 72]
  ------------------
  164|     78|      return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  165|     72|    return os << value;
  166|       |  } else {
  167|       |    if (auto td = Exiv2::find(array, value))
  168|       |      return os << _(td->label_);
  169|       |    return os << value;
  170|       |  }
  171|    150|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyAntiBlurEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyAntiBlurEEEERNSt3__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: 110, False: 220]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    220|  return os << "(" << value << ")";
  186|    330|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb04fEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    492|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    492|  static_assert(N > 0, "Passed zero length printTag");
  195|    492|  return printTag<N, array>(os, value.toInt64(), data);
  196|    492|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb04fEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    492|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    492|  static_assert(N > 0, "Passed zero length printTag");
  183|    492|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 294, False: 198]
  ------------------
  184|    294|    return os << _(td->label_);
  ------------------
  |  |   40|    294|#define _(String) (String)
  ------------------
  185|    198|  return os << "(" << value << ")";
  186|    492|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyIntelligentAutoEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyIntelligentAutoEEEERNSt3__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: 62, False: 52]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    114|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyWhiteBalance2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    866|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    866|  static_assert(N > 0, "Passed zero length printTag");
  195|    866|  return printTag<N, array>(os, value.toInt64(), data);
  196|    866|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyWhiteBalance2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    866|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    866|  static_assert(N > 0, "Passed zero length printTag");
  183|    866|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 756, False: 110]
  ------------------
  184|    756|    return os << _(td->label_);
  ------------------
  |  |   40|    756|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    866|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyDriveModeStdEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyDriveModeStdEEEERNSt3__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: 90, False: 360]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    360|  return os << "(" << value << ")";
  186|    450|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyCSFocusModeEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyCSFocusModeEEEERNSt3__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: 110, False: 314]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    314|  return os << "(" << value << ")";
  186|    424|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyMeteringModeEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyMeteringModeEEEERNSt3__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: 28, False: 396]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    396|  return os << "(" << value << ")";
  186|    424|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyCreativeStyleEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyCreativeStyleEEEERNSt3__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: 90, False: 334]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    334|  return os << "(" << value << ")";
  186|    424|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    344|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    344|  static_assert(N > 0, "Passed zero length printTag");
  195|    344|  return printTag<N, array>(os, value.toInt64(), data);
  196|    344|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFlashModeEEEERNSt3__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: 84, False: 260]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|    260|  return os << "(" << value << ")";
  186|    344|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyAFIlluminatorCSEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyAFIlluminatorCSEEEERNSt3__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: 102, False: 236]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    236|  return os << "(" << value << ")";
  186|    338|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyImageStyleEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyImageStyleEEEERNSt3__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: 110, False: 228]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    228|  return os << "(" << value << ")";
  186|    338|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    344|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    344|  static_assert(N > 0, "Passed zero length printTag");
  195|    344|  return printTag<N, array>(os, value.toInt64(), data);
  196|    344|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyExposureProgramEEEERNSt3__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: 142, False: 202]
  ------------------
  184|    142|    return os << _(td->label_);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  185|    202|  return os << "(" << value << ")";
  186|    344|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyImageSizeEEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyImageSizeEEEERNSt3__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: 24, False: 244]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|    244|  return os << "(" << value << ")";
  186|    268|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyAspectRatioEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyAspectRatioEEEERNSt3__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: 20, False: 242]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|    242|  return os << "(" << value << ")";
  186|    262|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyExposureLevelIncrementsEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyExposureLevelIncrementsEEEERNSt3__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: 12, False: 250]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|    250|  return os << "(" << value << ")";
  186|    262|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sony2FpAFAreaModeEEEERNSt3__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:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sony2FpAFAreaModeEEEERNSt3__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: 190, False: 72]
  ------------------
  184|    190|    return os << _(td->label_);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    262|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyExposureProgram3EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyExposureProgram3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     70|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     70|  static_assert(N > 0, "Passed zero length printTag");
  183|     70|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 50]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|     70|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyReleaseMode2EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyReleaseMode2EEEERNSt3__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: 130, False: 120]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    250|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength1EEEERNSt3__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|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength1EEEERNSt3__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: 150, False: 92]
  ------------------
  184|    150|    return os << _(td->label_);
  ------------------
  |  |   40|    150|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    242|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    230|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    230|  static_assert(N > 0, "Passed zero length printTag");
  195|    230|  return printTag<N, array>(os, value.toInt64(), data);
  196|    230|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    230|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    230|  static_assert(N > 0, "Passed zero length printTag");
  183|    230|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 120, False: 110]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    230|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyMisc3cCameraOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    230|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    230|  static_assert(N > 0, "Passed zero length printTag");
  195|    230|  return printTag<N, array>(os, value.toInt64(), data);
  196|    230|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyMisc3cCameraOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    230|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    230|  static_assert(N > 0, "Passed zero length printTag");
  183|    230|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 176]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|    176|  return os << "(" << value << ")";
  186|    230|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyMisc3cQuality2aEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|      4|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|      4|  static_assert(N > 0, "Passed zero length printTag");
  183|      4|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3, False: 1]
  ------------------
  184|      3|    return os << _(td->label_);
  ------------------
  |  |   40|      3|#define _(String) (String)
  ------------------
  185|      1|  return os << "(" << value << ")";
  186|      4|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyMisc3cQuality2bEEEERNSt3__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: 33, False: 41]
  ------------------
  184|     33|    return os << _(td->label_);
  ------------------
  |  |   40|     33|#define _(String) (String)
  ------------------
  185|     41|  return os << "(" << value << ")";
  186|     74|}

_ZN5Exiv28TgaImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEERKNS_15ImageCtorParamsE:
   22|      2|    Image(ImageType::tga, mdNone, std::move(io), params) {
   23|      2|}
_ZN5Exiv214newTgaInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEERKNS_15ImageCtorParamsE:
   96|      2|Image::UniquePtr newTgaInstance(BasicIo::UniquePtr io, const ImageCtorParams& params) {
   97|      2|  auto image = std::make_unique<TgaImage>(std::move(io), params);
   98|      2|  if (!image->good()) {
  ------------------
  |  Branch (98:7): [True: 2, False: 0]
  ------------------
   99|      2|    return nullptr;
  100|      2|  }
  101|      0|  return image;
  102|      2|}
_ZN5Exiv29isTgaTypeERNS_7BasicIoEb:
  104|  10.5k|bool isTgaType(BasicIo& iIo, bool /*advance*/) {
  105|       |  // not all TARGA files have a signature string, so first just try to match the file name extension
  106|  10.5k|  const std::string& path = iIo.path();
  107|  10.5k|  if (path.ends_with(".tga") || path.ends_with(".TGA")) {
  ------------------
  |  Branch (107:7): [True: 0, False: 10.5k]
  |  Branch (107:33): [True: 0, False: 10.5k]
  ------------------
  108|      0|    return true;
  109|      0|  }
  110|  10.5k|  byte buf[26];
  111|  10.5k|  const size_t curPos = iIo.tell();
  112|  10.5k|  if (curPos < 26)
  ------------------
  |  Branch (112:7): [True: 10.4k, False: 98]
  ------------------
  113|  10.4k|    return false;
  114|       |
  115|     98|  iIo.seek(-26, BasicIo::end);
  116|     98|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (116:7): [True: 0, False: 98]
  |  Branch (116:22): [True: 0, False: 98]
  ------------------
  117|      0|    return false;
  118|      0|  }
  119|     98|  iIo.read(buf, sizeof(buf));
  120|     98|  if (iIo.error()) {
  ------------------
  |  Branch (120:7): [True: 0, False: 98]
  ------------------
  121|      0|    return false;
  122|      0|  }
  123|       |  // some TARGA files, but not all, have a signature string at the end
  124|     98|  bool matched = (memcmp(buf + 8, "TRUEVISION-XFILE", 16) == 0);
  125|     98|  iIo.seek(curPos, BasicIo::beg);
  126|     98|  return matched;
  127|     98|}

_ZNK5Exiv28Internal15TiffMappingInfoeqERKNS1_3KeyE:
   41|   117M|bool TiffMappingInfo::operator==(const TiffMappingInfo::Key& key) const {
   42|   117M|  return (make_ == "*" || key.m_.starts_with(make_)) && (Tag::all == extendedTag_ || key.e_ == extendedTag_) &&
  ------------------
  |  Branch (42:11): [True: 117M, False: 0]
  |  Branch (42:27): [True: 0, False: 0]
  |  Branch (42:58): [True: 23.5M, False: 93.9M]
  |  Branch (42:86): [True: 22.8k, False: 93.9M]
  ------------------
   43|  23.5M|         key.g_ == group_;
  ------------------
  |  Branch (43:10): [True: 5.73k, False: 23.5M]
  ------------------
   44|   117M|}
_ZN5Exiv28Internal9IoWrapperC2ERNS_7BasicIoEPKhmPNS0_12OffsetWriterE:
   47|  12.4k|    io_(io), pHeader_(pHeader), size_(size), pow_(pow) {
   48|  12.4k|  if (!pHeader_ || size_ == 0)
  ------------------
  |  Branch (48:7): [True: 4.63k, False: 7.82k]
  |  Branch (48:20): [True: 0, False: 7.82k]
  ------------------
   49|  4.63k|    wroteHeader_ = true;
   50|  12.4k|}
_ZN5Exiv28Internal9IoWrapper5writeEPKhm:
   52|  3.51M|size_t IoWrapper::write(const byte* pData, size_t wcount) {
   53|  3.51M|  if (!wroteHeader_ && wcount > 0) {
  ------------------
  |  Branch (53:7): [True: 7.79k, False: 3.50M]
  |  Branch (53:24): [True: 7.79k, False: 0]
  ------------------
   54|  7.79k|    io_.write(pHeader_, size_);
   55|  7.79k|    wroteHeader_ = true;
   56|  7.79k|  }
   57|  3.51M|  return io_.write(pData, wcount);
   58|  3.51M|}
_ZN5Exiv28Internal9IoWrapper4putbEh:
   60|  19.4k|int IoWrapper::putb(byte data) {
   61|  19.4k|  if (!wroteHeader_) {
  ------------------
  |  Branch (61:7): [True: 0, False: 19.4k]
  ------------------
   62|      0|    io_.write(pHeader_, size_);
   63|      0|    wroteHeader_ = true;
   64|      0|  }
   65|  19.4k|  return io_.putb(data);
   66|  19.4k|}
_ZN5Exiv28Internal13TiffDirectoryC2EtNS_5IfdIdEb:
   76|   145k|TiffDirectory::TiffDirectory(uint16_t tag, IfdId group, bool hasNext) : TiffComponent(tag, group), hasNext_(hasNext) {
   77|   145k|}
_ZN5Exiv28Internal10TiffSubIfdC2EtNS_5IfdIdES2_:
   80|  45.8k|    TiffEntryBase(tag, group, ttUnsignedLong), newGroup_(newGroup) {
   81|  45.8k|}
_ZN5Exiv28Internal16TiffIfdMakernoteC2EtNS_5IfdIdES2_NSt3__110unique_ptrINS0_8MnHeaderENS3_14default_deleteIS5_EEEEb:
   85|  36.0k|    TiffComponent(tag, group), pHeader_(std::move(pHeader)), ifd_(tag, mnGroup, hasNext) {
   86|  36.0k|}
_ZN5Exiv28Internal16TiffIfdMakernoteD2Ev:
   88|  36.0k|TiffIfdMakernote::~TiffIfdMakernote() = default;
_ZN5Exiv28Internal15TiffBinaryArrayC2EtNS_5IfdIdERKNS0_8ArrayCfgEPKNS0_8ArrayDefEm:
   92|  58.6k|    TiffEntryBase(tag, group, arrayCfg.elTiffType_), arrayCfg_(&arrayCfg), arrayDef_(arrayDef), defSize_(defSize) {
   93|  58.6k|}
_ZN5Exiv28Internal15TiffBinaryArrayC2EtNS_5IfdIdEPKNS0_8ArraySetEmPFitPKhmPNS0_13TiffComponentEE:
   97|  4.24k|    TiffEntryBase(tag, group),  // Todo: Does it make a difference that there is no type?
   98|  4.24k|    cfgSelFct_(cfgSelFct),
   99|  4.24k|    arraySet_(arraySet),
  100|  4.24k|    setSize_(setSize) {
  101|       |  // We'll figure out the correct cfg later
  102|  4.24k|}
_ZN5Exiv28Internal13TiffEntryBaseC2EtNS_5IfdIdENS0_8TiffTypeE:
  118|  26.6M|    TiffComponent(tag, group), tiffType_(tiffType) {
  119|  26.6M|}
_ZN5Exiv28Internal13TiffEntryBaseD2Ev:
  121|  26.6M|TiffEntryBase::~TiffEntryBase() = default;
_ZN5Exiv28Internal17TiffDataEntryBaseC2EtNS_5IfdIdEtS2_:
  142|  56.2k|    TiffEntryBase(tag, group), szTag_(szTag), szGroup_(szGroup) {
  143|  56.2k|}
_ZN5Exiv28Internal13TiffSizeEntryC2EtNS_5IfdIdEtS2_:
  148|  73.4k|    TiffEntryBase(tag, group), dtTag_(dtTag), dtGroup_(dtGroup) {
  149|  73.4k|}
_ZN5Exiv28Internal11TiffMnEntryC2EtNS_5IfdIdES2_:
  152|  49.6k|    TiffEntryBase(tag, group, ttUndefined), mnGroup_(mnGroup) {
  153|  49.6k|}
_ZN5Exiv28Internal11TiffMnEntryD2Ev:
  155|  49.6k|TiffMnEntry::~TiffMnEntry() = default;
_ZNK5Exiv28Internal13TiffEntryBase3idxEv:
  205|  29.3M|int TiffEntryBase::idx() const {
  206|  29.3M|  return idx_;
  207|  29.3M|}
_ZN5Exiv28Internal13TiffEntryBase7setDataENSt3__110shared_ptrINS_7DataBufEEE:
  209|   140k|void TiffEntryBase::setData(std::shared_ptr<DataBuf> buf) {
  210|   140k|  storage_ = std::move(buf);
  211|   140k|  pData_ = storage_->data();
  212|   140k|  size_ = storage_->size();
  213|   140k|}
_ZN5Exiv28Internal13TiffEntryBase7setDataEPhmNSt3__110shared_ptrINS_7DataBufEEE:
  215|  21.1M|void TiffEntryBase::setData(byte* pData, size_t size, std::shared_ptr<DataBuf> storage) {
  216|  21.1M|  pData_ = pData;
  217|  21.1M|  size_ = size;
  218|  21.1M|  storage_ = std::move(storage);
  219|  21.1M|  if (!pData_)
  ------------------
  |  Branch (219:7): [True: 0, False: 21.1M]
  ------------------
  220|      0|    size_ = 0;
  221|  21.1M|}
_ZN5Exiv28Internal13TiffEntryBase11updateValueENSt3__110unique_ptrINS_5ValueENS2_14default_deleteIS4_EEEENS_9ByteOrderE:
  223|  2.31M|void TiffEntryBase::updateValue(Value::UniquePtr value, ByteOrder byteOrder) {
  224|  2.31M|  if (!value)
  ------------------
  |  Branch (224:7): [True: 0, False: 2.31M]
  ------------------
  225|      0|    return;
  226|  2.31M|  if (size_t newSize = value->size(); newSize > size_) {
  ------------------
  |  Branch (226:39): [True: 139k, False: 2.18M]
  ------------------
  227|   139k|    auto d = std::make_shared<DataBuf>(newSize);
  228|   139k|    setData(std::move(d));
  229|   139k|  }
  230|  2.31M|  if (pData_) {
  ------------------
  |  Branch (230:7): [True: 144k, False: 2.17M]
  ------------------
  231|   144k|    memset(pData_, 0x0, size_);
  232|   144k|  }
  233|  2.31M|  size_ = value->copy(pData_, byteOrder);
  234|  2.31M|  setValue(std::move(value));
  235|  2.31M|}
_ZN5Exiv28Internal13TiffEntryBase8setValueENSt3__110unique_ptrINS_5ValueENS2_14default_deleteIS4_EEEE:
  237|  23.5M|void TiffEntryBase::setValue(Value::UniquePtr value) {
  238|  23.5M|  if (!value)
  ------------------
  |  Branch (238:7): [True: 0, False: 23.5M]
  ------------------
  239|      0|    return;
  240|  23.5M|  tiffType_ = toTiffType(value->typeId());
  241|  23.5M|  count_ = value->count();
  242|  23.5M|  pValue_ = std::move(value);
  243|  23.5M|}
_ZN5Exiv28Internal13TiffDataEntry9setStripsEPKNS_5ValueEPKhmm:
  245|  8.05k|void TiffDataEntry::setStrips(const Value* pSize, const byte* pData, size_t sizeData, size_t baseOffset) {
  246|  8.05k|  if (!pValue() || !pSize) {
  ------------------
  |  Branch (246:7): [True: 704, False: 7.34k]
  |  Branch (246:20): [True: 465, False: 6.88k]
  ------------------
  247|  1.16k|#ifndef SUPPRESS_WARNINGS
  248|  1.16k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  1.16k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.16k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.16k|  LogMsg(LogMsg::warn).os()
  ------------------
  249|      0|                << tag() << ": Size or data offset value not set, ignoring them.\n";
  250|  1.16k|#endif
  251|  1.16k|    return;
  252|  1.16k|  }
  253|  6.88k|  if (pValue()->count() == 0) {
  ------------------
  |  Branch (253:7): [True: 1.40k, False: 5.47k]
  ------------------
  254|  1.40k|#ifndef SUPPRESS_WARNINGS
  255|  1.40k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  1.40k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.40k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.40k|  LogMsg(LogMsg::warn).os()
  ------------------
  256|      0|                << tag() << ": Data offset entry value is empty, ignoring it.\n";
  257|  1.40k|#endif
  258|  1.40k|    return;
  259|  1.40k|  }
  260|  5.47k|  if (pValue()->count() != pSize->count()) {
  ------------------
  |  Branch (260:7): [True: 1.67k, False: 3.80k]
  ------------------
  261|  1.67k|#ifndef SUPPRESS_WARNINGS
  262|  1.67k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  1.67k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.67k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.67k|  LogMsg(LogMsg::warn).os()
  ------------------
  263|      0|                << tag() << ": Size and data offset entries have different"
  264|      0|                << " number of components, ignoring them.\n";
  265|  1.67k|#endif
  266|  1.67k|    return;
  267|  1.67k|  }
  268|  3.80k|  size_t size = 0;
  269|  8.09k|  for (size_t i = 0; i < pSize->count(); ++i) {
  ------------------
  |  Branch (269:22): [True: 4.29k, False: 3.80k]
  ------------------
  270|  4.29k|    size = Safe::add<size_t>(size, pSize->toUint32(i));
  271|  4.29k|  }
  272|  3.80k|  const size_t offset = pValue()->toUint32(0);
  273|  3.80k|  if (size > sizeData || offset > sizeData - size || baseOffset > sizeData - size - offset) {
  ------------------
  |  Branch (273:7): [True: 145, False: 3.65k]
  |  Branch (273:26): [True: 143, False: 3.51k]
  |  Branch (273:54): [True: 63, False: 3.45k]
  ------------------
  274|    351|#ifndef SUPPRESS_WARNINGS
  275|    351|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|    351|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 351]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    351|  LogMsg(LogMsg::warn).os()
  ------------------
  276|      0|                << tag() << ": Data area exceeds data buffer, ignoring it.\n";
  277|    351|#endif
  278|    351|    return;
  279|    351|  }
  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.45k|  if (pValue()->toUint32(pValue()->count() - 1) + pSize->toUint32(pSize->count() - 1) != size + offset) {
  ------------------
  |  Branch (282:7): [True: 38, False: 3.41k]
  ------------------
  283|     38|#ifndef SUPPRESS_WARNINGS
  284|     38|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  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()
  ------------------
  285|      0|                << tag() << ": Data area is not contiguous, ignoring it.\n";
  286|     38|#endif
  287|     38|    return;
  288|     38|  }
  289|  3.41k|  pDataArea_ = const_cast<byte*>(pData) + baseOffset + offset;
  290|  3.41k|  sizeDataArea_ = size;
  291|  3.41k|  const_cast<Value*>(pValue())->setDataArea(pDataArea_, sizeDataArea_);
  292|  3.41k|}  // TiffDataEntry::setStrips
_ZN5Exiv28Internal14TiffImageEntry9setStripsEPKNS_5ValueEPKhmm:
  294|  27.5k|void TiffImageEntry::setStrips(const Value* pSize, const byte* pData, size_t sizeData, size_t baseOffset) {
  295|  27.5k|  if (!pValue() || !pSize) {
  ------------------
  |  Branch (295:7): [True: 1.54k, False: 26.0k]
  |  Branch (295:20): [True: 2.20k, False: 23.8k]
  ------------------
  296|  3.75k|#ifndef SUPPRESS_WARNINGS
  297|  3.75k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  3.75k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 3.75k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  3.75k|  LogMsg(LogMsg::warn).os()
  ------------------
  298|      0|                << tag() << ": Size or data offset value not set, ignoring them.\n";
  299|  3.75k|#endif
  300|  3.75k|    return;
  301|  3.75k|  }
  302|  23.8k|  if (pValue()->count() != pSize->count()) {
  ------------------
  |  Branch (302:7): [True: 4.59k, False: 19.2k]
  ------------------
  303|  4.59k|#ifndef SUPPRESS_WARNINGS
  304|  4.59k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  4.59k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 4.59k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  4.59k|  LogMsg(LogMsg::warn).os()
  ------------------
  305|      0|                << tag() << ": Size and data offset entries have different"
  306|      0|                << " number of components, ignoring them.\n";
  307|  4.59k|#endif
  308|  4.59k|    return;
  309|  4.59k|  }
  310|  43.4k|  for (size_t i = 0; i < pValue()->count(); ++i) {
  ------------------
  |  Branch (310:22): [True: 24.2k, False: 19.2k]
  ------------------
  311|  24.2k|    const size_t offset = pValue()->toUint32(i);
  312|  24.2k|    const size_t size = pSize->toUint32(i);
  313|       |
  314|  24.2k|    if (size > sizeData || offset > sizeData - size || baseOffset > sizeData - size - offset) {
  ------------------
  |  Branch (314:9): [True: 3.42k, False: 20.8k]
  |  Branch (314:28): [True: 3.41k, False: 17.4k]
  |  Branch (314:56): [True: 16, False: 17.3k]
  ------------------
  315|  6.85k|#ifndef SUPPRESS_WARNINGS
  316|  6.85k|      EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  6.85k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 6.85k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  6.85k|  LogMsg(LogMsg::warn).os()
  ------------------
  317|      0|                  << tag() << ": Strip " << std::dec << i << " is outside of the data area; ignored.\n";
  318|  6.85k|#endif
  319|  17.3k|    } else if (size != 0) {
  ------------------
  |  Branch (319:16): [True: 12.9k, False: 4.44k]
  ------------------
  320|  12.9k|      const byte* pStrip = pData + baseOffset + offset;
  321|  12.9k|      strips_.emplace_back(pStrip, size);
  322|  12.9k|    }
  323|  24.2k|  }
  324|  19.2k|}  // TiffImageEntry::setStrips
_ZNK5Exiv28Internal16TiffIfdMakernote9ifdOffsetEv:
  326|  29.5k|size_t TiffIfdMakernote::ifdOffset() const {
  327|  29.5k|  if (!pHeader_)
  ------------------
  |  Branch (327:7): [True: 14.2k, False: 15.3k]
  ------------------
  328|  14.2k|    return 0;
  329|  15.3k|  return pHeader_->ifdOffset();
  330|  29.5k|}
_ZNK5Exiv28Internal16TiffIfdMakernote9byteOrderEv:
  332|  70.5k|ByteOrder TiffIfdMakernote::byteOrder() const {
  333|  70.5k|  if (!pHeader_ || pHeader_->byteOrder() == invalidByteOrder) {
  ------------------
  |  Branch (333:7): [True: 29.2k, False: 41.3k]
  |  Branch (333:20): [True: 31.9k, False: 9.39k]
  ------------------
  334|  61.1k|    return imageByteOrder_;
  335|  61.1k|  }
  336|  9.39k|  return pHeader_->byteOrder();
  337|  70.5k|}
_ZNK5Exiv28Internal16TiffIfdMakernote8mnOffsetEv:
  339|  29.1k|size_t TiffIfdMakernote::mnOffset() const {
  340|  29.1k|  return mnOffset_;
  341|  29.1k|}
_ZNK5Exiv28Internal16TiffIfdMakernote10baseOffsetEv:
  343|  35.3k|size_t TiffIfdMakernote::baseOffset() const {
  344|  35.3k|  if (!pHeader_)
  ------------------
  |  Branch (344:7): [True: 14.5k, False: 20.7k]
  ------------------
  345|  14.5k|    return 0;
  346|  20.7k|  return pHeader_->baseOffset(mnOffset_);
  347|  35.3k|}
_ZN5Exiv28Internal16TiffIfdMakernote10readHeaderEPKhmNS_9ByteOrderE:
  349|  30.1k|bool TiffIfdMakernote::readHeader(const byte* pData, size_t size, ByteOrder byteOrder) {
  350|  30.1k|  if (!pHeader_)
  ------------------
  |  Branch (350:7): [True: 14.2k, False: 15.9k]
  ------------------
  351|  14.2k|    return true;
  352|  15.9k|  return pHeader_->read(pData, size, byteOrder);
  353|  30.1k|}
_ZN5Exiv28Internal16TiffIfdMakernote12setByteOrderENS_9ByteOrderE:
  355|  4.57k|void TiffIfdMakernote::setByteOrder(ByteOrder byteOrder) {
  356|  4.57k|  if (pHeader_)
  ------------------
  |  Branch (356:7): [True: 4.19k, False: 380]
  ------------------
  357|  4.19k|    pHeader_->setByteOrder(byteOrder);
  358|  4.57k|}
_ZNK5Exiv28Internal16TiffIfdMakernote10sizeHeaderEv:
  360|  47.5k|size_t TiffIfdMakernote::sizeHeader() const {
  361|  47.5k|  if (!pHeader_)
  ------------------
  |  Branch (361:7): [True: 3.45k, False: 44.0k]
  ------------------
  362|  3.45k|    return 0;
  363|  44.0k|  return pHeader_->size();
  364|  47.5k|}
_ZNK5Exiv28Internal16TiffIfdMakernote11writeHeaderERNS0_9IoWrapperENS_9ByteOrderE:
  366|  5.85k|size_t TiffIfdMakernote::writeHeader(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
  367|  5.85k|  if (!pHeader_)
  ------------------
  |  Branch (367:7): [True: 376, False: 5.47k]
  ------------------
  368|    376|    return 0;
  369|  5.47k|  return pHeader_->write(ioWrapper, byteOrder);
  370|  5.85k|}
_ZNK5Exiv28Internal8ArrayDef4sizeEtNS_5IfdIdE:
  372|  38.0M|size_t ArrayDef::size(uint16_t tag, IfdId group) const {
  373|  38.0M|  TypeId typeId = toTypeId(tiffType_, tag, group);
  374|  38.0M|  return count_ * TypeInfo::typeSize(typeId);
  375|  38.0M|}
_ZN5Exiv28Internal15TiffBinaryArray10initializeENS_5IfdIdE:
  377|   902k|bool TiffBinaryArray::initialize(IfdId group) {
  378|   902k|  if (arrayCfg_)
  ------------------
  |  Branch (378:7): [True: 902k, False: 30]
  ------------------
  379|   902k|    return true;  // Not a complex array or already initialized
  380|       |
  381|     87|  for (size_t idx = 0; idx < setSize_; ++idx) {
  ------------------
  |  Branch (381:24): [True: 87, False: 0]
  ------------------
  382|     87|    if (arraySet_[idx].cfg_.group_ == group) {
  ------------------
  |  Branch (382:9): [True: 30, False: 57]
  ------------------
  383|     30|      arrayCfg_ = &arraySet_[idx].cfg_;
  384|     30|      arrayDef_ = arraySet_[idx].def_;
  385|     30|      defSize_ = arraySet_[idx].defSize_;
  386|     30|      return true;
  387|     30|    }
  388|     87|  }
  389|      0|  return false;
  390|     30|}
_ZN5Exiv28Internal15TiffBinaryArray10initializeEPNS0_13TiffComponentE:
  392|  12.5k|bool TiffBinaryArray::initialize(TiffComponent* pRoot) {
  393|  12.5k|  if (!cfgSelFct_)
  ------------------
  |  Branch (393:7): [True: 10.4k, False: 2.07k]
  ------------------
  394|  10.4k|    return true;  // Not a complex array
  395|       |
  396|  2.07k|  int idx = cfgSelFct_(tag(), pData(), TiffEntryBase::doSize(), pRoot);
  397|  2.07k|  if (idx > -1) {
  ------------------
  |  Branch (397:7): [True: 1.64k, False: 428]
  ------------------
  398|  1.64k|    arrayCfg_ = &arraySet_[idx].cfg_;
  399|  1.64k|    arrayDef_ = arraySet_[idx].def_;
  400|  1.64k|    defSize_ = arraySet_[idx].defSize_;
  401|  1.64k|  }
  402|  2.07k|  return idx > -1;
  403|  12.5k|}
_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|  18.4M|size_t TiffBinaryArray::addElement(size_t idx, const ArrayDef& def) {
  420|  18.4M|  auto tag = static_cast<uint16_t>(idx / cfg()->tagStep());
  421|  18.4M|  auto sz = std::min<size_t>(def.size(tag, cfg()->group_), TiffEntryBase::doSize() - idx);
  422|  18.4M|  auto tc = TiffCreator::create(tag, cfg()->group_);
  423|  18.4M|  auto tp = dynamic_cast<TiffBinaryElement*>(tc.get());
  424|  18.4M|  if (!tp)
  ------------------
  |  Branch (424:7): [True: 0, False: 18.4M]
  ------------------
  425|      0|    return 0;
  426|       |  // The assertion typically fails if a component is not configured in
  427|       |  // the TIFF structure table (TiffCreator::tiffTreeStruct_)
  428|  18.4M|  tp->setStart(pData() + idx);
  429|  18.4M|  auto s = storage();
  430|  18.4M|  tp->setData(const_cast<byte*>(pData() + idx), sz, std::move(s));
  431|  18.4M|  tp->setElDef(def);
  432|  18.4M|  tp->setElByteOrder(cfg()->byteOrder_);
  433|  18.4M|  addChild(std::move(tc));
  434|  18.4M|  return sz;
  435|  18.4M|}  // 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.31M|                                        TiffComponent::UniquePtr /*object*/) {
  444|  2.31M|  return this;
  445|  2.31M|}  // TiffComponent::doAddPath
_ZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  448|  5.83M|                                        TiffComponent::UniquePtr object) {
  449|  5.83M|  tiffPath.pop();
  450|  5.83M|  const TiffPathItem tpi = tiffPath.top();
  451|       |
  452|  5.83M|  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.83M|  if (tiffPath.size() > 1 || (tpi.extendedTag() == 0x927c && tpi.group() == IfdId::exifId)) {
  ------------------
  |  Branch (457:7): [True: 4.39M, False: 1.44M]
  |  Branch (457:31): [True: 527, False: 1.44M]
  |  Branch (457:62): [True: 352, False: 175]
  ------------------
  458|  4.39M|    if (tpi.extendedTag() == Tag::next) {
  ------------------
  |  Branch (458:9): [True: 4.61k, False: 4.38M]
  ------------------
  459|  4.61k|      tc = pNext_.get();
  460|  4.38M|    } else {
  461|  36.9M|      for (auto&& component : components_) {
  ------------------
  |  Branch (461:29): [True: 36.9M, False: 16.7k]
  ------------------
  462|  36.9M|        if (component->tag() == tpi.tag() && component->group() == tpi.group()) {
  ------------------
  |  Branch (462:13): [True: 4.45M, False: 32.5M]
  |  Branch (462:46): [True: 4.36M, False: 81.9k]
  ------------------
  463|  4.36M|          tc = component.get();
  464|  4.36M|          break;
  465|  4.36M|        }
  466|  36.9M|      }
  467|  4.38M|    }
  468|  4.39M|  }
  469|       |
  470|  5.83M|  if (tc)
  ------------------
  |  Branch (470:7): [True: 4.37M, False: 1.46M]
  ------------------
  471|  4.37M|    return tc->addPath(tag, tiffPath, pRoot, std::move(object));
  472|       |
  473|  1.46M|  auto atc = [&] {
  474|  1.46M|    if (tiffPath.size() == 1 && object) {
  475|  1.46M|      return std::move(object);
  476|  1.46M|    }
  477|  1.46M|    return TiffCreator::create(tpi.extendedTag(), tpi.group());
  478|  1.46M|  }();
  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.46M|  if (tiffPath.size() == 1 && dynamic_cast<const TiffSubIfd*>(atc.get()))
  ------------------
  |  Branch (482:7): [True: 1.44M, False: 16.8k]
  |  Branch (482:31): [True: 15.3k, False: 1.43M]
  ------------------
  483|  15.3k|    return nullptr;
  484|       |
  485|  1.44M|  tc = [&] {
  486|  1.44M|    if (tpi.extendedTag() == Tag::next)
  487|  1.44M|      return this->addNext(std::move(atc));
  488|  1.44M|    return this->addChild(std::move(atc));
  489|  1.44M|  }();
  490|  1.44M|  return tc->addPath(tag, tiffPath, pRoot, nullptr);
  491|  1.46M|}  // TiffDirectory::doAddPath
_ZN5Exiv28Internal10TiffSubIfd9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  494|  1.75M|                                     TiffComponent::UniquePtr object) {
  495|  1.75M|  const TiffPathItem tpi1 = tiffPath.top();
  496|  1.75M|  tiffPath.pop();
  497|  1.75M|  if (tiffPath.empty()) {
  ------------------
  |  Branch (497:7): [True: 0, False: 1.75M]
  ------------------
  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.75M|  const TiffPathItem tpi2 = tiffPath.top();
  503|  1.75M|  tiffPath.push(tpi1);
  504|  1.75M|  for (const auto& ifd : ifds_)
  ------------------
  |  Branch (504:24): [True: 1.74M, False: 7.71k]
  ------------------
  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.71k|  auto tc = [&] {
  509|  7.71k|    if (tiffPath.size() == 1 && object) {
  510|  7.71k|      return addChild(std::move(object));
  511|  7.71k|    }
  512|  7.71k|    return addChild(std::make_unique<TiffDirectory>(tpi1.tag(), tpi2.group()));
  513|  7.71k|  }();
  514|  7.71k|  setCount(ifds_.size());
  515|  7.71k|  return tc->addPath(tag, tiffPath, pRoot, nullptr);
  516|  1.75M|}  // TiffSubIfd::doAddPath
_ZN5Exiv28Internal11TiffMnEntry9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  519|  1.73M|                                      TiffComponent::UniquePtr object) {
  520|  1.73M|  const TiffPathItem tpi1 = tiffPath.top();
  521|  1.73M|  tiffPath.pop();
  522|  1.73M|  if (tiffPath.empty()) {
  ------------------
  |  Branch (522:7): [True: 7.47k, False: 1.72M]
  ------------------
  523|       |    // If the last element in the path is the makernote tag itself we're done
  524|  7.47k|    return this;
  525|  7.47k|  }
  526|  1.72M|  const TiffPathItem tpi2 = tiffPath.top();
  527|  1.72M|  tiffPath.push(tpi1);
  528|  1.72M|  if (!mn_) {
  ------------------
  |  Branch (528:7): [True: 5.89k, False: 1.72M]
  ------------------
  529|  5.89k|    mnGroup_ = tpi2.group();
  530|  5.89k|    mn_ = TiffMnCreator::create(tpi1.tag(), tpi1.group(), mnGroup_);
  531|  5.89k|  }
  532|  1.72M|  return mn_->addPath(tag, tiffPath, pRoot, std::move(object));
  533|  1.73M|}  // TiffMnEntry::doAddPath
_ZN5Exiv28Internal16TiffIfdMakernote9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  536|  1.72M|                                           TiffComponent::UniquePtr object) {
  537|  1.72M|  return ifd_.addPath(tag, tiffPath, pRoot, std::move(object));
  538|  1.72M|}
_ZN5Exiv28Internal15TiffBinaryArray9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  541|   913k|                                          TiffComponent::UniquePtr object) {
  542|   913k|  pRoot_ = pRoot;
  543|   913k|  if (tiffPath.size() == 1) {
  ------------------
  |  Branch (543:7): [True: 10.9k, False: 902k]
  ------------------
  544|       |    // An unknown complex binary array has no children and acts like a standard TIFF entry
  545|  10.9k|    return this;
  546|  10.9k|  }
  547|   902k|  tiffPath.pop();
  548|   902k|  const TiffPathItem tpi = tiffPath.top();
  549|       |  // Initialize the binary array (if it is a complex array)
  550|   902k|  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|   902k|  if (tiffPath.size() > 1) {
  ------------------
  |  Branch (554:7): [True: 0, False: 902k]
  ------------------
  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|   902k|  if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (560:7): [True: 902k, False: 0]
  |  Branch (560:31): [True: 0, False: 902k]
  ------------------
  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|   902k|  auto tc = addChild(TiffCreator::create(tpi.extendedTag(), tpi.group()));
  567|   902k|  setCount(elements_.size());
  568|   902k|  return tc->addPath(tag, tiffPath, pRoot, std::move(object));
  569|   902k|}  // TiffBinaryArray::doAddPath
_ZN5Exiv28Internal13TiffComponent8addChildENSt3__110shared_ptrIS1_EE:
  571|  26.7M|TiffComponent* TiffComponent::addChild(TiffComponent::SharedPtr tiffComponent) {
  572|  26.7M|  return doAddChild(std::move(tiffComponent));
  573|  26.7M|}  // TiffComponent::addChild
_ZN5Exiv28Internal13TiffDirectory10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  579|  7.31M|TiffComponent* TiffDirectory::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  580|  7.31M|  return components_.emplace_back(std::move(tiffComponent)).get();
  581|  7.31M|}  // TiffDirectory::doAddChild
_ZN5Exiv28Internal10TiffSubIfd10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  583|  53.9k|TiffComponent* TiffSubIfd::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  584|  53.9k|  auto d = std::dynamic_pointer_cast<TiffDirectory>(std::move(tiffComponent));
  585|  53.9k|  if (!d)
  ------------------
  |  Branch (585:7): [True: 0, False: 53.9k]
  ------------------
  586|      0|    throw Error(ErrorCode::kerErrorMessage, "dynamic_pointer_cast to TiffDirectory failed");
  587|       |
  588|  53.9k|  return ifds_.emplace_back(std::move(d)).get();
  589|  53.9k|}  // TiffSubIfd::doAddChild
_ZN5Exiv28Internal15TiffBinaryArray10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  602|  19.3M|TiffComponent* TiffBinaryArray::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  603|  19.3M|  setDecoded(true);
  604|  19.3M|  return elements_.emplace_back(std::move(tiffComponent)).get();
  605|  19.3M|}  // TiffBinaryArray::doAddChild
_ZN5Exiv28Internal13TiffComponent7addNextENSt3__110unique_ptrIS1_NS2_14default_deleteIS1_EEEE:
  607|  2.08k|TiffComponent* TiffComponent::addNext(TiffComponent::UniquePtr tiffComponent) {
  608|  2.08k|  return doAddNext(std::move(tiffComponent));
  609|  2.08k|}  // TiffComponent::addNext
_ZN5Exiv28Internal13TiffDirectory9doAddNextENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEE:
  615|  2.08k|TiffComponent* TiffDirectory::doAddNext(TiffComponent::UniquePtr tiffComponent) {
  616|  2.08k|  if (hasNext_) {
  ------------------
  |  Branch (616:7): [True: 2.08k, False: 0]
  ------------------
  617|  2.08k|    pNext_ = std::move(tiffComponent);
  618|  2.08k|    return pNext_.get();
  619|  2.08k|  }
  620|      0|  return nullptr;
  621|  2.08k|}  // TiffDirectory::doAddNext
_ZN5Exiv28Internal13TiffComponent6acceptERNS0_11TiffVisitorE:
  634|   142M|void TiffComponent::accept(TiffVisitor& visitor) {
  635|   142M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (635:7): [True: 142M, False: 8.12k]
  ------------------
  636|   142M|    doAccept(visitor);  // one for NVI :)
  637|   142M|}  // TiffComponent::accept
_ZN5Exiv28Internal9TiffEntry8doAcceptERNS0_11TiffVisitorE:
  639|  39.4M|void TiffEntry::doAccept(TiffVisitor& visitor) {
  640|  39.4M|  visitor.visitEntry(this);
  641|  39.4M|}  // TiffEntry::doAccept
_ZN5Exiv28Internal13TiffDataEntry8doAcceptERNS0_11TiffVisitorE:
  643|   127k|void TiffDataEntry::doAccept(TiffVisitor& visitor) {
  644|   127k|  visitor.visitDataEntry(this);
  645|   127k|}  // TiffDataEntry::doAccept
_ZN5Exiv28Internal14TiffImageEntry8doAcceptERNS0_11TiffVisitorE:
  647|  1.45M|void TiffImageEntry::doAccept(TiffVisitor& visitor) {
  648|  1.45M|  visitor.visitImageEntry(this);
  649|  1.45M|}  // TiffImageEntry::doAccept
_ZN5Exiv28Internal13TiffSizeEntry8doAcceptERNS0_11TiffVisitorE:
  651|  2.21M|void TiffSizeEntry::doAccept(TiffVisitor& visitor) {
  652|  2.21M|  visitor.visitSizeEntry(this);
  653|  2.21M|}  // TiffSizeEntry::doAccept
_ZN5Exiv28Internal13TiffDirectory8doAcceptERNS0_11TiffVisitorE:
  655|  1.19M|void TiffDirectory::doAccept(TiffVisitor& visitor) {
  656|  1.19M|  visitor.visitDirectory(this);
  657|  44.8M|  for (auto&& component : components_) {
  ------------------
  |  Branch (657:25): [True: 44.8M, False: 940k]
  ------------------
  658|  44.8M|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (658:9): [True: 250k, False: 44.5M]
  ------------------
  659|   250k|      break;
  660|  44.5M|    component->accept(visitor);
  661|  44.5M|  }
  662|  1.19M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (662:7): [True: 932k, False: 258k]
  ------------------
  663|   932k|    visitor.visitDirectoryNext(this);
  664|  1.19M|  if (pNext_)
  ------------------
  |  Branch (664:7): [True: 24.5k, False: 1.16M]
  ------------------
  665|  24.5k|    pNext_->accept(visitor);
  666|  1.19M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (666:7): [True: 924k, False: 265k]
  ------------------
  667|   924k|    visitor.visitDirectoryEnd(this);
  668|  1.19M|}  // TiffDirectory::doAccept
_ZN5Exiv28Internal10TiffSubIfd8doAcceptERNS0_11TiffVisitorE:
  670|   204k|void TiffSubIfd::doAccept(TiffVisitor& visitor) {
  671|   204k|  visitor.visitSubIfd(this);
  672|   745k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (672:19): [True: 745k, False: 172k]
  ------------------
  673|   745k|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (673:9): [True: 31.9k, False: 713k]
  ------------------
  674|  31.9k|      break;
  675|   713k|    ifd->accept(visitor);
  676|   713k|  }
  677|   204k|}  // TiffSubIfd::doAccept
_ZN5Exiv28Internal11TiffMnEntry8doAcceptERNS0_11TiffVisitorE:
  679|   178k|void TiffMnEntry::doAccept(TiffVisitor& visitor) {
  680|   178k|  visitor.visitMnEntry(this);
  681|   178k|  if (mn_)
  ------------------
  |  Branch (681:7): [True: 135k, False: 42.7k]
  ------------------
  682|   135k|    mn_->accept(visitor);
  683|   178k|  if (!visitor.go(TiffVisitor::geKnownMakernote)) {
  ------------------
  |  Branch (683:7): [True: 902, False: 177k]
  ------------------
  684|    902|    mn_ = nullptr;
  685|    902|  }
  686|       |
  687|   178k|}  // TiffMnEntry::doAccept
_ZN5Exiv28Internal16TiffIfdMakernote8doAcceptERNS0_11TiffVisitorE:
  689|   131k|void TiffIfdMakernote::doAccept(TiffVisitor& visitor) {
  690|   131k|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (690:7): [True: 131k, False: 0]
  ------------------
  691|   131k|    visitor.visitIfdMakernote(this);
  692|   131k|  if (visitor.go(TiffVisitor::geKnownMakernote))
  ------------------
  |  Branch (692:7): [True: 130k, False: 638]
  ------------------
  693|   130k|    ifd_.accept(visitor);
  694|   131k|  if (visitor.go(TiffVisitor::geKnownMakernote) && visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (694:7): [True: 130k, False: 638]
  |  Branch (694:52): [True: 92.6k, False: 37.7k]
  ------------------
  695|  92.6k|    visitor.visitIfdMakernoteEnd(this);
  696|   131k|}
_ZN5Exiv28Internal15TiffBinaryArray8doAcceptERNS0_11TiffVisitorE:
  698|   298k|void TiffBinaryArray::doAccept(TiffVisitor& visitor) {
  699|   298k|  visitor.visitBinaryArray(this);
  700|  96.3M|  for (auto&& element : elements_) {
  ------------------
  |  Branch (700:23): [True: 96.3M, False: 294k]
  ------------------
  701|  96.3M|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (701:9): [True: 4.89k, False: 96.3M]
  ------------------
  702|  4.89k|      break;
  703|  96.3M|    element->accept(visitor);
  704|  96.3M|  }
  705|   298k|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (705:7): [True: 251k, False: 47.8k]
  ------------------
  706|   251k|    visitor.visitBinaryArrayEnd(this);
  707|   298k|}
_ZN5Exiv28Internal17TiffBinaryElement8doAcceptERNS0_11TiffVisitorE:
  709|  97.0M|void TiffBinaryElement::doAccept(TiffVisitor& visitor) {
  710|  97.0M|  visitor.visitBinaryElement(this);
  711|  97.0M|}
_ZN5Exiv28Internal13TiffEntryBase6encodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  713|  2.33M|void TiffEntryBase::encode(TiffEncoder& encoder, const Exifdatum* datum) {
  714|  2.33M|  doEncode(encoder, datum);
  715|  2.33M|}
_ZN5Exiv28Internal17TiffBinaryElement8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  717|   903k|void TiffBinaryElement::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  718|   903k|  encoder.encodeBinaryElement(this, datum);
  719|   903k|}
_ZN5Exiv28Internal15TiffBinaryArray8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  721|  11.0k|void TiffBinaryArray::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  722|  11.0k|  encoder.encodeBinaryArray(this, datum);
  723|  11.0k|}
_ZN5Exiv28Internal13TiffDataEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  725|  3.02k|void TiffDataEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  726|  3.02k|  encoder.encodeDataEntry(this, datum);
  727|  3.02k|}
_ZN5Exiv28Internal9TiffEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  729|  1.38M|void TiffEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  730|  1.38M|  encoder.encodeTiffEntry(this, datum);
  731|  1.38M|}
_ZN5Exiv28Internal14TiffImageEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  733|  9.51k|void TiffImageEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  734|  9.51k|  encoder.encodeImageEntry(this, datum);
  735|  9.51k|}
_ZN5Exiv28Internal11TiffMnEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  737|  7.55k|void TiffMnEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  738|  7.55k|  encoder.encodeMnEntry(this, datum);
  739|  7.55k|}
_ZN5Exiv28Internal13TiffSizeEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  741|  15.6k|void TiffSizeEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  742|  15.6k|  encoder.encodeSizeEntry(this, datum);
  743|  15.6k|}
_ZN5Exiv28Internal10TiffSubIfd8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  745|     98|void TiffSubIfd::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  746|     98|  encoder.encodeSubIfd(this, datum);
  747|     98|}
_ZNK5Exiv28Internal13TiffComponent5countEv:
  749|  1.64M|size_t TiffComponent::count() const {
  750|  1.64M|  return doCount();
  751|  1.64M|}
_ZNK5Exiv28Internal13TiffDirectory7doCountEv:
  753|   123k|size_t TiffDirectory::doCount() const {
  754|   123k|  return components_.size();
  755|   123k|}
_ZNK5Exiv28Internal13TiffEntryBase7doCountEv:
  757|  1.51M|size_t TiffEntryBase::doCount() const {
  758|  1.51M|  return count_;
  759|  1.51M|}
_ZNK5Exiv28Internal11TiffMnEntry7doCountEv:
  761|  11.7k|size_t TiffMnEntry::doCount() const {
  762|  11.7k|  if (!mn_) {
  ------------------
  |  Branch (762:7): [True: 5.86k, False: 5.87k]
  ------------------
  763|  5.86k|    return TiffEntryBase::doCount();
  764|  5.86k|  }
  765|  5.87k|#ifndef SUPPRESS_WARNINGS
  766|       |  // Count of IFD makernote in tag Exif.Photo.MakerNote is the size of the
  767|       |  // Makernote in bytes
  768|  5.87k|  if (tiffType() != ttUndefined && tiffType() != ttUnsignedByte && tiffType() != ttSignedByte) {
  ------------------
  |  Branch (768:7): [True: 1.41k, False: 4.46k]
  |  Branch (768:36): [True: 1.39k, False: 22]
  |  Branch (768:68): [True: 1.35k, False: 38]
  ------------------
  769|  1.35k|    EXV_ERROR << stringFormat(
  ------------------
  |  |  142|  1.35k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 1.35k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  1.35k|  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.35k|  }
  773|  5.87k|#endif
  774|  5.87k|  return mn_->size();
  775|  11.7k|}
_ZNK5Exiv28Internal15TiffBinaryArray7doCountEv:
  781|  15.3k|size_t TiffBinaryArray::doCount() const {
  782|  15.3k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (782:7): [True: 274, False: 15.1k]
  |  Branch (782:17): [True: 10.4k, False: 4.63k]
  ------------------
  783|  10.7k|    return TiffEntryBase::doCount();
  784|       |
  785|  4.63k|  if (elements_.empty())
  ------------------
  |  Branch (785:7): [True: 0, False: 4.63k]
  ------------------
  786|      0|    return 0;
  787|       |
  788|  4.63k|  TypeId typeId = toTypeId(tiffType(), tag(), group());
  789|  4.63k|  size_t typeSize = TypeInfo::typeSize(typeId);
  790|  4.63k|  if (0 == typeSize) {
  ------------------
  |  Branch (790:7): [True: 181, False: 4.45k]
  ------------------
  791|    181|#ifndef SUPPRESS_WARNINGS
  792|    181|    EXV_WARNING << stringFormat("Directory {}, entry 0x{:04x} has unknown Exif (TIFF) type {}; setting type size 1.\n",
  ------------------
  |  |  138|    181|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 181]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    181|  LogMsg(LogMsg::warn).os()
  ------------------
                  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|    181|#endif
  795|    181|    typeSize = 1;
  796|    181|  }
  797|       |
  798|  4.63k|  return size() / typeSize;
  799|  4.63k|}
_ZN5Exiv28Internal13TiffComponent5writeERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  806|  2.37M|                            size_t& imageIdx) {
  807|  2.37M|  return doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  808|  2.37M|}  // TiffComponent::write
_ZN5Exiv28Internal13TiffDirectory7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  811|  21.5k|                              size_t& imageIdx) {
  812|  21.5k|  bool isRootDir = (imageIdx == std::string::npos);
  813|       |
  814|       |  // Number of components to write
  815|  21.5k|  const size_t compCount = count();
  816|  21.5k|  if (compCount > 0xffff)
  ------------------
  |  Branch (816:7): [True: 0, False: 21.5k]
  ------------------
  817|      0|    throw Error(ErrorCode::kerTooManyTiffDirectoryEntries, groupName(group()));
  818|       |
  819|       |  // Size of next IFD, if any
  820|  21.5k|  size_t sizeNext = 0;
  821|  21.5k|  if (pNext_)
  ------------------
  |  Branch (821:7): [True: 231, False: 21.3k]
  ------------------
  822|    231|    sizeNext = pNext_->size();
  823|       |
  824|       |  // Nothing to do if there are no entries and the size of the next IFD is 0
  825|  21.5k|  if (compCount == 0 && sizeNext == 0)
  ------------------
  |  Branch (825:7): [True: 152, False: 21.4k]
  |  Branch (825:25): [True: 40, False: 112]
  ------------------
  826|     40|    return 0;
  827|       |
  828|       |  // Remember the offset of the CR2 RAW IFD
  829|  21.5k|  if (group() == IfdId::ifd3Id) {
  ------------------
  |  Branch (829:7): [True: 0, False: 21.5k]
  ------------------
  830|       |#ifdef EXIV2_DEBUG_MESSAGES
  831|       |    std::cerr << "Directory " << groupName(group()) << " offset is 0x" << std::setw(8) << std::setfill('0') << std::hex
  832|       |              << offset << std::dec << "\n";
  833|       |#endif
  834|      0|    ioWrapper.setTarget(OffsetWriter::cr2RawIfdOffset, offset);
  835|      0|  }
  836|       |  // Size of all directory entries, without values and additional data
  837|  21.5k|  const size_t sizeDir = 2 + (12 * compCount) + (hasNext_ ? 4 : 0);
  ------------------
  |  Branch (837:50): [True: 21.5k, False: 31]
  ------------------
  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|  21.5k|  if (group() < IfdId::mnId) {
  ------------------
  |  Branch (841:7): [True: 12.7k, False: 8.73k]
  ------------------
  842|  12.7k|    std::sort(components_.begin(), components_.end(), cmpTagLt);
  843|  12.7k|  }
  844|       |  // Size of IFD values and additional data
  845|  21.5k|  size_t sizeValue = 0;
  846|  21.5k|  size_t sizeData = 0;
  847|  1.44M|  for (auto&& component : components_) {
  ------------------
  |  Branch (847:25): [True: 1.44M, False: 21.5k]
  ------------------
  848|  1.44M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (848:40): [True: 73.4k, False: 1.37M]
  ------------------
  849|  73.4k|      sv += sv & 1;  // Align value to word boundary
  850|  73.4k|      sizeValue += sv;
  851|  73.4k|    }
  852|       |    // Also add the size of data, but only if needed
  853|  1.44M|    if (isRootDir) {
  ------------------
  |  Branch (853:9): [True: 607k, False: 837k]
  ------------------
  854|   607k|      auto sd = component->sizeData();
  855|   607k|      sd += sd & 1;  // Align data to word boundary
  856|   607k|      sizeData += sd;
  857|   607k|    }
  858|  1.44M|  }
  859|       |
  860|  21.5k|  size_t idx = 0;                 // Current IFD index / bytes written
  861|  21.5k|  valueIdx = sizeDir;             // Offset to the current IFD value
  862|  21.5k|  dataIdx = sizeDir + sizeValue;  // Offset to the entry's data area
  863|  21.5k|  if (isRootDir) {                // Absolute offset to the image data
  ------------------
  |  Branch (863:7): [True: 7.79k, False: 13.7k]
  ------------------
  864|  7.79k|    imageIdx = offset + dataIdx + sizeData + sizeNext;
  865|  7.79k|    imageIdx += imageIdx & 1;  // Align image data to word boundary
  866|  7.79k|  }
  867|       |
  868|       |  // 1st: Write the IFD, a) Number of directory entries
  869|  21.5k|  byte buf[4];
  870|  21.5k|  us2Data(buf, static_cast<uint16_t>(compCount), byteOrder);
  871|  21.5k|  ioWrapper.write(buf, 2);
  872|  21.5k|  idx += 2;
  873|       |  // b) Directory entries - may contain pointers to the value or data
  874|  1.44M|  for (auto&& component : components_) {
  ------------------
  |  Branch (874:25): [True: 1.44M, False: 21.5k]
  ------------------
  875|  1.44M|    idx += writeDirEntry(ioWrapper, byteOrder, offset, component.get(), valueIdx, dataIdx, imageIdx);
  876|  1.44M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (876:40): [True: 73.3k, False: 1.37M]
  ------------------
  877|  73.3k|      sv += sv & 1;  // Align value to word boundary
  878|  73.3k|      valueIdx += sv;
  879|  73.3k|    }
  880|  1.44M|    auto sd = component->sizeData();
  881|  1.44M|    sd += sd & 1;  // Align data to word boundary
  882|  1.44M|    dataIdx += sd;
  883|  1.44M|  }
  884|       |  // c) Pointer to the next IFD
  885|  21.5k|  if (hasNext_) {
  ------------------
  |  Branch (885:7): [True: 21.4k, False: 69]
  ------------------
  886|  21.4k|    memset(buf, 0x0, 4);
  887|  21.4k|    if (pNext_ && sizeNext) {
  ------------------
  |  Branch (887:9): [True: 231, False: 21.2k]
  |  Branch (887:19): [True: 231, False: 0]
  ------------------
  888|    231|      l2Data(buf, static_cast<uint32_t>(offset + dataIdx), byteOrder);
  889|    231|    }
  890|  21.4k|    ioWrapper.write(buf, 4);
  891|  21.4k|    idx += 4;
  892|  21.4k|  }
  893|       |
  894|       |  // 2nd: Write IFD values - may contain pointers to additional data
  895|  21.5k|  valueIdx = sizeDir;
  896|  21.5k|  dataIdx = sizeDir + sizeValue;
  897|  1.44M|  for (auto&& component : components_) {
  ------------------
  |  Branch (897:25): [True: 1.44M, False: 21.5k]
  ------------------
  898|  1.44M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (898:40): [True: 73.2k, False: 1.36M]
  ------------------
  899|  73.2k|      size_t d = component->write(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  900|  73.2k|      enforce(sv == d, ErrorCode::kerImageWriteFailed);
  901|  73.2k|      if ((sv & 1) == 1) {
  ------------------
  |  Branch (901:11): [True: 19.2k, False: 54.0k]
  ------------------
  902|  19.2k|        ioWrapper.putb(0x0);  // Align value to word boundary
  903|  19.2k|        sv += 1;
  904|  19.2k|      }
  905|  73.2k|      idx += sv;
  906|  73.2k|      valueIdx += sv;
  907|  73.2k|    }
  908|  1.44M|    auto sd = component->sizeData();
  909|  1.44M|    sd += sd & 1;  // Align data to word boundary
  910|  1.44M|    dataIdx += sd;
  911|  1.44M|  }
  912|       |
  913|       |  // 3rd: Write data - may contain offsets too (eg sub-IFD)
  914|  21.5k|  dataIdx = sizeDir + sizeValue;
  915|  21.5k|  idx += writeData(ioWrapper, byteOrder, offset, dataIdx, imageIdx);
  916|       |
  917|       |  // 4th: Write next-IFD
  918|  21.5k|  if (pNext_ && sizeNext) {
  ------------------
  |  Branch (918:7): [True: 231, False: 21.3k]
  |  Branch (918:17): [True: 231, False: 0]
  ------------------
  919|    231|    idx += pNext_->write(ioWrapper, byteOrder, offset + idx, std::string::npos, std::string::npos, imageIdx);
  920|    231|  }
  921|       |
  922|       |  // 5th, at the root directory level only: write image data
  923|  21.5k|  if (isRootDir) {
  ------------------
  |  Branch (923:7): [True: 7.70k, False: 13.8k]
  ------------------
  924|  7.70k|    idx += writeImage(ioWrapper, byteOrder);
  925|  7.70k|  }
  926|       |
  927|  21.5k|  return idx;
  928|  21.5k|}
_ZN5Exiv28Internal13TiffDirectory13writeDirEntryERNS0_9IoWrapperENS_9ByteOrderEmPNS0_13TiffComponentEmmRm:
  931|  1.44M|                                    TiffComponent* pTiffComponent, size_t valueIdx, size_t dataIdx, size_t& imageIdx) {
  932|  1.44M|  auto pDirEntry = dynamic_cast<TiffEntryBase*>(pTiffComponent);
  933|  1.44M|  if (!pDirEntry)
  ------------------
  |  Branch (933:7): [True: 0, False: 1.44M]
  ------------------
  934|      0|    return 0;
  935|  1.44M|  byte buf[8];
  936|  1.44M|  us2Data(buf, pDirEntry->tag(), byteOrder);
  937|  1.44M|  us2Data(buf + 2, pDirEntry->tiffType(), byteOrder);
  938|  1.44M|  ul2Data(buf + 4, static_cast<uint32_t>(pDirEntry->count()), byteOrder);
  939|  1.44M|  ioWrapper.write(buf, 8);
  940|  1.44M|  if (pDirEntry->size() > 4) {
  ------------------
  |  Branch (940:7): [True: 73.3k, False: 1.37M]
  ------------------
  941|  73.3k|    pDirEntry->setOffset(Safe::add<size_t>(offset, valueIdx));
  942|  73.3k|    ul2Data(buf, static_cast<uint32_t>(pDirEntry->offset()), byteOrder);
  943|  73.3k|    ioWrapper.write(buf, 4);
  944|  1.37M|  } else {
  945|  1.37M|    const size_t len = pDirEntry->write(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  946|  1.37M|#ifndef SUPPRESS_WARNINGS
  947|  1.37M|    if (len > 4) {
  ------------------
  |  Branch (947:9): [True: 3, False: 1.37M]
  ------------------
  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.37M|#endif
  951|  1.37M|    if (len < 4) {
  ------------------
  |  Branch (951:9): [True: 1.35M, False: 17.0k]
  ------------------
  952|  1.35M|      memset(buf, 0x0, 4);
  953|  1.35M|      ioWrapper.write(buf, 4 - len);
  954|  1.35M|    }
  955|  1.37M|  }
  956|  1.44M|  return 12;
  957|  1.44M|}  // TiffDirectory::writeDirEntry
_ZN5Exiv28Internal13TiffEntryBase7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  960|  1.41M|                              size_t /*dataIdx*/, size_t& /*imageIdx*/) {
  961|  1.41M|  if (!pValue_ || pValue_->size() == 0)
  ------------------
  |  Branch (961:7): [True: 0, False: 1.41M]
  |  Branch (961:19): [True: 1.31M, False: 97.0k]
  ------------------
  962|  1.31M|    return 0;
  963|       |
  964|  97.0k|  DataBuf buf(pValue_->size());
  965|  97.0k|  pValue_->copy(buf.data(), byteOrder);
  966|  97.0k|  ioWrapper.write(buf.c_data(), buf.size());
  967|  97.0k|  return buf.size();
  968|  1.41M|}  // TiffEntryBase::doWrite
_ZN5Exiv28Internal13TiffEntryBase11writeOffsetEPhmNS0_8TiffTypeENS_9ByteOrderE:
  970|  12.4k|size_t TiffEntryBase::writeOffset(byte* buf, size_t offset, TiffType tiffType, ByteOrder byteOrder) {
  971|  12.4k|  size_t rc = 0;
  972|  12.4k|  switch (tiffType) {
  973|    517|    case ttUnsignedShort:
  ------------------
  |  Branch (973:5): [True: 517, False: 11.9k]
  ------------------
  974|  1.18k|    case ttSignedShort:
  ------------------
  |  Branch (974:5): [True: 665, False: 11.7k]
  ------------------
  975|  1.18k|      if (offset > std::numeric_limits<uint16_t>::max())
  ------------------
  |  Branch (975:11): [True: 4, False: 1.17k]
  ------------------
  976|      4|        throw Error(ErrorCode::kerOffsetOutOfRange);
  977|  1.17k|      rc = us2Data(buf, static_cast<uint16_t>(offset), byteOrder);
  978|  1.17k|      break;
  979|  10.7k|    case ttUnsignedLong:
  ------------------
  |  Branch (979:5): [True: 10.7k, False: 1.71k]
  ------------------
  980|  11.1k|    case ttSignedLong:
  ------------------
  |  Branch (980:5): [True: 458, False: 11.9k]
  ------------------
  981|  11.1k|      rc = l2Data(buf, static_cast<uint32_t>(offset), byteOrder);
  982|  11.1k|      break;
  983|     72|    default:
  ------------------
  |  Branch (983:5): [True: 72, False: 12.3k]
  ------------------
  984|     72|      throw Error(ErrorCode::kerUnsupportedDataAreaOffsetType);
  985|  12.4k|  }
  986|  12.3k|  return rc;
  987|  12.4k|}  // TiffEntryBase::writeOffset
_ZN5Exiv28Internal13TiffDataEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  990|  2.93k|                              size_t dataIdx, size_t& /*imageIdx*/) {
  991|  2.93k|  if (!pValue() || pValue()->count() == 0)
  ------------------
  |  Branch (991:7): [True: 0, False: 2.93k]
  |  Branch (991:20): [True: 2.84k, False: 83]
  ------------------
  992|  2.84k|    return 0;
  993|       |
  994|     83|  DataBuf buf(pValue()->size());
  995|     83|  size_t idx = 0;
  996|     83|  const size_t prevOffset = pValue()->toUint32(0);
  997|  3.20k|  for (size_t i = 0; i < count(); ++i) {
  ------------------
  |  Branch (997:22): [True: 3.12k, False: 83]
  ------------------
  998|  3.12k|    const size_t iOffset = pValue()->toUint32(i);
  999|  3.12k|    enforce(prevOffset <= iOffset, ErrorCode::kerOffsetOutOfRange);
 1000|  3.12k|    const auto newDataIdx = Safe::add<size_t>(iOffset - prevOffset, dataIdx);
 1001|  3.12k|    idx += writeOffset(buf.data(idx), Safe::add(offset, newDataIdx), tiffType(), byteOrder);
 1002|  3.12k|  }
 1003|     83|  ioWrapper.write(buf.c_data(), buf.size());
 1004|     83|  return buf.size();
 1005|  2.93k|}
_ZN5Exiv28Internal14TiffImageEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1008|  9.36k|                               size_t dataIdx, size_t& imageIdx) {
 1009|  9.36k|  size_t o2 = imageIdx;
 1010|       |  // For makernotes, write TIFF image data to the data area
 1011|  9.36k|  if (group() > IfdId::mnId)
  ------------------
  |  Branch (1011:7): [True: 91, False: 9.27k]
  ------------------
 1012|     91|    o2 = Safe::add<size_t>(offset, dataIdx);
 1013|       |#ifdef EXIV2_DEBUG_MESSAGES
 1014|       |  std::cerr << "TiffImageEntry, Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0')
 1015|       |            << std::hex << tag() << std::dec << ": Writing offset " << o2 << "\n";
 1016|       |#endif
 1017|  9.36k|  DataBuf buf(strips_.size() * 4);
 1018|  9.36k|  size_t idx = 0;
 1019|  9.36k|  for (const auto& [_, off] : strips_) {
  ------------------
  |  Branch (1019:29): [True: 1.63k, False: 9.36k]
  ------------------
 1020|  1.63k|    idx += writeOffset(buf.data(idx), o2, tiffType(), byteOrder);
 1021|       |    // Align strip data to word boundary
 1022|  1.63k|    const auto sz = Safe::add(off, off & 1);
 1023|  1.63k|    o2 = Safe::add(o2, sz);
 1024|  1.63k|    if (group() <= IfdId::mnId)
  ------------------
  |  Branch (1024:9): [True: 1.57k, False: 62]
  ------------------
 1025|  1.57k|      imageIdx = Safe::add(imageIdx, sz);
 1026|  1.63k|  }
 1027|  9.36k|  ioWrapper.write(buf.c_data(), buf.size());
 1028|  9.36k|  return buf.size();
 1029|  9.36k|}  // TiffImageEntry::doWrite
_ZN5Exiv28Internal10TiffSubIfd7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1032|  7.67k|                           size_t dataIdx, size_t& /*imageIdx*/) {
 1033|  7.67k|  DataBuf buf(ifds_.size() * 4);
 1034|  7.67k|  size_t idx = 0;
 1035|       |  // Sort IFDs by group, needed if image data tags were copied first
 1036|  7.67k|  std::sort(ifds_.begin(), ifds_.end(), [](const auto& lhs, const auto& rhs) { return lhs->group() < rhs->group(); });
 1037|  7.67k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (1037:19): [True: 7.67k, False: 7.67k]
  ------------------
 1038|  7.67k|    idx += writeOffset(buf.data(idx), offset + dataIdx, tiffType(), byteOrder);
 1039|  7.67k|    dataIdx += ifd->size();
 1040|  7.67k|  }
 1041|  7.67k|  ioWrapper.write(buf.c_data(), buf.size());
 1042|  7.67k|  return buf.size();
 1043|  7.67k|}  // TiffSubIfd::doWrite
_ZN5Exiv28Internal11TiffMnEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1046|  11.6k|                            size_t& imageIdx) {
 1047|  11.6k|  if (!mn_) {
  ------------------
  |  Branch (1047:7): [True: 5.82k, False: 5.85k]
  ------------------
 1048|  5.82k|    return TiffEntryBase::doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
 1049|  5.82k|  }
 1050|  5.85k|  return mn_->write(ioWrapper, byteOrder, offset + valueIdx, std::string::npos, std::string::npos, imageIdx);
 1051|  11.6k|}  // TiffMnEntry::doWrite
_ZN5Exiv28Internal16TiffIfdMakernote7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1054|  5.85k|                                 size_t /*dataIdx*/, size_t& imageIdx) {
 1055|  5.85k|  mnOffset_ = offset;
 1056|  5.85k|  setImageByteOrder(byteOrder);
 1057|  5.85k|  auto len = writeHeader(ioWrapper, this->byteOrder());
 1058|  5.85k|  len += ifd_.write(ioWrapper, this->byteOrder(), offset - baseOffset() + len, std::string::npos, std::string::npos,
 1059|  5.85k|                    imageIdx);
 1060|  5.85k|  return len;
 1061|  5.85k|}  // TiffIfdMakernote::doWrite
_ZN5Exiv28Internal15TiffBinaryArray7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1064|  15.3k|                                size_t dataIdx, size_t& imageIdx) {
 1065|  15.3k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (1065:7): [True: 274, False: 15.0k]
  |  Branch (1065:17): [True: 10.4k, False: 4.63k]
  ------------------
 1066|  10.7k|    return TiffEntryBase::doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
 1067|  4.63k|  if (cfg()->byteOrder_ != invalidByteOrder)
  ------------------
  |  Branch (1067:7): [True: 485, False: 4.15k]
  ------------------
 1068|    485|    byteOrder = cfg()->byteOrder_;
 1069|       |  // Tags must be sorted in ascending order
 1070|  4.63k|  std::sort(elements_.begin(), elements_.end(), cmpTagLt);
 1071|  4.63k|  size_t idx = 0;
 1072|  4.63k|  MemIo mio;  // memory stream in which to store data
 1073|  4.63k|  IoWrapper mioWrapper(mio, nullptr, 0, nullptr);
 1074|       |  // Some array entries need to have the size in the first element
 1075|  4.63k|  if (cfg()->hasSize_) {
  ------------------
  |  Branch (1075:7): [True: 112, False: 4.52k]
  ------------------
 1076|    112|    byte buf[4];
 1077|    112|    size_t elSize = TypeInfo::typeSize(toTypeId(cfg()->elTiffType_, 0, cfg()->group_));
 1078|    112|    switch (elSize) {
 1079|    108|      case 2:
  ------------------
  |  Branch (1079:7): [True: 108, False: 4]
  ------------------
 1080|    108|        idx += us2Data(buf, static_cast<uint16_t>(size()), byteOrder);
 1081|    108|        break;
 1082|      4|      case 4:
  ------------------
  |  Branch (1082:7): [True: 4, False: 108]
  ------------------
 1083|      4|        idx += ul2Data(buf, static_cast<uint32_t>(size()), byteOrder);
 1084|      4|        break;
 1085|      0|      default:
  ------------------
  |  Branch (1085:7): [True: 0, False: 112]
  ------------------
 1086|      0|        break;
 1087|    112|    }
 1088|    112|    mioWrapper.write(buf, elSize);
 1089|    112|  }
 1090|       |  // write all tags of the array (Todo: assumes that there are no duplicates, need check)
 1091|   901k|  for (auto&& element : elements_) {
  ------------------
  |  Branch (1091:23): [True: 901k, False: 4.63k]
  ------------------
 1092|       |    // Skip the manufactured tag, if it exists
 1093|   901k|    if (cfg()->hasSize_ && element->tag() == 0)
  ------------------
  |  Branch (1093:9): [True: 8.16k, False: 893k]
  |  Branch (1093:28): [True: 112, False: 8.04k]
  ------------------
 1094|    112|      continue;
 1095|   901k|    size_t newIdx = element->tag() * cfg()->tagStep();
 1096|   901k|    idx += fillGap(mioWrapper, idx, newIdx);
 1097|   901k|    idx += element->write(mioWrapper, byteOrder, offset + newIdx, valueIdx, dataIdx, imageIdx);
 1098|   901k|  }
 1099|  4.63k|  if (cfg()->hasFillers_ && def()) {
  ------------------
  |  Branch (1099:7): [True: 4.03k, False: 604]
  |  Branch (1099:29): [True: 4.03k, False: 0]
  ------------------
 1100|  4.03k|    const ArrayDef* lastDef = def() + defSize() - 1;
 1101|  4.03k|    auto lastTag = static_cast<uint16_t>(lastDef->idx_ / cfg()->tagStep());
 1102|  4.03k|    idx += fillGap(mioWrapper, idx, lastDef->idx_ + lastDef->size(lastTag, cfg()->group_));
 1103|  4.03k|  }
 1104|       |
 1105|  4.63k|  if (cfg()->cryptFct_) {
  ------------------
  |  Branch (1105:7): [True: 58, False: 4.57k]
  ------------------
 1106|       |    // Select sonyTagEncipher
 1107|     58|    CryptFct cryptFct = cfg()->cryptFct_;
 1108|     58|    if (cryptFct == &sonyTagDecipher) {
  ------------------
  |  Branch (1108:9): [True: 40, False: 18]
  ------------------
 1109|     40|      cryptFct = sonyTagEncipher;
 1110|     40|    }
 1111|     58|    DataBuf buf = cryptFct(tag(), mio.mmap(), mio.size(), pRoot_);
 1112|     58|    if (!buf.empty()) {
  ------------------
  |  Branch (1112:9): [True: 40, False: 18]
  ------------------
 1113|     40|      mio.seek(0, Exiv2::BasicIo::beg);
 1114|     40|      mio.write(buf.c_data(), buf.size());
 1115|     40|    }
 1116|     58|  }
 1117|  4.63k|  ioWrapper.write(mio.mmap(), mio.size());
 1118|       |
 1119|  4.63k|  return idx;
 1120|  4.63k|}  // TiffBinaryArray::doWrite
_ZN5Exiv28Internal17TiffBinaryElement7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1123|   901k|                                  size_t /*dataIdx*/, size_t& /*imageIdx*/) {
 1124|   901k|  auto pv = pValue();
 1125|   901k|  if (!pv || pv->count() == 0)
  ------------------
  |  Branch (1125:7): [True: 0, False: 901k]
  |  Branch (1125:14): [True: 864k, False: 36.9k]
  ------------------
 1126|   864k|    return 0;
 1127|  36.9k|  DataBuf buf(pv->size());
 1128|  36.9k|  pv->copy(buf.data(), byteOrder);
 1129|  36.9k|  ioWrapper.write(buf.c_data(), buf.size());
 1130|  36.9k|  return buf.size();
 1131|   901k|}  // TiffBinaryElement::doWrite
_ZNK5Exiv28Internal13TiffComponent9writeDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1134|  1.46M|                                size_t& imageIdx) const {
 1135|  1.46M|  return doWriteData(ioWrapper, byteOrder, offset, dataIdx, imageIdx);
 1136|  1.46M|}  // TiffComponent::writeData
_ZNK5Exiv28Internal13TiffDirectory11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1139|  21.4k|                                  size_t& imageIdx) const {
 1140|  21.4k|  size_t len = 0;
 1141|  1.44M|  for (auto&& component : components_) {
  ------------------
  |  Branch (1141:25): [True: 1.44M, False: 21.4k]
  ------------------
 1142|  1.44M|    len += component->writeData(ioWrapper, byteOrder, offset, dataIdx + len, imageIdx);
 1143|  1.44M|  }
 1144|  21.4k|  return len;
 1145|  21.4k|}  // TiffDirectory::doWriteData
_ZNK5Exiv28Internal13TiffEntryBase11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1148|  1.42M|                                  size_t /*dataIdx*/, size_t& /*imageIdx*/) const {
 1149|  1.42M|  return 0;
 1150|  1.42M|}  // TiffEntryBase::doWriteData
_ZNK5Exiv28Internal14TiffImageEntry11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1153|  9.30k|                                   size_t& /*imageIdx*/) const {
 1154|  9.30k|  size_t len = 0;
 1155|       |  // For makernotes, write TIFF image data to the data area
 1156|  9.30k|  if (group() > IfdId::mnId) {  // Todo: FIX THIS HACK!!!
  ------------------
  |  Branch (1156:7): [True: 87, False: 9.22k]
  ------------------
 1157|     87|    len = writeImage(ioWrapper, byteOrder);
 1158|     87|  }
 1159|  9.30k|  return len;
 1160|  9.30k|}  // TiffImageEntry::doWriteData
_ZNK5Exiv28Internal13TiffDataEntry11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1163|  2.88k|                                  size_t& /*imageIdx*/) const {
 1164|  2.88k|  if (!pValue())
  ------------------
  |  Branch (1164:7): [True: 0, False: 2.88k]
  ------------------
 1165|      0|    return 0;
 1166|       |
 1167|  2.88k|  DataBuf buf = pValue()->dataArea();
 1168|  2.88k|  if (!buf.empty())
  ------------------
  |  Branch (1168:7): [True: 9, False: 2.87k]
  ------------------
 1169|      9|    ioWrapper.write(buf.c_data(), buf.size());
 1170|       |  // Align data to word boundary
 1171|  2.88k|  size_t align = (buf.size() & 1);
 1172|  2.88k|  if (align)
  ------------------
  |  Branch (1172:7): [True: 9, False: 2.87k]
  ------------------
 1173|      9|    ioWrapper.putb(0x0);
 1174|       |
 1175|  2.88k|  return buf.size() + align;
 1176|  2.88k|}  // TiffDataEntry::doWriteData
_ZNK5Exiv28Internal10TiffSubIfd11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1179|  7.66k|                               size_t& imageIdx) const {
 1180|  7.66k|  size_t len = 0;
 1181|  7.66k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (1181:19): [True: 7.66k, False: 7.66k]
  ------------------
 1182|  7.66k|    len += ifd->write(ioWrapper, byteOrder, offset + dataIdx + len, std::string::npos, std::string::npos, imageIdx);
 1183|  7.66k|  }
 1184|       |  // Align data to word boundary
 1185|  7.66k|  size_t align = (len & 1);
 1186|  7.66k|  if (align)
  ------------------
  |  Branch (1186:7): [True: 0, False: 7.66k]
  ------------------
 1187|      0|    ioWrapper.putb(0x0);
 1188|       |
 1189|  7.66k|  return len + align;
 1190|  7.66k|}  // TiffSubIfd::doWriteData
_ZNK5Exiv28Internal13TiffComponent10writeImageERNS0_9IoWrapperENS_9ByteOrderE:
 1197|   641k|size_t TiffComponent::writeImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1198|   641k|  return doWriteImage(ioWrapper, byteOrder);
 1199|   641k|}  // TiffComponent::writeImage
_ZNK5Exiv28Internal13TiffDirectory12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1201|  12.6k|size_t TiffDirectory::doWriteImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1202|  12.6k|  size_t len = 0;
 1203|  12.6k|  const TiffComponent* pSubIfd = nullptr;
 1204|   628k|  for (const auto& component : components_) {
  ------------------
  |  Branch (1204:30): [True: 628k, False: 12.6k]
  ------------------
 1205|   628k|    if (component->tag() == 0x014a) {
  ------------------
  |  Branch (1205:9): [True: 28, False: 628k]
  ------------------
 1206|       |      // Hack: delay writing of sub-IFD image data to get the order correct
 1207|     28|#ifndef SUPPRESS_WARNINGS
 1208|     28|      if (pSubIfd) {
  ------------------
  |  Branch (1208:11): [True: 7, False: 21]
  ------------------
 1209|      7|        EXV_ERROR << "Multiple sub-IFD image data tags found\n";
  ------------------
  |  |  142|      7|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 7]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      7|  LogMsg(LogMsg::error).os()
  ------------------
 1210|      7|      }
 1211|     28|#endif
 1212|     28|      pSubIfd = component.get();
 1213|     28|      continue;
 1214|     28|    }
 1215|   628k|    len += component->writeImage(ioWrapper, byteOrder);
 1216|   628k|  }
 1217|  12.6k|  if (pSubIfd) {
  ------------------
  |  Branch (1217:7): [True: 21, False: 12.6k]
  ------------------
 1218|     21|    len += pSubIfd->writeImage(ioWrapper, byteOrder);
 1219|     21|  }
 1220|  12.6k|  if (pNext_) {
  ------------------
  |  Branch (1220:7): [True: 209, False: 12.4k]
  ------------------
 1221|    209|    len += pNext_->writeImage(ioWrapper, byteOrder);
 1222|    209|  }
 1223|  12.6k|  return len;
 1224|  12.6k|}  // TiffDirectory::doWriteImage
_ZNK5Exiv28Internal13TiffEntryBase12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1226|   614k|size_t TiffEntryBase::doWriteImage(IoWrapper& /*ioWrapper*/, ByteOrder /*byteOrder*/) const {
 1227|   614k|  return 0;
 1228|   614k|}  // TiffEntryBase::doWriteImage
_ZNK5Exiv28Internal10TiffSubIfd12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1230|  4.76k|size_t TiffSubIfd::doWriteImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1231|  4.76k|  return std::transform_reduce(ifds_.begin(), ifds_.end(), size_t{}, std::plus(),
 1232|  4.76k|                               [&](const auto& ifd) { return ifd->writeImage(ioWrapper, byteOrder); });
 1233|  4.76k|}  // TiffSubIfd::doWriteImage
_ZNK5Exiv28Internal14TiffImageEntry12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1243|  9.30k|size_t TiffImageEntry::doWriteImage(IoWrapper& ioWrapper, ByteOrder /*byteOrder*/) const {
 1244|  9.30k|  if (!pValue())
  ------------------
  |  Branch (1244:7): [True: 0, False: 9.30k]
  ------------------
 1245|      0|    throw Error(ErrorCode::kerImageWriteFailed);  // #1296
 1246|       |
 1247|  9.30k|  size_t len = pValue()->sizeDataArea();
 1248|  9.30k|  if (len > 0) {
  ------------------
  |  Branch (1248:7): [True: 117, False: 9.18k]
  ------------------
 1249|       |#ifdef EXIV2_DEBUG_MESSAGES
 1250|       |    std::cerr << "TiffImageEntry, Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0')
 1251|       |              << std::hex << tag() << std::dec << ": Writing data area, size = " << len;
 1252|       |#endif
 1253|    117|    DataBuf buf = pValue()->dataArea();
 1254|    117|    ioWrapper.write(buf.c_data(), buf.size());
 1255|    117|    size_t align = len & 1;  // Align image data to word boundary
 1256|    117|    if (align)
  ------------------
  |  Branch (1256:9): [True: 41, False: 76]
  ------------------
 1257|     41|      ioWrapper.putb(0x0);
 1258|    117|    len += align;
 1259|  9.18k|  } else {
 1260|       |#ifdef EXIV2_DEBUG_MESSAGES
 1261|       |    std::cerr << "TiffImageEntry, Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0')
 1262|       |              << std::hex << tag() << std::dec << ": Writing " << strips_.size() << " strips";
 1263|       |#endif
 1264|  9.18k|    len = 0;
 1265|  9.18k|    for (auto&& [f, s] : strips_) {
  ------------------
  |  Branch (1265:24): [True: 308, False: 9.18k]
  ------------------
 1266|    308|      ioWrapper.write(f, s);
 1267|    308|      len += s;
 1268|    308|      size_t align = s & 1;  // Align strip data to word boundary
 1269|    308|      if (align)
  ------------------
  |  Branch (1269:11): [True: 151, False: 157]
  ------------------
 1270|    151|        ioWrapper.putb(0x0);
 1271|    308|      len += align;
 1272|    308|    }
 1273|  9.18k|  }
 1274|       |#ifdef EXIV2_DEBUG_MESSAGES
 1275|       |  std::cerr << ", len = " << len << " bytes\n";
 1276|       |#endif
 1277|  9.30k|  return len;
 1278|  9.30k|}  // TiffImageEntry::doWriteImage
_ZNK5Exiv28Internal13TiffComponent4sizeEv:
 1280|  13.9M|size_t TiffComponent::size() const {
 1281|  13.9M|  return doSize();
 1282|  13.9M|}
_ZNK5Exiv28Internal13TiffDirectory6doSizeEv:
 1284|   101k|size_t TiffDirectory::doSize() const {
 1285|   101k|  size_t compCount = count();
 1286|       |  // Size of the directory, without values and additional data
 1287|   101k|  size_t len = 2 + (12 * compCount) + (hasNext_ ? 4 : 0);
  ------------------
  |  Branch (1287:40): [True: 101k, False: 279]
  ------------------
 1288|       |  // Size of IFD values and data
 1289|  7.35M|  for (auto&& component : components_) {
  ------------------
  |  Branch (1289:25): [True: 7.35M, False: 101k]
  ------------------
 1290|  7.35M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (1290:40): [True: 364k, False: 6.99M]
  ------------------
 1291|   364k|      sv += sv & 1;  // Align value to word boundary
 1292|   364k|      len += sv;
 1293|   364k|    }
 1294|  7.35M|    auto sd = component->sizeData();
 1295|  7.35M|    sd += sd & 1;  // Align data to word boundary
 1296|  7.35M|    len += sd;
 1297|  7.35M|  }
 1298|       |  // Size of next-IFD, if any
 1299|   101k|  size_t sizeNext = 0;
 1300|   101k|  if (pNext_) {
  ------------------
  |  Branch (1300:7): [True: 0, False: 101k]
  ------------------
 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|   101k|  if (compCount == 0 && sizeNext == 0)
  ------------------
  |  Branch (1305:7): [True: 90, False: 101k]
  |  Branch (1305:25): [True: 90, False: 0]
  ------------------
 1306|     90|    len = 0;
 1307|   101k|  return len;
 1308|   101k|}
_ZNK5Exiv28Internal13TiffEntryBase6doSizeEv:
 1310|  68.4M|size_t TiffEntryBase::doSize() const {
 1311|  68.4M|  return size_;
 1312|  68.4M|}
_ZNK5Exiv28Internal14TiffImageEntry6doSizeEv:
 1314|  38.6k|size_t TiffImageEntry::doSize() const {
 1315|  38.6k|  return strips_.size() * 4;
 1316|  38.6k|}
_ZNK5Exiv28Internal10TiffSubIfd6doSizeEv:
 1318|  56.8k|size_t TiffSubIfd::doSize() const {
 1319|  56.8k|  return ifds_.size() * 4;
 1320|  56.8k|}
_ZNK5Exiv28Internal11TiffMnEntry6doSizeEv:
 1322|  65.2k|size_t TiffMnEntry::doSize() const {
 1323|  65.2k|  if (!mn_) {
  ------------------
  |  Branch (1323:7): [True: 23.6k, False: 41.6k]
  ------------------
 1324|  23.6k|    return TiffEntryBase::doSize();
 1325|  23.6k|  }
 1326|  41.6k|  return mn_->size();
 1327|  65.2k|}
_ZNK5Exiv28Internal16TiffIfdMakernote6doSizeEv:
 1329|  47.5k|size_t TiffIfdMakernote::doSize() const {
 1330|  47.5k|  return sizeHeader() + ifd_.size();
 1331|  47.5k|}
_ZNK5Exiv28Internal15TiffBinaryArray6doSizeEv:
 1333|   204k|size_t TiffBinaryArray::doSize() const {
 1334|   204k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (1334:7): [True: 3.57k, False: 201k]
  |  Branch (1334:17): [True: 136k, False: 65.0k]
  ------------------
 1335|   139k|    return TiffEntryBase::doSize();
 1336|       |
 1337|  65.0k|  if (elements_.empty())
  ------------------
  |  Branch (1337:7): [True: 0, False: 65.0k]
  ------------------
 1338|      0|    return 0;
 1339|       |
 1340|       |  // Remaining assumptions:
 1341|       |  // - array elements don't "overlap"
 1342|       |  // - no duplicate tags in the array
 1343|  65.0k|  size_t idx = 0;
 1344|  65.0k|  size_t sz = cfg()->tagStep();
 1345|  12.6M|  for (auto&& element : elements_) {
  ------------------
  |  Branch (1345:23): [True: 12.6M, False: 65.0k]
  ------------------
 1346|  12.6M|    if (element->tag() > idx) {
  ------------------
  |  Branch (1346:9): [True: 646k, False: 11.9M]
  ------------------
 1347|   646k|      idx = element->tag();
 1348|   646k|      sz = element->size();
 1349|   646k|    }
 1350|  12.6M|  }
 1351|  65.0k|  idx *= cfg()->tagStep();
 1352|  65.0k|  idx += sz;
 1353|       |
 1354|  65.0k|  if (cfg()->hasFillers_ && def()) {
  ------------------
  |  Branch (1354:7): [True: 56.4k, False: 8.58k]
  |  Branch (1354:29): [True: 56.4k, False: 0]
  ------------------
 1355|  56.4k|    const ArrayDef* lastDef = def() + defSize() - 1;
 1356|  56.4k|    auto lastTag = static_cast<uint16_t>(lastDef->idx_ / cfg()->tagStep());
 1357|  56.4k|    idx = std::max<size_t>(idx, lastDef->idx_ + lastDef->size(lastTag, cfg()->group_));
 1358|  56.4k|  }
 1359|  65.0k|  return idx;
 1360|       |
 1361|  65.0k|}  // TiffBinaryArray::doSize
_ZNK5Exiv28Internal17TiffBinaryElement6doSizeEv:
 1363|   646k|size_t TiffBinaryElement::doSize() const {
 1364|   646k|  if (!pValue())
  ------------------
  |  Branch (1364:7): [True: 0, False: 646k]
  ------------------
 1365|      0|    return 0;
 1366|   646k|  return pValue()->size();
 1367|   646k|}
_ZNK5Exiv28Internal13TiffComponent8sizeDataEv:
 1369|  10.8M|size_t TiffComponent::sizeData() const {
 1370|  10.8M|  return doSizeData();
 1371|  10.8M|}
_ZNK5Exiv28Internal13TiffEntryBase10doSizeDataEv:
 1377|  10.7M|size_t TiffEntryBase::doSizeData() const {
 1378|  10.7M|  return 0;
 1379|  10.7M|}
_ZNK5Exiv28Internal14TiffImageEntry10doSizeDataEv:
 1381|  29.1k|size_t TiffImageEntry::doSizeData() const {
 1382|  29.1k|  size_t len = 0;
 1383|       |  // For makernotes, TIFF image data is written to the data area
 1384|  29.1k|  if (group() > IfdId::mnId) {  // Todo: Fix this hack!!
  ------------------
  |  Branch (1384:7): [True: 1.34k, False: 27.7k]
  ------------------
 1385|  1.34k|    len = sizeImage();
 1386|  1.34k|  }
 1387|  29.1k|  return len;
 1388|  29.1k|}
_ZNK5Exiv28Internal13TiffDataEntry10doSizeDataEv:
 1390|  24.4k|size_t TiffDataEntry::doSizeData() const {
 1391|  24.4k|  if (!pValue())
  ------------------
  |  Branch (1391:7): [True: 0, False: 24.4k]
  ------------------
 1392|      0|    return 0;
 1393|  24.4k|  return pValue()->sizeDataArea();
 1394|  24.4k|}
_ZNK5Exiv28Internal10TiffSubIfd10doSizeDataEv:
 1396|  46.2k|size_t TiffSubIfd::doSizeData() const {
 1397|  46.2k|  return std::transform_reduce(ifds_.begin(), ifds_.end(), size_t{}, std::plus(), std::mem_fn(&TiffSubIfd::size));
 1398|  46.2k|}
_ZNK5Exiv28Internal13TiffComponent9sizeImageEv:
 1404|  1.34k|size_t TiffComponent::sizeImage() const {
 1405|  1.34k|  return doSizeImage();
 1406|  1.34k|}
_ZNK5Exiv28Internal14TiffImageEntry11doSizeImageEv:
 1426|  1.34k|size_t TiffImageEntry::doSizeImage() const {
 1427|  1.34k|  if (!pValue())
  ------------------
  |  Branch (1427:7): [True: 0, False: 1.34k]
  ------------------
 1428|      0|    return 0;
 1429|  1.34k|  auto len = pValue()->sizeDataArea();
 1430|  1.34k|  if (len != 0)
  ------------------
  |  Branch (1430:7): [True: 0, False: 1.34k]
  ------------------
 1431|      0|    return len;
 1432|       |
 1433|  1.34k|  return std::transform_reduce(strips_.begin(), strips_.end(), len, std::plus(),
 1434|  1.34k|                               [](const auto& s) { return s.second; });
 1435|  1.34k|}  // TiffImageEntry::doSizeImage
_ZN5Exiv28Internal8toTypeIdENS0_8TiffTypeEtNS_5IfdIdE:
 1452|  62.3M|TypeId toTypeId(TiffType tiffType, uint16_t tag, IfdId group) {
 1453|  62.3M|  auto ti = static_cast<TypeId>(tiffType);
 1454|       |  // On the fly type conversion for Exif.Photo.UserComment, Exif.GPSProcessingMethod, GPSAreaInformation
 1455|  62.3M|  if (const TagInfo* pTag = ti == undefined ? findTagInfo(tag, group) : nullptr) {
  ------------------
  |  Branch (1455:22): [True: 4.57k, False: 62.3M]
  ------------------
 1456|  4.57k|    if (pTag->typeId_ == comment) {
  ------------------
  |  Branch (1456:9): [True: 3.17k, False: 1.40k]
  ------------------
 1457|  3.17k|      ti = comment;
 1458|  3.17k|    }
 1459|  4.57k|  }
 1460|       |  // http://dev.exiv2.org/boards/3/topics/1337 change unsignedByte to signedByte
 1461|       |  // Exif.NikonAFT.AFFineTuneAdj || Exif.Pentax.Temperature
 1462|  62.3M|  if (ti == Exiv2::unsignedByte &&
  ------------------
  |  Branch (1462:7): [True: 5.95M, False: 56.4M]
  ------------------
 1463|  5.95M|      ((tag == 0x0002 && group == IfdId::nikonAFTId) || (tag == 0x0047 && group == IfdId::pentaxId))) {
  ------------------
  |  Branch (1463:9): [True: 4.04k, False: 5.95M]
  |  Branch (1463:26): [True: 237, False: 3.80k]
  |  Branch (1463:58): [True: 899, False: 5.95M]
  |  Branch (1463:75): [True: 54, False: 845]
  ------------------
 1464|    291|    ti = Exiv2::signedByte;
 1465|    291|  }
 1466|  62.3M|  return ti;
 1467|  62.3M|}
_ZN5Exiv28Internal10toTiffTypeENS_6TypeIdE:
 1469|  23.5M|TiffType toTiffType(TypeId typeId) {
 1470|  23.5M|  if (static_cast<uint32_t>(typeId) > 0xffff) {
  ------------------
  |  Branch (1470:7): [True: 0, False: 23.5M]
  ------------------
 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|  23.5M|  return static_cast<TiffType>(typeId);
 1478|  23.5M|}
_ZN5Exiv28Internal8cmpTagLtERKNSt3__110shared_ptrINS0_13TiffComponentEEES6_:
 1480|  13.4M|bool cmpTagLt(const TiffComponent::SharedPtr& lhs, const TiffComponent::SharedPtr& rhs) {
 1481|  13.4M|  if (lhs->tag() != rhs->tag())
  ------------------
  |  Branch (1481:7): [True: 9.45M, False: 4.02M]
  ------------------
 1482|  9.45M|    return lhs->tag() < rhs->tag();
 1483|  4.02M|  return lhs->idx() < rhs->idx();
 1484|  13.4M|}
_ZN5Exiv28Internal12newTiffEntryEtNS_5IfdIdE:
 1486|  6.95M|TiffComponent::UniquePtr newTiffEntry(uint16_t tag, IfdId group) {
 1487|  6.95M|  return std::make_unique<TiffEntry>(tag, group);
 1488|  6.95M|}
_ZN5Exiv28Internal14newTiffMnEntryEtNS_5IfdIdE:
 1490|  49.6k|TiffComponent::UniquePtr newTiffMnEntry(uint16_t tag, IfdId group) {
 1491|  49.6k|  return std::make_unique<TiffMnEntry>(tag, group, IfdId::mnId);
 1492|  49.6k|}
_ZN5Exiv28Internal20newTiffBinaryElementEtNS_5IfdIdE:
 1494|  19.4M|TiffComponent::UniquePtr newTiffBinaryElement(uint16_t tag, IfdId group) {
 1495|  19.4M|  return std::make_unique<TiffBinaryElement>(tag, group);
 1496|  19.4M|}
tiffcomposite_int.cpp:_ZZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_0clEv:
  473|  1.46M|  auto atc = [&] {
  474|  1.46M|    if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (474:9): [True: 1.44M, False: 16.8k]
  |  Branch (474:33): [True: 0, False: 1.44M]
  ------------------
  475|      0|      return std::move(object);
  476|      0|    }
  477|  1.46M|    return TiffCreator::create(tpi.extendedTag(), tpi.group());
  478|  1.46M|  }();
tiffcomposite_int.cpp:_ZZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_1clEv:
  485|  1.44M|  tc = [&] {
  486|  1.44M|    if (tpi.extendedTag() == Tag::next)
  ------------------
  |  Branch (486:9): [True: 231, False: 1.44M]
  ------------------
  487|    231|      return this->addNext(std::move(atc));
  488|  1.44M|    return this->addChild(std::move(atc));
  489|  1.44M|  }();
tiffcomposite_int.cpp:_ZZN5Exiv28Internal10TiffSubIfd9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_0clEv:
  508|  7.71k|  auto tc = [&] {
  509|  7.71k|    if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (509:9): [True: 0, False: 7.71k]
  |  Branch (509:33): [True: 0, False: 0]
  ------------------
  510|      0|      return addChild(std::move(object));
  511|      0|    }
  512|  7.71k|    return addChild(std::make_unique<TiffDirectory>(tpi1.tag(), tpi2.group()));
  513|  7.71k|  }();
tiffcomposite_int.cpp:_ZZNK5Exiv28Internal10TiffSubIfd12doWriteImageERNS0_9IoWrapperENS_9ByteOrderEENK3$_0clINSt3__110shared_ptrINS0_13TiffDirectoryEEEEEDaRKT_:
 1232|  4.76k|                               [&](const auto& ifd) { return ifd->writeImage(ioWrapper, byteOrder); });
tiffcomposite_int.cpp:_ZZNK5Exiv28Internal14TiffImageEntry11doSizeImageEvENK3$_0clINSt3__14pairIPKhmEEEEDaRKT_:
 1434|    373|                               [](const auto& s) { return s.second; });
tiffcomposite_int.cpp:_ZN5Exiv28InternalL11findTagInfoEtNS_5IfdIdE:
 1437|   108k|static const TagInfo* findTagInfo(uint16_t tag, IfdId group) {
 1438|   108k|  const TagInfo* tags = [=] {
 1439|   108k|    if (group == IfdId::gpsId)
 1440|   108k|      return Internal::gpsTagList();
 1441|   108k|    return group == IfdId::exifId ? Internal::exifTagList() : nullptr;
 1442|   108k|  }();
 1443|   108k|  if (tags)
  ------------------
  |  Branch (1443:7): [True: 5.30k, False: 103k]
  ------------------
 1444|   163k|    for (size_t idx = 0; tags[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (1444:26): [True: 162k, False: 724]
  ------------------
 1445|   162k|      if (tags[idx].tag_ == tag)
  ------------------
  |  Branch (1445:11): [True: 4.57k, False: 157k]
  ------------------
 1446|  4.57k|        return tags + idx;
 1447|   104k|  return nullptr;
 1448|   108k|}
tiffcomposite_int.cpp:_ZZN5Exiv28InternalL11findTagInfoEtNS_5IfdIdEENK3$_0clEv:
 1438|   108k|  const TagInfo* tags = [=] {
 1439|   108k|    if (group == IfdId::gpsId)
  ------------------
  |  Branch (1439:9): [True: 3.93k, False: 105k]
  ------------------
 1440|  3.93k|      return Internal::gpsTagList();
 1441|   105k|    return group == IfdId::exifId ? Internal::exifTagList() : nullptr;
  ------------------
  |  Branch (1441:12): [True: 1.37k, False: 103k]
  ------------------
 1442|   108k|  }();
tiffcomposite_int.cpp:_ZN12_GLOBAL__N_17fillGapERN5Exiv28Internal9IoWrapperEmm:
 1503|   905k|size_t fillGap(Exiv2::Internal::IoWrapper& ioWrapper, size_t curr, size_t tobe) {
 1504|   905k|  if (curr < tobe) {
  ------------------
  |  Branch (1504:7): [True: 439k, False: 465k]
  ------------------
 1505|   439k|    Exiv2::DataBuf buf(tobe - curr);
 1506|   439k|    ioWrapper.write(buf.c_data(), buf.size());
 1507|   439k|    return tobe - curr;
 1508|   439k|  }
 1509|   465k|  return 0;
 1510|   905k|}

_ZN5Exiv28Internal12TiffPathItemC2EjNS_5IfdIdE:
   74|  9.08M|  constexpr TiffPathItem(uint32_t extendedTag, IfdId group) : extendedTag_(extendedTag), group_(group) {
   75|  9.08M|  }
_ZNK5Exiv28Internal12TiffPathItem3tagEv:
   81|  36.9M|  [[nodiscard]] uint16_t tag() const {
   82|  36.9M|    return static_cast<uint16_t>(extendedTag_);
   83|  36.9M|  }
_ZNK5Exiv28Internal12TiffPathItem11extendedTagEv:
   85|  9.65M|  [[nodiscard]] uint32_t extendedTag() const {
   86|  9.65M|    return extendedTag_;
   87|  9.65M|  }
_ZNK5Exiv28Internal12TiffPathItem5groupEv:
   89|  9.48M|  [[nodiscard]] IfdId group() const {
   90|  9.48M|    return group_;
   91|  9.48M|  }
_ZN5Exiv28Internal13TiffComponentC2EtNS_5IfdIdE:
  170|  26.8M|  constexpr TiffComponent(uint16_t tag, IfdId group) : tag_(tag), group_(group) {
  171|  26.8M|  }
_ZN5Exiv28Internal13TiffComponent8setStartEPKh:
  216|  24.4M|  void setStart(const byte* pStart) {
  217|  24.4M|    pStart_ = const_cast<byte*>(pStart);
  218|  24.4M|  }
_ZNK5Exiv28Internal13TiffComponent3tagEv:
  240|   265M|  [[nodiscard]] uint16_t tag() const {
  241|   265M|    return tag_;
  242|   265M|  }
_ZNK5Exiv28Internal13TiffComponent5groupEv:
  244|   105M|  [[nodiscard]] IfdId group() const {
  245|   105M|    return group_;
  246|   105M|  }
_ZNK5Exiv28Internal13TiffComponent5startEv:
  248|  24.6M|  [[nodiscard]] byte* start() const {
  249|  24.6M|    return pStart_;
  250|  24.6M|  }
_ZN5Exiv28Internal13TiffEntryBase9setOffsetEm:
  416|  21.3M|  void setOffset(size_t offset) {
  417|  21.3M|    offset_ = offset;
  418|  21.3M|  }
_ZNK5Exiv28Internal13TiffEntryBase8tiffTypeEv:
  458|  1.51M|  [[nodiscard]] TiffType tiffType() const {
  459|  1.51M|    return tiffType_;
  460|  1.51M|  }
_ZNK5Exiv28Internal13TiffEntryBase6offsetEv:
  465|  73.3k|  [[nodiscard]] size_t offset() const {
  466|  73.3k|    return offset_;
  467|  73.3k|  }
_ZNK5Exiv28Internal13TiffEntryBase5pDataEv:
  476|  37.0M|  [[nodiscard]] const byte* pData() const {
  477|  37.0M|    return pData_;
  478|  37.0M|  }
_ZNK5Exiv28Internal13TiffEntryBase6pValueEv:
  480|  48.0M|  [[nodiscard]] const Value* pValue() const {
  481|  48.0M|    return pValue_.get();
  482|  48.0M|  }
_ZN5Exiv28Internal13TiffEntryBase8setCountEm:
  497|   910k|  void setCount(size_t count) {
  498|   910k|    count_ = count;
  499|   910k|  }
_ZN5Exiv28Internal13TiffEntryBase6setIdxEi:
  501|  21.2M|  void setIdx(int idx) {
  502|  21.2M|    idx_ = idx;
  503|  21.2M|  }
_ZNK5Exiv28Internal13TiffEntryBase7storageEv:
  540|  18.4M|  [[nodiscard]] std::shared_ptr<DataBuf> storage() const {
  541|  18.4M|    return storage_;
  542|  18.4M|  }
_ZNK5Exiv28Internal17TiffDataEntryBase5szTagEv:
  623|  43.9k|  [[nodiscard]] uint16_t szTag() const {
  624|  43.9k|    return szTag_;
  625|  43.9k|  }
_ZNK5Exiv28Internal17TiffDataEntryBase7szGroupEv:
  627|  43.9k|  [[nodiscard]] IfdId szGroup() const {
  628|  43.9k|    return szGroup_;
  629|  43.9k|  }
_ZNK5Exiv28Internal13TiffSizeEntry5dtTagEv:
  789|  57.9k|  [[nodiscard]] uint16_t dtTag() const {
  790|  57.9k|    return dtTag_;
  791|  57.9k|  }
_ZNK5Exiv28Internal13TiffSizeEntry7dtGroupEv:
  793|  57.9k|  [[nodiscard]] IfdId dtGroup() const {
  794|  57.9k|    return dtGroup_;
  795|  57.9k|  }
_ZNK5Exiv28Internal13TiffDirectory7hasNextEv:
  842|  22.4k|  [[nodiscard]] bool hasNext() const {
  843|  22.4k|    return hasNext_;
  844|  22.4k|  }
_ZN5Exiv28Internal16TiffIfdMakernote17setImageByteOrderENS_9ByteOrderE:
 1106|  35.9k|  void setImageByteOrder(ByteOrder byteOrder) {
 1107|  35.9k|    imageByteOrder_ = byteOrder;
 1108|  35.9k|  }
_ZNK5Exiv28Internal8ArrayDefeqEm:
 1217|  30.9M|  bool operator==(size_t idx) const {
 1218|  30.9M|    return idx_ == idx;
 1219|  30.9M|  }
_ZNK5Exiv28Internal8ArrayCfg7tagStepEv:
 1234|  19.5M|  [[nodiscard]] size_t tagStep() const {
 1235|  19.5M|    return elDefaultDef_.size(0, group_);
 1236|  19.5M|  }
_ZN5Exiv28Internal15TiffBinaryArray10setDecodedEb:
 1310|  19.3M|  void setDecoded(bool decoded) {
 1311|  19.3M|    decoded_ = decoded;
 1312|  19.3M|  }
_ZNK5Exiv28Internal15TiffBinaryArray3cfgEv:
 1318|  76.2M|  [[nodiscard]] const ArrayCfg* cfg() const {
 1319|  76.2M|    return arrayCfg_;
 1320|  76.2M|  }
_ZNK5Exiv28Internal15TiffBinaryArray3defEv:
 1322|   133k|  [[nodiscard]] const ArrayDef* def() const {
 1323|   133k|    return arrayDef_;
 1324|   133k|  }
_ZNK5Exiv28Internal15TiffBinaryArray7defSizeEv:
 1326|  72.5k|  [[nodiscard]] size_t defSize() const {
 1327|  72.5k|    return defSize_;
 1328|  72.5k|  }
_ZNK5Exiv28Internal15TiffBinaryArray7decodedEv:
 1330|   276k|  [[nodiscard]] bool decoded() const {
 1331|   276k|    return decoded_;
 1332|   276k|  }
_ZN5Exiv28Internal17TiffBinaryElement8setElDefERKNS0_8ArrayDefE:
 1404|  18.4M|  void setElDef(const ArrayDef& def) {
 1405|  18.4M|    elDef_ = def;
 1406|  18.4M|  }
_ZN5Exiv28Internal17TiffBinaryElement14setElByteOrderENS_9ByteOrderE:
 1410|  18.4M|  void setElByteOrder(ByteOrder byteOrder) {
 1411|  18.4M|    elByteOrder_ = byteOrder;
 1412|  18.4M|  }
_ZNK5Exiv28Internal17TiffBinaryElement5elDefEv:
 1420|  18.5M|  [[nodiscard]] const ArrayDef* elDef() const {
 1421|  18.5M|    return &elDef_;
 1422|  18.5M|  }
_ZNK5Exiv28Internal17TiffBinaryElement11elByteOrderEv:
 1426|  18.5M|  [[nodiscard]] ByteOrder elByteOrder() const {
 1427|  18.5M|    return elByteOrder_;
 1428|  18.5M|  }
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  34.1k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  34.1k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  34.1k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE56EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    109|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    109|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    109|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE5EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    223|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    223|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    223|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE21EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  11.4k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  11.4k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  11.4k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE6EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  1.12k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  1.12k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  1.12k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE5EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  9.76k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  9.76k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  9.76k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE6EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    117|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    117|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    117|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.73k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.73k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.73k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  3.22k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  3.22k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  3.22k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    768|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    768|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    768|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    981|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    981|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    981|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  10.2k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  10.2k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  10.2k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  22.2k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  22.2k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  22.2k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.80k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.80k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.80k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  5.92k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  5.92k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  5.92k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE9EEENSt3__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_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.11k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.11k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.11k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    313|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    313|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    313|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    291|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    291|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    291|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  4.45k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  4.45k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  4.45k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  5.03k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  5.03k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  5.03k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.33k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.33k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.33k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    952|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    952|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    952|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    519|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    519|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    519|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    377|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    377|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    377|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.52k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.52k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.52k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  5.17k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  5.17k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  5.17k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.42k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.42k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.42k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.15k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.15k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.15k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    432|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    432|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    432|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    503|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    503|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    503|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.25k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.25k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.25k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  3.86k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  3.86k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  3.86k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    914|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    914|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    914|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    956|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    956|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    956|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    412|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    412|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    412|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    361|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    361|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    361|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  2.93k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  2.93k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  2.93k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  4.38k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  4.38k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  4.38k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    377|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    377|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    377|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    462|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    462|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    462|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    597|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    597|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    597|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    799|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    799|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    799|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.04k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.04k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.04k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.28k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.28k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.28k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    638|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    638|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    638|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    254|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    254|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    254|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    472|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    472|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    472|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    544|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    544|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    544|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    582|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    582|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    582|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    855|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    855|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    855|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    461|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    461|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    461|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    399|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    399|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    399|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    426|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    426|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    426|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    632|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    632|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    632|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    849|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    849|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    849|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.02k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.02k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.02k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    497|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    497|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    497|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    435|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    435|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    435|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    515|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    515|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    515|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE16EEENSt3__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|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    401|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    401|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    401|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    525|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    525|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    525|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    266|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    266|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    266|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    434|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    434|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    434|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    510|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    510|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    510|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE17EEENSt3__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|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    388|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    388|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    388|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    537|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    537|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    537|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE7EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.06k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.06k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.06k|}
_ZN5Exiv28Internal16newTiffThumbDataILt279ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    287|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    287|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    287|}
_ZN5Exiv28Internal16newTiffThumbSizeILt273ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|    286|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|    286|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|    286|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    369|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    369|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    369|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    562|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    562|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    562|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    167|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    167|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    167|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE2EEENSt3__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_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  2.17k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  2.17k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  2.17k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    488|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    488|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    488|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    274|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    274|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    274|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    496|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    496|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    496|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    180|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    180|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    180|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    274|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    274|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    274|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    331|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    331|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    331|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    424|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    424|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    424|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     76|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     76|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     76|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    295|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    295|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    295|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    264|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    264|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    264|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    370|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    370|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    370|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|     90|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|     90|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|     90|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     82|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     82|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     82|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|     88|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|     88|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|     88|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    247|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    247|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    247|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    237|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    237|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    237|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10minoCsoCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  20.4k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  20.4k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  20.4k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10minoCsnCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  4.48k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  4.48k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  4.48k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE100EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    334|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    334|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    334|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  10.8k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  10.8k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  10.8k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE101EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    862|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    862|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    862|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE102EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    140|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    140|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    140|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE103EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    624|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    624|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    624|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE104EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    137|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    137|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    137|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE105EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.30k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.30k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.30k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE106EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    164|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    164|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    164|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE107EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    430|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    430|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    430|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE108EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    436|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    436|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    436|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE109EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.62k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.62k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.62k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE110EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    742|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    742|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    742|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE111EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    223|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    223|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    223|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE112EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  3.84k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  3.84k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  3.84k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE113EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  7.12k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  7.12k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  7.12k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE114EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  2.82k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  2.82k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  2.82k|}
_ZN5Exiv28Internal16newTiffImageDataILt258ELNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    864|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    864|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    864|}
_ZN5Exiv28Internal16newTiffImageSizeILt257ELNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    355|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    355|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    355|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonCsCfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonCsDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  14.0k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  14.0k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  14.0k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  14.0k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonSiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  2.42k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  2.42k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  2.42k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPaCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  1.47k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  1.47k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  1.47k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonCfCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    920|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    920|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    920|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    553|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    553|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    553|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonTiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    565|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    565|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    565|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonFiCfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonFiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    810|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    810|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    810|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    810|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPrCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    200|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    200|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    200|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L15canonAfMiAdjCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    115|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    115|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    115|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L15canonVigCor2CfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     63|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     63|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     63|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12canonLiOpCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    242|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    242|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    242|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonLeCfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonLeDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|     41|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|     41|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|     41|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|     41|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonAmCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    178|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    178|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    178|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonMeCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    124|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    124|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    124|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonFilCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     67|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     67|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     67|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonHdrCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    231|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    231|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    231|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonAfCCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    838|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    838|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    838|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12canonRawBCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     83|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     83|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     83|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    369|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    369|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    369|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonVrCfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonVrDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    128|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    128|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    128|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    128|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonPcCfgEELm13ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonPcDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    161|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    161|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    161|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    161|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonWtCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonWtDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    217|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    217|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    217|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    217|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonIiCfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonIiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    166|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    166|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    166|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    166|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonAfCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonAfDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    174|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    174|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    174|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    174|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm6ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonSiSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    172|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    172|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    172|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    172|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm6ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonCbSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    320|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    320|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    320|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    320|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm4ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonLdSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    249|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    249|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    249|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    249|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm5ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonFlSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    239|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    239|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    239|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    239|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonMeCfgEELm4ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonMeDefEEEENSt3__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:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L11nikonAf2SetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|     88|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|     88|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|     88|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|     88|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonFiCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonFiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    366|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    366|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    366|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    366|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L11nikonAFTCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L11nikonAFTDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    199|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    199|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    199|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    199|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    103|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    103|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    103|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|    111|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|    111|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|    111|}
_ZN5Exiv28Internal16newTiffThumbSizeILt4ELNS_5IfdIdE117EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  2.95k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  2.95k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  2.95k|}
_ZN5Exiv28Internal16newTiffThumbDataILt3ELNS_5IfdIdE117EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  3.09k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  3.09k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  3.09k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt4ELNS_5IfdIdE116EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  1.92k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  1.92k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  1.92k|}
_ZN5Exiv28Internal16newTiffThumbDataILt3ELNS_5IfdIdE116EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  1.57k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  1.57k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  1.57k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12samsungPwCfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L12samsungPwDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  5.03k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  5.03k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  5.03k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  5.03k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    514|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    514|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    514|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  2.16k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  2.16k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  2.16k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  3.11k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  3.11k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  3.11k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L12sony2010eSetEEXadL_ZNS0_17sony2010eSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|     92|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|     92|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|     92|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|     92|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony2FpSetEEXadL_ZNS0_15sony2FpSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    807|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    807|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    807|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    807|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L13sonyMisc2bSetEEXadL_ZNS0_18sonyMisc2bSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    189|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    189|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    189|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    189|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L13sonyMisc3cSetEEXadL_ZNS0_18sonyMisc3cSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    468|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    468|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    468|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    468|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12sonyMisc1CfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L12sonyMisc1DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    174|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    174|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    174|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    174|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L13sonySInfo1CfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L13sonySInfo1DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  1.09k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  1.09k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  1.09k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  1.09k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony1CsSetEEXadL_ZNS0_14sonyCsSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    738|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    738|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    738|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    738|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    292|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    292|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    292|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony2CsSetEEXadL_ZNS0_14sonyCsSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    878|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    878|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    878|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    878|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12sony1MCsoCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    609|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    609|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    609|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12sony1MCsnCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    397|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    397|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    397|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12sony1MCs7CfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs7DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    428|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    428|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    428|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    428|}
_ZN5Exiv28Internal16newTiffThumbDataILt137ELNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    330|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    330|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    330|}
_ZN5Exiv28Internal16newTiffThumbSizeILt136ELNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|     21|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|     21|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|     21|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L15sony1MCsA100CfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L15sony1MCsA100DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    284|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    284|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    284|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    284|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10minoCs7CfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs7DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  1.06k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  1.06k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  1.06k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  1.06k|}
_ZN5Exiv28Internal16newTiffThumbDataILt137ELNS_5IfdIdE57EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    118|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    118|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    118|}
_ZN5Exiv28Internal16newTiffThumbSizeILt136ELNS_5IfdIdE57EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|     54|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|     54|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|     54|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10minoCs5CfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs5DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    151|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    151|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    151|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    151|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE19EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  2.39k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  2.39k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  2.39k|}
_ZN5Exiv28Internal13TiffComponentD2Ev:
  173|  26.8M|  virtual ~TiffComponent() = default;
_ZN5Exiv28Internal13TiffDirectoryD2Ev:
  830|   145k|  ~TiffDirectory() override = default;
_ZN5Exiv28Internal10TiffSubIfdD2Ev:
  937|  45.8k|  ~TiffSubIfd() override = default;
_ZN5Exiv28Internal15TiffBinaryArrayD2Ev:
 1269|  62.9k|  ~TiffBinaryArray() override = default;

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

_ZNK5Exiv28Internal13FindExifdatumclERKNS_9ExifdatumE:
   29|  16.1M|bool FindExifdatum::operator()(const Exiv2::Exifdatum& md) const {
   30|  16.1M|  return ifdId_ == md.ifdId();
   31|  16.1M|}
_ZN5Exiv28Internal11TiffMapping11findDecoderENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEjNS_5IfdIdE:
 1991|  21.1M|DecoderFct TiffMapping::findDecoder(std::string_view make, uint32_t extendedTag, IfdId group) {
 1992|  21.1M|  DecoderFct decoderFct = &TiffDecoder::decodeStdTiffEntry;
 1993|  21.1M|  if (auto td = Exiv2::find(tiffMappingInfo_, TiffMappingInfo::Key{make, extendedTag, group})) {
  ------------------
  |  Branch (1993:12): [True: 5.16k, False: 21.1M]
  ------------------
 1994|       |    // This may set decoderFct to 0, meaning that the tag should not be decoded
 1995|  5.16k|    decoderFct = td->decoderFct_;
 1996|  5.16k|  }
 1997|  21.1M|  return decoderFct;
 1998|  21.1M|}
_ZN5Exiv28Internal11TiffMapping11findEncoderENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEjNS_5IfdIdE:
 2000|  2.33M|EncoderFct TiffMapping::findEncoder(std::string_view make, uint32_t extendedTag, IfdId group) {
 2001|  2.33M|  EncoderFct encoderFct = nullptr;
 2002|  2.33M|  if (auto td = Exiv2::find(tiffMappingInfo_, TiffMappingInfo::Key{make, extendedTag, group})) {
  ------------------
  |  Branch (2002:12): [True: 569, False: 2.33M]
  ------------------
 2003|       |    // Returns 0 if no special encoder function is found
 2004|    569|    encoderFct = td->encoderFct_;
 2005|    569|  }
 2006|  2.33M|  return encoderFct;
 2007|  2.33M|}
_ZN5Exiv28Internal11TiffCreator6createEjNS_5IfdIdE:
 2009|  26.8M|TiffComponent::UniquePtr TiffCreator::create(uint32_t extendedTag, IfdId group) {
 2010|  26.8M|  auto tag = static_cast<uint16_t>(extendedTag);
 2011|  26.8M|  auto i = tiffGroupTable_.find(TiffGroupKey(extendedTag, group));
 2012|       |  // If the lookup failed then try again with Tag::all.
 2013|  26.8M|  if (i == tiffGroupTable_.end()) {
  ------------------
  |  Branch (2013:7): [True: 26.4M, False: 355k]
  ------------------
 2014|  26.4M|    i = tiffGroupTable_.find(TiffGroupKey(Tag::all, group));
 2015|  26.4M|  }
 2016|  26.8M|  if (i != tiffGroupTable_.end() && i->second) {
  ------------------
  |  Branch (2016:7): [True: 26.7M, False: 65.1k]
  |  Branch (2016:7): [True: 26.7M, False: 76.1k]
  |  Branch (2016:37): [True: 26.7M, False: 11.0k]
  ------------------
 2017|  26.7M|    return i->second(tag, group);
 2018|  26.7M|  }
 2019|       |#ifdef EXIV2_DEBUG_MESSAGES
 2020|       |  if (i == tiffGroupTable_.end())
 2021|       |    std::cerr << "Warning: No TIFF structure entry found for ";
 2022|       |  else
 2023|       |    std::cerr << "Warning: No TIFF component creator found for ";
 2024|       |  std::cerr << "extended tag 0x" << std::setw(4) << std::setfill('0') << std::hex << std::right << extendedTag
 2025|       |            << ", group " << groupName(group) << "\n";
 2026|       |#endif
 2027|  76.1k|  return nullptr;
 2028|  26.8M|}  // TiffCreator::create
_ZN5Exiv28Internal11TiffCreator7getPathEjNS_5IfdIdEj:
 2030|  2.34M|TiffPath TiffCreator::getPath(uint32_t extendedTag, IfdId group, uint32_t root) {
 2031|  2.34M|  TiffPath ret;
 2032|  9.08M|  while (true) {
  ------------------
  |  Branch (2032:10): [True: 9.08M, Folded]
  ------------------
 2033|  9.08M|    ret.emplace(extendedTag, group);
 2034|  9.08M|    const auto ts = tiffTreeTable_.find(TiffGroupKey(root, group));
 2035|  9.08M|    assert(ts != tiffTreeTable_.end());
 2036|  9.08M|    extendedTag = ts->second.second;
 2037|  9.08M|    group = ts->second.first;
 2038|  9.08M|    if (ts->first == TiffGroupKey(root, IfdId::ifdIdNotSet)) {
  ------------------
  |  Branch (2038:9): [True: 2.34M, False: 6.73M]
  ------------------
 2039|  2.34M|      break;
 2040|  2.34M|    }
 2041|  9.08M|  }
 2042|  2.34M|  return ret;
 2043|  2.34M|}
_ZN5Exiv28Internal16TiffParserWorker6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhmjPFMNS0_11TiffDecoderEFvPKNS0_13TiffEntryBaseEENSt3__117basic_string_viewIcNSG_11char_traitsIcEEEEjNS_5IfdIdEERKNS_12DecodeParamsEPNS0_14TiffHeaderBaseE:
 2047|  41.0k|                                   TiffHeaderBase* pHeader) {
 2048|       |  // Create standard TIFF header if necessary
 2049|  41.0k|  std::unique_ptr<TiffHeaderBase> ph;
 2050|  41.0k|  if (!pHeader) {
  ------------------
  |  Branch (2050:7): [True: 37.8k, False: 3.21k]
  ------------------
 2051|  37.8k|    ph = std::make_unique<TiffHeader>();
 2052|  37.8k|    pHeader = ph.get();
 2053|  37.8k|  }
 2054|       |
 2055|  41.0k|  if (auto rootDir = parse(pData, size, root, pHeader)) {
  ------------------
  |  Branch (2055:12): [True: 40.8k, False: 271]
  ------------------
 2056|  40.8k|    auto decoder = TiffDecoder(exifData, iptcData, xmpData, rootDir.get(), findDecoderFct, dp);
 2057|  40.8k|    rootDir->accept(decoder);
 2058|  40.8k|  }
 2059|  41.0k|  return pHeader->byteOrder();
 2060|       |
 2061|  41.0k|}  // TiffParserWorker::decode
_ZN5Exiv28Internal16TiffParserWorker6encodeERNS_7BasicIoEPKhmRKNS_8ExifDataERKNS_8IptcDataERKNS_7XmpDataEjPFMNS0_11TiffEncoderEFvPNS0_13TiffEntryBaseEPKNS_9ExifdatumEENSt3__117basic_string_viewIcNSN_11char_traitsIcEEEEjNS_5IfdIdEEPNS0_14TiffHeaderBaseEPNS0_12OffsetWriterE:
 2066|  7.87k|                                     OffsetWriter* pOffsetWriter) {
 2067|       |  /*
 2068|       |     1) parse the binary image, if one is provided, and
 2069|       |     2) attempt updating the parsed tree in-place ("non-intrusive writing")
 2070|       |     3) else, create a new tree and write a new TIFF structure ("intrusive
 2071|       |        writing"). If there is a parsed tree, it is only used to access the
 2072|       |        image data in this case.
 2073|       |   */
 2074|  7.87k|  WriteMethod writeMethod = wmIntrusive;
 2075|  7.87k|  auto parsedTree = parse(pData, size, root, pHeader);
 2076|  7.87k|  auto primaryGroups = findPrimaryGroups(parsedTree);
 2077|  7.87k|  if (parsedTree) {
  ------------------
  |  Branch (2077:7): [True: 681, False: 7.19k]
  ------------------
 2078|       |    // Attempt to update existing TIFF components based on metadata entries
 2079|    681|    TiffEncoder encoder(exifData, iptcData, xmpData, parsedTree.get(), false, primaryGroups, pHeader, findEncoderFct);
 2080|    681|    parsedTree->accept(encoder);
 2081|    681|    if (!encoder.dirty())
  ------------------
  |  Branch (2081:9): [True: 49, False: 632]
  ------------------
 2082|     49|      writeMethod = wmNonIntrusive;
 2083|    681|  }
 2084|  7.87k|  if (writeMethod == wmIntrusive) {
  ------------------
  |  Branch (2084:7): [True: 7.82k, False: 49]
  ------------------
 2085|  7.82k|    auto createdTree = TiffCreator::create(root, IfdId::ifdIdNotSet);
 2086|  7.82k|    if (parsedTree) {
  ------------------
  |  Branch (2086:9): [True: 632, False: 7.19k]
  ------------------
 2087|       |      // Copy image tags from the original image to the composite
 2088|    632|      TiffCopier copier(createdTree.get(), root, pHeader, primaryGroups);
 2089|    632|      parsedTree->accept(copier);
 2090|    632|    }
 2091|       |    // Add entries from metadata to composite
 2092|  7.82k|    TiffEncoder encoder(exifData, iptcData, xmpData, createdTree.get(), !parsedTree, std::move(primaryGroups), pHeader,
 2093|  7.82k|                        findEncoderFct);
 2094|  7.82k|    encoder.add(createdTree.get(), std::move(parsedTree), root);
 2095|       |    // Write binary representation from the composite tree
 2096|  7.82k|    DataBuf header = pHeader->write();
 2097|  7.82k|    auto tempIo = MemIo();
 2098|  7.82k|    IoWrapper ioWrapper(tempIo, header.c_data(), header.size(), pOffsetWriter);
 2099|  7.82k|    auto imageIdx(std::string::npos);
 2100|  7.82k|    createdTree->write(ioWrapper, pHeader->byteOrder(), header.size(), std::string::npos, std::string::npos, imageIdx);
 2101|  7.82k|    if (pOffsetWriter)
  ------------------
  |  Branch (2101:9): [True: 0, False: 7.82k]
  ------------------
 2102|      0|      pOffsetWriter->writeOffsets(tempIo);
 2103|  7.82k|    io.transfer(tempIo);  // may throw
 2104|  7.82k|#ifndef SUPPRESS_WARNINGS
 2105|  7.82k|    EXV_INFO << "Write strategy: Intrusive\n";
  ------------------
  |  |  134|  7.82k|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 7.82k]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|  7.82k|  LogMsg(LogMsg::info).os()
  ------------------
 2106|  7.82k|#endif
 2107|  7.82k|  }
 2108|     49|#ifndef SUPPRESS_WARNINGS
 2109|     49|  else {
 2110|     49|    EXV_INFO << "Write strategy: Non-intrusive\n";
  ------------------
  |  |  134|     49|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 49]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|     49|  LogMsg(LogMsg::info).os()
  ------------------
 2111|     49|  }
 2112|  7.87k|#endif
 2113|  7.87k|  return writeMethod;
 2114|  7.87k|}  // TiffParserWorker::encode
_ZN5Exiv28Internal16TiffParserWorker5parseEPKhmjPNS0_14TiffHeaderBaseE:
 2117|  48.9k|                                                 TiffHeaderBase* pHeader) {
 2118|  48.9k|  TiffComponent::UniquePtr rootDir;
 2119|  48.9k|  if (!pData || size == 0)
  ------------------
  |  Branch (2119:7): [True: 7.35k, False: 41.5k]
  |  Branch (2119:17): [True: 0, False: 41.5k]
  ------------------
 2120|  7.35k|    return rootDir;
 2121|  41.5k|  if (!pHeader->read(pData, size) || pHeader->offset() >= size) {
  ------------------
  |  Branch (2121:7): [True: 45, False: 41.5k]
  |  Branch (2121:38): [True: 61, False: 41.4k]
  ------------------
 2122|    106|    throw Error(ErrorCode::kerNotAnImage, "TIFF");
 2123|    106|  }
 2124|  41.4k|  rootDir = TiffCreator::create(root, IfdId::ifdIdNotSet);
 2125|  41.4k|  if (rootDir) {
  ------------------
  |  Branch (2125:7): [True: 41.4k, False: 0]
  ------------------
 2126|  41.4k|    rootDir->setStart(pData + pHeader->offset());
 2127|  41.4k|    auto state = TiffRwState{pHeader->byteOrder(), 0};
 2128|  41.4k|    auto reader = TiffReader{pData, size, rootDir.get(), state};
 2129|  41.4k|    rootDir->accept(reader);
 2130|  41.4k|    reader.postProcess();
 2131|  41.4k|  }
 2132|  41.4k|  return rootDir;
 2133|       |
 2134|  41.5k|}  // TiffParserWorker::parse
_ZN5Exiv28Internal16TiffParserWorker17findPrimaryGroupsERKNSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEE:
 2136|  7.87k|PrimaryGroups TiffParserWorker::findPrimaryGroups(const TiffComponent::UniquePtr& pSourceDir) {
 2137|  7.87k|  PrimaryGroups ret;
 2138|  7.87k|  if (!pSourceDir)
  ------------------
  |  Branch (2138:7): [True: 7.19k, False: 681]
  ------------------
 2139|  7.19k|    return ret;
 2140|       |
 2141|    681|  static constexpr auto imageGroups = std::array{
 2142|    681|      IfdId::ifd0Id,      IfdId::ifd1Id,      IfdId::ifd2Id,      IfdId::ifd3Id,      IfdId::subImage1Id,
 2143|    681|      IfdId::subImage2Id, IfdId::subImage3Id, IfdId::subImage4Id, IfdId::subImage5Id, IfdId::subImage6Id,
 2144|    681|      IfdId::subImage7Id, IfdId::subImage8Id, IfdId::subImage9Id,
 2145|    681|  };
 2146|       |
 2147|  8.85k|  for (auto imageGroup : imageGroups) {
  ------------------
  |  Branch (2147:24): [True: 8.85k, False: 681]
  ------------------
 2148|  8.85k|    TiffFinder finder(0x00fe, imageGroup);
 2149|  8.85k|    pSourceDir->accept(finder);
 2150|  8.85k|    auto te = dynamic_cast<const TiffEntryBase*>(finder.result());
 2151|  8.85k|    if (!te)
  ------------------
  |  Branch (2151:9): [True: 8.79k, False: 60]
  ------------------
 2152|  8.79k|      continue;
 2153|     60|    const Value* pV = te->pValue();
 2154|     60|    if (pV && pV->typeId() == unsignedLong && pV->count() == 1 && (pV->toInt64() & 1) == 0) {
  ------------------
  |  Branch (2154:9): [True: 48, False: 12]
  |  Branch (2154:15): [True: 31, False: 17]
  |  Branch (2154:47): [True: 20, False: 11]
  |  Branch (2154:67): [True: 10, False: 10]
  ------------------
 2155|     10|      ret.push_back(te->group());
 2156|     10|    }
 2157|     60|  }
 2158|    681|  return ret;
 2159|  7.87k|}  // TiffParserWorker::findPrimaryGroups
_ZN5Exiv28Internal14TiffHeaderBaseC2EtjNS_9ByteOrderEj:
 2162|   273k|    tag_(tag), size_(size), byteOrder_(byteOrder), offset_(offset) {
 2163|   273k|}
_ZN5Exiv28Internal14TiffHeaderBase4readEPKhm:
 2165|   219k|bool TiffHeaderBase::read(const byte* pData, size_t size) {
 2166|   219k|  if (!pData || size < 8)
  ------------------
  |  Branch (2166:7): [True: 0, False: 219k]
  |  Branch (2166:17): [True: 16, False: 219k]
  ------------------
 2167|     16|    return false;
 2168|       |
 2169|   219k|  if (pData[0] == 'I' && pData[0] == pData[1]) {
  ------------------
  |  Branch (2169:7): [True: 7.69k, False: 211k]
  |  Branch (2169:26): [True: 7.52k, False: 173]
  ------------------
 2170|  7.52k|    byteOrder_ = littleEndian;
 2171|   212k|  } else if (pData[0] == 'M' && pData[0] == pData[1]) {
  ------------------
  |  Branch (2171:14): [True: 99.6k, False: 112k]
  |  Branch (2171:33): [True: 99.3k, False: 274]
  ------------------
 2172|  99.3k|    byteOrder_ = bigEndian;
 2173|   112k|  } else {
 2174|   112k|    return false;
 2175|   112k|  }
 2176|   106k|  uint16_t t = getUShort(pData + 2, byteOrder_);
 2177|   106k|  if (t != 444 && t != 17234 && tag_ != t)
  ------------------
  |  Branch (2177:7): [True: 106k, False: 71]
  |  Branch (2177:19): [True: 106k, False: 124]
  |  Branch (2177:33): [True: 12.9k, False: 93.7k]
  ------------------
 2178|  12.9k|    return false;  // 444 is for the JPEG-XR; 17234 is for DCP
 2179|  93.9k|  tag_ = t;
 2180|  93.9k|  offset_ = getULong(pData + 4, byteOrder_);
 2181|       |
 2182|  93.9k|  return true;
 2183|   106k|}
_ZNK5Exiv28Internal14TiffHeaderBase5writeEv:
 2185|  7.96k|DataBuf TiffHeaderBase::write() const {
 2186|  7.96k|  DataBuf buf(8);
 2187|  7.96k|  switch (byteOrder_) {
  ------------------
  |  Branch (2187:11): [True: 7.96k, False: 0]
  ------------------
 2188|  7.25k|    case littleEndian:
  ------------------
  |  Branch (2188:5): [True: 7.25k, False: 710]
  ------------------
 2189|  7.25k|      buf.write_uint8(0, 'I');
 2190|  7.25k|      break;
 2191|    710|    case bigEndian:
  ------------------
  |  Branch (2191:5): [True: 710, False: 7.25k]
  ------------------
 2192|    710|      buf.write_uint8(0, 'M');
 2193|    710|      break;
 2194|      0|    case invalidByteOrder:
  ------------------
  |  Branch (2194:5): [True: 0, False: 7.96k]
  ------------------
 2195|      0|      break;
 2196|  7.96k|  }
 2197|  7.96k|  buf.write_uint8(1, buf.read_uint8(0));
 2198|  7.96k|  buf.write_uint16(2, tag_, byteOrder_);
 2199|  7.96k|  buf.write_uint32(4, 0x00000008, byteOrder_);
 2200|  7.96k|  return buf;
 2201|  7.96k|}
_ZNK5Exiv28Internal14TiffHeaderBase9byteOrderEv:
 2219|   140k|ByteOrder TiffHeaderBase::byteOrder() const {
 2220|   140k|  return byteOrder_;
 2221|   140k|}
_ZN5Exiv28Internal14TiffHeaderBase12setByteOrderENS_9ByteOrderE:
 2223|  20.0k|void TiffHeaderBase::setByteOrder(ByteOrder byteOrder) {
 2224|  20.0k|  byteOrder_ = byteOrder;
 2225|  20.0k|}
_ZNK5Exiv28Internal14TiffHeaderBase6offsetEv:
 2227|  85.0k|uint32_t TiffHeaderBase::offset() const {
 2228|  85.0k|  return offset_;
 2229|  85.0k|}
_ZN5Exiv28Internal14TiffHeaderBase9setOffsetEj:
 2231|  17.2k|void TiffHeaderBase::setOffset(uint32_t offset) {
 2232|  17.2k|  offset_ = offset;
 2233|  17.2k|}
_ZNK5Exiv28Internal14TiffHeaderBase3tagEv:
 2239|  22.0k|uint16_t TiffHeaderBase::tag() const {
 2240|  22.0k|  return tag_;
 2241|  22.0k|}
_ZN5Exiv28Internal14isTiffImageTagEtNS_5IfdIdE:
 2325|   142k|bool isTiffImageTag(uint16_t tag, IfdId group) {
 2326|   142k|  const bool result = isTiffImageTagLookup(tag, group);
 2327|       |#ifdef EXIV2_DEBUG_MESSAGES
 2328|       |  if (result) {
 2329|       |    ExifKey key(tag, groupName(group));
 2330|       |    std::cerr << "Image tag: " << key << " (3)\n";
 2331|       |  } else {
 2332|       |    std::cerr << "Not an image tag: " << tag << " (4)\n";
 2333|       |  }
 2334|       |#endif
 2335|   142k|  return result;
 2336|   142k|}
_ZN5Exiv28Internal10TiffHeaderC2ENS_9ByteOrderEjb:
 2339|   201k|    TiffHeaderBase(42, 8, byteOrder, offset), hasImageTags_(hasImageTags) {
 2340|   201k|}
_ZNK5Exiv28Internal10TiffHeader10isImageTagEtNS_5IfdIdERKNSt3__16vectorIS2_NS3_9allocatorIS2_EEEE:
 2342|   275k|bool TiffHeader::isImageTag(uint16_t tag, IfdId group, const PrimaryGroups& pPrimaryGroups) const {
 2343|   275k|  if (!hasImageTags_) {
  ------------------
  |  Branch (2343:7): [True: 275k, False: 0]
  ------------------
 2344|       |#ifdef EXIV2_DEBUG_MESSAGES
 2345|       |    std::cerr << "No image tags in this image\n";
 2346|       |#endif
 2347|   275k|    return false;
 2348|   275k|  }
 2349|       |#ifdef EXIV2_DEBUG_MESSAGES
 2350|       |  ExifKey key(tag, groupName(group));
 2351|       |#endif
 2352|       |  // If there are primary groups and none matches group, we're done
 2353|      0|  if (!pPrimaryGroups.empty() &&
  ------------------
  |  Branch (2353:7): [True: 0, False: 0]
  |  Branch (2353:7): [True: 0, False: 0]
  ------------------
 2354|      0|      std::find(pPrimaryGroups.begin(), pPrimaryGroups.end(), group) == pPrimaryGroups.end()) {
  ------------------
  |  Branch (2354:7): [True: 0, False: 0]
  ------------------
 2355|       |#ifdef EXIV2_DEBUG_MESSAGES
 2356|       |    std::cerr << "Not an image tag: " << key << " (1)\n";
 2357|       |#endif
 2358|      0|    return false;
 2359|      0|  }
 2360|       |  // All tags of marked primary groups other than IFD0 are considered
 2361|       |  // image tags. That should take care of NEFs until we know better.
 2362|      0|  if (!pPrimaryGroups.empty() && group != IfdId::ifd0Id) {
  ------------------
  |  Branch (2362:7): [True: 0, False: 0]
  |  Branch (2362:34): [True: 0, False: 0]
  ------------------
 2363|       |#ifdef EXIV2_DEBUG_MESSAGES
 2364|       |    ExifKey key(tag, groupName(group));
 2365|       |    std::cerr << "Image tag: " << key << " (2)\n";
 2366|       |#endif
 2367|      0|    return true;
 2368|      0|  }
 2369|       |  // Finally, if tag, group is one of the TIFF image tags -> bingo!
 2370|      0|  return isTiffImageTag(tag, group);
 2371|      0|}  // TiffHeader::isImageTag
tiffimage_int.cpp:_ZN5Exiv28InternalL20isTiffImageTagLookupEtNS_5IfdIdE:
 2247|   142k|static bool isTiffImageTagLookup(uint16_t tag, IfdId group) {
 2248|   142k|  if (group != IfdId::ifd0Id) {
  ------------------
  |  Branch (2248:7): [True: 0, False: 142k]
  ------------------
 2249|      0|    return false;
 2250|      0|  }
 2251|       |  //! List of TIFF image tags
 2252|   142k|  switch (tag) {
 2253|      0|    case 0x00fe:  // Exif.Image.NewSubfileType
  ------------------
  |  Branch (2253:5): [True: 0, False: 142k]
  ------------------
 2254|      0|    case 0x00ff:  // Exif.Image.SubfileType
  ------------------
  |  Branch (2254:5): [True: 0, False: 142k]
  ------------------
 2255|  4.55k|    case 0x0100:  // Exif.Image.ImageWidth
  ------------------
  |  Branch (2255:5): [True: 4.55k, False: 137k]
  ------------------
 2256|  53.7k|    case 0x0101:  // Exif.Image.ImageLength
  ------------------
  |  Branch (2256:5): [True: 49.2k, False: 93.1k]
  ------------------
 2257|  57.5k|    case 0x0102:  // Exif.Image.BitsPerSample
  ------------------
  |  Branch (2257:5): [True: 3.79k, False: 138k]
  ------------------
 2258|  57.6k|    case 0x0103:  // Exif.Image.Compression
  ------------------
  |  Branch (2258:5): [True: 86, False: 142k]
  ------------------
 2259|  57.7k|    case 0x0106:  // Exif.Image.PhotometricInterpretation
  ------------------
  |  Branch (2259:5): [True: 114, False: 142k]
  ------------------
 2260|  57.8k|    case 0x010a:  // Exif.Image.FillOrder
  ------------------
  |  Branch (2260:5): [True: 29, False: 142k]
  ------------------
 2261|  60.7k|    case 0x0111:  // Exif.Image.StripOffsets
  ------------------
  |  Branch (2261:5): [True: 2.90k, False: 139k]
  ------------------
 2262|  60.7k|    case 0x0115:  // Exif.Image.SamplesPerPixel
  ------------------
  |  Branch (2262:5): [True: 66, False: 142k]
  ------------------
 2263|  60.8k|    case 0x0116:  // Exif.Image.RowsPerStrip
  ------------------
  |  Branch (2263:5): [True: 26, False: 142k]
  ------------------
 2264|  63.3k|    case 0x0117:  // Exif.Image.StripByteCounts
  ------------------
  |  Branch (2264:5): [True: 2.51k, False: 139k]
  ------------------
 2265|  64.4k|    case 0x011a:  // Exif.Image.XResolution
  ------------------
  |  Branch (2265:5): [True: 1.08k, False: 141k]
  ------------------
 2266|  64.5k|    case 0x011b:  // Exif.Image.YResolution
  ------------------
  |  Branch (2266:5): [True: 149, False: 142k]
  ------------------
 2267|  64.6k|    case 0x011c:  // Exif.Image.PlanarConfiguration
  ------------------
  |  Branch (2267:5): [True: 57, False: 142k]
  ------------------
 2268|  64.7k|    case 0x0122:  // Exif.Image.GrayResponseUnit
  ------------------
  |  Branch (2268:5): [True: 81, False: 142k]
  ------------------
 2269|  64.8k|    case 0x0123:  // Exif.Image.GrayResponseCurve
  ------------------
  |  Branch (2269:5): [True: 189, False: 142k]
  ------------------
 2270|  64.9k|    case 0x0124:  // Exif.Image.T4Options
  ------------------
  |  Branch (2270:5): [True: 79, False: 142k]
  ------------------
 2271|  65.0k|    case 0x0125:  // Exif.Image.T6Options
  ------------------
  |  Branch (2271:5): [True: 63, False: 142k]
  ------------------
 2272|  65.1k|    case 0x0128:  // Exif.Image.ResolutionUnit
  ------------------
  |  Branch (2272:5): [True: 106, False: 142k]
  ------------------
 2273|  65.2k|    case 0x0129:  // Exif.Image.PageNumber
  ------------------
  |  Branch (2273:5): [True: 59, False: 142k]
  ------------------
 2274|  65.2k|    case 0x012d:  // Exif.Image.TransferFunction
  ------------------
  |  Branch (2274:5): [True: 94, False: 142k]
  ------------------
 2275|  65.4k|    case 0x013d:  // Exif.Image.Predictor
  ------------------
  |  Branch (2275:5): [True: 109, False: 142k]
  ------------------
 2276|  65.4k|    case 0x013e:  // Exif.Image.WhitePoint
  ------------------
  |  Branch (2276:5): [True: 46, False: 142k]
  ------------------
 2277|  65.5k|    case 0x013f:  // Exif.Image.PrimaryChromaticities
  ------------------
  |  Branch (2277:5): [True: 140, False: 142k]
  ------------------
 2278|  65.7k|    case 0x0140:  // Exif.Image.ColorMap
  ------------------
  |  Branch (2278:5): [True: 149, False: 142k]
  ------------------
 2279|  65.8k|    case 0x0141:  // Exif.Image.HalftoneHints
  ------------------
  |  Branch (2279:5): [True: 104, False: 142k]
  ------------------
 2280|  65.9k|    case 0x0142:  // Exif.Image.TileWidth
  ------------------
  |  Branch (2280:5): [True: 85, False: 142k]
  ------------------
 2281|  65.9k|    case 0x0143:  // Exif.Image.TileLength
  ------------------
  |  Branch (2281:5): [True: 41, False: 142k]
  ------------------
 2282|  66.1k|    case 0x0144:  // Exif.Image.TileOffsets
  ------------------
  |  Branch (2282:5): [True: 154, False: 142k]
  ------------------
 2283|  66.3k|    case 0x0145:  // Exif.Image.TileByteCounts
  ------------------
  |  Branch (2283:5): [True: 184, False: 142k]
  ------------------
 2284|  66.3k|    case 0x014c:  // Exif.Image.InkSet
  ------------------
  |  Branch (2284:5): [True: 89, False: 142k]
  ------------------
 2285|  66.4k|    case 0x014d:  // Exif.Image.InkNames
  ------------------
  |  Branch (2285:5): [True: 71, False: 142k]
  ------------------
 2286|  66.5k|    case 0x014e:  // Exif.Image.NumberOfInks
  ------------------
  |  Branch (2286:5): [True: 69, False: 142k]
  ------------------
 2287|  66.5k|    case 0x0150:  // Exif.Image.DotRange
  ------------------
  |  Branch (2287:5): [True: 27, False: 142k]
  ------------------
 2288|  66.6k|    case 0x0151:  // Exif.Image.TargetPrinter
  ------------------
  |  Branch (2288:5): [True: 131, False: 142k]
  ------------------
 2289|  66.7k|    case 0x0152:  // Exif.Image.ExtraSamples
  ------------------
  |  Branch (2289:5): [True: 21, False: 142k]
  ------------------
 2290|  66.7k|    case 0x0153:  // Exif.Image.SampleFormat
  ------------------
  |  Branch (2290:5): [True: 48, False: 142k]
  ------------------
 2291|  66.8k|    case 0x0154:  // Exif.Image.SMinSampleValue
  ------------------
  |  Branch (2291:5): [True: 84, False: 142k]
  ------------------
 2292|  66.8k|    case 0x0155:  // Exif.Image.SMaxSampleValue
  ------------------
  |  Branch (2292:5): [True: 13, False: 142k]
  ------------------
 2293|  66.8k|    case 0x0156:  // Exif.Image.TransferRange
  ------------------
  |  Branch (2293:5): [True: 29, False: 142k]
  ------------------
 2294|  66.9k|    case 0x0157:  // Exif.Image.ClipPath
  ------------------
  |  Branch (2294:5): [True: 10, False: 142k]
  ------------------
 2295|  67.0k|    case 0x0158:  // Exif.Image.XClipPathUnits
  ------------------
  |  Branch (2295:5): [True: 123, False: 142k]
  ------------------
 2296|  67.0k|    case 0x0159:  // Exif.Image.YClipPathUnits
  ------------------
  |  Branch (2296:5): [True: 73, False: 142k]
  ------------------
 2297|  67.1k|    case 0x015a:  // Exif.Image.Indexed
  ------------------
  |  Branch (2297:5): [True: 22, False: 142k]
  ------------------
 2298|  67.2k|    case 0x015b:  // Exif.Image.JPEGTables
  ------------------
  |  Branch (2298:5): [True: 84, False: 142k]
  ------------------
 2299|  68.8k|    case 0x0200:  // Exif.Image.JPEGProc
  ------------------
  |  Branch (2299:5): [True: 1.62k, False: 140k]
  ------------------
 2300|  74.1k|    case 0x0201:  // Exif.Image.JPEGInterchangeFormat
  ------------------
  |  Branch (2300:5): [True: 5.30k, False: 137k]
  ------------------
 2301|  80.9k|    case 0x0202:  // Exif.Image.JPEGInterchangeFormatLength
  ------------------
  |  Branch (2301:5): [True: 6.78k, False: 135k]
  ------------------
 2302|  81.0k|    case 0x0203:  // Exif.Image.JPEGRestartInterval
  ------------------
  |  Branch (2302:5): [True: 121, False: 142k]
  ------------------
 2303|  81.1k|    case 0x0205:  // Exif.Image.JPEGLosslessPredictors
  ------------------
  |  Branch (2303:5): [True: 90, False: 142k]
  ------------------
 2304|  81.1k|    case 0x0206:  // Exif.Image.JPEGPointTransforms
  ------------------
  |  Branch (2304:5): [True: 53, False: 142k]
  ------------------
 2305|  81.2k|    case 0x0207:  // Exif.Image.JPEGQTables
  ------------------
  |  Branch (2305:5): [True: 69, False: 142k]
  ------------------
 2306|  81.3k|    case 0x0208:  // Exif.Image.JPEGDCTables
  ------------------
  |  Branch (2306:5): [True: 96, False: 142k]
  ------------------
 2307|  81.4k|    case 0x0209:  // Exif.Image.JPEGACTables
  ------------------
  |  Branch (2307:5): [True: 80, False: 142k]
  ------------------
 2308|  81.5k|    case 0x0211:  // Exif.Image.YCbCrCoefficients
  ------------------
  |  Branch (2308:5): [True: 117, False: 142k]
  ------------------
 2309|  81.5k|    case 0x0212:  // Exif.Image.YCbCrSubSampling
  ------------------
  |  Branch (2309:5): [True: 45, False: 142k]
  ------------------
 2310|  81.7k|    case 0x0213:  // Exif.Image.YCbCrPositioning
  ------------------
  |  Branch (2310:5): [True: 117, False: 142k]
  ------------------
 2311|  81.7k|    case 0x0214:  // Exif.Image.ReferenceBlackWhite
  ------------------
  |  Branch (2311:5): [True: 23, False: 142k]
  ------------------
 2312|  81.7k|    case 0x828d:  // Exif.Image.CFARepeatPatternDim
  ------------------
  |  Branch (2312:5): [True: 32, False: 142k]
  ------------------
 2313|  81.7k|    case 0x828e:  // Exif.Image.CFAPattern
  ------------------
  |  Branch (2313:5): [True: 25, False: 142k]
  ------------------
 2314|       |    // case 0x8773:  // Exif.Image.InterColorProfile
 2315|  81.8k|    case 0x8824:  // Exif.Image.SpectralSensitivity
  ------------------
  |  Branch (2315:5): [True: 16, False: 142k]
  ------------------
 2316|  81.8k|    case 0x8828:  // Exif.Image.OECF
  ------------------
  |  Branch (2316:5): [True: 9, False: 142k]
  ------------------
 2317|  82.0k|    case 0x9102:  // Exif.Image.CompressedBitsPerPixel
  ------------------
  |  Branch (2317:5): [True: 201, False: 142k]
  ------------------
 2318|  82.0k|    case 0x9217:  // Exif.Image.SensingMethod
  ------------------
  |  Branch (2318:5): [True: 12, False: 142k]
  ------------------
 2319|  82.0k|      return true;
 2320|  60.3k|    default:
  ------------------
  |  Branch (2320:5): [True: 60.3k, False: 82.0k]
  ------------------
 2321|  60.3k|      return false;
 2322|   142k|  }
 2323|   142k|}

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

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

_ZN5Exiv28Internal11TiffVisitorD2Ev:
   64|  91.4k|  virtual ~TiffVisitor() = default;
_ZN5Exiv28Internal11TiffEncoderD2Ev:
  355|  8.51k|  ~TiffEncoder() override = default;
_ZN5Exiv28Internal11TiffRwStateC2ENS_9ByteOrderEm:
  538|  70.9k|  constexpr TiffRwState(ByteOrder byteOrder, size_t baseOffset) : byteOrder_(byteOrder), baseOffset_(baseOffset) {
  539|  70.9k|  }
_ZN5Exiv28Internal10TiffFinderC2EtNS_5IfdIdE:
  141|   243k|  constexpr TiffFinder(uint16_t tag, IfdId group) : tag_(tag), group_(group) {
  142|   243k|  }
_ZN5Exiv28Internal11TiffVisitorC2Ev:
   62|   334k|  TiffVisitor() = default;
_ZNK5Exiv28Internal10TiffFinder6resultEv:
  180|   243k|  [[nodiscard]] TiffComponent* result() const {
  181|   243k|    return tiffComponent_;
  182|   243k|  }
_ZNK5Exiv28Internal11TiffEncoder9byteOrderEv:
  458|  2.32M|  [[nodiscard]] ByteOrder byteOrder() const {
  459|  2.32M|    return byteOrder_;
  460|  2.32M|  }
_ZNK5Exiv28Internal11TiffEncoder11writeMethodEv:
  467|  9.78k|  [[nodiscard]] WriteMethod writeMethod() const {
  468|  9.78k|    return writeMethod_;
  469|  9.78k|  }
_ZNK5Exiv28Internal11TiffRwState9byteOrderEv:
  548|  37.7M|  [[nodiscard]] ByteOrder byteOrder() const {
  549|  37.7M|    return byteOrder_;
  550|  37.7M|  }
_ZNK5Exiv28Internal11TiffRwState10baseOffsetEv:
  562|  3.54M|  [[nodiscard]] size_t baseOffset() const {
  563|  3.54M|    return baseOffset_;
  564|  3.54M|  }

_ZN5Exiv28TypeInfo8typeSizeENS_6TypeIdE:
   96|  61.3M|size_t TypeInfo::typeSize(TypeId typeId) {
   97|  61.3M|  if (auto tit = Exiv2::find(typeInfoTable, typeId))
  ------------------
  |  Branch (97:12): [True: 56.1M, False: 5.23M]
  ------------------
   98|  56.1M|    return tit->size_;
   99|  5.23M|  return 0;
  100|  61.3M|}
_ZN5Exiv27DataBufC2Em:
  102|  1.54M|DataBuf::DataBuf(size_t size) : pData_(size) {
  103|  1.54M|}
_ZN5Exiv27DataBufC2EPKhm:
  105|  40.3k|DataBuf::DataBuf(const byte* pData, size_t size) : pData_(pData, pData + size) {
  106|  40.3k|}
_ZN5Exiv27DataBuf5allocEm:
  108|  47.9k|void DataBuf::alloc(size_t size) {
  109|  47.9k|  pData_.resize(size);
  110|  47.9k|}
_ZN5Exiv27DataBuf6resizeEm:
  112|  92.9k|void DataBuf::resize(size_t size) {
  113|  92.9k|  pData_.resize(size);
  114|  92.9k|}
_ZN5Exiv27DataBuf5resetEv:
  116|  31.9k|void DataBuf::reset() {
  117|  31.9k|  pData_.clear();
  118|  31.9k|}
_ZNK5Exiv27DataBuf10read_uint8Em:
  120|  1.34M|uint8_t Exiv2::DataBuf::read_uint8(size_t offset) const {
  121|  1.34M|  if (offset >= pData_.size()) {
  ------------------
  |  Branch (121:7): [True: 0, False: 1.34M]
  ------------------
  122|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint8");
  123|      0|  }
  124|  1.34M|  return pData_[offset];
  125|  1.34M|}
_ZN5Exiv27DataBuf11write_uint8Emh:
  127|  2.42M|void Exiv2::DataBuf::write_uint8(size_t offset, uint8_t x) {
  128|  2.42M|  if (offset >= pData_.size()) {
  ------------------
  |  Branch (128:7): [True: 0, False: 2.42M]
  ------------------
  129|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint8");
  130|      0|  }
  131|  2.42M|  pData_[offset] = x;
  132|  2.42M|}
_ZNK5Exiv27DataBuf11read_uint16EmNS_9ByteOrderE:
  134|   427k|uint16_t Exiv2::DataBuf::read_uint16(size_t offset, ByteOrder byteOrder) const {
  135|   427k|  if (pData_.size() < 2 || offset > (pData_.size() - 2)) {
  ------------------
  |  Branch (135:7): [True: 0, False: 427k]
  |  Branch (135:28): [True: 1, False: 427k]
  ------------------
  136|      1|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint16");
  137|      1|  }
  138|   427k|  return getUShort(&pData_[offset], byteOrder);
  139|   427k|}
_ZN5Exiv27DataBuf12write_uint16EmtNS_9ByteOrderE:
  141|  7.96k|void Exiv2::DataBuf::write_uint16(size_t offset, uint16_t x, ByteOrder byteOrder) {
  142|  7.96k|  if (pData_.size() < 2 || offset > (pData_.size() - 2)) {
  ------------------
  |  Branch (142:7): [True: 0, False: 7.96k]
  |  Branch (142:28): [True: 0, False: 7.96k]
  ------------------
  143|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint16");
  144|      0|  }
  145|  7.96k|  us2Data(&pData_[offset], x, byteOrder);
  146|  7.96k|}
_ZNK5Exiv27DataBuf11read_uint32EmNS_9ByteOrderE:
  148|   364k|uint32_t Exiv2::DataBuf::read_uint32(size_t offset, ByteOrder byteOrder) const {
  149|   364k|  if (pData_.size() < 4 || offset > (pData_.size() - 4)) {
  ------------------
  |  Branch (149:7): [True: 0, False: 364k]
  |  Branch (149:28): [True: 1, False: 364k]
  ------------------
  150|      1|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint32");
  151|      1|  }
  152|   364k|  return getULong(&pData_[offset], byteOrder);
  153|   364k|}
_ZN5Exiv27DataBuf12write_uint32EmjNS_9ByteOrderE:
  155|  7.96k|void Exiv2::DataBuf::write_uint32(size_t offset, uint32_t x, ByteOrder byteOrder) {
  156|  7.96k|  if (pData_.size() < 4 || offset > (pData_.size() - 4)) {
  ------------------
  |  Branch (156:7): [True: 0, False: 7.96k]
  |  Branch (156:28): [True: 0, False: 7.96k]
  ------------------
  157|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint32");
  158|      0|  }
  159|  7.96k|  ul2Data(&pData_[offset], x, byteOrder);
  160|  7.96k|}
_ZNK5Exiv27DataBuf11read_uint64EmNS_9ByteOrderE:
  162|  2.19k|uint64_t Exiv2::DataBuf::read_uint64(size_t offset, ByteOrder byteOrder) const {
  163|  2.19k|  if (pData_.size() < 8 || offset > (pData_.size() - 8)) {
  ------------------
  |  Branch (163:7): [True: 0, False: 2.19k]
  |  Branch (163:28): [True: 0, False: 2.19k]
  ------------------
  164|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint64");
  165|      0|  }
  166|  2.19k|  return getULongLong(&pData_[offset], byteOrder);
  167|  2.19k|}
_ZNK5Exiv27DataBuf8cmpBytesEmPKvm:
  176|   319k|int Exiv2::DataBuf::cmpBytes(size_t offset, const void* buf, size_t bufsize) const {
  177|   319k|  if (pData_.size() < bufsize || offset > pData_.size() - bufsize) {
  ------------------
  |  Branch (177:7): [True: 1, False: 319k]
  |  Branch (177:34): [True: 0, False: 319k]
  ------------------
  178|      1|    throw std::out_of_range("Overflow in Exiv2::DataBuf::cmpBytes");
  179|      1|  }
  180|   319k|  return memcmp(&pData_[offset], buf, bufsize);
  181|   319k|}
_ZN5Exiv27DataBuf4dataEm:
  183|  5.06M|byte* Exiv2::DataBuf::data(size_t offset) {
  184|  5.06M|  return const_cast<byte*>(c_data(offset));
  185|  5.06M|}
_ZNK5Exiv27DataBuf6c_dataEm:
  187|  6.08M|const byte* Exiv2::DataBuf::c_data(size_t offset) const {
  188|  6.08M|  if (pData_.empty() || offset == pData_.size()) {
  ------------------
  |  Branch (188:7): [True: 18.1k, False: 6.06M]
  |  Branch (188:25): [True: 7.27k, False: 6.05M]
  ------------------
  189|  25.4k|    return nullptr;
  190|  25.4k|  }
  191|  6.05M|  if (offset > pData_.size()) {
  ------------------
  |  Branch (191:7): [True: 0, False: 6.05M]
  ------------------
  192|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::c_data");
  193|      0|  }
  194|  6.05M|  return &pData_[offset];
  195|  6.05M|}
_ZNK5Exiv27DataBuf5c_strEm:
  197|   264k|const char* Exiv2::DataBuf::c_str(size_t offset) const {
  198|   264k|  return reinterpret_cast<const char*>(c_data(offset));
  199|   264k|}
_ZN5Exiv29makeSliceERNS_7DataBufEmm:
  210|  55.8k|Slice<byte*> makeSlice(DataBuf& buf, size_t begin, size_t end) {
  211|  55.8k|  checkDataBufBounds(buf, end);
  212|  55.8k|  return {buf.data(), begin, end};
  213|  55.8k|}
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS0_4pairIiiEE:
  220|  53.5k|std::ostream& operator<<(std::ostream& os, const Rational& r) {
  221|  53.5k|  return os << r.first << "/" << r.second;
  222|  53.5k|}
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS0_4pairIjjEE:
  249|  22.1k|std::ostream& operator<<(std::ostream& os, const URational& r) {
  250|  22.1k|  return os << r.first << "/" << r.second;
  251|  22.1k|}
_ZN5Exiv29getUShortEPKhNS_9ByteOrderE:
  257|  62.8M|uint16_t getUShort(const byte* buf, ByteOrder byteOrder) {
  258|  62.8M|  return getUShort(makeSliceUntil(buf, 2), byteOrder);
  259|  62.8M|}
_ZN5Exiv28getULongEPKhNS_9ByteOrderE:
  261|  45.8M|uint32_t getULong(const byte* buf, ByteOrder byteOrder) {
  262|  45.8M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (262:7): [True: 1.47M, False: 44.3M]
  ------------------
  263|  1.47M|    return buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0];
  264|  1.47M|  }
  265|  44.3M|  return buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3];
  266|  45.8M|}
_ZN5Exiv212getULongLongEPKhNS_9ByteOrderE:
  268|  18.3k|uint64_t getULongLong(const byte* buf, ByteOrder byteOrder) {
  269|  18.3k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (269:7): [True: 2.07k, False: 16.3k]
  ------------------
  270|  2.07k|    return static_cast<uint64_t>(buf[7]) << 56 | static_cast<uint64_t>(buf[6]) << 48 |
  271|  2.07k|           static_cast<uint64_t>(buf[5]) << 40 | static_cast<uint64_t>(buf[4]) << 32 |
  272|  2.07k|           static_cast<uint64_t>(buf[3]) << 24 | static_cast<uint64_t>(buf[2]) << 16 |
  273|  2.07k|           static_cast<uint64_t>(buf[1]) << 8 | static_cast<uint64_t>(buf[0]);
  274|  2.07k|  }
  275|  16.3k|  return static_cast<uint64_t>(buf[0]) << 56 | static_cast<uint64_t>(buf[1]) << 48 |
  276|  16.3k|         static_cast<uint64_t>(buf[2]) << 40 | static_cast<uint64_t>(buf[3]) << 32 |
  277|  16.3k|         static_cast<uint64_t>(buf[4]) << 24 | static_cast<uint64_t>(buf[5]) << 16 |
  278|  16.3k|         static_cast<uint64_t>(buf[6]) << 8 | static_cast<uint64_t>(buf[7]);
  279|  18.3k|}
_ZN5Exiv212getURationalEPKhNS_9ByteOrderE:
  281|   365k|URational getURational(const byte* buf, ByteOrder byteOrder) {
  282|   365k|  uint32_t nominator = getULong(buf, byteOrder);
  283|   365k|  uint32_t denominator = getULong(buf + 4, byteOrder);
  284|   365k|  return {nominator, denominator};
  285|   365k|}
_ZN5Exiv28getShortEPKhNS_9ByteOrderE:
  287|  7.66M|int16_t getShort(const byte* buf, ByteOrder byteOrder) {
  288|  7.66M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (288:7): [True: 292k, False: 7.37M]
  ------------------
  289|   292k|    return buf[1] << 8 | buf[0];
  290|   292k|  }
  291|  7.37M|  return buf[0] << 8 | buf[1];
  292|  7.66M|}
_ZN5Exiv27getLongEPKhNS_9ByteOrderE:
  294|  1.23M|int32_t getLong(const byte* buf, ByteOrder byteOrder) {
  295|  1.23M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (295:7): [True: 51.1k, False: 1.17M]
  ------------------
  296|  51.1k|    return buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0];
  297|  51.1k|  }
  298|  1.17M|  return buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3];
  299|  1.23M|}
_ZN5Exiv211getRationalEPKhNS_9ByteOrderE:
  301|   491k|Rational getRational(const byte* buf, ByteOrder byteOrder) {
  302|   491k|  int32_t nominator = getLong(buf, byteOrder);
  303|   491k|  int32_t denominator = getLong(buf + 4, byteOrder);
  304|   491k|  return {nominator, denominator};
  305|   491k|}
_ZN5Exiv28getFloatEPKhNS_9ByteOrderE:
  307|   131k|float getFloat(const byte* buf, ByteOrder byteOrder) {
  308|       |  // This algorithm assumes that the internal representation of the float
  309|       |  // type is the 4-byte IEEE 754 binary32 format, which is common but not
  310|       |  // required by the C++ standard.
  311|   131k|#ifdef __cpp_lib_bit_cast
  312|   131k|  return std::bit_cast<float>(getULong(buf, byteOrder));
  313|       |#else
  314|       |  union {
  315|       |    uint32_t ul_;
  316|       |    float f_;
  317|       |  } u;
  318|       |  u.ul_ = getULong(buf, byteOrder);
  319|       |  return u.f_;
  320|       |#endif
  321|   131k|}
_ZN5Exiv29getDoubleEPKhNS_9ByteOrderE:
  323|  18.9k|double getDouble(const byte* buf, ByteOrder byteOrder) {
  324|       |  // This algorithm assumes that the internal representation of the double
  325|       |  // type is the 8-byte IEEE 754 binary64 format, which is common but not
  326|       |  // required by the C++ standard.
  327|  18.9k|#ifdef __cpp_lib_bit_cast
  328|  18.9k|  if (byteOrder == littleEndian)
  ------------------
  |  Branch (328:7): [True: 853, False: 18.0k]
  ------------------
  329|    853|    return std::bit_cast<double>(static_cast<uint64_t>(buf[7]) << 56 | static_cast<uint64_t>(buf[6]) << 48 |
  330|    853|                                 static_cast<uint64_t>(buf[5]) << 40 | static_cast<uint64_t>(buf[4]) << 32 |
  331|    853|                                 static_cast<uint64_t>(buf[3]) << 24 | static_cast<uint64_t>(buf[2]) << 16 |
  332|    853|                                 static_cast<uint64_t>(buf[1]) << 8 | static_cast<uint64_t>(buf[0]));
  333|  18.0k|  return std::bit_cast<double>(static_cast<uint64_t>(buf[0]) << 56 | static_cast<uint64_t>(buf[1]) << 48 |
  334|  18.0k|                               static_cast<uint64_t>(buf[2]) << 40 | static_cast<uint64_t>(buf[3]) << 32 |
  335|  18.0k|                               static_cast<uint64_t>(buf[4]) << 24 | static_cast<uint64_t>(buf[5]) << 16 |
  336|  18.0k|                               static_cast<uint64_t>(buf[6]) << 8 | static_cast<uint64_t>(buf[7]));
  337|       |#else
  338|       |  union {
  339|       |    uint64_t ull_;
  340|       |    double d_;
  341|       |  } u;
  342|       |  u.ull_ = 0;
  343|       |  if (byteOrder == littleEndian) {
  344|       |    u.ull_ = static_cast<uint64_t>(buf[7]) << 56 | static_cast<uint64_t>(buf[6]) << 48 |
  345|       |             static_cast<uint64_t>(buf[5]) << 40 | static_cast<uint64_t>(buf[4]) << 32 |
  346|       |             static_cast<uint64_t>(buf[3]) << 24 | static_cast<uint64_t>(buf[2]) << 16 |
  347|       |             static_cast<uint64_t>(buf[1]) << 8 | static_cast<uint64_t>(buf[0]);
  348|       |  } else {
  349|       |    u.ull_ = static_cast<uint64_t>(buf[0]) << 56 | static_cast<uint64_t>(buf[1]) << 48 |
  350|       |             static_cast<uint64_t>(buf[2]) << 40 | static_cast<uint64_t>(buf[3]) << 32 |
  351|       |             static_cast<uint64_t>(buf[4]) << 24 | static_cast<uint64_t>(buf[5]) << 16 |
  352|       |             static_cast<uint64_t>(buf[6]) << 8 | static_cast<uint64_t>(buf[7]);
  353|       |  }
  354|       |  return u.d_;
  355|       |#endif
  356|  18.9k|}
_ZN5Exiv27us2DataEPhtNS_9ByteOrderE:
  358|  3.72M|size_t us2Data(byte* buf, uint16_t s, ByteOrder byteOrder) {
  359|  3.72M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (359:7): [True: 3.57M, False: 149k]
  ------------------
  360|  3.57M|    buf[0] = static_cast<byte>(s & 0x00ffU);
  361|  3.57M|    buf[1] = static_cast<byte>((s & 0xff00U) >> 8);
  362|  3.57M|  } else {
  363|   149k|    buf[0] = static_cast<byte>((s & 0xff00U) >> 8);
  364|   149k|    buf[1] = static_cast<byte>(s & 0x00ffU);
  365|   149k|  }
  366|  3.72M|  return 2;
  367|  3.72M|}
_ZN5Exiv27ul2DataEPhjNS_9ByteOrderE:
  369|  2.37M|size_t ul2Data(byte* buf, uint32_t l, ByteOrder byteOrder) {
  370|  2.37M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (370:7): [True: 2.27M, False: 107k]
  ------------------
  371|  2.27M|    buf[0] = static_cast<byte>(l & 0x000000ffU);
  372|  2.27M|    buf[1] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  373|  2.27M|    buf[2] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  374|  2.27M|    buf[3] = static_cast<byte>((l & 0xff000000U) >> 24);
  375|  2.27M|  } else {
  376|   107k|    buf[0] = static_cast<byte>((l & 0xff000000U) >> 24);
  377|   107k|    buf[1] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  378|   107k|    buf[2] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  379|   107k|    buf[3] = static_cast<byte>(l & 0x000000ffU);
  380|   107k|  }
  381|  2.37M|  return 4;
  382|  2.37M|}
_ZN5Exiv27ur2DataEPhNSt3__14pairIjjEENS_9ByteOrderE:
  399|   293k|size_t ur2Data(byte* buf, URational l, ByteOrder byteOrder) {
  400|   293k|  size_t o = ul2Data(buf, l.first, byteOrder);
  401|   293k|  o += ul2Data(buf + o, l.second, byteOrder);
  402|   293k|  return o;
  403|   293k|}
_ZN5Exiv26s2DataEPhsNS_9ByteOrderE:
  405|   166k|size_t s2Data(byte* buf, int16_t s, ByteOrder byteOrder) {
  406|   166k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (406:7): [True: 164k, False: 1.61k]
  ------------------
  407|   164k|    buf[0] = static_cast<byte>(s & 0x00ffU);
  408|   164k|    buf[1] = static_cast<byte>((s & 0xff00U) >> 8);
  409|   164k|  } else {
  410|  1.61k|    buf[0] = static_cast<byte>((s & 0xff00U) >> 8);
  411|  1.61k|    buf[1] = static_cast<byte>(s & 0x00ffU);
  412|  1.61k|  }
  413|   166k|  return 2;
  414|   166k|}
_ZN5Exiv26l2DataEPhiNS_9ByteOrderE:
  416|   126k|size_t l2Data(byte* buf, int32_t l, ByteOrder byteOrder) {
  417|   126k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (417:7): [True: 118k, False: 7.47k]
  ------------------
  418|   118k|    buf[0] = static_cast<byte>(l & 0x000000ffU);
  419|   118k|    buf[1] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  420|   118k|    buf[2] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  421|   118k|    buf[3] = static_cast<byte>((l & 0xff000000U) >> 24);
  422|   118k|  } else {
  423|  7.47k|    buf[0] = static_cast<byte>((l & 0xff000000U) >> 24);
  424|  7.47k|    buf[1] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  425|  7.47k|    buf[2] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  426|  7.47k|    buf[3] = static_cast<byte>(l & 0x000000ffU);
  427|  7.47k|  }
  428|   126k|  return 4;
  429|   126k|}
_ZN5Exiv26r2DataEPhNSt3__14pairIiiEENS_9ByteOrderE:
  431|  37.3k|size_t r2Data(byte* buf, Rational l, ByteOrder byteOrder) {
  432|  37.3k|  size_t o = l2Data(buf, l.first, byteOrder);
  433|  37.3k|  o += l2Data(buf + o, l.second, byteOrder);
  434|  37.3k|  return o;
  435|  37.3k|}
_ZN5Exiv26f2DataEPhfNS_9ByteOrderE:
  437|   118k|size_t f2Data(byte* buf, float f, ByteOrder byteOrder) {
  438|       |  // This algorithm assumes that the internal representation of the float
  439|       |  // type is the 4-byte IEEE 754 binary32 format, which is common but not
  440|       |  // required by the C++ standard.
  441|   118k|#ifdef __cpp_lib_bit_cast
  442|   118k|  return ul2Data(buf, std::bit_cast<uint32_t>(f), byteOrder);
  443|       |#else
  444|       |  union {
  445|       |    uint32_t ul_;
  446|       |    float f_;
  447|       |  } u;
  448|       |  u.f_ = f;
  449|       |  return ul2Data(buf, u.ul_, byteOrder);
  450|       |#endif
  451|   118k|}
_ZN5Exiv26d2DataEPhdNS_9ByteOrderE:
  453|  59.9k|size_t d2Data(byte* buf, double d, ByteOrder byteOrder) {
  454|       |  // This algorithm assumes that the internal representation of the double
  455|       |  // type is the 8-byte IEEE 754 binary64 format, which is common but not
  456|       |  // required by the C++ standard.
  457|  59.9k|  union {
  458|  59.9k|    uint64_t ull_;
  459|  59.9k|    double d_;
  460|  59.9k|  } u;
  461|  59.9k|  u.d_ = d;
  462|  59.9k|  uint64_t m = 0xff;
  463|  59.9k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (463:7): [True: 59.5k, False: 467]
  ------------------
  464|  59.5k|    buf[0] = static_cast<byte>(u.ull_ & m);
  465|  59.5k|    buf[1] = static_cast<byte>((u.ull_ & (m << 8)) >> 8);
  466|  59.5k|    buf[2] = static_cast<byte>((u.ull_ & (m << 16)) >> 16);
  467|  59.5k|    buf[3] = static_cast<byte>((u.ull_ & (m << 24)) >> 24);
  468|  59.5k|    buf[4] = static_cast<byte>((u.ull_ & (m << 32)) >> 32);
  469|  59.5k|    buf[5] = static_cast<byte>((u.ull_ & (m << 40)) >> 40);
  470|  59.5k|    buf[6] = static_cast<byte>((u.ull_ & (m << 48)) >> 48);
  471|  59.5k|    buf[7] = static_cast<byte>((u.ull_ & (m << 56)) >> 56);
  472|  59.5k|  } else {
  473|    467|    buf[0] = static_cast<byte>((u.ull_ & (m << 56)) >> 56);
  474|    467|    buf[1] = static_cast<byte>((u.ull_ & (m << 48)) >> 48);
  475|    467|    buf[2] = static_cast<byte>((u.ull_ & (m << 40)) >> 40);
  476|    467|    buf[3] = static_cast<byte>((u.ull_ & (m << 32)) >> 32);
  477|    467|    buf[4] = static_cast<byte>((u.ull_ & (m << 24)) >> 24);
  478|    467|    buf[5] = static_cast<byte>((u.ull_ & (m << 16)) >> 16);
  479|    467|    buf[6] = static_cast<byte>((u.ull_ & (m << 8)) >> 8);
  480|    467|    buf[7] = static_cast<byte>(u.ull_ & m);
  481|    467|  }
  482|  59.9k|  return 8;
  483|  59.9k|}
_ZN5Exiv25isHexERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEmS8_:
  512|  31.3k|bool isHex(const std::string& str, size_t size, const std::string& prefix) {
  513|  31.3k|  if (!str.starts_with(prefix))
  ------------------
  |  Branch (513:7): [True: 0, False: 31.3k]
  ------------------
  514|      0|    return false;
  515|  31.3k|  if (size > 0 && str.size() != size + prefix.size())
  ------------------
  |  Branch (515:7): [True: 31.3k, False: 0]
  |  Branch (515:19): [True: 0, False: 31.3k]
  ------------------
  516|      0|    return false;
  517|       |
  518|  31.3k|  return std::all_of(str.begin() + prefix.size(), str.end(), ::isxdigit);
  519|  31.3k|}  // isHex
_ZN5Exiv219floatToRationalCastEf:
  667|  5.36k|Rational floatToRationalCast(float f) {
  668|       |  // Convert f to double because it simplifies the range checks
  669|       |  // below. (All int values can be losslessly converted to double, but
  670|       |  // sometimes get rounded when converted to float.)
  671|  5.36k|  const double d = f;
  672|       |  // Beware: primitive conversion algorithm
  673|  5.36k|  int32_t den;
  674|  5.36k|  if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 1000000) {
  ------------------
  |  Branch (674:7): [True: 2.23k, False: 3.13k]
  ------------------
  675|  2.23k|    den = 1000000;
  676|  3.13k|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 10000) {
  ------------------
  |  Branch (676:14): [True: 1.89k, False: 1.24k]
  ------------------
  677|  1.89k|    den = 10000;
  678|  1.89k|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 100) {
  ------------------
  |  Branch (678:14): [True: 128, False: 1.11k]
  ------------------
  679|    128|    den = 100;
  680|  1.11k|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max()) {
  ------------------
  |  Branch (680:14): [True: 112, False: 1.00k]
  ------------------
  681|    112|    den = 1;
  682|  1.00k|  } else {
  683|  1.00k|    return {d > 0 ? 1 : -1, 0};
  ------------------
  |  Branch (683:13): [True: 610, False: 390]
  ------------------
  684|  1.00k|  }
  685|  4.36k|  const auto nom = static_cast<int32_t>(std::lround(d * den));
  686|  4.36k|  const int32_t g = std::gcd(nom, den);
  687|       |
  688|  4.36k|  return {nom / g, den / g};
  689|  5.36k|}
types.cpp:_ZN5Exiv2L18checkDataBufBoundsERKNS_7DataBufEm:
  204|  55.8k|static void checkDataBufBounds(const DataBuf& buf, size_t end) {
  205|  55.8k|  Internal::enforce<std::invalid_argument>(end <= static_cast<size_t>(std::numeric_limits<long>::max()),
  206|  55.8k|                                           "end of slice too large to be compared with DataBuf bounds.");
  207|  55.8k|  Internal::enforce<std::out_of_range>(end <= buf.size(), "Invalid slice bounds specified");
  208|  55.8k|}
types.cpp:_ZNK12_GLOBAL__N_113TypeInfoTableeqEN5Exiv26TypeIdE:
   44|   364M|  bool operator==(Exiv2::TypeId typeId) const {
   45|   364M|    return typeId_ == typeId;
   46|   364M|  }

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

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

_ZN5Exiv25ValueC2ENS_6TypeIdE:
   19|  55.1M|Value::Value(TypeId typeId) : type_(typeId) {
   20|  55.1M|}
_ZN5Exiv25Value6createENS_6TypeIdE:
   22|  21.3M|Value::UniquePtr Value::create(TypeId typeId) {
   23|  21.3M|  switch (typeId) {
   24|      0|    case invalidTypeId:
  ------------------
  |  Branch (24:5): [True: 0, False: 21.3M]
  ------------------
   25|  7.46k|    case signedByte:
  ------------------
  |  Branch (25:5): [True: 7.46k, False: 21.3M]
  ------------------
   26|  2.03M|    case unsignedByte:
  ------------------
  |  Branch (26:5): [True: 2.02M, False: 19.3M]
  ------------------
   27|  2.03M|      return std::make_unique<DataValue>(typeId);
   28|  96.1k|    case asciiString:
  ------------------
  |  Branch (28:5): [True: 96.1k, False: 21.2M]
  ------------------
   29|  96.1k|      return std::make_unique<AsciiValue>();
   30|  15.0M|    case unsignedShort:
  ------------------
  |  Branch (30:5): [True: 15.0M, False: 6.28M]
  ------------------
   31|  15.0M|      return std::make_unique<ValueType<uint16_t>>();
   32|   361k|    case unsignedLong:
  ------------------
  |  Branch (32:5): [True: 361k, False: 20.9M]
  ------------------
   33|   381k|    case tiffIfd:
  ------------------
  |  Branch (33:5): [True: 19.9k, False: 21.3M]
  ------------------
   34|   381k|      return std::make_unique<ValueType<uint32_t>>(typeId);
   35|  48.0k|    case unsignedRational:
  ------------------
  |  Branch (35:5): [True: 48.0k, False: 21.2M]
  ------------------
   36|  48.0k|      return std::make_unique<ValueType<URational>>();
   37|   101k|    case undefined:
  ------------------
  |  Branch (37:5): [True: 101k, False: 21.2M]
  ------------------
   38|   101k|      return std::make_unique<DataValue>();
   39|  1.10M|    case signedShort:
  ------------------
  |  Branch (39:5): [True: 1.10M, False: 20.2M]
  ------------------
   40|  1.10M|      return std::make_unique<ValueType<int16_t>>();
   41|   130k|    case signedLong:
  ------------------
  |  Branch (41:5): [True: 130k, False: 21.2M]
  ------------------
   42|   130k|      return std::make_unique<ValueType<int32_t>>();
   43|  34.4k|    case signedRational:
  ------------------
  |  Branch (43:5): [True: 34.4k, False: 21.3M]
  ------------------
   44|  34.4k|      return std::make_unique<ValueType<Rational>>();
   45|  10.6k|    case tiffFloat:
  ------------------
  |  Branch (45:5): [True: 10.6k, False: 21.3M]
  ------------------
   46|  10.6k|      return std::make_unique<ValueType<float>>();
   47|  7.65k|    case tiffDouble:
  ------------------
  |  Branch (47:5): [True: 7.65k, False: 21.3M]
  ------------------
   48|  7.65k|      return std::make_unique<ValueType<double>>();
   49|  41.7k|    case string:
  ------------------
  |  Branch (49:5): [True: 41.7k, False: 21.3M]
  ------------------
   50|  41.7k|      return std::make_unique<StringValue>();
   51|  3.01k|    case date:
  ------------------
  |  Branch (51:5): [True: 3.01k, False: 21.3M]
  ------------------
   52|  3.01k|      return std::make_unique<DateValue>();
   53|  2.67k|    case time:
  ------------------
  |  Branch (53:5): [True: 2.67k, False: 21.3M]
  ------------------
   54|  2.67k|      return std::make_unique<TimeValue>();
   55|  3.16k|    case comment:
  ------------------
  |  Branch (55:5): [True: 3.16k, False: 21.3M]
  ------------------
   56|  3.16k|      return std::make_unique<CommentValue>();
   57|  22.5k|    case xmpText:
  ------------------
  |  Branch (57:5): [True: 22.5k, False: 21.3M]
  ------------------
   58|  22.5k|      return std::make_unique<XmpTextValue>();
   59|      0|    case xmpBag:
  ------------------
  |  Branch (59:5): [True: 0, False: 21.3M]
  ------------------
   60|  3.29k|    case xmpSeq:
  ------------------
  |  Branch (60:5): [True: 3.29k, False: 21.3M]
  ------------------
   61|  3.29k|    case xmpAlt:
  ------------------
  |  Branch (61:5): [True: 0, False: 21.3M]
  ------------------
   62|  3.29k|      return std::make_unique<XmpArrayValue>(typeId);
   63|      0|    case langAlt:
  ------------------
  |  Branch (63:5): [True: 0, False: 21.3M]
  ------------------
   64|      0|      return std::make_unique<LangAltValue>();
   65|  2.26M|    default:
  ------------------
  |  Branch (65:5): [True: 2.26M, False: 19.0M]
  ------------------
   66|  2.26M|      return std::make_unique<DataValue>(typeId);
   67|  21.3M|  }
   68|  21.3M|}  // 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|   111k|std::string Value::toString() const {
   75|   111k|  std::ostringstream os;
   76|   111k|  write(os);
   77|   111k|  ok_ = !os.fail();
   78|   111k|  return os.str();
   79|   111k|}
_ZNK5Exiv25Value8toStringEm:
   81|  11.6k|std::string Value::toString(size_t /*n*/) const {
   82|  11.6k|  return toString();
   83|  11.6k|}
_ZNK5Exiv25Value12sizeDataAreaEv:
   85|  31.9k|size_t Value::sizeDataArea() const {
   86|  31.9k|  return 0;
   87|  31.9k|}
_ZNK5Exiv25Value8dataAreaEv:
   89|  1.85k|DataBuf Value::dataArea() const {
   90|  1.85k|  return {nullptr, 0};
   91|  1.85k|}
_ZN5Exiv29DataValueC2ENS_6TypeIdE:
   93|  4.39M|DataValue::DataValue(TypeId typeId) : Value(typeId) {
   94|  4.39M|}
_ZNK5Exiv29DataValue5countEv:
  100|  8.42M|size_t DataValue::count() const {
  101|  8.42M|  return size();
  102|  8.42M|}
_ZN5Exiv29DataValue4readEPKhmNS_9ByteOrderE:
  104|  4.39M|int DataValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  105|       |  // byteOrder not needed
  106|  4.39M|  value_.assign(buf, buf + len);
  107|  4.39M|  return 0;
  108|  4.39M|}
_ZNK5Exiv29DataValue4copyEPhNS_9ByteOrderE:
  122|  2.28M|size_t DataValue::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  123|       |  // byteOrder not needed
  124|  2.28M|  return std::copy(value_.begin(), value_.end(), buf) - buf;
  125|  2.28M|}
_ZNK5Exiv29DataValue4sizeEv:
  127|  16.5M|size_t DataValue::size() const {
  128|  16.5M|  return value_.size();
  129|  16.5M|}
_ZNK5Exiv29DataValue6clone_Ev:
  131|  13.3M|DataValue* DataValue::clone_() const {
  132|  13.3M|  return new DataValue(*this);
  133|  13.3M|}
_ZNK5Exiv29DataValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  135|   110k|std::ostream& DataValue::write(std::ostream& os) const {
  136|   110k|  if (!value_.empty()) {
  ------------------
  |  Branch (136:7): [True: 110k, False: 351]
  ------------------
  137|   110k|    std::copy(value_.begin(), value_.end() - 1, std::ostream_iterator<int>(os, " "));
  138|   110k|    os << static_cast<int>(value_.back());
  139|   110k|  }
  140|   110k|  return os;
  141|   110k|}
_ZNK5Exiv29DataValue8toStringEm:
  143|  1.62k|std::string DataValue::toString(size_t n) const {
  144|  1.62k|  ok_ = true;
  145|  1.62k|  return std::to_string(value_.at(n));
  146|  1.62k|}
_ZNK5Exiv29DataValue7toInt64Em:
  148|   230k|int64_t DataValue::toInt64(size_t n) const {
  149|   230k|  ok_ = true;
  150|   230k|  return value_.at(n);
  151|   230k|}
_ZNK5Exiv29DataValue8toUint32Em:
  153|  67.1k|uint32_t DataValue::toUint32(size_t n) const {
  154|  67.1k|  ok_ = true;
  155|  67.1k|  return value_.at(n);
  156|  67.1k|}
_ZNK5Exiv29DataValue7toFloatEm:
  158|  1.51k|float DataValue::toFloat(size_t n) const {
  159|  1.51k|  ok_ = true;
  160|  1.51k|  return value_.at(n);
  161|  1.51k|}
_ZNK5Exiv29DataValue10toRationalEm:
  163|  2.20k|Rational DataValue::toRational(size_t n) const {
  164|  2.20k|  ok_ = true;
  165|  2.20k|  return {value_.at(n), 1};
  166|  2.20k|}
_ZN5Exiv215StringValueBase4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  172|    154|int StringValueBase::read(const std::string& buf) {
  173|    154|  value_ = buf;
  174|    154|  return 0;
  175|    154|}
_ZN5Exiv215StringValueBase4readEPKhmNS_9ByteOrderE:
  177|   126k|int StringValueBase::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  178|       |  // byteOrder not needed
  179|   126k|  if (buf)
  ------------------
  |  Branch (179:7): [True: 126k, False: 0]
  ------------------
  180|   126k|    value_ = std::string(reinterpret_cast<const char*>(buf), len);
  181|   126k|  return 0;
  182|   126k|}
_ZNK5Exiv215StringValueBase4copyEPhNS_9ByteOrderE:
  184|  64.8k|size_t StringValueBase::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  185|  64.8k|  if (value_.empty())
  ------------------
  |  Branch (185:7): [True: 24.8k, False: 39.9k]
  ------------------
  186|  24.8k|    return 0;
  187|       |  // byteOrder not needed
  188|  39.9k|  return value_.copy(reinterpret_cast<char*>(buf), value_.size());
  189|  64.8k|}
_ZNK5Exiv215StringValueBase5countEv:
  191|   205k|size_t StringValueBase::count() const {
  192|   205k|  return size();
  193|   205k|}
_ZNK5Exiv215StringValueBase4sizeEv:
  195|   375k|size_t StringValueBase::size() const {
  196|   375k|  return value_.size();
  197|   375k|}
_ZNK5Exiv215StringValueBase5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  199|  3.21k|std::ostream& StringValueBase::write(std::ostream& os) const {
  200|  3.21k|  return os << value_;
  201|  3.21k|}
_ZNK5Exiv215StringValueBase7toInt64Em:
  203|  23.6k|int64_t StringValueBase::toInt64(size_t n) const {
  204|  23.6k|  ok_ = true;
  205|  23.6k|  return static_cast<signed char>(value_.at(n));
  206|  23.6k|}
_ZNK5Exiv215StringValueBase8toUint32Em:
  208|  2.44k|uint32_t StringValueBase::toUint32(size_t n) const {
  209|  2.44k|  ok_ = true;
  210|  2.44k|  return static_cast<unsigned char>(value_.at(n));
  211|  2.44k|}
_ZNK5Exiv215StringValueBase7toFloatEm:
  213|    543|float StringValueBase::toFloat(size_t n) const {
  214|    543|  ok_ = true;
  215|    543|  return static_cast<signed char>(value_.at(n));
  216|    543|}
_ZNK5Exiv215StringValueBase10toRationalEm:
  218|    666|Rational StringValueBase::toRational(size_t n) const {
  219|    666|  ok_ = true;
  220|    666|  return {static_cast<signed char>(value_.at(n)), 1};
  221|    666|}
_ZN5Exiv211StringValueC2Ev:
  223|  41.7k|StringValue::StringValue() : StringValueBase(string) {
  224|  41.7k|}
_ZNK5Exiv211StringValue6clone_Ev:
  229|   553k|StringValue* StringValue::clone_() const {
  230|   553k|  return new StringValue(*this);
  231|   553k|}
_ZN5Exiv210AsciiValueC2Ev:
  233|  96.1k|AsciiValue::AsciiValue() : StringValueBase(asciiString) {
  234|  96.1k|}
_ZN5Exiv210AsciiValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  239|  29.1k|int AsciiValue::read(const std::string& buf) {
  240|  29.1k|  value_ = buf;
  241|       |  // ensure count>0 and nul terminated # https://github.com/Exiv2/exiv2/issues/1484
  242|  29.1k|  if (value_.empty() || value_.back() != '\0') {
  ------------------
  |  Branch (242:7): [True: 0, False: 29.1k]
  |  Branch (242:25): [True: 29.1k, False: 0]
  ------------------
  243|  29.1k|    value_ += '\0';
  244|  29.1k|  }
  245|  29.1k|  return 0;
  246|  29.1k|}
_ZNK5Exiv210AsciiValue6clone_Ev:
  248|   208k|AsciiValue* AsciiValue::clone_() const {
  249|   208k|  return new AsciiValue(*this);
  250|   208k|}
_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: 4.72k, False: 135k]
  ------------------
  256|  4.72k|    pos = value_.size();
  257|   139k|  return os << value_.substr(0, pos);
  258|   139k|}
_ZN5Exiv212CommentValue11CharsetInfo4nameENS0_9CharsetIdE:
  270|  1.14k|const char* CommentValue::CharsetInfo::name(CharsetId charsetId) {
  271|  1.14k|  return charsetTable_[charsetId < lastCharsetId ? charsetId : undefined].name_;
  ------------------
  |  Branch (271:24): [True: 1.14k, False: 0]
  ------------------
  272|  1.14k|}
_ZN5Exiv212CommentValue11CharsetInfo15charsetIdByCodeERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  285|  5.78k|CommentValue::CharsetId CommentValue::CharsetInfo::charsetIdByCode(const std::string& code) {
  286|  5.78k|  int i = 0;
  287|  24.5k|  for (; charsetTable_[i].charsetId_ != lastCharsetId && std::string(charsetTable_[i].code_, 8) != code; ++i) {
  ------------------
  |  Branch (287:10): [True: 22.1k, False: 2.38k]
  |  Branch (287:10): [True: 18.7k, False: 5.78k]
  |  Branch (287:58): [True: 18.7k, False: 3.40k]
  ------------------
  288|  18.7k|  }
  289|  5.78k|  return charsetTable_[i].charsetId_ == lastCharsetId ? invalidCharsetId : charsetTable_[i].charsetId_;
  ------------------
  |  Branch (289:10): [True: 2.38k, False: 3.40k]
  ------------------
  290|  5.78k|}
_ZN5Exiv212CommentValueC2Ev:
  292|  3.16k|CommentValue::CommentValue() : StringValueBase(Exiv2::undefined) {
  293|  3.16k|}
_ZN5Exiv212CommentValue4readEPKhmNS_9ByteOrderE:
  329|  3.16k|int CommentValue::read(const byte* buf, size_t len, ByteOrder byteOrder) {
  330|  3.16k|  byteOrder_ = byteOrder;
  331|  3.16k|  return StringValueBase::read(buf, len, byteOrder);
  332|  3.16k|}
_ZNK5Exiv212CommentValue4copyEPhNS_9ByteOrderE:
  334|    418|size_t CommentValue::copy(byte* buf, ByteOrder byteOrder) const {
  335|    418|  std::string c = value_;
  336|    418|  if (charsetId() == unicode) {
  ------------------
  |  Branch (336:7): [True: 61, False: 357]
  ------------------
  337|     61|    c = value_.substr(8);
  338|     61|    [[maybe_unused]] const size_t sz = c.size();
  339|     61|    if (byteOrder_ == littleEndian && byteOrder == bigEndian) {
  ------------------
  |  Branch (339:9): [True: 13, False: 48]
  |  Branch (339:39): [True: 0, False: 13]
  ------------------
  340|      0|      convertStringCharset(c, "UCS-2LE", "UCS-2BE");
  341|     61|    } else if (byteOrder_ == bigEndian && byteOrder == littleEndian) {
  ------------------
  |  Branch (341:16): [True: 48, False: 13]
  |  Branch (341:43): [True: 0, False: 48]
  ------------------
  342|      0|      convertStringCharset(c, "UCS-2BE", "UCS-2LE");
  343|      0|    }
  344|     61|    c = value_.substr(0, 8) + c;
  345|     61|  }
  346|    418|  if (c.empty())
  ------------------
  |  Branch (346:7): [True: 133, False: 285]
  ------------------
  347|    133|    return 0;
  348|    285|  return c.copy(reinterpret_cast<char*>(buf), c.size());
  349|    418|}
_ZNK5Exiv212CommentValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  351|  1.59k|std::ostream& CommentValue::write(std::ostream& os) const {
  352|  1.59k|  CharsetId csId = charsetId();
  353|  1.59k|  std::string text = comment();
  354|  1.59k|  if (csId != undefined) {
  ------------------
  |  Branch (354:7): [True: 1.14k, False: 445]
  ------------------
  355|  1.14k|    os << "charset=" << CharsetInfo::name(csId) << " ";
  356|  1.14k|  }
  357|  1.59k|  return os << text;
  358|  1.59k|}
_ZNK5Exiv212CommentValue7commentEPKc:
  360|  1.59k|std::string CommentValue::comment(const char* encoding) const {
  361|  1.59k|  std::string c;
  362|  1.59k|  if (value_.length() < 8) {
  ------------------
  |  Branch (362:7): [True: 138, False: 1.45k]
  ------------------
  363|    138|    return c;
  364|    138|  }
  365|  1.45k|  c = value_.substr(8);
  366|  1.45k|  if (charsetId() == unicode) {
  ------------------
  |  Branch (366:7): [True: 517, False: 938]
  ------------------
  367|    517|    const char* from = !encoding || *encoding == '\0' ? detectCharset(c) : encoding;
  ------------------
  |  Branch (367:24): [True: 517, False: 0]
  |  Branch (367:37): [True: 0, False: 0]
  ------------------
  368|    517|    if (!convertStringCharset(c, from, "UTF-8"))
  ------------------
  |  Branch (368:9): [True: 17, False: 500]
  ------------------
  369|     17|      throw Error(ErrorCode::kerInvalidIconvEncoding, from, "UTF-8");
  370|    517|  }
  371|       |
  372|       |  // # 1266 Remove trailing nulls
  373|  1.43k|  if (charsetId() == undefined || charsetId() == ascii) {
  ------------------
  |  Branch (373:7): [True: 290, False: 1.14k]
  |  Branch (373:35): [True: 90, False: 1.05k]
  ------------------
  374|    380|    auto n = c.find('\0');
  375|    380|    if (n != std::string::npos)
  ------------------
  |  Branch (375:9): [True: 232, False: 148]
  ------------------
  376|    232|      c.resize(n);
  377|    380|  }
  378|  1.43k|  return c;
  379|  1.45k|}
_ZNK5Exiv212CommentValue9charsetIdEv:
  381|  6.05k|CommentValue::CharsetId CommentValue::charsetId() const {
  382|  6.05k|  CharsetId charsetId = undefined;
  383|  6.05k|  if (value_.length() >= 8) {
  ------------------
  |  Branch (383:7): [True: 5.78k, False: 271]
  ------------------
  384|  5.78k|    const std::string code = value_.substr(0, 8);
  385|  5.78k|    charsetId = CharsetInfo::charsetIdByCode(code);
  386|  5.78k|  }
  387|  6.05k|  return charsetId;
  388|  6.05k|}
_ZNK5Exiv212CommentValue13detectCharsetERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  390|    517|const char* CommentValue::detectCharset(std::string& c) const {
  391|       |  // Interpret a BOM if there is one
  392|    517|  if (c.compare(0, 3, "\xef\xbb\xbf") == 0) {
  ------------------
  |  Branch (392:7): [True: 112, False: 405]
  ------------------
  393|    112|    c = c.substr(3);
  394|    112|    return "UTF-8";
  395|    112|  }
  396|    405|  if (c.compare(0, 2, "\xff\xfe") == 0) {
  ------------------
  |  Branch (396:7): [True: 78, False: 327]
  ------------------
  397|     78|    c = c.substr(2);
  398|     78|    return "UCS-2LE";
  399|     78|  }
  400|    327|  if (c.compare(0, 2, "\xfe\xff") == 0) {
  ------------------
  |  Branch (400:7): [True: 181, False: 146]
  ------------------
  401|    181|    c = c.substr(2);
  402|    181|    return "UCS-2BE";
  403|    181|  }
  404|       |
  405|       |  // Todo: Add logic to guess if the comment is encoded in UTF-8
  406|       |
  407|    146|  return byteOrder_ == littleEndian ? "UCS-2LE" : "UCS-2BE";
  ------------------
  |  Branch (407:10): [True: 7, False: 139]
  ------------------
  408|    327|}
_ZNK5Exiv212CommentValue6clone_Ev:
  410|  6.82k|CommentValue* CommentValue::clone_() const {
  411|  6.82k|  return new CommentValue(*this);
  412|  6.82k|}
_ZN5Exiv28XmpValue15setXmpArrayTypeENS0_12XmpArrayTypeE:
  414|  4.57k|void XmpValue::setXmpArrayType(XmpArrayType xmpArrayType) {
  415|  4.57k|  xmpArrayType_ = xmpArrayType;
  416|  4.57k|}
_ZN5Exiv28XmpValue12setXmpStructENS0_9XmpStructE:
  418|    496|void XmpValue::setXmpStruct(XmpStruct xmpStruct) {
  419|    496|  xmpStruct_ = xmpStruct;
  420|    496|}
_ZNK5Exiv28XmpValue12xmpArrayTypeEv:
  422|  51.7k|XmpValue::XmpArrayType XmpValue::xmpArrayType() const {
  423|  51.7k|  return xmpArrayType_;
  424|  51.7k|}
_ZN5Exiv28XmpValue12xmpArrayTypeENS_6TypeIdE:
  426|  4.47k|XmpValue::XmpArrayType XmpValue::xmpArrayType(TypeId typeId) {
  427|  4.47k|  XmpArrayType xa = xaNone;
  428|  4.47k|  switch (typeId) {
  429|     58|    case xmpAlt:
  ------------------
  |  Branch (429:5): [True: 58, False: 4.42k]
  ------------------
  430|     58|      xa = xaAlt;
  431|     58|      break;
  432|    135|    case xmpBag:
  ------------------
  |  Branch (432:5): [True: 135, False: 4.34k]
  ------------------
  433|    135|      xa = xaBag;
  434|    135|      break;
  435|  3.94k|    case xmpSeq:
  ------------------
  |  Branch (435:5): [True: 3.94k, False: 530]
  ------------------
  436|  3.94k|      xa = xaSeq;
  437|  3.94k|      break;
  438|    337|    default:
  ------------------
  |  Branch (438:5): [True: 337, False: 4.14k]
  ------------------
  439|    337|      break;
  440|  4.47k|  }
  441|  4.47k|  return xa;
  442|  4.47k|}
_ZNK5Exiv28XmpValue9xmpStructEv:
  444|  51.9k|XmpValue::XmpStruct XmpValue::xmpStruct() const {
  445|  51.9k|  return xmpStruct_;
  446|  51.9k|}
_ZN5Exiv212XmpTextValueC2Ev:
  468|  32.6k|XmpTextValue::XmpTextValue() : XmpValue(xmpText) {
  469|  32.6k|}
_ZN5Exiv212XmpTextValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  475|   644k|int XmpTextValue::read(const std::string& buf) {
  476|       |  // support a type=Alt,Bag,Seq,Struct indicator
  477|   644k|  std::string b = buf;
  478|   644k|  std::string type;
  479|   644k|  if (buf.starts_with("type=")) {
  ------------------
  |  Branch (479:7): [True: 404, False: 644k]
  ------------------
  480|    404|    std::string::size_type pos = buf.find_first_of(' ');
  481|    404|    type = buf.substr(5, pos - 5);
  482|       |    // Strip quotes (so you can also specify the type without quotes)
  483|    404|    if (!type.empty() && type.front() == '"')
  ------------------
  |  Branch (483:9): [True: 300, False: 104]
  |  Branch (483:26): [True: 160, False: 140]
  ------------------
  484|    160|      type = type.substr(1);
  485|    404|    if (!type.empty() && type.back() == '"')
  ------------------
  |  Branch (485:9): [True: 259, False: 145]
  |  Branch (485:26): [True: 113, False: 146]
  ------------------
  486|    113|      type.pop_back();
  487|    404|    b.clear();
  488|    404|    if (pos != std::string::npos)
  ------------------
  |  Branch (488:9): [True: 186, False: 218]
  ------------------
  489|    186|      b = buf.substr(pos + 1);
  490|    404|  }
  491|   644k|  if (!type.empty()) {
  ------------------
  |  Branch (491:7): [True: 259, False: 644k]
  ------------------
  492|    259|    if (type == "Alt") {
  ------------------
  |  Branch (492:9): [True: 44, False: 215]
  ------------------
  493|     44|      setXmpArrayType(XmpValue::xaAlt);
  494|    215|    } else if (type == "Bag") {
  ------------------
  |  Branch (494:16): [True: 23, False: 192]
  ------------------
  495|     23|      setXmpArrayType(XmpValue::xaBag);
  496|    192|    } else if (type == "Seq") {
  ------------------
  |  Branch (496:16): [True: 33, False: 159]
  ------------------
  497|     33|      setXmpArrayType(XmpValue::xaSeq);
  498|    159|    } else if (type == "Struct") {
  ------------------
  |  Branch (498:16): [True: 9, False: 150]
  ------------------
  499|      9|      setXmpStruct();
  500|    150|    } else {
  501|    150|      throw Error(ErrorCode::kerInvalidXmpText, type);
  502|    150|    }
  503|    259|  }
  504|   644k|  value_ = std::move(b);
  505|   644k|  return 0;
  506|   644k|}
_ZNK5Exiv212XmpTextValue4sizeEv:
  512|  20.4k|size_t XmpTextValue::size() const {
  513|  20.4k|  std::ostringstream os;
  514|  20.4k|  write(os);
  515|  20.4k|  return os.str().size();
  516|  20.4k|}
_ZNK5Exiv212XmpTextValue5countEv:
  518|  20.4k|size_t XmpTextValue::count() const {
  519|  20.4k|  return size();
  520|  20.4k|}
_ZNK5Exiv212XmpTextValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  522|  44.5k|std::ostream& XmpTextValue::write(std::ostream& os) const {
  523|  44.5k|  bool del = false;
  524|  44.5k|  if (xmpArrayType() != XmpValue::xaNone) {
  ------------------
  |  Branch (524:7): [True: 373, False: 44.1k]
  ------------------
  525|    373|    switch (xmpArrayType()) {
  ------------------
  |  Branch (525:13): [True: 373, False: 0]
  ------------------
  526|     26|      case XmpValue::xaAlt:
  ------------------
  |  Branch (526:7): [True: 26, False: 347]
  ------------------
  527|     26|        os << "type=\"Alt\"";
  528|     26|        break;
  529|     12|      case XmpValue::xaBag:
  ------------------
  |  Branch (529:7): [True: 12, False: 361]
  ------------------
  530|     12|        os << "type=\"Bag\"";
  531|     12|        break;
  532|    335|      case XmpValue::xaSeq:
  ------------------
  |  Branch (532:7): [True: 335, False: 38]
  ------------------
  533|    335|        os << "type=\"Seq\"";
  534|    335|        break;
  535|      0|      case XmpValue::xaNone:
  ------------------
  |  Branch (535:7): [True: 0, False: 373]
  ------------------
  536|      0|        break;  // just to suppress the warning
  537|    373|    }
  538|    373|    del = true;
  539|  44.1k|  } else if (xmpStruct() != XmpValue::xsNone) {
  ------------------
  |  Branch (539:14): [True: 826, False: 43.3k]
  ------------------
  540|    826|    switch (xmpStruct()) {
  ------------------
  |  Branch (540:13): [True: 826, False: 0]
  ------------------
  541|    826|      case XmpValue::xsStruct:
  ------------------
  |  Branch (541:7): [True: 826, False: 0]
  ------------------
  542|    826|        os << "type=\"Struct\"";
  543|    826|        break;
  544|      0|      case XmpValue::xsNone:
  ------------------
  |  Branch (544:7): [True: 0, False: 826]
  ------------------
  545|      0|        break;  // just to suppress the warning
  546|    826|    }
  547|    826|    del = true;
  548|    826|  }
  549|  44.5k|  if (del && !value_.empty())
  ------------------
  |  Branch (549:7): [True: 1.19k, False: 43.3k]
  |  Branch (549:14): [True: 12, False: 1.18k]
  ------------------
  550|     12|    os << " ";
  551|  44.5k|  return os << value_;
  552|  44.5k|}
_ZNK5Exiv212XmpTextValue6clone_Ev:
  570|  47.2k|XmpTextValue* XmpTextValue::clone_() const {
  571|  47.2k|  return new XmpTextValue(*this);
  572|  47.2k|}
_ZN5Exiv213XmpArrayValueC2ENS_6TypeIdE:
  574|  3.99k|XmpArrayValue::XmpArrayValue(TypeId typeId) : XmpValue(typeId) {
  575|  3.99k|  setXmpArrayType(xmpArrayType(typeId));
  576|  3.99k|}
_ZN5Exiv213XmpArrayValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  578|  22.5k|int XmpArrayValue::read(const std::string& buf) {
  579|  22.5k|  if (!buf.empty())
  ------------------
  |  Branch (579:7): [True: 17.5k, False: 4.96k]
  ------------------
  580|  17.5k|    value_.push_back(buf);
  581|  22.5k|  return 0;
  582|  22.5k|}
_ZNK5Exiv213XmpArrayValue5countEv:
  588|  2.90k|size_t XmpArrayValue::count() const {
  589|  2.90k|  return value_.size();
  590|  2.90k|}
_ZNK5Exiv213XmpArrayValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  592|  1.86k|std::ostream& XmpArrayValue::write(std::ostream& os) const {
  593|  1.86k|  if (!value_.empty()) {
  ------------------
  |  Branch (593:7): [True: 1.33k, False: 536]
  ------------------
  594|  1.33k|    std::copy(value_.begin(), value_.end() - 1, std::ostream_iterator<std::string>(os, ", "));
  595|  1.33k|    os << value_.back();
  596|  1.33k|  }
  597|  1.86k|  return os;
  598|  1.86k|}
_ZNK5Exiv213XmpArrayValue8toStringEm:
  600|  1.46k|std::string XmpArrayValue::toString(size_t n) const {
  601|  1.46k|  ok_ = true;
  602|  1.46k|  return value_.at(n);
  603|  1.46k|}
_ZNK5Exiv213XmpArrayValue6clone_Ev:
  621|  7.09k|XmpArrayValue* XmpArrayValue::clone_() const {
  622|  7.09k|  return new XmpArrayValue(*this);
  623|  7.09k|}
_ZN5Exiv212LangAltValueC2Ev:
  625|    160|LangAltValue::LangAltValue() : XmpValue(langAlt) {
  626|    160|}
_ZNK5Exiv212LangAltValue5countEv:
  679|    162|size_t LangAltValue::count() const {
  680|    162|  return value_.size();
  681|    162|}
_ZNK5Exiv212LangAltValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  683|    162|std::ostream& LangAltValue::write(std::ostream& os) const {
  684|    162|  bool first = true;
  685|       |
  686|       |  // Write the default entry first
  687|    162|  if (auto i = value_.find("x-default"); i != value_.end()) {
  ------------------
  |  Branch (687:42): [True: 20, False: 142]
  ------------------
  688|     20|    os << "lang=\"" << i->first << "\" " << i->second;
  689|     20|    first = false;
  690|     20|  }
  691|       |
  692|       |  // Write the others
  693|    162|  for (const auto& [lang, s] : value_) {
  ------------------
  |  Branch (693:30): [True: 156, False: 162]
  ------------------
  694|    156|    if (lang != "x-default") {
  ------------------
  |  Branch (694:9): [True: 136, False: 20]
  ------------------
  695|    136|      if (!first)
  ------------------
  |  Branch (695:11): [True: 10, False: 126]
  ------------------
  696|     10|        os << ", ";
  697|    136|      os << "lang=\"" << lang << "\" " << s;
  698|    136|      first = false;
  699|    136|    }
  700|    156|  }
  701|    162|  return os;
  702|    162|}
_ZNK5Exiv212LangAltValue6clone_Ev:
  737|    371|LangAltValue* LangAltValue::clone_() const {
  738|    371|  return new LangAltValue(*this);
  739|    371|}
_ZN5Exiv29DateValueC2Ev:
  741|  3.01k|DateValue::DateValue() : Value(date) {
  742|  3.01k|  date_ = {};
  743|  3.01k|}
_ZN5Exiv29DateValue4readEPKhmNS_9ByteOrderE:
  749|  2.86k|int DateValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  750|  2.86k|  const std::string str(reinterpret_cast<const char*>(buf), len);
  751|  2.86k|  return read(str);
  752|  2.86k|}
_ZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  754|  3.01k|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|  3.01k|  size_t monthPos = 0;
  758|  3.01k|  size_t dayPos = 0;
  759|       |
  760|  3.01k|  auto printWarning = [] {
  761|  3.01k|#ifndef SUPPRESS_WARNINGS
  762|  3.01k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedDateFormat) << "\n";
  763|  3.01k|#endif
  764|  3.01k|  };
  765|       |
  766|  3.01k|  if (buf.size() < 8) {
  ------------------
  |  Branch (766:7): [True: 400, False: 2.61k]
  ------------------
  767|    400|    printWarning();
  768|    400|    return 1;
  769|    400|  }
  770|       |
  771|  2.61k|  if ((buf.size() >= 10 && buf[4] == '-' && buf[7] == '-') || (buf.size() == 8)) {
  ------------------
  |  Branch (771:8): [True: 620, False: 1.99k]
  |  Branch (771:28): [True: 343, False: 277]
  |  Branch (771:45): [True: 155, False: 188]
  |  Branch (771:63): [True: 1.99k, False: 472]
  ------------------
  772|  2.14k|    if (buf.size() >= 10) {
  ------------------
  |  Branch (772:9): [True: 155, False: 1.99k]
  ------------------
  773|    155|      monthPos = 5;
  774|    155|      dayPos = 8;
  775|  1.99k|    } else {
  776|  1.99k|      monthPos = 4;
  777|  1.99k|      dayPos = 6;
  778|  1.99k|    }
  779|       |
  780|  2.14k|    auto checkDigits = [&buf, &printWarning](size_t start, size_t count, int32_t& dest) {
  781|  2.14k|      for (size_t i = start; i < start + count; ++i) {
  782|  2.14k|        if (!std::isdigit(buf[i])) {
  783|  2.14k|          printWarning();
  784|  2.14k|          return 1;
  785|  2.14k|        }
  786|  2.14k|      }
  787|  2.14k|      dest = std::stoul(buf.substr(start, count));
  788|  2.14k|      return 0;
  789|  2.14k|    };
  790|       |
  791|  2.14k|    if (checkDigits(0, 4, date_.year) || checkDigits(monthPos, 2, date_.month) || checkDigits(dayPos, 2, date_.day)) {
  ------------------
  |  Branch (791:9): [True: 1.38k, False: 766]
  |  Branch (791:42): [True: 215, False: 551]
  |  Branch (791:83): [True: 189, False: 362]
  ------------------
  792|  1.78k|      printWarning();
  793|  1.78k|      return 1;
  794|  1.78k|    }
  795|       |
  796|    362|    if (date_.month > 12 || date_.day > 31) {
  ------------------
  |  Branch (796:9): [True: 57, False: 305]
  |  Branch (796:29): [True: 14, False: 291]
  ------------------
  797|     71|      date_.month = 0;
  798|     71|      date_.day = 0;
  799|     71|      printWarning();
  800|     71|      return 1;
  801|     71|    }
  802|    291|    return 0;
  803|    362|  }
  804|    472|  printWarning();
  805|    472|  return 1;
  806|  2.61k|}
_ZNK5Exiv29DateValue4copyEPhNS_9ByteOrderE:
  812|    217|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|    217|  auto out = reinterpret_cast<char*>(buf);
  817|    217|  auto it = stringFormatTo(out, "{:04}{:02}{:02}", date_.year, date_.month, date_.day);
  ------------------
  |  |   19|    217|#define stringFormatTo std::format_to
  ------------------
  818|       |
  819|    217|  return it - out;
  820|    217|}
_ZNK5Exiv29DateValue4sizeEv:
  830|    434|size_t DateValue::size() const {
  831|    434|  return 8;
  832|    434|}
_ZNK5Exiv29DateValue6clone_Ev:
  834|  2.18k|DateValue* DateValue::clone_() const {
  835|  2.18k|  return new DateValue(*this);
  836|  2.18k|}
_ZNK5Exiv29DateValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  838|    754|std::ostream& DateValue::write(std::ostream& os) const {
  839|       |  // Write DateValue in ISO 8601 Extended format: YYYY-MM-DD
  840|    754|  return os << stringFormat("{:04}-{:02}-{:02}", date_.year, date_.month, date_.day);
  ------------------
  |  |   18|    754|#define stringFormat std::format
  ------------------
  841|    754|}
_ZN5Exiv29TimeValueC2Ev:
  877|  2.67k|TimeValue::TimeValue() : Value(time) {
  878|  2.67k|  time_ = {};
  879|  2.67k|}
_ZN5Exiv29TimeValue4readEPKhmNS_9ByteOrderE:
  885|  2.67k|int TimeValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  886|  2.67k|  const std::string str(reinterpret_cast<const char*>(buf), len);
  887|  2.67k|  return read(str);
  888|  2.67k|}
_ZN5Exiv29TimeValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  890|  2.67k|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.67k|  auto printWarning = [] {
  896|  2.67k|#ifndef SUPPRESS_WARNINGS
  897|  2.67k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedTimeFormat) << "\n";
  898|  2.67k|#endif
  899|  2.67k|    return 1;
  900|  2.67k|  };
  901|       |
  902|  2.67k|  if (buf.size() < 2)
  ------------------
  |  Branch (902:7): [True: 80, False: 2.59k]
  ------------------
  903|     80|    return printWarning();
  904|       |
  905|  2.59k|  for (auto c : buf)
  ------------------
  |  Branch (905:15): [True: 25.3k, False: 1.77k]
  ------------------
  906|  25.3k|    if (c != ':' && c != '+' && c != '-' && c != 'Z' && !std::isdigit(c))
  ------------------
  |  Branch (906:9): [True: 24.1k, False: 1.27k]
  |  Branch (906:21): [True: 23.7k, False: 311]
  |  Branch (906:33): [True: 21.6k, False: 2.16k]
  |  Branch (906:45): [True: 21.0k, False: 545]
  |  Branch (906:57): [True: 819, False: 20.2k]
  ------------------
  907|    819|      return printWarning();
  908|       |
  909|  1.77k|  size_t mpos;
  910|  1.77k|  size_t spos;
  911|  1.77k|  if (buf.find(':') != std::string::npos) {
  ------------------
  |  Branch (911:7): [True: 886, False: 887]
  ------------------
  912|    886|    mpos = 3;
  913|    886|    spos = 6;
  914|    887|  } else {
  915|    887|    mpos = 2;
  916|    887|    spos = 4;
  917|    887|  }
  918|       |
  919|  1.77k|  try {
  920|  1.77k|    auto hi = std::stoi(buf.substr(0, 2));
  921|  1.77k|    if (hi < 0 || hi > 23)
  ------------------
  |  Branch (921:9): [True: 218, False: 1.55k]
  |  Branch (921:19): [True: 58, False: 1.49k]
  ------------------
  922|    227|      return printWarning();
  923|  1.54k|    time_.hour = hi;
  924|  1.54k|    if (buf.size() > 3) {
  ------------------
  |  Branch (924:9): [True: 1.46k, False: 77]
  ------------------
  925|  1.46k|      auto mi = std::stoi(buf.substr(mpos, 2));
  926|  1.46k|      if (mi < 0 || mi > 59)
  ------------------
  |  Branch (926:11): [True: 72, False: 1.39k]
  |  Branch (926:21): [True: 135, False: 1.26k]
  ------------------
  927|    192|        return printWarning();
  928|  1.27k|      time_.minute = std::stoi(buf.substr(mpos, 2));
  929|  1.27k|    } else {
  930|     77|      time_.minute = 0;
  931|     77|    }
  932|  1.35k|    if (buf.size() > 5) {
  ------------------
  |  Branch (932:9): [True: 1.14k, False: 209]
  ------------------
  933|  1.14k|      auto si = std::stoi(buf.substr(spos, 2));
  934|  1.14k|      if (si < 0 || si > 60)
  ------------------
  |  Branch (934:11): [True: 55, False: 1.09k]
  |  Branch (934:21): [True: 92, False: 998]
  ------------------
  935|    122|        return printWarning();
  936|  1.02k|      time_.second = std::stoi(buf.substr(spos, 2));
  937|  1.02k|    } else {
  938|    209|      time_.second = 0;
  939|    209|    }
  940|       |
  941|  1.23k|    auto fpos = buf.find('+');
  942|  1.23k|    if (fpos == std::string::npos)
  ------------------
  |  Branch (942:9): [True: 947, False: 285]
  ------------------
  943|    947|      fpos = buf.find('-');
  944|       |
  945|  1.23k|    if (fpos != std::string::npos) {
  ------------------
  |  Branch (945:9): [True: 1.00k, False: 228]
  ------------------
  946|  1.00k|      auto format = buf.substr(fpos, buf.size());
  947|       |      // Use the sign of the raw offset string rather than of the parsed
  948|       |      // tzHour: when the hour magnitude is 0 (e.g. "-00:30"), std::stoi
  949|       |      // returns 0, which loses the '-' sign that std::stoi("-00") cannot
  950|       |      // preserve. format always starts with '+' or '-' (see fpos above).
  951|  1.00k|      const bool negative = format.at(0) == '-';
  952|  1.00k|      auto posColon = format.find(':');
  953|  1.00k|      if (posColon == std::string::npos) {
  ------------------
  |  Branch (953:11): [True: 646, False: 358]
  ------------------
  954|       |        // Extended format
  955|    646|        auto tzhi = std::stoi(format.substr(0, 3));
  956|    646|        if (tzhi < -23 || tzhi > 23)
  ------------------
  |  Branch (956:13): [True: 116, False: 530]
  |  Branch (956:27): [True: 7, False: 523]
  ------------------
  957|    113|          return printWarning();
  958|    533|        time_.tzHour = tzhi;
  959|    533|        if (format.size() > 3) {
  ------------------
  |  Branch (959:13): [True: 396, False: 137]
  ------------------
  960|    396|          int minute = std::stoi(format.substr(3));
  961|    396|          if (minute < 0 || minute > 59)
  ------------------
  |  Branch (961:15): [True: 22, False: 374]
  |  Branch (961:29): [True: 49, False: 325]
  ------------------
  962|     52|            return printWarning();
  963|    344|          time_.tzMinute = negative ? -minute : minute;
  ------------------
  |  Branch (963:28): [True: 261, False: 83]
  ------------------
  964|    344|        }
  965|    533|      } else {
  966|       |        // Basic format
  967|    358|        auto tzhi = std::stoi(format.substr(0, posColon));
  968|    358|        if (tzhi < -23 || tzhi > 23)
  ------------------
  |  Branch (968:13): [True: 117, False: 241]
  |  Branch (968:27): [True: 35, False: 206]
  ------------------
  969|     56|          return printWarning();
  970|    302|        time_.tzHour = tzhi;
  971|    302|        int minute = std::stoi(format.substr(posColon + 1));
  972|    302|        if (minute < 0 || minute > 59)
  ------------------
  |  Branch (972:13): [True: 149, False: 153]
  |  Branch (972:27): [True: 93, False: 60]
  ------------------
  973|     94|          return printWarning();
  974|    208|        time_.tzMinute = negative ? -minute : minute;
  ------------------
  |  Branch (974:26): [True: 54, False: 154]
  ------------------
  975|    208|      }
  976|  1.00k|    }
  977|  1.23k|  } catch (std::exception&) {
  978|       |    // std::stoi might throw an exception if the syntax is invalid.
  979|    266|    return printWarning();
  980|    266|  }
  981|    651|  return 0;
  982|  1.77k|}
_ZNK5Exiv29TimeValue4copyEPhNS_9ByteOrderE:
  989|    180|size_t TimeValue::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  990|       |  // NOTE: Here the time is copied in the Basic format HHMMSS:HHMM, as the IPTC key
  991|       |  // Iptc.Application2.TimeCreated wants it. Check https://exiv2.org/iptc.html
  992|    180|  char plusMinus = '+';
  993|    180|  if (time_.tzHour < 0 || time_.tzMinute < 0)
  ------------------
  |  Branch (993:7): [True: 22, False: 158]
  |  Branch (993:27): [True: 3, False: 155]
  ------------------
  994|     25|    plusMinus = '-';
  995|       |
  996|    180|  auto out = reinterpret_cast<char*>(buf);
  997|    180|  auto it = stringFormatTo(out, "{:02}{:02}{:02}{}{:02}{:02}", time_.hour, time_.minute, time_.second, plusMinus,
  ------------------
  |  |   19|    180|#define stringFormatTo std::format_to
  ------------------
  998|    180|                           std::abs(time_.tzHour), std::abs(time_.tzMinute));
  999|       |
 1000|    180|  auto wrote = static_cast<size_t>(it - out);
 1001|    180|  Internal::enforce(wrote == 11, Exiv2::ErrorCode::kerUnsupportedTimeFormat);
 1002|    180|  return wrote;
 1003|    180|}
_ZNK5Exiv29TimeValue4sizeEv:
 1013|    360|size_t TimeValue::size() const {
 1014|    360|  return 11;
 1015|    360|}
_ZNK5Exiv29TimeValue6clone_Ev:
 1017|  1.29k|TimeValue* TimeValue::clone_() const {
 1018|  1.29k|  return new TimeValue(*this);
 1019|  1.29k|}
_ZNK5Exiv29TimeValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
 1021|    138|std::ostream& TimeValue::write(std::ostream& os) const {
 1022|       |  // Write TimeValue in ISO 8601 Extended format: hh:mm:ss±hh:mm
 1023|    138|  char plusMinus = '+';
 1024|    138|  if (time_.tzHour < 0 || time_.tzMinute < 0)
  ------------------
  |  Branch (1024:7): [True: 52, False: 86]
  |  Branch (1024:27): [True: 12, False: 74]
  ------------------
 1025|     64|    plusMinus = '-';
 1026|       |
 1027|    138|  return os << stringFormat("{:02}:{:02}:{:02}{}{:02}:{:02}", time_.hour, time_.minute, time_.second, plusMinus,
  ------------------
  |  |   18|    138|#define stringFormat std::format
  ------------------
 1028|    138|                            std::abs(time_.tzHour), std::abs(time_.tzMinute));
 1029|    138|}
value.cpp:_ZZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_0clEv:
  760|  4.51k|  auto printWarning = [] {
  761|  4.51k|#ifndef SUPPRESS_WARNINGS
  762|  4.51k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedDateFormat) << "\n";
  ------------------
  |  |  138|  4.51k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 4.51k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  4.51k|  LogMsg(LogMsg::warn).os()
  ------------------
  763|  4.51k|#endif
  764|  4.51k|  };
value.cpp:_ZZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_1clEmmRi:
  780|  3.46k|    auto checkDigits = [&buf, &printWarning](size_t start, size_t count, int32_t& dest) {
  781|  8.63k|      for (size_t i = start; i < start + count; ++i) {
  ------------------
  |  Branch (781:30): [True: 6.95k, False: 1.67k]
  ------------------
  782|  6.95k|        if (!std::isdigit(buf[i])) {
  ------------------
  |  Branch (782:13): [True: 1.78k, False: 5.16k]
  ------------------
  783|  1.78k|          printWarning();
  784|  1.78k|          return 1;
  785|  1.78k|        }
  786|  6.95k|      }
  787|  1.67k|      dest = std::stoul(buf.substr(start, count));
  788|  1.67k|      return 0;
  789|  3.46k|    };
value.cpp:_ZZN5Exiv29TimeValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_0clEv:
  895|  2.02k|  auto printWarning = [] {
  896|  2.02k|#ifndef SUPPRESS_WARNINGS
  897|  2.02k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedTimeFormat) << "\n";
  ------------------
  |  |  138|  2.02k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 2.02k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  2.02k|  LogMsg(LogMsg::warn).os()
  ------------------
  898|  2.02k|#endif
  899|  2.02k|    return 1;
  900|  2.02k|  };

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

_ZN5Exiv28Xmpdatum4ImplC2ERKNS_6XmpKeyEPKNS_5ValueE:
  253|  36.7k|Xmpdatum::Impl::Impl(const XmpKey& key, const Value* pValue) : key_(key.clone()) {
  254|  36.7k|  if (pValue)
  ------------------
  |  Branch (254:7): [True: 14.2k, False: 22.5k]
  ------------------
  255|  14.2k|    value_ = pValue->clone();
  256|  36.7k|}
_ZN5Exiv28Xmpdatum4ImplC2ERKS1_:
  258|  40.5k|Xmpdatum::Impl::Impl(const Impl& rhs) {
  259|  40.5k|  if (rhs.key_)
  ------------------
  |  Branch (259:7): [True: 40.5k, False: 0]
  ------------------
  260|  40.5k|    key_ = rhs.key_->clone();  // deep copy
  261|  40.5k|  if (rhs.value_)
  ------------------
  |  Branch (261:7): [True: 40.5k, False: 0]
  ------------------
  262|  40.5k|    value_ = rhs.value_->clone();  // deep copy
  263|  40.5k|}
_ZN5Exiv28XmpdatumC2ERKNS_6XmpKeyEPKNS_5ValueE:
  277|  36.7k|Xmpdatum::Xmpdatum(const XmpKey& key, const Value* pValue) : p_(std::make_unique<Impl>(key, pValue)) {
  278|  36.7k|}
_ZN5Exiv28XmpdatumC2ERKS0_:
  280|  40.5k|Xmpdatum::Xmpdatum(const Xmpdatum& rhs) : p_(std::make_unique<Impl>(*rhs.p_)) {
  281|  40.5k|}
_ZN5Exiv28XmpdatumD2Ev:
  290|  77.2k|Xmpdatum::~Xmpdatum() = default;
_ZNK5Exiv28Xmpdatum3keyEv:
  292|  8.53M|std::string Xmpdatum::key() const {
  293|  8.53M|  return p_->key_ ? p_->key_->key() : "";
  ------------------
  |  Branch (293:10): [True: 8.53M, False: 0]
  ------------------
  294|  8.53M|}
_ZNK5Exiv28Xmpdatum9groupNameEv:
  300|  3.76k|std::string Xmpdatum::groupName() const {
  301|  3.76k|  return p_->key_ ? p_->key_->groupName() : "";
  ------------------
  |  Branch (301:10): [True: 3.76k, False: 0]
  ------------------
  302|  3.76k|}
_ZNK5Exiv28Xmpdatum7tagNameEv:
  304|  17.8k|std::string Xmpdatum::tagName() const {
  305|  17.8k|  return p_->key_ ? p_->key_->tagName() : "";
  ------------------
  |  Branch (305:10): [True: 17.8k, False: 0]
  ------------------
  306|  17.8k|}
_ZNK5Exiv28Xmpdatum6typeIdEv:
  320|  18.3k|TypeId Xmpdatum::typeId() const {
  321|  18.3k|  return p_->value_ ? p_->value_->typeId() : invalidTypeId;
  ------------------
  |  Branch (321:10): [True: 18.3k, False: 0]
  ------------------
  322|  18.3k|}
_ZNK5Exiv28Xmpdatum5countEv:
  332|  4.42k|size_t Xmpdatum::count() const {
  333|  4.42k|  return p_->value_ ? p_->value_->count() : 0;
  ------------------
  |  Branch (333:10): [True: 4.42k, False: 0]
  ------------------
  334|  4.42k|}
_ZNK5Exiv28Xmpdatum8toStringEv:
  340|    856|std::string Xmpdatum::toString() const {
  341|    856|  return p_->value_ ? p_->value_->toString() : "";
  ------------------
  |  Branch (341:10): [True: 856, False: 0]
  ------------------
  342|    856|}
_ZNK5Exiv28Xmpdatum8toStringEm:
  344|  7.52k|std::string Xmpdatum::toString(size_t n) const {
  345|  7.52k|  return p_->value_ ? p_->value_->toString(n) : "";
  ------------------
  |  Branch (345:10): [True: 7.52k, False: 0]
  ------------------
  346|  7.52k|}
_ZNK5Exiv28Xmpdatum5valueEv:
  364|  26.7k|const Value& Xmpdatum::value() const {
  365|  26.7k|  if (!p_->value_)
  ------------------
  |  Branch (365:7): [True: 0, False: 26.7k]
  ------------------
  366|      0|    throw Error(ErrorCode::kerValueNotSet, key());
  367|  26.7k|  return *p_->value_;
  368|  26.7k|}
_ZNK5Exiv28Xmpdatum5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKNS_8ExifDataE:
  374|  19.0k|std::ostream& Xmpdatum::write(std::ostream& os, const ExifData*) const {
  375|  19.0k|  return XmpProperties::printProperty(os, key(), value());
  376|  19.0k|}
_ZN5Exiv28Xmpdatum8setValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  384|   634k|int Xmpdatum::setValue(const std::string& value) {
  385|   634k|  XmpProperties::XmpLock lock;
  386|   634k|  if (!p_->value_) {
  ------------------
  |  Branch (386:7): [True: 22.5k, False: 612k]
  ------------------
  387|  22.5k|    TypeId type = xmpText;
  388|  22.5k|    if (p_->key_) {
  ------------------
  |  Branch (388:9): [True: 22.5k, False: 0]
  ------------------
  389|  22.5k|      type = XmpProperties::propertyTypeUnlocked(*p_->key_.get(), lock);
  390|  22.5k|    }
  391|  22.5k|    p_->value_ = Value::create(type);
  392|  22.5k|  }
  393|   634k|  return p_->value_->read(value);
  394|   634k|}
_ZN5Exiv27XmpDataixERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  396|   635k|Xmpdatum& XmpData::operator[](const std::string& key) {
  397|   635k|  XmpProperties::XmpLock lock;
  398|   635k|  XmpKey xmpKey(key, lock);
  399|   635k|  auto pos = std::find_if(xmpMetadata_.begin(), xmpMetadata_.end(), FindXmpdatum(xmpKey));
  400|   635k|  if (pos == xmpMetadata_.end()) {
  ------------------
  |  Branch (400:7): [True: 22.5k, False: 612k]
  ------------------
  401|  22.5k|    return xmpMetadata_.emplace_back(xmpKey);
  402|  22.5k|  }
  403|   612k|  return *pos;
  404|   635k|}
_ZN5Exiv27XmpData3addERKNS_6XmpKeyEPKNS_5ValueE:
  406|  3.27k|int XmpData::add(const XmpKey& key, const Value* value) {
  407|  3.27k|  XmpProperties::XmpLock lock;
  408|  3.27k|  return addUnlocked(key, value, lock);
  409|  3.27k|}
_ZN5Exiv27XmpData11addUnlockedERKNS_6XmpKeyEPKNS_5ValueERKNS_13XmpProperties7XmpLockE:
  411|  14.2k|int XmpData::addUnlocked(const XmpKey& key, const Value* value, const XmpProperties::XmpLock&) {
  412|  14.2k|  xmpMetadata_.emplace_back(key, value);
  413|  14.2k|  return 0;
  414|  14.2k|}
_ZNK5Exiv27XmpData7findKeyERKNS_6XmpKeyE:
  426|  4.63k|XmpData::const_iterator XmpData::findKey(const XmpKey& key) const {
  427|  4.63k|  XmpProperties::XmpLock lock;
  428|  4.63k|  return std::find_if(xmpMetadata_.begin(), xmpMetadata_.end(), FindXmpdatum(key));
  429|  4.63k|}
_ZN5Exiv27XmpData7findKeyERKNS_6XmpKeyE:
  431|  82.5k|XmpData::iterator XmpData::findKey(const XmpKey& key) {
  432|  82.5k|  XmpProperties::XmpLock lock;
  433|  82.5k|  return std::find_if(xmpMetadata_.begin(), xmpMetadata_.end(), FindXmpdatum(key));
  434|  82.5k|}
_ZN5Exiv27XmpData5clearEv:
  436|  34.1k|void XmpData::clear() {
  437|  34.1k|  XmpProperties::XmpLock lock;
  438|  34.1k|  clearUnlocked(lock);
  439|  34.1k|}
_ZN5Exiv27XmpData13clearUnlockedERKNS_13XmpProperties7XmpLockE:
  441|  38.1k|void XmpData::clearUnlocked(const XmpProperties::XmpLock&) {
  442|  38.1k|  xmpMetadata_.clear();
  443|  38.1k|  nsBindings_.clear();
  444|  38.1k|}
_ZNK5Exiv27XmpData5beginEv:
  455|    209|XmpData::const_iterator XmpData::begin() const {
  456|    209|  return xmpMetadata_.begin();
  457|    209|}
_ZNK5Exiv27XmpData3endEv:
  459|  4.84k|XmpData::const_iterator XmpData::end() const {
  460|  4.84k|  return xmpMetadata_.end();
  461|  4.84k|}
_ZNK5Exiv27XmpData5emptyEv:
  463|  2.08k|bool XmpData::empty() const {
  464|  2.08k|  XmpProperties::XmpLock lock;
  465|  2.08k|  return emptyUnlocked(lock);
  466|  2.08k|}
_ZNK5Exiv27XmpData13emptyUnlockedERKNS_13XmpProperties7XmpLockE:
  468|  19.6k|bool XmpData::emptyUnlocked(const XmpProperties::XmpLock&) const {
  469|  19.6k|  return xmpMetadata_.empty();
  470|  19.6k|}
_ZN5Exiv27XmpData5beginEv:
  481|  26.5k|XmpData::iterator XmpData::begin() {
  482|  26.5k|  return xmpMetadata_.begin();
  483|  26.5k|}
_ZN5Exiv27XmpData3endEv:
  485|   109k|XmpData::iterator XmpData::end() {
  486|   109k|  return xmpMetadata_.end();
  487|   109k|}
_ZN5Exiv227xmpToolkitEnsureInitializedEv:
  538|  22.7k|void xmpToolkitEnsureInitialized() {
  539|  22.7k|  static XmpToolkitLifetimeManager instance;
  540|  22.7k|  (void)instance;
  541|  22.7k|}
_ZN5Exiv29XmpParser14registerNsImplERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  543|  1.10k|void XmpParser::registerNsImpl(const std::string& ns, const std::string& prefix) {
  544|  1.10k|  xmpToolkitEnsureInitialized();
  545|  1.10k|  try {
  546|  1.10k|    std::string existingPrefix;
  547|  1.10k|    if (SXMPMeta::GetNamespacePrefix(ns.c_str(), &existingPrefix)) {
  ------------------
  |  Branch (547:9): [True: 1.10k, False: 3]
  ------------------
  548|  1.10k|      if (!existingPrefix.empty() && existingPrefix.back() == ':') {
  ------------------
  |  Branch (548:11): [True: 1.10k, False: 0]
  |  Branch (548:38): [True: 1.10k, False: 0]
  ------------------
  549|  1.10k|        existingPrefix.pop_back();
  550|  1.10k|      }
  551|  1.10k|      if (existingPrefix == prefix) {
  ------------------
  |  Branch (551:11): [True: 1.08k, False: 16]
  ------------------
  552|       |        // Already registered correctly, skip overhead
  553|  1.08k|        return;
  554|  1.08k|      }
  555|  1.10k|    }
  556|       |
  557|     19|    SXMPMeta::DeleteNamespace(ns.c_str());
  558|       |#ifdef EXV_ADOBE_XMPSDK
  559|       |    SXMPMeta::RegisterNamespace(ns.c_str(), prefix.c_str(), nullptr);
  560|       |#else
  561|     19|    SXMPMeta::RegisterNamespace(ns.c_str(), prefix.c_str());
  562|     19|#endif
  563|     19|  } catch (const XMP_Error& /* e */) {
  564|       |    // throw Error(ErrorCode::kerXMPToolkitError, e.GetID(), e.GetErrMsg());
  565|      0|  }
  566|  1.10k|}
_ZN5Exiv29XmpParser6decodeERNS_7XmpDataERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKNS_12DecodeParamsE:
  663|  4.41k|int XmpParser::decode(XmpData& xmpData, const std::string& xmpPacket, const DecodeParams& dp) {
  664|  4.41k|  try {
  665|  4.41k|    xmpData.setPacket(xmpPacket);
  666|  4.41k|    if (xmpPacket.empty()) {
  ------------------
  |  Branch (666:9): [True: 421, False: 3.99k]
  ------------------
  667|    421|      xmpData.clear();
  668|    421|      return 0;
  669|    421|    }
  670|       |
  671|       |    // Acquire Giant Lock
  672|  3.99k|    XmpProperties::XmpLock lock;
  673|  3.99k|    try {
  674|  3.99k|      xmpToolkitEnsureInitialized();
  675|  3.99k|    } catch (const Error&) {
  676|      0|#ifndef SUPPRESS_WARNINGS
  677|      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()
  ------------------
  678|      0|#endif
  679|      0|      return 2;
  680|      0|    }
  681|       |
  682|  3.99k|    xmpData.clearUnlocked(lock);
  683|       |
  684|       |    // Make sure the unterminated substring is used
  685|  3.99k|    size_t len = xmpPacket.size();
  686|  1.51M|    while (len > 0 && 0 == xmpPacket[len - 1])
  ------------------
  |  Branch (686:12): [True: 1.51M, False: 16]
  |  Branch (686:23): [True: 1.51M, False: 3.97k]
  ------------------
  687|  1.51M|      --len;
  688|       |
  689|  3.99k|    XMLValidator::check(xmpPacket.data(), len, dp);
  690|  3.99k|    SXMPMeta meta(xmpPacket.data(), static_cast<XMP_StringLen>(len));
  691|  3.99k|    SXMPIterator iter(meta);
  692|  3.99k|    std::string schemaNs;
  693|  3.99k|    std::string propPath;
  694|  3.99k|    std::string propValue;
  695|  3.99k|    XMP_OptionBits opt = 0;
  696|  18.3k|    while (iter.Next(&schemaNs, &propPath, &propValue, &opt)) {
  ------------------
  |  Branch (696:12): [True: 14.3k, False: 3.99k]
  ------------------
  697|  14.3k|      printNode(schemaNs, propPath, propValue, opt);
  698|  14.3k|      if (XMP_PropIsAlias(opt)) {
  ------------------
  |  Branch (698:11): [True: 0, False: 14.3k]
  ------------------
  699|      0|        throw Error(ErrorCode::kerAliasesNotSupported, schemaNs, propPath, propValue);
  700|      0|      }
  701|  14.3k|      if (XMP_NodeIsSchema(opt)) {
  ------------------
  |  Branch (701:11): [True: 3.41k, False: 10.9k]
  ------------------
  702|       |        // Register unknown namespaces with Exiv2
  703|       |        // (Namespaces are automatically registered with the XMP Toolkit)
  704|  3.41k|        std::string prefix = XmpProperties::prefixUnlocked(schemaNs, lock);
  705|  3.41k|        if (prefix.empty()) {
  ------------------
  |  Branch (705:13): [True: 2.75k, False: 653]
  ------------------
  706|  2.75k|          if (!SXMPMeta::GetNamespacePrefix(schemaNs.c_str(), &prefix))
  ------------------
  |  Branch (706:15): [True: 0, False: 2.75k]
  ------------------
  707|      0|            throw Error(ErrorCode::kerSchemaNamespaceNotRegistered, schemaNs);
  708|  2.75k|          prefix.pop_back();
  709|       |          // Hardening: a parsed packet must not silently rebind a prefix that is
  710|       |          // already globally bound -- a built-in standard prefix, or one a prior
  711|       |          // explicit registerNs() established -- to a different URI.  Letting it
  712|       |          // would poison every later write and lookup in this process (the
  713|       |          // namespace-leak bug).  The packet's own binding is still captured
  714|       |          // per-instance below, so this object round-trips faithfully; we just
  715|       |          // don't pollute the global registry on a read.
  716|  2.75k|          if (!XmpProperties::prefixIsBoundUnlocked(prefix, lock))
  ------------------
  |  Branch (716:15): [True: 6, False: 2.75k]
  ------------------
  717|      6|            XmpProperties::registerNsUnlocked(schemaNs, prefix, lock);
  718|  2.75k|        }
  719|       |        // Record the prefix->URI binding exactly as declared by THIS packet so
  720|       |        // encode() can resolve each property's URI from the data it came from,
  721|       |        // rather than from the process-global registry which another image may
  722|       |        // have rebound (e.g. to a corrupted URI).  See XmpData::nsBindings().
  723|  3.41k|        xmpData.nsBindings_[prefix] = schemaNs;
  724|  3.41k|        continue;
  725|  3.41k|      }
  726|  10.9k|      auto key = makeXmpKey(schemaNs, propPath, lock);
  727|  10.9k|      if (XMP_ArrayIsAltText(opt)) {
  ------------------
  |  Branch (727:11): [True: 160, False: 10.8k]
  ------------------
  728|       |        // Read Lang Alt property
  729|    160|        auto val = std::make_unique<LangAltValue>();
  730|    160|        XMP_Index count = meta.CountArrayItems(schemaNs.c_str(), propPath.c_str());
  731|    316|        while (count-- > 0) {
  ------------------
  |  Branch (731:16): [True: 156, False: 160]
  ------------------
  732|       |          // Get the text
  733|    156|          bool haveNext = iter.Next(&schemaNs, &propPath, &propValue, &opt);
  734|    156|          printNode(schemaNs, propPath, propValue, opt);
  735|    156|          if (!haveNext || !XMP_PropIsSimple(opt) || !XMP_PropHasLang(opt)) {
  ------------------
  |  Branch (735:15): [True: 0, False: 156]
  |  Branch (735:28): [True: 0, False: 156]
  |  Branch (735:54): [True: 0, False: 156]
  ------------------
  736|      0|            throw Error(ErrorCode::kerDecodeLangAltPropertyFailed, propPath, opt);
  737|      0|          }
  738|    156|          std::string text = propValue;
  739|       |          // Get the language qualifier
  740|    156|          haveNext = iter.Next(&schemaNs, &propPath, &propValue, &opt);
  741|    156|          printNode(schemaNs, propPath, propValue, opt);
  742|    156|          if (!haveNext || !XMP_PropIsSimple(opt) || !XMP_PropIsQualifier(opt) ||
  ------------------
  |  Branch (742:15): [True: 0, False: 156]
  |  Branch (742:15): [True: 0, False: 156]
  |  Branch (742:28): [True: 0, False: 156]
  |  Branch (742:54): [True: 0, False: 156]
  ------------------
  743|    156|              propPath.substr(propPath.size() - 8, 8) != "xml:lang") {
  ------------------
  |  Branch (743:15): [True: 0, False: 156]
  ------------------
  744|      0|            throw Error(ErrorCode::kerDecodeLangAltQualifierFailed, propPath, opt);
  745|      0|          }
  746|    156|          val->value_[propValue] = std::move(text);
  747|    156|        }
  748|    160|        xmpData.addUnlocked(*key, val.get(), lock);
  749|    160|        continue;
  750|    160|      }
  751|  10.8k|      if (XMP_PropIsArray(opt) && !XMP_PropHasQualifiers(opt) && !XMP_ArrayIsAltText(opt)) {
  ------------------
  |  Branch (751:11): [True: 848, False: 9.97k]
  |  Branch (751:35): [True: 848, False: 0]
  |  Branch (751:66): [True: 848, False: 0]
  ------------------
  752|       |        // Check if all elements are simple
  753|    848|        bool simpleArray = true;
  754|    848|        SXMPIterator aIter(meta, schemaNs.c_str(), propPath.c_str());
  755|    848|        std::string aSchemaNs;
  756|    848|        std::string aPropPath;
  757|    848|        std::string aPropValue;
  758|    848|        XMP_OptionBits aOpt = 0;
  759|  3.39k|        while (aIter.Next(&aSchemaNs, &aPropPath, &aPropValue, &aOpt)) {
  ------------------
  |  Branch (759:16): [True: 2.69k, False: 698]
  ------------------
  760|  2.69k|          if (propPath == aPropPath)
  ------------------
  |  Branch (760:15): [True: 848, False: 1.84k]
  ------------------
  761|    848|            continue;
  762|  1.84k|          if (!XMP_PropIsSimple(aOpt) || XMP_PropHasQualifiers(aOpt) || XMP_PropIsQualifier(aOpt) ||
  ------------------
  |  Branch (762:15): [True: 91, False: 1.75k]
  |  Branch (762:42): [True: 59, False: 1.69k]
  |  Branch (762:73): [True: 0, False: 1.69k]
  ------------------
  763|  1.84k|              XMP_NodeIsSchema(aOpt) || XMP_PropIsAlias(aOpt)) {
  ------------------
  |  Branch (763:15): [True: 0, False: 1.69k]
  |  Branch (763:41): [True: 0, False: 1.69k]
  ------------------
  764|    150|            simpleArray = false;
  765|    150|            break;
  766|    150|          }
  767|  1.84k|        }
  768|    848|        if (simpleArray) {
  ------------------
  |  Branch (768:13): [True: 698, False: 150]
  ------------------
  769|       |          // Read the array into an XmpArrayValue
  770|    698|          auto val = std::make_unique<XmpArrayValue>(arrayValueTypeId(opt));
  771|    698|          XMP_Index count = meta.CountArrayItems(schemaNs.c_str(), propPath.c_str());
  772|  2.39k|          while (count-- > 0) {
  ------------------
  |  Branch (772:18): [True: 1.69k, False: 698]
  ------------------
  773|  1.69k|            iter.Next(&schemaNs, &propPath, &propValue, &opt);
  774|  1.69k|            printNode(schemaNs, propPath, propValue, opt);
  775|  1.69k|            val->read(propValue);
  776|  1.69k|          }
  777|    698|          xmpData.addUnlocked(*key, val.get(), lock);
  778|    698|          continue;
  779|    698|        }
  780|    848|      }
  781|       |
  782|  10.1k|      auto val = std::make_unique<XmpTextValue>();
  783|  10.1k|      if (XMP_PropIsStruct(opt) || XMP_PropIsArray(opt)) {
  ------------------
  |  Branch (783:11): [True: 337, False: 9.78k]
  |  Branch (783:36): [True: 150, False: 9.63k]
  ------------------
  784|       |        // Create a metadatum with only XMP options
  785|    487|        val->setXmpArrayType(xmpArrayType(opt));
  786|    487|        val->setXmpStruct(xmpStruct(opt));
  787|    487|        xmpData.addUnlocked(*key, val.get(), lock);
  788|    487|        continue;
  789|    487|      }
  790|  9.63k|      if (XMP_PropIsSimple(opt) || XMP_PropIsQualifier(opt)) {
  ------------------
  |  Branch (790:11): [True: 9.63k, False: 0]
  |  Branch (790:36): [True: 0, False: 0]
  ------------------
  791|  9.63k|        val->read(propValue);
  792|  9.63k|        xmpData.addUnlocked(*key, val.get(), lock);
  793|  9.63k|        continue;
  794|  9.63k|      }
  795|       |      // Don't let any node go by unnoticed
  796|      0|      throw Error(ErrorCode::kerUnhandledXmpNode, key->key(), opt);
  797|  9.63k|    }  // iterate through all XMP nodes
  798|       |
  799|  3.99k|    return 0;
  800|  3.99k|  }
  801|  4.41k|#ifndef SUPPRESS_WARNINGS
  802|  4.41k|  catch (const Error& e) {
  803|      9|    if (e.code() == ErrorCode::kerXMPToolkitError) {
  ------------------
  |  Branch (803:9): [True: 0, False: 9]
  ------------------
  804|       |      // Initialization failures caught above, this handles other XMP errors if any wrapped in Error
  805|      0|    }
  806|      9|    throw;
  807|  2.09k|  } catch (const XMP_Error& e) {
  808|  2.09k|    EXV_ERROR << Error(ErrorCode::kerXMPToolkitError, e.GetID(), e.GetErrMsg()) << "\n";
  ------------------
  |  |  142|  2.09k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 2.09k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  2.09k|  LogMsg(LogMsg::error).os()
  ------------------
  809|  2.09k|    xmpData.clear();
  810|  2.09k|    return 3;
  811|  2.09k|  }
  812|       |#else
  813|       |  catch (const XMP_Error&) {
  814|       |    xmpData.clear();
  815|       |    return 3;
  816|       |  }
  817|       |#endif  // SUPPRESS_WARNINGS
  818|  4.41k|}  // XmpParser::decode
_ZN5Exiv29XmpParser6encodeERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_7XmpDataEtj:
  832|  17.6k|int XmpParser::encode(std::string& xmpPacket, const XmpData& xmpData, uint16_t formatFlags, uint32_t padding) {
  833|  17.6k|  try {
  834|       |    // Acquire Giant Lock
  835|  17.6k|    XmpProperties::XmpLock lock;
  836|  17.6k|    try {
  837|  17.6k|      xmpToolkitEnsureInitialized();
  838|  17.6k|    } catch (const Error&) {
  839|      0|#ifndef SUPPRESS_WARNINGS
  840|      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()
  ------------------
  841|      0|#endif
  842|      0|      return 2;
  843|      0|    }
  844|       |
  845|  17.6k|    if (xmpData.emptyUnlocked(lock)) {
  ------------------
  |  Branch (845:9): [True: 17.4k, False: 209]
  ------------------
  846|  17.4k|      xmpPacket.clear();
  847|  17.4k|      return 0;
  848|  17.4k|    }  // We are holding the Giant Lock, so we can iterate nsRegistry_ safely.
  849|       |    // XmpProperties interactions must go through Unlocked/impl methods to avoid deadlocks.
  850|  1.10k|    for (const auto& [xmp, uri] : XmpProperties::nsRegistry_) {
  ------------------
  |  Branch (850:33): [True: 1.10k, False: 209]
  ------------------
  851|       |#ifdef EXIV2_DEBUG_MESSAGES
  852|       |      std::cerr << "Registering " << uri.prefix_ << " : " << xmp << "\n";
  853|       |#endif
  854|       |      // registerNsImpl is safe since we hold the lock
  855|  1.10k|      registerNsImpl(xmp, uri.prefix_);
  856|  1.10k|    }
  857|       |
  858|       |    // Note: we deliberately do NOT re-register the per-instance bindings with
  859|       |    // the toolkit here.  Every URI they contain was already registered while its
  860|       |    // packet was parsed in decode() (custom ones are also in nsRegistry_, handled
  861|       |    // above), so SetProperty resolves them.  Re-registering would overwrite the
  862|       |    // toolkit's URI->prefix mapping whenever our preferred prefix differs from the
  863|       |    // one the file used for that URI (e.g. iptc vs Iptc4xmpCore), which breaks
  864|       |    // serialization of struct fields that still carry the file's prefix.
  865|    209|    SXMPMeta meta;
  866|  3.76k|    for (const auto& xmp : xmpData) {
  ------------------
  |  Branch (866:26): [True: 3.76k, False: 209]
  ------------------
  867|  3.76k|      const std::string ns = resolveNamespace(xmpData, xmp.groupName(), lock);
  868|  3.76k|      XMP_OptionBits options = 0;
  869|       |
  870|  3.76k|      if (xmp.typeId() == langAlt) {
  ------------------
  |  Branch (870:11): [True: 67, False: 3.69k]
  ------------------
  871|       |        // Encode Lang Alt property
  872|     67|        const auto la = dynamic_cast<const LangAltValue*>(&xmp.value());
  873|     67|        if (!la)
  ------------------
  |  Branch (873:13): [True: 0, False: 67]
  ------------------
  874|      0|          throw Error(ErrorCode::kerEncodeLangAltPropertyFailed, xmp.key());
  875|       |
  876|     67|        int idx = 1;
  877|     67|        for (const auto& [lang, specs] : la->value_) {
  ------------------
  |  Branch (877:40): [True: 66, False: 67]
  ------------------
  878|     66|          if (!specs.empty()) {  // remove lang specs with no value
  ------------------
  |  Branch (878:15): [True: 64, False: 2]
  ------------------
  879|     64|            printNode(ns, xmp.tagName(), specs, 0);
  880|     64|            meta.AppendArrayItem(ns.c_str(), xmp.tagName().c_str(), kXMP_PropArrayIsAlternate, specs.c_str());
  881|     64|            const std::string item = xmp.tagName() + "[" + toString(idx++) + "]";
  882|     64|            meta.SetQualifier(ns.c_str(), item.c_str(), kXMP_NS_XML, "lang", lang.c_str());
  883|     64|          }
  884|     66|        }
  885|     67|        continue;
  886|     67|      }
  887|       |
  888|       |      // Todo: Xmpdatum should have an XmpValue, not a Value
  889|  3.69k|      const auto val = dynamic_cast<const XmpValue*>(&xmp.value());
  890|  3.69k|      if (!val)
  ------------------
  |  Branch (890:11): [True: 0, False: 3.69k]
  ------------------
  891|      0|        throw Error(ErrorCode::kerInvalidKeyXmpValue, xmp.key(), xmp.typeName());
  892|  3.69k|      options = xmpArrayOptionBits(val->xmpArrayType()) | xmpArrayOptionBits(val->xmpStruct());
  893|  3.69k|      if (xmp.typeId() == xmpBag || xmp.typeId() == xmpSeq || xmp.typeId() == xmpAlt) {
  ------------------
  |  Branch (893:11): [True: 54, False: 3.64k]
  |  Branch (893:37): [True: 232, False: 3.40k]
  |  Branch (893:63): [True: 17, False: 3.39k]
  ------------------
  894|    303|        printNode(ns, xmp.tagName(), "", options);
  895|    303|        meta.SetProperty(ns.c_str(), xmp.tagName().c_str(), nullptr, options);
  896|  1.03k|        for (size_t idx = 0; idx < xmp.count(); ++idx) {
  ------------------
  |  Branch (896:30): [True: 732, False: 303]
  ------------------
  897|    732|          const std::string item = xmp.tagName() + "[" + toString(idx + 1) + "]";
  898|    732|          printNode(ns, item, xmp.toString(static_cast<long>(idx)), 0);
  899|    732|          meta.SetProperty(ns.c_str(), item.c_str(), xmp.toString(static_cast<long>(idx)).c_str());
  900|    732|        }
  901|    303|        continue;
  902|    303|      }
  903|  3.39k|      if (xmp.typeId() == xmpText) {
  ------------------
  |  Branch (903:11): [True: 3.39k, False: 0]
  ------------------
  904|  3.39k|        const auto xt = dynamic_cast<const XmpTextValue*>(&xmp.value());
  905|  3.39k|        if (xmp.count() == 0 || xt->xmpStruct() != XmpValue::xsNone || xt->xmpArrayType() != XmpValue::xaNone) {
  ------------------
  |  Branch (905:13): [True: 145, False: 3.24k]
  |  Branch (905:33): [True: 146, False: 3.10k]
  |  Branch (905:72): [True: 69, False: 3.03k]
  ------------------
  906|    360|          printNode(ns, xmp.tagName(), "", options);
  907|    360|          meta.SetProperty(ns.c_str(), xmp.tagName().c_str(), nullptr, options);
  908|  3.03k|        } else {
  909|  3.03k|          printNode(ns, xmp.tagName(), xmp.toString(0), options);
  910|  3.03k|          meta.SetProperty(ns.c_str(), xmp.tagName().c_str(), xmp.toString(0).c_str(), options);
  911|  3.03k|        }
  912|  3.39k|        continue;
  913|  3.39k|      }
  914|       |      // Don't let any Xmpdatum go by unnoticed
  915|      0|      throw Error(ErrorCode::kerUnhandledXmpdatum, xmp.tagName(), xmp.typeName());
  916|  3.39k|    }
  917|    209|    std::string tmpPacket;
  918|    209|    meta.SerializeToBuffer(&tmpPacket, xmpFormatOptionBits(static_cast<XmpFormatFlags>(formatFlags)),
  919|    209|                           padding);  // throws
  920|    209|    xmpPacket = std::move(tmpPacket);
  921|       |
  922|    209|    return 0;
  923|    209|  }
  924|  17.6k|#ifndef SUPPRESS_WARNINGS
  925|  17.6k|  catch (const Error& /* e */) {
  926|      0|    throw;
  927|      0|  } catch (const XMP_Error& e) {
  928|      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()
  ------------------
  929|      0|    return 3;
  930|      0|  }
  931|       |#else
  932|       |  catch (const XMP_Error&) {
  933|       |    return 3;
  934|       |  }
  935|       |#endif  // SUPPRESS_WARNINGS
  936|  17.6k|}  // XmpParser::encode
_ZN5Exiv29XmpParser10makeXmpKeyERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKNS_13XmpProperties7XmpLockE:
 1098|  10.9k|                                                      const XmpProperties::XmpLock& lock) {
 1099|  10.9k|  std::string property;
 1100|  10.9k|  std::string::size_type idx = propPath.find(':');
 1101|  10.9k|  if (idx == std::string::npos) {
  ------------------
  |  Branch (1101:7): [True: 0, False: 10.9k]
  ------------------
 1102|      0|    throw Exiv2::Error(Exiv2::ErrorCode::kerPropertyNameIdentificationFailed, propPath, schemaNs);
 1103|      0|  }
 1104|       |  // Don't worry about out_of_range, XMP parser takes care of this
 1105|  10.9k|  property = propPath.substr(idx + 1);
 1106|  10.9k|  std::string prefix = Exiv2::XmpProperties::prefixUnlocked(schemaNs, lock);
 1107|  10.9k|  if (prefix.empty()) {
  ------------------
  |  Branch (1107:7): [True: 9.44k, False: 1.53k]
  ------------------
 1108|       |    // The namespace was intentionally not registered globally (e.g. a packet
 1109|       |    // that rebinds an already-bound prefix to a different URI -- see the
 1110|       |    // hardening in decode()).  Fall back to the prefix the toolkit parsed so
 1111|       |    // the property still gets a key; its URI is preserved per-instance.
 1112|  9.44k|    std::string toolkitPrefix;
 1113|  9.44k|    if (SXMPMeta::GetNamespacePrefix(schemaNs.c_str(), &toolkitPrefix)) {
  ------------------
  |  Branch (1113:9): [True: 9.44k, False: 0]
  ------------------
 1114|  9.44k|      toolkitPrefix.pop_back();
 1115|  9.44k|      prefix = std::move(toolkitPrefix);
 1116|  9.44k|    }
 1117|  9.44k|  }
 1118|  10.9k|  if (prefix.empty()) {
  ------------------
  |  Branch (1118:7): [True: 0, False: 10.9k]
  ------------------
 1119|      0|    throw Exiv2::Error(Exiv2::ErrorCode::kerNoPrefixForNamespace, propPath, schemaNs);
 1120|      0|  }
 1121|  10.9k|  return Exiv2::XmpKey::UniquePtr(new Exiv2::XmpKey(prefix, property, lock));
 1122|  10.9k|}  // makeXmpKey
_ZN5Exiv29XmpParser16resolveNamespaceERKNS_7XmpDataERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKNS_13XmpProperties7XmpLockE:
 1125|  3.76k|                                               const XmpProperties::XmpLock& lock) {
 1126|  3.76k|  const auto& nsBindings = xmpData.nsBindings();
 1127|  3.76k|  const auto binding = nsBindings.find(prefix);
 1128|  3.76k|  return binding != nsBindings.end() ? binding->second : XmpProperties::nsUnlocked(prefix, lock);
  ------------------
  |  Branch (1128:10): [True: 3.76k, False: 0]
  ------------------
 1129|  3.76k|}  // resolveNamespace
xmp.cpp:_ZNK12_GLOBAL__N_112FindXmpdatumclERKN5Exiv28XmpdatumE:
  203|  8.51M|  bool operator()(const Exiv2::Xmpdatum& xmpdatum) const {
  204|  8.51M|    return key_ == xmpdatum.key();
  205|  8.51M|  }
xmp.cpp:_ZN12_GLOBAL__N_112FindXmpdatumC2ERKN5Exiv26XmpKeyE:
  197|   722k|  explicit FindXmpdatum(const Exiv2::XmpKey& key) : key_(key.key()) {
  198|   722k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator5checkEPKcmRKN5Exiv212DecodeParamsE:
   67|  3.99k|  static void check(const char* buf, size_t buflen, const DecodeParams& dp) {
   68|  3.99k|    XMLValidator validator(dp.max_recursion_depth());
   69|  3.99k|    validator.check_internal(buf, buflen);
   70|  3.99k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidatorC2Em:
   79|  3.99k|      max_recursion_depth_(max_recursion_depth), parser_(XML_ParserCreateNS(nullptr, '@')) {
   80|  3.99k|    if (!parser_) {
  ------------------
  |  Branch (80:9): [True: 0, False: 3.99k]
  ------------------
   81|      0|      throw Error(ErrorCode::kerXMPToolkitError, "Could not create expat parser");
   82|      0|    }
   83|  3.99k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator14check_internalEPKcm:
  104|  3.99k|  void check_internal(const char* buf, size_t buflen) {
  105|  3.99k|    if (buflen > static_cast<size_t>(std::numeric_limits<int>::max())) {
  ------------------
  |  Branch (105:9): [True: 0, False: 3.99k]
  ------------------
  106|      0|      throw Error(ErrorCode::kerXMPToolkitError, "Buffer length is greater than INT_MAX");
  107|      0|    }
  108|       |
  109|  3.99k|    XML_SetUserData(parser_, this);
  110|  3.99k|    XML_SetElementHandler(parser_, startElement_cb, endElement_cb);
  111|  3.99k|    XML_SetNamespaceDeclHandler(parser_, startNamespace_cb, endNamespace_cb);
  112|  3.99k|    XML_SetStartDoctypeDeclHandler(parser_, startDTD_cb);
  113|       |
  114|  3.99k|    if (XML_Parse(parser_, buf, static_cast<int>(buflen), true) == XML_STATUS_ERROR) {
  ------------------
  |  Branch (114:9): [True: 1.37k, False: 2.61k]
  ------------------
  115|  1.37k|      setError(XML_ErrorString(XML_GetErrorCode(parser_)));
  116|  1.37k|    }
  117|       |
  118|  3.99k|    if (haserror_) {
  ------------------
  |  Branch (118:9): [True: 1.37k, False: 2.61k]
  ------------------
  119|  1.37k|      throw XMP_Error(kXMPErr_BadXML, "Error in XMLValidator");
  120|  1.37k|    }
  121|  3.99k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator15startElement_cbEPvPKcPS3_:
  160|  29.6k|  static void XMLCALL startElement_cb(void* userData, const XML_Char* name, const XML_Char** attrs) noexcept {
  161|  29.6k|    static_cast<XMLValidator*>(userData)->startElement(name, attrs);
  162|  29.6k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator12startElementEPKcPS2_:
  123|  29.6k|  void startElement(const XML_Char*, const XML_Char**) noexcept {
  124|  29.6k|    if (element_depth_ > max_recursion_depth_) {
  ------------------
  |  Branch (124:9): [True: 2.15k, False: 27.4k]
  ------------------
  125|  2.15k|      setError("Too deeply nested");
  126|  2.15k|    }
  127|  29.6k|    ++element_depth_;
  128|  29.6k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator13endElement_cbEPvPKc:
  166|  16.3k|  static void XMLCALL endElement_cb(void* userData, const XML_Char* name) noexcept {
  167|  16.3k|    static_cast<XMLValidator*>(userData)->endElement(name);
  168|  16.3k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator10endElementEPKc:
  130|  16.3k|  void endElement(const XML_Char*) noexcept {
  131|  16.3k|    if (element_depth_ > 0) {
  ------------------
  |  Branch (131:9): [True: 16.3k, False: 0]
  ------------------
  132|  16.3k|      --element_depth_;
  133|  16.3k|    } else {
  134|      0|      setError("Negative depth");
  135|      0|    }
  136|  16.3k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator17startNamespace_cbEPvPKcS3_:
  172|  18.5k|  static void XMLCALL startNamespace_cb(void* userData, const XML_Char* prefix, const XML_Char* uri) noexcept {
  173|  18.5k|    static_cast<XMLValidator*>(userData)->startNamespace(prefix, uri);
  174|  18.5k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator14startNamespaceEPKcS2_:
  138|  18.5k|  void startNamespace(const XML_Char*, const XML_Char*) noexcept {
  139|  18.5k|    if (namespace_depth_ > max_recursion_depth_) {
  ------------------
  |  Branch (139:9): [True: 291, False: 18.2k]
  ------------------
  140|    291|      setError("Too deeply nested");
  141|    291|    }
  142|  18.5k|    ++namespace_depth_;
  143|  18.5k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator15endNamespace_cbEPvPKc:
  178|  8.61k|  static void XMLCALL endNamespace_cb(void* userData, const XML_Char* prefix) noexcept {
  179|  8.61k|    static_cast<XMLValidator*>(userData)->endNamespace(prefix);
  180|  8.61k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator12endNamespaceEPKc:
  145|  8.61k|  void endNamespace(const XML_Char*) noexcept {
  146|  8.61k|    if (namespace_depth_ > 0) {
  ------------------
  |  Branch (146:9): [True: 8.61k, False: 0]
  ------------------
  147|  8.61k|      --namespace_depth_;
  148|  8.61k|    } else {
  149|      0|      setError("Negative depth");
  150|      0|    }
  151|  8.61k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator11startDTD_cbEPvPKcS3_S3_i:
  183|     12|                                  const XML_Char* pubid, int has_internal_subset) noexcept {
  184|     12|    static_cast<XMLValidator*>(userData)->startDTD(doctypeName, sysid, pubid, has_internal_subset);
  185|     12|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator8startDTDEPKcS2_S2_i:
  153|     12|  void startDTD(const XML_Char*, const XML_Char*, const XML_Char*, int) noexcept {
  154|       |    // DOCTYPE is used for XXE attacks.
  155|     12|    setError("DOCTYPE not supported");
  156|     12|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator8setErrorEPKc:
   89|  3.83k|  void setError(const char* msg) {
   90|  3.83k|    const XML_Size errlinenum = XML_GetCurrentLineNumber(parser_);
   91|  3.83k|    const XML_Size errcolnum = XML_GetCurrentColumnNumber(parser_);
   92|  3.83k|#ifndef SUPPRESS_WARNINGS
   93|  3.83k|    EXV_INFO << "Invalid XML at line " << errlinenum << ", column " << errcolnum << ": " << msg << "\n";
  ------------------
  |  |  134|  3.83k|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 3.83k]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|  3.83k|  LogMsg(LogMsg::info).os()
  ------------------
   94|  3.83k|#endif
   95|       |    // If this is the first error, then save it.
   96|  3.83k|    if (!haserror_) {
  ------------------
  |  Branch (96:9): [True: 1.37k, False: 2.46k]
  ------------------
   97|  1.37k|      haserror_ = true;
   98|  1.37k|      errmsg_ = msg;
   99|  1.37k|      errlinenum_ = errlinenum;
  100|  1.37k|      errcolnum_ = errcolnum;
  101|  1.37k|    }
  102|  3.83k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidatorD2Ev:
   85|  3.99k|  ~XMLValidator() {
   86|  3.99k|    XML_ParserFree(parser_);
   87|  3.99k|  }
xmp.cpp:_ZN12_GLOBAL__N_19xmpStructEj:
  955|    487|Exiv2::XmpValue::XmpStruct xmpStruct(XMP_OptionBits opt) {
  956|    487|  Exiv2::XmpValue::XmpStruct var(Exiv2::XmpValue::xsNone);
  957|    487|  if (XMP_PropIsStruct(opt)) {
  ------------------
  |  Branch (957:7): [True: 337, False: 150]
  ------------------
  958|    337|    var = Exiv2::XmpValue::xsStruct;
  959|    337|  }
  960|    487|  return var;
  961|    487|}
xmp.cpp:_ZN12_GLOBAL__N_118xmpArrayOptionBitsEN5Exiv28XmpValue9XmpStructE:
  963|  3.69k|XMP_OptionBits xmpArrayOptionBits(Exiv2::XmpValue::XmpStruct xs) {
  964|  3.69k|  XMP_OptionBits var(0);
  965|  3.69k|  switch (xs) {
  ------------------
  |  Branch (965:11): [True: 3.69k, False: 0]
  ------------------
  966|  3.54k|    case Exiv2::XmpValue::xsNone:
  ------------------
  |  Branch (966:5): [True: 3.54k, False: 146]
  ------------------
  967|  3.54k|      break;
  968|    146|    case Exiv2::XmpValue::xsStruct:
  ------------------
  |  Branch (968:5): [True: 146, False: 3.54k]
  ------------------
  969|    146|      XMP_SetOption(var, kXMP_PropValueIsStruct);
  970|    146|      break;
  971|  3.69k|  }
  972|  3.69k|  return var;
  973|  3.69k|}
xmp.cpp:_ZN12_GLOBAL__N_116arrayValueTypeIdEj:
  975|  1.18k|Exiv2::TypeId arrayValueTypeId(XMP_OptionBits opt) {
  976|  1.18k|  Exiv2::TypeId typeId(Exiv2::invalidTypeId);
  977|  1.18k|  if (XMP_PropIsArray(opt)) {
  ------------------
  |  Branch (977:7): [True: 848, False: 337]
  ------------------
  978|    848|    if (XMP_ArrayIsAlternate(opt))
  ------------------
  |  Branch (978:9): [True: 58, False: 790]
  ------------------
  979|     58|      typeId = Exiv2::xmpAlt;
  980|    790|    else if (XMP_ArrayIsOrdered(opt))
  ------------------
  |  Branch (980:14): [True: 655, False: 135]
  ------------------
  981|    655|      typeId = Exiv2::xmpSeq;
  982|    135|    else if (XMP_ArrayIsUnordered(opt))
  ------------------
  |  Branch (982:14): [True: 135, False: 0]
  ------------------
  983|    135|      typeId = Exiv2::xmpBag;
  984|    848|  }
  985|  1.18k|  return typeId;
  986|  1.18k|}
xmp.cpp:_ZN12_GLOBAL__N_112xmpArrayTypeEj:
  988|    487|Exiv2::XmpValue::XmpArrayType xmpArrayType(XMP_OptionBits opt) {
  989|    487|  return Exiv2::XmpValue::xmpArrayType(arrayValueTypeId(opt));
  990|    487|}
xmp.cpp:_ZN12_GLOBAL__N_118xmpArrayOptionBitsEN5Exiv28XmpValue12XmpArrayTypeE:
  992|  3.69k|XMP_OptionBits xmpArrayOptionBits(Exiv2::XmpValue::XmpArrayType xat) {
  993|  3.69k|  XMP_OptionBits var(0);
  994|  3.69k|  switch (xat) {
  ------------------
  |  Branch (994:11): [True: 3.69k, False: 0]
  ------------------
  995|  3.32k|    case Exiv2::XmpValue::xaNone:
  ------------------
  |  Branch (995:5): [True: 3.32k, False: 372]
  ------------------
  996|  3.32k|      break;
  997|     23|    case Exiv2::XmpValue::xaAlt:
  ------------------
  |  Branch (997:5): [True: 23, False: 3.67k]
  ------------------
  998|     23|      XMP_SetOption(var, kXMP_PropValueIsArray);
  999|     23|      XMP_SetOption(var, kXMP_PropArrayIsAlternate);
 1000|     23|      break;
 1001|    295|    case Exiv2::XmpValue::xaSeq:
  ------------------
  |  Branch (1001:5): [True: 295, False: 3.39k]
  ------------------
 1002|    295|      XMP_SetOption(var, kXMP_PropValueIsArray);
 1003|    295|      XMP_SetOption(var, kXMP_PropArrayIsOrdered);
 1004|    295|      break;
 1005|     54|    case Exiv2::XmpValue::xaBag:
  ------------------
  |  Branch (1005:5): [True: 54, False: 3.64k]
  ------------------
 1006|     54|      XMP_SetOption(var, kXMP_PropValueIsArray);
 1007|     54|      break;
 1008|  3.69k|  }
 1009|  3.69k|  return var;
 1010|  3.69k|}
xmp.cpp:_ZN12_GLOBAL__N_119xmpFormatOptionBitsEN5Exiv29XmpParser14XmpFormatFlagsE:
 1016|    209|XMP_OptionBits xmpFormatOptionBits(Exiv2::XmpParser::XmpFormatFlags flags) {
 1017|    209|  XMP_OptionBits var(0);
 1018|    209|  if (flags & Exiv2::XmpParser::omitPacketWrapper)
  ------------------
  |  Branch (1018:7): [True: 0, False: 209]
  ------------------
 1019|      0|    var |= kXMP_OmitPacketWrapper;
 1020|    209|  if (flags & Exiv2::XmpParser::readOnlyPacket)
  ------------------
  |  Branch (1020:7): [True: 0, False: 209]
  ------------------
 1021|      0|    var |= kXMP_ReadOnlyPacket;
 1022|    209|  if (flags & Exiv2::XmpParser::useCompactFormat)
  ------------------
  |  Branch (1022:7): [True: 209, False: 0]
  ------------------
 1023|    209|    var |= kXMP_UseCompactFormat;
 1024|    209|  if (flags & Exiv2::XmpParser::includeThumbnailPad)
  ------------------
  |  Branch (1024:7): [True: 0, False: 209]
  ------------------
 1025|      0|    var |= kXMP_IncludeThumbnailPad;
 1026|    209|  if (flags & Exiv2::XmpParser::exactPacketLength)
  ------------------
  |  Branch (1026:7): [True: 0, False: 209]
  ------------------
 1027|      0|    var |= kXMP_ExactPacketLength;
 1028|    209|  if (flags & Exiv2::XmpParser::writeAliasComments)
  ------------------
  |  Branch (1028:7): [True: 0, False: 209]
  ------------------
 1029|      0|    var |= kXMP_WriteAliasComments;
 1030|    209|  if (flags & Exiv2::XmpParser::omitAllFormatting)
  ------------------
  |  Branch (1030:7): [True: 55, False: 154]
  ------------------
 1031|     55|    var |= kXMP_OmitAllFormatting;
 1032|    209|  return var;
 1033|    209|}
xmp.cpp:_ZN12_GLOBAL__N_19printNodeERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_S8_j:
 1091|  20.8k|void printNode(const std::string&, const std::string&, const std::string&, XMP_OptionBits) {
 1092|  20.8k|}
_ZN5Exiv28Xmpdatum4ImplD2Ev:
  246|  77.2k|  ~Impl() = default;

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

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

XMP_NewExpatAdapter:
   68|  2.61k|{
   69|  2.61k|	return new ExpatAdapter;
   70|  2.61k|}	// XMP_NewExpatAdapter
_ZN12ExpatAdapterC2Ev:
   74|  2.61k|ExpatAdapter::ExpatAdapter() : parser(0)
   75|  2.61k|{
   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.61k|	this->parser = XML_ParserCreateNS ( 0, FullNameSeparator );
  ------------------
  |  |   33|  2.61k|#define FullNameSeparator	'@'
  ------------------
   85|  2.61k|	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.61k]
  ------------------
   86|       |	
   87|  2.61k|	XML_SetUserData ( this->parser, this );
   88|       |	
   89|  2.61k|	XML_SetNamespaceDeclHandler ( this->parser, StartNamespaceDeclHandler, EndNamespaceDeclHandler );
   90|  2.61k|	XML_SetElementHandler ( this->parser, StartElementHandler, EndElementHandler );
   91|       |
   92|  2.61k|	XML_SetCharacterDataHandler ( this->parser, CharacterDataHandler );
   93|  2.61k|	XML_SetCdataSectionHandler ( this->parser, StartCdataSectionHandler, EndCdataSectionHandler );
   94|       |
   95|  2.61k|	XML_SetProcessingInstructionHandler ( this->parser, ProcessingInstructionHandler );
   96|  2.61k|	XML_SetCommentHandler ( this->parser, CommentHandler );
   97|       |
   98|  2.61k|	#if BanAllEntityUsage
   99|  2.61k|		XML_SetStartDoctypeDeclHandler ( this->parser, StartDoctypeDeclHandler );
  100|  2.61k|		isAborted = false;
  101|  2.61k|	#endif
  102|       |
  103|  2.61k|	this->parseStack.push_back ( &this->tree );	// Push the XML root node.
  104|       |
  105|  2.61k|}	// ExpatAdapter::ExpatAdapter
_ZN12ExpatAdapterD2Ev:
  110|  2.61k|{
  111|       |
  112|  2.61k|	if ( this->parser != 0 ) XML_ParserFree ( this->parser );
  ------------------
  |  Branch (112:7): [True: 2.61k, False: 0]
  ------------------
  113|  2.61k|	this->parser = 0;
  114|       |
  115|  2.61k|}	// ExpatAdapter::~ExpatAdapter
_ZN12ExpatAdapter11ParseBufferEPKvmb:
  126|  2.62k|{
  127|  2.62k|	enum XML_Status status;
  128|       |	
  129|  2.62k|	if ( length == 0 ) {	// Expat does not like empty buffers.
  ------------------
  |  Branch (129:7): [True: 0, False: 2.62k]
  ------------------
  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.62k|	status = XML_Parse ( this->parser, (const char *)buffer, length, last );
  136|       |	
  137|  2.62k|	#if BanAllEntityUsage
  138|  2.62k|		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.62k]
  ------------------
  139|  2.62k|	#endif
  140|       |
  141|  2.62k|	if ( status != XML_STATUS_OK ) {
  ------------------
  |  Branch (141:7): [True: 5, False: 2.61k]
  ------------------
  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.62k|}	// ExpatAdapter::ParseBuffer
ExpatAdapter.cpp:_ZL25StartNamespaceDeclHandlerPvPKcS1_:
  242|  8.57k|{
  243|  8.57k|	IgnoreParam(userData);
  ------------------
  |  |  117|  8.57k|#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|  8.57k|	if ( prefix == 0 ) prefix = "_dflt_";	// Have default namespace.
  ------------------
  |  Branch (252:7): [True: 4, False: 8.57k]
  ------------------
  253|  8.57k|	if ( uri == 0 ) return;	// Ignore, have xmlns:pre="", no URI to register.
  ------------------
  |  Branch (253:7): [True: 4, False: 8.57k]
  ------------------
  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|  8.57k|	if ( XMP_LitMatch ( uri, "http://purl.org/dc/1.1/" ) ) uri = "http://purl.org/dc/elements/1.1/";
  ------------------
  |  |   96|  8.57k|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  |  |  ------------------
  |  |  |  Branch (96:28): [True: 117, False: 8.45k]
  |  |  ------------------
  ------------------
  263|  8.57k|	XMPMeta::RegisterNamespace ( uri, prefix );
  264|       |
  265|  8.57k|}	// StartNamespaceDeclHandler
ExpatAdapter.cpp:_ZL23EndNamespaceDeclHandlerPvPKc:
  270|  8.57k|{
  271|  8.57k|	IgnoreParam(userData);
  ------------------
  |  |  117|  8.57k|#define IgnoreParam(p)	(void)p
  ------------------
  272|       |
  273|       |	#if XMP_DebugBuild & DumpXMLParseEvents		// Avoid unused variable warning.
  274|       |		ExpatAdapter * thiz = (ExpatAdapter*)userData;
  275|       |	#endif
  276|       |
  277|  8.57k|	if ( prefix == 0 ) prefix = "_dflt_";	// Have default namespace.
  ------------------
  |  Branch (277:7): [True: 4, False: 8.57k]
  ------------------
  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|  8.57k|}	// EndNamespaceDeclHandler
ExpatAdapter.cpp:_ZL19StartElementHandlerPvPKcPS1_:
  293|  16.2k|{
  294|  16.2k|	XMP_Assert ( attrs != 0 );
  ------------------
  |  |  142|  16.2k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  295|  16.2k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  296|       |	
  297|  16.2k|	size_t attrCount = 0;
  298|  45.4k|	for ( XMP_StringPtr* a = attrs; *a != 0; ++a ) ++attrCount;
  ------------------
  |  Branch (298:34): [True: 29.1k, False: 16.2k]
  ------------------
  299|  16.2k|	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: 16.2k]
  ------------------
  300|  16.2k|	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|  16.2k|	XML_Node * parentNode = thiz->parseStack.back();
  316|  16.2k|	XML_Node * elemNode   = new XML_Node ( parentNode, "", kElemNode );
  317|       |	
  318|  16.2k|	SetQualName ( name, elemNode );
  319|       |	
  320|  30.8k|	for ( XMP_StringPtr* attr = attrs; *attr != 0; attr += 2 ) {
  ------------------
  |  Branch (320:37): [True: 14.5k, False: 16.2k]
  ------------------
  321|       |
  322|  14.5k|		XMP_StringPtr attrName = *attr;
  323|  14.5k|		XMP_StringPtr attrValue = *(attr+1);
  324|  14.5k|		XML_Node * attrNode = new XML_Node ( elemNode, "", kAttrNode );
  325|       |
  326|  14.5k|		SetQualName ( attrName, attrNode );
  327|  14.5k|		attrNode->value = attrValue;
  328|  14.5k|		if ( attrNode->name == "xml:lang" ) NormalizeLangValue ( &attrNode->value );
  ------------------
  |  Branch (328:8): [True: 414, False: 14.1k]
  ------------------
  329|  14.5k|		elemNode->attrs.push_back ( attrNode );
  330|       |
  331|  14.5k|	}
  332|       |	
  333|  16.2k|	parentNode->content.push_back ( elemNode );
  334|  16.2k|	thiz->parseStack.push_back ( elemNode );
  335|       |	
  336|  16.2k|	if ( elemNode->name == "rdf:RDF" ) {
  ------------------
  |  Branch (336:7): [True: 2.44k, False: 13.8k]
  ------------------
  337|  2.44k|		thiz->rootNode = elemNode;
  338|  2.44k|		++thiz->rootCount;
  339|  2.44k|	}
  340|       |	#if XMP_DebugBuild
  341|       |		++thiz->elemNesting;
  342|       |	#endif
  343|       |
  344|  16.2k|}	// StartElementHandler
ExpatAdapter.cpp:_ZL11SetQualNamePKcP8XML_Node:
  187|  30.8k|{
  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|  30.8k|	size_t sepPos = strlen(fullName);
  199|   391k|	for ( --sepPos; sepPos > 0; --sepPos ) {
  ------------------
  |  Branch (199:18): [True: 388k, False: 2.11k]
  ------------------
  200|   388k|		if ( fullName[sepPos] == FullNameSeparator ) break;
  ------------------
  |  |   33|   388k|#define FullNameSeparator	'@'
  ------------------
  |  Branch (200:8): [True: 28.7k, False: 360k]
  ------------------
  201|   388k|	}
  202|       |
  203|  30.8k|	if ( fullName[sepPos] == FullNameSeparator ) {
  ------------------
  |  |   33|  30.8k|#define FullNameSeparator	'@'
  ------------------
  |  Branch (203:7): [True: 28.7k, False: 2.11k]
  ------------------
  204|       |
  205|  28.7k|		XMP_StringPtr prefix;
  206|  28.7k|		XMP_StringLen prefixLen;
  207|  28.7k|		XMP_StringPtr localPart = fullName + sepPos + 1;
  208|       |
  209|  28.7k|		node->ns.assign ( fullName, sepPos );
  210|  28.7k|		if ( node->ns == "http://purl.org/dc/1.1/" ) node->ns = "http://purl.org/dc/elements/1.1/";
  ------------------
  |  Branch (210:8): [True: 276, False: 28.4k]
  ------------------
  211|       |
  212|  28.7k|		bool found = XMPMeta::GetNamespacePrefix ( node->ns.c_str(), &prefix, &prefixLen );
  213|  28.7k|		if ( ! found ) XMP_Throw ( "Unknown URI in Expat full name", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (213:8): [True: 0, False: 28.7k]
  ------------------
  214|  28.7k|		node->nsPrefixLen = prefixLen;	// ! Includes the ':'.
  215|       |		
  216|  28.7k|		node->name = prefix;
  217|  28.7k|		node->name += localPart;
  218|       |
  219|  28.7k|	} else {
  220|       |
  221|  2.11k|		node->name = fullName;	// The name is not in a namespace.
  222|       |	
  223|  2.11k|		if ( node->parent->name == "rdf:Description" ) {
  ------------------
  |  Branch (223:8): [True: 686, False: 1.42k]
  ------------------
  224|    686|			if ( node->name == "about" ) {
  ------------------
  |  Branch (224:9): [True: 370, False: 316]
  ------------------
  225|    370|				node->ns   = kXMP_NS_RDF;
  226|    370|				node->name = "rdf:about";
  227|    370|				node->nsPrefixLen = 4;	// ! Include the ':'.
  228|    370|			} else if ( node->name == "ID" ) {
  ------------------
  |  Branch (228:16): [True: 15, False: 301]
  ------------------
  229|     15|				node->ns   = kXMP_NS_RDF;
  230|     15|				node->name = "rdf:ID";
  231|     15|				node->nsPrefixLen = 4;	// ! Include the ':'.
  232|     15|			}
  233|    686|		}
  234|       |		
  235|  2.11k|	}
  236|       |
  237|  30.8k|}	// SetQualName
ExpatAdapter.cpp:_ZL17EndElementHandlerPvPKc:
  349|  16.2k|{
  350|  16.2k|	IgnoreParam(name);
  ------------------
  |  |  117|  16.2k|#define IgnoreParam(p)	(void)p
  ------------------
  351|       |	
  352|  16.2k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  353|       |
  354|       |	#if XMP_DebugBuild
  355|       |		--thiz->elemNesting;
  356|       |	#endif
  357|  16.2k|	(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|  16.2k|}	// EndElementHandler
ExpatAdapter.cpp:_ZL20CharacterDataHandlerPvPKci:
  371|  46.3k|{
  372|  46.3k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  373|       |	
  374|  46.3k|	if ( (cData == 0) || (len == 0) ) { cData = ""; len = 0; }
  ------------------
  |  Branch (374:7): [True: 0, False: 46.3k]
  |  Branch (374:23): [True: 0, False: 46.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|  46.3k|	XML_Node * parentNode = thiz->parseStack.back();
  386|  46.3k|	XML_Node * cDataNode  = new XML_Node ( parentNode, "", kCDataNode );
  387|       |	
  388|  46.3k|	cDataNode->value.assign ( cData, len );
  389|  46.3k|	parentNode->content.push_back ( cDataNode );
  390|       |	
  391|  46.3k|}	// CharacterDataHandler
ExpatAdapter.cpp:_ZL28ProcessingInstructionHandlerPvPKcS1_:
  436|  1.33k|{
  437|  1.33k|	XMP_Assert ( target != 0 );
  ------------------
  |  |  142|  1.33k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  438|  1.33k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  439|       |
  440|  1.33k|	if ( ! XMP_LitMatch ( target, "xpacket" ) ) return;	// Ignore all PIs except the XMP packet wrapper.
  ------------------
  |  |   96|  1.33k|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  |  Branch (440:7): [True: 734, False: 598]
  ------------------
  441|    598|	if ( data == 0 ) data = "";
  ------------------
  |  Branch (441:7): [True: 0, False: 598]
  ------------------
  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|    598|	XML_Node * parentNode = thiz->parseStack.back();
  451|    598|	XML_Node * piNode  = new XML_Node ( parentNode, target, kPINode );
  452|       |	
  453|    598|	piNode->value.assign ( data );
  454|    598|	parentNode->content.push_back ( piNode );
  455|       |	
  456|    598|}	// ProcessingInstructionHandler

_Z10ProcessRDFP8XMP_NodeRK8XML_Nodej:
  624|  2.36k|{
  625|  2.36k|	IgnoreParam(options);
  ------------------
  |  |  117|  2.36k|#define IgnoreParam(p)	(void)p
  ------------------
  626|       |	
  627|  2.36k|	RDF_RDF ( xmpTree, rdfNode );
  628|       |
  629|  2.36k|}	// ProcessRDF
ParseRDF.cpp:_ZL7RDF_RDFP8XMP_NodeRK8XML_Node:
  646|  2.36k|{
  647|       |
  648|  2.36k|	if ( ! xmlNode.attrs.empty() ) XMP_Throw ( "Invalid attributes of rdf:RDF element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     13|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (648:7): [True: 13, False: 2.35k]
  ------------------
  649|  2.35k|	RDF_NodeElementList ( xmpTree, xmlNode, kIsTopLevel );
  650|       |
  651|  2.35k|}	// RDF_RDF
ParseRDF.cpp:_ZL19RDF_NodeElementListP8XMP_NodeRK8XML_Nodeb:
  663|  2.35k|{
  664|  2.35k|	XMP_Assert ( isTopLevel );
  ------------------
  |  |  142|  2.35k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  665|       |	
  666|  2.35k|	XML_cNodePos currChild = xmlParent.content.begin();	// *** Change these loops to the indexed pattern.
  667|  2.35k|	XML_cNodePos endChild  = xmlParent.content.end();
  668|       |
  669|  6.23k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (669:10): [True: 3.88k, False: 2.35k]
  ------------------
  670|  3.88k|		if ( (*currChild)->IsWhitespaceNode() ) continue;
  ------------------
  |  Branch (670:8): [True: 1.53k, False: 2.35k]
  ------------------
  671|  2.35k|		RDF_NodeElement ( xmpParent, **currChild, isTopLevel );
  672|  2.35k|	}
  673|       |
  674|  2.35k|}	// RDF_NodeElementList
ParseRDF.cpp:_ZL15RDF_NodeElementP8XMP_NodeRK8XML_Nodeb:
  694|  3.55k|{
  695|  3.55k|	RDFTermKind nodeTerm = GetRDFTermKind ( xmlNode.name );
  696|  3.55k|	if ( (nodeTerm != kRDFTerm_Description) && (nodeTerm != kRDFTerm_Other) ) {
  ------------------
  |  Branch (696:7): [True: 1.31k, False: 2.24k]
  |  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.55k|	if ( isTopLevel && (nodeTerm == kRDFTerm_Other) ) {
  ------------------
  |  Branch (700:7): [True: 2.35k, False: 1.20k]
  |  Branch (700:21): [True: 104, False: 2.24k]
  ------------------
  701|    104|		XMP_Throw ( "Top level typedNode not allowed", kXMPErr_BadXMP );
  ------------------
  |  |  199|    104|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  702|  3.45k|	} else {
  703|  3.45k|		RDF_NodeElementAttrs ( xmpParent, xmlNode, isTopLevel );
  704|  3.45k|		RDF_PropertyElementList ( xmpParent, xmlNode, isTopLevel );
  705|  3.45k|	}
  706|       |
  707|  3.55k|}	// RDF_NodeElement
ParseRDF.cpp:_ZL14GetRDFTermKindRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  264|  22.0k|{
  265|  22.0k|	RDFTermKind term = kRDFTerm_Other;
  266|       |
  267|       |	// Arranged to hopefully minimize the parse time for large XMP.
  268|       |
  269|  22.0k|	if ( (name.size() > 4) && (strncmp ( name.c_str(), "rdf:", 4 ) == 0) ) {
  ------------------
  |  Branch (269:7): [True: 21.9k, False: 105]
  |  Branch (269:28): [True: 8.39k, False: 13.5k]
  ------------------
  270|       |
  271|  8.39k|		if ( name == "rdf:li" ) {
  ------------------
  |  Branch (271:8): [True: 2.44k, False: 5.95k]
  ------------------
  272|  2.44k|			term = kRDFTerm_li;
  273|  5.95k|		} else if ( name == "rdf:parseType" ) {
  ------------------
  |  Branch (273:15): [True: 12, False: 5.93k]
  ------------------
  274|     12|			term = kRDFTerm_parseType;
  275|  5.93k|		} else if ( name == "rdf:Description" ) {
  ------------------
  |  Branch (275:15): [True: 2.24k, False: 3.69k]
  ------------------
  276|  2.24k|			term = kRDFTerm_Description;
  277|  3.69k|		} else if ( name == "rdf:about" ) {
  ------------------
  |  Branch (277:15): [True: 495, False: 3.19k]
  ------------------
  278|    495|			term = kRDFTerm_about;
  279|  3.19k|		} else if ( name == "rdf:resource" ) {
  ------------------
  |  Branch (279:15): [True: 6, False: 3.19k]
  ------------------
  280|      6|			term = kRDFTerm_resource;
  281|  3.19k|		} else if ( name == "rdf:RDF" ) {
  ------------------
  |  Branch (281:15): [True: 10, False: 3.18k]
  ------------------
  282|     10|			term = kRDFTerm_RDF;
  283|  3.18k|		} else if ( name == "rdf:ID" ) {
  ------------------
  |  Branch (283:15): [True: 226, False: 2.95k]
  ------------------
  284|    226|			term = kRDFTerm_ID;
  285|  2.95k|		} else if ( name == "rdf:nodeID" ) {
  ------------------
  |  Branch (285:15): [True: 30, False: 2.92k]
  ------------------
  286|     30|			term = kRDFTerm_nodeID;
  287|  2.92k|		} else if ( name == "rdf:datatype" ) {
  ------------------
  |  Branch (287:15): [True: 3, False: 2.92k]
  ------------------
  288|      3|			term = kRDFTerm_datatype;
  289|  2.92k|		} else if ( name == "rdf:aboutEach" ) {
  ------------------
  |  Branch (289:15): [True: 21, False: 2.90k]
  ------------------
  290|     21|			term = kRDFTerm_aboutEach;
  291|  2.90k|		} else if ( name == "rdf:aboutEachPrefix" ) {
  ------------------
  |  Branch (291:15): [True: 0, False: 2.90k]
  ------------------
  292|      0|			term = kRDFTerm_aboutEachPrefix;
  293|  2.90k|		} else if ( name == "rdf:bagID" ) {
  ------------------
  |  Branch (293:15): [True: 21, False: 2.87k]
  ------------------
  294|     21|			term = kRDFTerm_bagID;
  295|     21|		}
  296|       |
  297|  8.39k|	}
  298|       |
  299|  22.0k|	return term;
  300|       |
  301|  22.0k|}	// GetRDFTermKind
ParseRDF.cpp:_ZL20RDF_NodeElementAttrsP8XMP_NodeRK8XML_Nodeb:
  731|  3.45k|{
  732|  3.45k|	XMP_OptionBits exclusiveAttrs = 0;	// Used to detect attributes that are mutually exclusive.
  733|       |
  734|  3.45k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
  735|  3.45k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
  736|       |
  737|  13.5k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (737:10): [True: 10.5k, False: 3.06k]
  ------------------
  738|       |
  739|  10.5k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
  740|       |
  741|  10.5k|		switch ( attrTerm ) {
  742|       |
  743|     57|			case kRDFTerm_ID     :
  ------------------
  |  Branch (743:4): [True: 57, False: 10.4k]
  ------------------
  744|     74|			case kRDFTerm_nodeID :
  ------------------
  |  Branch (744:4): [True: 17, False: 10.5k]
  ------------------
  745|    564|			case kRDFTerm_about  :
  ------------------
  |  Branch (745:4): [True: 490, False: 10.0k]
  ------------------
  746|       |
  747|    564|				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: 564]
  ------------------
  748|    564|				exclusiveAttrs |= (1 << attrTerm);
  749|       |
  750|    564|				if ( isTopLevel && (attrTerm == kRDFTerm_about) ) {
  ------------------
  |  Branch (750:10): [True: 564, False: 0]
  |  Branch (750:24): [True: 490, False: 74]
  ------------------
  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|    490|					XMP_Assert ( xmpParent->parent == 0 );	// Must be the tree root node.
  ------------------
  |  |  142|    490|	#define XMP_Assert(c)	((void) 0)
  ------------------
  754|    490|					if ( xmpParent->name.empty() ) {
  ------------------
  |  Branch (754:11): [True: 490, False: 0]
  ------------------
  755|    490|						xmpParent->name = (*currAttr)->value;
  756|    490|					} 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|    490|				}
  760|       |
  761|    564|				break;
  762|       |
  763|  9.89k|			case kRDFTerm_Other :
  ------------------
  |  Branch (763:4): [True: 9.89k, False: 624]
  ------------------
  764|  9.89k|				AddChildNode ( xmpParent, **currAttr, (*currAttr)->value.c_str(), isTopLevel );
  765|  9.89k|				break;
  766|       |
  767|     60|			default :
  ------------------
  |  Branch (767:4): [True: 60, False: 10.4k]
  ------------------
  768|     60|				XMP_Throw ( "Invalid nodeElement attribute", kXMPErr_BadRDF );
  ------------------
  |  |  199|     60|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  769|       |
  770|  10.5k|		}
  771|       |
  772|  10.5k|	}
  773|       |
  774|  3.45k|}	// 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: 297, False: 15.6k]
  ------------------
  371|    297|		XMP_Throw ( "XML namespace required for all elements and attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|    297|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  372|      0|	}
  373|       |		
  374|  15.6k|	XMP_StringPtr  childName    = xmlNode.name.c_str();
  375|  15.6k|	const bool     isArrayItem  = (xmlNode.name == "rdf:li");
  376|  15.6k|	const bool     isValueNode  = (xmlNode.name == "rdf:value");
  377|  15.6k|	XMP_OptionBits childOptions = 0;
  378|       |	
  379|  15.6k|	if ( isTopLevel ) {
  ------------------
  |  Branch (379:7): [True: 12.0k, False: 3.58k]
  ------------------
  380|       |
  381|       |		// Lookup the schema node, adjust the XMP parent pointer.
  382|  12.0k|		XMP_Assert ( xmpParent->parent == 0 );	// Incoming parent must be the tree root.
  ------------------
  |  |  142|  12.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  383|  12.0k|		XMP_Node * schemaNode = FindSchemaNode ( xmpParent, xmlNode.ns.c_str(), kXMP_CreateNodes );
  ------------------
  |  |  295|  12.0k|#define kXMP_CreateNodes	true
  ------------------
  384|  12.0k|		if ( schemaNode->options & kXMP_NewImplicitNode ) schemaNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  12.0k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
              		if ( schemaNode->options & kXMP_NewImplicitNode ) schemaNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  4.15k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (384:8): [True: 4.15k, False: 7.91k]
  ------------------
  385|       |			// *** Should use "opt &= ~flag" (no conditional), need runtime check for proper 32 bit code.
  386|  12.0k|		xmpParent = schemaNode;
  387|       |		
  388|       |		// If this is an alias set the isAlias flag in the node and the hasAliases flag in the tree.
  389|  12.0k|		if ( sRegisteredAliasMap->find ( xmlNode.name ) != sRegisteredAliasMap->end() ) {
  ------------------
  |  Branch (389:8): [True: 0, False: 12.0k]
  ------------------
  390|      0|			childOptions |= kXMP_PropIsAlias;
  391|      0|			schemaNode->parent->options |= kXMP_PropHasAliases;
  392|      0|		}
  393|       |		
  394|  12.0k|	}
  395|       |
  396|       |	// Make sure that this is not a duplicate of a named node.
  397|  15.6k|	if ( ! (isArrayItem | isValueNode) ) {
  ------------------
  |  Branch (397:7): [True: 13.1k, False: 2.47k]
  ------------------
  398|  13.1k|		if ( FindChildNode ( xmpParent, childName, kXMP_ExistingOnly ) != 0 ) {
  ------------------
  |  |  296|  13.1k|#define kXMP_ExistingOnly	false
  ------------------
  |  Branch (398:8): [True: 0, False: 13.1k]
  ------------------
  399|      0|			XMP_Throw ( "Duplicate property or field node", kXMPErr_BadXMP );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  400|      0|		}
  401|       |		
  402|  13.1k|	}
  403|       |	
  404|       |	// Add the new child to the XMP parent node.
  405|  15.6k|	XMP_Node * newChild = new XMP_Node ( xmpParent, childName, value, childOptions );
  406|  15.6k|	if ( (! isValueNode) || xmpParent->children.empty() ) {
  ------------------
  |  Branch (406:7): [True: 15.5k, False: 58]
  |  Branch (406:26): [True: 39, False: 19]
  ------------------
  407|  15.6k|		 xmpParent->children.push_back ( newChild );
  408|  15.6k|	} else {
  409|     31|		 xmpParent->children.insert ( xmpParent->children.begin(), newChild );
  410|     31|	}
  411|  15.6k|	if ( isValueNode ) {
  ------------------
  |  Branch (411:7): [True: 58, False: 15.5k]
  ------------------
  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.5k|	if ( isArrayItem ) {
  ------------------
  |  Branch (416:7): [True: 2.41k, False: 13.1k]
  ------------------
  417|  2.41k|		if ( ! (xmpParent->options & kXMP_PropValueIsArray) ) XMP_Throw ( "Misplaced rdf:li element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (417:8): [True: 3, False: 2.41k]
  ------------------
  418|  2.41k|		newChild->name = kXMP_ArrayItemName;
  ------------------
  |  |  293|  2.41k|#define kXMP_ArrayItemName	"[]"
  ------------------
  419|       |		#if 0	// *** XMP_DebugBuild
  420|       |			newChild->_namePtr = newChild->name.c_str();
  421|       |		#endif
  422|  2.41k|	}
  423|       |	
  424|  15.5k|	return newChild;
  425|       |
  426|  15.5k|}	// AddChildNode
ParseRDF.cpp:_ZL23RDF_PropertyElementListP8XMP_NodeRK8XML_Nodeb:
  786|  3.06k|{
  787|  3.06k|	XML_cNodePos currChild = xmlParent.content.begin();
  788|  3.06k|	XML_cNodePos endChild  = xmlParent.content.end();
  789|       |
  790|  18.9k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (790:10): [True: 15.9k, False: 3.00k]
  ------------------
  791|  15.9k|		if ( (*currChild)->IsWhitespaceNode() ) continue;
  ------------------
  |  Branch (791:8): [True: 10.9k, False: 4.98k]
  ------------------
  792|  4.98k|		if ( (*currChild)->kind != kElemNode ) {
  ------------------
  |  Branch (792:8): [True: 57, False: 4.92k]
  ------------------
  793|     57|			XMP_Throw ( "Expected property element node not found", kXMPErr_BadRDF );
  ------------------
  |  |  199|     57|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  794|      0|		}
  795|  4.92k|		RDF_PropertyElement ( xmpParent, **currChild, isTopLevel );
  796|  4.92k|	}
  797|       |
  798|  3.06k|}	// RDF_PropertyElementList
ParseRDF.cpp:_ZL19RDF_PropertyElementP8XMP_NodeRK8XML_Nodeb:
  853|  4.92k|{
  854|  4.92k|	RDFTermKind nodeTerm = GetRDFTermKind ( xmlNode.name );
  855|  4.92k|	if ( ! IsPropertyElementName ( nodeTerm ) ) XMP_Throw ( "Invalid property element name", kXMPErr_BadRDF );
  ------------------
  |  |  199|      7|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (855:7): [True: 7, False: 4.91k]
  ------------------
  856|       |	
  857|  4.91k|	if ( xmlNode.attrs.size() > 3 ) {
  ------------------
  |  Branch (857:7): [True: 151, False: 4.76k]
  ------------------
  858|       |
  859|       |		// Only an emptyPropertyElt can have more than 3 attributes.
  860|    151|		RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  861|       |
  862|  4.76k|	} 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|  4.76k|		XML_cNodePos currAttr = xmlNode.attrs.begin();
  868|  4.76k|		XML_cNodePos endAttr  = xmlNode.attrs.end();
  869|  4.76k|		XMP_VarString * attrName = 0;
  870|       |
  871|  5.08k|		for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (871:11): [True: 683, False: 4.40k]
  ------------------
  872|    683|			attrName = &((*currAttr)->name);
  873|    683|			if ( (*attrName != "xml:lang") && (*attrName != "rdf:ID") ) break;
  ------------------
  |  Branch (873:9): [True: 453, False: 230]
  |  Branch (873:38): [True: 366, False: 87]
  ------------------
  874|    683|		}
  875|       |
  876|  4.76k|		if ( currAttr != endAttr ) {
  ------------------
  |  Branch (876:8): [True: 366, False: 4.40k]
  ------------------
  877|       |
  878|    366|			XMP_Assert ( attrName != 0 );
  ------------------
  |  |  142|    366|	#define XMP_Assert(c)	((void) 0)
  ------------------
  879|    366|			XMP_VarString& attrValue = (*currAttr)->value;
  880|       |
  881|    366|			if ( *attrName == "rdf:datatype" ) {
  ------------------
  |  Branch (881:9): [True: 0, False: 366]
  ------------------
  882|      0|				RDF_LiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  883|    366|			} else if ( *attrName != "rdf:parseType" ) {
  ------------------
  |  Branch (883:16): [True: 354, False: 12]
  ------------------
  884|    354|				RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  885|    354|			} 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.40k|		} 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.40k|			if ( xmlNode.content.empty() ) {
  ------------------
  |  Branch (900:9): [True: 751, False: 3.64k]
  ------------------
  901|       |
  902|    751|				RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  903|       |
  904|  3.64k|			} else {
  905|       |			
  906|  3.64k|				XML_cNodePos currChild = xmlNode.content.begin();
  907|  3.64k|				XML_cNodePos endChild  = xmlNode.content.end();
  908|       |
  909|  10.2k|				for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (909:13): [True: 7.83k, False: 2.42k]
  ------------------
  910|  7.83k|					if ( (*currChild)->kind != kCDataNode ) break;
  ------------------
  |  Branch (910:11): [True: 1.22k, False: 6.60k]
  ------------------
  911|  7.83k|				}
  912|       |				
  913|  3.64k|				if ( currChild == endChild ) {
  ------------------
  |  Branch (913:10): [True: 2.42k, False: 1.22k]
  ------------------
  914|  2.42k|					RDF_LiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  915|  2.42k|				} else {
  916|  1.22k|					RDF_ResourcePropertyElement ( xmpParent, xmlNode, isTopLevel );
  917|  1.22k|				}
  918|       |			
  919|  3.64k|			}
  920|       |
  921|  4.40k|		}
  922|       |		
  923|  4.76k|	}
  924|       |
  925|  4.91k|}	// RDF_PropertyElement
ParseRDF.cpp:_ZL21IsPropertyElementNameh:
  349|  4.92k|{
  350|       |
  351|  4.92k|	if 	( (term == kRDFTerm_Description) || IsOldTerm ( term ) ) return false;
  ------------------
  |  Branch (351:8): [True: 0, False: 4.92k]
  |  Branch (351:42): [True: 0, False: 4.92k]
  ------------------
  352|  4.92k|	return (! IsCoreSyntaxTerm ( term ));
  353|       |
  354|  4.92k|}	// IsPropertyElementName
ParseRDF.cpp:_ZL9IsOldTermh:
  333|  4.92k|{
  334|       |
  335|  4.92k|	if 	( (kRDFTerm_FirstOld <= term) && (term <= kRDFTerm_LastOld) ) return true;
  ------------------
  |  Branch (335:8): [True: 0, False: 4.92k]
  |  Branch (335:39): [True: 0, False: 0]
  ------------------
  336|  4.92k|	return false;
  337|       |
  338|  4.92k|}	// IsOldTerm
ParseRDF.cpp:_ZL16IsCoreSyntaxTermh:
  316|  4.92k|{
  317|       |
  318|  4.92k|	if 	( (kRDFTerm_FirstCore <= term) && (term <= kRDFTerm_LastCore) ) return true;
  ------------------
  |  Branch (318:8): [True: 2.44k, False: 2.47k]
  |  Branch (318:40): [True: 7, False: 2.44k]
  ------------------
  319|  4.91k|	return false;
  320|       |
  321|  4.92k|}	// IsCoreSyntaxTerm
ParseRDF.cpp:_ZL24RDF_EmptyPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1189|  1.25k|{
 1190|  1.25k|	bool hasPropertyAttrs = false;
 1191|  1.25k|	bool hasResourceAttr  = false;
 1192|  1.25k|	bool hasNodeIDAttr    = false;
 1193|  1.25k|	bool hasValueAttr     = false;
 1194|       |	
 1195|  1.25k|	const XML_Node * valueNode = 0;	// ! Can come from rdf:value or rdf:resource.
 1196|       |	
 1197|  1.25k|	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.24k]
  ------------------
 1198|       |	
 1199|       |	// First figure out what XMP this maps to and remember the XML node for a simple value.
 1200|       |	
 1201|  1.24k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
 1202|  1.24k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
 1203|       |
 1204|  2.81k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1204:10): [True: 1.57k, False: 1.24k]
  ------------------
 1205|       |
 1206|  1.57k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
 1207|       |
 1208|  1.57k|		switch ( attrTerm ) {
 1209|       |
 1210|     89|			case kRDFTerm_ID :
  ------------------
  |  Branch (1210:4): [True: 89, False: 1.49k]
  ------------------
 1211|       |				// Nothing to do.
 1212|     89|				break;
 1213|       |
 1214|      6|			case kRDFTerm_resource :
  ------------------
  |  Branch (1214:4): [True: 6, False: 1.57k]
  ------------------
 1215|      6|				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: 6]
  ------------------
 1216|      6|				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: 3]
  ------------------
 1217|      3|				hasResourceAttr = true;
 1218|      3|				if ( ! hasValueAttr ) valueNode = *currAttr;
  ------------------
  |  Branch (1218:10): [True: 3, False: 0]
  ------------------
 1219|      3|				break;
 1220|       |
 1221|      8|			case kRDFTerm_nodeID :
  ------------------
  |  Branch (1221:4): [True: 8, False: 1.57k]
  ------------------
 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.47k|			case kRDFTerm_Other :
  ------------------
  |  Branch (1226:4): [True: 1.47k, False: 106]
  ------------------
 1227|  1.47k|				if ( (*currAttr)->name == "rdf:value" ) {
  ------------------
  |  Branch (1227:10): [True: 42, False: 1.43k]
  ------------------
 1228|     42|					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: 42]
  ------------------
 1229|     42|					hasValueAttr = true;
 1230|     42|					valueNode = *currAttr;
 1231|  1.43k|				} else if ( (*currAttr)->name != "xml:lang" ) {
  ------------------
  |  Branch (1231:17): [True: 1.32k, False: 102]
  ------------------
 1232|  1.32k|					hasPropertyAttrs = true;
 1233|  1.32k|				}
 1234|  1.47k|				break;
 1235|       |
 1236|  1.47k|			default :
  ------------------
  |  Branch (1236:4): [True: 3, False: 1.57k]
  ------------------
 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.57k|		}
 1241|       |
 1242|  1.57k|	}
 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.24k|	XMP_Node * childNode = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
 1249|  1.24k|	bool childIsStruct = false;
 1250|       |	
 1251|  1.24k|	if ( hasValueAttr | hasResourceAttr ) {
  ------------------
  |  Branch (1251:7): [True: 42, False: 1.19k]
  ------------------
 1252|     42|		childNode->value = valueNode->value;
 1253|     42|		if ( ! hasValueAttr ) childNode->options |= kXMP_PropValueIsURI;	// ! Might have both rdf:value and rdf:resource.
  ------------------
  |  Branch (1253:8): [True: 3, False: 39]
  ------------------
 1254|  1.19k|	} else if ( hasPropertyAttrs ) {
  ------------------
  |  Branch (1254:14): [True: 442, False: 756]
  ------------------
 1255|    442|		childNode->options |= kXMP_PropValueIsStruct;
 1256|    442|		childIsStruct = true;
 1257|    442|	}
 1258|       |		
 1259|  1.24k|	currAttr = xmlNode.attrs.begin();
 1260|  1.24k|	endAttr  = xmlNode.attrs.end();
 1261|       |
 1262|  2.71k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1262:10): [True: 1.49k, False: 1.21k]
  ------------------
 1263|       |
 1264|  1.49k|		if ( *currAttr == valueNode ) continue;	// Skip the rdf:value or rdf:resource attribute holding the value.
  ------------------
  |  Branch (1264:8): [True: 42, False: 1.45k]
  ------------------
 1265|  1.45k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
 1266|       |
 1267|  1.45k|		switch ( attrTerm ) {
 1268|       |
 1269|     80|			case kRDFTerm_ID       :
  ------------------
  |  Branch (1269:4): [True: 80, False: 1.37k]
  ------------------
 1270|     85|			case kRDFTerm_nodeID   :
  ------------------
  |  Branch (1270:4): [True: 5, False: 1.45k]
  ------------------
 1271|     85|				break;	// Ignore all rdf:ID and rdf:nodeID attributes.w
 1272|       |				
 1273|      0|			case kRDFTerm_resource :
  ------------------
  |  Branch (1273:4): [True: 0, False: 1.45k]
  ------------------
 1274|      0|				AddQualifierNode ( childNode, **currAttr );
 1275|      0|				break;
 1276|       |
 1277|  1.37k|			case kRDFTerm_Other :
  ------------------
  |  Branch (1277:4): [True: 1.37k, False: 85]
  ------------------
 1278|  1.37k|				if ( (! childIsStruct) || (*currAttr)->name == "xml:lang" ) {
  ------------------
  |  Branch (1278:10): [True: 170, False: 1.20k]
  |  Branch (1278:31): [True: 42, False: 1.16k]
  ------------------
 1279|    212|					AddQualifierNode ( childNode, **currAttr );
 1280|  1.16k|				} else {
 1281|  1.16k|					AddChildNode ( childNode, **currAttr, (*currAttr)->value.c_str(), false );
 1282|  1.16k|				}
 1283|  1.37k|				break;
 1284|       |
 1285|      0|			default :
  ------------------
  |  Branch (1285:4): [True: 0, False: 1.45k]
  ------------------
 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.45k|		}
 1290|       |
 1291|  1.45k|	}
 1292|       |
 1293|  1.24k|}	// RDF_EmptyPropertyElement
ParseRDF.cpp:_ZL16AddQualifierNodeP8XMP_NodeRK8XML_Node:
  483|    380|{
  484|    380|	if ( attr.ns.empty() ) {
  ------------------
  |  Branch (484:7): [True: 6, False: 374]
  ------------------
  485|      6|		XMP_Throw ( "XML namespace required for all elements and attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|      6|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  486|      0|	}
  487|       |	
  488|    374|	return AddQualifierNode ( xmpParent, attr.name, attr.value );
  489|       |
  490|    380|}	// AddQualifierNode
ParseRDF.cpp:_ZL16AddQualifierNodeP8XMP_NodeRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  435|    397|{
  436|       |
  437|       |	#if 0
  438|       |		cout << "AddQualifierNode, parent = " << xmpParent->name << ", name = " << name;
  439|       |		cout << ", value = \"" << value << '"' << endl;
  440|       |	#endif
  441|       |	
  442|    397|	const bool isLang = (name == "xml:lang");
  443|    397|	const bool isType = (name == "rdf:type");
  444|       |
  445|    397|	XMP_Node * newQual = 0;
  446|       |
  447|    397|		newQual = new XMP_Node ( xmpParent, name, value, kXMP_PropIsQualifier );
  448|       |
  449|    397|		if ( ! (isLang | isType) ) {
  ------------------
  |  Branch (449:8): [True: 125, False: 272]
  ------------------
  450|    125|			xmpParent->qualifiers.push_back ( newQual );
  451|    272|		} else if ( isLang ) {
  ------------------
  |  Branch (451:15): [True: 249, False: 23]
  ------------------
  452|    249|			if ( xmpParent->qualifiers.empty() ) {
  ------------------
  |  Branch (452:9): [True: 245, False: 4]
  ------------------
  453|    245|				xmpParent->qualifiers.push_back ( newQual );
  454|    245|			} else {
  455|      4|				xmpParent->qualifiers.insert ( xmpParent->qualifiers.begin(), newQual );
  456|      4|			}
  457|    249|			xmpParent->options |= kXMP_PropHasLang;
  458|    249|		} else {
  459|     23|			XMP_Assert ( isType );
  ------------------
  |  |  142|     23|	#define XMP_Assert(c)	((void) 0)
  ------------------
  460|     23|			if ( xmpParent->qualifiers.empty() ) {
  ------------------
  |  Branch (460:9): [True: 22, False: 1]
  ------------------
  461|     22|				xmpParent->qualifiers.push_back ( newQual );
  462|     22|			} else {
  463|      1|				size_t offset = 0;
  464|      1|				if ( XMP_PropHasLang ( xmpParent->options ) ) offset = 1;
  ------------------
  |  Branch (464:10): [True: 1, False: 0]
  ------------------
  465|      1|				xmpParent->qualifiers.insert ( xmpParent->qualifiers.begin()+offset, newQual );
  466|      1|			}
  467|     23|			xmpParent->options |= kXMP_PropHasType;
  468|     23|		}
  469|       |
  470|    397|		xmpParent->options |= kXMP_PropHasQualifiers;
  471|       |
  472|    397|	return newQual;
  473|       |
  474|    397|}	// AddQualifierNode
ParseRDF.cpp:_ZL26RDF_LiteralPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1014|  2.42k|{
 1015|  2.42k|	XMP_Node * newChild = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
 1016|       |	
 1017|  2.42k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
 1018|  2.42k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
 1019|       |
 1020|  2.58k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1020:10): [True: 166, False: 2.42k]
  ------------------
 1021|    166|		XMP_VarString & attrName = (*currAttr)->name;
 1022|    166|		if ( attrName == "xml:lang" ) {
  ------------------
  |  Branch (1022:8): [True: 166, False: 0]
  ------------------
 1023|    166|			AddQualifierNode ( newChild, **currAttr );
 1024|    166|		} 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|    166|	}
 1030|       |	
 1031|  2.42k|	XML_cNodePos currChild = xmlNode.content.begin();
 1032|  2.42k|	XML_cNodePos endChild  = xmlNode.content.end();
 1033|  2.42k|	size_t      textSize  = 0;
 1034|       |
 1035|  6.60k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (1035:10): [True: 4.18k, False: 2.42k]
  ------------------
 1036|  4.18k|		if ( (*currChild)->kind != kCDataNode ) XMP_Throw ( "Invalid child of literal property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1036:8): [True: 0, False: 4.18k]
  ------------------
 1037|  4.18k|		textSize += (*currChild)->value.size();
 1038|  4.18k|	}
 1039|       |	
 1040|  2.42k|	newChild->value.reserve ( textSize );
 1041|       |
 1042|  6.60k|	for ( currChild = xmlNode.content.begin(); currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (1042:45): [True: 4.18k, False: 2.42k]
  ------------------
 1043|  4.18k|		newChild->value += (*currChild)->value;
 1044|  4.18k|	}
 1045|       |
 1046|       |	#if 0	// *** XMP_DebugBuild
 1047|       |		newChild->_valuePtr = newChild->value.c_str();
 1048|       |	#endif
 1049|       |	
 1050|  2.42k|}	// 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.22k|{
  943|  1.22k|	if ( isTopLevel && (xmlNode.name == "iX:changes") ) return;	// Strip old "punchcard" chaff.
  ------------------
  |  Branch (943:7): [True: 1.22k, False: 8]
  |  Branch (943:21): [True: 0, False: 1.22k]
  ------------------
  944|       |	
  945|  1.22k|	XMP_Node * newCompound = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
  946|       |	
  947|  1.22k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
  948|  1.22k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
  949|       |
  950|  1.23k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (950:10): [True: 2, False: 1.22k]
  ------------------
  951|      2|		XMP_VarString & attrName = (*currAttr)->name;
  952|      2|		if ( attrName == "xml:lang" ) {
  ------------------
  |  Branch (952:8): [True: 2, False: 0]
  ------------------
  953|      2|			AddQualifierNode ( newCompound, **currAttr );
  954|      2|		} else if ( attrName == "rdf:ID" ) {
  ------------------
  |  Branch (954:15): [True: 0, False: 0]
  ------------------
  955|      0|			continue;	// Ignore all rdf:ID attributes.
  956|      0|		} else {
  957|      0|			XMP_Throw ( "Invalid attribute for resource property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  958|      0|		}
  959|      2|	}
  960|       |	
  961|  1.22k|	XML_cNodePos currChild = xmlNode.content.begin();
  962|  1.22k|	XML_cNodePos endChild  = xmlNode.content.end();
  963|       |
  964|  3.61k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (964:10): [True: 3.61k, False: 0]
  ------------------
  965|  3.61k|		if ( ! (*currChild)->IsWhitespaceNode() ) break;
  ------------------
  |  Branch (965:8): [True: 1.22k, False: 2.38k]
  ------------------
  966|  3.61k|	}
  967|  1.22k|	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.22k]
  ------------------
  968|  1.22k|	if ( (*currChild)->kind != kElemNode ) XMP_Throw ( "Children of resource property element must be XML elements", kXMPErr_BadRDF );
  ------------------
  |  |  199|     21|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (968:7): [True: 21, False: 1.20k]
  ------------------
  969|       |
  970|  1.20k|	if ( (*currChild)->name == "rdf:Bag" ) {
  ------------------
  |  Branch (970:7): [True: 134, False: 1.07k]
  ------------------
  971|    134|		newCompound->options |= kXMP_PropValueIsArray;
  972|  1.07k|	} else if ( (*currChild)->name == "rdf:Seq" ) {
  ------------------
  |  Branch (972:14): [True: 769, False: 305]
  ------------------
  973|    769|		newCompound->options |= kXMP_PropValueIsArray | kXMP_PropArrayIsOrdered;
  974|    769|	} else if ( (*currChild)->name == "rdf:Alt" ) {
  ------------------
  |  Branch (974:14): [True: 281, False: 24]
  ------------------
  975|    281|		newCompound->options |= kXMP_PropValueIsArray | kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate;
  976|    281|	} else {
  977|     24|		newCompound->options |= kXMP_PropValueIsStruct;
  978|     24|		if ( (*currChild)->name != "rdf:Description" ) {
  ------------------
  |  Branch (978:8): [True: 24, False: 0]
  ------------------
  979|     24|			XMP_VarString typeName ( (*currChild)->ns );
  980|     24|			size_t        colonPos = (*currChild)->name.find_first_of(':');
  981|     24|			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: 23]
  ------------------
  982|     23|			typeName.append ( (*currChild)->name, colonPos, XMP_VarString::npos );
  983|     23|			AddQualifierNode ( newCompound, XMP_VarString("rdf:type"), typeName );
  984|     23|		}
  985|     24|	}
  986|       |
  987|  1.20k|	RDF_NodeElement ( newCompound, **currChild, kNotTopLevel );
  988|  1.20k|	if ( newCompound->options & kRDF_HasValueElem ) {
  ------------------
  |  Branch (988:7): [True: 0, False: 1.20k]
  ------------------
  989|      0|		FixupQualifiedNode ( newCompound );
  990|  1.20k|	} else if ( newCompound->options & kXMP_PropArrayIsAlternate ) {
  ------------------
  |  Branch (990:14): [True: 273, False: 934]
  ------------------
  991|    273|		DetectAltText ( newCompound );
  992|    273|	}
  993|       |
  994|  3.24k|	for ( ++currChild; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (994:21): [True: 2.07k, False: 1.16k]
  ------------------
  995|  2.07k|		if ( ! (*currChild)->IsWhitespaceNode() ) XMP_Throw ( "Invalid child of resource property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     38|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (995:8): [True: 38, False: 2.03k]
  ------------------
  996|  2.03k|	}
  997|       |
  998|  1.20k|}	// 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|  31.3k|{
  568|  31.3k|	UTF8Unit inUnit;	// ! Don't read until we know there is input.
  569|  31.3k|	size_t unitCount = 0;
  570|       |
  571|  31.3k|	UC_Assert ( (utf8In != 0) && (cpOut != 0) && (utf8Read != 0) );
  572|  31.3k|	if ( utf8Len == 0 ) goto Done;
  ------------------
  |  Branch (572:7): [True: 0, False: 31.3k]
  ------------------
  573|  31.3k|	inUnit = *utf8In;
  574|  31.3k|	if ( inUnit >= 0x80 ) goto MultiByte;	// ! Force linear execution path for ASCII.
  ------------------
  |  Branch (574:7): [True: 31.3k, False: 0]
  ------------------
  575|       |	
  576|      0|	unitCount = 1;
  577|      0|	*cpOut = inUnit;	// ! Don't put after Done, don't write if no input.
  578|       |	
  579|      0|Done:	
  580|      0|	*utf8Read = unitCount;
  581|      0|	return;
  582|       |
  583|  31.3k|MultiByte:
  584|  31.3k|	CodePoint_from_UTF8_Multi ( utf8In, utf8Len, cpOut, utf8Read );
  585|  31.3k|	return;
  586|       |	
  587|      0|}	// CodePoint_from_UTF8
UnicodeConversions.cpp:_ZL25CodePoint_from_UTF8_MultiPKhmPjPm:
  516|  31.3k|{
  517|  31.3k|	UTF8Unit  inUnit = *utf8In;
  518|  31.3k|	size_t    unitCount = 0;
  519|  31.3k|	UTF32Unit cp;	// ! Avoid gcc complaints about declarations after goto's.
  520|  31.3k|	const UTF8Unit * utf8Pos;
  521|       |
  522|       |	// -------------------------------------------------------------------------------------
  523|       |	// We've got a multibyte UTF-8 character. The first byte has the number of bytes and the
  524|       |	// highest order data bits. The other bytes each add 6 more data bits.
  525|       |	
  526|       |	#if 0	// This might be a more effcient way to count the bytes.
  527|       |		static XMP_Uns8 kByteCounts[16] = { 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 3, 4 };
  528|       |		size_t bytesNeeded = kByteCounts [ inUnit >> 4 ];
  529|       |		if ( (bytesNeeded < 2) || ((bytesNeeded == 4) && ((inUnit & 0x08) != 0)) ) {
  530|       |			UC_Throw ( "Invalid UTF-8 sequence length", kXMPErr_BadParam );
  531|       |		}
  532|       |	#endif
  533|       |
  534|  31.3k|	size_t bytesNeeded = 0;	// Count the leading 1 bits in the first byte.
  535|  94.1k|	for ( UTF8Unit temp = inUnit; temp > 0x7F; temp = temp << 1 ) ++bytesNeeded;
  ------------------
  |  Branch (535:32): [True: 62.7k, False: 31.3k]
  ------------------
  536|       |		// *** Consider CPU-specific assembly inline, e.g. cntlzw on PowerPC.
  537|       |	
  538|  31.3k|	if ( (bytesNeeded < 2) || (bytesNeeded > 4) ) UC_Throw ( "Invalid UTF-8 sequence length", kXMPErr_BadParam );
  ------------------
  |  |   18|      0|	#define UC_Throw(msg,id)  throw XMP_Error ( id, msg )
  ------------------
  |  Branch (538:7): [True: 0, False: 31.3k]
  |  Branch (538:28): [True: 0, False: 31.3k]
  ------------------
  539|  31.3k|	if ( bytesNeeded > utf8Len ) goto Done;	// Not enough input in this buffer.
  ------------------
  |  Branch (539:7): [True: 0, False: 31.3k]
  ------------------
  540|  31.3k|	unitCount = bytesNeeded;
  541|       |	
  542|  31.3k|	cp = inUnit & ((1 << (7-unitCount)) - 1);	// Isolate the initial data bits in the bottom of cp.
  543|       |	
  544|  31.3k|	utf8Pos = utf8In + 1;	// We've absorbed the first byte.
  545|  62.7k|	for ( --bytesNeeded; bytesNeeded > 0; --bytesNeeded, ++utf8Pos ) {
  ------------------
  |  Branch (545:23): [True: 31.4k, False: 31.3k]
  ------------------
  546|  31.4k|		inUnit = *utf8Pos;
  547|  31.4k|		if ( (inUnit & UTF8Unit(0xC0)) != UTF8Unit(0x80) ) UC_Throw ( "Invalid UTF-8 data byte", kXMPErr_BadParam );
  ------------------
  |  |   18|      0|	#define UC_Throw(msg,id)  throw XMP_Error ( id, msg )
  ------------------
  |  Branch (547:8): [True: 0, False: 31.4k]
  ------------------
  548|  31.4k|		cp = (cp << 6) | (inUnit & 0x3F);
  549|  31.4k|	}
  550|       |	
  551|  31.3k|	if ( cp >= 0xD800 ) {	// Skip the next comparisons most of the time.
  ------------------
  |  Branch (551:7): [True: 20, False: 31.3k]
  ------------------
  552|     20|		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: 20, False: 0]
  |  Branch (552:26): [True: 0, False: 20]
  ------------------
  553|     20|		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: 20]
  ------------------
  554|     20|	}
  555|       |	
  556|  31.3k|	*cpOut = cp;	// ! Don't put after Done, don't write if no input.
  557|       |	
  558|  31.3k|Done:	
  559|  31.3k|	*utf8Read = unitCount;
  560|  31.3k|	return;
  561|       |	
  562|  31.3k|}	// 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.4k, False: 63]
  ------------------
  100|  43.4k|		++namePos;
  101|  43.4k|		if ( ! IsStartChar_ASCII(cp) ) goto NameError;
  ------------------
  |  Branch (101:8): [True: 0, False: 43.4k]
  ------------------
  102|  43.4k|	} else {
  103|     63|		cp = GetCodePoint ( &namePos );
  104|     63|		if ( ! IsStartChar_NonASCII(cp) ) goto NameError;
  ------------------
  |  Branch (104:8): [True: 0, False: 63]
  ------------------
  105|     63|	}
  106|       |
  107|       |	// Check the rest of the name.
  108|       |	
  109|  1.48M|	while ( namePos < nameEnd ) {
  ------------------
  |  Branch (109:10): [True: 1.43M, False: 43.4k]
  ------------------
  110|  1.43M|		cp = *namePos;
  111|  1.43M|		if ( cp < 0x80 ) {
  ------------------
  |  Branch (111:8): [True: 1.42M, False: 14.8k]
  ------------------
  112|  1.42M|			++namePos;
  113|  1.42M|			if ( (! IsStartChar_ASCII(cp)) && (! IsOtherChar_ASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (113:9): [True: 76.4k, False: 1.34M]
  |  Branch (113:38): [True: 0, False: 76.4k]
  ------------------
  114|  1.42M|		} else {
  115|  14.8k|			cp = GetCodePoint ( &namePos );
  116|  14.8k|			if ( (! IsStartChar_NonASCII(cp)) && (! IsOtherChar_NonASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (116:9): [True: 11.9k, False: 2.81k]
  |  Branch (116:41): [True: 0, False: 11.9k]
  ------------------
  117|  14.8k|		}
  118|  1.43M|	}
  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.46M|{
   32|       |	// ASCII starting characters for an XML name.
   33|  1.46M|	if ( (('a' <= cp) && (cp <= 'z')) || (('A' <= cp) && (cp <= 'Z')) || (cp == '_') ) return true;
  ------------------
  |  Branch (33:8): [True: 919k, False: 546k]
  |  Branch (33:23): [True: 919k, False: 0]
  |  Branch (33:40): [True: 469k, False: 76.4k]
  |  Branch (33:55): [True: 465k, False: 4.20k]
  |  Branch (33:71): [True: 4.20k, False: 76.4k]
  ------------------
   34|  76.4k|	return false;
   35|  1.46M|}
XMPCore_Impl.cpp:_ZL12GetCodePointPPKh:
   19|  14.8k|{
   20|  14.8k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  14.8k|	XMP_Uns32 cp;
   22|  14.8k|	size_t u8Len;
   23|  14.8k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  14.8k|	*utf8Str_io = u8Ptr + u8Len;
   25|  14.8k|	return cp;
   26|  14.8k|}
XMPCore_Impl.cpp:_ZL20IsStartChar_NonASCIIj:
   40|  14.8k|{
   41|       |	// Non-ASCII starting characters for an XML name.
   42|       |	
   43|  14.8k|	if ( ((0xC0 <= cp) && (cp <= 0xD6))  || ((0xD8 <= cp) && (cp <= 0xF6)) ) return true;
  ------------------
  |  Branch (43:8): [True: 2.91k, False: 11.9k]
  |  Branch (43:24): [True: 296, False: 2.61k]
  |  Branch (43:43): [True: 2.61k, False: 11.9k]
  |  Branch (43:59): [True: 405, False: 2.20k]
  ------------------
   44|  14.1k|	if ( ((0xF8 <= cp) && (cp <= 0x2FF)) || ((0x370 <= cp) && (cp <= 0x37D)) ) return true;
  ------------------
  |  Branch (44:8): [True: 2.20k, False: 11.9k]
  |  Branch (44:24): [True: 1.03k, False: 1.17k]
  |  Branch (44:43): [True: 1.14k, False: 11.9k]
  |  Branch (44:60): [True: 0, False: 1.14k]
  ------------------
   45|       |
   46|  13.1k|	if ( ((0x37F <= cp) && (cp <= 0x1FFF))  || ((0x200C <= cp) && (cp <= 0x200D)) ) return true;
  ------------------
  |  Branch (46:8): [True: 1.14k, False: 11.9k]
  |  Branch (46:25): [True: 1.14k, False: 3]
  |  Branch (46:46): [True: 3, False: 11.9k]
  |  Branch (46:64): [True: 0, False: 3]
  ------------------
   47|  11.9k|	if ( ((0x2070 <= cp) && (cp <= 0x218F)) || ((0x2C00 <= cp) && (cp <= 0x2FEF)) ) return true;
  ------------------
  |  Branch (47:8): [True: 3, False: 11.9k]
  |  Branch (47:26): [True: 0, False: 3]
  |  Branch (47:46): [True: 3, False: 11.9k]
  |  Branch (47:64): [True: 0, False: 3]
  ------------------
   48|  11.9k|	if ( ((0x3001 <= cp) && (cp <= 0xD7FF)) || ((0xF900 <= cp) && (cp <= 0xFDCF)) ) return true;
  ------------------
  |  Branch (48:8): [True: 3, False: 11.9k]
  |  Branch (48:26): [True: 3, False: 0]
  |  Branch (48:46): [True: 0, False: 11.9k]
  |  Branch (48:64): [True: 0, False: 0]
  ------------------
   49|  11.9k|	if ( ((0xFDF0 <= cp) && (cp <= 0xFFFD)) || ((0x10000 <= cp) && (cp <= 0xEFFFF)) ) return true;
  ------------------
  |  Branch (49:8): [True: 0, False: 11.9k]
  |  Branch (49:26): [True: 0, False: 0]
  |  Branch (49:46): [True: 0, False: 11.9k]
  |  Branch (49:65): [True: 0, False: 0]
  ------------------
   50|       |
   51|  11.9k|	return false;
   52|       |
   53|  11.9k|}
XMPCore_Impl.cpp:_ZL17IsOtherChar_ASCIIj:
   58|  76.4k|{
   59|       |	// ASCII following characters for an XML name.
   60|  76.4k|	if ( (('0' <= cp) && (cp <= '9')) || (cp == '-') || (cp == '.') ) return true;
  ------------------
  |  Branch (60:8): [True: 44.5k, False: 31.9k]
  |  Branch (60:23): [True: 44.5k, False: 0]
  |  Branch (60:39): [True: 26.7k, False: 5.19k]
  |  Branch (60:54): [True: 5.19k, False: 0]
  ------------------
   61|      0|	return false;
   62|  76.4k|}
XMPCore_Impl.cpp:_ZL20IsOtherChar_NonASCIIj:
   67|  11.9k|{
   68|       |	// Non-ASCII following characters for an XML name.
   69|  11.9k|	if ( (cp == 0xB7) || ((0x300 <= cp) && (cp <= 0x36F))  || ((0x203F <= cp) && (cp <= 0x2040)) ) return true;
  ------------------
  |  Branch (69:7): [True: 11.9k, False: 28]
  |  Branch (69:24): [True: 28, False: 0]
  |  Branch (69:41): [True: 28, False: 0]
  |  Branch (69:61): [True: 0, False: 0]
  |  Branch (69:79): [True: 0, False: 0]
  ------------------
   70|      0|	return false;
   71|  11.9k|}
XMPMeta-GetSet.cpp:_ZL12GetCodePointPPKh:
   19|  1.73k|{
   20|  1.73k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  1.73k|	XMP_Uns32 cp;
   22|  1.73k|	size_t u8Len;
   23|  1.73k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  1.73k|	*utf8Str_io = u8Ptr + u8Len;
   25|  1.73k|	return cp;
   26|  1.73k|}
XMPMeta.cpp:_ZL19VerifySimpleXMLNamePKcS0_:
   87|  8.66k|{
   88|       |
   89|  8.66k|	const XMP_Uns8 * nameStart = (const XMP_Uns8 *) _nameStart;
   90|  8.66k|	const XMP_Uns8 * nameEnd   = (const XMP_Uns8 *) _nameEnd;
   91|  8.66k|	const XMP_Uns8 * namePos   = nameStart;
   92|  8.66k|	XMP_Uns32 cp;
   93|       |	
   94|       |	// The first character is more restricted.
   95|       |	
   96|  8.66k|	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: 8.66k]
  ------------------
   97|       |
   98|  8.66k|	cp = *namePos;
   99|  8.66k|	if ( cp < 0x80 ) {
  ------------------
  |  Branch (99:7): [True: 8.58k, False: 83]
  ------------------
  100|  8.58k|		++namePos;
  101|  8.58k|		if ( ! IsStartChar_ASCII(cp) ) goto NameError;
  ------------------
  |  Branch (101:8): [True: 0, False: 8.58k]
  ------------------
  102|  8.58k|	} else {
  103|     83|		cp = GetCodePoint ( &namePos );
  104|     83|		if ( ! IsStartChar_NonASCII(cp) ) goto NameError;
  ------------------
  |  Branch (104:8): [True: 0, False: 83]
  ------------------
  105|     83|	}
  106|       |
  107|       |	// Check the rest of the name.
  108|       |	
  109|  1.10M|	while ( namePos < nameEnd ) {
  ------------------
  |  Branch (109:10): [True: 1.09M, False: 8.66k]
  ------------------
  110|  1.09M|		cp = *namePos;
  111|  1.09M|		if ( cp < 0x80 ) {
  ------------------
  |  Branch (111:8): [True: 1.07M, False: 14.6k]
  ------------------
  112|  1.07M|			++namePos;
  113|  1.07M|			if ( (! IsStartChar_ASCII(cp)) && (! IsOtherChar_ASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (113:9): [True: 54.5k, False: 1.02M]
  |  Branch (113:38): [True: 0, False: 54.5k]
  ------------------
  114|  1.07M|		} else {
  115|  14.6k|			cp = GetCodePoint ( &namePos );
  116|  14.6k|			if ( (! IsStartChar_NonASCII(cp)) && (! IsOtherChar_NonASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (116:9): [True: 11.9k, False: 2.73k]
  |  Branch (116:41): [True: 0, False: 11.9k]
  ------------------
  117|  14.6k|		}
  118|  1.09M|	}
  119|       |
  120|  8.66k|	return;
  121|       |
  122|  8.66k|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.08M|{
   32|       |	// ASCII starting characters for an XML name.
   33|  1.08M|	if ( (('a' <= cp) && (cp <= 'z')) || (('A' <= cp) && (cp <= 'Z')) || (cp == '_') ) return true;
  ------------------
  |  Branch (33:8): [True: 621k, False: 465k]
  |  Branch (33:23): [True: 621k, False: 0]
  |  Branch (33:40): [True: 410k, False: 54.5k]
  |  Branch (33:55): [True: 407k, False: 3.75k]
  |  Branch (33:71): [True: 3.75k, False: 54.5k]
  ------------------
   34|  54.5k|	return false;
   35|  1.08M|}
XMPMeta.cpp:_ZL12GetCodePointPPKh:
   19|  14.7k|{
   20|  14.7k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  14.7k|	XMP_Uns32 cp;
   22|  14.7k|	size_t u8Len;
   23|  14.7k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  14.7k|	*utf8Str_io = u8Ptr + u8Len;
   25|  14.7k|	return cp;
   26|  14.7k|}
XMPMeta.cpp:_ZL20IsStartChar_NonASCIIj:
   40|  14.7k|{
   41|       |	// Non-ASCII starting characters for an XML name.
   42|       |	
   43|  14.7k|	if ( ((0xC0 <= cp) && (cp <= 0xD6))  || ((0xD8 <= cp) && (cp <= 0xF6)) ) return true;
  ------------------
  |  Branch (43:8): [True: 2.83k, False: 11.9k]
  |  Branch (43:24): [True: 44, False: 2.78k]
  |  Branch (43:43): [True: 2.78k, False: 11.9k]
  |  Branch (43:59): [True: 446, False: 2.34k]
  ------------------
   44|  14.2k|	if ( ((0xF8 <= cp) && (cp <= 0x2FF)) || ((0x370 <= cp) && (cp <= 0x37D)) ) return true;
  ------------------
  |  Branch (44:8): [True: 2.34k, False: 11.9k]
  |  Branch (44:24): [True: 1.75k, False: 586]
  |  Branch (44:43): [True: 575, False: 11.9k]
  |  Branch (44:60): [True: 0, False: 575]
  ------------------
   45|       |
   46|  12.5k|	if ( ((0x37F <= cp) && (cp <= 0x1FFF))  || ((0x200C <= cp) && (cp <= 0x200D)) ) return true;
  ------------------
  |  Branch (46:8): [True: 575, False: 11.9k]
  |  Branch (46:25): [True: 538, False: 37]
  |  Branch (46:46): [True: 37, False: 11.9k]
  |  Branch (46:64): [True: 0, False: 37]
  ------------------
   47|  11.9k|	if ( ((0x2070 <= cp) && (cp <= 0x218F)) || ((0x2C00 <= cp) && (cp <= 0x2FEF)) ) return true;
  ------------------
  |  Branch (47:8): [True: 37, False: 11.9k]
  |  Branch (47:26): [True: 0, False: 37]
  |  Branch (47:46): [True: 37, False: 11.9k]
  |  Branch (47:64): [True: 0, False: 37]
  ------------------
   48|  11.9k|	if ( ((0x3001 <= cp) && (cp <= 0xD7FF)) || ((0xF900 <= cp) && (cp <= 0xFDCF)) ) return true;
  ------------------
  |  Branch (48:8): [True: 37, False: 11.9k]
  |  Branch (48:26): [True: 37, False: 0]
  |  Branch (48:46): [True: 0, False: 11.9k]
  |  Branch (48:64): [True: 0, False: 0]
  ------------------
   49|  11.9k|	if ( ((0xFDF0 <= cp) && (cp <= 0xFFFD)) || ((0x10000 <= cp) && (cp <= 0xEFFFF)) ) return true;
  ------------------
  |  Branch (49:8): [True: 0, False: 11.9k]
  |  Branch (49:26): [True: 0, False: 0]
  |  Branch (49:46): [True: 0, False: 11.9k]
  |  Branch (49:65): [True: 0, False: 0]
  ------------------
   50|       |
   51|  11.9k|	return false;
   52|       |
   53|  11.9k|}
XMPMeta.cpp:_ZL17IsOtherChar_ASCIIj:
   58|  54.5k|{
   59|       |	// ASCII following characters for an XML name.
   60|  54.5k|	if ( (('0' <= cp) && (cp <= '9')) || (cp == '-') || (cp == '.') ) return true;
  ------------------
  |  Branch (60:8): [True: 27.1k, False: 27.3k]
  |  Branch (60:23): [True: 27.1k, False: 0]
  |  Branch (60:39): [True: 25.0k, False: 2.27k]
  |  Branch (60:54): [True: 2.27k, False: 0]
  ------------------
   61|      0|	return false;
   62|  54.5k|}
XMPMeta.cpp:_ZL20IsOtherChar_NonASCIIj:
   67|  11.9k|{
   68|       |	// Non-ASCII following characters for an XML name.
   69|  11.9k|	if ( (cp == 0xB7) || ((0x300 <= cp) && (cp <= 0x36F))  || ((0x203F <= cp) && (cp <= 0x2040)) ) return true;
  ------------------
  |  Branch (69:7): [True: 11.9k, False: 11]
  |  Branch (69:24): [True: 11, False: 0]
  |  Branch (69:41): [True: 11, False: 0]
  |  Branch (69:61): [True: 0, False: 0]
  |  Branch (69:79): [True: 0, False: 0]
  ------------------
   70|      0|	return false;
   71|  11.9k|}

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

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

WXMPUtils_ConvertToDate_1:
  339|    154|{
  340|    154|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPUtils_ConvertToDate_1" )
  ------------------
  |  |  235|    154|	AnnounceNoLock ( proc );								\
  |  |  236|    154|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|    154|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|    154|	try {													\
  |  |  238|    154|		wResult->errMessage = 0;
  ------------------
  341|       |
  342|    154|		if ( binValue == 0 ) XMP_Throw ( "Null output date", kXMPErr_BadParam); // ! Pointer is from the client.
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (342:8): [True: 0, False: 154]
  ------------------
  343|    154|		XMPUtils::ConvertToDate ( strValue, binValue );
  344|       |
  345|    154|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|    154|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|    154|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|     93|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|     93|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|     93|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|     93|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 93]
  |  |  |  |  ------------------
  |  |  |  |  270|     93|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|     93|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|    154|	AnnounceExit();
  ------------------
  346|    154|}
WXMPUtils_ConvertToLocalTime_1:
  395|     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|  80.4k|            : kind(_kind), name(_name), nsPrefixLen(0), parent(_parent) {};
_ZN8XML_NodeD2Ev:
   95|  80.4k|	virtual ~XML_Node() { RemoveAttrs(); RemoveContent(); };
_ZN16XMLParserAdapterC2Ev:
  112|  2.61k|		: tree(0,"",kRootNode), rootNode(0), rootCount(0), charEncoding(XMP_OptionBits(-1)), pendingCount(0)
  113|  2.61k|	{
  114|       |		#if XMP_DebugBuild
  115|       |			parseLog = 0;
  116|       |		#endif
  117|  2.61k|	};
_ZN16XMLParserAdapterD2Ev:
  119|  2.61k|	virtual ~XMLParserAdapter() {};

_ZNK8XML_Node16IsWhitespaceNodeEv:
   39|  25.5k|{
   40|  25.5k|	if ( this->kind != kCDataNode ) return false;
  ------------------
  |  Branch (40:7): [True: 8.44k, False: 17.0k]
  ------------------
   41|       |
   42|  57.3k|	for ( size_t i = 0; i < this->value.size(); ++i ) {
  ------------------
  |  Branch (42:22): [True: 40.3k, False: 16.9k]
  ------------------
   43|  40.3k|		unsigned char ch = this->value[i];
   44|  40.3k|		if ( IsWhitespaceChar ( ch ) ) continue;
  ------------------
  |  |   45|  40.3k|#define IsWhitespaceChar(ch)	( ((ch) == ' ') || ((ch) == 0x09) || ((ch) == 0x0A) || ((ch) == 0x0D) )
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 30.9k, False: 9.36k]
  |  |  |  Branch (45:49): [True: 377, False: 8.99k]
  |  |  |  Branch (45:67): [True: 8.83k, False: 154]
  |  |  |  Branch (45:85): [True: 3, False: 151]
  |  |  ------------------
  ------------------
   45|       |		// *** Add checks for other whitespace characters.
   46|    151|		return false;	// All the checks failed, this isn't whitespace.
   47|  40.3k|	}
   48|       |
   49|  16.9k|	return true;
   50|       |
   51|  17.0k|}	// XML_Node::IsWhitespaceNode
_ZN8XML_Node11RemoveAttrsEv:
  427|  80.4k|{
  428|       |
  429|  94.9k|	for ( size_t i = 0, vLim = this->attrs.size(); i < vLim; ++i ) delete this->attrs[i];
  ------------------
  |  Branch (429:49): [True: 14.5k, False: 80.4k]
  ------------------
  430|  80.4k|	this->attrs.clear();
  431|       |
  432|  80.4k|}	// XML_Node::RemoveAttrs
_ZN8XML_Node13RemoveContentEv:
  439|  80.4k|{
  440|       |
  441|   143k|	for ( size_t i = 0, vLim = this->content.size(); i < vLim; ++i ) delete this->content[i];
  ------------------
  |  Branch (441:51): [True: 63.1k, False: 80.4k]
  ------------------
  442|  80.4k|	this->content.clear();
  443|       |
  444|  80.4k|}	// XML_Node::RemoveContent

_Z13XMP_InitMutexP15pthread_mutex_t:
  114|      1|	bool XMP_InitMutex ( XMP_Mutex * mutex ) {
  115|      1|		int err = pthread_mutex_init ( mutex, 0 );
  116|      1|		return (err == 0 );
  117|      1|	}
_Z13XMP_TermMutexR15pthread_mutex_t:
  119|      1|	void XMP_TermMutex ( XMP_Mutex & mutex ) {
  120|      1|		(void) pthread_mutex_destroy ( &mutex );
  121|      1|	}
_Z23XMP_EnterCriticalRegionR15pthread_mutex_t:
  123|  54.4k|	void XMP_EnterCriticalRegion ( XMP_Mutex & mutex ) {
  124|  54.4k|		int err = pthread_mutex_lock ( &mutex );
  125|  54.4k|		if ( err != 0 ) XMP_Throw ( "XMP_EnterCriticalRegion - pthread_mutex_lock failure", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (125:8): [True: 0, False: 54.4k]
  ------------------
  126|  54.4k|	}
_Z22XMP_ExitCriticalRegionR15pthread_mutex_t:
  128|  54.4k|	void XMP_ExitCriticalRegion ( XMP_Mutex & mutex ) {
  129|  54.4k|		int err = pthread_mutex_unlock ( &mutex );
  130|  54.4k|		if ( err != 0 ) XMP_Throw ( "XMP_ExitCriticalRegion - pthread_mutex_unlock failure", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (130:8): [True: 0, False: 54.4k]
  ------------------
  131|  54.4k|	}
_Z16VerifySetOptionsjPKc:
  563|  4.67k|{
  564|       |
  565|  4.67k|	if ( options & kXMP_PropArrayIsAltText )   options |= kXMP_PropArrayIsAlternate;
  ------------------
  |  Branch (565:7): [True: 10, False: 4.66k]
  ------------------
  566|  4.67k|	if ( options & kXMP_PropArrayIsAlternate ) options |= kXMP_PropArrayIsOrdered;
  ------------------
  |  Branch (566:7): [True: 97, False: 4.57k]
  ------------------
  567|  4.67k|	if ( options & kXMP_PropArrayIsOrdered )   options |= kXMP_PropValueIsArray;
  ------------------
  |  Branch (567:7): [True: 417, False: 4.25k]
  ------------------
  568|       |	
  569|  4.67k|	if ( options & ~kXMP_AllSetOptionsMask ) {
  ------------------
  |  Branch (569:7): [True: 0, False: 4.67k]
  ------------------
  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.67k|	if ( (options & kXMP_PropValueIsStruct) && (options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (573:7): [True: 146, False: 4.52k]
  |  Branch (573:45): [True: 0, False: 146]
  ------------------
  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.67k|	if ( (options & kXMP_PropValueOptionsMask) && (options & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (577:7): [True: 0, False: 4.67k]
  |  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.67k|	if ( (propValue != 0) && (options & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (581:7): [True: 3.89k, False: 783]
  |  Branch (581:27): [True: 0, False: 3.89k]
  ------------------
  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.67k|	return options;
  586|       |
  587|  4.67k|}	// VerifySetOptions
_Z11ExpandXPathPKcS0_PNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEE:
  662|  22.2k|{
  663|  22.2k|	XMP_Assert ( (schemaNS != 0) && (propPath != 0) && (*propPath != 0) && (expandedXPath != 0) );
  ------------------
  |  |  142|  22.2k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  664|       |	
  665|  22.2k|	XMP_StringPtr	stepBegin, stepEnd;
  666|  22.2k|	XMP_StringPtr	qualName, nameEnd;
  667|  22.2k|	XMP_VarString	currStep;
  668|       |		
  669|  22.2k|	qualName = nameEnd = NULL;
  670|  22.2k|	size_t resCount = 2;	// Guess at the number of steps. At least 2, plus 1 for each '/' or '['.
  671|  1.55M|	for ( stepEnd = propPath; *stepEnd != 0; ++stepEnd ) {
  ------------------
  |  Branch (671:28): [True: 1.53M, False: 22.2k]
  ------------------
  672|  1.53M|		if ( (*stepEnd == '/') || (*stepEnd == '[') ) ++resCount;
  ------------------
  |  Branch (672:8): [True: 1.94k, False: 1.53M]
  |  Branch (672:29): [True: 6.57k, False: 1.52M]
  ------------------
  673|  1.53M|	}
  674|       |	
  675|  22.2k|	expandedXPath->clear();
  676|  22.2k|	expandedXPath->reserve ( resCount );
  677|       |	
  678|       |	// -------------------------------------------------------------------------------------------
  679|       |	// Pull out the first component and do some special processing on it: add the schema namespace
  680|       |	// prefix and see if it is an alias. The start must be a qualName.
  681|       |	
  682|  22.2k|	stepBegin = propPath;
  683|  22.2k|	stepEnd = stepBegin;
  684|  1.50M|	while ( (*stepEnd != 0) && (*stepEnd != '/') && (*stepEnd != '[') && (*stepEnd != '*') ) ++stepEnd;
  ------------------
  |  Branch (684:10): [True: 1.49M, False: 15.2k]
  |  Branch (684:29): [True: 1.49M, False: 358]
  |  Branch (684:50): [True: 1.48M, False: 6.57k]
  |  Branch (684:71): [True: 1.48M, False: 0]
  ------------------
  685|  22.2k|	if ( stepEnd == stepBegin ) XMP_Throw ( "Empty initial XPath step", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (685:7): [True: 0, False: 22.2k]
  ------------------
  686|  22.2k|	currStep.assign ( stepBegin, (stepEnd - stepBegin) );
  687|       |	
  688|  22.2k|	VerifyXPathRoot ( schemaNS, currStep.c_str(), expandedXPath );
  689|       |
  690|  22.2k|	XMP_OptionBits stepFlags = kXMP_StructFieldStep;	
  691|  22.2k|	if ( sRegisteredAliasMap->find ( (*expandedXPath)[kRootPropStep].step ) != sRegisteredAliasMap->end() ) {
  ------------------
  |  Branch (691:7): [True: 0, False: 22.2k]
  ------------------
  692|      0|		stepFlags |= kXMP_StepIsAlias;
  693|      0|	}
  694|  22.2k|	(*expandedXPath)[kRootPropStep].options |= stepFlags;
  695|       |		
  696|       |	// -----------------------------------------------------
  697|       |	// Now continue to process the rest of the XPath string.
  698|       |
  699|  30.7k|	while ( *stepEnd != 0 ) {
  ------------------
  |  Branch (699:10): [True: 8.52k, False: 22.2k]
  ------------------
  700|       |
  701|  8.52k|		stepBegin = stepEnd;
  702|  8.52k|		if ( *stepBegin == '/' ) ++stepBegin;
  ------------------
  |  Branch (702:8): [True: 1.94k, False: 6.57k]
  ------------------
  703|  8.52k|		if ( *stepBegin == '*' ) {
  ------------------
  |  Branch (703:8): [True: 0, False: 8.52k]
  ------------------
  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.52k|		stepEnd = stepBegin;
  708|       |
  709|  8.52k|		if ( *stepBegin != '[' ) {
  ------------------
  |  Branch (709:8): [True: 1.94k, False: 6.57k]
  ------------------
  710|       |		
  711|       |			// A struct field or qualifier.
  712|  1.94k|			qualName = stepBegin;
  713|  32.1k|			while ( (*stepEnd != 0) && (*stepEnd != '/') && (*stepEnd != '[') && (*stepEnd != '*') ) ++stepEnd;
  ------------------
  |  Branch (713:12): [True: 30.1k, False: 1.94k]
  |  Branch (713:31): [True: 30.1k, False: 0]
  |  Branch (713:52): [True: 30.1k, False: 0]
  |  Branch (713:73): [True: 30.1k, False: 0]
  ------------------
  714|  1.94k|			nameEnd = stepEnd;
  715|  1.94k|			stepFlags = kXMP_StructFieldStep;	// ! Touch up later, also changing '@' to '?'.
  716|       |			
  717|  6.57k|		} else {
  718|       |		
  719|       |			// One of the array forms.
  720|       |		
  721|  6.57k|			++stepEnd;	// Look at the character after the leading '['.
  722|       |			
  723|  6.57k|			if ( ('0' <= *stepEnd) && (*stepEnd <= '9') ) {
  ------------------
  |  Branch (723:9): [True: 6.57k, False: 0]
  |  Branch (723:30): [True: 6.57k, False: 0]
  ------------------
  724|       |
  725|       |				// A numeric (decimal integer) array index.
  726|  13.1k|				while ( (*stepEnd != 0) && ('0' <= *stepEnd) && (*stepEnd <= '9') ) ++stepEnd;
  ------------------
  |  Branch (726:13): [True: 13.1k, False: 0]
  |  Branch (726:32): [True: 13.1k, False: 0]
  |  Branch (726:53): [True: 6.57k, False: 6.57k]
  ------------------
  727|  6.57k|				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.57k]
  ------------------
  728|  6.57k|				stepFlags = kXMP_ArrayIndexStep;
  729|       |
  730|  6.57k|			} 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.57k|			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.57k]
  ------------------
  774|  6.57k|			++stepEnd;
  775|       |			
  776|  6.57k|		}
  777|       |
  778|  8.52k|		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.52k]
  ------------------
  779|  8.52k|		currStep.assign ( stepBegin, (stepEnd - stepBegin) );
  780|       |
  781|  8.52k|		if ( GetStepKind ( stepFlags ) == kXMP_StructFieldStep ) {
  ------------------
  |  |  408|  8.52k|#define GetStepKind(f)	((f) & kXMP_StepKindMask)
  ------------------
  |  Branch (781:8): [True: 1.94k, False: 6.57k]
  ------------------
  782|       |
  783|  1.94k|			if ( currStep[0] == '@' ) {
  ------------------
  |  Branch (783:9): [True: 0, False: 1.94k]
  ------------------
  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.94k|			if ( currStep[0] == '?' ) {
  ------------------
  |  Branch (787:9): [True: 540, False: 1.40k]
  ------------------
  788|    540|				++qualName;
  789|    540|				stepFlags = kXMP_QualifierStep;
  790|    540|			}
  791|  1.94k|			VerifyQualName ( qualName, nameEnd );
  792|       |
  793|  6.57k|		} else if ( GetStepKind ( stepFlags ) == kXMP_FieldSelectorStep ) {
  ------------------
  |  |  408|  6.57k|#define GetStepKind(f)	((f) & kXMP_StepKindMask)
  ------------------
  |  Branch (793:15): [True: 0, False: 6.57k]
  ------------------
  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.52k|		expandedXPath->push_back ( XPathStepInfo ( currStep, stepFlags ) );
  810|       |
  811|  8.52k|	}
  812|       |
  813|  22.2k|}	// ExpandXPath
_Z14FindSchemaNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  828|  52.5k|{
  829|  52.5k|	XMP_Node * schemaNode = 0;
  830|       |	
  831|  52.5k|	XMP_Assert ( xmpTree->parent == 0 );
  ------------------
  |  |  142|  52.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  832|       |	
  833|   254k|	for ( size_t schemaNum = 0, schemaLim = xmpTree->children.size(); schemaNum != schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (833:68): [True: 235k, False: 19.0k]
  ------------------
  834|   235k|		XMP_Node * currSchema = xmpTree->children[schemaNum];
  835|   235k|		XMP_Assert ( currSchema->parent == xmpTree );
  ------------------
  |  |  142|   235k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  836|   235k|		if ( currSchema->name == nsURI ) {
  ------------------
  |  Branch (836:8): [True: 33.4k, False: 201k]
  ------------------
  837|  33.4k|			schemaNode = currSchema;
  838|  33.4k|			if ( ptrPos != 0 ) *ptrPos = xmpTree->children.begin() + schemaNum;
  ------------------
  |  Branch (838:9): [True: 21.3k, False: 12.0k]
  ------------------
  839|  33.4k|			break;
  840|  33.4k|		}
  841|   235k|	}
  842|       |	
  843|  52.5k|	if ( (schemaNode == 0) && createNodes ) {
  ------------------
  |  Branch (843:7): [True: 19.0k, False: 33.4k]
  |  Branch (843:28): [True: 4.90k, False: 14.1k]
  ------------------
  844|       |
  845|  4.90k|		schemaNode = new XMP_Node ( xmpTree, nsURI, (kXMP_SchemaNode | kXMP_NewImplicitNode) );
  ------------------
  |  |  410|  4.90k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  846|  4.90k|		XMP_StringPtr prefixPtr;
  847|  4.90k|		XMP_StringLen prefixLen;
  848|  4.90k|        bool found = XMPMeta::GetNamespacePrefix ( nsURI, &prefixPtr, &prefixLen );	// *** Use map directly?
  849|  4.90k|		XMP_Assert ( found );
  ------------------
  |  |  142|  4.90k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  850|  4.90k|		UNUSED(found);
  851|       |
  852|  4.90k|		schemaNode->value.assign ( prefixPtr, prefixLen );
  853|  4.90k|		xmpTree->children.push_back ( schemaNode );
  854|  4.90k|		if ( ptrPos != 0 ) *ptrPos = xmpTree->children.end() - 1;
  ------------------
  |  Branch (854:8): [True: 747, False: 4.15k]
  ------------------
  855|       |
  856|       |		#if 0	// *** XMP_DebugBuild
  857|       |			schemaNode->_valuePtr = schemaNode->value.c_str();
  858|       |		#endif
  859|       |
  860|  4.90k|	}
  861|       |	
  862|  52.5k|	XMP_Assert ( (ptrPos == 0) || (schemaNode == 0) || (schemaNode == **ptrPos) );
  ------------------
  |  |  142|  52.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  863|  52.5k|	XMP_Assert ( (schemaNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  52.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  864|  52.5k|	return schemaNode;
  865|       |	
  866|  52.5k|}	// FindSchemaNode
_Z13FindChildNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  881|  37.3k|{
  882|  37.3k|	XMP_Node * childNode = 0;
  883|       |
  884|  37.3k|	if ( ! (parent->options & (kXMP_SchemaNode | kXMP_PropValueIsStruct)) ) {
  ------------------
  |  Branch (884:7): [True: 12, False: 37.3k]
  ------------------
  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|   839k|	for ( size_t childNum = 0, childLim = parent->children.size(); childNum != childLim; ++childNum ) {
  ------------------
  |  Branch (897:65): [True: 821k, False: 17.3k]
  ------------------
  898|   821k|		XMP_Node * currChild = parent->children[childNum];
  899|   821k|		XMP_Assert ( currChild->parent == parent );
  ------------------
  |  |  142|   821k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  900|   821k|		if ( currChild->name == childName ) {
  ------------------
  |  Branch (900:8): [True: 20.0k, False: 801k]
  ------------------
  901|  20.0k|			childNode = currChild;
  902|  20.0k|			if ( ptrPos != 0 ) *ptrPos = parent->children.begin() + childNum;
  ------------------
  |  Branch (902:9): [True: 19.9k, False: 116]
  ------------------
  903|  20.0k|			break;
  904|  20.0k|		}
  905|   821k|	}
  906|       |	
  907|  37.3k|	if ( (childNode == 0) && createNodes ) {
  ------------------
  |  Branch (907:7): [True: 17.3k, False: 20.0k]
  |  Branch (907:27): [True: 3.57k, False: 13.7k]
  ------------------
  908|  3.57k|		childNode = new XMP_Node ( parent, childName, kXMP_NewImplicitNode );
  ------------------
  |  |  410|  3.57k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  909|  3.57k|		parent->children.push_back ( childNode );
  910|  3.57k|		if ( ptrPos != 0 ) *ptrPos = parent->children.end() - 1;
  ------------------
  |  Branch (910:8): [True: 3.57k, False: 0]
  ------------------
  911|  3.57k|	}
  912|       |	
  913|  37.3k|	XMP_Assert ( (ptrPos == 0) || (childNode == 0) || (childNode == **ptrPos) );
  ------------------
  |  |  142|  37.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  914|  37.3k|	XMP_Assert ( (childNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  37.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  915|  37.3k|	return childNode;
  916|       |	
  917|  37.3k|}	// FindChildNode
_Z17FindQualifierNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  934|    540|{
  935|    540|	XMP_Node * qualNode = 0;
  936|       |	
  937|    540|	XMP_Assert ( *qualName != '?' );
  ------------------
  |  |  142|    540|	#define XMP_Assert(c)	((void) 0)
  ------------------
  938|       |	
  939|    807|	for ( size_t qualNum = 0, qualLim = parent->qualifiers.size(); qualNum != qualLim; ++qualNum ) {
  ------------------
  |  Branch (939:65): [True: 613, False: 194]
  ------------------
  940|    613|		XMP_Node * currQual = parent->qualifiers[qualNum];
  941|    613|		XMP_Assert ( currQual->parent == parent );
  ------------------
  |  |  142|    613|	#define XMP_Assert(c)	((void) 0)
  ------------------
  942|    613|		if ( currQual->name == qualName ) {
  ------------------
  |  Branch (942:8): [True: 346, False: 267]
  ------------------
  943|    346|			qualNode = currQual;
  944|    346|			if ( ptrPos != 0 ) *ptrPos = parent->qualifiers.begin() + qualNum;
  ------------------
  |  Branch (944:9): [True: 346, False: 0]
  ------------------
  945|    346|			break;
  946|    346|		}
  947|    613|	}
  948|       |	
  949|    540|	if ( (qualNode == 0) && createNodes ) {
  ------------------
  |  Branch (949:7): [True: 194, False: 346]
  |  Branch (949:26): [True: 194, False: 0]
  ------------------
  950|       |
  951|    194|		qualNode = new XMP_Node ( parent, qualName, (static_cast<unsigned long>(kXMP_PropIsQualifier) | static_cast<unsigned long>(kXMP_NewImplicitNode)) );
  ------------------
  |  |  410|    194|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  952|    194|		parent->options |= kXMP_PropHasQualifiers;
  953|       |
  954|    194|		const bool isLang 	 = XMP_LitMatch ( qualName, "xml:lang" );
  ------------------
  |  |   96|    194|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  955|    194|		const bool isType 	 = XMP_LitMatch ( qualName, "rdf:type" );
  ------------------
  |  |   96|    194|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  956|    194|		const bool isSpecial = isLang | isType;
  957|       |
  958|    194|		if ( isLang ) {
  ------------------
  |  Branch (958:8): [True: 118, False: 76]
  ------------------
  959|    118|			parent->options |= kXMP_PropHasLang;
  960|    118|		} else if ( isType ) {
  ------------------
  |  Branch (960:15): [True: 0, False: 76]
  ------------------
  961|      0|			parent->options |= kXMP_PropHasType;
  962|      0|		}
  963|       |		
  964|    194|		if ( parent->qualifiers.empty() || (! isSpecial) ) {
  ------------------
  |  Branch (964:8): [True: 139, False: 55]
  |  Branch (964:38): [True: 55, False: 0]
  ------------------
  965|    194|			parent->qualifiers.push_back ( qualNode );
  966|    194|			if ( ptrPos != 0 ) *ptrPos = parent->qualifiers.end() - 1;
  ------------------
  |  Branch (966:9): [True: 194, False: 0]
  ------------------
  967|    194|		} 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|    194|	}
  975|       |	
  976|    540|	XMP_Assert ( (ptrPos == 0) || (qualNode == 0) || (qualNode == **ptrPos) );
  ------------------
  |  |  142|    540|	#define XMP_Assert(c)	((void) 0)
  ------------------
  977|    540|	XMP_Assert ( (qualNode != 0) || (! createNodes) );
  ------------------
  |  |  142|    540|	#define XMP_Assert(c)	((void) 0)
  ------------------
  978|    540|	return qualNode;
  979|       |	
  980|    540|}	// FindQualifierNode
_Z8FindNodeP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEbjPNS1_11__wrap_iterIPS0_EE:
 1062|  22.1k|{
 1063|  22.1k|	XMP_Node *     currNode = 0;
 1064|  22.1k|	XMP_NodePtrPos currPos;
 1065|  22.1k|	XMP_NodePtrPos newSubPos;	// Root of implicitly created subtree. Valid only if leaf is new.
 1066|  22.1k|	bool           leafIsNew = false;
 1067|       |	
 1068|  22.1k|	XMP_Assert ( (leafOptions == 0) || createNodes );
  ------------------
  |  |  142|  22.1k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1069|       |
 1070|  22.1k|	if ( expandedXPath.empty() ) XMP_Throw ( "Empty XPath", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1070:7): [True: 0, False: 22.1k]
  ------------------
 1071|       |	
 1072|  22.1k|	size_t stepNum = 1;	// By default start calling FollowXPathStep for the top level property step.
 1073|  22.1k|	size_t stepLim = expandedXPath.size();
 1074|       |	
 1075|       |	// The start of processing deals with the schema node and top level alias. If the top level step
 1076|       |	// is not an alias, lookup the expanded path's schema URI. Otherwise, lookup the expanded path
 1077|       |	// for the actual. While tempting, don't substitute the actual's path into the local one, don't
 1078|       |	// risk messing with the caller's use of that. Also don't call FindNode recursively, we need to
 1079|       |	// keep track of the root of the implicitly created subtree as we move down the path.
 1080|       |	
 1081|  22.1k|	if ( ! (expandedXPath[kRootPropStep].options & kXMP_StepIsAlias) ) {
  ------------------
  |  Branch (1081:7): [True: 22.1k, False: 0]
  ------------------
 1082|       |		
 1083|  22.1k|		currNode = FindSchemaNode ( xmpTree, expandedXPath[kSchemaStep].step.c_str(), createNodes, &currPos );
 1084|  22.1k|		if ( currNode == 0 ) return 0;
  ------------------
  |  Branch (1084:8): [True: 3, False: 22.1k]
  ------------------
 1085|       |
 1086|  22.1k|		if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|  22.1k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1086:8): [True: 747, False: 21.3k]
  ------------------
 1087|    747|			currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|    747|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1088|    747|			if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1088:9): [True: 747, False: 0]
  ------------------
 1089|    747|			leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1090|    747|		}
 1091|       |
 1092|  22.1k|	} else {
 1093|       |
 1094|      0|		stepNum = 2;	// ! Continue processing the original path at the second level step.
 1095|       |
 1096|      0|		XMP_AliasMapPos aliasPos = sRegisteredAliasMap->find ( expandedXPath[kRootPropStep].step );
 1097|      0|		XMP_Assert ( aliasPos != sRegisteredAliasMap->end() );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1098|       |		
 1099|      0|		currNode = FindSchemaNode ( xmpTree, aliasPos->second[kSchemaStep].step.c_str(), createNodes, &currPos );
 1100|      0|		if ( currNode == 0 ) goto EXIT;
  ------------------
  |  Branch (1100:8): [True: 0, False: 0]
  ------------------
 1101|      0|		if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1101:8): [True: 0, False: 0]
  ------------------
 1102|      0|			currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1103|      0|			if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1103:9): [True: 0, False: 0]
  ------------------
 1104|      0|			leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1105|      0|		}
 1106|       |
 1107|      0|		currNode = FollowXPathStep ( currNode, aliasPos->second, 1, createNodes, &currPos );
 1108|      0|		if ( currNode == 0 ) goto EXIT;
  ------------------
  |  Branch (1108:8): [True: 0, False: 0]
  ------------------
 1109|      0|		if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1109:8): [True: 0, False: 0]
  ------------------
 1110|      0|			currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1111|      0|			CheckImplicitStruct ( currNode, expandedXPath, 2, stepLim );
 1112|      0|			if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1112:9): [True: 0, False: 0]
  ------------------
 1113|      0|			leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1114|      0|		}
 1115|       |		
 1116|      0|		XMP_OptionBits arrayForm = aliasPos->second[kRootPropStep].options & kXMP_PropArrayFormMask;
 1117|      0|		XMP_Assert ( (arrayForm == 0) || (arrayForm & kXMP_PropValueIsArray) );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1118|      0|		XMP_Assert ( (arrayForm == 0) ? (aliasPos->second.size() == 2) : (aliasPos->second.size() == 3) );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1119|       |		
 1120|      0|		if ( arrayForm != 0 ) { 
  ------------------
  |  Branch (1120:8): [True: 0, False: 0]
  ------------------
 1121|      0|			currNode = FollowXPathStep ( currNode, aliasPos->second, 2, createNodes, &currPos, true );
 1122|      0|			if ( currNode == 0 ) goto EXIT;
  ------------------
  |  Branch (1122:9): [True: 0, False: 0]
  ------------------
 1123|      0|			if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1123:9): [True: 0, False: 0]
  ------------------
 1124|      0|				currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1125|      0|				CheckImplicitStruct ( currNode, expandedXPath, 2, stepLim );
 1126|      0|				if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1126:10): [True: 0, False: 0]
  ------------------
 1127|      0|				leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1128|      0|			}
 1129|      0|		}
 1130|       |		
 1131|      0|	}
 1132|       |	
 1133|       |	// Now follow the remaining steps of the original XPath.
 1134|       |	
 1135|       |	// *** ??? Change all the num/lim loops back to num<lim? Probably safer.
 1136|       |	
 1137|  22.1k|	try {
 1138|  52.6k|		for ( ; stepNum < stepLim; ++stepNum ) {
  ------------------
  |  Branch (1138:11): [True: 30.5k, False: 22.0k]
  ------------------
 1139|  30.5k|			currNode = FollowXPathStep ( currNode, expandedXPath, stepNum, createNodes, &currPos );
 1140|  30.5k|			if ( currNode == 0 ) goto EXIT;
  ------------------
  |  Branch (1140:9): [True: 57, False: 30.5k]
  ------------------
 1141|  30.5k|			if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|  30.5k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1141:9): [True: 4.62k, False: 25.9k]
  ------------------
 1142|  4.62k|				currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  4.62k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1143|  4.62k|				CheckImplicitStruct ( currNode, expandedXPath, stepNum+1, stepLim );
 1144|  4.62k|				if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1144:10): [True: 3.88k, False: 747]
  ------------------
 1145|  4.62k|				leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1146|  4.62k|			}
 1147|  30.5k|		}
 1148|  22.1k|	} catch ( ... ) {
 1149|      0|		if ( leafIsNew ) DeleteSubtree ( newSubPos );
  ------------------
  |  Branch (1149:8): [True: 0, False: 0]
  ------------------
 1150|      0|		throw;
 1151|      0|	}
 1152|       |	
 1153|       |	// Done. Delete the implicitly created subtree if the eventual node was not found.
 1154|       |
 1155|  22.1k|EXIT:
 1156|       |
 1157|  22.1k|	XMP_Assert ( (currNode == 0) || (currNode == *currPos) );
  ------------------
  |  |  142|  22.1k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1158|  22.1k|	XMP_Assert ( (currNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  22.1k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1159|       |
 1160|  22.1k|	if ( leafIsNew ) {
  ------------------
  |  Branch (1160:7): [True: 4.62k, False: 17.5k]
  ------------------
 1161|  4.62k|		if ( currNode != 0 ) {
  ------------------
  |  Branch (1161:8): [True: 4.62k, False: 0]
  ------------------
 1162|  4.62k|			currNode->options |= leafOptions;
 1163|  4.62k|		} else {
 1164|      0|			DeleteSubtree ( newSubPos );
 1165|      0|		}
 1166|  4.62k|	}
 1167|       |
 1168|  22.1k|	if ( (currNode != 0) && (ptrPos != 0) ) *ptrPos = currPos;
  ------------------
  |  Branch (1168:7): [True: 22.0k, False: 57]
  |  Branch (1168:26): [True: 0, False: 22.0k]
  ------------------
 1169|  22.1k|	return currNode;
 1170|       |	
 1171|  22.1k|}	// FindNode
_Z18NormalizeLangValuePNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
 1343|    532|{
 1344|    532|	char * tagStart;
 1345|    532|	char * tagEnd;
 1346|       |
 1347|       |	// Find and process the primary subtag.
 1348|       |	
 1349|    532|	tagStart = (char*) value->c_str();
 1350|  7.52k|	for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1350:27): [True: 7.41k, False: 108]
  |  Branch (1350:45): [True: 6.99k, False: 424]
  ------------------
 1351|  6.99k|		if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1351:8): [True: 4.15k, False: 2.84k]
  |  Branch (1351:28): [True: 834, False: 3.31k]
  ------------------
 1352|  6.99k|	}
 1353|       |	
 1354|       |	// Find and process the secondary subtag.
 1355|       |	
 1356|    532|	tagStart = tagEnd;
 1357|    532|	if ( *tagStart == '-' ) ++tagStart;
  ------------------
  |  Branch (1357:7): [True: 424, False: 108]
  ------------------
 1358|  16.7k|	for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1358:27): [True: 16.4k, False: 343]
  |  Branch (1358:45): [True: 16.2k, False: 189]
  ------------------
 1359|  16.2k|		if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1359:8): [True: 10.4k, False: 5.81k]
  |  Branch (1359:28): [True: 1.93k, False: 8.47k]
  ------------------
 1360|  16.2k|	}
 1361|    532|	if ( tagEnd == tagStart+2 ) {
  ------------------
  |  Branch (1361:7): [True: 49, False: 483]
  ------------------
 1362|     49|		if ( ('a' <= *tagStart) && (*tagStart <= 'z') ) *tagStart -= 0x20;
  ------------------
  |  Branch (1362:8): [True: 16, False: 33]
  |  Branch (1362:30): [True: 15, False: 1]
  ------------------
 1363|     49|		++tagStart;
 1364|     49|		if ( ('a' <= *tagStart) && (*tagStart <= 'z') ) *tagStart -= 0x20;
  ------------------
  |  Branch (1364:8): [True: 13, False: 36]
  |  Branch (1364:30): [True: 13, False: 0]
  ------------------
 1365|     49|	}
 1366|       |	
 1367|       |	// Find and process the remaining subtags.
 1368|       |	
 1369|  2.40k|	while ( true ) {
  ------------------
  |  Branch (1369:10): [True: 2.40k, Folded]
  ------------------
 1370|  2.40k|		tagStart = tagEnd;
 1371|  2.40k|		if ( *tagStart == '-' ) ++tagStart;
  ------------------
  |  Branch (1371:8): [True: 1.87k, False: 531]
  ------------------
 1372|  2.40k|		if ( *tagStart == 0 ) break;
  ------------------
  |  Branch (1372:8): [True: 532, False: 1.87k]
  ------------------
 1373|  24.6k|		for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1373:28): [True: 24.4k, False: 188]
  |  Branch (1373:46): [True: 22.7k, False: 1.68k]
  ------------------
 1374|  22.7k|			if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1374:9): [True: 11.7k, False: 10.9k]
  |  Branch (1374:29): [True: 2.64k, False: 9.10k]
  ------------------
 1375|  22.7k|		}
 1376|  1.87k|	}
 1377|       |	
 1378|    532|}	// NormalizeLangValue
_Z18NormalizeLangArrayP8XMP_Node:
 1390|    136|{
 1391|    136|	XMP_Assert ( XMP_ArrayIsAltText(array->options) );
  ------------------
  |  |  142|    136|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1392|       |	
 1393|    136|	size_t itemNum;
 1394|    136|	size_t itemLim = array->children.size();
 1395|    136|	bool   hasDefault = false;
 1396|       |	
 1397|    246|	for ( itemNum = 0; itemNum < itemLim; ++itemNum ) {
  ------------------
  |  Branch (1397:21): [True: 136, False: 110]
  ------------------
 1398|       |	
 1399|    136|		if ( array->children[itemNum]->qualifiers.empty() ||
  ------------------
  |  Branch (1399:8): [True: 0, False: 136]
  ------------------
 1400|    136|			 (array->children[itemNum]->qualifiers[0]->name != "xml:lang") ) {
  ------------------
  |  Branch (1400:5): [True: 0, False: 136]
  ------------------
 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|    136|		if ( array->children[itemNum]->qualifiers[0]->value == "x-default" ) {
  ------------------
  |  Branch (1404:8): [True: 26, False: 110]
  ------------------
 1405|     26|			hasDefault = true;
 1406|     26|			break;
 1407|     26|		}
 1408|       |
 1409|    136|	}
 1410|       |
 1411|    136|	if ( hasDefault ) {
  ------------------
  |  Branch (1411:7): [True: 26, False: 110]
  ------------------
 1412|       |
 1413|     26|		if ( itemNum != 0 ) {
  ------------------
  |  Branch (1413:8): [True: 0, False: 26]
  ------------------
 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|     26|	}
 1423|       |	
 1424|    136|}	// NormalizeLangArray
_Z13DetectAltTextP8XMP_Node:
 1434|    273|{
 1435|    273|	XMP_Assert ( XMP_ArrayIsAlternate(xmpParent->options) );
  ------------------
  |  |  142|    273|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1436|       |
 1437|    273|	size_t itemNum, itemLim;
 1438|       |	
 1439|    428|	for ( itemNum = 0, itemLim = xmpParent->children.size(); itemNum < itemLim; ++itemNum ) {
  ------------------
  |  Branch (1439:59): [True: 288, False: 140]
  ------------------
 1440|    288|		XMP_OptionBits currOptions = xmpParent->children[itemNum]->options;
 1441|    288|		if ( (currOptions & kXMP_PropCompositeMask) || (! (currOptions & kXMP_PropHasLang)) ) break;
  ------------------
  |  Branch (1441:8): [True: 25, False: 263]
  |  Branch (1441:50): [True: 108, False: 155]
  ------------------
 1442|    288|	}
 1443|       |	
 1444|    273|	if ( (itemLim != 0) && (itemNum == itemLim) ) {
  ------------------
  |  Branch (1444:7): [True: 269, False: 4]
  |  Branch (1444:25): [True: 136, False: 133]
  ------------------
 1445|    136|		xmpParent->options |= kXMP_PropArrayIsAltText;
 1446|    136|		NormalizeLangArray ( xmpParent );
 1447|    136|	}
 1448|       |
 1449|    273|}	// DetectAltText
XMPCore_Impl.cpp:_ZL15VerifyXPathRootPKcS0_PNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEE:
  154|  22.2k|{
  155|       |	// Do some basic checks on the URI and name. Try to lookup the URI. See if the name is qualified.
  156|       |	
  157|  22.2k|	XMP_Assert ( (schemaURI != 0) && (propName != 0) && (*propName != 0) );
  ------------------
  |  |  142|  22.2k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  158|  22.2k|	XMP_Assert ( (expandedXPath != 0) && (expandedXPath->empty()) );
  ------------------
  |  |  142|  22.2k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  159|       |
  160|  22.2k|	if ( *schemaURI == 0 ) XMP_Throw ( "Schema namespace URI is required", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (160:7): [True: 0, False: 22.2k]
  ------------------
  161|       |
  162|  22.2k|	if ( (*propName == '?') || (*propName == '@') ) {
  ------------------
  |  Branch (162:7): [True: 0, False: 22.2k]
  |  Branch (162:29): [True: 0, False: 22.2k]
  ------------------
  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.50M|	for ( XMP_StringPtr ch = propName; *ch != 0; ++ch ) {
  ------------------
  |  Branch (165:37): [True: 1.48M, False: 22.2k]
  ------------------
  166|  1.48M|		if ( (*ch == '/') || (*ch == '[') ) {
  ------------------
  |  Branch (166:8): [True: 0, False: 1.48M]
  |  Branch (166:24): [True: 0, False: 1.48M]
  ------------------
  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.48M|	}
  170|       |
  171|  22.2k|	XMP_StringMapPos uriPos = sNamespaceURIToPrefixMap->find ( XMP_VarString ( schemaURI ) );
  172|  22.2k|	if ( uriPos == sNamespaceURIToPrefixMap->end() ) {
  ------------------
  |  Branch (172:7): [True: 0, False: 22.2k]
  ------------------
  173|      0|		XMP_Throw ( "Unregistered schema namespace URI", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  174|      0|	}
  175|       |
  176|  22.2k|	XMP_StringPtr colonPos = propName;
  177|  1.21M|	while ( (*colonPos != 0) && (*colonPos != ':') ) ++colonPos;
  ------------------
  |  Branch (177:10): [True: 1.21M, False: 4.82k]
  |  Branch (177:30): [True: 1.19M, False: 17.3k]
  ------------------
  178|  22.2k|	VerifySimpleXMLName ( propName, colonPos );	// Verify the part before any colon.
  179|       |
  180|       |	// Verify the various URI and prefix combinations. Initialize the expanded XPath.
  181|       |	
  182|  22.2k|	if ( *colonPos == 0 ) {
  ------------------
  |  Branch (182:7): [True: 4.82k, False: 17.3k]
  ------------------
  183|       |	
  184|       |		// The propName is unqualified, use the schemaURI and associated prefix.
  185|       |		
  186|  4.82k|		expandedXPath->push_back ( XPathStepInfo ( schemaURI, kXMP_SchemaNode ) );
  187|  4.82k|		expandedXPath->push_back ( XPathStepInfo ( uriPos->second, 0 ) );
  188|  4.82k|		(*expandedXPath)[kRootPropStep].step += propName;
  189|       |	
  190|  17.3k|	} else {
  191|       |
  192|       |		// The propName is qualified. Make sure the prefix is legit. Use the associated URI and qualified name.
  193|       |
  194|  17.3k|		size_t prefixLen = colonPos - propName + 1;	// ! Include the colon.
  195|  17.3k|		VerifySimpleXMLName ( colonPos+1, colonPos+strlen(colonPos) );
  196|       |
  197|  17.3k|		XMP_VarString prefix ( propName, prefixLen );
  198|  17.3k|		XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( prefix );
  199|  17.3k|		if ( prefixPos == sNamespacePrefixToURIMap->end() ) {
  ------------------
  |  Branch (199:8): [True: 0, False: 17.3k]
  ------------------
  200|      0|			XMP_Throw ( "Unknown schema namespace prefix", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  201|      0|		}
  202|  17.3k|		if ( prefix != uriPos->second ) {
  ------------------
  |  Branch (202:8): [True: 2, False: 17.3k]
  ------------------
  203|      2|			XMP_Throw ( "Schema namespace URI and prefix mismatch", kXMPErr_BadSchema );
  ------------------
  |  |  199|      2|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  204|      0|		}
  205|       |
  206|  17.3k|		expandedXPath->push_back ( XPathStepInfo ( schemaURI, kXMP_SchemaNode ) );
  207|  17.3k|		expandedXPath->push_back ( XPathStepInfo ( propName, 0 ) );
  208|       |	
  209|  17.3k|	}
  210|       |
  211|  22.2k|}	// VerifyXPathRoot
XMPCore_Impl.cpp:_ZL14VerifyQualNamePKcS0_:
  219|  1.94k|{
  220|  1.94k|	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.94k]
  ------------------
  221|       |
  222|  1.94k|	XMP_StringPtr colonPos = qualName;
  223|  10.6k|	while ( (colonPos < nameEnd) && (*colonPos != ':') ) ++colonPos;
  ------------------
  |  Branch (223:10): [True: 10.6k, False: 0]
  |  Branch (223:34): [True: 8.72k, False: 1.94k]
  ------------------
  224|  1.94k|	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.94k]
  |  Branch (224:33): [True: 0, False: 1.94k]
  ------------------
  225|       |
  226|  1.94k|	VerifySimpleXMLName ( qualName, colonPos );
  227|  1.94k|	VerifySimpleXMLName ( colonPos+1, nameEnd );
  228|       |
  229|  1.94k|	size_t prefixLen = colonPos - qualName + 1;	// ! Include the colon.
  230|  1.94k|	XMP_VarString prefix ( qualName, prefixLen );
  231|  1.94k|	XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( prefix );
  232|  1.94k|	if ( prefixPos == sNamespacePrefixToURIMap->end() ) {
  ------------------
  |  Branch (232:7): [True: 0, False: 1.94k]
  ------------------
  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.94k|}	// VerifyQualName
XMPCore_Impl.cpp:_ZL15FollowXPathStepP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEmbPNS1_11__wrap_iterIPS0_EEb:
  394|  30.5k|{
  395|  30.5k|	XMP_Node * nextNode = 0;
  396|  30.5k|	const XPathStepInfo & nextStep = fullPath[stepNum];
  397|  30.5k|	XMP_Index      index    = 0;
  398|  30.5k|	XMP_OptionBits stepKind = nextStep.options & kXMP_StepKindMask;
  399|       |	
  400|  30.5k|	XMP_Assert ( (kXMP_StructFieldStep <= stepKind) && (stepKind <= kXMP_FieldSelectorStep) );
  ------------------
  |  |  142|  30.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  401|       |
  402|  30.5k|	if ( stepKind == kXMP_StructFieldStep ) {
  ------------------
  |  Branch (402:7): [True: 23.5k, False: 7.05k]
  ------------------
  403|       |
  404|  23.5k|		nextNode = FindChildNode ( parentNode, nextStep.step.c_str(), createNodes, ptrPos );
  405|       |
  406|  23.5k|	} else if ( stepKind == kXMP_QualifierStep ) {
  ------------------
  |  Branch (406:14): [True: 540, False: 6.51k]
  ------------------
  407|       |	
  408|    540|		XMP_StringPtr qualStep = nextStep.step.c_str();
  409|    540|		XMP_Assert ( *qualStep == '?' );
  ------------------
  |  |  142|    540|	#define XMP_Assert(c)	((void) 0)
  ------------------
  410|    540|		++qualStep;
  411|    540|		nextNode = FindQualifierNode ( parentNode, qualStep, createNodes, ptrPos );
  412|       |
  413|  6.51k|	} else {
  414|       |	
  415|       |		// This is an array indexing step. First get the index, then get the node.
  416|       |
  417|  6.51k|		if ( ! (parentNode->options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (417:8): [True: 0, False: 6.51k]
  ------------------
  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.51k|		if ( stepKind == kXMP_ArrayIndexStep ) {
  ------------------
  |  Branch (421:8): [True: 6.51k, False: 0]
  ------------------
  422|  6.51k|			index = FindIndexedItem ( parentNode, nextStep.step, createNodes );
  423|  6.51k|		} 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.51k|		if ( (0 <= index) && (index <= (XMP_Index)parentNode->children.size()) ) nextNode = parentNode->children[index];
  ------------------
  |  Branch (437:8): [True: 6.51k, False: 0]
  |  Branch (437:24): [True: 6.51k, False: 0]
  ------------------
  438|       |
  439|  6.51k|		if ( (index == -1) && createNodes && aliasedArrayItem && (stepKind == kXMP_QualSelectorStep) ) {
  ------------------
  |  Branch (439:8): [True: 0, False: 6.51k]
  |  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.51k|		if ( (nextNode != 0) && (ptrPos != 0) ) *ptrPos = parentNode->children.begin() + index;
  ------------------
  |  Branch (464:8): [True: 6.51k, False: 0]
  |  Branch (464:27): [True: 6.51k, False: 0]
  ------------------
  465|       |	
  466|  6.51k|	}
  467|       |
  468|  30.5k|	if ( (nextNode != 0) && (nextNode->options & kXMP_NewImplicitNode) ) {
  ------------------
  |  |  410|  30.5k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (468:7): [True: 30.5k, False: 57]
  |  Branch (468:26): [True: 4.62k, False: 25.9k]
  ------------------
  469|  4.62k|		nextNode->options |= (nextStep.options & kXMP_PropArrayFormMask);
  470|  4.62k|	}
  471|       |	
  472|  30.5k|	XMP_Assert ( (ptrPos == 0) || (nextNode == 0) || (nextNode == **ptrPos) );
  ------------------
  |  |  142|  30.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  473|  30.5k|	XMP_Assert ( (nextNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  30.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  474|  30.5k|	return nextNode;
  475|       |	
  476|  30.5k|}	// FollowXPathStep
XMPCore_Impl.cpp:_ZL15FindIndexedItemP8XMP_NodeRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  248|  6.51k|{
  249|  6.51k|	XMP_Index index = 0;
  250|  6.51k|	size_t    chLim = indexStep.size() - 1;
  251|       |
  252|  6.51k|	XMP_Assert ( (chLim >= 2) && (indexStep[0] == '[') && (indexStep[chLim] == ']') );
  ------------------
  |  |  142|  6.51k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  253|       |	
  254|  13.0k|	for ( size_t chNum = 1; chNum != chLim; ++chNum ) {
  ------------------
  |  Branch (254:26): [True: 6.51k, False: 6.51k]
  ------------------
  255|  6.51k|		XMP_Assert ( ('0' <= indexStep[chNum]) && (indexStep[chNum] <= '9') );
  ------------------
  |  |  142|  6.51k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  256|  6.51k|		index = (index * 10) + (indexStep[chNum] - '0');
  257|  6.51k|		if ( index < 0 ) {
  ------------------
  |  Branch (257:8): [True: 0, False: 6.51k]
  ------------------
  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.51k|	}
  261|       |
  262|  6.51k|	--index;	// Change to a C-style, zero based index.
  263|  6.51k|	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.51k]
  ------------------
  264|       |
  265|  6.51k|	if ( (index == (XMP_Index)arrayNode->children.size()) && createNodes ) {	// Append a new last+1 node.
  ------------------
  |  Branch (265:7): [True: 865, False: 5.64k]
  |  Branch (265:59): [True: 865, False: 0]
  ------------------
  266|    865|		XMP_Node * newItem = new XMP_Node ( arrayNode, kXMP_ArrayItemName, kXMP_NewImplicitNode );
  ------------------
  |  |  293|    865|#define kXMP_ArrayItemName	"[]"
  ------------------
              		XMP_Node * newItem = new XMP_Node ( arrayNode, kXMP_ArrayItemName, kXMP_NewImplicitNode );
  ------------------
  |  |  410|    865|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  267|    865|		arrayNode->children.push_back ( newItem );
  268|    865|	}
  269|       |
  270|       |	// ! Don't throw here for a too large index. SetProperty will throw, GetProperty will not.
  271|  6.51k|	if ( index >= (XMP_Index)arrayNode->children.size() ) index = -1;
  ------------------
  |  Branch (271:7): [True: 0, False: 6.51k]
  ------------------
  272|  6.51k|	return index;
  273|       |	
  274|  6.51k|}	// FindIndexedItem
XMPCore_Impl.cpp:_ZL19CheckImplicitStructP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEmm:
  487|  4.62k|{
  488|       |
  489|  4.62k|	if ( (stepNum < stepLim) &&
  ------------------
  |  Branch (489:7): [True: 0, False: 4.62k]
  ------------------
  490|      0|		 ((node->options & kXMP_PropCompositeMask) == 0) &&
  ------------------
  |  Branch (490:4): [True: 0, False: 0]
  ------------------
  491|      0|		 (GetStepKind ( expandedXPath[stepNum].options ) == kXMP_StructFieldStep) ) {
  ------------------
  |  |  408|      0|#define GetStepKind(f)	((f) & kXMP_StepKindMask)
  ------------------
  |  Branch (491:4): [True: 0, False: 0]
  ------------------
  492|       |
  493|      0|		node->options |= kXMP_PropValueIsStruct;
  494|       |
  495|      0|	}
  496|       |
  497|  4.62k|}	// CheckImplicitStruct

_ZN13XMP_AutoMutexC2Ev:
  222|  54.4k|	XMP_AutoMutex() : mutex(&sXMPCoreLock) { XMP_EnterCriticalRegion ( *mutex ); ReportLock(); };
  ------------------
  |  |  168|  54.4k|	#define ReportLock()			++sLockCount
  ------------------
_ZN13XMP_AutoMutexD2Ev:
  223|  54.4k|	~XMP_AutoMutex() { if ( mutex != 0 ) { ReportUnlock(); XMP_ExitCriticalRegion ( *mutex ); mutex = 0; } };
  ------------------
  |  |  169|  21.8k|	#define ReportUnlock()			--sLockCount
  ------------------
  |  Branch (223:26): [True: 21.8k, False: 32.6k]
  ------------------
_ZN13XMP_AutoMutex8KeepLockEv:
  224|  32.6k|	void KeepLock() { ReportKeepLock(); mutex = 0; };
_ZN13XPathStepInfoC2EPKcj:
  389|  39.5k|	XPathStepInfo ( XMP_StringPtr _step, XMP_OptionBits _options ) : step(_step), options(_options) {};
_ZN13XPathStepInfoC2ENSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEj:
  390|  13.3k|	XPathStepInfo ( XMP_VarString _step, XMP_OptionBits _options ) : step(_step), options(_options) {};
_ZN8XMP_NodeC2EPS_PKcj:
  434|  12.4k|		: options(_options), name(_name), parent(_parent)
  435|  12.4k|	{
  436|       |		#if XMP_DebugBuild
  437|       |			XMP_Assert ( (name.find ( ':' ) != XMP_VarString::npos) || (name == kXMP_ArrayItemName) ||
  438|       |			             (options & kXMP_SchemaNode) || (parent == 0) );
  439|       |			// *** _namePtr  = name.c_str();
  440|       |			// *** _valuePtr = value.c_str();
  441|       |		#endif
  442|  12.4k|	};
_ZN8XMP_NodeC2EPS_PKcS2_j:
  456|  15.6k|		: options(_options), name(_name), value(_value), parent(_parent)
  457|  15.6k|	{
  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.6k|	};
_ZN8XMP_NodeC2EPS_RKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_j:
  467|    397|		: options(_options), name(_name), value(_value), parent(_parent)
  468|    397|	{
  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|    397|	};
_ZN8XMP_Node14RemoveChildrenEv:
  478|  32.6k|	{
  479|  57.7k|		for ( size_t i = 0, vLim = children.size(); i < vLim; ++i ) {
  ------------------
  |  Branch (479:47): [True: 25.0k, False: 32.6k]
  ------------------
  480|  25.0k|			if ( children[i] != 0 ) delete children[i];
  ------------------
  |  Branch (480:9): [True: 25.0k, False: 0]
  ------------------
  481|  25.0k|		}
  482|  32.6k|		children.clear();
  483|  32.6k|	}
_ZN8XMP_Node16RemoveQualifiersEv:
  486|  31.9k|	{
  487|  32.5k|		for ( size_t i = 0, vLim = qualifiers.size(); i < vLim; ++i ) {
  ------------------
  |  Branch (487:49): [True: 632, False: 31.9k]
  ------------------
  488|    632|			if ( qualifiers[i] != 0 ) delete qualifiers[i];
  ------------------
  |  Branch (488:9): [True: 632, False: 0]
  ------------------
  489|    632|		}
  490|  31.9k|		qualifiers.clear();
  491|  31.9k|	}
_ZN8XMP_Node9ClearNodeEv:
  494|  3.32k|	{
  495|  3.32k|		options = 0;
  496|  3.32k|		name.erase();
  497|  3.32k|		value.erase();
  498|  3.32k|		this->RemoveChildren();
  499|  3.32k|		this->RemoveQualifiers();
  500|  3.32k|	}
_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|  2.75k|						   XMP_OptionBits  options ) : clientRefs(0), info(IterInfo(options,&xmpObj))
  428|  2.75k|{
  429|  2.75k|	if ( (options & kXMP_IterClassMask) != kXMP_IterProperties ) {
  ------------------
  |  Branch (429:7): [True: 0, False: 2.75k]
  ------------------
  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|  2.75k|	if ( *propName != 0 ) {
  ------------------
  |  Branch (435:7): [True: 848, False: 1.90k]
  ------------------
  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|    848|		XMP_ExpandedXPath propPath;
  445|    848|		ExpandXPath ( schemaNS, propName, &propPath );
  446|    848|		XMP_Node * propNode = FindConstNode ( &xmpObj.tree, propPath );	// If not found get empty iteration.
  ------------------
  |  |  301|    848|#define FindConstNode(t,p)		FindNode ( const_cast<XMP_Node*>(t), p, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|    848|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  447|       |		
  448|    848|		if ( propNode != 0 ) {
  ------------------
  |  Branch (448:8): [True: 848, False: 0]
  ------------------
  449|       |
  450|    848|			XMP_VarString rootName ( propPath[1].step );	// The schema is [0].
  451|    848|			for ( size_t i = 2; i < propPath.size(); ++i ) {
  ------------------
  |  Branch (451:24): [True: 0, False: 848]
  ------------------
  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|    848|			propName = rootName.c_str();
  458|    848|			size_t leafOffset = rootName.size();
  459|  15.1k|			while ( (leafOffset > 0) && (propName[leafOffset] != '/') && (propName[leafOffset] != '[') ) --leafOffset;
  ------------------
  |  Branch (459:12): [True: 14.2k, False: 848]
  |  Branch (459:32): [True: 14.2k, False: 0]
  |  Branch (459:65): [True: 14.2k, False: 0]
  ------------------
  460|    848|			if ( propName[leafOffset] == '/' ) ++leafOffset;
  ------------------
  |  Branch (460:9): [True: 0, False: 848]
  ------------------
  461|       |
  462|    848|			info.tree.children.push_back ( IterNode ( propNode->options, propName, leafOffset ) );
  463|    848|			SetCurrSchema ( info, propPath[kSchemaStep].step.c_str() );
  464|    848|			if ( info.options & kXMP_IterJustChildren ) {
  ------------------
  |  Branch (464:9): [True: 0, False: 848]
  ------------------
  465|      0|				AddNodeOffspring ( info, info.tree.children.back(), propNode );
  466|      0|			}
  467|       |
  468|    848|		}
  469|       |	
  470|  1.90k|	} else if ( *schemaNS != 0 ) {
  ------------------
  |  Branch (470:14): [True: 0, False: 1.90k]
  ------------------
  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|  1.90k|	} 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|  5.32k|		for ( size_t schemaNum = 0, schemaLim = xmpObj.tree.children.size(); schemaNum != schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (506:72): [True: 3.41k, False: 1.90k]
  ------------------
  507|       |
  508|  3.41k|			const XMP_Node * xmpSchema = xmpObj.tree.children[schemaNum];
  509|  3.41k|			info.tree.children.push_back ( IterNode ( kXMP_SchemaNode, xmpSchema->name, 0 ) );
  510|  3.41k|			IterNode & iterSchema = info.tree.children.back();
  511|       |
  512|  3.41k|			if ( ! (info.options & kXMP_IterJustChildren) ) {
  ------------------
  |  Branch (512:9): [True: 3.41k, False: 0]
  ------------------
  513|  3.41k|				AddSchemaProps ( info, iterSchema, xmpSchema );
  514|  3.41k|				if ( info.options & kXMP_IterIncludeAliases ) AddSchemaAliases ( info, iterSchema, xmpSchema->name.c_str() );
  ------------------
  |  Branch (514:10): [True: 0, False: 3.41k]
  ------------------
  515|  3.41k|				if ( iterSchema.children.empty() ) info.tree.children.pop_back();	// No properties, remove the schema node.
  ------------------
  |  Branch (515:10): [True: 0, False: 3.41k]
  ------------------
  516|  3.41k|			}
  517|       |
  518|  3.41k|		}
  519|       |		
  520|  1.90k|		if ( info.options & kXMP_IterIncludeAliases ) {
  ------------------
  |  Branch (520:8): [True: 0, False: 1.90k]
  ------------------
  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|  1.90k|	}
  550|       |	
  551|       |	// Set the current iteration position to the first node to be visited.
  552|       |	
  553|  2.75k|	info.currPos = info.tree.children.begin();
  554|  2.75k|	info.endPos  = info.tree.children.end();
  555|       |	
  556|  2.75k|	if ( (info.options & kXMP_IterJustChildren) && (info.currPos != info.endPos) && (*schemaNS != 0) ) {
  ------------------
  |  Branch (556:7): [True: 0, False: 2.75k]
  |  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|  2.75k|}	// XMPIterator for XMPMeta objects
_ZN11XMPIteratorD2Ev:
  591|  2.75k|{
  592|  2.75k|	XMP_Assert ( this->clientRefs <= 0 );
  ------------------
  |  |  142|  2.75k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  593|       |	// Let everything else default.
  594|       |	
  595|  2.75k|}	// ~XMPIterator
_ZN11XMPIterator4NextEPPKcPjS2_S3_S2_S3_S3_:
  617|  21.6k|{
  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|  21.6k|	if ( info.currPos == info.endPos ) return false;	// Happens at the start of an empty iteration.
  ------------------
  |  Branch (623:7): [True: 301, False: 21.3k]
  ------------------
  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|  21.3k|	const XMP_Node * xmpNode = GetNextXMPNode ( info );
  631|  21.3k|	if ( xmpNode == 0 ) return false;
  ------------------
  |  Branch (631:7): [True: 2.28k, False: 19.0k]
  ------------------
  632|  19.0k|	bool isSchemaNode = XMP_NodeIsSchema ( info.currPos->options );
  633|       |	
  634|  19.0k|	if ( info.options & kXMP_IterJustLeafNodes ) {
  ------------------
  |  Branch (634:7): [True: 0, False: 19.0k]
  ------------------
  635|      0|		while ( isSchemaNode || (! xmpNode->children.empty()) ) {
  ------------------
  |  Branch (635:11): [True: 0, False: 0]
  |  Branch (635:27): [True: 0, False: 0]
  ------------------
  636|      0|			info.currPos->visitStage = kIter_VisitQualifiers;	// Skip to this node's children.
  637|      0|			xmpNode = GetNextXMPNode ( info );
  638|      0|			if ( xmpNode == 0 ) return false;
  ------------------
  |  Branch (638:9): [True: 0, False: 0]
  ------------------
  639|      0|			isSchemaNode = XMP_NodeIsSchema ( info.currPos->options );
  640|      0|		}
  641|      0|	}
  642|       |	
  643|  19.0k|	*schemaNS = info.currSchema.c_str();
  644|  19.0k|	*nsSize   = info.currSchema.size();
  645|       |
  646|  19.0k|	*propOptions = info.currPos->options;
  647|       |
  648|  19.0k|	*propPath  = "";
  649|  19.0k|	*pathSize  = 0;
  650|  19.0k|	*propValue = "";
  651|  19.0k|	*valueSize = 0;
  652|       |	
  653|  19.0k|	if ( ! (*propOptions & kXMP_SchemaNode) ) {
  ------------------
  |  Branch (653:7): [True: 15.6k, False: 3.41k]
  ------------------
  654|       |
  655|  15.6k|		*propPath = info.currPos->fullPath.c_str();
  656|  15.6k|		*pathSize = info.currPos->fullPath.size();
  657|  15.6k|		if ( info.options & kXMP_IterJustLeafName ) {
  ------------------
  |  Branch (657:8): [True: 0, False: 15.6k]
  ------------------
  658|      0|			*propPath += info.currPos->leafOffset;
  659|      0|			*pathSize -= info.currPos->leafOffset;
  660|      0|		}
  661|       |		
  662|  15.6k|		if ( ! (*propOptions & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (662:8): [True: 13.3k, False: 2.28k]
  ------------------
  663|  13.3k|			*propValue = xmpNode->value.c_str();
  664|  13.3k|			*valueSize = xmpNode->value.size();
  665|  13.3k|		}
  666|       |
  667|  15.6k|	}
  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.0k|	return true;
  675|       |
  676|  19.0k|}	// Next
_ZN11XMPIterator10UnlockIterEj:
  729|  19.0k|{
  730|  19.0k|	UNUSED(options);
  731|       |
  732|  19.0k|	XMPMeta::Unlock ( 0 );
  733|       |	
  734|  19.0k|}	// UnlockIter
XMPIterator.cpp:_ZL13SetCurrSchemaR8IterInfoPKc:
  181|    848|{
  182|       |
  183|    848|	info.currSchema = schemaName;
  184|       |	#if 0	// *** XMP_DebugBuild
  185|       |		info._schemaPtr = info.currSchema.c_str();
  186|       |	#endif
  187|       |
  188|    848|}	// SetCurrSchema
XMPIterator.cpp:_ZL16AddNodeOffspringR8IterInfoR8IterNodePK8XMP_Node:
  114|  15.6k|{
  115|  15.6k|	XMP_VarString currPath ( iterParent.fullPath );
  116|  15.6k|	size_t        leafOffset = iterParent.fullPath.size();
  117|       |	
  118|  15.6k|	if ( (! xmpParent->qualifiers.empty()) && (! (info.options & kXMP_IterOmitQualifiers)) ) {
  ------------------
  |  Branch (118:7): [True: 345, False: 15.3k]
  |  Branch (118:44): [True: 345, False: 0]
  ------------------
  119|       |
  120|       |		#if TraceIterators
  121|       |			printf ( "    Adding qualifiers of %s\n", currPath.c_str() );
  122|       |		#endif
  123|       |
  124|    345|		currPath += "/?";	// All qualifiers are named and use paths like "Prop/?Qual".
  125|    345|		leafOffset += 2;
  126|       |		
  127|    838|		for ( size_t qualNum = 0, qualLim = xmpParent->qualifiers.size(); qualNum != qualLim; ++qualNum ) {
  ------------------
  |  Branch (127:69): [True: 493, False: 345]
  ------------------
  128|    493|			const XMP_Node * xmpQual = xmpParent->qualifiers[qualNum];
  129|    493|			currPath += xmpQual->name;
  130|    493|			iterParent.qualifiers.push_back ( IterNode ( xmpQual->options, currPath, leafOffset ) );
  131|    493|			currPath.erase ( leafOffset );
  132|       |			#if TraceIterators
  133|       |				printf ( "        %s\n", xmpQual->name.c_str() );
  134|       |			#endif
  135|    493|		}
  136|       |		
  137|    345|		leafOffset -= 2;
  138|    345|		currPath.erase ( leafOffset );
  139|       |
  140|    345|	}
  141|       |
  142|  15.6k|	if ( ! xmpParent->children.empty() ) {
  ------------------
  |  Branch (142:7): [True: 2.27k, False: 13.4k]
  ------------------
  143|       |	
  144|       |		#if TraceIterators
  145|       |			printf ( "    Adding children of %s\n", currPath.c_str() );
  146|       |		#endif
  147|       |
  148|  2.27k|		XMP_Assert ( xmpParent->options & kXMP_PropCompositeMask );
  ------------------
  |  |  142|  2.27k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  149|       |		
  150|  2.27k|		if ( xmpParent->options & kXMP_PropValueIsStruct ) {
  ------------------
  |  Branch (150:8): [True: 428, False: 1.84k]
  ------------------
  151|    428|			currPath += '/';
  152|    428|			leafOffset += 1;
  153|    428|		}
  154|       |		
  155|  7.56k|		for ( size_t childNum = 0, childLim = xmpParent->children.size(); childNum != childLim; ++childNum ) {
  ------------------
  |  Branch (155:69): [True: 5.29k, False: 2.27k]
  ------------------
  156|  5.29k|			const XMP_Node * xmpChild = xmpParent->children[childNum];
  157|  5.29k|			if ( ! (xmpParent->options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (157:9): [True: 1.15k, False: 4.14k]
  ------------------
  158|  1.15k|				currPath += xmpChild->name;
  159|  4.14k|			} else {
  160|  4.14k|				char buffer [32];	// AUDIT: Using sizeof(buffer) below for snprintf length is safe.
  161|  4.14k|				snprintf ( buffer, sizeof(buffer), "[%lu]", static_cast<unsigned long>(childNum+1) );	// ! XPath indices are one-based.
  162|  4.14k|				currPath += buffer;
  163|  4.14k|			}
  164|  5.29k|			iterParent.children.push_back ( IterNode ( xmpChild->options, currPath, leafOffset ) );
  165|  5.29k|			currPath.erase ( leafOffset );
  166|       |			#if TraceIterators
  167|       |				printf ( "        %s\n", (iterParent.children.back().fullPath.c_str() + leafOffset) );
  168|       |			#endif
  169|  5.29k|		}
  170|       |	
  171|  2.27k|	}
  172|       |
  173|  15.6k|}	// AddNodeOffspring
XMPIterator.cpp:_ZL14AddSchemaPropsR8IterInfoR8IterNodePK8XMP_Node:
   48|  3.41k|{
   49|  3.41k|	UNUSED(info);
   50|       |	#if TraceIterators
   51|       |		printf ( "    Adding properties of %s\n", xmpSchema->name.c_str() );
   52|       |	#endif
   53|       |
   54|  12.9k|	for ( size_t propNum = 0, propLim = xmpSchema->children.size(); propNum != propLim; ++propNum ) {
  ------------------
  |  Branch (54:66): [True: 9.53k, False: 3.41k]
  ------------------
   55|  9.53k|		const XMP_Node * xmpProp = xmpSchema->children[propNum];
   56|       |		// *** set the has-aliases bit when appropriate
   57|  9.53k|		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.53k|	}
   62|       |
   63|  3.41k|}	// AddSchemaProps
XMPIterator.cpp:_ZL14GetNextXMPNodeR8IterInfo:
  308|  21.3k|{
  309|  21.3k|	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|  21.3k|	if ( info.currPos->visitStage != kIter_BeforeVisit ) AdvanceIterPos ( info );
  ------------------
  |  Branch (322:7): [True: 18.9k, False: 2.44k]
  ------------------
  323|       |	
  324|  21.3k|	bool isSchemaNode = false;
  325|  21.3k|	XMP_ExpandedXPath expPath;	// Keep outside the loop to avoid constant construct/destruct.
  326|       |	
  327|  21.3k|	while ( info.currPos != info.endPos ) {
  ------------------
  |  Branch (327:10): [True: 19.0k, False: 2.29k]
  ------------------
  328|       |
  329|  19.0k|		isSchemaNode = XMP_NodeIsSchema ( info.currPos->options );
  330|  19.0k|		if ( isSchemaNode ) {
  ------------------
  |  Branch (330:8): [True: 3.41k, False: 15.6k]
  ------------------
  331|  3.41k|			SetCurrSchema ( info, info.currPos->fullPath );
  332|  3.41k|			xmpNode = FindConstSchema ( &info.xmpObj->tree, info.currPos->fullPath.c_str() );
  ------------------
  |  |  298|  3.41k|#define FindConstSchema(t,u)	FindSchemaNode ( const_cast<XMP_Node*>(t), u, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|  3.41k|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  333|  3.41k|			if ( xmpNode == 0 ) xmpNode = sDummySchema;
  ------------------
  |  Branch (333:9): [True: 0, False: 3.41k]
  ------------------
  334|  15.6k|		} else {
  335|  15.6k|			ExpandXPath ( info.currSchema.c_str(), info.currPos->fullPath.c_str(), &expPath );
  336|  15.6k|			xmpNode = FindConstNode ( &info.xmpObj->tree, expPath );
  ------------------
  |  |  301|  15.6k|#define FindConstNode(t,p)		FindNode ( const_cast<XMP_Node*>(t), p, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|  15.6k|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  337|  15.6k|		}
  338|  19.0k|		if ( xmpNode != 0 ) break;	// Exit the loop, we found a live XMP node.
  ------------------
  |  Branch (338:8): [True: 19.0k, False: 2]
  ------------------
  339|       |
  340|      2|		info.currPos->visitStage = kIter_VisitChildren;	// Make AdvanceIterPos move to the next sibling.
  341|      2|		info.currPos->children.clear();
  342|      2|		info.currPos->qualifiers.clear();
  343|      2|		AdvanceIterPos ( info );
  344|       |
  345|      2|	}
  346|       |
  347|  21.3k|	if ( info.currPos == info.endPos ) return 0;
  ------------------
  |  Branch (347:7): [True: 2.28k, False: 19.0k]
  ------------------
  348|       |	
  349|       |	// -------------------------------------------------------------------------------------------
  350|       |	// Now we've got the iteration node and corresponding XMP node. Add the iteration children for
  351|       |	// structs and arrays. The children of schema were added when the iterator was constructed.
  352|       |
  353|  19.0k|	XMP_Assert ( info.currPos->visitStage == kIter_BeforeVisit );
  ------------------
  |  |  142|  19.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  354|       |
  355|  19.0k|	if ( info.currPos->visitStage == kIter_BeforeVisit ) {
  ------------------
  |  Branch (355:7): [True: 19.0k, False: 2]
  ------------------
  356|  19.0k|		if ( (! isSchemaNode) && (! (info.options & kXMP_IterJustChildren)) ) {
  ------------------
  |  Branch (356:8): [True: 15.6k, False: 3.41k]
  |  Branch (356:28): [True: 15.6k, False: 0]
  ------------------
  357|  15.6k|			AddNodeOffspring ( info, *info.currPos, xmpNode );
  358|  15.6k|		}
  359|  19.0k|		info.currPos->visitStage = kIter_VisitSelf;
  360|  19.0k|	}
  361|       |	
  362|  19.0k|	return xmpNode;
  363|       |
  364|  21.3k|}	// GetNextXMPNode
XMPIterator.cpp:_ZL13SetCurrSchemaR8IterInfoRNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  192|  5.22k|{
  193|       |
  194|  5.22k|	info.currSchema = schemaName;
  195|       |	#if 0	// *** XMP_DebugBuild
  196|       |		info._schemaPtr = info.currSchema.c_str();
  197|       |	#endif
  198|       |
  199|  5.22k|}	// SetCurrSchema
XMPIterator.cpp:_ZL14AdvanceIterPosR8IterInfo:
  212|  18.9k|{
  213|       |	// -------------------------------------------------------------------------------------------
  214|       |	// Keep looking until we find a node to visit or the end of everything. The first time through
  215|       |	// the current node will exist, we just visited it. But we have to keep looking if the current
  216|       |	// node was the last of its siblings or is an empty schema.
  217|       |	
  218|       |	// ! It is possible that info.currPos == info.endPos on entry. Don't dereference info.currPos yet!
  219|       |
  220|  43.4k|	while ( true ) {
  ------------------
  |  Branch (220:10): [True: 43.4k, Folded]
  ------------------
  221|       |	
  222|  43.4k|		if ( info.currPos == info.endPos ) {
  ------------------
  |  Branch (222:8): [True: 7.99k, False: 35.4k]
  ------------------
  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|  7.99k|			if ( info.ancestors.empty() ) break;	// We're at the end of the schema list.
  ------------------
  |  Branch (229:9): [True: 2.28k, False: 5.70k]
  ------------------
  230|       |
  231|  5.70k|			IterPosPair & parent = info.ancestors.back();
  232|  5.70k|			info.currPos = parent.first;
  233|  5.70k|			info.endPos  = parent.second;
  234|  5.70k|			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|  35.4k|		} 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|  35.4k|			if ( info.currPos->visitStage == kIter_BeforeVisit ) {		// Visit this node now.
  ------------------
  |  Branch (252:9): [True: 10.7k, False: 24.6k]
  ------------------
  253|  10.7k|				if ( info.currPos->options & kXMP_SchemaNode ) SetCurrSchema ( info, info.currPos->fullPath );
  ------------------
  |  Branch (253:10): [True: 1.81k, False: 8.97k]
  ------------------
  254|  10.7k|				break;
  255|  10.7k|			}
  256|       |
  257|  24.6k|			if ( info.currPos->visitStage == kIter_VisitSelf ) {		// Just finished visiting the value portion.
  ------------------
  |  Branch (257:9): [True: 18.9k, False: 5.70k]
  ------------------
  258|  18.9k|				info.currPos->visitStage = kIter_VisitQualifiers;		// Start visiting the qualifiers.
  259|  18.9k|				if ( ! info.currPos->qualifiers.empty() ) {
  ------------------
  |  Branch (259:10): [True: 272, False: 18.6k]
  ------------------
  260|    272|					info.ancestors.push_back ( IterPosPair ( info.currPos, info.endPos ) );
  261|    272|					info.endPos  = info.currPos->qualifiers.end();		// ! Set the parent's endPos before changing currPos!
  262|    272|					info.currPos = info.currPos->qualifiers.begin();
  263|    272|					break;
  264|    272|				}
  265|  18.9k|			}
  266|       |
  267|  24.3k|			if ( info.currPos->visitStage == kIter_VisitQualifiers ) {	// Just finished visiting the qualifiers.
  ------------------
  |  Branch (267:9): [True: 18.9k, False: 5.43k]
  ------------------
  268|  18.9k|				info.currPos->qualifiers.clear();
  269|  18.9k|				info.currPos->visitStage = kIter_VisitChildren;			// Start visiting the children.
  270|  18.9k|				if ( ! info.currPos->children.empty() ) {
  ------------------
  |  Branch (270:10): [True: 5.59k, False: 13.3k]
  ------------------
  271|  5.59k|					info.ancestors.push_back ( IterPosPair ( info.currPos, info.endPos ) );
  272|  5.59k|					info.endPos  = info.currPos->children.end();		// ! Set the parent's endPos before changing currPos!
  273|  5.59k|					info.currPos = info.currPos->children.begin();
  274|  5.59k|					break;
  275|  5.59k|				}
  276|  18.9k|			}
  277|       |
  278|  18.7k|			if ( info.currPos->visitStage == kIter_VisitChildren ) {	// Just finished visiting the children.
  ------------------
  |  Branch (278:9): [True: 18.7k, False: 0]
  ------------------
  279|  18.7k|				info.currPos->children.clear();
  280|  18.7k|				++info.currPos;											// Move to the next sibling.
  281|  18.7k|				continue;
  282|  18.7k|			}
  283|       |			
  284|       |			#if TraceIterators
  285|       |				if ( info.currPos != info.endPos ) {
  286|       |					printf ( "    Moved to %s, stage = %s\n",
  287|       |					         info.currPos->fullPath.c_str(), sStageNames[info.currPos->visitStage] );
  288|       |				}
  289|       |			#endif
  290|       |			
  291|  18.7k|		}
  292|       |
  293|  43.4k|	}	// Loop to find the next node.
  294|       |	
  295|  18.9k|	XMP_Assert ( (info.currPos == info.endPos) || (info.currPos->visitStage == kIter_BeforeVisit) );
  ------------------
  |  |  142|  18.9k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  296|       |
  297|  18.9k|}	// AdvanceIterPos

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

_ZN7XMPMeta11SetPropertyEPKcS1_S1_j:
  454|  4.49k|{
  455|  4.49k|	XMP_Assert ( (schemaNS != 0) && (propName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|  4.49k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  456|       |
  457|  4.49k|	options = VerifySetOptions ( options, propValue );
  458|       |
  459|  4.49k|	XMP_ExpandedXPath expPath;
  460|  4.49k|	ExpandXPath ( schemaNS, propName, &expPath );
  461|       |
  462|  4.49k|	XMP_Node * propNode = FindNode ( &tree, expPath, kXMP_CreateNodes, options );
  ------------------
  |  |  295|  4.49k|#define kXMP_CreateNodes	true
  ------------------
  463|  4.49k|	if ( propNode == 0 ) XMP_Throw ( "Specified property does not exist", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (463:7): [True: 0, False: 4.49k]
  ------------------
  464|       |	
  465|  4.49k|	SetNode ( propNode, propValue, options );
  466|       |	
  467|  4.49k|}	// 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: 4, False: 60]
  ------------------
  519|       |		// The array exists, make sure the form is compatible. Zero arrayForm means take what exists.
  520|      4|		if ( ! (arrayNode->options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (520:8): [True: 0, False: 4]
  ------------------
  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|     60|	} else {
  530|       |		// The array does not exist, try to create it.
  531|     60|		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: 60]
  ------------------
  532|     60|		arrayNode = FindNode ( &tree, arrayPath, kXMP_CreateNodes, arrayOptions );
  ------------------
  |  |  295|     60|#define kXMP_CreateNodes	true
  ------------------
  533|     60|		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: 60]
  ------------------
  534|     60|	}
  535|       |	
  536|     64|	DoSetArrayItem ( arrayNode, kXMP_ArrayLastItem, itemValue, (options | kXMP_InsertAfterItem) );
  537|       |	
  538|     64|}	// AppendArrayItem
_ZN7XMPMeta12SetQualifierEPKcS1_S1_S1_S1_j:
  575|     64|{
  576|     64|	XMP_Assert ( (schemaNS != 0) && (propName != 0) && (qualNS != 0) && (qualName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  577|       |
  578|     64|	XMP_StringPtr	qualPath;
  579|     64|	XMP_StringLen	pathLen;
  580|       |
  581|     64|	XMP_ExpandedXPath expPath;
  582|     64|	ExpandXPath ( schemaNS, propName, &expPath );
  583|     64|	XMP_Node * propNode = FindNode ( &tree, expPath, kXMP_ExistingOnly );
  ------------------
  |  |  296|     64|#define kXMP_ExistingOnly	false
  ------------------
  584|     64|	if ( propNode == 0 ) XMP_Throw ( "Specified property does not exist", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (584:7): [True: 0, False: 64]
  ------------------
  585|       |
  586|     64|	XMPUtils::ComposeQualifierPath ( schemaNS, propName, qualNS, qualName, &qualPath, &pathLen );
  587|     64|	SetProperty ( schemaNS, qualPath, qualValue, options );
  588|       |
  589|     64|}	// SetQualifier
XMPMeta-GetSet.cpp:_ZL7SetNodeP8XMP_NodePKcj:
  117|  4.55k|{
  118|  4.55k|	if ( options & kXMP_DeleteExisting ) {
  ------------------
  |  Branch (118:7): [True: 0, False: 4.55k]
  ------------------
  119|      0|		XMP_ClearOption ( options, kXMP_DeleteExisting );
  120|      0|		node->options = options;
  121|      0|		node->value.erase();
  122|      0|		node->RemoveChildren();
  123|      0|		node->RemoveQualifiers();
  124|      0|	}
  125|       |	
  126|  4.55k|	node->options |= options;	// Keep options set by FindNode when creating a new node.
  127|       |
  128|  4.55k|	if ( value != 0 ) {
  ------------------
  |  Branch (128:7): [True: 3.89k, False: 663]
  ------------------
  129|       |	
  130|       |		// This is setting the value of a leaf node.
  131|  3.89k|		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.89k]
  ------------------
  132|  3.89k|		XMP_Assert ( node->children.empty() );
  ------------------
  |  |  142|  3.89k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  133|  3.89k|		SetNodeValue ( node, value );
  134|       |	
  135|  3.89k|	} else {
  136|       |	
  137|       |		// This is setting up an array or struct.
  138|    663|		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: 663]
  ------------------
  139|    663|		if ( node->options & kXMP_PropCompositeMask ) {	// Can't change an array to a struct, or vice versa.
  ------------------
  |  Branch (139:8): [True: 518, False: 145]
  ------------------
  140|    518|			if ( (options & kXMP_PropCompositeMask) != (node->options & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (140:9): [True: 0, False: 518]
  ------------------
  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|    518|		}
  144|    663|		node->RemoveChildren();
  145|       |	
  146|    663|	}
  147|       |	
  148|  4.55k|}	// 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: 60, False: 4]
  |  Branch (175:27): [True: 60, False: 0]
  ------------------
  176|     60|		itemIndex = 1;
  177|     60|		itemLoc = kXMP_InsertBeforeItem;
  178|     60|	}
  179|     64|	if ( (itemIndex == arraySize) && (itemLoc == kXMP_InsertAfterItem) ) {
  ------------------
  |  Branch (179:7): [True: 4, False: 60]
  |  Branch (179:35): [True: 4, False: 0]
  ------------------
  180|      4|		itemIndex += 1;
  181|      4|		itemLoc = 0;
  182|      4|	}
  183|     64|	if ( (itemIndex == arraySize+1) && (itemLoc == kXMP_InsertBeforeItem) ) itemLoc = 0;
  ------------------
  |  Branch (183:7): [True: 64, False: 0]
  |  Branch (183:37): [True: 60, False: 4]
  ------------------
  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.89k|{
   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.89k|	node->value = value;
   85|       |	
   86|  3.89k|	XMP_Uns8* chPtr = (XMP_Uns8*) node->value.c_str();	// Check for valid UTF-8, replace ASCII controls with a space.
   87|  9.48k|	while ( *chPtr != 0 ) {
  ------------------
  |  Branch (87:10): [True: 5.59k, False: 3.89k]
  ------------------
   88|   140k|		while ( (*chPtr != 0) && (*chPtr < 0x80) ) {
  ------------------
  |  Branch (88:11): [True: 136k, False: 3.86k]
  |  Branch (88:28): [True: 134k, False: 1.73k]
  ------------------
   89|   134k|			if ( *chPtr < 0x20 ) {
  ------------------
  |  Branch (89:9): [True: 1.20k, False: 133k]
  ------------------
   90|  1.20k|				if ( (*chPtr != kTab) && (*chPtr != kLF) && (*chPtr != kCR) ) *chPtr = 0x20;
  ------------------
  |  |  100|  1.20k|#define kTab ((char)0x09)
  ------------------
              				if ( (*chPtr != kTab) && (*chPtr != kLF) && (*chPtr != kCR) ) *chPtr = 0x20;
  ------------------
  |  |  101|    403|#define kLF ((char)0x0A)
  ------------------
              				if ( (*chPtr != kTab) && (*chPtr != kLF) && (*chPtr != kCR) ) *chPtr = 0x20;
  ------------------
  |  |  102|      0|#define kCR ((char)0x0D)
  ------------------
  |  Branch (90:10): [True: 403, False: 798]
  |  Branch (90:30): [True: 0, False: 403]
  |  Branch (90:49): [True: 0, False: 0]
  ------------------
   91|   133k|			} else if (*chPtr == 0x7F ) {
  ------------------
  |  Branch (91:15): [True: 0, False: 133k]
  ------------------
   92|      0|				*chPtr = 0x20;
   93|      0|			}
   94|   134k|			++chPtr;
   95|   134k|		}
   96|  5.59k|		XMP_Assert ( (*chPtr == 0) || (*chPtr >= 0x80) );
  ------------------
  |  |  142|  5.59k|	#define XMP_Assert(c)	((void) 0)
  ------------------
   97|  5.59k|		if ( *chPtr != 0 ) (void) GetCodePoint ( (const XMP_Uns8 **) &chPtr );	// Throws for bad UTF-8.
  ------------------
  |  Branch (97:8): [True: 1.73k, False: 3.86k]
  ------------------
   98|  5.59k|	}
   99|       |
  100|  3.89k|	if ( XMP_PropIsQualifier(node->options) && (node->name == "xml:lang") ) NormalizeLangValue ( &node->value );
  ------------------
  |  Branch (100:7): [True: 192, False: 3.69k]
  |  Branch (100:45): [True: 118, False: 74]
  ------------------
  101|       |
  102|       |	#if 0	// *** XMP_DebugBuild
  103|       |		node->_valuePtr = node->value.c_str();
  104|       |	#endif
  105|       |	
  106|  3.89k|}	// SetNodeValue

_ZN7XMPMeta15ParseFromBufferEPKcjj:
 1096|  2.61k|{
 1097|  2.61k|	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.61k]
  |  Branch (1097:24): [True: 0, False: 0]
  ------------------
 1098|  2.61k|	if ( xmpSize == kXMP_UseNullTermination ) xmpSize = strlen ( buffer );
  ------------------
  |  Branch (1098:7): [True: 0, False: 2.61k]
  ------------------
 1099|       |	
 1100|  2.61k|	const bool lastClientCall = ((options & kXMP_ParseMoreBuffers) == 0);	// *** Could use FlagIsSet & FlagIsClear macros.
 1101|       |	
 1102|  2.61k|	this->tree.ClearNode();	// Make sure the target XMP object is totally empty.
 1103|       |
 1104|  2.61k|	if ( this->xmlParser == 0 ) {
  ------------------
  |  Branch (1104:7): [True: 2.61k, False: 0]
  ------------------
 1105|  2.61k|		if ( (xmpSize == 0) && lastClientCall ) return;	// Tolerate empty parse. Expat complains if there are no XML elements.
  ------------------
  |  Branch (1105:8): [True: 0, False: 2.61k]
  |  Branch (1105:26): [True: 0, False: 0]
  ------------------
 1106|  2.61k|		this->xmlParser = XMP_NewExpatAdapter();
 1107|  2.61k|	}
 1108|       |	
 1109|  2.61k|	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.61k|	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.61k|		if ( parser.charEncoding == XMP_OptionBits(-1) ) {
  ------------------
  |  Branch (1126:8): [True: 2.61k, False: 0]
  ------------------
 1127|       |
 1128|  2.61k|			if ( (parser.pendingCount == 0) && (xmpSize >= kXMLPendingInputMax) ) {
  ------------------
  |  Branch (1128:9): [True: 2.61k, False: 0]
  |  Branch (1128:39): [True: 2.61k, False: 5]
  ------------------
 1129|       |
 1130|       |				// This ought to be the common case, the first buffer is big enough.
 1131|  2.61k|				parser.charEncoding = DetermineInputEncoding ( (XMP_Uns8*)buffer, xmpSize );
 1132|       |
 1133|  2.61k|			} 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.61k|		}
 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.61k|		XMP_Assert ( parser.charEncoding != XMP_OptionBits(-1) );
  ------------------
  |  |  142|  2.61k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1160|       |
 1161|  2.61k|		if ( parser.charEncoding != kXMP_EncodeUTF8 ) {
  ------------------
  |  Branch (1161:8): [True: 0, False: 2.61k]
  ------------------
 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.61k|		} 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.62k|			while ( parser.pendingCount > 0 ) {
  ------------------
  |  Branch (1181:12): [True: 5, False: 2.61k]
  ------------------
 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.61k|			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.61k|			if ( bytesDone < xmpSize ) {
  ------------------
  |  Branch (1245:9): [True: 0, False: 2.61k]
  ------------------
 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.61k|		}
 1258|       |		
 1259|  2.61k|		if ( lastClientCall ) {
  ------------------
  |  Branch (1259:8): [True: 2.61k, 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.61k|			const XML_Node * xmlRoot = FindRootNode ( this, *this->xmlParser, options );
 1267|       |
 1268|  2.61k|			if ( xmlRoot != 0 ) {
  ------------------
  |  Branch (1268:9): [True: 2.36k, False: 244]
  ------------------
 1269|       |
 1270|  2.36k|				ProcessRDF ( &this->tree, *xmlRoot, options );
 1271|  2.36k|				NormalizeDCArrays ( &this->tree );
 1272|  2.36k|				if ( this->tree.options & kXMP_PropHasAliases ) MoveExplicitAliases ( &this->tree, options );
  ------------------
  |  Branch (1272:10): [True: 0, False: 2.36k]
  ------------------
 1273|  2.36k|				TouchUpDataModel ( this );
 1274|       |				
 1275|       |				// Delete empty schema nodes. Do this last, other cleanup can make empty schema.
 1276|  2.36k|				size_t schemaNum = 0;
 1277|  5.78k|				while ( schemaNum < this->tree.children.size() ) {
  ------------------
  |  Branch (1277:13): [True: 3.41k, False: 2.36k]
  ------------------
 1278|  3.41k|					XMP_Node * currSchema = this->tree.children[schemaNum];
 1279|  3.41k|					if ( currSchema->children.size() > 0 ) {
  ------------------
  |  Branch (1279:11): [True: 3.41k, False: 0]
  ------------------
 1280|  3.41k|						++schemaNum;
 1281|  3.41k|					} 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.41k|				}
 1286|       |				
 1287|  2.36k|			}
 1288|       |
 1289|  2.61k|			delete this->xmlParser;
 1290|  2.61k|			this->xmlParser = 0;
 1291|       |
 1292|  2.61k|		}
 1293|       |		
 1294|  2.61k|	} catch ( ... ) {
 1295|       |
 1296|    713|		delete this->xmlParser;
 1297|    713|		this->xmlParser = 0;
 1298|    713|		prevTkVer = 0;
 1299|    713|		this->tree.ClearNode();
 1300|    713|		throw;
 1301|       |
 1302|    713|	}
 1303|       |	
 1304|  2.61k|}	// ParseFromBuffer
XMPMeta-Parse.cpp:_ZL22DetermineInputEncodingPKhm:
  810|  2.61k|{
  811|  2.61k|	if ( length < 2 ) return kXMP_EncodeUTF8;
  ------------------
  |  Branch (811:7): [True: 0, False: 2.61k]
  ------------------
  812|       |	
  813|  2.61k|	XMP_Uns8 * uniChar = (XMP_Uns8*)buffer;	// ! Make sure comparisons are unsigned.
  814|       |	
  815|  2.61k|	if ( uniChar[0] == 0 ) {
  ------------------
  |  Branch (815:7): [True: 0, False: 2.61k]
  ------------------
  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.61k|	} else if ( uniChar[0] < 0x80 ) {
  ------------------
  |  Branch (825:14): [True: 2.61k, 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.61k|		if ( uniChar[1] != 0 )  return kXMP_EncodeUTF8;
  ------------------
  |  Branch (832:8): [True: 2.61k, 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.61k|}	// DetermineInputEncoding
XMPMeta-Parse.cpp:_ZL18ProcessUTF8PortionP16XMLParserAdapterPKhmb:
  976|  2.62k|{
  977|  2.62k|	const XMP_Uns8 * bufEnd = buffer + length;
  978|       |	
  979|  2.62k|	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.62k|	std::string copy;
  992|       |		
  993|  3.58M|	for ( spanEnd = buffer; spanEnd < bufEnd; ++spanEnd ) {
  ------------------
  |  Branch (993:26): [True: 3.57M, False: 2.62k]
  ------------------
  994|       |
  995|  3.57M|		if ( (0x20 <= *spanEnd) && (*spanEnd <= 0x7E) && (*spanEnd != '&') ) {
  ------------------
  |  Branch (995:8): [True: 3.52M, False: 51.2k]
  |  Branch (995:30): [True: 3.48M, False: 39.6k]
  |  Branch (995:52): [True: 3.44M, False: 41.3k]
  ------------------
  996|  3.44M|			copy.push_back(*spanEnd);
  997|  3.44M|			continue;	// A regular ASCII character.
  998|  3.44M|		}
  999|       |
 1000|   132k|		if ( *spanEnd >= 0x80 ) {
  ------------------
  |  Branch (1000:8): [True: 33.0k, False: 99.1k]
  ------------------
 1001|       |		
 1002|       |			// See if this is a multi-byte UTF-8 sequence, or a Latin-1 character to replace.
 1003|       |
 1004|  33.0k|			int uniLen = CountUTF8 ( spanEnd, bufEnd );
 1005|       |
 1006|  33.0k|			if ( uniLen > 0 ) {
  ------------------
  |  Branch (1006:9): [True: 33.0k, False: 0]
  ------------------
 1007|       |
 1008|       |				// A valid UTF-8 character, keep it as-is.
 1009|  33.0k|				copy.append((const char*)spanEnd, uniLen);
 1010|  33.0k|				spanEnd += uniLen - 1;	// ! The loop increment will put back the +1.
 1011|       |
 1012|  33.0k|			} 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|  99.1k|		} else if ( (*spanEnd < 0x20) || (*spanEnd == 0x7F) ) {
  ------------------
  |  Branch (1026:15): [True: 51.2k, False: 47.9k]
  |  Branch (1026:36): [True: 6.58k, False: 41.3k]
  ------------------
 1027|       |
 1028|       |			// Replace ASCII controls other than tab, LF, and CR with a space.
 1029|       |
 1030|  57.8k|			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  100|  57.8k|#define kTab ((char)0x09)
  ------------------
              			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  101|  54.4k|#define kLF ((char)0x0A)
  ------------------
              			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  102|  12.4k|#define kCR ((char)0x0D)
  ------------------
  |  Branch (1030:9): [True: 3.32k, False: 54.4k]
  |  Branch (1030:31): [True: 42.0k, False: 12.4k]
  |  Branch (1030:52): [True: 5.83k, False: 6.58k]
  ------------------
 1031|  51.2k|				copy.push_back(*spanEnd);
 1032|  51.2k|				continue;
 1033|  51.2k|			}
 1034|       |
 1035|  6.58k|			copy.push_back(' ');
 1036|       |		
 1037|  41.3k|		} else {
 1038|       |		
 1039|       |			// See if this is a numeric escape sequence for a prohibited ASCII control.
 1040|       |			
 1041|  41.3k|			XMP_Assert ( *spanEnd == '&' );
  ------------------
  |  |  142|  41.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1042|  41.3k|			int escLen = CountControlEscape ( spanEnd, bufEnd );
 1043|       |			
 1044|  41.3k|			if ( escLen < 0 ) {
  ------------------
  |  Branch (1044:9): [True: 6, False: 41.3k]
  ------------------
 1045|       |
 1046|       |				// Have a partial numeric escape in this buffer, wait for more input.
 1047|      6|				if ( last ) {
  ------------------
  |  Branch (1047:10): [True: 6, False: 0]
  ------------------
 1048|      6|					copy.push_back('&');
 1049|      6|					continue;	// No more buffers, not an escape, absorb as normal input.
 1050|      6|				}
 1051|      0|				xmlParser->ParseBuffer ( copy.c_str(), copy.size(), false );
 1052|      0|				return (spanEnd - buffer);
 1053|       |
 1054|  41.3k|			} else if ( escLen > 0 ) {
  ------------------
  |  Branch (1054:16): [True: 1.43k, False: 39.9k]
  ------------------
 1055|       |
 1056|       |				// Have a complete numeric escape to replace.
 1057|  1.43k|				copy.push_back(' ');
 1058|  1.43k|				spanEnd = spanEnd + escLen - 1;	// ! The loop continuation will increment spanEnd!
 1059|       |
 1060|  39.9k|			} else {
 1061|  39.9k|				copy.push_back('&');
 1062|  39.9k|			}
 1063|       |
 1064|  41.3k|		}
 1065|       |		
 1066|   132k|	}
 1067|       |	
 1068|  2.62k|	XMP_Assert ( spanEnd == bufEnd );
  ------------------
  |  |  142|  2.62k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1069|  2.62k|	copy.push_back(' ');
 1070|  2.62k|	xmlParser->ParseBuffer ( copy.c_str(), copy.size(), true );
 1071|  2.62k|	return length;
 1072|       |
 1073|  2.62k|}	// ProcessUTF8Portion
XMPMeta-Parse.cpp:_ZL9CountUTF8PKhS0_:
  867|  33.0k|{
  868|  33.0k|	XMP_Assert ( charStart < bufEnd );		// Catch this in debug builds.
  ------------------
  |  |  142|  33.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  869|  33.0k|	if ( charStart >= bufEnd ) return 0;	// Don't run-on in release builds.
  ------------------
  |  Branch (869:7): [True: 0, False: 33.0k]
  ------------------
  870|  33.0k|	if ( (*charStart & 0xC0) != 0xC0 ) return 0;	// Must have at least 2 high bits set.
  ------------------
  |  Branch (870:7): [True: 0, False: 33.0k]
  ------------------
  871|       |	
  872|  33.0k|	int byteCount = 2;
  873|  33.0k|	XMP_Uns8 firstByte = *charStart;
  874|  36.2k|	for ( firstByte = firstByte << 2; (firstByte & 0x80) != 0; firstByte = firstByte << 1 ) ++byteCount;
  ------------------
  |  Branch (874:36): [True: 3.13k, False: 33.0k]
  ------------------
  875|       |	
  876|  33.0k|	if ( (charStart + byteCount) > bufEnd ) return -byteCount;
  ------------------
  |  Branch (876:7): [True: 0, False: 33.0k]
  ------------------
  877|       |
  878|  69.2k|	for ( int i = 1; i < byteCount; ++i ) {
  ------------------
  |  Branch (878:19): [True: 36.2k, False: 33.0k]
  ------------------
  879|  36.2k|		if ( (charStart[i] & 0xC0) != 0x80 ) return 0;
  ------------------
  |  Branch (879:8): [True: 0, False: 36.2k]
  ------------------
  880|  36.2k|	}
  881|       |	
  882|  33.0k|	return byteCount;
  883|       |	
  884|  33.0k|}	// CountUTF8
XMPMeta-Parse.cpp:_ZL18CountControlEscapePKhS0_:
  897|  41.3k|{
  898|  41.3k|	XMP_Assert ( escStart < bufEnd );	// Catch this in debug builds.
  ------------------
  |  |  142|  41.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  899|  41.3k|	if ( escStart >= bufEnd ) return 0;	// Don't run-on in release builds.
  ------------------
  |  Branch (899:7): [True: 0, False: 41.3k]
  ------------------
  900|  41.3k|	XMP_Assert ( *escStart == '&' );
  ------------------
  |  |  142|  41.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  901|       |	
  902|  41.3k|	size_t tailLen = bufEnd - escStart;
  903|  41.3k|	if ( tailLen < 5 ) return -1;	// Don't need a more thorough check, we'll catch it on the next pass.
  ------------------
  |  Branch (903:7): [True: 6, False: 41.3k]
  ------------------
  904|       |	
  905|  41.3k|	if ( strncmp ( (char*)escStart, "&#x", 3 ) != 0 ) return 0;
  ------------------
  |  Branch (905:7): [True: 28.2k, False: 13.1k]
  ------------------
  906|       |	
  907|  13.1k|	XMP_Uns8 escValue = 0;
  908|  13.1k|	const XMP_Uns8 * escPos = escStart + 3;
  909|       |	
  910|  13.1k|	if ( ('0' <= *escPos) && (*escPos <= '9') ) {
  ------------------
  |  Branch (910:7): [True: 11.5k, False: 1.61k]
  |  Branch (910:27): [True: 1.14k, False: 10.3k]
  ------------------
  911|  1.14k|		escValue = *escPos - '0';
  912|  1.14k|		++escPos;
  913|  12.0k|	} else if ( ('A' <= *escPos) && (*escPos <= 'F') ) {
  ------------------
  |  Branch (913:14): [True: 9.45k, False: 2.54k]
  |  Branch (913:34): [True: 5.52k, False: 3.92k]
  ------------------
  914|  5.52k|		escValue = *escPos - 'A' + 10;
  915|  5.52k|		++escPos;
  916|  6.47k|	} else if ( ('a' <= *escPos) && (*escPos <= 'f') ) {
  ------------------
  |  Branch (916:14): [True: 2.80k, False: 3.67k]
  |  Branch (916:34): [True: 2.42k, False: 381]
  ------------------
  917|  2.42k|		escValue = *escPos - 'a' + 10;
  918|  2.42k|		++escPos;
  919|  2.42k|	}
  920|       |	
  921|  13.1k|	if ( ('0' <= *escPos) && (*escPos <= '9') ) {
  ------------------
  |  Branch (921:7): [True: 10.6k, False: 2.44k]
  |  Branch (921:27): [True: 733, False: 9.95k]
  ------------------
  922|    733|		escValue = (escValue << 4) + (*escPos - '0');
  923|    733|		++escPos;
  924|  12.4k|	} else if ( ('A' <= *escPos) && (*escPos <= 'F') ) {
  ------------------
  |  Branch (924:14): [True: 7.75k, False: 4.65k]
  |  Branch (924:34): [True: 1.00k, False: 6.74k]
  ------------------
  925|  1.00k|		escValue = (escValue << 4) + (*escPos - 'A' + 10);
  926|  1.00k|		++escPos;
  927|  11.4k|	} else if ( ('a' <= *escPos) && (*escPos <= 'f') ) {
  ------------------
  |  Branch (927:14): [True: 5.22k, False: 6.17k]
  |  Branch (927:34): [True: 4.34k, False: 887]
  ------------------
  928|  4.34k|		escValue = (escValue << 4) + (*escPos - 'a' + 10);
  929|  4.34k|		++escPos;
  930|  4.34k|	}
  931|       |	
  932|  13.1k|	if ( escPos == bufEnd ) return -1;	// Partial escape.
  ------------------
  |  Branch (932:7): [True: 0, False: 13.1k]
  ------------------
  933|  13.1k|	if ( *escPos != ';' ) return 0;
  ------------------
  |  Branch (933:7): [True: 10.0k, False: 3.12k]
  ------------------
  934|       |	
  935|  3.12k|	size_t escLen = escPos - escStart + 1;
  936|  3.12k|	if ( escLen < 5 ) return 0;	// ! Catch "&#x;".
  ------------------
  |  Branch (936:7): [True: 393, False: 2.73k]
  ------------------
  937|       |	
  938|  2.73k|	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  100|  2.73k|#define kTab ((char)0x09)
  ------------------
              	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  101|  2.42k|#define kLF ((char)0x0A)
  ------------------
              	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  102|  1.94k|#define kCR ((char)0x0D)
  ------------------
  |  Branch (938:7): [True: 312, False: 2.42k]
  |  Branch (938:29): [True: 483, False: 1.94k]
  |  Branch (938:50): [True: 506, False: 1.43k]
  ------------------
  939|       |	
  940|  1.43k|	return escLen;	// Found a full "prohibited" numeric escape.
  941|       |	
  942|  2.73k|}	// CountControlEscape
XMPMeta-Parse.cpp:_ZL12FindRootNodeP7XMPMetaRK16XMLParserAdapterj:
  151|  2.61k|{
  152|  2.61k|	const XML_Node * rootNode = xmlParser.rootNode;
  153|       |	
  154|  2.61k|	if ( xmlParser.rootCount > 1 ) rootNode = PickBestRoot ( xmlParser.tree, options );
  ------------------
  |  Branch (154:7): [True: 67, False: 2.54k]
  ------------------
  155|  2.61k|	if ( rootNode == 0 ) return 0;
  ------------------
  |  Branch (155:7): [True: 244, False: 2.36k]
  ------------------
  156|       |	
  157|       |	// We have a root node. Try to extract previous toolkit version number.
  158|       |	
  159|  2.36k|	XMP_StringPtr verStr = "";
  160|       |	
  161|  2.36k|		XMP_Assert ( rootNode->name == "rdf:RDF" );
  ------------------
  |  |  142|  2.36k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  162|       |	
  163|  2.36k|		if ( (options & kXMP_RequireXMPMeta) &&
  ------------------
  |  Branch (163:8): [True: 0, False: 2.36k]
  ------------------
  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.73k|		for ( size_t attrNum = 0, attrLim = rootNode->parent->attrs.size(); attrNum < attrLim; ++attrNum ) {
  ------------------
  |  Branch (167:71): [True: 559, False: 2.17k]
  ------------------
  168|    559|			const XML_Node * currAttr =rootNode->parent->attrs[attrNum];
  169|    559|			if ( (currAttr->name == "x:xmptk") || (currAttr->name == "x:xaptk") ) {
  ------------------
  |  Branch (169:9): [True: 176, False: 383]
  |  Branch (169:42): [True: 12, False: 371]
  ------------------
  170|    188|				verStr = currAttr->value.c_str();
  171|    188|				break;
  172|    188|			}
  173|    559|		}
  174|       |		
  175|       |	// Decode the version number into MMmmuubbb digits. If any part is too big, peg it at 99 or 999.
  176|       |	
  177|  2.36k|	unsigned long part;
  178|  3.92k|	while ( (*verStr != 0) && ((*verStr < '0') || (*verStr > '9')) ) ++verStr;
  ------------------
  |  Branch (178:10): [True: 1.69k, False: 2.22k]
  |  Branch (178:29): [True: 432, False: 1.26k]
  |  Branch (178:48): [True: 1.12k, False: 139]
  ------------------
  179|       |	
  180|  2.36k|	part = 0;
  181|  2.91k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (181:10): [True: 679, False: 2.23k]
  |  Branch (181:28): [True: 581, False: 98]
  |  Branch (181:48): [True: 546, False: 35]
  ------------------
  182|    546|		part = (part * 10) + (*verStr - '0');
  183|    546|		++verStr;
  184|    546|	}
  185|  2.36k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (185:7): [True: 37, False: 2.32k]
  ------------------
  186|  2.36k|	thiz->prevTkVer = part * 100*100*1000;
  187|       |	
  188|  2.36k|	part = 0;
  189|  2.36k|	if ( *verStr == '.' ) ++verStr;
  ------------------
  |  Branch (189:7): [True: 67, False: 2.29k]
  ------------------
  190|  2.73k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (190:10): [True: 494, False: 2.23k]
  |  Branch (190:28): [True: 403, False: 91]
  |  Branch (190:48): [True: 365, False: 38]
  ------------------
  191|    365|		part = (part * 10) + (*verStr - '0');
  192|    365|		++verStr;
  193|    365|	}
  194|  2.36k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (194:7): [True: 18, False: 2.34k]
  ------------------
  195|  2.36k|	thiz->prevTkVer += part * 100*1000;
  196|       |	
  197|  2.36k|	part = 0;
  198|  2.36k|	if ( *verStr == '.' ) ++verStr;
  ------------------
  |  Branch (198:7): [True: 40, False: 2.32k]
  ------------------
  199|  2.47k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (199:10): [True: 240, False: 2.23k]
  |  Branch (199:28): [True: 155, False: 85]
  |  Branch (199:48): [True: 112, False: 43]
  ------------------
  200|    112|		part = (part * 10) + (*verStr - '0');
  201|    112|		++verStr;
  202|    112|	}
  203|  2.36k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (203:7): [True: 5, False: 2.36k]
  ------------------
  204|  2.36k|	thiz->prevTkVer += part * 1000;
  205|       |	
  206|  2.36k|	part = 0;
  207|  2.36k|	if ( *verStr == '-' ) ++verStr;
  ------------------
  |  Branch (207:7): [True: 53, False: 2.31k]
  ------------------
  208|  2.69k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (208:10): [True: 426, False: 2.26k]
  |  Branch (208:28): [True: 392, False: 34]
  |  Branch (208:48): [True: 327, False: 65]
  ------------------
  209|    327|		part = (part * 10) + (*verStr - '0');
  210|    327|		++verStr;
  211|    327|	}
  212|  2.36k|	if ( part > 999 ) part = 999;
  ------------------
  |  Branch (212:7): [True: 8, False: 2.35k]
  ------------------
  213|  2.36k|	thiz->prevTkVer += part;
  214|       |	
  215|  2.36k|	return rootNode;
  216|       |	
  217|  2.36k|}	// FindRootNode
XMPMeta-Parse.cpp:_ZL12PickBestRootRK8XML_Nodej:
  111|  1.84k|{
  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|  14.8k|	for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (115:66): [True: 13.1k, False: 1.73k]
  ------------------
  116|  13.1k|		const XML_Node * childNode = xmlParent.content[childNum];
  117|  13.1k|		if ( childNode->kind != kElemNode ) continue;
  ------------------
  |  Branch (117:8): [True: 12.1k, False: 1.00k]
  ------------------
  118|  1.00k|		if ( (childNode->name == "x:xmpmeta") || (childNode->name == "x:xapmeta") ) return PickBestRoot ( *childNode, 0 );
  ------------------
  |  Branch (118:8): [True: 108, False: 899]
  |  Branch (118:44): [True: 0, False: 899]
  ------------------
  119|  1.00k|	}
  120|       |	// Look among this parent's content for a bare rdf:RDF if that is allowed.
  121|  1.73k|	if ( ! (options & kXMP_RequireXMPMeta) ) {
  ------------------
  |  Branch (121:7): [True: 1.73k, False: 0]
  ------------------
  122|  14.5k|		for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (122:67): [True: 12.8k, False: 1.67k]
  ------------------
  123|  12.8k|			const XML_Node * childNode = xmlParent.content[childNum];
  124|  12.8k|			if ( childNode->kind != kElemNode ) continue;
  ------------------
  |  Branch (124:9): [True: 11.9k, False: 892]
  ------------------
  125|    892|			if ( childNode->name == "rdf:RDF" ) return childNode;
  ------------------
  |  Branch (125:9): [True: 57, False: 835]
  ------------------
  126|    892|		}
  127|  1.73k|	}
  128|       |	
  129|       |	// Recurse into the content.
  130|  3.34k|	for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (130:66): [True: 1.66k, False: 1.67k]
  ------------------
  131|  1.66k|		const XML_Node * foundRoot = PickBestRoot ( *xmlParent.content[childNum], options );
  132|  1.66k|		if ( foundRoot != 0 ) return foundRoot;
  ------------------
  |  Branch (132:8): [True: 0, False: 1.66k]
  ------------------
  133|  1.66k|	}
  134|       |	
  135|  1.67k|	return 0;
  136|       |
  137|  1.67k|}	// PickBestRoot
XMPMeta-Parse.cpp:_ZL17NormalizeDCArraysP8XMP_Node:
  231|  1.65k|{
  232|  1.65k|	XMP_Node * dcSchema = FindSchemaNode ( xmpTree, kXMP_NS_DC, kXMP_ExistingOnly );
  ------------------
  |  |  296|  1.65k|#define kXMP_ExistingOnly	false
  ------------------
  233|  1.65k|	if ( dcSchema == 0 ) return;
  ------------------
  |  Branch (233:7): [True: 1.51k, False: 141]
  ------------------
  234|       |	
  235|    464|	for ( size_t propNum = 0, propLimit = dcSchema->children.size(); propNum < propLimit; ++propNum ) {
  ------------------
  |  Branch (235:67): [True: 323, False: 141]
  ------------------
  236|    323|		XMP_Node *     currProp  = dcSchema->children[propNum];
  237|    323|		XMP_OptionBits arrayForm = 0;
  238|       |		
  239|    323|		if ( ! XMP_PropIsSimple ( currProp->options ) ) continue;	// Nothing to do if not simple.
  ------------------
  |  Branch (239:8): [True: 93, False: 230]
  ------------------
  240|       |		
  241|    230|		if ( (currProp->name == "dc:creator" )     ||	// See if it is supposed to be an array.
  ------------------
  |  Branch (241:8): [True: 25, False: 205]
  ------------------
  242|    205|		     (currProp->name == "dc:date" ) ) {			// *** Think about an array of char* and a loop.
  ------------------
  |  Branch (242:8): [True: 0, False: 205]
  ------------------
  243|     25|			arrayForm = kXMP_PropArrayIsOrdered;
  244|    205|		} else if (
  245|    205|		     (currProp->name == "dc:description" ) ||
  ------------------
  |  Branch (245:8): [True: 10, False: 195]
  ------------------
  246|    195|		     (currProp->name == "dc:rights" )      ||
  ------------------
  |  Branch (246:8): [True: 0, False: 195]
  ------------------
  247|    195|		     (currProp->name == "dc:title" ) ) {
  ------------------
  |  Branch (247:8): [True: 0, False: 195]
  ------------------
  248|     10|			arrayForm = kXMP_PropArrayIsAltText;
  249|    195|		} else if (
  250|    195|		     (currProp->name == "dc:contributor" ) ||
  ------------------
  |  Branch (250:8): [True: 0, False: 195]
  ------------------
  251|    195|		     (currProp->name == "dc:language" )    ||
  ------------------
  |  Branch (251:8): [True: 4, False: 191]
  ------------------
  252|    191|		     (currProp->name == "dc:publisher" )   ||
  ------------------
  |  Branch (252:8): [True: 5, False: 186]
  ------------------
  253|    186|		     (currProp->name == "dc:relation" )    ||
  ------------------
  |  Branch (253:8): [True: 8, False: 178]
  ------------------
  254|    178|		     (currProp->name == "dc:subject" )     ||
  ------------------
  |  Branch (254:8): [True: 0, False: 178]
  ------------------
  255|    178|		     (currProp->name == "dc:type" ) ) {
  ------------------
  |  Branch (255:8): [True: 4, False: 174]
  ------------------
  256|     21|			arrayForm = kXMP_PropValueIsArray;
  257|     21|		}
  258|    230|		if ( arrayForm == 0 ) continue;	// Nothing to do if it isn't supposed to be an array.
  ------------------
  |  Branch (258:8): [True: 174, False: 56]
  ------------------
  259|       |		
  260|     56|		arrayForm = VerifySetOptions ( arrayForm, 0 );	// Set the implicit array bits.
  261|     56|		XMP_Node * newArray = new XMP_Node ( dcSchema, currProp->name.c_str(), arrayForm );
  262|     56|		dcSchema->children[propNum] = newArray;
  263|     56|		newArray->children.push_back ( currProp );
  264|     56|		currProp->parent = newArray;
  265|     56|		currProp->name = kXMP_ArrayItemName;
  ------------------
  |  |  293|     56|#define kXMP_ArrayItemName	"[]"
  ------------------
  266|       |		
  267|     56|		if ( XMP_ArrayIsAltText ( arrayForm ) && (! (currProp->options & kXMP_PropHasLang)) ) {
  ------------------
  |  Branch (267:8): [True: 10, False: 46]
  |  Branch (267:44): [True: 10, False: 0]
  ------------------
  268|     10|			XMP_Node * newLang = new XMP_Node ( currProp, "xml:lang", "x-default", kXMP_PropIsQualifier );
  269|     10|			currProp->options |= (kXMP_PropHasQualifiers | kXMP_PropHasLang);
  270|     10|			if ( currProp->qualifiers.empty() ) {	// *** Need a util?
  ------------------
  |  Branch (270:9): [True: 10, False: 0]
  ------------------
  271|     10|				currProp->qualifiers.push_back ( newLang );
  272|     10|			} else {
  273|      0|				currProp->qualifiers.insert ( currProp->qualifiers.begin(), newLang );
  274|      0|			}
  275|     10|		}
  276|       |
  277|     56|	}
  278|       |	
  279|    141|}	// NormalizeDCArrays
XMPMeta-Parse.cpp:_ZL16TouchUpDataModelP7XMPMeta:
  665|  1.65k|{
  666|  1.65k|	XMP_Node & tree = xmp->tree;
  667|       |	
  668|       |	// Do special case touch ups for certain schema.
  669|       |
  670|  1.65k|	XMP_Node * currSchema = 0;
  671|       |
  672|  1.65k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_EXIF, kXMP_ExistingOnly );
  ------------------
  |  |  296|  1.65k|#define kXMP_ExistingOnly	false
  ------------------
  673|  1.65k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (673:7): [True: 27, False: 1.63k]
  ------------------
  674|       |
  675|       |		// Do a special case fix for exif:GPSTimeStamp.
  676|     27|		XMP_Node * gpsDateTime = FindChildNode ( currSchema, "exif:GPSTimeStamp", kXMP_ExistingOnly );
  ------------------
  |  |  296|     27|#define kXMP_ExistingOnly	false
  ------------------
  677|     27|		if ( gpsDateTime != 0 ) FixGPSTimeStamp ( currSchema, gpsDateTime );
  ------------------
  |  Branch (677:8): [True: 0, False: 27]
  ------------------
  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|     27|		XMP_Node * userComment = FindChildNode ( currSchema, "exif:UserComment", kXMP_ExistingOnly );
  ------------------
  |  |  296|     27|#define kXMP_ExistingOnly	false
  ------------------
  682|     27|		if ( (userComment != 0) && XMP_PropIsSimple ( userComment->options ) ) {
  ------------------
  |  Branch (682:8): [True: 0, False: 27]
  |  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|     27|	}
  697|       |
  698|  1.65k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_DM, kXMP_ExistingOnly );
  ------------------
  |  |  296|  1.65k|#define kXMP_ExistingOnly	false
  ------------------
  699|  1.65k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (699:7): [True: 0, False: 1.65k]
  ------------------
  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.65k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_DC, kXMP_ExistingOnly );
  ------------------
  |  |  296|  1.65k|#define kXMP_ExistingOnly	false
  ------------------
  707|  1.65k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (707:7): [True: 141, False: 1.51k]
  ------------------
  708|       |		// Do a special case fix for dc:subject, make sure it is an unordered array.
  709|    141|		XMP_Node * dcSubject = FindChildNode ( currSchema, "dc:subject", kXMP_ExistingOnly );
  ------------------
  |  |  296|    141|#define kXMP_ExistingOnly	false
  ------------------
  710|    141|		if ( dcSubject != 0 ) {
  ------------------
  |  Branch (710:8): [True: 26, False: 115]
  ------------------
  711|     26|                        XMP_OptionBits keepMask = static_cast<XMP_OptionBits>(~(kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate | kXMP_PropArrayIsAltText));
  712|     26|			dcSubject->options &= keepMask;	// Make sure any ordered array bits are clear.
  713|     26|		}
  714|    141|	}
  715|       |	
  716|       |	// Fix any broken AltText arrays that we know about.
  717|       |	
  718|  1.65k|	RepairAltText ( tree, kXMP_NS_DC, "dc:description" );	// ! Note inclusion of prefixes for direct node lookup!
  719|  1.65k|	RepairAltText ( tree, kXMP_NS_DC, "dc:rights" );
  720|  1.65k|	RepairAltText ( tree, kXMP_NS_DC, "dc:title" );
  721|  1.65k|	RepairAltText ( tree, kXMP_NS_XMP_Rights, "xmpRights:UsageTerms" );
  722|  1.65k|	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.65k|	if ( ! tree.name.empty() ) {
  ------------------
  |  Branch (731:7): [True: 423, False: 1.23k]
  ------------------
  732|       |
  733|    423|		bool nameIsUUID = false;
  734|    423|		XMP_StringPtr nameStr = tree.name.c_str();
  735|       |
  736|    423|		if ( XMP_LitNMatch ( nameStr, "uuid:", 5 ) ) {
  ------------------
  |  |   97|    423|#define XMP_LitNMatch(s,l,n)	(std::strncmp((s),(l),(n)) == 0)
  |  |  ------------------
  |  |  |  Branch (97:30): [True: 39, False: 384]
  |  |  ------------------
  ------------------
  737|       |
  738|     39|			nameIsUUID = true;
  739|       |
  740|    384|		} else if ( tree.name.size() == 36 ) {
  ------------------
  |  Branch (740:15): [True: 143, False: 241]
  ------------------
  741|       |
  742|    143|			nameIsUUID = true;	// ! Assume true, we'll set it to false below if not.
  743|  2.57k|			for ( int i = 0;  i < 36; ++i ) {
  ------------------
  |  Branch (743:22): [True: 2.53k, False: 40]
  ------------------
  744|  2.53k|				char ch = nameStr[i];
  745|  2.53k|				if ( ch == '-' ) {
  ------------------
  |  Branch (745:10): [True: 63, False: 2.46k]
  ------------------
  746|     63|					if ( (i == 8) || (i == 13) || (i == 18) || (i == 23) ) continue;
  ------------------
  |  Branch (746:11): [True: 8, False: 55]
  |  Branch (746:23): [True: 3, False: 52]
  |  Branch (746:36): [True: 12, False: 40]
  |  Branch (746:49): [True: 12, False: 28]
  ------------------
  747|     28|					nameIsUUID = false;
  748|     28|					break;
  749|  2.46k|				} else {
  750|  2.46k|					if ( (('0' <= ch) && (ch <= '9')) || (('a' <= ch) && (ch <= 'z')) ) continue;
  ------------------
  |  Branch (750:12): [True: 2.45k, False: 14]
  |  Branch (750:27): [True: 802, False: 1.65k]
  |  Branch (750:44): [True: 1.61k, False: 53]
  |  Branch (750:59): [True: 1.59k, False: 22]
  ------------------
  751|     75|					nameIsUUID = false;
  752|     75|					break;
  753|  2.46k|				}
  754|  2.53k|			}
  755|       |
  756|    143|		}
  757|       |		
  758|    423|		if ( nameIsUUID ) {
  ------------------
  |  Branch (758:8): [True: 79, False: 344]
  ------------------
  759|       |
  760|     79|			XMP_ExpandedXPath expPath;
  761|     79|			ExpandXPath ( kXMP_NS_XMP_MM, "InstanceID", &expPath );
  762|     79|			XMP_Node * idNode = FindNode ( &tree, expPath, kXMP_CreateNodes, 0 );
  ------------------
  |  |  295|     79|#define kXMP_CreateNodes	true
  ------------------
  763|     79|			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: 79]
  ------------------
  764|       |
  765|     79|			idNode->options = 0;	// Clobber any existing xmpMM:InstanceID.
  766|     79|			idNode->value = tree.name;
  767|     79|			idNode->RemoveChildren();
  768|     79|			idNode->RemoveQualifiers();
  769|       |
  770|     79|			tree.name.erase();
  771|       |
  772|     79|		}
  773|       |
  774|    423|	}
  775|       |
  776|  1.65k|}	// TouchUpDataModel
XMPMeta-Parse.cpp:_ZL13RepairAltTextR8XMP_NodePKcS2_:
  609|  8.29k|{
  610|  8.29k|	XMP_Node * schemaNode = FindSchemaNode ( &tree, schemaNS, kXMP_ExistingOnly );
  ------------------
  |  |  296|  8.29k|#define kXMP_ExistingOnly	false
  ------------------
  611|  8.29k|	if ( schemaNode == 0 ) return;
  ------------------
  |  Branch (611:7): [True: 7.82k, False: 464]
  ------------------
  612|       |	
  613|    464|	XMP_Node * arrayNode = FindChildNode ( schemaNode, arrayName, kXMP_ExistingOnly );
  ------------------
  |  |  296|    464|#define kXMP_ExistingOnly	false
  ------------------
  614|    464|	if ( (arrayNode == 0) || XMP_ArrayIsAltText ( arrayNode->options ) ) return;	// Already OK.
  ------------------
  |  Branch (614:7): [True: 374, False: 90]
  |  Branch (614:27): [True: 45, False: 45]
  ------------------
  615|       |	
  616|     45|	if ( ! XMP_PropIsArray ( arrayNode->options ) ) return;	// ! Not even an array, leave it alone.
  ------------------
  |  Branch (616:7): [True: 0, False: 45]
  ------------------
  617|       |	// *** Should probably change simple values to LangAlt with 'x-default' item.
  618|       |	
  619|     45|	arrayNode->options |= (kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate | kXMP_PropArrayIsAltText);
  620|       |	
  621|    100|	for ( int i = arrayNode->children.size()-1; i >= 0; --i ) {	// ! Need a signed index type.
  ------------------
  |  Branch (621:46): [True: 55, False: 45]
  ------------------
  622|       |
  623|     55|		XMP_Node * currChild = arrayNode->children[i];
  624|       |
  625|     55|		if ( ! XMP_PropIsSimple ( currChild->options ) ) {
  ------------------
  |  Branch (625:8): [True: 14, False: 41]
  ------------------
  626|       |
  627|       |			// Delete non-simple children.
  628|     14|			delete ( currChild );
  629|     14|			arrayNode->children.erase ( arrayNode->children.begin() + i );
  630|       |
  631|     41|		} else if ( ! XMP_PropHasLang ( currChild->options ) ) {
  ------------------
  |  Branch (631:15): [True: 31, False: 10]
  ------------------
  632|       |		
  633|     31|			if ( currChild->value.empty() ) {
  ------------------
  |  Branch (633:9): [True: 0, False: 31]
  ------------------
  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|     31|			} else {
  640|       |
  641|       |				// Add an xml:lang qualifier with the value "x-repair".
  642|     31|				XMP_Node * repairLang = new XMP_Node ( currChild, "xml:lang", "x-repair", kXMP_PropIsQualifier );
  643|     31|				if ( currChild->qualifiers.empty() ) {
  ------------------
  |  Branch (643:10): [True: 31, False: 0]
  ------------------
  644|     31|					currChild->qualifiers.push_back ( repairLang );
  645|     31|				} else {
  646|      0|					currChild->qualifiers.insert ( currChild->qualifiers.begin(), repairLang );
  647|      0|				}
  648|     31|				currChild->options |= (kXMP_PropHasQualifiers | kXMP_PropHasLang);
  649|       |
  650|     31|			}
  651|       |
  652|     31|		}
  653|       |
  654|     55|	}
  655|       |
  656|     45|}	// RepairAltText

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

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

_ZN8XMPUtils10InitializeEv:
  640|      1|{
  641|      1|	sComposedPath	= new XMP_VarString();
  642|      1|	sConvertedValue = new XMP_VarString();
  643|      1|	sBase64Str		= new XMP_VarString();
  644|      1|	sCatenatedItems = new XMP_VarString();
  645|      1|	sStandardXMP    = new XMP_VarString();
  646|      1|	sExtendedXMP    = new XMP_VarString();
  647|      1|	sExtendedDigest = new XMP_VarString();
  648|       |
  649|       |	#if XMP_MacBuild && __MWERKS__
  650|       |		LookupTimeProcs();
  651|       |	#endif
  652|       |
  653|      1|	return true;
  654|       |
  655|      1|}	// Initialize
_ZN8XMPUtils9TerminateEv:
  666|      1|{
  667|      1|	EliminateGlobal ( sComposedPath );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  668|      1|	EliminateGlobal ( sConvertedValue );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  669|      1|	EliminateGlobal ( sBase64Str );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  670|      1|	EliminateGlobal ( sCatenatedItems );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  671|      1|	EliminateGlobal ( sStandardXMP );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  672|      1|	EliminateGlobal ( sExtendedXMP );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  673|      1|	EliminateGlobal ( sExtendedDigest );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  674|       |
  675|      1|	return;
  676|       |
  677|      1|}	// Terminate
_ZN8XMPUtils20ComposeQualifierPathEPKcS1_S1_S1_PS1_Pj:
  790|     64|{
  791|     64|	XMP_Assert ( (schemaNS != 0) && (qualNS != 0) );		// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  792|     64|	XMP_Assert ( (*propName != 0) && (*qualName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  793|     64|	XMP_Assert ( (fullPath != 0) && (pathSize != 0) );		// Enforced by wrapper.
  ------------------
  |  |  142|     64|	#define XMP_Assert(c)	((void) 0)
  ------------------
  794|       |
  795|     64|	XMP_ExpandedXPath expPath;	// Just for side effects to check namespace and basic path.
  796|     64|	ExpandXPath ( schemaNS, propName, &expPath );
  797|       |
  798|     64|	XMP_ExpandedXPath qualPath;
  799|     64|	ExpandXPath ( qualNS, qualName, &qualPath );
  800|     64|	if ( qualPath.size() != 2 ) XMP_Throw ( "The qualifier name must be simple", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (800:7): [True: 0, False: 64]
  ------------------
  801|       |
  802|     64|	XMP_StringLen reserveLen = strlen(propName) + qualPath[kRootPropStep].step.size() + 2;
  803|       |
  804|     64|	sComposedPath->erase();
  805|     64|	sComposedPath->reserve ( reserveLen );
  806|     64|	*sComposedPath = propName;
  807|     64|	*sComposedPath += "/?";
  808|     64|	*sComposedPath += qualPath[kRootPropStep].step;
  809|       |
  810|     64|	*fullPath = sComposedPath->c_str();
  811|     64|	*pathSize = sComposedPath->size();
  812|       |
  813|     64|}	// ComposeQualifierPath
_ZN8XMPUtils13ConvertToDateEPKcP12XMP_DateTime:
 1293|    154|{
 1294|    154|	if ( (strValue == 0) || (*strValue == 0) ) XMP_Throw ( "Empty convert-from string", kXMPErr_BadValue);
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1294:7): [True: 0, False: 154]
  |  Branch (1294:26): [True: 1, False: 153]
  ------------------
 1295|       |
 1296|    153|	size_t	 pos = 0;
 1297|    153|	XMP_Int32 temp;
 1298|       |
 1299|    153|	XMP_Assert ( sizeof(*binValue) == sizeof(XMP_DateTime) );
  ------------------
  |  |  142|    153|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1300|    153|	(void) memset ( binValue, 0, sizeof(*binValue) );	// AUDIT: Safe, using sizeof destination.
 1301|       |
 1302|    153|	bool timeOnly = ( (strValue[0] == 'T') ||
  ------------------
  |  Branch (1302:20): [True: 66, False: 87]
  ------------------
 1303|     87|					  ((strlen(strValue) >= 2) && (strValue[1] == ':')) ||
  ------------------
  |  Branch (1303:9): [True: 86, False: 1]
  |  Branch (1303:36): [True: 16, False: 70]
  ------------------
 1304|     71|					  ((strlen(strValue) >= 3) && (strValue[2] == ':')) );
  ------------------
  |  Branch (1304:9): [True: 68, False: 3]
  |  Branch (1304:36): [True: 1, False: 67]
  ------------------
 1305|       |
 1306|    153|	if ( ! timeOnly ) {
  ------------------
  |  Branch (1306:7): [True: 70, False: 83]
  ------------------
 1307|       |
 1308|     70|		if ( strValue[0] == '-' ) pos = 1;
  ------------------
  |  Branch (1308:8): [True: 41, False: 29]
  ------------------
 1309|       |
 1310|     70|		temp = GatherInt ( strValue, &pos, "Invalid year in date string" ); // Extract the year.
 1311|     70|		if ( (strValue[pos] != 0) && (strValue[pos] != '-') ) XMP_Throw ( "Invalid date string, after year", kXMPErr_BadParam );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1311:8): [True: 48, False: 22]
  |  Branch (1311:32): [True: 3, False: 45]
  ------------------
 1312|     67|		if ( strValue[0] == '-' ) temp = -temp;
  ------------------
  |  Branch (1312:8): [True: 35, False: 32]
  ------------------
 1313|     67|		binValue->year = temp;
 1314|     67|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1314:8): [True: 13, False: 54]
  ------------------
 1315|       |
 1316|     54|		++pos;
 1317|     54|		temp = GatherInt ( strValue, &pos, "Invalid month in date string" );	// Extract the month.
 1318|     54|		if ( (temp < 1) || (temp > 12) ) XMP_Throw ( "Month is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      6|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1318:8): [True: 16, False: 38]
  |  Branch (1318:22): [True: 5, False: 33]
  ------------------
 1319|     48|		if ( (strValue[pos] != 0) && (strValue[pos] != '-') ) XMP_Throw ( "Invalid date string, after month", kXMPErr_BadParam );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1319:8): [True: 19, False: 29]
  |  Branch (1319:32): [True: 1, False: 18]
  ------------------
 1320|     47|		binValue->month = temp;
 1321|     47|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1321:8): [True: 14, False: 33]
  ------------------
 1322|       |
 1323|     33|		++pos;
 1324|     33|		temp = GatherInt ( strValue, &pos, "Invalid day in date string" );	// Extract the day.
 1325|     33|		if ( (temp < 1) || (temp > 31) ) XMP_Throw ( "Day is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      7|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1325:8): [True: 22, False: 11]
  |  Branch (1325:22): [True: 4, False: 7]
  ------------------
 1326|     26|		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: 24]
  |  Branch (1326:32): [True: 1, False: 1]
  ------------------
 1327|     25|		binValue->day = temp;
 1328|     25|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1328:8): [True: 5, False: 20]
  ------------------
 1329|       |
 1330|       |		// Allow year, month, and day to all be zero; implies the date portion is missing.
 1331|     20|		if ( (binValue->year != 0) || (binValue->month != 0) || (binValue->day != 0) ) {
  ------------------
  |  Branch (1331:8): [True: 20, 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|     20|	}
 1342|       |
 1343|    103|	if ( strValue[pos] == 'T' ) {
  ------------------
  |  Branch (1343:7): [True: 67, False: 36]
  ------------------
 1344|     67|		++pos;
 1345|     67|	} else if ( ! timeOnly ) {
  ------------------
  |  Branch (1345:14): [True: 0, False: 36]
  ------------------
 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|    103|	temp = GatherInt ( strValue, &pos, "Invalid hour in date string" ); // Extract the hour.
 1350|    103|	if ( strValue[pos] != ':' ) XMP_Throw ( "Invalid date string, after hour", kXMPErr_BadParam );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1350:7): [True: 3, False: 100]
  ------------------
 1351|    100|	if ( temp < 0 || temp > 23 ) temp = 23;	// *** 1269463: XMP_Throw ( "Hour is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1351:7): [True: 24, False: 76]
  |  Branch (1351:19): [True: 49, False: 27]
  ------------------
 1352|    100|	binValue->hour = temp;
 1353|       |	// Don't check for done, we have to work up to the time zone.
 1354|       |
 1355|    100|	++pos;
 1356|    100|	temp = GatherInt ( strValue, &pos, "Invalid minute in date string" );	// And the minute.
 1357|    100|	if ( (strValue[pos] != ':') && (strValue[pos] != 'Z') &&
  ------------------
  |  Branch (1357:7): [True: 26, False: 74]
  |  Branch (1357:33): [True: 23, False: 3]
  ------------------
 1358|     98|		 (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: 15, False: 8]
  |  Branch (1358:30): [True: 9, False: 6]
  |  Branch (1358:56): [True: 2, False: 7]
  ------------------
 1359|     98|	if ( temp < 0 || temp > 59 ) temp = 59;	// *** 1269463: XMP_Throw ( "Minute is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1359:7): [True: 29, False: 69]
  |  Branch (1359:19): [True: 43, False: 26]
  ------------------
 1360|     98|	binValue->minute = temp;
 1361|       |	// Don't check for done, we have to work up to the time zone.
 1362|       |
 1363|     98|	if ( strValue[pos] == ':' ) {
  ------------------
  |  Branch (1363:7): [True: 45, False: 53]
  ------------------
 1364|       |
 1365|     45|		++pos;
 1366|     45|		temp = GatherInt ( strValue, &pos, "Invalid whole seconds in date string" );	// Extract the whole seconds.
 1367|     45|		if ( (strValue[pos] != '.') && (strValue[pos] != 'Z') &&
  ------------------
  |  Branch (1367:8): [True: 13, False: 32]
  |  Branch (1367:34): [True: 12, False: 1]
  ------------------
 1368|     12|			 (strValue[pos] != '+') && (strValue[pos] != '-') && (strValue[pos] != 0) ) {
  ------------------
  |  Branch (1368:5): [True: 11, False: 1]
  |  Branch (1368:31): [True: 7, False: 4]
  |  Branch (1368:57): [True: 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|     42|		if ( temp < 0 || temp > 59 ) temp = 59;	// *** 1269463: XMP_Throw ( "Whole second is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1371:8): [True: 6, False: 36]
  |  Branch (1371:20): [True: 7, False: 29]
  ------------------
 1372|     42|		binValue->second = temp;
 1373|       |		// Don't check for done, we have to work up to the time zone.
 1374|       |
 1375|     42|		if ( strValue[pos] == '.' ) {
  ------------------
  |  Branch (1375:8): [True: 26, False: 16]
  ------------------
 1376|       |
 1377|     26|			++pos;
 1378|     26|			size_t digits = pos;	// Will be the number of digits later.
 1379|       |
 1380|     26|			temp = GatherInt ( strValue, &pos, "Invalid fractional seconds in date string" );	// Extract the fractional seconds.
 1381|     26|			if ( (strValue[pos] != 'Z') && (strValue[pos] != '+') && (strValue[pos] != '-') && (strValue[pos] != 0) ) {
  ------------------
  |  Branch (1381:9): [True: 22, False: 4]
  |  Branch (1381:35): [True: 20, False: 2]
  |  Branch (1381:61): [True: 16, False: 4]
  |  Branch (1381:87): [True: 2, False: 14]
  ------------------
 1382|      2|				XMP_Throw ( "Invalid date string, after fractional second", kXMPErr_BadParam );
  ------------------
  |  |  199|      2|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1383|      0|			}
 1384|       |
 1385|     24|			digits = pos - digits;
 1386|    495|			for ( ; digits > 9; --digits ) temp = temp / 10;
  ------------------
  |  Branch (1386:12): [True: 471, False: 24]
  ------------------
 1387|     49|			for ( ; digits < 9; ++digits ) temp = temp * 10;
  ------------------
  |  Branch (1387:12): [True: 25, 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: 3, False: 21]
  |  Branch (1389:21): [True: 0, False: 21]
  ------------------
 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|     42|	}
 1396|       |
 1397|     93|	if ( strValue[pos] == 'Z' ) {
  ------------------
  |  Branch (1397:7): [True: 5, False: 88]
  ------------------
 1398|       |
 1399|      5|		++pos;
 1400|       |
 1401|     88|	} else if ( strValue[pos] != 0 ) {
  ------------------
  |  Branch (1401:14): [True: 25, False: 63]
  ------------------
 1402|       |
 1403|     25|		if ( strValue[pos] == '+' ) {
  ------------------
  |  Branch (1403:8): [True: 11, False: 14]
  ------------------
 1404|     11|			binValue->tzSign = kXMP_TimeEastOfUTC;
 1405|     14|		} else if ( strValue[pos] == '-' ) {
  ------------------
  |  Branch (1405:15): [True: 14, False: 0]
  ------------------
 1406|     14|			binValue->tzSign = kXMP_TimeWestOfUTC;
 1407|     14|		} 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|     25|		++pos;
 1412|     25|		temp = GatherInt ( strValue, &pos, "Invalid time zone hour in date string" );	// Extract the time zone hour.
 1413|     25|		if ( strValue[pos] != ':' ) XMP_Throw ( "Invalid date string, after time zone hour", kXMPErr_BadParam );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1413:8): [True: 3, False: 22]
  ------------------
 1414|     22|		if ( temp < 0 || temp > 23 ) XMP_Throw ( "Time zone hour is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      2|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1414:8): [True: 4, False: 18]
  |  Branch (1414:20): [True: 2, False: 16]
  ------------------
 1415|     20|		binValue->tzHour = temp;
 1416|       |
 1417|     20|		++pos;
 1418|     20|		temp = GatherInt ( strValue, &pos, "Invalid time zone minute in date string" ); // Extract the time zone minute.
 1419|     20|		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: 7, False: 13]
  |  Branch (1419:20): [True: 3, False: 10]
  ------------------
 1420|     17|		binValue->tzMinute = temp;
 1421|       |
 1422|     63|	} else {
 1423|       |
 1424|     63|		XMPUtils::SetTimeZone( binValue );
 1425|       |
 1426|     63|	}
 1427|       |
 1428|     85|	if ( strValue[pos] != 0 ) XMP_Throw ( "Invalid date string, extra chars at end", kXMPErr_BadParam );
  ------------------
  |  |  199|     11|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1428:7): [True: 11, False: 74]
  ------------------
 1429|       |
 1430|     74|}	// ConvertToDate
_ZN8XMPUtils11SetTimeZoneEP12XMP_DateTime:
 1946|     86|{
 1947|     86|	XMP_Assert ( xmpTime != 0 );	// ! Enforced by wrapper.
  ------------------
  |  |  142|     86|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1948|       |
 1949|     86|	if ( (xmpTime->tzSign != 0) || (xmpTime->tzHour != 0) || (xmpTime->tzMinute != 0) ) {
  ------------------
  |  Branch (1949:7): [True: 0, False: 86]
  |  Branch (1949:33): [True: 0, False: 86]
  |  Branch (1949:59): [True: 0, False: 86]
  ------------------
 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|     86|	ansi_tt ttTime;
 1956|     86|	ansi_tm tmLocal, tmUTC;
 1957|       |
 1958|     86|	if ( (xmpTime->year == 0) && (xmpTime->month == 0) && (xmpTime->day == 0) ) {
  ------------------
  |  Branch (1958:7): [True: 54, False: 32]
  |  Branch (1958:31): [True: 52, False: 2]
  |  Branch (1958:56): [True: 52, False: 0]
  ------------------
 1959|     52|		ansi_tt now = ansi_time(0);
  ------------------
  |  |   69|     52|	#define ansi_time		time
  ------------------
 1960|     52|		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: 52]
  ------------------
 1961|     52|		ansi_localtime ( &now, &tmLocal );
  ------------------
  |  |   74|     52|	#define ansi_localtime	localtime_r
  ------------------
 1962|     52|	} else {
 1963|     34|		if (xmpTime->year < std::numeric_limits<decltype(tmLocal.tm_year)>::min() + 1900) {
  ------------------
  |  Branch (1963:7): [True: 0, False: 34]
  ------------------
 1964|      0|			XMP_Throw ( "Invalid year", kXMPErr_BadParam);
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1965|     34|		} else if (xmpTime->year > std::numeric_limits<decltype(tmLocal.tm_year)>::max()) {
  ------------------
  |  Branch (1965:14): [True: 0, False: 34]
  ------------------
 1966|      0|			XMP_Throw ( "Invalid year", kXMPErr_BadParam);
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1967|     34|		} else {
 1968|     34|			tmLocal.tm_year = xmpTime->year - 1900;
 1969|     34|		}
 1970|     34|		tmLocal.tm_mon	 = xmpTime->month - 1;
 1971|     34|		tmLocal.tm_mday	 = xmpTime->day;
 1972|     34|	}
 1973|       |
 1974|     86|	tmLocal.tm_hour = xmpTime->hour;
 1975|     86|	tmLocal.tm_min = xmpTime->minute;
 1976|     86|	tmLocal.tm_sec = xmpTime->second;
 1977|     86|	tmLocal.tm_isdst = -1;	// Don't know if daylight time is in effect.
 1978|       |
 1979|     86|	ttTime = ansi_mktime ( &tmLocal );
  ------------------
  |  |   70|     86|	#define ansi_mktime		mktime
  ------------------
 1980|     86|	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: 86]
  ------------------
 1981|       |
 1982|       |	// Convert back to a localized ansi_tm time and get the corresponding UTC ansi_tm time.
 1983|       |
 1984|     86|	ansi_localtime ( &ttTime, &tmLocal );
  ------------------
  |  |   74|     86|	#define ansi_localtime	localtime_r
  ------------------
 1985|     86|	ansi_gmtime ( &ttTime, &tmUTC );
  ------------------
  |  |   73|     86|	#define ansi_gmtime		gmtime_r
  ------------------
 1986|       |
 1987|       |	// Get the offset direction and amount.
 1988|       |
 1989|     86|	ansi_tm tmx = tmLocal;	// ! Note that mktime updates the ansi_tm parameter, messing up difftime!
 1990|     86|	ansi_tm tmy = tmUTC;
 1991|     86|	tmx.tm_isdst = tmy.tm_isdst = 0;
 1992|     86|	ansi_tt ttx = ansi_mktime ( &tmx );
  ------------------
  |  |   70|     86|	#define ansi_mktime		mktime
  ------------------
 1993|     86|	ansi_tt tty = ansi_mktime ( &tmy );
  ------------------
  |  |   70|     86|	#define ansi_mktime		mktime
  ------------------
 1994|     86|	double diffSecs;
 1995|       |
 1996|     86|	if ( (ttx != -1) && (tty != -1) ) {
  ------------------
  |  Branch (1996:7): [True: 86, False: 0]
  |  Branch (1996:22): [True: 86, False: 0]
  ------------------
 1997|     86|		diffSecs = ansi_difftime ( ttx, tty );
  ------------------
  |  |   71|     86|	#define ansi_difftime	difftime
  ------------------
 1998|     86|	} 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|     86|	if ( diffSecs > 0.0 ) {
  ------------------
  |  Branch (2017:7): [True: 0, False: 86]
  ------------------
 2018|      0|		xmpTime->tzSign = kXMP_TimeEastOfUTC;
 2019|     86|	} else if ( diffSecs == 0.0 ) {
  ------------------
  |  Branch (2019:14): [True: 86, False: 0]
  ------------------
 2020|     86|		xmpTime->tzSign = kXMP_TimeIsUTC;
 2021|     86|	} else {
 2022|      0|		xmpTime->tzSign = kXMP_TimeWestOfUTC;
 2023|      0|		diffSecs = -diffSecs;
 2024|      0|	}
 2025|     86|	xmpTime->tzHour = XMP_Int32 ( diffSecs / 3600.0 );
 2026|     86|	xmpTime->tzMinute = XMP_Int32 ( (diffSecs / 60.0) - (xmpTime->tzHour * 60.0) );
 2027|       |
 2028|       |	// *** Save the tm_isdst flag in a qualifier?
 2029|       |
 2030|     86|	XMP_Assert ( (0 <= xmpTime->tzHour) && (xmpTime->tzHour <= 23) );
  ------------------
  |  |  142|     86|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2031|     86|	XMP_Assert ( (0 <= xmpTime->tzMinute) && (xmpTime->tzMinute <= 59) );
  ------------------
  |  |  142|     86|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2032|     86|	XMP_Assert ( (-1 <= xmpTime->tzSign) && (xmpTime->tzSign <= +1) );
  ------------------
  |  |  142|     86|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2033|     86|	XMP_Assert ( (xmpTime->tzSign == 0) ? ((xmpTime->tzHour == 0) && (xmpTime->tzMinute == 0)) :
  ------------------
  |  |  142|     86|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2034|     86|										  ((xmpTime->tzHour != 0) || (xmpTime->tzMinute != 0)) );
 2035|       |
 2036|     86|}	// 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: 2, False: 59]
  ------------------
 2055|       |		// We are before (east of) GMT, subtract the offset from the time.
 2056|      2|		time->hour -= time->tzHour;
 2057|      2|		time->minute -= time->tzMinute;
 2058|     59|	} else if ( time->tzSign == kXMP_TimeWestOfUTC ) {
  ------------------
  |  Branch (2058:14): [True: 2, False: 57]
  ------------------
 2059|       |		// We are behind (west of) GMT, add the offset to the time.
 2060|      2|		time->hour += time->tzHour;
 2061|      2|		time->minute += time->tzMinute;
 2062|      2|	}
 2063|       |
 2064|     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|    405|{
  369|    405|	size_t	 pos   = *_pos;
  370|    405|	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|    405|	const XMP_Int32 tens_upperbound = std::numeric_limits<XMP_Int32>::max() / 10;
  378|    405|	const XMP_Int32 ones_upperbound = std::numeric_limits<XMP_Int32>::max() % 10;
  379|       |
  380|  3.54k|	for ( char ch = strValue[pos]; ('0' <= ch) && (ch <= '9'); ++pos, ch = strValue[pos] ) {
  ------------------
  |  Branch (380:33): [True: 3.33k, False: 208]
  |  Branch (380:48): [True: 3.16k, False: 174]
  ------------------
  381|  3.16k|		const XMP_Int32 digit = ch - '0';
  382|  3.16k|		if (value >= tens_upperbound) {
  ------------------
  |  Branch (382:7): [True: 43, False: 3.11k]
  ------------------
  383|     43|			if (value > tens_upperbound || digit > ones_upperbound) {
  ------------------
  |  Branch (383:8): [True: 19, False: 24]
  |  Branch (383:35): [True: 4, False: 20]
  ------------------
  384|     23|				XMP_Throw ( errMsg, kXMPErr_BadParam );
  ------------------
  |  |  199|     23|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  385|      0|			}
  386|     43|		}
  387|  3.13k|		value = (value * 10) + digit;
  388|  3.13k|	}
  389|       |
  390|    382|	if ( pos == *_pos ) XMP_Throw ( errMsg, kXMPErr_BadParam );
  ------------------
  |  |  199|     22|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (390:7): [True: 22, False: 360]
  ------------------
  391|    360|	*_pos = pos;
  392|    360|	return value;
  393|       |
  394|    382|}	// 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: 62, False: 60]
  |  Branch (225:28): [True: 3, False: 57]
  |  Branch (225:50): [True: 0, False: 57]
  ------------------
  226|       |
  227|     77|		while ( time->month < 1 ) {
  ------------------
  |  Branch (227:11): [True: 12, False: 65]
  ------------------
  228|     12|			time->year -= 1;
  229|     12|			time->month += 12;
  230|     12|		}
  231|       |
  232|     65|		while ( time->month > 12 ) {
  ------------------
  |  Branch (232:11): [True: 0, False: 65]
  ------------------
  233|      0|			time->year += 1;
  234|      0|			time->month -= 12;
  235|      0|		}
  236|       |
  237|     91|		while ( time->day < 1 ) {
  ------------------
  |  Branch (237:11): [True: 26, False: 65]
  ------------------
  238|     26|			time->month -= 1;
  239|     26|			if ( time->month < 1 ) {	// ! Keep the months in range for indexing daysInMonth!
  ------------------
  |  Branch (239:9): [True: 3, False: 23]
  ------------------
  240|      3|				time->year -= 1;
  241|      3|				time->month += 12;
  242|      3|			}
  243|     26|			time->day += DaysInMonth ( time->year, time->month );	// ! Decrement month before so index here is right!
  244|     26|		}
  245|       |
  246|     68|		while ( time->day > DaysInMonth ( time->year, time->month ) ) {
  ------------------
  |  Branch (246:11): [True: 3, False: 65]
  ------------------
  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|     65|	}
  256|       |
  257|    122|	while ( time->hour < 0 ) {
  ------------------
  |  Branch (257:10): [True: 0, False: 122]
  ------------------
  258|      0|		time->day -= 1;
  259|      0|		time->hour += 24;
  260|      0|	}
  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|    124|	while ( time->minute < 0 ) {
  ------------------
  |  Branch (267:10): [True: 2, False: 122]
  ------------------
  268|      2|		time->hour -= 1;
  269|      2|		time->minute += 60;
  270|      2|	}
  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: 61, False: 61]
  |  Branch (327:28): [True: 4, False: 57]
  |  Branch (327:50): [True: 3, False: 54]
  ------------------
  328|       |
  329|     71|		while ( time->month < 1 ) { // Make sure the months are OK first, for DaysInMonth.
  ------------------
  |  Branch (329:11): [True: 3, False: 68]
  ------------------
  330|      3|			time->year -= 1;
  331|      3|			time->month += 12;
  332|      3|		}
  333|       |
  334|     68|		while ( time->month > 12 ) {
  ------------------
  |  Branch (334:11): [True: 0, False: 68]
  ------------------
  335|      0|			time->year += 1;
  336|      0|			time->month -= 12;
  337|      0|		}
  338|       |
  339|     69|		while ( time->day < 1 ) {
  ------------------
  |  Branch (339:11): [True: 1, False: 68]
  ------------------
  340|      1|			time->month -= 1;
  341|      1|			if ( time->month < 1 ) {
  ------------------
  |  Branch (341:9): [True: 0, False: 1]
  ------------------
  342|      0|				time->year -= 1;
  343|      0|				time->month += 12;
  344|      0|			}
  345|      1|			time->day += DaysInMonth ( time->year, time->month );
  346|      1|		}
  347|       |
  348|     68|		while ( time->day > DaysInMonth ( time->year, time->month ) ) {
  ------------------
  |  Branch (348:11): [True: 0, False: 68]
  ------------------
  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|     68|	}
  358|       |
  359|    122|}	// AdjustTimeOverflow
XMPUtils.cpp:_ZL11DaysInMonthii:
  195|    166|{
  196|       |
  197|    166|	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|    166|	int days = daysInMonth [ month ];
  201|    166|	if ( (month == 2) && IsLeapYear ( year ) ) days += 1;
  ------------------
  |  Branch (201:7): [True: 69, False: 97]
  |  Branch (201:23): [True: 31, False: 38]
  ------------------
  202|       |
  203|    166|	return days;
  204|       |
  205|    166|}	// DaysInMonth
XMPUtils.cpp:_ZL10IsLeapYearl:
  176|     69|{
  177|       |	// This code uses the Gregorian calendar algorithm:
  178|       |	// https://en.wikipedia.org/wiki/Leap_year#Algorithm
  179|       |
  180|     69|	if ( (year % 4) != 0 ) return false;	// Not a multiple of 4.
  ------------------
  |  Branch (180:7): [True: 27, False: 42]
  ------------------
  181|     42|	if ( (year % 100) != 0 ) return true;	// A multiple of 4 but not a multiple of 100.
  ------------------
  |  Branch (181:7): [True: 22, False: 20]
  ------------------
  182|     20|	if ( (year % 400) == 0 ) return true;	// A multiple of 400.
  ------------------
  |  Branch (182:7): [True: 9, False: 11]
  ------------------
  183|       |
  184|     11|	return false;							// A multiple of 100 but not a multiple of 400.
  185|       |
  186|     20|}	// IsLeapYear

