_ZN17double_conversion6Bignum8RawBigitEi:
   36|  1.14M|Bignum::Chunk& Bignum::RawBigit(const int index) {
   37|  1.14M|  DOUBLE_CONVERSION_ASSERT(static_cast<unsigned>(index) < kBigitCapacity);
  ------------------
  |  |   47|  1.14M|    assert(condition)
  ------------------
  |  Branch (37:3): [True: 1.14M, False: 0]
  ------------------
   38|  1.14M|  return bigits_buffer_[index];
   39|  1.14M|}
_ZNK17double_conversion6Bignum8RawBigitEi:
   42|  19.4k|const Bignum::Chunk& Bignum::RawBigit(const int index) const {
   43|  19.4k|  DOUBLE_CONVERSION_ASSERT(static_cast<unsigned>(index) < kBigitCapacity);
  ------------------
  |  |   47|  19.4k|    assert(condition)
  ------------------
  |  Branch (43:3): [True: 19.4k, False: 0]
  ------------------
   44|  19.4k|  return bigits_buffer_[index];
   45|  19.4k|}
_ZN17double_conversion6Bignum12AssignUInt64Em:
   65|  3.21k|void Bignum::AssignUInt64(uint64_t value) {
   66|  3.21k|  Zero();
   67|  10.4k|  for(int i = 0; value > 0; ++i) {
  ------------------
  |  Branch (67:18): [True: 7.27k, False: 3.21k]
  ------------------
   68|  7.27k|    RawBigit(i) = value & kBigitMask;
   69|  7.27k|    value >>= kBigitSize;
   70|  7.27k|    ++used_bigits_;
   71|  7.27k|  }
   72|  3.21k|}
_ZN17double_conversion6Bignum19AssignDecimalStringENS_6VectorIKcEE:
   97|    732|void Bignum::AssignDecimalString(const Vector<const char> value) {
   98|       |  // 2^64 = 18446744073709551616 > 10^19
   99|    732|  static const int kMaxUint64DecimalDigits = 19;
  100|    732|  Zero();
  101|    732|  int length = value.length();
  102|    732|  unsigned pos = 0;
  103|       |  // Let's just say that each digit needs 4 bits.
  104|  4.33k|  while (length >= kMaxUint64DecimalDigits) {
  ------------------
  |  Branch (104:10): [True: 3.59k, False: 732]
  ------------------
  105|  3.59k|    const uint64_t digits = ReadUInt64(value, pos, kMaxUint64DecimalDigits);
  106|  3.59k|    pos += kMaxUint64DecimalDigits;
  107|  3.59k|    length -= kMaxUint64DecimalDigits;
  108|  3.59k|    MultiplyByPowerOfTen(kMaxUint64DecimalDigits);
  109|  3.59k|    AddUInt64(digits);
  110|  3.59k|  }
  111|    732|  const uint64_t digits = ReadUInt64(value, pos, length);
  112|    732|  MultiplyByPowerOfTen(length);
  113|    732|  AddUInt64(digits);
  114|    732|  Clamp();
  115|    732|}
_ZN17double_conversion6Bignum9AddUInt64Em:
  156|  4.33k|void Bignum::AddUInt64(const uint64_t operand) {
  157|  4.33k|  if (operand == 0) {
  ------------------
  |  Branch (157:7): [True: 1.84k, False: 2.48k]
  ------------------
  158|  1.84k|    return;
  159|  1.84k|  }
  160|  2.48k|  Bignum other;
  161|  2.48k|  other.AssignUInt64(operand);
  162|  2.48k|  AddBignum(other);
  163|  2.48k|}
_ZN17double_conversion6Bignum9AddBignumERKS0_:
  166|  2.48k|void Bignum::AddBignum(const Bignum& other) {
  167|  2.48k|  DOUBLE_CONVERSION_ASSERT(IsClamped());
  ------------------
  |  |   47|  2.48k|    assert(condition)
  ------------------
  |  Branch (167:3): [True: 2.48k, False: 0]
  ------------------
  168|  2.48k|  DOUBLE_CONVERSION_ASSERT(other.IsClamped());
  ------------------
  |  |   47|  2.48k|    assert(condition)
  ------------------
  |  Branch (168:3): [True: 2.48k, False: 0]
  ------------------
  169|       |
  170|       |  // If this has a greater exponent than other append zero-bigits to this.
  171|       |  // After this call exponent_ <= other.exponent_.
  172|  2.48k|  Align(other);
  173|       |
  174|       |  // There are two possibilities:
  175|       |  //   aaaaaaaaaaa 0000  (where the 0s represent a's exponent)
  176|       |  //     bbbbb 00000000
  177|       |  //   ----------------
  178|       |  //   ccccccccccc 0000
  179|       |  // or
  180|       |  //    aaaaaaaaaa 0000
  181|       |  //  bbbbbbbbb 0000000
  182|       |  //  -----------------
  183|       |  //  cccccccccccc 0000
  184|       |  // In both cases we might need a carry bigit.
  185|       |
  186|  2.48k|  EnsureCapacity(1 + (std::max)(BigitLength(), other.BigitLength()) - exponent_);
  187|  2.48k|  Chunk carry = 0;
  188|  2.48k|  int bigit_pos = other.exponent_ - exponent_;
  189|  2.48k|  DOUBLE_CONVERSION_ASSERT(bigit_pos >= 0);
  ------------------
  |  |   47|  2.48k|    assert(condition)
  ------------------
  |  Branch (189:3): [True: 2.48k, False: 0]
  ------------------
  190|  2.48k|  for (int i = used_bigits_; i < bigit_pos; ++i) {
  ------------------
  |  Branch (190:30): [True: 0, False: 2.48k]
  ------------------
  191|      0|    RawBigit(i) = 0;
  192|      0|  }
  193|  8.31k|  for (int i = 0; i < other.used_bigits_; ++i) {
  ------------------
  |  Branch (193:19): [True: 5.83k, False: 2.48k]
  ------------------
  194|  5.83k|    const Chunk my = (bigit_pos < used_bigits_) ? RawBigit(bigit_pos) : 0;
  ------------------
  |  Branch (194:22): [True: 4.19k, False: 1.64k]
  ------------------
  195|  5.83k|    const Chunk sum = my + other.RawBigit(i) + carry;
  196|  5.83k|    RawBigit(bigit_pos) = sum & kBigitMask;
  197|  5.83k|    carry = sum >> kBigitSize;
  198|  5.83k|    ++bigit_pos;
  199|  5.83k|  }
  200|  2.88k|  while (carry != 0) {
  ------------------
  |  Branch (200:10): [True: 406, False: 2.48k]
  ------------------
  201|    406|    const Chunk my = (bigit_pos < used_bigits_) ? RawBigit(bigit_pos) : 0;
  ------------------
  |  Branch (201:22): [True: 406, False: 0]
  ------------------
  202|    406|    const Chunk sum = my + carry;
  203|    406|    RawBigit(bigit_pos) = sum & kBigitMask;
  204|    406|    carry = sum >> kBigitSize;
  205|    406|    ++bigit_pos;
  206|    406|  }
  207|  2.48k|  used_bigits_ = static_cast<int16_t>(std::max(bigit_pos, static_cast<int>(used_bigits_)));
  208|       |  DOUBLE_CONVERSION_ASSERT(IsClamped());
  ------------------
  |  |   47|  2.48k|    assert(condition)
  ------------------
  |  Branch (208:3): [True: 2.48k, False: 0]
  ------------------
  209|  2.48k|}
_ZN17double_conversion6Bignum9ShiftLeftEi:
  239|  4.73k|void Bignum::ShiftLeft(const int shift_amount) {
  240|  4.73k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (240:7): [True: 0, False: 4.73k]
  ------------------
  241|      0|    return;
  242|      0|  }
  243|  4.73k|  exponent_ += static_cast<int16_t>(shift_amount / kBigitSize);
  244|  4.73k|  const int local_shift = shift_amount % kBigitSize;
  245|  4.73k|  EnsureCapacity(used_bigits_ + 1);
  246|  4.73k|  BigitsShiftLeft(local_shift);
  247|  4.73k|}
_ZN17double_conversion6Bignum16MultiplyByUInt32Ej:
  250|  7.49k|void Bignum::MultiplyByUInt32(const uint32_t factor) {
  251|  7.49k|  if (factor == 1) {
  ------------------
  |  Branch (251:7): [True: 0, False: 7.49k]
  ------------------
  252|      0|    return;
  253|      0|  }
  254|  7.49k|  if (factor == 0) {
  ------------------
  |  Branch (254:7): [True: 0, False: 7.49k]
  ------------------
  255|      0|    Zero();
  256|      0|    return;
  257|      0|  }
  258|  7.49k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (258:7): [True: 0, False: 7.49k]
  ------------------
  259|      0|    return;
  260|      0|  }
  261|       |  // The product of a bigit with the factor is of size kBigitSize + 32.
  262|       |  // Assert that this number + 1 (for the carry) fits into double chunk.
  263|  7.49k|  DOUBLE_CONVERSION_ASSERT(kDoubleChunkSize >= kBigitSize + 32 + 1);
  ------------------
  |  |   47|  7.49k|    assert(condition)
  ------------------
  |  Branch (263:3): [True: 7.49k, Folded]
  ------------------
  264|  7.49k|  DoubleChunk carry = 0;
  265|   235k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (265:19): [True: 228k, False: 7.49k]
  ------------------
  266|   228k|    const DoubleChunk product = static_cast<DoubleChunk>(factor) * RawBigit(i) + carry;
  267|   228k|    RawBigit(i) = static_cast<Chunk>(product & kBigitMask);
  268|   228k|    carry = (product >> kBigitSize);
  269|   228k|  }
  270|  13.3k|  while (carry != 0) {
  ------------------
  |  Branch (270:10): [True: 5.82k, False: 7.49k]
  ------------------
  271|  5.82k|    EnsureCapacity(used_bigits_ + 1);
  272|  5.82k|    RawBigit(used_bigits_) = carry & kBigitMask;
  273|  5.82k|    used_bigits_++;
  274|  5.82k|    carry >>= kBigitSize;
  275|  5.82k|  }
  276|  7.49k|}
_ZN17double_conversion6Bignum16MultiplyByUInt64Em:
  279|  4.26k|void Bignum::MultiplyByUInt64(const uint64_t factor) {
  280|  4.26k|  if (factor == 1) {
  ------------------
  |  Branch (280:7): [True: 0, False: 4.26k]
  ------------------
  281|      0|    return;
  282|      0|  }
  283|  4.26k|  if (factor == 0) {
  ------------------
  |  Branch (283:7): [True: 0, False: 4.26k]
  ------------------
  284|      0|    Zero();
  285|      0|    return;
  286|      0|  }
  287|  4.26k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (287:7): [True: 0, False: 4.26k]
  ------------------
  288|      0|    return;
  289|      0|  }
  290|  4.26k|  DOUBLE_CONVERSION_ASSERT(kBigitSize < 32);
  ------------------
  |  |   47|  4.26k|    assert(condition)
  ------------------
  |  Branch (290:3): [True: 4.26k, Folded]
  ------------------
  291|  4.26k|  uint64_t carry = 0;
  292|  4.26k|  const uint64_t low = factor & 0xFFFFFFFF;
  293|  4.26k|  const uint64_t high = factor >> 32;
  294|  88.1k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (294:19): [True: 83.8k, False: 4.26k]
  ------------------
  295|  83.8k|    const uint64_t product_low = low * RawBigit(i);
  296|  83.8k|    const uint64_t product_high = high * RawBigit(i);
  297|  83.8k|    const uint64_t tmp = (carry & kBigitMask) + product_low;
  298|  83.8k|    RawBigit(i) = tmp & kBigitMask;
  299|  83.8k|    carry = (carry >> kBigitSize) + (tmp >> kBigitSize) +
  300|  83.8k|        (product_high << (32 - kBigitSize));
  301|  83.8k|  }
  302|  13.8k|  while (carry != 0) {
  ------------------
  |  Branch (302:10): [True: 9.62k, False: 4.26k]
  ------------------
  303|  9.62k|    EnsureCapacity(used_bigits_ + 1);
  304|  9.62k|    RawBigit(used_bigits_) = carry & kBigitMask;
  305|  9.62k|    used_bigits_++;
  306|  9.62k|    carry >>= kBigitSize;
  307|  9.62k|  }
  308|  4.26k|}
_ZN17double_conversion6Bignum20MultiplyByPowerOfTenEi:
  311|  5.06k|void Bignum::MultiplyByPowerOfTen(const int exponent) {
  312|  5.06k|  static const uint64_t kFive27 = DOUBLE_CONVERSION_UINT64_2PART_C(0x6765c793, fa10079d);
  ------------------
  |  |  195|  5.06k|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  313|  5.06k|  static const uint16_t kFive1 = 5;
  314|  5.06k|  static const uint16_t kFive2 = kFive1 * 5;
  315|  5.06k|  static const uint16_t kFive3 = kFive2 * 5;
  316|  5.06k|  static const uint16_t kFive4 = kFive3 * 5;
  317|  5.06k|  static const uint16_t kFive5 = kFive4 * 5;
  318|  5.06k|  static const uint16_t kFive6 = kFive5 * 5;
  319|  5.06k|  static const uint32_t kFive7 = kFive6 * 5;
  320|  5.06k|  static const uint32_t kFive8 = kFive7 * 5;
  321|  5.06k|  static const uint32_t kFive9 = kFive8 * 5;
  322|  5.06k|  static const uint32_t kFive10 = kFive9 * 5;
  323|  5.06k|  static const uint32_t kFive11 = kFive10 * 5;
  324|  5.06k|  static const uint32_t kFive12 = kFive11 * 5;
  325|  5.06k|  static const uint32_t kFive13 = kFive12 * 5;
  326|  5.06k|  static const uint32_t kFive1_to_12[] =
  327|  5.06k|      { kFive1, kFive2, kFive3, kFive4, kFive5, kFive6,
  328|  5.06k|        kFive7, kFive8, kFive9, kFive10, kFive11, kFive12 };
  329|       |
  330|  5.06k|  DOUBLE_CONVERSION_ASSERT(exponent >= 0);
  ------------------
  |  |   47|  5.06k|    assert(condition)
  ------------------
  |  Branch (330:3): [True: 5.06k, False: 0]
  ------------------
  331|       |
  332|  5.06k|  if (exponent == 0) {
  ------------------
  |  Branch (332:7): [True: 332, False: 4.73k]
  ------------------
  333|    332|    return;
  334|    332|  }
  335|  4.73k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (335:7): [True: 732, False: 3.99k]
  ------------------
  336|    732|    return;
  337|    732|  }
  338|       |  // We shift by exponent at the end just before returning.
  339|  3.99k|  int remaining_exponent = exponent;
  340|  8.26k|  while (remaining_exponent >= 27) {
  ------------------
  |  Branch (340:10): [True: 4.26k, False: 3.99k]
  ------------------
  341|  4.26k|    MultiplyByUInt64(kFive27);
  342|  4.26k|    remaining_exponent -= 27;
  343|  4.26k|  }
  344|  7.62k|  while (remaining_exponent >= 13) {
  ------------------
  |  Branch (344:10): [True: 3.62k, False: 3.99k]
  ------------------
  345|  3.62k|    MultiplyByUInt32(kFive13);
  346|  3.62k|    remaining_exponent -= 13;
  347|  3.62k|  }
  348|  3.99k|  if (remaining_exponent > 0) {
  ------------------
  |  Branch (348:7): [True: 3.86k, False: 132]
  ------------------
  349|  3.86k|    MultiplyByUInt32(kFive1_to_12[remaining_exponent - 1]);
  350|  3.86k|  }
  351|  3.99k|  ShiftLeft(exponent);
  352|  3.99k|}
_ZNK17double_conversion6Bignum11BigitOrZeroEi:
  633|  5.67k|Bignum::Chunk Bignum::BigitOrZero(const int index) const {
  634|  5.67k|  if (index >= BigitLength()) {
  ------------------
  |  Branch (634:7): [True: 0, False: 5.67k]
  ------------------
  635|      0|    return 0;
  636|      0|  }
  637|  5.67k|  if (index < exponent_) {
  ------------------
  |  Branch (637:7): [True: 279, False: 5.39k]
  ------------------
  638|    279|    return 0;
  639|    279|  }
  640|  5.39k|  return RawBigit(index - exponent_);
  641|  5.67k|}
_ZN17double_conversion6Bignum7CompareERKS0_S2_:
  644|    732|int Bignum::Compare(const Bignum& a, const Bignum& b) {
  645|    732|  DOUBLE_CONVERSION_ASSERT(a.IsClamped());
  ------------------
  |  |   47|    732|    assert(condition)
  ------------------
  |  Branch (645:3): [True: 732, False: 0]
  ------------------
  646|    732|  DOUBLE_CONVERSION_ASSERT(b.IsClamped());
  ------------------
  |  |   47|    732|    assert(condition)
  ------------------
  |  Branch (646:3): [True: 732, False: 0]
  ------------------
  647|    732|  const int bigit_length_a = a.BigitLength();
  648|    732|  const int bigit_length_b = b.BigitLength();
  649|    732|  if (bigit_length_a < bigit_length_b) {
  ------------------
  |  Branch (649:7): [True: 5, False: 727]
  ------------------
  650|      5|    return -1;
  651|      5|  }
  652|    727|  if (bigit_length_a > bigit_length_b) {
  ------------------
  |  Branch (652:7): [True: 0, False: 727]
  ------------------
  653|      0|    return +1;
  654|      0|  }
  655|  2.93k|  for (int i = bigit_length_a - 1; i >= (std::min)(a.exponent_, b.exponent_); --i) {
  ------------------
  |  Branch (655:36): [True: 2.83k, False: 94]
  ------------------
  656|  2.83k|    const Chunk bigit_a = a.BigitOrZero(i);
  657|  2.83k|    const Chunk bigit_b = b.BigitOrZero(i);
  658|  2.83k|    if (bigit_a < bigit_b) {
  ------------------
  |  Branch (658:9): [True: 202, False: 2.63k]
  ------------------
  659|    202|      return -1;
  660|    202|    }
  661|  2.63k|    if (bigit_a > bigit_b) {
  ------------------
  |  Branch (661:9): [True: 431, False: 2.20k]
  ------------------
  662|    431|      return +1;
  663|    431|    }
  664|       |    // Otherwise they are equal up to this digit. Try the next digit.
  665|  2.63k|  }
  666|     94|  return 0;
  667|    727|}
_ZN17double_conversion6Bignum5ClampEv:
  715|    732|void Bignum::Clamp() {
  716|    732|  while (used_bigits_ > 0 && RawBigit(used_bigits_ - 1) == 0) {
  ------------------
  |  Branch (716:10): [True: 732, False: 0]
  |  Branch (716:30): [True: 0, False: 732]
  ------------------
  717|      0|    used_bigits_--;
  718|      0|  }
  719|    732|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (719:7): [True: 0, False: 732]
  ------------------
  720|       |    // Zero.
  721|      0|    exponent_ = 0;
  722|      0|  }
  723|    732|}
_ZN17double_conversion6Bignum5AlignERKS0_:
  726|  2.48k|void Bignum::Align(const Bignum& other) {
  727|  2.48k|  if (exponent_ > other.exponent_) {
  ------------------
  |  Branch (727:7): [True: 0, False: 2.48k]
  ------------------
  728|       |    // If "X" represents a "hidden" bigit (by the exponent) then we are in the
  729|       |    // following case (a == this, b == other):
  730|       |    // a:  aaaaaaXXXX   or a:   aaaaaXXX
  731|       |    // b:     bbbbbbX      b: bbbbbbbbXX
  732|       |    // We replace some of the hidden digits (X) of a with 0 digits.
  733|       |    // a:  aaaaaa000X   or a:   aaaaa0XX
  734|      0|    const int zero_bigits = exponent_ - other.exponent_;
  735|      0|    EnsureCapacity(used_bigits_ + zero_bigits);
  736|      0|    for (int i = used_bigits_ - 1; i >= 0; --i) {
  ------------------
  |  Branch (736:36): [True: 0, False: 0]
  ------------------
  737|      0|      RawBigit(i + zero_bigits) = RawBigit(i);
  738|      0|    }
  739|      0|    for (int i = 0; i < zero_bigits; ++i) {
  ------------------
  |  Branch (739:21): [True: 0, False: 0]
  ------------------
  740|      0|      RawBigit(i) = 0;
  741|      0|    }
  742|      0|    used_bigits_ += static_cast<int16_t>(zero_bigits);
  743|      0|    exponent_ -= static_cast<int16_t>(zero_bigits);
  744|       |
  745|      0|    DOUBLE_CONVERSION_ASSERT(used_bigits_ >= 0);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (745:5): [True: 0, False: 0]
  ------------------
  746|      0|    DOUBLE_CONVERSION_ASSERT(exponent_ >= 0);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (746:5): [True: 0, False: 0]
  ------------------
  747|      0|  }
  748|  2.48k|}
_ZN17double_conversion6Bignum15BigitsShiftLeftEi:
  751|  4.73k|void Bignum::BigitsShiftLeft(const int shift_amount) {
  752|  4.73k|  DOUBLE_CONVERSION_ASSERT(shift_amount < kBigitSize);
  ------------------
  |  |   47|  4.73k|    assert(condition)
  ------------------
  |  Branch (752:3): [True: 4.73k, False: 0]
  ------------------
  753|  4.73k|  DOUBLE_CONVERSION_ASSERT(shift_amount >= 0);
  ------------------
  |  |   47|  4.73k|    assert(condition)
  ------------------
  |  Branch (753:3): [True: 4.73k, False: 0]
  ------------------
  754|  4.73k|  Chunk carry = 0;
  755|   136k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (755:19): [True: 131k, False: 4.73k]
  ------------------
  756|   131k|    const Chunk new_carry = RawBigit(i) >> (kBigitSize - shift_amount);
  757|   131k|    RawBigit(i) = ((RawBigit(i) << shift_amount) + carry) & kBigitMask;
  758|   131k|    carry = new_carry;
  759|   131k|  }
  760|  4.73k|  if (carry != 0) {
  ------------------
  |  Branch (760:7): [True: 2.93k, False: 1.80k]
  ------------------
  761|  2.93k|    RawBigit(used_bigits_) = carry;
  762|  2.93k|    used_bigits_++;
  763|  2.93k|  }
  764|  4.73k|}
bignum.cc:_ZN17double_conversionL10ReadUInt64ENS_6VectorIKcEEii:
   86|  4.33k|                           const int digits_to_read) {
   87|  4.33k|  uint64_t result = 0;
   88|  78.4k|  for (int i = from; i < from + digits_to_read; ++i) {
  ------------------
  |  Branch (88:22): [True: 74.1k, False: 4.33k]
  ------------------
   89|  74.1k|    const int digit = buffer[i] - '0';
   90|  74.1k|    DOUBLE_CONVERSION_ASSERT(0 <= digit && digit <= 9);
  ------------------
  |  |   47|  74.1k|    assert(condition)
  ------------------
  |  Branch (90:5): [True: 74.1k, False: 0]
  |  Branch (90:5): [True: 74.1k, False: 0]
  |  Branch (90:5): [True: 74.1k, False: 0]
  ------------------
   91|  74.1k|    result = result * 10 + digit;
   92|  74.1k|  }
   93|  4.33k|  return result;
   94|  4.33k|}

_ZN17double_conversion6BignumC2Ev:
   42|  3.94k|  Bignum() : used_bigits_(0), exponent_(0) {}
_ZN17double_conversion6Bignum14EnsureCapacityEi:
  114|  22.6k|  static void EnsureCapacity(const int size) {
  115|  22.6k|    if (size > kBigitCapacity) {
  ------------------
  |  Branch (115:9): [True: 0, False: 22.6k]
  ------------------
  116|      0|      DOUBLE_CONVERSION_UNREACHABLE();
  ------------------
  |  |   77|      0|#define DOUBLE_CONVERSION_UNREACHABLE()   (abort())
  ------------------
  117|      0|    }
  118|  22.6k|  }
_ZNK17double_conversion6Bignum9IsClampedEv:
  121|  8.91k|  bool IsClamped() const {
  122|  8.91k|    return used_bigits_ == 0 || RawBigit(used_bigits_ - 1) != 0;
  ------------------
  |  Branch (122:12): [True: 732, False: 8.17k]
  |  Branch (122:33): [True: 8.17k, False: 0]
  ------------------
  123|  8.91k|  }
_ZN17double_conversion6Bignum4ZeroEv:
  124|  3.94k|  void Zero() {
  125|  3.94k|    used_bigits_ = 0;
  126|  3.94k|    exponent_ = 0;
  127|  3.94k|  }
_ZNK17double_conversion6Bignum11BigitLengthEv:
  133|  12.1k|  int BigitLength() const { return used_bigits_ + exponent_; }

_ZN17double_conversion16PowersOfTenCache32GetCachedPowerForDecimalExponentEiPNS_5DiyFpEPi:
  161|  1.27k|                                      int* found_exponent) {
  162|  1.27k|  DOUBLE_CONVERSION_ASSERT(kMinDecimalExponent <= requested_exponent);
  ------------------
  |  |   47|  1.27k|    assert(condition)
  ------------------
  |  Branch (162:3): [True: 1.27k, False: 0]
  ------------------
  163|  1.27k|  DOUBLE_CONVERSION_ASSERT(requested_exponent < kMaxDecimalExponent + kDecimalExponentDistance);
  ------------------
  |  |   47|  1.27k|    assert(condition)
  ------------------
  |  Branch (163:3): [True: 1.27k, False: 0]
  ------------------
  164|  1.27k|  int index =
  165|  1.27k|      (requested_exponent + kCachedPowersOffset) / kDecimalExponentDistance;
  166|  1.27k|  CachedPower cached_power = kCachedPowers[index];
  167|  1.27k|  *power = DiyFp(cached_power.significand, cached_power.binary_exponent);
  168|  1.27k|  *found_exponent = cached_power.decimal_exponent;
  169|  1.27k|  DOUBLE_CONVERSION_ASSERT(*found_exponent <= requested_exponent);
  ------------------
  |  |   47|  1.27k|    assert(condition)
  ------------------
  |  Branch (169:3): [True: 1.27k, False: 0]
  ------------------
  170|  1.27k|  DOUBLE_CONVERSION_ASSERT(requested_exponent < *found_exponent + kDecimalExponentDistance);
  ------------------
  |  |   47|  1.27k|    assert(condition)
  ------------------
  |  Branch (170:3): [True: 1.27k, False: 0]
  ------------------
  171|  1.27k|}

_ZN17double_conversion5DiyFpC2Emi:
   46|  6.23k|  DiyFp(const uint64_t significand, const int32_t exponent) : f_(significand), e_(exponent) {}
_ZNK17double_conversion5DiyFp1fEv:
  122|  5.38k|  uint64_t f() const { return f_; }
_ZNK17double_conversion5DiyFp1eEv:
  123|  10.9k|  int32_t e() const { return e_; }
_ZN17double_conversion5DiyFpC2Ev:
   45|  2.54k|  DiyFp() : f_(0), e_(0) {}
_ZN17double_conversion5DiyFp8MultiplyERKS0_:
   68|  2.43k|  void Multiply(const DiyFp& other) {
   69|       |    // Simply "emulates" a 128 bit multiplication.
   70|       |    // However: the resulting number only contains 64 bits. The least
   71|       |    // significant 64 bits are only used for rounding the most significant 64
   72|       |    // bits.
   73|  2.43k|    const uint64_t kM32 = 0xFFFFFFFFU;
   74|  2.43k|    const uint64_t a = f_ >> 32;
   75|  2.43k|    const uint64_t b = f_ & kM32;
   76|  2.43k|    const uint64_t c = other.f_ >> 32;
   77|  2.43k|    const uint64_t d = other.f_ & kM32;
   78|  2.43k|    const uint64_t ac = a * c;
   79|  2.43k|    const uint64_t bc = b * c;
   80|  2.43k|    const uint64_t ad = a * d;
   81|  2.43k|    const uint64_t bd = b * d;
   82|       |    // By adding 1U << 31 to tmp we round the final result.
   83|       |    // Halfway cases will be rounded up.
   84|  2.43k|    const uint64_t tmp = (bd >> 32) + (ad & kM32) + (bc & kM32) + (1U << 31);
   85|  2.43k|    e_ += other.e_ + 64;
   86|  2.43k|    f_ = ac + (ad >> 32) + (bc >> 32) + (tmp >> 32);
   87|  2.43k|  }
_ZN17double_conversion5DiyFp9NormalizeEv:
   96|  2.54k|  void Normalize() {
   97|  2.54k|    DOUBLE_CONVERSION_ASSERT(f_ != 0);
  ------------------
  |  |   47|  2.54k|    assert(condition)
  ------------------
  |  Branch (97:5): [True: 2.54k, False: 0]
  ------------------
   98|  2.54k|    uint64_t significand = f_;
   99|  2.54k|    int32_t exponent = e_;
  100|       |
  101|       |    // This method is mainly called for normalizing boundaries. In general,
  102|       |    // boundaries need to be shifted by 10 bits, and we optimize for this case.
  103|  2.54k|    const uint64_t k10MSBits = DOUBLE_CONVERSION_UINT64_2PART_C(0xFFC00000, 00000000);
  ------------------
  |  |  195|  2.54k|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  104|  5.46k|    while ((significand & k10MSBits) == 0) {
  ------------------
  |  Branch (104:12): [True: 2.91k, False: 2.54k]
  ------------------
  105|  2.91k|      significand <<= 10;
  106|  2.91k|      exponent -= 10;
  107|  2.91k|    }
  108|  6.59k|    while ((significand & kUint64MSB) == 0) {
  ------------------
  |  Branch (108:12): [True: 4.04k, False: 2.54k]
  ------------------
  109|  4.04k|      significand <<= 1;
  110|  4.04k|      exponent--;
  111|  4.04k|    }
  112|  2.54k|    f_ = significand;
  113|  2.54k|    e_ = exponent;
  114|  2.54k|  }
_ZN17double_conversion5DiyFp5set_fEm:
  125|    316|  void set_f(uint64_t new_value) { f_ = new_value; }
_ZN17double_conversion5DiyFp5set_eEi:
  126|     56|  void set_e(int32_t new_value) { e_ = new_value; }

_ZN17double_conversion6Double8InfinityEv:
  236|    845|  static double Infinity() {
  237|    845|    return Double(kInfinity).value();
  238|    845|  }
_ZN17double_conversion6DoubleC2Em:
   56|  1.32k|  explicit Double(uint64_t d64) : d64_(d64) {}
_ZNK17double_conversion6Double5valueEv:
  220|  3.12k|  double value() const { return uint64_to_double(d64_); }
string-to-double.cc:_ZN17double_conversionL16uint64_to_doubleEm:
   37|    528|static double uint64_to_double(uint64_t d64) { return BitCast<double>(d64); }
_ZN17double_conversion6Double3NaNEv:
  240|      2|  static double NaN() {
  241|      2|    return Double(kNaN).value();
  242|      2|  }
_ZN17double_conversion6DoubleC2ENS_5DiyFpE:
   58|  1.79k|    : d64_(DiyFpToUint64(diy_fp)) {}
_ZN17double_conversion6Double13DiyFpToUint64ENS_5DiyFpE:
  256|  1.79k|  static uint64_t DiyFpToUint64(DiyFp diy_fp) {
  257|  1.79k|    uint64_t significand = diy_fp.f();
  258|  1.79k|    int exponent = diy_fp.e();
  259|  1.81k|    while (significand > kHiddenBit + kSignificandMask) {
  ------------------
  |  Branch (259:12): [True: 15, False: 1.79k]
  ------------------
  260|     15|      significand >>= 1;
  261|     15|      exponent++;
  262|     15|    }
  263|  1.79k|    if (exponent >= kMaxExponent) {
  ------------------
  |  Branch (263:9): [True: 58, False: 1.73k]
  ------------------
  264|     58|      return kInfinity;
  265|     58|    }
  266|  1.73k|    if (exponent < kDenormalExponent) {
  ------------------
  |  Branch (266:9): [True: 63, False: 1.67k]
  ------------------
  267|     63|      return 0;
  268|     63|    }
  269|  7.79k|    while (exponent > kDenormalExponent && (significand & kHiddenBit) == 0) {
  ------------------
  |  Branch (269:12): [True: 7.66k, False: 138]
  |  Branch (269:44): [True: 6.12k, False: 1.53k]
  ------------------
  270|  6.12k|      significand <<= 1;
  271|  6.12k|      exponent--;
  272|  6.12k|    }
  273|  1.67k|    uint64_t biased_exponent;
  274|  1.67k|    if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) {
  ------------------
  |  Branch (274:9): [True: 138, False: 1.53k]
  |  Branch (274:42): [True: 135, False: 3]
  ------------------
  275|    135|      biased_exponent = 0;
  276|  1.54k|    } else {
  277|  1.54k|      biased_exponent = static_cast<uint64_t>(exponent + kExponentBias);
  278|  1.54k|    }
  279|  1.67k|    return (significand & kSignificandMask) |
  280|  1.67k|        (biased_exponent << kPhysicalSignificandSize);
  281|  1.73k|  }
_ZN17double_conversion6DoubleC2Ed:
   55|  1.30k|  explicit Double(double d) : d64_(double_to_uint64(d)) {}
_ZNK17double_conversion6Double8AsUint64Ev:
   86|  4.73k|  uint64_t AsUint64() const {
   87|  4.73k|    return d64_;
   88|  4.73k|  }
_ZNK17double_conversion6Double10NextDoubleEv:
   91|    477|  double NextDouble() const {
   92|    477|    if (d64_ == kInfinity) return Double(kInfinity).value();
  ------------------
  |  Branch (92:9): [True: 0, False: 477]
  ------------------
   93|    477|    if (Sign() < 0 && Significand() == 0) {
  ------------------
  |  Branch (93:9): [True: 0, False: 477]
  |  Branch (93:23): [True: 0, False: 0]
  ------------------
   94|       |      // -0.0
   95|      0|      return 0.0;
   96|      0|    }
   97|    477|    if (Sign() < 0) {
  ------------------
  |  Branch (97:9): [True: 0, False: 477]
  ------------------
   98|      0|      return Double(d64_ - 1).value();
   99|    477|    } else {
  100|    477|      return Double(d64_ + 1).value();
  101|    477|    }
  102|    477|  }
_ZNK17double_conversion6Double8ExponentEv:
  114|    732|  int Exponent() const {
  115|    732|    if (IsDenormal()) return kDenormalExponent;
  ------------------
  |  Branch (115:9): [True: 64, False: 668]
  ------------------
  116|       |
  117|    668|    uint64_t d64 = AsUint64();
  118|    668|    int biased_e =
  119|    668|        static_cast<int>((d64 & kExponentMask) >> kPhysicalSignificandSize);
  120|    668|    return biased_e - kExponentBias;
  121|    732|  }
_ZNK17double_conversion6Double11SignificandEv:
  123|    826|  uint64_t Significand() const {
  124|    826|    uint64_t d64 = AsUint64();
  125|    826|    uint64_t significand = d64 & kSignificandMask;
  126|    826|    if (!IsDenormal()) {
  ------------------
  |  Branch (126:9): [True: 762, False: 64]
  ------------------
  127|    762|      return significand + kHiddenBit;
  128|    762|    } else {
  129|     64|      return significand;
  130|     64|    }
  131|    826|  }
_ZNK17double_conversion6Double10IsDenormalEv:
  134|  1.55k|  bool IsDenormal() const {
  135|  1.55k|    uint64_t d64 = AsUint64();
  136|  1.55k|    return (d64 & kExponentMask) == 0;
  137|  1.55k|  }
_ZNK17double_conversion6Double4SignEv:
  175|  1.68k|  int Sign() const {
  176|  1.68k|    uint64_t d64 = AsUint64();
  177|  1.68k|    return (d64 & kSignMask) == 0? 1: -1;
  ------------------
  |  Branch (177:12): [True: 1.68k, False: 0]
  ------------------
  178|  1.68k|  }
_ZNK17double_conversion6Double13UpperBoundaryEv:
  182|    732|  DiyFp UpperBoundary() const {
  183|    732|    DOUBLE_CONVERSION_ASSERT(Sign() > 0);
  ------------------
  |  |   47|    732|    assert(condition)
  ------------------
  |  Branch (183:5): [True: 732, False: 0]
  ------------------
  184|    732|    return DiyFp(Significand() * 2 + 1, Exponent() - 1);
  185|    732|  }
_ZN17double_conversion6Double34SignificandSizeForOrderOfMagnitudeEi:
  228|  1.27k|  static int SignificandSizeForOrderOfMagnitude(int order) {
  229|  1.27k|    if (order >= (kDenormalExponent + kSignificandSize)) {
  ------------------
  |  Branch (229:9): [True: 1.11k, False: 155]
  ------------------
  230|  1.11k|      return kSignificandSize;
  231|  1.11k|    }
  232|    155|    if (order <= kDenormalExponent) return 0;
  ------------------
  |  Branch (232:9): [True: 37, False: 118]
  ------------------
  233|    118|    return order - kDenormalExponent;
  234|    155|  }
strtod.cc:_ZN17double_conversionL16uint64_to_doubleEm:
   37|  2.59k|static double uint64_to_double(uint64_t d64) { return BitCast<double>(d64); }
strtod.cc:_ZN17double_conversionL16double_to_uint64Ed:
   36|  1.30k|static uint64_t double_to_uint64(double d) { return BitCast<uint64_t>(d); }

_ZNK17double_conversion23StringToDoubleConverter14StringToDoubleEPKciPi:
  752|  2.90k|    int* processed_characters_count) const {
  753|  2.90k|  return StringToIeee(buffer, length, true, processed_characters_count);
  754|  2.90k|}
_ZNK17double_conversion23StringToDoubleConverter12StringToIeeeIPKcEEdT_ibPi:
  423|  2.90k|    int* processed_characters_count) const {
  424|  2.90k|  Iterator current = input;
  425|  2.90k|  Iterator end = input + length;
  426|       |
  427|  2.90k|  *processed_characters_count = 0;
  428|       |
  429|  2.90k|  const bool allow_trailing_junk = (flags_ & ALLOW_TRAILING_JUNK) != 0;
  430|  2.90k|  const bool allow_leading_spaces = (flags_ & ALLOW_LEADING_SPACES) != 0;
  431|  2.90k|  const bool allow_trailing_spaces = (flags_ & ALLOW_TRAILING_SPACES) != 0;
  432|  2.90k|  const bool allow_spaces_after_sign = (flags_ & ALLOW_SPACES_AFTER_SIGN) != 0;
  433|  2.90k|  const bool allow_case_insensitivity = (flags_ & ALLOW_CASE_INSENSITIVITY) != 0;
  434|       |
  435|       |  // To make sure that iterator dereferencing is valid the following
  436|       |  // convention is used:
  437|       |  // 1. Each '++current' statement is followed by check for equality to 'end'.
  438|       |  // 2. If AdvanceToNonspace returned false then current == end.
  439|       |  // 3. If 'current' becomes equal to 'end' the function returns or goes to
  440|       |  // 'parsing_done'.
  441|       |  // 4. 'current' is not dereferenced after the 'parsing_done' label.
  442|       |  // 5. Code before 'parsing_done' may rely on 'current != end'.
  443|  2.90k|  if (current == end) return empty_string_value_;
  ------------------
  |  Branch (443:7): [True: 0, False: 2.90k]
  ------------------
  444|       |
  445|  2.90k|  if (allow_leading_spaces || allow_trailing_spaces) {
  ------------------
  |  Branch (445:7): [True: 2.90k, False: 0]
  |  Branch (445:31): [True: 0, False: 0]
  ------------------
  446|  2.90k|    if (!AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (446:9): [True: 13, False: 2.89k]
  ------------------
  447|     13|      *processed_characters_count = static_cast<int>(current - input);
  448|     13|      return empty_string_value_;
  449|     13|    }
  450|  2.89k|    if (!allow_leading_spaces && (input != current)) {
  ------------------
  |  Branch (450:9): [True: 0, False: 2.89k]
  |  Branch (450:34): [True: 0, False: 0]
  ------------------
  451|       |      // No leading spaces allowed, but AdvanceToNonspace moved forward.
  452|      0|      return junk_string_value_;
  453|      0|    }
  454|  2.89k|  }
  455|       |
  456|       |  // Exponent will be adjusted if insignificant digits of the integer part
  457|       |  // or insignificant leading zeros of the fractional part are dropped.
  458|  2.89k|  int exponent = 0;
  459|  2.89k|  int significant_digits = 0;
  460|  2.89k|  int insignificant_digits = 0;
  461|  2.89k|  bool nonzero_digit_dropped = false;
  462|       |
  463|  2.89k|  bool sign = false;
  464|       |
  465|  2.89k|  if (*current == '+' || *current == '-') {
  ------------------
  |  Branch (465:7): [True: 13, False: 2.88k]
  |  Branch (465:26): [True: 130, False: 2.75k]
  ------------------
  466|    143|    sign = (*current == '-');
  467|    143|    ++current;
  468|    143|    Iterator next_non_space = current;
  469|       |    // Skip following spaces (if allowed).
  470|    143|    if (!AdvanceToNonspace(&next_non_space, end)) return junk_string_value_;
  ------------------
  |  Branch (470:9): [True: 18, False: 125]
  ------------------
  471|    125|    if (!allow_spaces_after_sign && (current != next_non_space)) {
  ------------------
  |  Branch (471:9): [True: 0, False: 125]
  |  Branch (471:37): [True: 0, False: 0]
  ------------------
  472|      0|      return junk_string_value_;
  473|      0|    }
  474|    125|    current = next_non_space;
  475|    125|  }
  476|       |
  477|  2.87k|  if (infinity_symbol_ != DOUBLE_CONVERSION_NULLPTR) {
  ------------------
  |  |   39|  2.87k|#define DOUBLE_CONVERSION_NULLPTR nullptr
  ------------------
  |  Branch (477:7): [True: 2.87k, False: 0]
  ------------------
  478|  2.87k|    if (ConsumeFirstCharacter(*current, infinity_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (478:9): [True: 4, False: 2.87k]
  ------------------
  479|      4|      if (!ConsumeSubString(&current, end, infinity_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (479:11): [True: 2, False: 2]
  ------------------
  480|      2|        return junk_string_value_;
  481|      2|      }
  482|       |
  483|      2|      if (!(allow_trailing_spaces || allow_trailing_junk) && (current != end)) {
  ------------------
  |  Branch (483:13): [True: 2, False: 0]
  |  Branch (483:38): [True: 0, False: 0]
  |  Branch (483:62): [True: 0, False: 0]
  ------------------
  484|      0|        return junk_string_value_;
  485|      0|      }
  486|      2|      if (!allow_trailing_junk && AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (486:11): [True: 0, False: 2]
  |  Branch (486:35): [True: 0, False: 0]
  ------------------
  487|      0|        return junk_string_value_;
  488|      0|      }
  489|       |
  490|      2|      *processed_characters_count = static_cast<int>(current - input);
  491|      2|      return sign ? -Double::Infinity() : Double::Infinity();
  ------------------
  |  Branch (491:14): [True: 1, False: 1]
  ------------------
  492|      2|    }
  493|  2.87k|  }
  494|       |
  495|  2.87k|  if (nan_symbol_ != DOUBLE_CONVERSION_NULLPTR) {
  ------------------
  |  |   39|  2.87k|#define DOUBLE_CONVERSION_NULLPTR nullptr
  ------------------
  |  Branch (495:7): [True: 2.87k, False: 0]
  ------------------
  496|  2.87k|    if (ConsumeFirstCharacter(*current, nan_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (496:9): [True: 5, False: 2.86k]
  ------------------
  497|      5|      if (!ConsumeSubString(&current, end, nan_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (497:11): [True: 3, False: 2]
  ------------------
  498|      3|        return junk_string_value_;
  499|      3|      }
  500|       |
  501|      2|      if (!(allow_trailing_spaces || allow_trailing_junk) && (current != end)) {
  ------------------
  |  Branch (501:13): [True: 2, False: 0]
  |  Branch (501:38): [True: 0, False: 0]
  |  Branch (501:62): [True: 0, False: 0]
  ------------------
  502|      0|        return junk_string_value_;
  503|      0|      }
  504|      2|      if (!allow_trailing_junk && AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (504:11): [True: 0, False: 2]
  |  Branch (504:35): [True: 0, False: 0]
  ------------------
  505|      0|        return junk_string_value_;
  506|      0|      }
  507|       |
  508|      2|      *processed_characters_count = static_cast<int>(current - input);
  509|      2|      return sign ? -Double::NaN() : Double::NaN();
  ------------------
  |  Branch (509:14): [True: 1, False: 1]
  ------------------
  510|      2|    }
  511|  2.87k|  }
  512|       |
  513|  2.86k|  bool leading_zero = false;
  514|  2.86k|  if (*current == '0') {
  ------------------
  |  Branch (514:7): [True: 1.04k, False: 1.82k]
  ------------------
  515|  1.04k|    if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (515:9): [True: 3, False: 1.04k]
  ------------------
  516|      3|      *processed_characters_count = static_cast<int>(current - input);
  517|      3|      return SignedZero(sign);
  518|      3|    }
  519|       |
  520|  1.04k|    leading_zero = true;
  521|       |
  522|       |    // It could be hexadecimal value.
  523|  1.04k|    if (((flags_ & ALLOW_HEX) || (flags_ & ALLOW_HEX_FLOATS)) &&
  ------------------
  |  Branch (523:10): [True: 1.04k, False: 0]
  |  Branch (523:34): [True: 0, False: 0]
  ------------------
  524|  1.04k|        (*current == 'x' || *current == 'X')) {
  ------------------
  |  Branch (524:10): [True: 295, False: 746]
  |  Branch (524:29): [True: 425, False: 321]
  ------------------
  525|    720|      ++current;
  526|       |
  527|    720|      if (current == end) return junk_string_value_;  // "0x"
  ------------------
  |  Branch (527:11): [True: 2, False: 718]
  ------------------
  528|       |
  529|    718|      bool parse_as_hex_float = (flags_ & ALLOW_HEX_FLOATS) &&
  ------------------
  |  Branch (529:33): [True: 718, False: 0]
  ------------------
  530|    718|                IsHexFloatString(current, end, separator_, allow_trailing_junk);
  ------------------
  |  Branch (530:17): [True: 286, False: 432]
  ------------------
  531|       |
  532|    718|      if (!parse_as_hex_float && !isDigit(*current, 16)) {
  ------------------
  |  Branch (532:11): [True: 432, False: 286]
  |  Branch (532:34): [True: 85, False: 347]
  ------------------
  533|     85|        return junk_string_value_;
  534|     85|      }
  535|       |
  536|    633|      bool result_is_junk;
  537|    633|      double result = RadixStringToIeee<4>(&current,
  538|    633|                                           end,
  539|    633|                                           sign,
  540|    633|                                           separator_,
  541|    633|                                           parse_as_hex_float,
  542|    633|                                           allow_trailing_junk,
  543|    633|                                           junk_string_value_,
  544|    633|                                           read_as_double,
  545|    633|                                           &result_is_junk);
  546|    633|      if (!result_is_junk) {
  ------------------
  |  Branch (546:11): [True: 633, False: 0]
  ------------------
  547|    633|        if (allow_trailing_spaces) AdvanceToNonspace(&current, end);
  ------------------
  |  Branch (547:13): [True: 633, False: 0]
  ------------------
  548|    633|        *processed_characters_count = static_cast<int>(current - input);
  549|    633|      }
  550|    633|      return result;
  551|    718|    }
  552|       |
  553|       |    // Ignore leading zeros in the integer part.
  554|    701|    while (*current == '0') {
  ------------------
  |  Branch (554:12): [True: 388, False: 313]
  ------------------
  555|    388|      if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (555:11): [True: 8, False: 380]
  ------------------
  556|      8|        *processed_characters_count = static_cast<int>(current - input);
  557|      8|        return SignedZero(sign);
  558|      8|      }
  559|    388|    }
  560|    321|  }
  561|       |
  562|  2.13k|  bool octal = leading_zero && (flags_ & ALLOW_OCTALS) != 0;
  ------------------
  |  Branch (562:16): [True: 313, False: 1.82k]
  |  Branch (562:32): [True: 313, False: 0]
  ------------------
  563|       |
  564|       |  // The longest form of simplified number is: "-<significant digits>.1eXXX\0".
  565|  2.13k|  const int kBufferSize = kMaxSignificantDigits + 10;
  566|  2.13k|  DOUBLE_CONVERSION_STACK_UNINITIALIZED char
  ------------------
  |  |  104|  2.13k|#define DOUBLE_CONVERSION_STACK_UNINITIALIZED __attribute__((uninitialized))
  ------------------
  567|  2.13k|      buffer[kBufferSize];  // NOLINT: size is known at compile time.
  568|  2.13k|  int buffer_pos = 0;
  569|       |
  570|       |  // Copy significant digits of the integer part (if any) to the buffer.
  571|  72.1k|  while (*current >= '0' && *current <= '9') {
  ------------------
  |  Branch (571:10): [True: 71.6k, False: 459]
  |  Branch (571:29): [True: 70.7k, False: 903]
  ------------------
  572|  70.7k|    if (significant_digits < kMaxSignificantDigits) {
  ------------------
  |  Branch (572:9): [True: 69.1k, False: 1.66k]
  ------------------
  573|  69.1k|      DOUBLE_CONVERSION_ASSERT(buffer_pos < kBufferSize);
  ------------------
  |  |   47|  69.1k|    assert(condition)
  ------------------
  |  Branch (573:7): [True: 69.1k, False: 0]
  ------------------
  574|  69.1k|      buffer[buffer_pos++] = static_cast<char>(*current);
  575|  69.1k|      significant_digits++;
  576|       |      // Will later check if it's an octal in the buffer.
  577|  69.1k|    } else {
  578|  1.66k|      insignificant_digits++;  // Move the digit into the exponential part.
  579|  1.66k|      nonzero_digit_dropped = nonzero_digit_dropped || *current != '0';
  ------------------
  |  Branch (579:31): [True: 1.41k, False: 254]
  |  Branch (579:56): [True: 12, False: 242]
  ------------------
  580|  1.66k|    }
  581|  70.7k|    octal = octal && *current < '8';
  ------------------
  |  Branch (581:13): [True: 9.69k, False: 61.0k]
  |  Branch (581:22): [True: 9.68k, False: 4]
  ------------------
  582|  70.7k|    if (Advance(&current, separator_, 10, end)) goto parsing_done;
  ------------------
  |  Branch (582:9): [True: 776, False: 69.9k]
  ------------------
  583|  70.7k|  }
  584|       |
  585|  1.36k|  if (significant_digits == 0) {
  ------------------
  |  Branch (585:7): [True: 258, False: 1.10k]
  ------------------
  586|    258|    octal = false;
  587|    258|  }
  588|       |
  589|  1.36k|  if (*current == '.') {
  ------------------
  |  Branch (589:7): [True: 372, False: 990]
  ------------------
  590|    372|    if (octal && !allow_trailing_junk) return junk_string_value_;
  ------------------
  |  Branch (590:9): [True: 1, False: 371]
  |  Branch (590:18): [True: 0, False: 1]
  ------------------
  591|    372|    if (octal) goto parsing_done;
  ------------------
  |  Branch (591:9): [True: 1, False: 371]
  ------------------
  592|       |
  593|    371|    if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (593:9): [True: 4, False: 367]
  ------------------
  594|      4|      if (significant_digits == 0 && !leading_zero) {
  ------------------
  |  Branch (594:11): [True: 3, False: 1]
  |  Branch (594:38): [True: 2, False: 1]
  ------------------
  595|      2|        return junk_string_value_;
  596|      2|      } else {
  597|      2|        goto parsing_done;
  598|      2|      }
  599|      4|    }
  600|       |
  601|    367|    if (significant_digits == 0) {
  ------------------
  |  Branch (601:9): [True: 147, False: 220]
  ------------------
  602|       |      // octal = false;
  603|       |      // Integer part consists of 0 or is absent. Significant digits start after
  604|       |      // leading zeros (if any).
  605|  2.33M|      while (*current == '0') {
  ------------------
  |  Branch (605:14): [True: 2.33M, False: 134]
  ------------------
  606|  2.33M|        if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (606:13): [True: 13, False: 2.33M]
  ------------------
  607|     13|          *processed_characters_count = static_cast<int>(current - input);
  608|     13|          return SignedZero(sign);
  609|     13|        }
  610|  2.33M|        exponent--;  // Move this 0 into the exponent.
  611|  2.33M|      }
  612|    147|    }
  613|       |
  614|       |    // There is a fractional part.
  615|       |    // We don't emit a '.', but adjust the exponent instead.
  616|   149k|    while (*current >= '0' && *current <= '9') {
  ------------------
  |  Branch (616:12): [True: 149k, False: 32]
  |  Branch (616:31): [True: 149k, False: 70]
  ------------------
  617|   149k|      if (significant_digits < kMaxSignificantDigits) {
  ------------------
  |  Branch (617:11): [True: 65.5k, False: 83.7k]
  ------------------
  618|  65.5k|        DOUBLE_CONVERSION_ASSERT(buffer_pos < kBufferSize);
  ------------------
  |  |   47|  65.5k|    assert(condition)
  ------------------
  |  Branch (618:9): [True: 65.5k, False: 0]
  ------------------
  619|  65.5k|        buffer[buffer_pos++] = static_cast<char>(*current);
  620|  65.5k|        significant_digits++;
  621|  65.5k|        exponent--;
  622|  83.7k|      } else {
  623|       |        // Ignore insignificant digits in the fractional part.
  624|  83.7k|        nonzero_digit_dropped = nonzero_digit_dropped || *current != '0';
  ------------------
  |  Branch (624:33): [True: 63.8k, False: 19.8k]
  |  Branch (624:58): [True: 17, False: 19.8k]
  ------------------
  625|  83.7k|      }
  626|   149k|      if (Advance(&current, separator_, 10, end)) goto parsing_done;
  ------------------
  |  Branch (626:11): [True: 252, False: 148k]
  ------------------
  627|   149k|    }
  628|    354|  }
  629|       |
  630|  1.09k|  if (!leading_zero && exponent == 0 && significant_digits == 0) {
  ------------------
  |  Branch (630:7): [True: 1.03k, False: 53]
  |  Branch (630:24): [True: 955, False: 84]
  |  Branch (630:41): [True: 74, False: 881]
  ------------------
  631|       |    // If leading_zeros is true then the string contains zeros.
  632|       |    // If exponent < 0 then string was [+-]\.0*...
  633|       |    // If significant_digits != 0 the string is not equal to 0.
  634|       |    // Otherwise there are no digits in the string.
  635|     74|    return junk_string_value_;
  636|     74|  }
  637|       |
  638|       |  // Parse exponential part.
  639|  1.01k|  if (*current == 'e' || *current == 'E') {
  ------------------
  |  Branch (639:7): [True: 463, False: 555]
  |  Branch (639:26): [True: 461, False: 94]
  ------------------
  640|    924|    if (octal && !allow_trailing_junk) return junk_string_value_;
  ------------------
  |  Branch (640:9): [True: 1, False: 923]
  |  Branch (640:18): [True: 0, False: 1]
  ------------------
  641|    924|    if (octal) goto parsing_done;
  ------------------
  |  Branch (641:9): [True: 1, False: 923]
  ------------------
  642|    923|    Iterator junk_begin = current;
  643|    923|    ++current;
  644|    923|    if (current == end) {
  ------------------
  |  Branch (644:9): [True: 6, False: 917]
  ------------------
  645|      6|      if (allow_trailing_junk) {
  ------------------
  |  Branch (645:11): [True: 6, False: 0]
  ------------------
  646|      6|        current = junk_begin;
  647|      6|        goto parsing_done;
  648|      6|      } else {
  649|      0|        return junk_string_value_;
  650|      0|      }
  651|      6|    }
  652|    917|    char exponen_sign = '+';
  653|    917|    if (*current == '+' || *current == '-') {
  ------------------
  |  Branch (653:9): [True: 1, False: 916]
  |  Branch (653:28): [True: 339, False: 577]
  ------------------
  654|    340|      exponen_sign = static_cast<char>(*current);
  655|    340|      ++current;
  656|    340|      if (current == end) {
  ------------------
  |  Branch (656:11): [True: 2, False: 338]
  ------------------
  657|      2|        if (allow_trailing_junk) {
  ------------------
  |  Branch (657:13): [True: 2, False: 0]
  ------------------
  658|      2|          current = junk_begin;
  659|      2|          goto parsing_done;
  660|      2|        } else {
  661|      0|          return junk_string_value_;
  662|      0|        }
  663|      2|      }
  664|    340|    }
  665|       |
  666|    915|    if (current == end || *current < '0' || *current > '9') {
  ------------------
  |  Branch (666:9): [True: 0, False: 915]
  |  Branch (666:27): [True: 14, False: 901]
  |  Branch (666:45): [True: 4, False: 897]
  ------------------
  667|     18|      if (allow_trailing_junk) {
  ------------------
  |  Branch (667:11): [True: 18, False: 0]
  ------------------
  668|     18|        current = junk_begin;
  669|     18|        goto parsing_done;
  670|     18|      } else {
  671|      0|        return junk_string_value_;
  672|      0|      }
  673|     18|    }
  674|       |
  675|    897|    const int max_exponent = INT_MAX / 2;
  676|    897|    DOUBLE_CONVERSION_ASSERT(-max_exponent / 2 <= exponent && exponent <= max_exponent / 2);
  ------------------
  |  |   47|    897|    assert(condition)
  ------------------
  |  Branch (676:5): [True: 897, False: 0]
  |  Branch (676:5): [True: 897, False: 0]
  |  Branch (676:5): [True: 897, False: 0]
  ------------------
  677|    897|    int num = 0;
  678|  3.45k|    do {
  679|       |      // Check overflow.
  680|  3.45k|      int digit = *current - '0';
  681|  3.45k|      if (num >= max_exponent / 10
  ------------------
  |  Branch (681:11): [True: 307, False: 3.14k]
  ------------------
  682|    307|          && !(num == max_exponent / 10 && digit <= max_exponent % 10)) {
  ------------------
  |  Branch (682:16): [True: 2, False: 305]
  |  Branch (682:44): [True: 1, False: 1]
  ------------------
  683|    306|        num = max_exponent;
  684|  3.14k|      } else {
  685|  3.14k|        num = num * 10 + digit;
  686|  3.14k|      }
  687|  3.45k|      ++current;
  688|  3.45k|    } while (current != end && *current >= '0' && *current <= '9');
  ------------------
  |  Branch (688:14): [True: 2.57k, False: 884]
  |  Branch (688:32): [True: 2.56k, False: 8]
  |  Branch (688:51): [True: 2.55k, False: 5]
  ------------------
  689|       |
  690|    897|    exponent += (exponen_sign == '-' ? -num : num);
  ------------------
  |  Branch (690:18): [True: 338, False: 559]
  ------------------
  691|    897|  }
  692|       |
  693|    991|  if (!(allow_trailing_spaces || allow_trailing_junk) && (current != end)) {
  ------------------
  |  Branch (693:9): [True: 991, False: 0]
  |  Branch (693:34): [True: 0, False: 0]
  |  Branch (693:58): [True: 0, False: 0]
  ------------------
  694|      0|    return junk_string_value_;
  695|      0|  }
  696|    991|  if (!allow_trailing_junk && AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (696:7): [True: 0, False: 991]
  |  Branch (696:31): [True: 0, False: 0]
  ------------------
  697|      0|    return junk_string_value_;
  698|      0|  }
  699|    991|  if (allow_trailing_spaces) {
  ------------------
  |  Branch (699:7): [True: 991, False: 0]
  ------------------
  700|    991|    AdvanceToNonspace(&current, end);
  701|    991|  }
  702|       |
  703|  2.04k|  parsing_done:
  704|  2.04k|  exponent += insignificant_digits;
  705|       |
  706|  2.04k|  if (octal) {
  ------------------
  |  Branch (706:7): [True: 256, False: 1.79k]
  ------------------
  707|    256|    double result;
  708|    256|    bool result_is_junk;
  709|    256|    char* start = buffer;
  710|    256|    result = RadixStringToIeee<3>(&start,
  711|    256|                                  buffer + buffer_pos,
  712|    256|                                  sign,
  713|    256|                                  separator_,
  714|    256|                                  false, // Don't parse as hex_float.
  715|    256|                                  allow_trailing_junk,
  716|    256|                                  junk_string_value_,
  717|    256|                                  read_as_double,
  718|    256|                                  &result_is_junk);
  719|    256|    DOUBLE_CONVERSION_ASSERT(!result_is_junk);
  ------------------
  |  |   47|    256|    assert(condition)
  ------------------
  |  Branch (719:5): [True: 256, False: 0]
  ------------------
  720|    256|    *processed_characters_count = static_cast<int>(current - input);
  721|    256|    return result;
  722|    256|  }
  723|       |
  724|  1.79k|  if (nonzero_digit_dropped) {
  ------------------
  |  Branch (724:7): [True: 29, False: 1.76k]
  ------------------
  725|     29|    buffer[buffer_pos++] = '1';
  726|     29|    exponent--;
  727|     29|  }
  728|       |
  729|  1.79k|  DOUBLE_CONVERSION_ASSERT(buffer_pos < kBufferSize);
  ------------------
  |  |   47|  1.79k|    assert(condition)
  ------------------
  |  Branch (729:3): [True: 1.79k, False: 0]
  ------------------
  730|  1.79k|  buffer[buffer_pos] = '\0';
  731|       |
  732|       |  // Code above ensures there are no leading zeros and the buffer has fewer than
  733|       |  // kMaxSignificantDecimalDigits characters. Trim trailing zeros.
  734|  1.79k|  Vector<const char> chars(buffer, buffer_pos);
  735|  1.79k|  chars = TrimTrailingZeros(chars);
  736|  1.79k|  exponent += buffer_pos - chars.length();
  737|       |
  738|  1.79k|  double converted;
  739|  1.79k|  if (read_as_double) {
  ------------------
  |  Branch (739:7): [True: 1.79k, False: 0]
  ------------------
  740|  1.79k|    converted = StrtodTrimmed(chars, exponent);
  741|  1.79k|  } else {
  742|      0|    converted = StrtofTrimmed(chars, exponent);
  743|      0|  }
  744|  1.79k|  *processed_characters_count = static_cast<int>(current - input);
  745|  1.79k|  return sign? -converted: converted;
  ------------------
  |  Branch (745:10): [True: 1, False: 1.79k]
  ------------------
  746|  1.79k|}
string-to-double.cc:_ZN17double_conversionL17AdvanceToNonspaceIPKcEEbPT_S3_:
  139|  4.67k|static inline bool AdvanceToNonspace(Iterator* current, Iterator end) {
  140|  6.38k|  while (*current != end) {
  ------------------
  |  Branch (140:10): [True: 4.93k, False: 1.44k]
  ------------------
  141|  4.93k|    if (!isWhitespace(**current)) return true;
  ------------------
  |  Branch (141:9): [True: 3.22k, False: 1.70k]
  ------------------
  142|  1.70k|    ++*current;
  143|  1.70k|  }
  144|  1.44k|  return false;
  145|  4.67k|}
string-to-double.cc:_ZN17double_conversionL12isWhitespaceEi:
  123|  4.93k|static bool isWhitespace(int x) {
  124|  4.93k|  if (x < 128) {
  ------------------
  |  Branch (124:7): [True: 4.93k, False: 0]
  ------------------
  125|  29.7k|    for (int i = 0; i < kWhitespaceTable7Length; i++) {
  ------------------
  |  Branch (125:21): [True: 26.5k, False: 3.22k]
  ------------------
  126|  26.5k|      if (kWhitespaceTable7[i] == x) return true;
  ------------------
  |  Branch (126:11): [True: 1.70k, False: 24.7k]
  ------------------
  127|  26.5k|    }
  128|  4.93k|  } else {
  129|      0|    for (int i = 0; i < kWhitespaceTable16Length; i++) {
  ------------------
  |  Branch (129:21): [True: 0, False: 0]
  ------------------
  130|      0|      if (kWhitespaceTable16[i] == x) return true;
  ------------------
  |  Branch (130:11): [True: 0, False: 0]
  ------------------
  131|      0|    }
  132|      0|  }
  133|  3.22k|  return false;
  134|  4.93k|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_121ConsumeFirstCharacterEcPKcb:
   97|  5.75k|                                         bool case_insensitivity) {
   98|  5.75k|  return case_insensitivity ? ToLower(ch) == str[0] : ch == str[0];
  ------------------
  |  Branch (98:10): [True: 5.75k, False: 0]
  ------------------
   99|  5.75k|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_17ToLowerEc:
   54|  5.77k|inline char ToLower(char ch) {
   55|  5.77k|  static const std::ctype<char>& cType =
   56|  5.77k|      std::use_facet<std::ctype<char> >(std::locale::classic());
   57|  5.77k|  return cType.tolower(ch);
   58|  5.77k|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_116ConsumeSubStringIPKcEEbPT_S4_S3_b:
   86|      9|                             bool allow_case_insensitivity) {
   87|      9|  if (allow_case_insensitivity) {
  ------------------
  |  Branch (87:7): [True: 9, False: 0]
  ------------------
   88|      9|    return ConsumeSubStringImpl(current, end, substring, ToLower);
   89|      9|  } else {
   90|      0|    return ConsumeSubStringImpl(current, end, substring, Pass);
   91|      0|  }
   92|      9|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_120ConsumeSubStringImplIPKcPFccEEEbPT_S6_S3_T0_:
   68|      9|                                        Converter converter) {
   69|      9|  DOUBLE_CONVERSION_ASSERT(converter(**current) == *substring);
  ------------------
  |  |   47|      9|    assert(condition)
  ------------------
  |  Branch (69:3): [True: 9, False: 0]
  ------------------
   70|     19|  for (substring++; *substring != '\0'; substring++) {
  ------------------
  |  Branch (70:21): [True: 15, False: 4]
  ------------------
   71|     15|    ++*current;
   72|     15|    if (*current == end || converter(**current) != *substring) {
  ------------------
  |  Branch (72:9): [True: 3, False: 12]
  |  Branch (72:28): [True: 2, False: 10]
  ------------------
   73|      5|      return false;
   74|      5|    }
   75|     15|  }
   76|      4|  ++*current;
   77|      4|  return true;
   78|      9|}
string-to-double.cc:_ZN17double_conversionL7AdvanceIPKcEEbPT_tiRS3_:
  190|  9.37M|static bool Advance (Iterator* it, uc16 separator, int base, Iterator& end) {
  191|  9.37M|  if (separator == StringToDoubleConverter::kNoSeparator) {
  ------------------
  |  Branch (191:7): [True: 9.37M, False: 0]
  ------------------
  192|  9.37M|    ++(*it);
  193|  9.37M|    return *it == end;
  194|  9.37M|  }
  195|      0|  if (!isDigit(**it, base)) {
  ------------------
  |  Branch (195:7): [True: 0, False: 0]
  ------------------
  196|      0|    ++(*it);
  197|      0|    return *it == end;
  198|      0|  }
  199|      0|  ++(*it);
  200|      0|  if (*it == end) return true;
  ------------------
  |  Branch (200:7): [True: 0, False: 0]
  ------------------
  201|      0|  if (*it + 1 == end) return false;
  ------------------
  |  Branch (201:7): [True: 0, False: 0]
  ------------------
  202|      0|  if (**it == separator && isDigit(*(*it + 1), base)) {
  ------------------
  |  Branch (202:7): [True: 0, False: 0]
  |  Branch (202:28): [True: 0, False: 0]
  ------------------
  203|      0|    ++(*it);
  204|      0|  }
  205|      0|  return *it == end;
  206|      0|}
string-to-double.cc:_ZN17double_conversionL10SignedZeroEb:
  155|     33|static double SignedZero(bool sign) {
  156|     33|  return sign ? -0.0 : 0.0;
  ------------------
  |  Branch (156:10): [True: 1, False: 32]
  ------------------
  157|     33|}
string-to-double.cc:_ZN17double_conversionL16IsHexFloatStringIPKcEEbT_S3_tb:
  219|  1.00k|                             bool allow_trailing_junk) {
  220|  1.00k|  DOUBLE_CONVERSION_ASSERT(start != end);
  ------------------
  |  |   47|  1.00k|    assert(condition)
  ------------------
  |  Branch (220:3): [True: 1.00k, False: 0]
  ------------------
  221|       |
  222|  1.00k|  Iterator current = start;
  223|       |
  224|  1.00k|  bool saw_digit = false;
  225|  8.05k|  while (isDigit(*current, 16)) {
  ------------------
  |  Branch (225:10): [True: 7.29k, False: 764]
  ------------------
  226|  7.29k|    saw_digit = true;
  227|  7.29k|    if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (227:9): [True: 240, False: 7.05k]
  ------------------
  228|  7.29k|  }
  229|    764|  if (*current == '.') {
  ------------------
  |  Branch (229:7): [True: 144, False: 620]
  ------------------
  230|    144|    if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (230:9): [True: 3, False: 141]
  ------------------
  231|  4.56M|    while (isDigit(*current, 16)) {
  ------------------
  |  Branch (231:12): [True: 4.56M, False: 125]
  ------------------
  232|  4.56M|      saw_digit = true;
  233|  4.56M|      if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (233:11): [True: 16, False: 4.56M]
  ------------------
  234|  4.56M|    }
  235|    141|  }
  236|    745|  if (!saw_digit) return false;
  ------------------
  |  Branch (236:7): [True: 61, False: 684]
  ------------------
  237|    684|  if (*current != 'p' && *current != 'P') return false;
  ------------------
  |  Branch (237:7): [True: 300, False: 384]
  |  Branch (237:26): [True: 88, False: 212]
  ------------------
  238|    596|  if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (238:7): [True: 2, False: 594]
  ------------------
  239|    594|  if (*current == '+' || *current == '-') {
  ------------------
  |  Branch (239:7): [True: 3, False: 591]
  |  Branch (239:26): [True: 136, False: 455]
  ------------------
  240|    139|    if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (240:9): [True: 2, False: 137]
  ------------------
  241|    139|  }
  242|    592|  if (!isDigit(*current, 10)) return false;
  ------------------
  |  Branch (242:7): [True: 20, False: 572]
  ------------------
  243|    572|  if (Advance(&current, separator, 16, end)) return true;
  ------------------
  |  Branch (243:7): [True: 226, False: 346]
  ------------------
  244|  2.40k|  while (isDigit(*current, 10)) {
  ------------------
  |  Branch (244:10): [True: 2.36k, False: 44]
  ------------------
  245|  2.36k|    if (Advance(&current, separator, 16, end)) return true;
  ------------------
  |  Branch (245:9): [True: 302, False: 2.06k]
  ------------------
  246|  2.36k|  }
  247|     44|  return allow_trailing_junk || !AdvanceToNonspace(&current, end);
  ------------------
  |  Branch (247:10): [True: 44, False: 0]
  |  Branch (247:33): [True: 0, False: 0]
  ------------------
  248|    346|}
string-to-double.cc:_ZN17double_conversionL7isDigitEii:
  148|  4.58M|static bool isDigit(int x, int radix) {
  149|  4.58M|  return (x >= '0' && x <= '9' && x < '0' + radix)
  ------------------
  |  Branch (149:11): [True: 4.58M, False: 346]
  |  Branch (149:23): [True: 4.57M, False: 8.50k]
  |  Branch (149:35): [True: 4.57M, False: 0]
  ------------------
  150|  8.84k|      || (radix > 10 && x >= 'a' && x < 'a' + radix - 10)
  ------------------
  |  Branch (150:11): [True: 8.78k, False: 64]
  |  Branch (150:25): [True: 5.13k, False: 3.64k]
  |  Branch (150:37): [True: 4.70k, False: 428]
  ------------------
  151|  4.14k|      || (radix > 10 && x >= 'A' && x < 'A' + radix - 10);
  ------------------
  |  Branch (151:11): [True: 4.07k, False: 64]
  |  Branch (151:25): [True: 3.75k, False: 324]
  |  Branch (151:37): [True: 3.05k, False: 694]
  ------------------
  152|  4.58M|}
string-to-double.cc:_ZN17double_conversionL17RadixStringToIeeeILi4EPKcEEdPT0_S3_btbbdbPb:
  264|    633|                                bool* result_is_junk) {
  265|    633|  DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|    633|    assert(condition)
  ------------------
  |  Branch (265:3): [True: 633, False: 0]
  ------------------
  266|    633|  DOUBLE_CONVERSION_ASSERT(!parse_as_hex_float ||
  ------------------
  |  |   47|    633|    assert(condition)
  ------------------
  |  Branch (266:3): [True: 347, False: 286]
  |  Branch (266:3): [True: 286, False: 0]
  |  Branch (266:3): [True: 633, False: 0]
  ------------------
  267|    633|      IsHexFloatString(*current, end, separator, allow_trailing_junk));
  268|       |
  269|    633|  const int kDoubleSize = Double::kSignificandSize;
  270|    633|  const int kSingleSize = Single::kSignificandSize;
  271|    633|  const int kSignificandSize = read_as_double? kDoubleSize: kSingleSize;
  ------------------
  |  Branch (271:32): [True: 633, False: 0]
  ------------------
  272|       |
  273|    633|  *result_is_junk = true;
  274|       |
  275|    633|  int64_t number = 0;
  276|    633|  int exponent = 0;
  277|    633|  const int radix = (1 << radix_log_2);
  278|       |  // Whether we have encountered a '.' and are parsing the decimal digits.
  279|       |  // Only relevant if parse_as_hex_float is true.
  280|    633|  bool post_decimal = false;
  281|       |
  282|       |  // Skip leading 0s.
  283|  1.14k|  while (**current == '0') {
  ------------------
  |  Branch (283:10): [True: 516, False: 624]
  ------------------
  284|    516|    if (Advance(current, separator, radix, end)) {
  ------------------
  |  Branch (284:9): [True: 9, False: 507]
  ------------------
  285|      9|      *result_is_junk = false;
  286|      9|      return SignedZero(sign);
  287|      9|    }
  288|    516|  }
  289|       |
  290|  2.23M|  while (true) {
  ------------------
  |  Branch (290:10): [True: 2.23M, Folded]
  ------------------
  291|  2.23M|    int digit;
  292|  2.23M|    if (IsDecimalDigitForRadix(**current, radix)) {
  ------------------
  |  Branch (292:9): [True: 2.23M, False: 2.82k]
  ------------------
  293|  2.23M|      digit = static_cast<char>(**current) - '0';
  294|  2.23M|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (294:11): [True: 2.23M, False: 924]
  ------------------
  295|  2.23M|    } else if (IsCharacterDigitForRadix(**current, radix, 'a')) {
  ------------------
  |  Branch (295:16): [True: 1.05k, False: 1.77k]
  ------------------
  296|  1.05k|      digit = static_cast<char>(**current) - 'a' + 10;
  297|  1.05k|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (297:11): [True: 65, False: 988]
  ------------------
  298|  1.77k|    } else if (IsCharacterDigitForRadix(**current, radix, 'A')) {
  ------------------
  |  Branch (298:16): [True: 1.38k, False: 391]
  ------------------
  299|  1.38k|      digit = static_cast<char>(**current) - 'A' + 10;
  300|  1.38k|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (300:11): [True: 78, False: 1.30k]
  ------------------
  301|  1.38k|    } else if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (301:16): [True: 303, False: 88]
  |  Branch (301:38): [True: 42, False: 261]
  ------------------
  302|     42|      post_decimal = true;
  303|     42|      Advance(current, separator, radix, end);
  304|     42|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|     42|    assert(condition)
  ------------------
  |  Branch (304:7): [True: 42, False: 0]
  ------------------
  305|     42|      continue;
  306|    349|    } else if (parse_as_hex_float && (**current == 'p' || **current == 'P')) {
  ------------------
  |  Branch (306:16): [True: 261, False: 88]
  |  Branch (306:39): [True: 170, False: 91]
  |  Branch (306:59): [True: 91, False: 0]
  ------------------
  307|    261|      break;
  308|    261|    } else {
  309|     88|      if (allow_trailing_junk || !AdvanceToNonspace(current, end)) {
  ------------------
  |  Branch (309:11): [True: 88, False: 0]
  |  Branch (309:34): [True: 0, False: 0]
  ------------------
  310|     88|        break;
  311|     88|      } else {
  312|      0|        return junk_string_value;
  313|      0|      }
  314|     88|    }
  315|       |
  316|  2.23M|    number = number * radix + digit;
  317|  2.23M|    int overflow = static_cast<int>(number >> kSignificandSize);
  318|  2.23M|    if (overflow != 0) {
  ------------------
  |  Branch (318:9): [True: 147, False: 2.23M]
  ------------------
  319|       |      // Overflow occurred. Need to determine which direction to round the
  320|       |      // result.
  321|    147|      int overflow_bits_count = 1;
  322|    401|      while (overflow > 1) {
  ------------------
  |  Branch (322:14): [True: 254, False: 147]
  ------------------
  323|    254|        overflow_bits_count++;
  324|    254|        overflow >>= 1;
  325|    254|      }
  326|       |
  327|    147|      int dropped_bits_mask = ((1 << overflow_bits_count) - 1);
  328|    147|      int dropped_bits = static_cast<int>(number) & dropped_bits_mask;
  329|    147|      number >>= overflow_bits_count;
  330|    147|      exponent += overflow_bits_count;
  331|       |
  332|    147|      bool zero_tail = true;
  333|  2.99k|      for (;;) {
  334|  2.99k|        if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (334:13): [True: 103, False: 2.88k]
  ------------------
  335|  2.88k|        if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (335:13): [True: 611, False: 2.27k]
  |  Branch (335:35): [True: 2, False: 609]
  ------------------
  336|       |          // Just run over the '.'. We are just trying to see whether there is
  337|       |          // a non-zero digit somewhere.
  338|      2|          Advance(current, separator, radix, end);
  339|      2|          DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      2|    assert(condition)
  ------------------
  |  Branch (339:11): [True: 2, False: 0]
  ------------------
  340|      2|          post_decimal = true;
  341|      2|        }
  342|  2.88k|        if (!isDigit(**current, radix)) break;
  ------------------
  |  Branch (342:13): [True: 44, False: 2.84k]
  ------------------
  343|  2.84k|        zero_tail = zero_tail && **current == '0';
  ------------------
  |  Branch (343:21): [True: 361, False: 2.48k]
  |  Branch (343:34): [True: 300, False: 61]
  ------------------
  344|  2.84k|        if (!post_decimal) exponent += radix_log_2;
  ------------------
  |  Branch (344:13): [True: 2.54k, False: 299]
  ------------------
  345|  2.84k|      }
  346|       |
  347|    147|      if (!parse_as_hex_float &&
  ------------------
  |  Branch (347:11): [True: 122, False: 25]
  ------------------
  348|    122|          !allow_trailing_junk &&
  ------------------
  |  Branch (348:11): [True: 0, False: 122]
  ------------------
  349|      0|          AdvanceToNonspace(current, end)) {
  ------------------
  |  Branch (349:11): [True: 0, False: 0]
  ------------------
  350|      0|        return junk_string_value;
  351|      0|      }
  352|       |
  353|    147|      int middle_value = (1 << (overflow_bits_count - 1));
  354|    147|      if (dropped_bits > middle_value) {
  ------------------
  |  Branch (354:11): [True: 57, False: 90]
  ------------------
  355|     57|        number++;  // Rounding up.
  356|     90|      } else if (dropped_bits == middle_value) {
  ------------------
  |  Branch (356:18): [True: 17, False: 73]
  ------------------
  357|       |        // Rounding to even to consistency with decimals: half-way case rounds
  358|       |        // up if significant part is odd and down otherwise.
  359|     17|        if ((number & 1) != 0 || !zero_tail) {
  ------------------
  |  Branch (359:13): [True: 9, False: 8]
  |  Branch (359:34): [True: 2, False: 6]
  ------------------
  360|     11|          number++;  // Rounding up.
  361|     11|        }
  362|     17|      }
  363|       |
  364|       |      // Rounding up may cause overflow.
  365|    147|      if ((number & ((int64_t)1 << kSignificandSize)) != 0) {
  ------------------
  |  Branch (365:11): [True: 2, False: 145]
  ------------------
  366|      2|        exponent++;
  367|      2|        number >>= 1;
  368|      2|      }
  369|    147|      break;
  370|    147|    }
  371|  2.23M|    if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (371:9): [True: 128, False: 2.23M]
  ------------------
  372|  2.23M|  }
  373|       |
  374|    624|  DOUBLE_CONVERSION_ASSERT(number < ((int64_t)1 << kSignificandSize));
  ------------------
  |  |   47|    624|    assert(condition)
  ------------------
  |  Branch (374:3): [True: 624, False: 0]
  ------------------
  375|    624|  DOUBLE_CONVERSION_ASSERT(static_cast<int64_t>(static_cast<double>(number)) == number);
  ------------------
  |  |   47|    624|    assert(condition)
  ------------------
  |  Branch (375:3): [True: 624, False: 0]
  ------------------
  376|       |
  377|    624|  *result_is_junk = false;
  378|       |
  379|    624|  if (parse_as_hex_float) {
  ------------------
  |  Branch (379:7): [True: 286, False: 338]
  ------------------
  380|    286|    DOUBLE_CONVERSION_ASSERT(**current == 'p' || **current == 'P');
  ------------------
  |  |   47|    286|    assert(condition)
  ------------------
  |  Branch (380:5): [True: 183, False: 103]
  |  Branch (380:5): [True: 103, False: 0]
  |  Branch (380:5): [True: 286, False: 0]
  ------------------
  381|    286|    Advance(current, separator, radix, end);
  382|    286|    DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|    286|    assert(condition)
  ------------------
  |  Branch (382:5): [True: 286, False: 0]
  ------------------
  383|    286|    bool is_negative = false;
  384|    286|    if (**current == '+') {
  ------------------
  |  Branch (384:9): [True: 1, False: 285]
  ------------------
  385|      1|      Advance(current, separator, radix, end);
  386|      1|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      1|    assert(condition)
  ------------------
  |  Branch (386:7): [True: 1, False: 0]
  ------------------
  387|    285|    } else if (**current == '-') {
  ------------------
  |  Branch (387:16): [True: 67, False: 218]
  ------------------
  388|     67|      is_negative = true;
  389|     67|      Advance(current, separator, radix, end);
  390|     67|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|     67|    assert(condition)
  ------------------
  |  Branch (390:7): [True: 67, False: 0]
  ------------------
  391|     67|    }
  392|    286|    int written_exponent = 0;
  393|  1.48k|    while (IsDecimalDigitForRadix(**current, 10)) {
  ------------------
  |  Branch (393:12): [True: 1.46k, False: 22]
  ------------------
  394|       |      // No need to read exponents if they are too big. That could potentially overflow
  395|       |      // the `written_exponent` variable.
  396|  1.46k|      if (abs(written_exponent) <= 100 * Double::kMaxExponent) {
  ------------------
  |  Branch (396:11): [True: 1.16k, False: 302]
  ------------------
  397|  1.16k|        written_exponent = 10 * written_exponent + **current - '0';
  398|  1.16k|      }
  399|  1.46k|      if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (399:11): [True: 264, False: 1.20k]
  ------------------
  400|  1.46k|    }
  401|    286|    if (is_negative) written_exponent = -written_exponent;
  ------------------
  |  Branch (401:9): [True: 67, False: 219]
  ------------------
  402|    286|    exponent += written_exponent;
  403|    286|  }
  404|       |
  405|    624|  if (exponent == 0 || number == 0) {
  ------------------
  |  Branch (405:7): [True: 223, False: 401]
  |  Branch (405:24): [True: 18, False: 383]
  ------------------
  406|    241|    if (sign) {
  ------------------
  |  Branch (406:9): [True: 54, False: 187]
  ------------------
  407|     54|      if (number == 0) return -0.0;
  ------------------
  |  Branch (407:11): [True: 1, False: 53]
  ------------------
  408|     53|      number = -number;
  409|     53|    }
  410|    240|    return static_cast<double>(number);
  411|    241|  }
  412|       |
  413|    383|  DOUBLE_CONVERSION_ASSERT(number != 0);
  ------------------
  |  |   47|    383|    assert(condition)
  ------------------
  |  Branch (413:3): [True: 383, False: 0]
  ------------------
  414|    383|  double result = Double(DiyFp(number, exponent)).value();
  415|    383|  return sign ? -result : result;
  ------------------
  |  Branch (415:10): [True: 1, False: 382]
  ------------------
  416|    383|}
string-to-double.cc:_ZN17double_conversionL22IsDecimalDigitForRadixEii:
  173|  2.24M|static bool inline IsDecimalDigitForRadix(int c, int radix) {
  174|  2.24M|  return '0' <= c && c <= '9' && (c - '0') < radix;
  ------------------
  |  Branch (174:10): [True: 2.24M, False: 101]
  |  Branch (174:22): [True: 2.23M, False: 2.74k]
  |  Branch (174:34): [True: 2.23M, False: 0]
  ------------------
  175|  2.24M|}
string-to-double.cc:_ZN17double_conversionL24IsCharacterDigitForRadixEiic:
  184|  4.60k|static bool IsCharacterDigitForRadix(int c, int radix, char a_character) {
  185|  4.60k|  return radix > 10 && c >= a_character && c < a_character + radix - 10;
  ------------------
  |  Branch (185:10): [True: 4.60k, False: 0]
  |  Branch (185:24): [True: 2.93k, False: 1.66k]
  |  Branch (185:44): [True: 2.43k, False: 497]
  ------------------
  186|  4.60k|}
string-to-double.cc:_ZN17double_conversionL17RadixStringToIeeeILi3EPcEEdPT0_S2_btbbdbPb:
  264|    256|                                bool* result_is_junk) {
  265|    256|  DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|    256|    assert(condition)
  ------------------
  |  Branch (265:3): [True: 256, False: 0]
  ------------------
  266|    256|  DOUBLE_CONVERSION_ASSERT(!parse_as_hex_float ||
  ------------------
  |  |   47|    256|    assert(condition)
  ------------------
  |  Branch (266:3): [True: 256, False: 0]
  |  Branch (266:3): [True: 0, False: 0]
  |  Branch (266:3): [True: 256, False: 0]
  ------------------
  267|    256|      IsHexFloatString(*current, end, separator, allow_trailing_junk));
  268|       |
  269|    256|  const int kDoubleSize = Double::kSignificandSize;
  270|    256|  const int kSingleSize = Single::kSignificandSize;
  271|    256|  const int kSignificandSize = read_as_double? kDoubleSize: kSingleSize;
  ------------------
  |  Branch (271:32): [True: 256, False: 0]
  ------------------
  272|       |
  273|    256|  *result_is_junk = true;
  274|       |
  275|    256|  int64_t number = 0;
  276|    256|  int exponent = 0;
  277|    256|  const int radix = (1 << radix_log_2);
  278|       |  // Whether we have encountered a '.' and are parsing the decimal digits.
  279|       |  // Only relevant if parse_as_hex_float is true.
  280|    256|  bool post_decimal = false;
  281|       |
  282|       |  // Skip leading 0s.
  283|    256|  while (**current == '0') {
  ------------------
  |  Branch (283:10): [True: 0, False: 256]
  ------------------
  284|      0|    if (Advance(current, separator, radix, end)) {
  ------------------
  |  Branch (284:9): [True: 0, False: 0]
  ------------------
  285|      0|      *result_is_junk = false;
  286|      0|      return SignedZero(sign);
  287|      0|    }
  288|      0|  }
  289|       |
  290|  3.53k|  while (true) {
  ------------------
  |  Branch (290:10): [True: 3.53k, Folded]
  ------------------
  291|  3.53k|    int digit;
  292|  3.53k|    if (IsDecimalDigitForRadix(**current, radix)) {
  ------------------
  |  Branch (292:9): [True: 3.53k, False: 0]
  ------------------
  293|  3.53k|      digit = static_cast<char>(**current) - '0';
  294|  3.53k|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (294:11): [True: 0, False: 3.53k]
  ------------------
  295|  3.53k|    } else if (IsCharacterDigitForRadix(**current, radix, 'a')) {
  ------------------
  |  Branch (295:16): [True: 0, False: 0]
  ------------------
  296|      0|      digit = static_cast<char>(**current) - 'a' + 10;
  297|      0|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (297:11): [True: 0, False: 0]
  ------------------
  298|      0|    } else if (IsCharacterDigitForRadix(**current, radix, 'A')) {
  ------------------
  |  Branch (298:16): [True: 0, False: 0]
  ------------------
  299|      0|      digit = static_cast<char>(**current) - 'A' + 10;
  300|      0|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (300:11): [True: 0, False: 0]
  ------------------
  301|      0|    } else if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (301:16): [True: 0, False: 0]
  |  Branch (301:38): [True: 0, False: 0]
  ------------------
  302|      0|      post_decimal = true;
  303|      0|      Advance(current, separator, radix, end);
  304|      0|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (304:7): [True: 0, False: 0]
  ------------------
  305|      0|      continue;
  306|      0|    } else if (parse_as_hex_float && (**current == 'p' || **current == 'P')) {
  ------------------
  |  Branch (306:16): [True: 0, False: 0]
  |  Branch (306:39): [True: 0, False: 0]
  |  Branch (306:59): [True: 0, False: 0]
  ------------------
  307|      0|      break;
  308|      0|    } else {
  309|      0|      if (allow_trailing_junk || !AdvanceToNonspace(current, end)) {
  ------------------
  |  Branch (309:11): [True: 0, False: 0]
  |  Branch (309:34): [True: 0, False: 0]
  ------------------
  310|      0|        break;
  311|      0|      } else {
  312|      0|        return junk_string_value;
  313|      0|      }
  314|      0|    }
  315|       |
  316|  3.53k|    number = number * radix + digit;
  317|  3.53k|    int overflow = static_cast<int>(number >> kSignificandSize);
  318|  3.53k|    if (overflow != 0) {
  ------------------
  |  Branch (318:9): [True: 141, False: 3.39k]
  ------------------
  319|       |      // Overflow occurred. Need to determine which direction to round the
  320|       |      // result.
  321|    141|      int overflow_bits_count = 1;
  322|    165|      while (overflow > 1) {
  ------------------
  |  Branch (322:14): [True: 24, False: 141]
  ------------------
  323|     24|        overflow_bits_count++;
  324|     24|        overflow >>= 1;
  325|     24|      }
  326|       |
  327|    141|      int dropped_bits_mask = ((1 << overflow_bits_count) - 1);
  328|    141|      int dropped_bits = static_cast<int>(number) & dropped_bits_mask;
  329|    141|      number >>= overflow_bits_count;
  330|    141|      exponent += overflow_bits_count;
  331|       |
  332|    141|      bool zero_tail = true;
  333|  6.29k|      for (;;) {
  334|  6.29k|        if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (334:13): [True: 141, False: 6.14k]
  ------------------
  335|  6.14k|        if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (335:13): [True: 0, False: 6.14k]
  |  Branch (335:35): [True: 0, False: 0]
  ------------------
  336|       |          // Just run over the '.'. We are just trying to see whether there is
  337|       |          // a non-zero digit somewhere.
  338|      0|          Advance(current, separator, radix, end);
  339|      0|          DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (339:11): [True: 0, False: 0]
  ------------------
  340|      0|          post_decimal = true;
  341|      0|        }
  342|  6.14k|        if (!isDigit(**current, radix)) break;
  ------------------
  |  Branch (342:13): [True: 0, False: 6.14k]
  ------------------
  343|  6.14k|        zero_tail = zero_tail && **current == '0';
  ------------------
  |  Branch (343:21): [True: 1.99k, False: 4.15k]
  |  Branch (343:34): [True: 1.93k, False: 52]
  ------------------
  344|  6.14k|        if (!post_decimal) exponent += radix_log_2;
  ------------------
  |  Branch (344:13): [True: 6.14k, False: 0]
  ------------------
  345|  6.14k|      }
  346|       |
  347|    141|      if (!parse_as_hex_float &&
  ------------------
  |  Branch (347:11): [True: 141, False: 0]
  ------------------
  348|    141|          !allow_trailing_junk &&
  ------------------
  |  Branch (348:11): [True: 0, False: 141]
  ------------------
  349|      0|          AdvanceToNonspace(current, end)) {
  ------------------
  |  Branch (349:11): [True: 0, False: 0]
  ------------------
  350|      0|        return junk_string_value;
  351|      0|      }
  352|       |
  353|    141|      int middle_value = (1 << (overflow_bits_count - 1));
  354|    141|      if (dropped_bits > middle_value) {
  ------------------
  |  Branch (354:11): [True: 5, False: 136]
  ------------------
  355|      5|        number++;  // Rounding up.
  356|    136|      } else if (dropped_bits == middle_value) {
  ------------------
  |  Branch (356:18): [True: 66, False: 70]
  ------------------
  357|       |        // Rounding to even to consistency with decimals: half-way case rounds
  358|       |        // up if significant part is odd and down otherwise.
  359|     66|        if ((number & 1) != 0 || !zero_tail) {
  ------------------
  |  Branch (359:13): [True: 47, False: 19]
  |  Branch (359:34): [True: 7, False: 12]
  ------------------
  360|     54|          number++;  // Rounding up.
  361|     54|        }
  362|     66|      }
  363|       |
  364|       |      // Rounding up may cause overflow.
  365|    141|      if ((number & ((int64_t)1 << kSignificandSize)) != 0) {
  ------------------
  |  Branch (365:11): [True: 15, False: 126]
  ------------------
  366|     15|        exponent++;
  367|     15|        number >>= 1;
  368|     15|      }
  369|    141|      break;
  370|    141|    }
  371|  3.39k|    if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (371:9): [True: 115, False: 3.28k]
  ------------------
  372|  3.39k|  }
  373|       |
  374|    256|  DOUBLE_CONVERSION_ASSERT(number < ((int64_t)1 << kSignificandSize));
  ------------------
  |  |   47|    256|    assert(condition)
  ------------------
  |  Branch (374:3): [True: 256, False: 0]
  ------------------
  375|    256|  DOUBLE_CONVERSION_ASSERT(static_cast<int64_t>(static_cast<double>(number)) == number);
  ------------------
  |  |   47|    256|    assert(condition)
  ------------------
  |  Branch (375:3): [True: 256, False: 0]
  ------------------
  376|       |
  377|    256|  *result_is_junk = false;
  378|       |
  379|    256|  if (parse_as_hex_float) {
  ------------------
  |  Branch (379:7): [True: 0, False: 256]
  ------------------
  380|      0|    DOUBLE_CONVERSION_ASSERT(**current == 'p' || **current == 'P');
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (380:5): [True: 0, False: 0]
  |  Branch (380:5): [True: 0, False: 0]
  |  Branch (380:5): [True: 0, False: 0]
  ------------------
  381|      0|    Advance(current, separator, radix, end);
  382|      0|    DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (382:5): [True: 0, False: 0]
  ------------------
  383|      0|    bool is_negative = false;
  384|      0|    if (**current == '+') {
  ------------------
  |  Branch (384:9): [True: 0, False: 0]
  ------------------
  385|      0|      Advance(current, separator, radix, end);
  386|      0|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (386:7): [True: 0, False: 0]
  ------------------
  387|      0|    } else if (**current == '-') {
  ------------------
  |  Branch (387:16): [True: 0, False: 0]
  ------------------
  388|      0|      is_negative = true;
  389|      0|      Advance(current, separator, radix, end);
  390|      0|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (390:7): [True: 0, False: 0]
  ------------------
  391|      0|    }
  392|      0|    int written_exponent = 0;
  393|      0|    while (IsDecimalDigitForRadix(**current, 10)) {
  ------------------
  |  Branch (393:12): [True: 0, False: 0]
  ------------------
  394|       |      // No need to read exponents if they are too big. That could potentially overflow
  395|       |      // the `written_exponent` variable.
  396|      0|      if (abs(written_exponent) <= 100 * Double::kMaxExponent) {
  ------------------
  |  Branch (396:11): [True: 0, False: 0]
  ------------------
  397|      0|        written_exponent = 10 * written_exponent + **current - '0';
  398|      0|      }
  399|      0|      if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (399:11): [True: 0, False: 0]
  ------------------
  400|      0|    }
  401|      0|    if (is_negative) written_exponent = -written_exponent;
  ------------------
  |  Branch (401:9): [True: 0, False: 0]
  ------------------
  402|      0|    exponent += written_exponent;
  403|      0|  }
  404|       |
  405|    256|  if (exponent == 0 || number == 0) {
  ------------------
  |  Branch (405:7): [True: 115, False: 141]
  |  Branch (405:24): [True: 0, False: 141]
  ------------------
  406|    115|    if (sign) {
  ------------------
  |  Branch (406:9): [True: 53, False: 62]
  ------------------
  407|     53|      if (number == 0) return -0.0;
  ------------------
  |  Branch (407:11): [True: 0, False: 53]
  ------------------
  408|     53|      number = -number;
  409|     53|    }
  410|    115|    return static_cast<double>(number);
  411|    115|  }
  412|       |
  413|    141|  DOUBLE_CONVERSION_ASSERT(number != 0);
  ------------------
  |  |   47|    141|    assert(condition)
  ------------------
  |  Branch (413:3): [True: 141, False: 0]
  ------------------
  414|    141|  double result = Double(DiyFp(number, exponent)).value();
  415|    141|  return sign ? -result : result;
  ------------------
  |  Branch (415:10): [True: 1, False: 140]
  ------------------
  416|    141|}
string-to-double.cc:_ZN17double_conversionL7AdvanceIPcEEbPT_tiRS2_:
  190|  9.68k|static bool Advance (Iterator* it, uc16 separator, int base, Iterator& end) {
  191|  9.68k|  if (separator == StringToDoubleConverter::kNoSeparator) {
  ------------------
  |  Branch (191:7): [True: 9.68k, False: 0]
  ------------------
  192|  9.68k|    ++(*it);
  193|  9.68k|    return *it == end;
  194|  9.68k|  }
  195|      0|  if (!isDigit(**it, base)) {
  ------------------
  |  Branch (195:7): [True: 0, False: 0]
  ------------------
  196|      0|    ++(*it);
  197|      0|    return *it == end;
  198|      0|  }
  199|      0|  ++(*it);
  200|      0|  if (*it == end) return true;
  ------------------
  |  Branch (200:7): [True: 0, False: 0]
  ------------------
  201|      0|  if (*it + 1 == end) return false;
  ------------------
  |  Branch (201:7): [True: 0, False: 0]
  ------------------
  202|      0|  if (**it == separator && isDigit(*(*it + 1), base)) {
  ------------------
  |  Branch (202:7): [True: 0, False: 0]
  |  Branch (202:28): [True: 0, False: 0]
  ------------------
  203|      0|    ++(*it);
  204|      0|  }
  205|      0|  return *it == end;
  206|      0|}

_ZN17double_conversion23StringToDoubleConverterC2EiddPKcS2_t:
  173|  2.90k|      : flags_(flags),
  174|  2.90k|        empty_string_value_(empty_string_value),
  175|  2.90k|        junk_string_value_(junk_string_value),
  176|  2.90k|        infinity_symbol_(infinity_symbol),
  177|  2.90k|        nan_symbol_(nan_symbol),
  178|  2.90k|        separator_(separator) {
  179|  2.90k|  }

_ZN17double_conversion13StrtodTrimmedENS_6VectorIKcEEi:
  466|  1.79k|double StrtodTrimmed(Vector<const char> trimmed, int exponent) {
  467|  1.79k|  DOUBLE_CONVERSION_ASSERT(trimmed.length() <= kMaxSignificantDecimalDigits);
  ------------------
  |  |   47|  1.79k|    assert(condition)
  ------------------
  |  Branch (467:3): [True: 1.79k, False: 0]
  ------------------
  468|  1.79k|  DOUBLE_CONVERSION_ASSERT(AssertTrimmedDigits(trimmed));
  ------------------
  |  |   47|  1.79k|    assert(condition)
  ------------------
  |  Branch (468:3): [True: 1.79k, False: 0]
  ------------------
  469|  1.79k|  double guess;
  470|  1.79k|  const bool is_correct = ComputeGuess(trimmed, exponent, &guess);
  471|  1.79k|  if (is_correct) {
  ------------------
  |  Branch (471:7): [True: 1.06k, False: 732]
  ------------------
  472|  1.06k|    return guess;
  473|  1.06k|  }
  474|    732|  DiyFp upper_boundary = Double(guess).UpperBoundary();
  475|    732|  int comparison = CompareBufferWithDiyFp(trimmed, exponent, upper_boundary);
  476|    732|  if (comparison < 0) {
  ------------------
  |  Branch (476:7): [True: 207, False: 525]
  ------------------
  477|    207|    return guess;
  478|    525|  } else if (comparison > 0) {
  ------------------
  |  Branch (478:14): [True: 431, False: 94]
  ------------------
  479|    431|    return Double(guess).NextDouble();
  480|    431|  } else if ((Double(guess).Significand() & 1) == 0) {
  ------------------
  |  Branch (480:14): [True: 48, False: 46]
  ------------------
  481|       |    // Round towards even.
  482|     48|    return guess;
  483|     48|  } else {
  484|     46|    return Double(guess).NextDouble();
  485|     46|  }
  486|    732|}
strtod.cc:_ZN17double_conversionL19AssertTrimmedDigitsERKNS_6VectorIKcEE:
  457|  1.79k|static bool AssertTrimmedDigits(const Vector<const char>& buffer) {
  458|   120k|  for(int i = 0; i < buffer.length(); ++i) {
  ------------------
  |  Branch (458:18): [True: 118k, False: 1.79k]
  ------------------
  459|   118k|    if(!IsDigit(buffer[i])) {
  ------------------
  |  Branch (459:8): [True: 0, False: 118k]
  ------------------
  460|      0|      return false;
  461|      0|    }
  462|   118k|  }
  463|  1.79k|  return (buffer.length() == 0) || (IsNonZeroDigit(buffer[0]) && IsNonZeroDigit(buffer[buffer.length()-1]));
  ------------------
  |  Branch (463:10): [True: 62, False: 1.73k]
  |  Branch (463:37): [True: 1.73k, False: 0]
  |  Branch (463:66): [True: 1.73k, False: 0]
  ------------------
  464|  1.79k|}
strtod.cc:_ZN17double_conversionL7IsDigitEc:
  444|   118k|static bool IsDigit(const char d) {
  445|   118k|  return ('0' <= d) && (d <= '9');
  ------------------
  |  Branch (445:10): [True: 118k, False: 0]
  |  Branch (445:24): [True: 118k, False: 0]
  ------------------
  446|   118k|}
strtod.cc:_ZN17double_conversionL14IsNonZeroDigitEc:
  448|  3.46k|static bool IsNonZeroDigit(const char d) {
  449|  3.46k|  return ('1' <= d) && (d <= '9');
  ------------------
  |  Branch (449:10): [True: 3.46k, False: 0]
  |  Branch (449:24): [True: 3.46k, False: 0]
  ------------------
  450|  3.46k|}
strtod.cc:_ZN17double_conversionL12ComputeGuessENS_6VectorIKcEEiPd:
  420|  1.79k|                         double* guess) {
  421|  1.79k|  if (trimmed.length() == 0) {
  ------------------
  |  Branch (421:7): [True: 62, False: 1.73k]
  ------------------
  422|     62|    *guess = 0.0;
  423|     62|    return true;
  424|     62|  }
  425|  1.73k|  if (exponent + trimmed.length() - 1 >= kMaxDecimalPower) {
  ------------------
  |  Branch (425:7): [True: 110, False: 1.62k]
  ------------------
  426|    110|    *guess = Double::Infinity();
  427|    110|    return true;
  428|    110|  }
  429|  1.62k|  if (exponent + trimmed.length() <= kMinDecimalPower) {
  ------------------
  |  Branch (429:7): [True: 69, False: 1.55k]
  ------------------
  430|     69|    *guess = 0.0;
  431|     69|    return true;
  432|     69|  }
  433|       |
  434|  1.55k|  if (DoubleStrtod(trimmed, exponent, guess) ||
  ------------------
  |  Branch (434:7): [True: 280, False: 1.27k]
  ------------------
  435|  1.27k|      DiyFpStrtod(trimmed, exponent, guess)) {
  ------------------
  |  Branch (435:7): [True: 539, False: 733]
  ------------------
  436|    819|    return true;
  437|    819|  }
  438|    733|  if (*guess == Double::Infinity()) {
  ------------------
  |  Branch (438:7): [True: 1, False: 732]
  ------------------
  439|      1|    return true;
  440|      1|  }
  441|    732|  return false;
  442|    733|}
strtod.cc:_ZN17double_conversionL12DoubleStrtodENS_6VectorIKcEEiPd:
  192|  1.55k|                         double* result) {
  193|       |#if !defined(DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS)
  194|       |  // Avoid "unused parameter" warnings
  195|       |  (void) trimmed;
  196|       |  (void) exponent;
  197|       |  (void) result;
  198|       |  // On x86 the floating-point stack can be 64 or 80 bits wide. If it is
  199|       |  // 80 bits wide (as is the case on Linux) then double-rounding occurs and the
  200|       |  // result is not accurate.
  201|       |  // We know that Windows32 uses 64 bits and is therefore accurate.
  202|       |  return false;
  203|       |#else
  204|  1.55k|  if (trimmed.length() <= kMaxExactDoubleIntegerDecimalDigits) {
  ------------------
  |  Branch (204:7): [True: 873, False: 679]
  ------------------
  205|    873|    int read_digits;
  206|       |    // The trimmed input fits into a double.
  207|       |    // If the 10^exponent (resp. 10^-exponent) fits into a double too then we
  208|       |    // can compute the result-double simply by multiplying (resp. dividing) the
  209|       |    // two numbers.
  210|       |    // This is possible because IEEE guarantees that floating-point operations
  211|       |    // return the best possible approximation.
  212|    873|    if (exponent < 0 && -exponent < kExactPowersOfTenSize) {
  ------------------
  |  Branch (212:9): [True: 305, False: 568]
  |  Branch (212:25): [True: 77, False: 228]
  ------------------
  213|       |      // 10^-exponent fits into a double.
  214|     77|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  215|     77|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|     77|    assert(condition)
  ------------------
  |  Branch (215:7): [True: 77, False: 0]
  ------------------
  216|     77|      *result /= exact_powers_of_ten[-exponent];
  217|     77|      return true;
  218|     77|    }
  219|    796|    if (0 <= exponent && exponent < kExactPowersOfTenSize) {
  ------------------
  |  Branch (219:9): [True: 568, False: 228]
  |  Branch (219:26): [True: 149, False: 419]
  ------------------
  220|       |      // 10^exponent fits into a double.
  221|    149|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  222|    149|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|    149|    assert(condition)
  ------------------
  |  Branch (222:7): [True: 149, False: 0]
  ------------------
  223|    149|      *result *= exact_powers_of_ten[exponent];
  224|    149|      return true;
  225|    149|    }
  226|    647|    int remaining_digits =
  227|    647|        kMaxExactDoubleIntegerDecimalDigits - trimmed.length();
  228|    647|    if ((0 <= exponent) &&
  ------------------
  |  Branch (228:9): [True: 419, False: 228]
  ------------------
  229|    419|        (exponent - remaining_digits < kExactPowersOfTenSize)) {
  ------------------
  |  Branch (229:9): [True: 54, False: 365]
  ------------------
  230|       |      // The trimmed string was short and we can multiply it with
  231|       |      // 10^remaining_digits. As a result the remaining exponent now fits
  232|       |      // into a double too.
  233|     54|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  234|     54|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|     54|    assert(condition)
  ------------------
  |  Branch (234:7): [True: 54, False: 0]
  ------------------
  235|     54|      *result *= exact_powers_of_ten[remaining_digits];
  236|     54|      *result *= exact_powers_of_ten[exponent - remaining_digits];
  237|     54|      return true;
  238|     54|    }
  239|    647|  }
  240|  1.27k|  return false;
  241|  1.55k|#endif
  242|  1.55k|}
strtod.cc:_ZN17double_conversionL10ReadUint64ENS_6VectorIKcEEPi:
  152|  1.55k|                           int* number_of_read_digits) {
  153|  1.55k|  uint64_t result = 0;
  154|  1.55k|  int i = 0;
  155|  18.3k|  while (i < buffer.length() && result <= (kMaxUint64 / 10 - 1)) {
  ------------------
  |  Branch (155:10): [True: 17.0k, False: 1.21k]
  |  Branch (155:33): [True: 16.7k, False: 333]
  ------------------
  156|  16.7k|    int digit = buffer[i++] - '0';
  157|  16.7k|    DOUBLE_CONVERSION_ASSERT(0 <= digit && digit <= 9);
  ------------------
  |  |   47|  16.7k|    assert(condition)
  ------------------
  |  Branch (157:5): [True: 16.7k, False: 0]
  |  Branch (157:5): [True: 16.7k, False: 0]
  |  Branch (157:5): [True: 16.7k, False: 0]
  ------------------
  158|  16.7k|    result = 10 * result + digit;
  159|  16.7k|  }
  160|  1.55k|  *number_of_read_digits = i;
  161|  1.55k|  return result;
  162|  1.55k|}
strtod.cc:_ZN17double_conversionL11DiyFpStrtodENS_6VectorIKcEEiPd:
  272|  1.27k|                        double* result) {
  273|  1.27k|  DiyFp input;
  274|  1.27k|  int remaining_decimals;
  275|  1.27k|  ReadDiyFp(buffer, &input, &remaining_decimals);
  276|       |  // Since we may have dropped some digits the input is not accurate.
  277|       |  // If remaining_decimals is different than 0 than the error is at most
  278|       |  // .5 ulp (unit in the last place).
  279|       |  // We don't want to deal with fractions and therefore keep a common
  280|       |  // denominator.
  281|  1.27k|  const int kDenominatorLog = 3;
  282|  1.27k|  const int kDenominator = 1 << kDenominatorLog;
  283|       |  // Move the remaining decimals into the exponent.
  284|  1.27k|  exponent += remaining_decimals;
  285|  1.27k|  uint64_t error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
  ------------------
  |  Branch (285:21): [True: 939, False: 333]
  ------------------
  286|       |
  287|  1.27k|  int old_e = input.e();
  288|  1.27k|  input.Normalize();
  289|  1.27k|  error <<= old_e - input.e();
  290|       |
  291|  1.27k|  DOUBLE_CONVERSION_ASSERT(exponent <= PowersOfTenCache::kMaxDecimalExponent);
  ------------------
  |  |   47|  1.27k|    assert(condition)
  ------------------
  |  Branch (291:3): [True: 1.27k, False: 0]
  ------------------
  292|  1.27k|  if (exponent < PowersOfTenCache::kMinDecimalExponent) {
  ------------------
  |  Branch (292:7): [True: 0, False: 1.27k]
  ------------------
  293|      0|    *result = 0.0;
  294|      0|    return true;
  295|      0|  }
  296|  1.27k|  DiyFp cached_power;
  297|  1.27k|  int cached_decimal_exponent;
  298|  1.27k|  PowersOfTenCache::GetCachedPowerForDecimalExponent(exponent,
  299|  1.27k|                                                     &cached_power,
  300|  1.27k|                                                     &cached_decimal_exponent);
  301|       |
  302|  1.27k|  if (cached_decimal_exponent != exponent) {
  ------------------
  |  Branch (302:7): [True: 1.16k, False: 105]
  ------------------
  303|  1.16k|    int adjustment_exponent = exponent - cached_decimal_exponent;
  304|  1.16k|    DiyFp adjustment_power = AdjustmentPowerOfTen(adjustment_exponent);
  305|  1.16k|    input.Multiply(adjustment_power);
  306|  1.16k|    if (kMaxUint64DecimalDigits - buffer.length() >= adjustment_exponent) {
  ------------------
  |  Branch (306:9): [True: 531, False: 636]
  ------------------
  307|       |      // The product of input with the adjustment power fits into a 64 bit
  308|       |      // integer.
  309|    531|      DOUBLE_CONVERSION_ASSERT(DiyFp::kSignificandSize == 64);
  ------------------
  |  |   47|    531|    assert(condition)
  ------------------
  |  Branch (309:7): [True: 531, Folded]
  ------------------
  310|    636|    } else {
  311|       |      // The adjustment power is exact. There is hence only an error of 0.5.
  312|    636|      error += kDenominator / 2;
  313|    636|    }
  314|  1.16k|  }
  315|       |
  316|  1.27k|  input.Multiply(cached_power);
  317|       |  // The error introduced by a multiplication of a*b equals
  318|       |  //   error_a + error_b + error_a*error_b/2^64 + 0.5
  319|       |  // Substituting a with 'input' and b with 'cached_power' we have
  320|       |  //   error_b = 0.5  (all cached powers have an error of less than 0.5 ulp),
  321|       |  //   error_ab = 0 or 1 / kDenominator > error_a*error_b/ 2^64
  322|  1.27k|  int error_b = kDenominator / 2;
  323|  1.27k|  int error_ab = (error == 0 ? 0 : 1);  // We round up to 1.
  ------------------
  |  Branch (323:19): [True: 613, False: 659]
  ------------------
  324|  1.27k|  int fixed_error = kDenominator / 2;
  325|  1.27k|  error += error_b + error_ab + fixed_error;
  326|       |
  327|  1.27k|  old_e = input.e();
  328|  1.27k|  input.Normalize();
  329|  1.27k|  error <<= old_e - input.e();
  330|       |
  331|       |  // See if the double's significand changes if we add/subtract the error.
  332|  1.27k|  int order_of_magnitude = DiyFp::kSignificandSize + input.e();
  333|  1.27k|  int effective_significand_size =
  334|  1.27k|      Double::SignificandSizeForOrderOfMagnitude(order_of_magnitude);
  335|  1.27k|  int precision_digits_count =
  336|  1.27k|      DiyFp::kSignificandSize - effective_significand_size;
  337|  1.27k|  if (precision_digits_count + kDenominatorLog >= DiyFp::kSignificandSize) {
  ------------------
  |  Branch (337:7): [True: 56, False: 1.21k]
  ------------------
  338|       |    // This can only happen for very small denormals. In this case the
  339|       |    // half-way multiplied by the denominator exceeds the range of an uint64.
  340|       |    // Simply shift everything to the right.
  341|     56|    int shift_amount = (precision_digits_count + kDenominatorLog) -
  342|     56|        DiyFp::kSignificandSize + 1;
  343|     56|    input.set_f(input.f() >> shift_amount);
  344|     56|    input.set_e(input.e() + shift_amount);
  345|       |    // We add 1 for the lost precision of error, and kDenominator for
  346|       |    // the lost precision of input.f().
  347|     56|    error = (error >> shift_amount) + 1 + kDenominator;
  348|     56|    precision_digits_count -= shift_amount;
  349|     56|  }
  350|       |  // We use uint64_ts now. This only works if the DiyFp uses uint64_ts too.
  351|  1.27k|  DOUBLE_CONVERSION_ASSERT(DiyFp::kSignificandSize == 64);
  ------------------
  |  |   47|  1.27k|    assert(condition)
  ------------------
  |  Branch (351:3): [True: 1.27k, Folded]
  ------------------
  352|  1.27k|  DOUBLE_CONVERSION_ASSERT(precision_digits_count < 64);
  ------------------
  |  |   47|  1.27k|    assert(condition)
  ------------------
  |  Branch (352:3): [True: 1.27k, False: 0]
  ------------------
  353|  1.27k|  uint64_t one64 = 1;
  354|  1.27k|  uint64_t precision_bits_mask = (one64 << precision_digits_count) - 1;
  355|  1.27k|  uint64_t precision_bits = input.f() & precision_bits_mask;
  356|  1.27k|  uint64_t half_way = one64 << (precision_digits_count - 1);
  357|  1.27k|  precision_bits *= kDenominator;
  358|  1.27k|  half_way *= kDenominator;
  359|  1.27k|  DiyFp rounded_input(input.f() >> precision_digits_count,
  360|  1.27k|                      input.e() + precision_digits_count);
  361|  1.27k|  if (precision_bits >= half_way + error) {
  ------------------
  |  Branch (361:7): [True: 260, False: 1.01k]
  ------------------
  362|    260|    rounded_input.set_f(rounded_input.f() + 1);
  363|    260|  }
  364|       |  // If the last_bits are too close to the half-way case than we are too
  365|       |  // inaccurate and round down. In this case we return false so that we can
  366|       |  // fall back to a more precise algorithm.
  367|       |
  368|  1.27k|  *result = Double(rounded_input).value();
  369|  1.27k|  if (half_way - error < precision_bits && precision_bits < half_way + error) {
  ------------------
  |  Branch (369:7): [True: 993, False: 279]
  |  Branch (369:44): [True: 733, False: 260]
  ------------------
  370|       |    // Too imprecise. The caller will have to fall back to a slower version.
  371|       |    // However the returned number is guaranteed to be either the correct
  372|       |    // double, or the next-lower double.
  373|    733|    return false;
  374|    733|  } else {
  375|    539|    return true;
  376|    539|  }
  377|  1.27k|}
strtod.cc:_ZN17double_conversionL9ReadDiyFpENS_6VectorIKcEEPNS_5DiyFpEPi:
  171|  1.27k|                      int* remaining_decimals) {
  172|  1.27k|  int read_digits;
  173|  1.27k|  uint64_t significand = ReadUint64(buffer, &read_digits);
  174|  1.27k|  if (buffer.length() == read_digits) {
  ------------------
  |  Branch (174:7): [True: 939, False: 333]
  ------------------
  175|    939|    *result = DiyFp(significand, 0);
  176|    939|    *remaining_decimals = 0;
  177|    939|  } else {
  178|       |    // Round the significand.
  179|    333|    if (buffer[read_digits] >= '5') {
  ------------------
  |  Branch (179:9): [True: 78, False: 255]
  ------------------
  180|     78|      significand++;
  181|     78|    }
  182|       |    // Compute the binary exponent.
  183|    333|    int exponent = 0;
  184|    333|    *result = DiyFp(significand, exponent);
  185|    333|    *remaining_decimals = buffer.length() - read_digits;
  186|    333|  }
  187|  1.27k|}
strtod.cc:_ZN17double_conversionL20AdjustmentPowerOfTenEi:
  247|  1.16k|static DiyFp AdjustmentPowerOfTen(int exponent) {
  248|  1.16k|  DOUBLE_CONVERSION_ASSERT(0 < exponent);
  ------------------
  |  |   47|  1.16k|    assert(condition)
  ------------------
  |  Branch (248:3): [True: 1.16k, False: 0]
  ------------------
  249|  1.16k|  DOUBLE_CONVERSION_ASSERT(exponent < PowersOfTenCache::kDecimalExponentDistance);
  ------------------
  |  |   47|  1.16k|    assert(condition)
  ------------------
  |  Branch (249:3): [True: 1.16k, False: 0]
  ------------------
  250|       |  // Simply hardcode the remaining powers for the given decimal exponent
  251|       |  // distance.
  252|  1.16k|  DOUBLE_CONVERSION_ASSERT(PowersOfTenCache::kDecimalExponentDistance == 8);
  ------------------
  |  |   47|  1.16k|    assert(condition)
  ------------------
  |  Branch (252:3): [True: 1.16k, Folded]
  ------------------
  253|  1.16k|  switch (exponent) {
  254|    183|    case 1: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xa0000000, 00000000), -60);
  ------------------
  |  |  195|    183|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (254:5): [True: 183, False: 984]
  ------------------
  255|    106|    case 2: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc8000000, 00000000), -57);
  ------------------
  |  |  195|    106|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (255:5): [True: 106, False: 1.06k]
  ------------------
  256|    110|    case 3: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xfa000000, 00000000), -54);
  ------------------
  |  |  195|    110|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (256:5): [True: 110, False: 1.05k]
  ------------------
  257|    364|    case 4: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0x9c400000, 00000000), -50);
  ------------------
  |  |  195|    364|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (257:5): [True: 364, False: 803]
  ------------------
  258|    126|    case 5: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc3500000, 00000000), -47);
  ------------------
  |  |  195|    126|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (258:5): [True: 126, False: 1.04k]
  ------------------
  259|    132|    case 6: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xf4240000, 00000000), -44);
  ------------------
  |  |  195|    132|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (259:5): [True: 132, False: 1.03k]
  ------------------
  260|    146|    case 7: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0x98968000, 00000000), -40);
  ------------------
  |  |  195|    146|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (260:5): [True: 146, False: 1.02k]
  ------------------
  261|      0|    default:
  ------------------
  |  Branch (261:5): [True: 0, False: 1.16k]
  ------------------
  262|      0|      DOUBLE_CONVERSION_UNREACHABLE();
  ------------------
  |  |   77|      0|#define DOUBLE_CONVERSION_UNREACHABLE()   (abort())
  ------------------
  263|  1.16k|  }
  264|  1.16k|}
strtod.cc:_ZN17double_conversionL22CompareBufferWithDiyFpENS_6VectorIKcEEiNS_5DiyFpE:
  390|    732|                                  DiyFp diy_fp) {
  391|    732|  DOUBLE_CONVERSION_ASSERT(buffer.length() + exponent <= kMaxDecimalPower + 1);
  ------------------
  |  |   47|    732|    assert(condition)
  ------------------
  |  Branch (391:3): [True: 732, False: 0]
  ------------------
  392|    732|  DOUBLE_CONVERSION_ASSERT(buffer.length() + exponent > kMinDecimalPower);
  ------------------
  |  |   47|    732|    assert(condition)
  ------------------
  |  Branch (392:3): [True: 732, False: 0]
  ------------------
  393|    732|  DOUBLE_CONVERSION_ASSERT(buffer.length() <= kMaxSignificantDecimalDigits);
  ------------------
  |  |   47|    732|    assert(condition)
  ------------------
  |  Branch (393:3): [True: 732, False: 0]
  ------------------
  394|       |  // Make sure that the Bignum will be able to hold all our numbers.
  395|       |  // Our Bignum implementation has a separate field for exponents. Shifts will
  396|       |  // consume at most one bigit (< 64 bits).
  397|       |  // ln(10) == 3.3219...
  398|    732|  DOUBLE_CONVERSION_ASSERT(((kMaxDecimalPower + 1) * 333 / 100) < Bignum::kMaxSignificantBits);
  ------------------
  |  |   47|    732|    assert(condition)
  ------------------
  |  Branch (398:3): [True: 732, Folded]
  ------------------
  399|    732|  Bignum buffer_bignum;
  400|    732|  Bignum diy_fp_bignum;
  401|    732|  buffer_bignum.AssignDecimalString(buffer);
  402|    732|  diy_fp_bignum.AssignUInt64(diy_fp.f());
  403|    732|  if (exponent >= 0) {
  ------------------
  |  Branch (403:7): [True: 424, False: 308]
  ------------------
  404|    424|    buffer_bignum.MultiplyByPowerOfTen(exponent);
  405|    424|  } else {
  406|    308|    diy_fp_bignum.MultiplyByPowerOfTen(-exponent);
  407|    308|  }
  408|    732|  if (diy_fp.e() > 0) {
  ------------------
  |  Branch (408:7): [True: 407, False: 325]
  ------------------
  409|    407|    diy_fp_bignum.ShiftLeft(diy_fp.e());
  410|    407|  } else {
  411|    325|    buffer_bignum.ShiftLeft(-diy_fp.e());
  412|    325|  }
  413|    732|  return Bignum::Compare(buffer_bignum, diy_fp_bignum);
  414|    732|}

_ZN17double_conversion17TrimTrailingZerosENS_6VectorIKcEE:
   53|  1.79k|inline Vector<const char> TrimTrailingZeros(Vector<const char> buffer) {
   54|  7.97k|  for (int i = buffer.length() - 1; i >= 0; --i) {
  ------------------
  |  Branch (54:37): [True: 7.90k, False: 62]
  ------------------
   55|  7.90k|    if (buffer[i] != '0') {
  ------------------
  |  Branch (55:9): [True: 1.73k, False: 6.17k]
  ------------------
   56|  1.73k|      return buffer.SubVector(0, i + 1);
   57|  1.73k|    }
   58|  7.90k|  }
   59|     62|  return Vector<const char>(buffer.start(), 0);
   60|  1.79k|}

_ZN17double_conversion7BitCastIdmEET_RKT0_:
  395|  3.12k|Dest BitCast(const Source& source) {
  396|       |  // Compile time assertion: sizeof(Dest) == sizeof(Source)
  397|       |  // A compile error here means your Dest and Source have different sizes.
  398|  3.12k|#if __cplusplus >= 201103L
  399|  3.12k|  static_assert(sizeof(Dest) == sizeof(Source),
  400|  3.12k|                "source and destination size mismatch");
  401|       |#else
  402|       |  DOUBLE_CONVERSION_UNUSED
  403|       |  typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];
  404|       |#endif
  405|       |
  406|  3.12k|  Dest dest;
  407|  3.12k|  memmove(&dest, &source, sizeof(dest));
  408|  3.12k|  return dest;
  409|  3.12k|}
_ZN17double_conversion6VectorIKcEC2EPS1_i:
  252|  3.58k|  Vector(T* data, int len) : start_(data), length_(len) {
  253|       |    DOUBLE_CONVERSION_ASSERT(len == 0 || (len > 0 && data != DOUBLE_CONVERSION_NULLPTR));
  ------------------
  |  |   47|  3.58k|    assert(condition)
  ------------------
  |  Branch (253:5): [True: 3.46k, False: 0]
  |  Branch (253:5): [True: 3.46k, False: 0]
  |  Branch (253:5): [True: 124, False: 3.46k]
  |  Branch (253:5): [True: 3.58k, False: 0]
  ------------------
  254|  3.58k|  }
_ZNK17double_conversion6VectorIKcEixEi:
  275|   221k|  T& operator[](int index) const {
  276|   221k|    DOUBLE_CONVERSION_ASSERT(0 <= index && index < length_);
  ------------------
  |  |   47|   221k|    assert(condition)
  ------------------
  |  Branch (276:5): [True: 221k, False: 0]
  |  Branch (276:5): [True: 221k, False: 0]
  |  Branch (276:5): [True: 221k, False: 0]
  ------------------
  277|   221k|    return start_[index];
  278|   221k|  }
_ZN17double_conversion6VectorIKcE9SubVectorEii:
  258|  1.73k|  Vector<T> SubVector(int from, int to) {
  259|  1.73k|    DOUBLE_CONVERSION_ASSERT(to <= length_);
  ------------------
  |  |   47|  1.73k|    assert(condition)
  ------------------
  |  Branch (259:5): [True: 1.73k, False: 0]
  ------------------
  260|  1.73k|    DOUBLE_CONVERSION_ASSERT(from < to);
  ------------------
  |  |   47|  1.73k|    assert(condition)
  ------------------
  |  Branch (260:5): [True: 1.73k, False: 0]
  ------------------
  261|  1.73k|    DOUBLE_CONVERSION_ASSERT(0 <= from);
  ------------------
  |  |   47|  1.73k|    assert(condition)
  ------------------
  |  Branch (261:5): [True: 1.73k, False: 0]
  ------------------
  262|  1.73k|    return Vector<T>(start() + from, to - from);
  263|  1.73k|  }
_ZNK17double_conversion6VectorIKcE5startEv:
  272|  1.79k|  T* start() const { return start_; }
_ZNK17double_conversion6VectorIKcE6lengthEv:
  266|   161k|  int length() const { return length_; }
_ZN17double_conversion7BitCastImdEET_RKT0_:
  395|  1.30k|Dest BitCast(const Source& source) {
  396|       |  // Compile time assertion: sizeof(Dest) == sizeof(Source)
  397|       |  // A compile error here means your Dest and Source have different sizes.
  398|  1.30k|#if __cplusplus >= 201103L
  399|  1.30k|  static_assert(sizeof(Dest) == sizeof(Source),
  400|  1.30k|                "source and destination size mismatch");
  401|       |#else
  402|       |  DOUBLE_CONVERSION_UNUSED
  403|       |  typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];
  404|       |#endif
  405|       |
  406|  1.30k|  Dest dest;
  407|  1.30k|  memmove(&dest, &source, sizeof(dest));
  408|  1.30k|  return dest;
  409|  1.30k|}

LLVMFuzzerTestOneInput:
   23|  2.90k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
   24|  2.90k|  StringToDoubleConverter converter(
   25|  2.90k|      StringToDoubleConverter::ALLOW_HEX |
   26|  2.90k|          StringToDoubleConverter::ALLOW_OCTALS |
   27|  2.90k|          StringToDoubleConverter::ALLOW_TRAILING_JUNK |
   28|  2.90k|          StringToDoubleConverter::ALLOW_LEADING_SPACES |
   29|  2.90k|          StringToDoubleConverter::ALLOW_TRAILING_SPACES |
   30|  2.90k|          StringToDoubleConverter::ALLOW_SPACES_AFTER_SIGN |
   31|  2.90k|          StringToDoubleConverter::ALLOW_CASE_INSENSIBILITY |
   32|  2.90k|          StringToDoubleConverter::ALLOW_HEX_FLOATS,
   33|  2.90k|      /*empty_string_value=*/0.0,
   34|  2.90k|      /*junk_string_value=*/0.0, "inf", "nan");
   35|  2.90k|  int num_digits_unused;
   36|  2.90k|  converter.StringToDouble(reinterpret_cast<const char*>(data), size,
   37|  2.90k|                           &num_digits_unused);
   38|  2.90k|  return 0;
   39|  2.90k|}

