_ZN18FuzzedDataProviderC2EPKhm:
   37|    300|      : data_ptr_(data), remaining_bytes_(size) {}
_ZN18FuzzedDataProvider15ConsumeIntegralIlEET_v:
  195|    295|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|    295|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|    295|                                std::numeric_limits<T>::max());
  198|    295|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeIlEET_S1_S1_:
  205|    295|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|    295|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|    295|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|    295|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 295]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|    295|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|    295|  uint64_t result = 0;
  215|    295|  size_t offset = 0;
  216|       |
  217|  1.66k|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 1.49k, False: 167]
  |  Branch (217:43): [True: 1.49k, False: 0]
  ------------------
  218|  1.66k|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 1.36k, False: 128]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|  1.36k|    --remaining_bytes_;
  226|  1.36k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|  1.36k|    offset += CHAR_BIT;
  228|  1.36k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|    295|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 0, False: 295]
  ------------------
  232|      0|    result = result % (range + 1);
  233|       |
  234|    295|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|    295|}
_ZN18FuzzedDataProvider15ConsumeIntegralImEET_v:
  195|    295|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|    295|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|    295|                                std::numeric_limits<T>::max());
  198|    295|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeImEET_S1_S1_:
  205|    595|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|    595|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|    595|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|    595|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 595]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|    595|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|    595|  uint64_t result = 0;
  215|    595|  size_t offset = 0;
  216|       |
  217|  2.37k|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 2.23k, False: 144]
  |  Branch (217:43): [True: 1.93k, False: 297]
  ------------------
  218|  2.37k|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 1.78k, False: 154]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|  1.78k|    --remaining_bytes_;
  226|  1.78k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|  1.78k|    offset += CHAR_BIT;
  228|  1.78k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|    595|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 300, False: 295]
  ------------------
  232|    300|    result = result % (range + 1);
  233|       |
  234|    595|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|    595|}
_ZN18FuzzedDataProvider15ConsumeIntegralIiEET_v:
  195|    295|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|    295|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|    295|                                std::numeric_limits<T>::max());
  198|    295|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeIiEET_S1_S1_:
  205|    295|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|    295|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|    295|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|    295|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 295]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|    295|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|    295|  uint64_t result = 0;
  215|    295|  size_t offset = 0;
  216|       |
  217|    927|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 771, False: 156]
  |  Branch (217:43): [True: 771, False: 0]
  ------------------
  218|    927|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 632, False: 139]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|    632|    --remaining_bytes_;
  226|    632|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|    632|    offset += CHAR_BIT;
  228|    632|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|    295|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 295, False: 0]
  ------------------
  232|    295|    result = result % (range + 1);
  233|       |
  234|    295|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|    295|}
_ZN18FuzzedDataProvider15ConsumeIntegralIhEET_v:
  195|    295|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|    295|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|    295|                                std::numeric_limits<T>::max());
  198|    295|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeIhEET_S1_S1_:
  205|    295|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|    295|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|    295|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|    295|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 295]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|    295|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|    295|  uint64_t result = 0;
  215|    295|  size_t offset = 0;
  216|       |
  217|    450|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 295, False: 155]
  |  Branch (217:43): [True: 295, False: 0]
  ------------------
  218|    450|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 155, False: 140]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|    155|    --remaining_bytes_;
  226|    155|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|    155|    offset += CHAR_BIT;
  228|    155|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|    295|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 295, False: 0]
  ------------------
  232|    295|    result = result % (range + 1);
  233|       |
  234|    295|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|    295|}
_ZN18FuzzedDataProvider25ConsumeRandomLengthStringEm:
  153|    295|FuzzedDataProvider::ConsumeRandomLengthString(size_t max_length) {
  154|       |  // Reads bytes from the start of |data_ptr_|. Maps "\\" to "\", and maps "\"
  155|       |  // followed by anything else to the end of the string. As a result of this
  156|       |  // logic, a fuzzer can insert characters into the string, and the string
  157|       |  // will be lengthened to include those new characters, resulting in a more
  158|       |  // stable fuzzer than picking the length of a string independently from
  159|       |  // picking its contents.
  160|    295|  std::string result;
  161|       |
  162|       |  // Reserve the anticipated capacity to prevent several reallocations.
  163|    295|  result.reserve(std::min(max_length, remaining_bytes_));
  164|    635|  for (size_t i = 0; i < max_length && remaining_bytes_ != 0; ++i) {
  ------------------
  |  Branch (164:22): [True: 608, False: 27]
  |  Branch (164:40): [True: 508, False: 100]
  ------------------
  165|    508|    char next = ConvertUnsignedToSigned<char>(data_ptr_[0]);
  166|    508|    Advance(1);
  167|    508|    if (next == '\\' && remaining_bytes_ != 0) {
  ------------------
  |  Branch (167:9): [True: 184, False: 324]
  |  Branch (167:25): [True: 182, False: 2]
  ------------------
  168|    182|      next = ConvertUnsignedToSigned<char>(data_ptr_[0]);
  169|    182|      Advance(1);
  170|    182|      if (next != '\\')
  ------------------
  |  Branch (170:11): [True: 168, False: 14]
  ------------------
  171|    168|        break;
  172|    182|    }
  173|    340|    result += next;
  174|    340|  }
  175|       |
  176|    295|  result.shrink_to_fit();
  177|    295|  return result;
  178|    295|}
_ZN18FuzzedDataProvider11ConsumeBoolEv:
  289|    295|inline bool FuzzedDataProvider::ConsumeBool() {
  290|    295|  return 1 & ConsumeIntegral<uint8_t>();
  291|    295|}
_ZN18FuzzedDataProvider7AdvanceEm:
  344|    690|inline void FuzzedDataProvider::Advance(size_t num_bytes) {
  345|    690|  if (num_bytes > remaining_bytes_)
  ------------------
  |  Branch (345:7): [True: 0, False: 690]
  ------------------
  346|      0|    abort();
  347|       |
  348|    690|  data_ptr_ += num_bytes;
  349|    690|  remaining_bytes_ -= num_bytes;
  350|    690|}
_ZN18FuzzedDataProvider23ConvertUnsignedToSignedIchEET_T0_:
  379|    690|TS FuzzedDataProvider::ConvertUnsignedToSigned(TU value) {
  380|    690|  static_assert(sizeof(TS) == sizeof(TU), "Incompatible data types.");
  381|    690|  static_assert(!std::numeric_limits<TU>::is_signed,
  382|    690|                "Source type must be unsigned.");
  383|       |
  384|       |  // TODO(Dor1s): change to `if constexpr` once C++17 becomes mainstream.
  385|    690|  if (std::numeric_limits<TS>::is_modulo)
  ------------------
  |  Branch (385:7): [Folded - Ignored]
  ------------------
  386|      0|    return static_cast<TS>(value);
  387|       |
  388|       |  // Avoid using implementation-defined unsigned to signed conversions.
  389|       |  // To learn more, see https://stackoverflow.com/questions/13150449.
  390|    690|  if (value <= std::numeric_limits<TS>::max()) {
  ------------------
  |  Branch (390:7): [True: 569, False: 121]
  ------------------
  391|    569|    return static_cast<TS>(value);
  392|    569|  } else {
  393|    121|    constexpr auto TS_min = std::numeric_limits<TS>::min();
  394|    121|    return TS_min + static_cast<TS>(value - TS_min);
  395|    121|  }
  396|    690|}
_ZN18FuzzedDataProvider20ConsumeFloatingPointIdEET_v:
  240|    295|template <typename T> T FuzzedDataProvider::ConsumeFloatingPoint() {
  241|    295|  return ConsumeFloatingPointInRange<T>(std::numeric_limits<T>::lowest(),
  242|    295|                                        std::numeric_limits<T>::max());
  243|    295|}
_ZN18FuzzedDataProvider27ConsumeFloatingPointInRangeIdEET_S1_S1_:
  249|    295|T FuzzedDataProvider::ConsumeFloatingPointInRange(T min, T max) {
  250|    295|  if (min > max)
  ------------------
  |  Branch (250:7): [True: 0, False: 295]
  ------------------
  251|      0|    abort();
  252|       |
  253|    295|  T range = .0;
  254|    295|  T result = min;
  255|    295|  constexpr T zero(.0);
  256|    295|  if (max > zero && min < zero && max > min + std::numeric_limits<T>::max()) {
  ------------------
  |  Branch (256:7): [True: 295, False: 0]
  |  Branch (256:21): [True: 295, False: 0]
  |  Branch (256:35): [True: 295, False: 0]
  ------------------
  257|       |    // The diff |max - min| would overflow the given floating point type. Use
  258|       |    // the half of the diff as the range and consume a bool to decide whether
  259|       |    // the result is in the first of the second part of the diff.
  260|    295|    range = (max / 2.0) - (min / 2.0);
  261|    295|    if (ConsumeBool()) {
  ------------------
  |  Branch (261:9): [True: 45, False: 250]
  ------------------
  262|     45|      result += range;
  263|     45|    }
  264|    295|  } else {
  265|      0|    range = max - min;
  266|      0|  }
  267|       |
  268|    295|  return result + range * ConsumeProbability<T>();
  269|    295|}
_ZN18FuzzedDataProvider18ConsumeProbabilityIdEET_v:
  273|    295|template <typename T> T FuzzedDataProvider::ConsumeProbability() {
  274|    295|  static_assert(std::is_floating_point<T>::value,
  275|    295|                "A floating point type is required.");
  276|       |
  277|       |  // Use different integral types for different floating point types in order
  278|       |  // to provide better density of the resulting values.
  279|    295|  using IntegralType =
  280|    295|      typename std::conditional<(sizeof(T) <= sizeof(uint32_t)), uint32_t,
  281|    295|                                uint64_t>::type;
  282|       |
  283|    295|  T result = static_cast<T>(ConsumeIntegral<IntegralType>());
  284|    295|  result /= static_cast<T>(std::numeric_limits<IntegralType>::max());
  285|    295|  return result;
  286|    295|}
_ZN18FuzzedDataProvider16PickValueInArrayINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELm749EEET_RAT0__KS8_:
  304|    300|T FuzzedDataProvider::PickValueInArray(const T (&array)[size]) {
  305|    300|  static_assert(size > 0, "The array must be non empty.");
  306|    300|  return array[ConsumeIntegralInRange<size_t>(0, size - 1)];
  307|    300|}

LLVMFuzzerTestOneInput:
  222|    300|{
  223|    300|    test_one_input({data, size});
  224|    300|    return 0;
  225|    300|}
fuzz.cpp:_ZL14test_one_inputNSt3__14spanIKhLm18446744073709551615EEE:
   83|    300|{
   84|    300|    CheckGlobals check{};
   85|    300|    (*Assert(g_test_one_input))(buffer);
  ------------------
  |  |   85|    300|#define Assert(val) inline_assertion_check<true>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
   86|    300|}

_Z18locale_fuzz_targetNSt3__14spanIKhLm18446744073709551615EEE:
   39|    300|{
   40|    300|    FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
   41|    300|    const std::string locale_identifier = ConsumeLocaleIdentifier(fuzzed_data_provider);
   42|    300|    if (!IsAvailableLocale(locale_identifier)) {
  ------------------
  |  Branch (42:9): [True: 5, False: 295]
  ------------------
   43|      5|        return;
   44|      5|    }
   45|    295|    const char* c_locale = std::setlocale(LC_ALL, "C");
   46|    295|    assert(c_locale != nullptr);
   47|       |
   48|    295|    const std::string random_string = fuzzed_data_provider.ConsumeRandomLengthString(5);
   49|    295|    int32_t parseint32_out_without_locale;
   50|    295|    const bool parseint32_without_locale = ParseInt32(random_string, &parseint32_out_without_locale);
   51|    295|    int64_t parseint64_out_without_locale;
   52|    295|    const bool parseint64_without_locale = ParseInt64(random_string, &parseint64_out_without_locale);
   53|    295|    const int64_t random_int64 = fuzzed_data_provider.ConsumeIntegral<int64_t>();
   54|    295|    const std::string tostring_without_locale = util::ToString(random_int64);
   55|       |    // The variable `random_int32` is no longer used, but the harness still needs to
   56|       |    // consume the same data that it did previously to not invalidate existing seeds.
   57|    295|    const int32_t random_int32 = fuzzed_data_provider.ConsumeIntegral<int32_t>();
   58|    295|    (void)random_int32;
   59|    295|    const std::string strprintf_int_without_locale = strprintf("%d", random_int64);
  ------------------
  |  | 1172|    295|#define strprintf tfm::format
  ------------------
   60|    295|    const double random_double = fuzzed_data_provider.ConsumeFloatingPoint<double>();
   61|    295|    const std::string strprintf_double_without_locale = strprintf("%f", random_double);
  ------------------
  |  | 1172|    295|#define strprintf tfm::format
  ------------------
   62|       |
   63|    295|    const char* new_locale = std::setlocale(LC_ALL, locale_identifier.c_str());
   64|    295|    assert(new_locale != nullptr);
   65|       |
   66|    295|    int32_t parseint32_out_with_locale;
   67|    295|    const bool parseint32_with_locale = ParseInt32(random_string, &parseint32_out_with_locale);
   68|    295|    assert(parseint32_without_locale == parseint32_with_locale);
   69|    295|    if (parseint32_without_locale) {
  ------------------
  |  Branch (69:9): [True: 40, False: 255]
  ------------------
   70|     40|        assert(parseint32_out_without_locale == parseint32_out_with_locale);
   71|     40|    }
   72|    295|    int64_t parseint64_out_with_locale;
   73|    295|    const bool parseint64_with_locale = ParseInt64(random_string, &parseint64_out_with_locale);
   74|    295|    assert(parseint64_without_locale == parseint64_with_locale);
   75|    295|    if (parseint64_without_locale) {
  ------------------
  |  Branch (75:9): [True: 40, False: 255]
  ------------------
   76|     40|        assert(parseint64_out_without_locale == parseint64_out_with_locale);
   77|     40|    }
   78|    295|    const std::string tostring_with_locale = util::ToString(random_int64);
   79|    295|    assert(tostring_without_locale == tostring_with_locale);
   80|    295|    const std::string strprintf_int_with_locale = strprintf("%d", random_int64);
  ------------------
  |  | 1172|    295|#define strprintf tfm::format
  ------------------
   81|    295|    assert(strprintf_int_without_locale == strprintf_int_with_locale);
   82|    295|    const std::string strprintf_double_with_locale = strprintf("%f", random_double);
  ------------------
  |  | 1172|    295|#define strprintf tfm::format
  ------------------
   83|    295|    assert(strprintf_double_without_locale == strprintf_double_with_locale);
   84|       |
   85|    295|    const std::locale current_cpp_locale;
   86|    295|    assert(current_cpp_locale == std::locale::classic());
   87|    295|}
locale.cpp:_ZN12_GLOBAL__N_123ConsumeLocaleIdentifierER18FuzzedDataProvider:
   23|    300|{
   24|    300|    return fuzzed_data_provider.PickValueInArray<std::string>(locale_identifiers);
   25|    300|}
locale.cpp:_ZN12_GLOBAL__N_117IsAvailableLocaleERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
   28|    300|{
   29|    300|    try {
   30|    300|        (void)std::locale(locale_identifier);
   31|    300|    } catch (const std::runtime_error&) {
   32|      5|        return false;
   33|      5|    }
   34|    295|    return true;
   35|    300|}

_ZN12CheckGlobalsC2Ev:
   56|    300|CheckGlobals::CheckGlobals() : m_impl(std::make_unique<CheckGlobalsImpl>()) {}
_ZN12CheckGlobalsD2Ev:
   57|    300|CheckGlobals::~CheckGlobals() = default;
_ZN16CheckGlobalsImplC2Ev:
   17|    300|    {
   18|    300|        g_used_g_prng = false;
   19|    300|        g_seeded_g_prng_zero = false;
   20|    300|        g_used_system_time = false;
   21|    300|        SetMockTime(0s);
   22|    300|    }
_ZN16CheckGlobalsImplD2Ev:
   24|    300|    {
   25|    300|        if (g_used_g_prng && !g_seeded_g_prng_zero) {
  ------------------
  |  Branch (25:13): [True: 0, False: 300]
  |  Branch (25:30): [True: 0, False: 0]
  ------------------
   26|      0|            std::cerr << "\n\n"
   27|      0|                         "The current fuzz target used the global random state.\n\n"
   28|       |
   29|      0|                         "This is acceptable, but requires the fuzz target to call \n"
   30|      0|                         "SeedRandomStateForTest(SeedRand::ZEROS) in the first line \n"
   31|      0|                         "of the FUZZ_TARGET function.\n\n"
   32|       |
   33|      0|                         "An alternative solution would be to avoid any use of globals.\n\n"
   34|       |
   35|      0|                         "Without a solution, fuzz instability and non-determinism can lead \n"
   36|      0|                         "to non-reproducible bugs or inefficient fuzzing.\n\n"
   37|      0|                      << std::endl;
   38|      0|            std::abort(); // Abort, because AFL may try to recover from a std::exit
   39|      0|        }
   40|       |
   41|    300|        if (g_used_system_time) {
  ------------------
  |  Branch (41:13): [True: 0, False: 300]
  ------------------
   42|      0|            std::cerr << "\n\n"
   43|      0|                         "The current fuzz target accessed system time.\n\n"
   44|       |
   45|      0|                         "This is acceptable, but requires the fuzz target to call \n"
   46|      0|                         "SetMockTime() at the beginning of processing the fuzz input.\n\n"
   47|       |
   48|      0|                         "Without setting mock time, time-dependent behavior can lead \n"
   49|      0|                         "to non-reproducible bugs or inefficient fuzzing.\n\n"
   50|      0|                      << std::endl;
   51|      0|            std::abort();
   52|      0|        }
   53|    300|    }

_ZNK10tinyformat6detail9FormatArg6formatERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEEPKcS9_i:
  541|  1.18k|        {
  542|  1.18k|            TINYFORMAT_ASSERT(m_value);
  ------------------
  |  |  153|  1.18k|#   define TINYFORMAT_ASSERT(cond) assert(cond)
  ------------------
  543|  1.18k|            TINYFORMAT_ASSERT(m_formatImpl);
  ------------------
  |  |  153|  1.18k|#   define TINYFORMAT_ASSERT(cond) assert(cond)
  ------------------
  544|  1.18k|            m_formatImpl(out, fmtBegin, fmtEnd, ntrunc, m_value);
  545|  1.18k|        }
_ZN10tinyformat10FormatListC2EPNS_6detail9FormatArgEi:
  966|  1.18k|            : m_args(args), m_N(N) { }
_ZN10tinyformat6detail21parseWidthOrPrecisionERiRPKcbPKNS0_9FormatArgES1_i:
  593|  1.18k|{
  594|  1.18k|    if (*c >= '0' && *c <= '9') {
  ------------------
  |  Branch (594:9): [True: 1.18k, False: 0]
  |  Branch (594:22): [True: 0, False: 1.18k]
  ------------------
  595|      0|        n = parseIntAndAdvance(c);
  596|      0|    }
  597|  1.18k|    else if (*c == '*') {
  ------------------
  |  Branch (597:14): [True: 0, False: 1.18k]
  ------------------
  598|      0|        ++c;
  599|      0|        n = 0;
  600|      0|        if (positionalMode) {
  ------------------
  |  Branch (600:13): [True: 0, False: 0]
  ------------------
  601|      0|            int pos = parseIntAndAdvance(c) - 1;
  602|      0|            if (*c != '$')
  ------------------
  |  Branch (602:17): [True: 0, False: 0]
  ------------------
  603|      0|                TINYFORMAT_ERROR("tinyformat: Non-positional argument used after a positional one");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  604|      0|            if (pos >= 0 && pos < numArgs)
  ------------------
  |  Branch (604:17): [True: 0, False: 0]
  |  Branch (604:29): [True: 0, False: 0]
  ------------------
  605|      0|                n = args[pos].toInt();
  606|      0|            else
  607|      0|                TINYFORMAT_ERROR("tinyformat: Positional argument out of range");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  608|      0|            ++c;
  609|      0|        }
  610|      0|        else {
  611|      0|            if (argIndex < numArgs)
  ------------------
  |  Branch (611:17): [True: 0, False: 0]
  ------------------
  612|      0|                n = args[argIndex++].toInt();
  613|      0|            else
  614|      0|                TINYFORMAT_ERROR("tinyformat: Not enough arguments to read variable width or precision");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  615|      0|        }
  616|      0|    }
  617|  1.18k|    else {
  618|  1.18k|        return false;
  619|  1.18k|    }
  620|      0|    return true;
  621|  1.18k|}
_ZN10tinyformat6detail24printFormatStringLiteralERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKc:
  629|  2.36k|{
  630|  2.36k|    const char* c = fmt;
  631|  2.36k|    for (;; ++c) {
  632|  2.36k|        if (*c == '\0') {
  ------------------
  |  Branch (632:13): [True: 1.18k, False: 1.18k]
  ------------------
  633|  1.18k|            out.write(fmt, c - fmt);
  634|  1.18k|            return c;
  635|  1.18k|        }
  636|  1.18k|        else if (*c == '%') {
  ------------------
  |  Branch (636:18): [True: 1.18k, False: 0]
  ------------------
  637|  1.18k|            out.write(fmt, c - fmt);
  638|  1.18k|            if (*(c+1) != '%')
  ------------------
  |  Branch (638:17): [True: 1.18k, False: 0]
  ------------------
  639|  1.18k|                return c;
  640|       |            // for "%%", tack trailing % onto next literal section.
  641|      0|            fmt = ++c;
  642|      0|        }
  643|  2.36k|    }
  644|  2.36k|}
_ZN10tinyformat6detail21streamStateFromFormatERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERbS7_RiPKcPKNS0_9FormatArgES8_i:
  685|  1.18k|{
  686|  1.18k|    TINYFORMAT_ASSERT(*fmtStart == '%');
  ------------------
  |  |  153|  1.18k|#   define TINYFORMAT_ASSERT(cond) assert(cond)
  ------------------
  687|       |    // Reset stream state to defaults.
  688|  1.18k|    out.width(0);
  689|  1.18k|    out.precision(6);
  690|  1.18k|    out.fill(' ');
  691|       |    // Reset most flags; ignore irrelevant unitbuf & skipws.
  692|  1.18k|    out.unsetf(std::ios::adjustfield | std::ios::basefield |
  693|  1.18k|               std::ios::floatfield | std::ios::showbase | std::ios::boolalpha |
  694|  1.18k|               std::ios::showpoint | std::ios::showpos | std::ios::uppercase);
  695|  1.18k|    bool precisionSet = false;
  696|  1.18k|    bool widthSet = false;
  697|  1.18k|    int widthExtra = 0;
  698|  1.18k|    const char* c = fmtStart + 1;
  699|       |
  700|       |    // 1) Parse an argument index (if followed by '$') or a width possibly
  701|       |    // preceded with '0' flag.
  702|  1.18k|    if (*c >= '0' && *c <= '9') {
  ------------------
  |  Branch (702:9): [True: 1.18k, False: 0]
  |  Branch (702:22): [True: 0, False: 1.18k]
  ------------------
  703|      0|        const char tmpc = *c;
  704|      0|        int value = parseIntAndAdvance(c);
  705|      0|        if (*c == '$') {
  ------------------
  |  Branch (705:13): [True: 0, False: 0]
  ------------------
  706|       |            // value is an argument index
  707|      0|            if (value > 0 && value <= numArgs)
  ------------------
  |  Branch (707:17): [True: 0, False: 0]
  |  Branch (707:30): [True: 0, False: 0]
  ------------------
  708|      0|                argIndex = value - 1;
  709|      0|            else
  710|      0|                TINYFORMAT_ERROR("tinyformat: Positional argument out of range");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  711|      0|            ++c;
  712|      0|            positionalMode = true;
  713|      0|        }
  714|      0|        else if (positionalMode) {
  ------------------
  |  Branch (714:18): [True: 0, False: 0]
  ------------------
  715|      0|            TINYFORMAT_ERROR("tinyformat: Non-positional argument used after a positional one");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  716|      0|        }
  717|      0|        else {
  718|      0|            if (tmpc == '0') {
  ------------------
  |  Branch (718:17): [True: 0, False: 0]
  ------------------
  719|       |                // Use internal padding so that numeric values are
  720|       |                // formatted correctly, eg -00010 rather than 000-10
  721|      0|                out.fill('0');
  722|      0|                out.setf(std::ios::internal, std::ios::adjustfield);
  723|      0|            }
  724|      0|            if (value != 0) {
  ------------------
  |  Branch (724:17): [True: 0, False: 0]
  ------------------
  725|       |                // Nonzero value means that we parsed width.
  726|      0|                widthSet = true;
  727|      0|                out.width(value);
  728|      0|            }
  729|      0|        }
  730|      0|    }
  731|  1.18k|    else if (positionalMode) {
  ------------------
  |  Branch (731:14): [True: 0, False: 1.18k]
  ------------------
  732|      0|        TINYFORMAT_ERROR("tinyformat: Non-positional argument used after a positional one");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  733|      0|    }
  734|       |    // 2) Parse flags and width if we did not do it in previous step.
  735|  1.18k|    if (!widthSet) {
  ------------------
  |  Branch (735:9): [True: 1.18k, False: 0]
  ------------------
  736|       |        // Parse flags
  737|  1.18k|        for (;; ++c) {
  738|  1.18k|            switch (*c) {
  739|      0|                case '#':
  ------------------
  |  Branch (739:17): [True: 0, False: 1.18k]
  ------------------
  740|      0|                    out.setf(std::ios::showpoint | std::ios::showbase);
  741|      0|                    continue;
  742|      0|                case '0':
  ------------------
  |  Branch (742:17): [True: 0, False: 1.18k]
  ------------------
  743|       |                    // overridden by left alignment ('-' flag)
  744|      0|                    if (!(out.flags() & std::ios::left)) {
  ------------------
  |  Branch (744:25): [True: 0, False: 0]
  ------------------
  745|       |                        // Use internal padding so that numeric values are
  746|       |                        // formatted correctly, eg -00010 rather than 000-10
  747|      0|                        out.fill('0');
  748|      0|                        out.setf(std::ios::internal, std::ios::adjustfield);
  749|      0|                    }
  750|      0|                    continue;
  751|      0|                case '-':
  ------------------
  |  Branch (751:17): [True: 0, False: 1.18k]
  ------------------
  752|      0|                    out.fill(' ');
  753|      0|                    out.setf(std::ios::left, std::ios::adjustfield);
  754|      0|                    continue;
  755|      0|                case ' ':
  ------------------
  |  Branch (755:17): [True: 0, False: 1.18k]
  ------------------
  756|       |                    // overridden by show positive sign, '+' flag.
  757|      0|                    if (!(out.flags() & std::ios::showpos))
  ------------------
  |  Branch (757:25): [True: 0, False: 0]
  ------------------
  758|      0|                        spacePadPositive = true;
  759|      0|                    continue;
  760|      0|                case '+':
  ------------------
  |  Branch (760:17): [True: 0, False: 1.18k]
  ------------------
  761|      0|                    out.setf(std::ios::showpos);
  762|      0|                    spacePadPositive = false;
  763|      0|                    widthExtra = 1;
  764|      0|                    continue;
  765|  1.18k|                default:
  ------------------
  |  Branch (765:17): [True: 1.18k, False: 0]
  ------------------
  766|  1.18k|                    break;
  767|  1.18k|            }
  768|  1.18k|            break;
  769|  1.18k|        }
  770|       |        // Parse width
  771|  1.18k|        int width = 0;
  772|  1.18k|        widthSet = parseWidthOrPrecision(width, c, positionalMode,
  773|  1.18k|                                         args, argIndex, numArgs);
  774|  1.18k|        if (widthSet) {
  ------------------
  |  Branch (774:13): [True: 0, False: 1.18k]
  ------------------
  775|      0|            if (width < 0) {
  ------------------
  |  Branch (775:17): [True: 0, False: 0]
  ------------------
  776|       |                // negative widths correspond to '-' flag set
  777|      0|                out.fill(' ');
  778|      0|                out.setf(std::ios::left, std::ios::adjustfield);
  779|      0|                width = -width;
  780|      0|            }
  781|      0|            out.width(width);
  782|      0|        }
  783|  1.18k|    }
  784|       |    // 3) Parse precision
  785|  1.18k|    if (*c == '.') {
  ------------------
  |  Branch (785:9): [True: 0, False: 1.18k]
  ------------------
  786|      0|        ++c;
  787|      0|        int precision = 0;
  788|      0|        parseWidthOrPrecision(precision, c, positionalMode,
  789|      0|                              args, argIndex, numArgs);
  790|       |        // Presence of `.` indicates precision set, unless the inferred value
  791|       |        // was negative in which case the default is used.
  792|      0|        precisionSet = precision >= 0;
  793|      0|        if (precisionSet)
  ------------------
  |  Branch (793:13): [True: 0, False: 0]
  ------------------
  794|      0|            out.precision(precision);
  795|      0|    }
  796|       |    // 4) Ignore any C99 length modifier
  797|  1.18k|    while (*c == 'l' || *c == 'h' || *c == 'L' ||
  ------------------
  |  Branch (797:12): [True: 0, False: 1.18k]
  |  Branch (797:25): [True: 0, False: 1.18k]
  |  Branch (797:38): [True: 0, False: 1.18k]
  ------------------
  798|  1.18k|           *c == 'j' || *c == 'z' || *c == 't') {
  ------------------
  |  Branch (798:12): [True: 0, False: 1.18k]
  |  Branch (798:25): [True: 0, False: 1.18k]
  |  Branch (798:38): [True: 0, False: 1.18k]
  ------------------
  799|      0|        ++c;
  800|      0|    }
  801|       |    // 5) We're up to the conversion specifier character.
  802|       |    // Set stream flags based on conversion specifier (thanks to the
  803|       |    // boost::format class for forging the way here).
  804|  1.18k|    bool intConversion = false;
  805|  1.18k|    switch (*c) {
  806|    590|        case 'u': case 'd': case 'i':
  ------------------
  |  Branch (806:9): [True: 0, False: 1.18k]
  |  Branch (806:19): [True: 590, False: 590]
  |  Branch (806:29): [True: 0, False: 1.18k]
  ------------------
  807|    590|            out.setf(std::ios::dec, std::ios::basefield);
  808|    590|            intConversion = true;
  809|    590|            break;
  810|      0|        case 'o':
  ------------------
  |  Branch (810:9): [True: 0, False: 1.18k]
  ------------------
  811|      0|            out.setf(std::ios::oct, std::ios::basefield);
  812|      0|            intConversion = true;
  813|      0|            break;
  814|      0|        case 'X':
  ------------------
  |  Branch (814:9): [True: 0, False: 1.18k]
  ------------------
  815|      0|            out.setf(std::ios::uppercase);
  816|      0|            [[fallthrough]];
  817|      0|        case 'x': case 'p':
  ------------------
  |  Branch (817:9): [True: 0, False: 1.18k]
  |  Branch (817:19): [True: 0, False: 1.18k]
  ------------------
  818|      0|            out.setf(std::ios::hex, std::ios::basefield);
  819|      0|            intConversion = true;
  820|      0|            break;
  821|      0|        case 'E':
  ------------------
  |  Branch (821:9): [True: 0, False: 1.18k]
  ------------------
  822|      0|            out.setf(std::ios::uppercase);
  823|      0|            [[fallthrough]];
  824|      0|        case 'e':
  ------------------
  |  Branch (824:9): [True: 0, False: 1.18k]
  ------------------
  825|      0|            out.setf(std::ios::scientific, std::ios::floatfield);
  826|      0|            out.setf(std::ios::dec, std::ios::basefield);
  827|      0|            break;
  828|      0|        case 'F':
  ------------------
  |  Branch (828:9): [True: 0, False: 1.18k]
  ------------------
  829|      0|            out.setf(std::ios::uppercase);
  830|      0|            [[fallthrough]];
  831|    590|        case 'f':
  ------------------
  |  Branch (831:9): [True: 590, False: 590]
  ------------------
  832|    590|            out.setf(std::ios::fixed, std::ios::floatfield);
  833|    590|            break;
  834|      0|        case 'A':
  ------------------
  |  Branch (834:9): [True: 0, False: 1.18k]
  ------------------
  835|      0|            out.setf(std::ios::uppercase);
  836|      0|            [[fallthrough]];
  837|      0|        case 'a':
  ------------------
  |  Branch (837:9): [True: 0, False: 1.18k]
  ------------------
  838|       |#           ifdef _MSC_VER
  839|       |            // Workaround https://developercommunity.visualstudio.com/content/problem/520472/hexfloat-stream-output-does-not-ignore-precision-a.html
  840|       |            // by always setting maximum precision on MSVC to avoid precision
  841|       |            // loss for doubles.
  842|       |            out.precision(13);
  843|       |#           endif
  844|      0|            out.setf(std::ios::fixed | std::ios::scientific, std::ios::floatfield);
  845|      0|            break;
  846|      0|        case 'G':
  ------------------
  |  Branch (846:9): [True: 0, False: 1.18k]
  ------------------
  847|      0|            out.setf(std::ios::uppercase);
  848|      0|            [[fallthrough]];
  849|      0|        case 'g':
  ------------------
  |  Branch (849:9): [True: 0, False: 1.18k]
  ------------------
  850|      0|            out.setf(std::ios::dec, std::ios::basefield);
  851|       |            // As in boost::format, let stream decide float format.
  852|      0|            out.flags(out.flags() & ~std::ios::floatfield);
  853|      0|            break;
  854|      0|        case 'c':
  ------------------
  |  Branch (854:9): [True: 0, False: 1.18k]
  ------------------
  855|       |            // Handled as special case inside formatValue()
  856|      0|            break;
  857|      0|        case 's':
  ------------------
  |  Branch (857:9): [True: 0, False: 1.18k]
  ------------------
  858|      0|            if (precisionSet)
  ------------------
  |  Branch (858:17): [True: 0, False: 0]
  ------------------
  859|      0|                ntrunc = static_cast<int>(out.precision());
  860|       |            // Make %s print Booleans as "true" and "false"
  861|      0|            out.setf(std::ios::boolalpha);
  862|      0|            break;
  863|      0|        case 'n':
  ------------------
  |  Branch (863:9): [True: 0, False: 1.18k]
  ------------------
  864|       |            // Not supported - will cause problems!
  865|      0|            TINYFORMAT_ERROR("tinyformat: %n conversion spec not supported");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  866|      0|            break;
  867|      0|        case '\0':
  ------------------
  |  Branch (867:9): [True: 0, False: 1.18k]
  ------------------
  868|      0|            TINYFORMAT_ERROR("tinyformat: Conversion spec incorrectly "
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  869|      0|                             "terminated by end of string");
  870|      0|            return c;
  871|      0|        default:
  ------------------
  |  Branch (871:9): [True: 0, False: 1.18k]
  ------------------
  872|      0|            break;
  873|  1.18k|    }
  874|  1.18k|    if (intConversion && precisionSet && !widthSet) {
  ------------------
  |  Branch (874:9): [True: 590, False: 590]
  |  Branch (874:26): [True: 0, False: 590]
  |  Branch (874:42): [True: 0, False: 0]
  ------------------
  875|       |        // "precision" for integers gives the minimum number of digits (to be
  876|       |        // padded with zeros on the left).  This isn't really supported by the
  877|       |        // iostreams, but we can approximately simulate it with the width if
  878|       |        // the width isn't otherwise used.
  879|      0|        out.width(out.precision() + widthExtra);
  880|      0|        out.setf(std::ios::internal, std::ios::adjustfield);
  881|      0|        out.fill('0');
  882|      0|    }
  883|  1.18k|    return c+1;
  884|  1.18k|}
_ZN10tinyformat6detail10formatImplERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKcPKNS0_9FormatArgEi:
  891|  1.18k|{
  892|       |    // Saved stream state
  893|  1.18k|    std::streamsize origWidth = out.width();
  894|  1.18k|    std::streamsize origPrecision = out.precision();
  895|  1.18k|    std::ios::fmtflags origFlags = out.flags();
  896|  1.18k|    char origFill = out.fill();
  897|       |
  898|       |    // "Positional mode" means all format specs should be of the form "%n$..."
  899|       |    // with `n` an integer. We detect this in `streamStateFromFormat`.
  900|  1.18k|    bool positionalMode = false;
  901|  1.18k|    int argIndex = 0;
  902|  2.36k|    while (true) {
  ------------------
  |  Branch (902:12): [Folded - Ignored]
  ------------------
  903|  2.36k|        fmt = printFormatStringLiteral(out, fmt);
  904|  2.36k|        if (*fmt == '\0') {
  ------------------
  |  Branch (904:13): [True: 1.18k, False: 1.18k]
  ------------------
  905|  1.18k|            if (!positionalMode && argIndex < numArgs) {
  ------------------
  |  Branch (905:17): [True: 1.18k, False: 0]
  |  Branch (905:36): [True: 0, False: 1.18k]
  ------------------
  906|      0|                TINYFORMAT_ERROR("tinyformat: Not enough conversion specifiers in format string");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  907|      0|            }
  908|  1.18k|            break;
  909|  1.18k|        }
  910|  1.18k|        bool spacePadPositive = false;
  911|  1.18k|        int ntrunc = -1;
  912|  1.18k|        const char* fmtEnd = streamStateFromFormat(out, positionalMode, spacePadPositive, ntrunc, fmt,
  913|  1.18k|                                                   args, argIndex, numArgs);
  914|       |        // NB: argIndex may be incremented by reading variable width/precision
  915|       |        // in `streamStateFromFormat`, so do the bounds check here.
  916|  1.18k|        if (argIndex >= numArgs) {
  ------------------
  |  Branch (916:13): [True: 0, False: 1.18k]
  ------------------
  917|      0|            TINYFORMAT_ERROR("tinyformat: Too many conversion specifiers in format string");
  ------------------
  |  |  135|      0|#define TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString)
  ------------------
  918|      0|            return;
  919|      0|        }
  920|  1.18k|        const FormatArg& arg = args[argIndex];
  921|       |        // Format the arg into the stream.
  922|  1.18k|        if (!spacePadPositive) {
  ------------------
  |  Branch (922:13): [True: 1.18k, False: 0]
  ------------------
  923|  1.18k|            arg.format(out, fmt, fmtEnd, ntrunc);
  924|  1.18k|        }
  925|      0|        else {
  926|       |            // The following is a special case with no direct correspondence
  927|       |            // between stream formatting and the printf() behaviour.  Simulate
  928|       |            // it crudely by formatting into a temporary string stream and
  929|       |            // munging the resulting string.
  930|      0|            std::ostringstream tmpStream;
  931|      0|            tmpStream.copyfmt(out);
  932|      0|            tmpStream.setf(std::ios::showpos);
  933|      0|            arg.format(tmpStream, fmt, fmtEnd, ntrunc);
  934|      0|            std::string result = tmpStream.str(); // allocates... yuck.
  935|      0|            for (size_t i = 0, iend = result.size(); i < iend; ++i) {
  ------------------
  |  Branch (935:54): [True: 0, False: 0]
  ------------------
  936|      0|                if (result[i] == '+')
  ------------------
  |  Branch (936:21): [True: 0, False: 0]
  ------------------
  937|      0|                    result[i] = ' ';
  938|      0|            }
  939|      0|            out << result;
  940|      0|        }
  941|  1.18k|        if (!positionalMode)
  ------------------
  |  Branch (941:13): [True: 1.18k, False: 0]
  ------------------
  942|  1.18k|            ++argIndex;
  943|  1.18k|        fmt = fmtEnd;
  944|  1.18k|    }
  945|       |
  946|       |    // Restore stream state
  947|  1.18k|    out.width(origWidth);
  948|  1.18k|    out.precision(origPrecision);
  949|  1.18k|    out.flags(origFlags);
  950|  1.18k|    out.fill(origFill);
  951|  1.18k|}
_ZN10tinyformat7vformatERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEPKcRKNS_10FormatListE:
 1070|  1.18k|{
 1071|  1.18k|    detail::formatImpl(out, fmt, list.m_args, list.m_N);
 1072|  1.18k|}
_ZN10tinyformat17FormatStringCheckILj1EEcvPKcEv:
  197|  1.18k|    operator const char*() { return fmt; }
_ZN10tinyformat6formatIJlEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1088|    590|{
 1089|    590|    std::ostringstream oss;
 1090|    590|    format(oss, fmt, args...);
 1091|    590|    return oss.str();
 1092|    590|}
_ZN10tinyformat6formatIJlEEEvRNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1080|    590|{
 1081|    590|    vformat(out, fmt, makeFormatList(args...));
 1082|    590|}
_ZN10tinyformat14makeFormatListIJlEEENS_6detail11FormatListNIXsZT_EEEDpRKT_:
 1044|    590|{
 1045|    590|    return detail::FormatListN<sizeof...(args)>(args...);
 1046|    590|}
_ZN10tinyformat6detail11FormatListNILi1EEC2IJlEEEDpRKT_:
  990|    590|            : FormatList(&m_formatterStore[0], N),
  991|    590|            m_formatterStore { FormatArg(args)... }
  992|    590|        { static_assert(sizeof...(args) == N, "Number of args must be N"); }
_ZN10tinyformat6detail9FormatArgC2IlEERKT_:
  534|    590|            : m_value(static_cast<const void*>(&value)),
  535|    590|            m_formatImpl(&formatImpl<T>),
  536|    590|            m_toIntImpl(&toIntImpl<T>)
  537|    590|        { }
_ZN10tinyformat6detail9FormatArg10formatImplIlEEvRNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEPKcSA_iPKv:
  558|    590|        {
  559|    590|            formatValue(out, fmtBegin, fmtEnd, ntrunc, *static_cast<const T*>(value));
  560|    590|        }
_ZN10tinyformat11formatValueIlEEvRNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKcS8_iRKT_:
  351|    590|{
  352|    590|#ifndef TINYFORMAT_ALLOW_WCHAR_STRINGS
  353|       |    // Since we don't support printing of wchar_t using "%ls", make it fail at
  354|       |    // compile time in preference to printing as a void* at runtime.
  355|    590|    typedef typename detail::is_wchar<T>::tinyformat_wchar_is_not_supported DummyType;
  356|    590|    (void) DummyType(); // avoid unused type warning with gcc-4.8
  357|    590|#endif
  358|       |    // The mess here is to support the %c and %p conversions: if these
  359|       |    // conversions are active we try to convert the type to a char or const
  360|       |    // void* respectively and format that instead of the value itself.  For the
  361|       |    // %p conversion it's important to avoid dereferencing the pointer, which
  362|       |    // could otherwise lead to a crash when printing a dangling (const char*).
  363|    590|    const bool canConvertToChar = detail::is_convertible<T,char>::value;
  364|    590|    const bool canConvertToVoidPtr = detail::is_convertible<T, const void*>::value;
  365|    590|    if (canConvertToChar && *(fmtEnd-1) == 'c')
  ------------------
  |  Branch (365:9): [Folded - Ignored]
  |  Branch (365:29): [True: 0, False: 590]
  ------------------
  366|      0|        detail::formatValueAsType<T, char>::invoke(out, value);
  367|    590|    else if (canConvertToVoidPtr && *(fmtEnd-1) == 'p')
  ------------------
  |  Branch (367:14): [Folded - Ignored]
  |  Branch (367:37): [True: 0, False: 0]
  ------------------
  368|      0|        detail::formatValueAsType<T, const void*>::invoke(out, value);
  369|       |#ifdef TINYFORMAT_OLD_LIBSTDCPLUSPLUS_WORKAROUND
  370|       |    else if (detail::formatZeroIntegerWorkaround<T>::invoke(out, value)) /**/;
  371|       |#endif
  372|    590|    else if (ntrunc >= 0) {
  ------------------
  |  Branch (372:14): [True: 0, False: 590]
  ------------------
  373|       |        // Take care not to overread C strings in truncating conversions like
  374|       |        // "%.4s" where at most 4 characters may be read.
  375|      0|        detail::formatTruncated(out, value, ntrunc);
  376|      0|    }
  377|    590|    else
  378|    590|        out << value;
  379|    590|}
_ZN10tinyformat6formatIJdEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1088|    590|{
 1089|    590|    std::ostringstream oss;
 1090|    590|    format(oss, fmt, args...);
 1091|    590|    return oss.str();
 1092|    590|}
_ZN10tinyformat6formatIJdEEEvRNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_17FormatStringCheckIXsZT_EEEDpRKT_:
 1080|    590|{
 1081|    590|    vformat(out, fmt, makeFormatList(args...));
 1082|    590|}
_ZN10tinyformat14makeFormatListIJdEEENS_6detail11FormatListNIXsZT_EEEDpRKT_:
 1044|    590|{
 1045|    590|    return detail::FormatListN<sizeof...(args)>(args...);
 1046|    590|}
_ZN10tinyformat6detail11FormatListNILi1EEC2IJdEEEDpRKT_:
  990|    590|            : FormatList(&m_formatterStore[0], N),
  991|    590|            m_formatterStore { FormatArg(args)... }
  992|    590|        { static_assert(sizeof...(args) == N, "Number of args must be N"); }
_ZN10tinyformat6detail9FormatArgC2IdEERKT_:
  534|    590|            : m_value(static_cast<const void*>(&value)),
  535|    590|            m_formatImpl(&formatImpl<T>),
  536|    590|            m_toIntImpl(&toIntImpl<T>)
  537|    590|        { }
_ZN10tinyformat6detail9FormatArg10formatImplIdEEvRNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEPKcSA_iPKv:
  558|    590|        {
  559|    590|            formatValue(out, fmtBegin, fmtEnd, ntrunc, *static_cast<const T*>(value));
  560|    590|        }
_ZN10tinyformat11formatValueIdEEvRNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKcS8_iRKT_:
  351|    590|{
  352|    590|#ifndef TINYFORMAT_ALLOW_WCHAR_STRINGS
  353|       |    // Since we don't support printing of wchar_t using "%ls", make it fail at
  354|       |    // compile time in preference to printing as a void* at runtime.
  355|    590|    typedef typename detail::is_wchar<T>::tinyformat_wchar_is_not_supported DummyType;
  356|    590|    (void) DummyType(); // avoid unused type warning with gcc-4.8
  357|    590|#endif
  358|       |    // The mess here is to support the %c and %p conversions: if these
  359|       |    // conversions are active we try to convert the type to a char or const
  360|       |    // void* respectively and format that instead of the value itself.  For the
  361|       |    // %p conversion it's important to avoid dereferencing the pointer, which
  362|       |    // could otherwise lead to a crash when printing a dangling (const char*).
  363|    590|    const bool canConvertToChar = detail::is_convertible<T,char>::value;
  364|    590|    const bool canConvertToVoidPtr = detail::is_convertible<T, const void*>::value;
  365|    590|    if (canConvertToChar && *(fmtEnd-1) == 'c')
  ------------------
  |  Branch (365:9): [Folded - Ignored]
  |  Branch (365:29): [True: 0, False: 590]
  ------------------
  366|      0|        detail::formatValueAsType<T, char>::invoke(out, value);
  367|    590|    else if (canConvertToVoidPtr && *(fmtEnd-1) == 'p')
  ------------------
  |  Branch (367:14): [Folded - Ignored]
  |  Branch (367:37): [True: 0, False: 0]
  ------------------
  368|      0|        detail::formatValueAsType<T, const void*>::invoke(out, value);
  369|       |#ifdef TINYFORMAT_OLD_LIBSTDCPLUSPLUS_WORKAROUND
  370|       |    else if (detail::formatZeroIntegerWorkaround<T>::invoke(out, value)) /**/;
  371|       |#endif
  372|    590|    else if (ntrunc >= 0) {
  ------------------
  |  Branch (372:14): [True: 0, False: 590]
  ------------------
  373|       |        // Take care not to overread C strings in truncating conversions like
  374|       |        // "%.4s" where at most 4 characters may be read.
  375|      0|        detail::formatTruncated(out, value, ntrunc);
  376|      0|    }
  377|    590|    else
  378|    590|        out << value;
  379|    590|}

_Z22inline_assertion_checkILb1EbEOT0_S1_PKciS3_S3_:
   52|    300|{
   53|    300|    if (IS_ASSERT || std::is_constant_evaluated() || G_FUZZING
  ------------------
  |  Branch (53:9): [Folded - Ignored]
  |  Branch (53:22): [Folded - Ignored]
  |  Branch (53:54): [Folded - Ignored]
  ------------------
   54|       |#ifdef ABORT_ON_FAILED_ASSUME
   55|       |        || true
   56|       |#endif
   57|    300|    ) {
   58|    300|        if (!val) {
  ------------------
  |  Branch (58:13): [True: 0, False: 300]
  ------------------
   59|      0|            assertion_fail(file, line, func, assertion);
   60|      0|        }
   61|    300|    }
   62|    300|    return std::forward<T>(val);
   63|    300|}
_Z22inline_assertion_checkILb1ERPKNSt3__18functionIFvNS0_4spanIKhLm18446744073709551615EEEEEEEOT0_SB_PKciSD_SD_:
   52|    300|{
   53|    300|    if (IS_ASSERT || std::is_constant_evaluated() || G_FUZZING
  ------------------
  |  Branch (53:9): [Folded - Ignored]
  |  Branch (53:22): [Folded - Ignored]
  |  Branch (53:54): [Folded - Ignored]
  ------------------
   54|       |#ifdef ABORT_ON_FAILED_ASSUME
   55|       |        || true
   56|       |#endif
   57|    300|    ) {
   58|    300|        if (!val) {
  ------------------
  |  Branch (58:13): [True: 0, False: 300]
  ------------------
   59|      0|            assertion_fail(file, line, func, assertion);
   60|      0|        }
   61|    300|    }
   62|    300|    return std::forward<T>(val);
   63|    300|}

_Z10ParseInt32NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPi:
  225|    590|{
  226|    590|    return ParseIntegral<int32_t>(str, out);
  227|    590|}
_Z10ParseInt64NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPl:
  230|    590|{
  231|    590|    return ParseIntegral<int64_t>(str, out);
  232|    590|}
strencodings.cpp:_ZN12_GLOBAL__N_113ParseIntegralIiEEbNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPT_:
  206|    590|{
  207|    590|    static_assert(std::is_integral<T>::value);
  208|       |    // Replicate the exact behavior of strtol/strtoll/strtoul/strtoull when
  209|       |    // handling leading +/- for backwards compatibility.
  210|    590|    if (str.length() >= 2 && str[0] == '+' && str[1] == '-') {
  ------------------
  |  Branch (210:9): [True: 192, False: 398]
  |  Branch (210:30): [True: 24, False: 168]
  |  Branch (210:47): [True: 2, False: 22]
  ------------------
  211|      2|        return false;
  212|      2|    }
  213|    588|    const std::optional<T> opt_int = ToIntegral<T>((!str.empty() && str[0] == '+') ? str.substr(1) : str);
  ------------------
  |  Branch (213:53): [True: 260, False: 328]
  |  Branch (213:69): [True: 24, False: 236]
  ------------------
  214|    588|    if (!opt_int) {
  ------------------
  |  Branch (214:9): [True: 508, False: 80]
  ------------------
  215|    508|        return false;
  216|    508|    }
  217|     80|    if (out != nullptr) {
  ------------------
  |  Branch (217:9): [True: 80, False: 0]
  ------------------
  218|     80|        *out = *opt_int;
  219|     80|    }
  220|     80|    return true;
  221|    588|}
strencodings.cpp:_ZN12_GLOBAL__N_113ParseIntegralIlEEbNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPT_:
  206|    590|{
  207|    590|    static_assert(std::is_integral<T>::value);
  208|       |    // Replicate the exact behavior of strtol/strtoll/strtoul/strtoull when
  209|       |    // handling leading +/- for backwards compatibility.
  210|    590|    if (str.length() >= 2 && str[0] == '+' && str[1] == '-') {
  ------------------
  |  Branch (210:9): [True: 192, False: 398]
  |  Branch (210:30): [True: 24, False: 168]
  |  Branch (210:47): [True: 2, False: 22]
  ------------------
  211|      2|        return false;
  212|      2|    }
  213|    588|    const std::optional<T> opt_int = ToIntegral<T>((!str.empty() && str[0] == '+') ? str.substr(1) : str);
  ------------------
  |  Branch (213:53): [True: 260, False: 328]
  |  Branch (213:69): [True: 24, False: 236]
  ------------------
  214|    588|    if (!opt_int) {
  ------------------
  |  Branch (214:9): [True: 508, False: 80]
  ------------------
  215|    508|        return false;
  216|    508|    }
  217|     80|    if (out != nullptr) {
  ------------------
  |  Branch (217:9): [True: 80, False: 0]
  ------------------
  218|     80|        *out = *opt_int;
  219|     80|    }
  220|     80|    return true;
  221|    588|}

_Z10ToIntegralIlENSt3__18optionalIT_EENS0_17basic_string_viewIcNS0_11char_traitsIcEEEE:
  180|    588|{
  181|    588|    static_assert(std::is_integral<T>::value);
  182|    588|    T result;
  183|    588|    const auto [first_nonmatching, error_condition] = std::from_chars(str.data(), str.data() + str.size(), result);
  184|    588|    if (first_nonmatching != str.data() + str.size() || error_condition != std::errc{}) {
  ------------------
  |  Branch (184:9): [True: 178, False: 410]
  |  Branch (184:57): [True: 330, False: 80]
  ------------------
  185|    508|        return std::nullopt;
  186|    508|    }
  187|     80|    return result;
  188|    588|}
_Z10ToIntegralIiENSt3__18optionalIT_EENS0_17basic_string_viewIcNS0_11char_traitsIcEEEE:
  180|    588|{
  181|    588|    static_assert(std::is_integral<T>::value);
  182|    588|    T result;
  183|    588|    const auto [first_nonmatching, error_condition] = std::from_chars(str.data(), str.data() + str.size(), result);
  184|    588|    if (first_nonmatching != str.data() + str.size() || error_condition != std::errc{}) {
  ------------------
  |  Branch (184:9): [True: 178, False: 410]
  |  Branch (184:57): [True: 330, False: 80]
  ------------------
  185|    508|        return std::nullopt;
  186|    508|    }
  187|     80|    return result;
  188|    588|}

_ZN4util8ToStringIlEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  234|    590|{
  235|    590|    std::ostringstream oss;
  236|    590|    oss.imbue(std::locale::classic());
  237|    590|    oss << t;
  238|    590|    return oss.str();
  239|    590|}

_Z11SetMockTimeNSt3__16chrono8durationIxNS_5ratioILl1ELl1EEEEE:
   42|    300|{
   43|    300|    Assert(mock_time_in >= 0s);
  ------------------
  |  |   85|    300|#define Assert(val) inline_assertion_check<true>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
   44|    300|    g_mock_time.store(mock_time_in, std::memory_order_relaxed);
   45|    300|}

